@charset "UTF-8";
@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Noto+Sans+TC:wght@100..900&display=swap');
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Noto Sans TC', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, #fff8fb 0%, #fff8fb 50%, #fff8fb 100%);
    overflow: hidden;
    height: 100vh;
    position: relative;
}
/* 載入頁面容器 */
.loading-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #fff8fb 0%, #fff8fb 50%, #fff8fb 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 0;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}
.loading-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 20%, rgba(255, 189, 132, 0.15) 0%, transparent 50%), radial-gradient(circle at 80% 80%, rgba(255, 189, 132, 0.15) 0%, transparent 50%), radial-gradient(circle at 40% 60%, rgba(255, 255, 255, 0.8) 0%, transparent 50%);
    z-index: 1;
}
.loading-container.fade-out {
    opacity: 0;
    visibility: hidden;
}
/* 動態背景粒子 - 彩色版本 */
.particles-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 2;
}
.particle {
    position: absolute;
    border-radius: 50%;
    animation: particleFloat 8s linear infinite;
    opacity: 0;
}
.particle:nth-child(8n+1) {
    width: 4px;
    height: 4px;
    background: rgba(255, 107, 107, 0.7); /* 紅色 */
    animation-duration: 12s;
}
.particle:nth-child(8n+2) {
    width: 8px;
    height: 8px;
    background: rgba(255, 159, 67, 0.6); /* 橘色 */
    animation-duration: 10s;
}
.particle:nth-child(8n+3) {
    width: 5px;
    height: 5px;
    background: rgba(255, 206, 84, 0.7); /* 黃色 */
    animation-duration: 15s;
}
.particle:nth-child(8n+4) {
    width: 7px;
    height: 7px;
    background: rgba(123, 239, 178, 0.6); /* 綠色 */
    animation-duration: 9s;
}
.particle:nth-child(8n+5) {
    width: 6px;
    height: 6px;
    background: rgba(116, 185, 255, 0.6); /* 藍色 */
    animation-duration: 13s;
}
.particle:nth-child(8n+6) {
    width: 8px;
    height: 8px;
    background: rgba(162, 155, 254, 0.7); /* 紫色 */
    animation-duration: 11s;
}
.particle:nth-child(8n+7) {
    width: 10px;
    height: 10px;
    background: rgba(255, 107, 192, 0.6); /* 粉紅色 */
    animation-duration: 14s;
}
.particle:nth-child(8n) {
    width: 7px;
    height: 7px;
    background: rgba(45, 206, 137, 0.6); /* 青綠色 */
    animation-duration: 16s;
}
@keyframes particleFloat {
0% {
transform: translateY(100vh) translateX(0) rotate(0deg) scale(0);
opacity: 0;
}
10% {
opacity: 1;
transform: translateY(90vh) translateX(10px) rotate(45deg) scale(1);
}
90% {
opacity: 1;
transform: translateY(10vh) translateX(80px) rotate(315deg) scale(1);
}
100% {
transform: translateY(-10vh) translateX(100px) rotate(360deg) scale(0);
opacity: 0;
}
}
/* 主要載入內容 */
.loading-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 600px;
    width: 90%;
}
/* Logo容器 */
.logo-container {
    margin-bottom: 1.5rem;
    position: relative;
}
.logo {
    font-size: 3.6rem;
    font-weight: 900;
    letter-spacing: 0px;
    background: linear-gradient(45deg, #ffbd84, #ff1f8e, #ffffff, #ffbd84);
    background-size: 400% 400%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: logoEntrance 2s ease-out, logoBreathing 3s ease-in-out infinite 2s, gradientShift 4s ease-in-out infinite 2s;
    position: relative;
    display: inline-block;
    line-height: 1;
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.3);
}
.logo::before {
    content: '';
    position: absolute;
    top: -30px;
    left: -30px;
    right: -30px;
    bottom: -30px;
    background: linear-gradient(45deg, #ffbd84, #ff1f8e, #ffffff, #ffbd84);
    background-size: 400% 400%;
    border-radius: 50%;
    filter: blur(25px);
    opacity: 0;
    animation: logoGlowBg 2s ease-out, logoBreathingBg 3s ease-in-out infinite 2s, gradientShift 4s ease-in-out infinite 2s;
    z-index: -1;
}
@keyframes logoEntrance {
0% {
transform: scale(0.3) rotateY(-180deg);
opacity: 0;
}
60% {
transform: scale(1.1) rotateY(0deg);
}
100% {
transform: scale(1) rotateY(0deg);
opacity: 1;
}
}
@keyframes logoIconEntrance {
0% {
transform: scale(0.3) rotateX(-180deg);
opacity: 0;
}
60% {
transform: scale(1.1) rotateX(0deg);
}
100% {
transform: scale(1) rotateX(0deg);
opacity: 1;
}
}

/* 持續的呼吸動畫 - Logo文字 */
@keyframes logoBreathing {
0%, 100% {
transform: scale(1);
filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.3));
}
50% {
transform: scale(1.05);
filter: drop-shadow(0 0 40px rgba(255, 31, 142, 0.3)) drop-shadow(0 0 60px rgba(255, 189, 132, 0.5));
}
}

