/* 重置和基礎樣式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* 禁止所有反白效果 */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
    height: 100%;
}

body {
    font-family: 'Noto Sans TC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: #ffffff;
    background: linear-gradient(135deg, #0d0619 0%, #1a0f2e 30%, #060610 60%, #0f0f1f 100%);
    min-height: 100vh;
    overflow-x: hidden;
    /* 額外確保body不會被反白 */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.app {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Hero Section - Kawaii Style with Dark Background */
.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #0d0619 0%, #1a0f2e 30%, #060610 60%, #0f0f1f 100%);
    overflow: hidden;
}

/* 添加可愛的背景裝飾 - 暗色版本 */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 20%, rgba(255, 20, 147, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 80% 40%, rgba(0, 191, 255, 0.12) 0%, transparent 40%),
        radial-gradient(circle at 40% 80%, rgba(255, 215, 0, 0.1) 0%, transparent 40%);
    z-index: 1;
    animation: kawaii-float 8s ease-in-out infinite;
}

/* 跑馬燈背景文字 - Kawaii 版本 */
.marquee-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 0;
    padding-top: 1rem;
    display: flex;
    flex-direction: column;
    opacity: 0.2;
}

.marquee-row {
    display: flex;
    white-space: nowrap;
    margin-bottom: 0rem;
}

.marquee-content {
    display: flex;
    animation-duration: 60s;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
    animation-fill-mode: forwards;
}

.marquee-row[data-direction="normal"] .marquee-content {
    animation-name: marquee-left;
    animation-delay: 0s;
}

.marquee-row[data-direction="reverse"] .marquee-content {
    animation-name: marquee-right;
    animation-delay: 0s;
}

.marquee-text {
    font-family: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: clamp(4rem, 12vw, 8rem);
    font-weight: 900;
    margin: 0 2rem;
    color: #FF1493;
    user-select: none;
    transition: color 0.5s ease;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    text-shadow: 2px 2px 0px #FFF, 4px 4px 0px rgba(255, 20, 147, 0.3);
}

/* Kawaii 可愛效果樣式 */
.kawaii-bounce {
    animation: kawaii-bounce 2s ease-in-out infinite;
}

.kawaii-wiggle {
    animation: kawaii-wiggle 3s ease-in-out infinite;
}

.kawaii-pulse {
    animation: kawaii-pulse 2.5s ease-in-out infinite;
}

.kawaii-float {
    animation: kawaii-float 4s ease-in-out infinite;
}

.kawaii-spin {
    animation: kawaii-spin 8s linear infinite;
}