/* 持續的呼吸動畫 - Logo圖示 */
@keyframes logoIconBreathing {
0%, 100% {
transform: scale(1);
filter: drop-shadow(0 0 20px rgba(255, 31, 142, 0.3));
}
50% {
transform: scale(1.08);
filter: drop-shadow(0 0 45px rgba(255, 31, 142, 0.9)) drop-shadow(0 0 70px rgba(255, 189, 132, 0.6));
}
}

/* 持續的呼吸動畫 - 背景光暈 */
@keyframes logoBreathingBg {
0%, 100% {
opacity: 0.3;
transform: scale(1);
}
50% {
opacity: 0.6;
transform: scale(1.2);
}
}
@keyframes logoGlowBg {
0% {
opacity: 0;
transform: scale(0.5);
}
50% {
opacity: 0.8;
transform: scale(1.3);
}
100% {
opacity: 0.4;
transform: scale(1);
}
}
@keyframes gradientShift {
0% {
background-position: 0% 50%;
}
50% {
background-position: 100% 50%;
}
100% {
background-position: 0% 50%;
}
}
.logo-text {
    font-size: 1.3rem;
    color: #0f1360;
    font-weight: 600;
    margin-top: 1.5rem;
    animation: fadeInUp 1.5s ease-out 1s both, textBreathing 4s ease-in-out infinite 2s;
    text-shadow: 0 2px 10px rgba(255, 31, 142, 0.2);
    letter-spacing: 2px;
}

/* 文字的輕微呼吸效果 */
@keyframes textBreathing {
0%, 100% {
opacity: 0.95;
transform: translateY(0);
}
50% {
opacity: 1;
transform: translateY(-3px);
}
}
/* 進度條容器 */
.progress-container {
    margin: 1rem 2rem;
    position: relative;
}
.progress-bar-bg {
    width: 100%;
    height: 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.3), 0 2px 10px rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}
.progress-bar-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: shimmer 2.5s ease-in-out infinite;
}
.progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #ffbd84, #ff1f8e, #ffffff, #ffbd84);
    background-size: 300% 100%;
    border-radius: 25px;
    position: relative;
    transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
    animation: progressGlow 3s ease-in-out infinite, gradientShift 4s ease-in-out infinite;
    box-shadow: 0 0 25px rgba(255, 31, 142, 0.6), 0 0 50px rgba(255, 189, 132, 0.3);
}
.progress-bar::after {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: linear-gradient(90deg, #ffbd84, #ff1f8e, #ffffff, #ffbd84);
    background-size: 300% 100%;
    border-radius: 25px;
    filter: blur(12px);
    opacity: 0.7;
    z-index: -1;
    animation: gradientShift 4s ease-in-out infinite;
}
.progress-percentage {
    position: absolute;
    top: -45px;
    right: 0;
    color: #ff1f8e;
    font-weight: 700;
    font-size: 1.4rem;
    text-shadow: 0 0 15px rgba(255, 31, 142, 0.5), 0 2px 8px rgba(255, 31, 142, 0.3);
    transition: all 0.3s ease;
}
@keyframes progressGlow {
0%, 100% {
box-shadow: 0 0 25px rgba(255, 31, 142, 0.6), 0 0 50px rgba(255, 189, 132, 0.3);
}
50% {
box-shadow: 0 0 35px rgba(255, 31, 142, 0.9), 0 0 70px rgba(255, 189, 132, 0.5);
}
}
@keyframes shimmer {
0% {
transform: translateX(-100%);
}
100% {
transform: translateX(100%);
}
}
/* 載入狀態文字 */
.loading-status {
    margin-top: 1rem;
    color: #0f1360;
    font-size: .875rem;
    font-weight: 400;
    letter-spacing: 1px;
    min-height: 30px;
    text-shadow: 0 2px 8px rgba(255, 31, 142, 0.2);
}
.loading-dots {
    display: inline-block;
    animation: loadingDots 1.8s infinite;
}
@keyframes loadingDots {
0%, 20% {
content: '';
}
40% {
content: '.';
}
60% {
content: '..';
}
80%, 100% {
content: '...';
}
}
/* 系統信息 */
.system-info {
    position: absolute;
    width: 100%;
    text-align: center;
    bottom: 1.8rem;
    color: rgba(82,93,111,.8);
    animation: fadeInUp 1.5s ease-out 1.5s both;
    text-shadow: 0 2px 8px rgba(255, 31, 142, 0.1);
    font-size: 0.875rem;
    line-height: 1.7;
}

/* 淡入向上動畫 */
@keyframes fadeInUp {
0% {
opacity: 0;
transform: translateY(30px);
}
100% {
opacity: 1;
transform: translateY(0);
}
}
/* ===== 公仔動畫相關樣式===== */
/* 公仔容器 */
.mascot-container {
    position: relative;
    width: 370px;
    height: auto;
    z-index: 99999;
    opacity: 0;
    transform: scale(0.3) translateY(150px);
    animation: mascotBounceIn 2.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.3s forwards,
               mascotFloatAndSway 4s ease-in-out 2.8s infinite;
    text-align: center;
    margin: -70px auto 0;
}
.mascot-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 15px 40px rgba(255, 31, 142, 0.2));
}