/* Kawaii 顏色主題 */
.kawaii-pink {
    background: linear-gradient(135deg, #FF1493, #FF69B4);
    color: white;
    border: 3px solid #FFF;
    box-shadow: 0 4px 15px rgba(255, 20, 147, 0.4);
}

.kawaii-blue {
    background: linear-gradient(135deg, #00BFFF, #87CEEB);
    color: white;
    border: 3px solid #FFF;
    box-shadow: 0 4px 15px rgba(0, 191, 255, 0.4);
}

.kawaii-yellow {
    background: linear-gradient(135deg, #FFD700, #FFEB3B);
    color: #1a0d2e;
    border: 3px solid #FFF;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

.kawaii-purple {
    background: linear-gradient(135deg, #9370DB, #DDA0DD);
    color: white;
    border: 3px solid #FFF;
    box-shadow: 0 4px 15px rgba(147, 112, 219, 0.4);
}

.kawaii-mint {
    background: linear-gradient(135deg, #00FA9A, #7FFFD4);
    color: #1a0d2e;
    border: 3px solid #FFF;
    box-shadow: 0 4px 15px rgba(0, 250, 154, 0.4);
}

.kawaii-coral {
    background: linear-gradient(135deg, #FF6347, #FF7F50);
    color: white;
    border: 3px solid #FFF;
    box-shadow: 0 4px 15px rgba(255, 99, 71, 0.4);
}

/* Kawaii 動畫效果 */
@keyframes kawaii-bounce {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    25% {
        transform: translateY(-8px) scale(1.02);
    }
    50% {
        transform: translateY(-15px) scale(1.05);
    }
    75% {
        transform: translateY(-8px) scale(1.02);
    }
}

@keyframes kawaii-wiggle {
    0%, 100% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(-3deg);
    }
    75% {
        transform: rotate(3deg);
    }
}

@keyframes kawaii-pulse {
    0%, 100% {
        transform: scale(1);
        filter: brightness(1);
    }
    50% {
        transform: scale(1.05);
        filter: brightness(1.1);
    }
}

@keyframes kawaii-float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes kawaii-spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes marquee-left {
    0% {
        transform: translateX(0%);
    }
    100% {
        transform: translateX(-100%);
    }
}

@keyframes marquee-right {
    0% {
        transform: translateX(-50%);
    }
    100% {
        transform: translateX(0%);
    }
}

/* 主要內容 - Kawaii 設計 */
.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    width: 100%;
    max-width: 64rem;
    margin: 0 auto;
    padding: 0 1rem;
}

.logo-container {
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
}

.animated-logo {
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    cursor: pointer;
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 8px 25px rgba(255, 20, 147, 0.3));
    border-radius: 20px;
}

.animated-logo:hover {
    transform: scale(1.1) rotate(5deg);
    filter: drop-shadow(0 15px 35px rgba(255, 20, 147, 0.5));
}

.hero-title {
    font-size: clamp(4rem, 12vw, 8rem);
    font-weight: 900;
    margin-bottom: 2rem;
    color: #FF1493;
    line-height: 1;
    transition: all 0.5s ease;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    text-shadow: 3px 3px 0px #FFF, 6px 6px 0px rgba(255, 20, 147, 0.3);
    border-radius: 15px;
}

.hero-subtitle {
    font-size: clamp(1.875rem, 5vw, 2.25rem);
    font-weight: 700;
    margin-bottom: 1rem;
    color: #00BFFF;
    transition: all 0.5s ease;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    text-shadow: 2px 2px 0px #FFF, 4px 4px 0px rgba(0, 191, 255, 0.3);
}

.hero-description {
    font-size: clamp(1.125rem, 3vw, 1.25rem);
    font-weight: 400;
    margin-bottom: 1rem;
    color: #ffffff;
    opacity: 0.9;
    background: rgba(26, 15, 46, 0.9);
    padding: 1rem 2rem;
    border-radius: 25px;
    border: 2px solid rgba(255, 20, 147, 0.4);
    display: inline-block;
    backdrop-filter: blur(10px);
}

/* 音頻波形動畫 - Kawaii 版本 */
.audio-wave {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) scale(1.5);
    display: flex;
    align-items: end;
    gap: 0.5rem;
    z-index: 10;
}

.wave-bar {
    width: 0.5rem;
    background: linear-gradient(135deg, #FF1493, #FF69B4);
    border-radius: 10px;
    animation: wave-animation 1.2s ease-in-out infinite;
    transition: all 0.3s ease;
    border: 1px solid #FFF;
}

/* Kawaii 波形效果 */
.wave-bar.kawaii-bar {
    background: linear-gradient(135deg, #FF1493, #FF69B4);
    box-shadow: 0 2px 8px rgba(255, 20, 147, 0.4);
}

/* 不同的波形動畫 */
.wave-bar:nth-child(1) { animation-name: kawaii-wave-1; }
.wave-bar:nth-child(2) { animation-name: kawaii-wave-2; }
.wave-bar:nth-child(3) { animation-name: kawaii-wave-3; }
.wave-bar:nth-child(4) { animation-name: kawaii-wave-4; }
.wave-bar:nth-child(5) { animation-name: kawaii-wave-5; }
.wave-bar:nth-child(6) { animation-name: kawaii-wave-6; }
.wave-bar:nth-child(7) { animation-name: kawaii-wave-7; }
.wave-bar:nth-child(8) { animation-name: kawaii-wave-8; }
.wave-bar:nth-child(9) { animation-name: kawaii-wave-7; }
.wave-bar:nth-child(10) { animation-name: kawaii-wave-6; }
.wave-bar:nth-child(11) { animation-name: kawaii-wave-5; }
.wave-bar:nth-child(12) { animation-name: kawaii-wave-4; }

@keyframes kawaii-wave-1 {
    0%, 100% { height: 12px; }
    50% { height: 35px; }
}

@keyframes kawaii-wave-2 {
    0%, 100% { height: 18px; }
    50% { height: 42px; }
}

@keyframes kawaii-wave-3 {
    0%, 100% { height: 25px; }
    50% { height: 48px; }
}

@keyframes kawaii-wave-4 {
    0%, 100% { height: 15px; }
    50% { height: 38px; }
}

@keyframes kawaii-wave-5 {
    0%, 100% { height: 22px; }
    50% { height: 45px; }
}

@keyframes kawaii-wave-6 {
    0%, 100% { height: 10px; }
    50% { height: 32px; }
}

@keyframes kawaii-wave-7 {
    0%, 100% { height: 20px; }
    50% { height: 40px; }
}

@keyframes kawaii-wave-8 {
    0%, 100% { height: 16px; }
    50% { height: 36px; }
}

/* Footer - Kawaii 設計 暗色版本 */
.footer {
    background: linear-gradient(135deg, rgba(13, 6, 25, 0.98), rgba(26, 15, 46, 0.98));
    color: #FFF;
    padding: 2rem 0;
    border-top: 4px solid #FF1493;
    margin-top: auto;
    backdrop-filter: blur(10px);
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 0;
    right: 0;
    height: 10px;
    background: repeating-linear-gradient(
        90deg,
        #FF1493 0px,
        #FF1493 20px,
        #00BFFF 20px,
        #00BFFF 40px,
        #FFD700 40px,
        #FFD700 60px
    );
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    text-align: center;
}

.footer-text {
    font-size: 1rem;
    font-weight: 600;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.brand-name {
    color: #FFD700;
    font-weight: 800;
    transition: all 0.3s ease;
    text-shadow: 2px 2px 0px #FFF, 4px 4px 0px rgba(255, 215, 0, 0.5);
}

.brand-name:hover {
    color: #FFF;
    transform: scale(1.1);
}

/* 響應式設計 - Kawaii 版本 */
@media (max-width: 768px) {
    .hero-content {
        padding: 0 1rem;
    }
    
    .animated-logo {
        width: 200px;
        height: 200px;
    }
    
    .marquee-text {
        margin: 0 1rem;
        text-shadow: 1px 1px 0px #FFF, 2px 2px 0px rgba(255, 20, 147, 0.3);
    }
    
    .audio-wave {
        transform: translateX(-50%) scale(1);
        bottom: 1rem;
    }
    
    .wave-bar {
        width: 0.375rem;
        gap: 0.375rem;
    }
    
    .hero-description {
        padding: 0.75rem 1.5rem;
        margin: 0 1rem;
    }
}

@media (max-width: 480px) {
    .hero-content {
        padding: 0 0.5rem;
    }
    
    .animated-logo {
        width: 150px;
        height: 150px;
    }
    
    .hero-title {
        margin-bottom: 1.5rem;
        text-shadow: 2px 2px 0px #FFF, 4px 4px 0px rgba(255, 20, 147, 0.3);
    }
    
    .hero-subtitle {
        margin-bottom: 0.75rem;
        text-shadow: 1px 1px 0px #FFF, 2px 2px 0px rgba(0, 191, 255, 0.3);
    }
    
    .marquee-container {
        padding-top: 0.5rem;
        opacity: 0.15;
    }
}

/* 增強的視覺效果 - Kawaii 版本 */
@media (prefers-reduced-motion: no-preference) {
    /* 移除emoji裝飾，保持清潔的視覺效果 */
}

/* 改善可訪問性 */
@media (prefers-reduced-motion: reduce) {
    .marquee-content,
    .wave-bar,
    .animated-logo,
    .kawaii-bounce,
    .kawaii-wiggle,
    .kawaii-pulse,
    .kawaii-float,
    .kawaii-spin {
        animation: none !important;
    }
    
    .animated-logo:hover {
        transform: scale(1.05);
    }
}

/* 高對比度模式支援 */
@media (prefers-contrast: high) {
    .marquee-text {
        color: #ffffff;
        font-weight: 1000;
        text-shadow: 2px 2px 0px #000;
    }
    
    .hero-title {
        color: #ffffff;
        text-shadow: 3px 3px 0px #000;
    }
    
    .hero-subtitle {
        color: #ffffff;
        text-shadow: 2px 2px 0px #000;
    }
    
    .brand-name {
        color: #ffffff;
        text-shadow: 2px 2px 0px #000;
    }
} 