/* 公仔跳出來動畫*/
@keyframes mascotBounceIn {
0% {
    opacity: 0;
    transform: scale(0.3) translateY(150px) rotate(-5deg);
}
25% {
    opacity: 0.7;
    transform: scale(1.08) translateY(-15px) rotate(1deg);
}
45% {
    opacity: 1;
    transform: scale(1.03) translateY(-8px) rotate(0deg);
}
65% {
    transform: scale(1.01) translateY(3px) rotate(-0.5deg);
}
80% {
    transform: scale(1.02) translateY(-1px) rotate(0.2deg);
}
90% {
    transform: scale(1.01) translateY(0.5px) rotate(-0.1deg);
}
96% {
    transform: scale(1.005) translateY(-0.2px) rotate(0.05deg);
}
99% {
    transform: scale(1.002) translateY(0.1px) rotate(0deg);
}
100% {
    opacity: 1;
    transform: scale(1) translateY(0px) rotate(0deg);
}
}

/* 公仔入場動畫 */
@keyframes mascotGrandEntrance {
0% {
bottom: 8%;
opacity: 1;
transform: scale(0.5) rotate(-15deg);
}
30% {
bottom: 10%;
opacity: 1;
transform: scale(1.3) rotate(10deg);
}
60% {
bottom: 6%;
opacity: 1;
transform: scale(0.9) rotate(-5deg);
}
80% {
bottom: 9%;
transform: scale(1.1) rotate(3deg);
}
100% {
bottom: 8%;
opacity: 1;
transform: scale(1) rotate(0deg);
}
}

/* 公仔持續的飄浮和搖擺動畫 */
@keyframes mascotFloatAndSway {
0%, 100% {
transform: scale(1) rotate(0deg) translateY(0px);
}
25% {
transform: scale(1.03) rotate(3deg) translateY(-8px);
}
50% {
transform: scale(0.97) rotate(0deg) translateY(-5px);
}
75% {
transform: scale(1.02) rotate(-3deg) translateY(-10px);
}
}

/* 額外效果 */
.loading-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent 48%, rgba(255, 31, 142, 0.02) 50%, transparent 52%), linear-gradient(-45deg, transparent 48%, rgba(255, 189, 132, 0.02) 50%, transparent 52%);
    background-size: 30px 30px;
    animation: patternMove 20s linear infinite;
    z-index: 3;
    pointer-events: none;
}
@keyframes patternMove {
0% {
transform: translate(0, 0);
}
100% {
transform: translate(30px, 30px);
}
}


/* 響應式設計 */
@media (max-width: 768px) {
.logo-text {
    font-size: 1.4rem;
}
.loading-content {
    width: 96%;
}
.mascot-container {
    width: 320px;
    height: auto;
}
}
@media (max-width: 480px) {
.logo-text {
    font-size: 1.1rem;
    letter-spacing: 1px;
}
.logo {
    font-size: 2.8rem;
}
}