/* AI Neuro - 科技感 Web3 主題樣式 */

:root {
    --primary-color: #00d4ff;
    --secondary-color: #7c3aed;
    --accent-color: #f59e0b;
    --success-color: #10b981;
    --error-color: #ef4444;
    --warning-color: #f59e0b;
    
    --bg-primary: #0a0a0a;
    --bg-secondary: #111111;
    --bg-tertiary: #1a1a1a;
    --bg-card: rgba(255, 255, 255, 0.05);
    --bg-glass: rgba(255, 255, 255, 0.1);
    
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;
    
    --border-color: rgba(255, 255, 255, 0.1);
    --border-glow: rgba(0, 212, 255, 0.3);
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-glow: 0 0 20px rgba(0, 212, 255, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* 會員系統導航 */
.member-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
}

/* 儀表板導航 */
.dashboard-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
}

.nav-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    gap: 2rem;
    padding: 0 2rem;
}

.nav-link {
    color: var(--text-primary);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.nav-link:hover {
    background: var(--bg-glass);
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.logout-link {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

.logout-link:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: #ef4444;
    color: #ef4444;
}

/* 流動背景效果 */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(0, 212, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(124, 58, 237, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(245, 158, 11, 0.05) 0%, transparent 50%);
    animation: backgroundFlow 20s ease-in-out infinite;
    z-index: -1;
}

@keyframes backgroundFlow {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(30px, -30px) rotate(120deg); }
    66% { transform: translate(-20px, 20px) rotate(240deg); }
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    padding-top: 6rem; /* 為固定導航留出空間 */
}

/* Hero 區域 */
.hero {
    text-align: center;
    padding: 80px 0 60px;
    position: relative;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
    text-shadow: 0 0 30px rgba(0, 212, 255, 0.3);
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    font-weight: 300;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* 按鈕樣式 */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 212, 255, 0.4);
}

.btn-secondary {
    background: var(--bg-glass);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: var(--bg-tertiary);
    border-color: var(--primary-color);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.2);
}

.btn-download {
    background: linear-gradient(135deg, var(--success-color), var(--primary-color));
    color: white;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.btn-download:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
}

.btn-icon {
    font-size: 1.2em;
}

/* 卡片樣式 */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card:hover::before {
    opacity: 1;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
    border-color: var(--border-glow);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.card-header h2 {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--text-primary);
}

.card-badge {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* 下載區域 */
.download-section {
    margin: 40px 0;
}

.download-card {
    text-align: center;
}

.download-info {
    margin-bottom: 20px;
}

.file-info {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
}

.file-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-color);
}

.file-size {
    background: var(--bg-tertiary);
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.file-time {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.download-steps {
    margin-top: 30px;
    text-align: left;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.download-steps h3 {
    color: var(--text-primary);
    margin-bottom: 15px;
}

.download-steps ol {
    color: var(--text-secondary);
    padding-left: 20px;
}

.download-steps li {
    margin-bottom: 8px;
}

.download-steps code {
    background: var(--bg-tertiary);
    padding: 2px 8px;
    border-radius: 6px;
    color: var(--primary-color);
    font-family: 'Courier New', monospace;
}

/* 圖表區域 */
.charts-section {
    margin: 40px 0;
}

.connection-status {
    display: flex;
    align-items: center;
    gap: 8px;
}

.status-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--error-color);
    animation: pulse 2s infinite;
}

.status-indicator.connected {
    background: var(--success-color);
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.charts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.chart-container {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 20px;
    position: relative;
    transition: all 0.3s ease;
}

.chart-container:hover {
    border-color: var(--border-glow);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.1);
}

.chart-container canvas {
    width: 100% !important;
    height: 200px !important;
}

.chart-label {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-primary);
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

/* 功能卡片區域 */
.features-section {
    margin: 60px 0;
}

.features-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: var(--text-primary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 25px;
    backdrop-filter: blur(20px);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--border-glow);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.feature-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.feature-header h3 {
    font-size: 1.4rem;
    color: var(--text-primary);
}

.feature-badge {
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    color: white;
}

.feature-badge.deep-sleep {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
}

.feature-badge.meditation {
    background: linear-gradient(135deg, #10b981, #059669);
}

.feature-badge.relaxation {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.feature-badge.focus {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.feature-badge.integration {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

.feature-content {
    color: var(--text-secondary);
}

.feature-pros, .feature-cons {
    margin-bottom: 15px;
}

.feature-pros h4, .feature-cons h4 {
    color: var(--text-primary);
    font-size: 1rem;
    margin-bottom: 8px;
}

.feature-pros ul, .feature-cons ul {
    padding-left: 20px;
}

.feature-pros li, .feature-cons li {
    margin-bottom: 5px;
}

/* Toast 通知 */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 15px 20px;
    color: var(--text-primary);
    backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transform: translateX(400px);
    transition: transform 0.3s ease;
    z-index: 1000;
    max-width: 300px;
}

.toast.show {
    transform: translateX(0);
}

.toast.success {
    border-color: var(--success-color);
    box-shadow: 0 8px 32px rgba(16, 185, 129, 0.3);
}

.toast.error {
    border-color: var(--error-color);
    box-shadow: 0 8px 32px rgba(239, 68, 68, 0.3);
}

/* 手機設備特殊樣式 */
.mobile-device {
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
}

.mobile-device .container {
    padding: 0 10px;
}

.mobile-device .hero {
    padding: 20px 0;
}

.mobile-device .hero-title {
    font-size: 1.8rem;
    line-height: 1.2;
}

.mobile-device .hero-subtitle {
    font-size: 1rem;
    margin: 10px 0;
}

.mobile-device .btn {
    padding: 12px 20px;
    font-size: 14px;
    min-height: 44px; /* iOS 建議的最小觸控區域 */
}

.mobile-device .card {
    margin: 10px 0;
    padding: 15px;
}

.mobile-device .charts-grid {
    grid-template-columns: 1fr;
    gap: 10px;
}

.mobile-device .chart-container {
    height: 200px;
}

/* 檔案狀態樣式 */
.file-status {
    margin: 8px 0;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    text-align: center;
    transition: all 0.3s ease;
}

.file-status.available {
    background: rgba(16, 185, 129, 0.2);
    color: var(--success-color);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.file-status.unavailable {
    background: rgba(245, 158, 11, 0.2);
    color: var(--warning-color);
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.file-status.error {
    background: rgba(239, 68, 68, 0.2);
    color: var(--error-color);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.file-status .status-text {
    font-weight: 500;
}

/* 手機載入指示器 */
.mobile-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loader-content {
    text-align: center;
    color: var(--text-primary);
}

.loader-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(0, 212, 255, 0.3);
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 響應式設計 */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .charts-grid {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .card {
        padding: 20px;
    }
    
    .feature-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 40px 0 30px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .card {
        padding: 15px;
    }
    
    .chart-container {
        padding: 15px;
    }
    
    .chart-container canvas {
        height: 150px !important;
    }
}

/* 專注與冥想大卡片樣式 */
.attention-meditation-section {
    margin: 40px 0;
}

.attention-meditation-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.big-card {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1) 0%, rgba(124, 58, 237, 0.1) 100%);
    border: 2px solid rgba(0, 212, 255, 0.3);
    border-radius: 20px;
    padding: 32px;
    box-shadow: 
        0 8px 32px rgba(0, 212, 255, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.big-card:hover {
    transform: translateY(-4px);
    box-shadow: 
        0 12px 40px rgba(0, 212, 255, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.big-card-header {
    text-align: center;
    margin-bottom: 24px;
}

.big-card-icon {
    font-size: 48px;
    margin-bottom: 12px;
    filter: drop-shadow(0 0 10px rgba(0, 212, 255, 0.5));
}

.big-card h2 {
    font-size: 28px;
    font-weight: 700;
    color: #00d4ff;
    text-shadow: 0 0 15px rgba(0, 212, 255, 0.5);
    margin: 0 0 8px 0;
}

.big-card-subtitle {
    font-size: 16px;
    color: #64748b;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.big-card-content {
    text-align: center;
}

.big-number {
    font-size: 120px;
    font-weight: normal;
    line-height: 1;
    margin: 20px 0;
    transition: all 0.3s ease;
    text-shadow: 0 0 20px currentColor;
    animation: pulse 2s infinite;
}

/* 專注度卡片特殊樣式 */
.attention-card .big-number {
    color: #00d4ff;
}

/* 冥想度卡片特殊樣式 */
.meditation-card .big-number {
    color: #8b5cf6;
}

.big-card-description {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.big-card-progress {
    margin-top: 20px;
}

.big-progress-bar {
    width: 100%;
    height: 12px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid rgba(0, 212, 255, 0.3);
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5);
}

.big-progress-fill {
    height: 100%;
    width: 0%;
    border-radius: 6px;
    transition: width 0.5s ease;
    position: relative;
}

.attention-card .big-progress-fill {
    background: linear-gradient(90deg, #00d4ff 0%, #3b82f6 50%, #00d4ff 100%);
    box-shadow: 
        0 0 15px rgba(0, 212, 255, 0.8),
        inset 0 0 5px rgba(255, 255, 255, 0.3);
}

.meditation-card .big-progress-fill {
    background: linear-gradient(90deg, #8b5cf6 0%, #a855f7 50%, #8b5cf6 100%);
    box-shadow: 
        0 0 15px rgba(139, 92, 246, 0.8),
        inset 0 0 5px rgba(255, 255, 255, 0.3);
}

/* 動畫效果 */
@keyframes pulse {
    0%, 100% { 
        transform: scale(1);
        filter: brightness(1);
    }
    50% { 
        transform: scale(1.05);
        filter: brightness(1.2);
    }
}

/* 響應式設計 */
@media (max-width: 768px) {
    .attention-meditation-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .big-card {
        padding: 24px;
    }
    
        .big-number {
            font-size: 80px;
        }
    
    .big-card h2 {
        font-size: 24px;
    }
    
    .big-card-icon {
        font-size: 40px;
    }
}

/* 版權聲明樣式 */
.copyright-footer {
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.copyright-footer p {
    color: var(--text-muted);
    font-size: 14px;
    margin: 0;
    opacity: 0.8;
}

/* 3分鐘專注力測試樣式 */
.focus-test-section {
    margin: 30px 0;
}

.focus-test-card {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    border: 2px solid rgba(59, 130, 246, 0.3);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 8px 32px rgba(59, 130, 246, 0.2);
    backdrop-filter: blur(10px);
}

.test-header {
    text-align: center;
    margin-bottom: 30px;
}

.test-header h2 {
    font-size: 2rem;
    color: #1e40af;
    margin-bottom: 10px;
    font-weight: 700;
}

.test-header p {
    color: #64748b;
    font-size: 1.1rem;
}

.test-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin-bottom: 30px;
}

.test-display {
    display: flex;
    align-items: center;
    gap: 20px;
}

.attention-display {
    text-align: center;
    padding: 15px 20px;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 12px;
    border: 2px solid rgba(16, 185, 129, 0.3);
    min-width: 150px;
}

.attention-label {
    font-size: 0.9rem;
    color: #059669;
    margin-bottom: 5px;
    font-weight: 600;
}

.attention-score {
    font-size: 2rem;
    font-weight: 700;
    color: #10b981;
    text-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
    line-height: 1;
}

.start-btn {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

.start-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.6);
}

.start-btn:disabled {
    background: #94a3b8;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.timer-display {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e40af;
    padding: 10px 20px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 10px;
    border: 2px solid rgba(59, 130, 246, 0.3);
}

.test-results {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 15px;
    padding: 25px;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.result-main {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    border-radius: 15px;
    border: 2px solid rgba(59, 130, 246, 0.3);
}

.result-label {
    font-size: 1.2rem;
    color: #374151;
    margin-bottom: 10px;
    font-weight: 600;
}

.max-score {
    font-size: 4rem;
    font-weight: 900;
    color: #1e40af;
    text-shadow: 0 0 20px rgba(59, 130, 246, 0.5);
    line-height: 1;
}

.result-details h3 {
    font-size: 1.3rem;
    color: #374151;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 600;
}

.wave-scores {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.wave-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: rgba(59, 130, 246, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(59, 130, 246, 0.1);
    transition: all 0.3s ease;
}

.wave-item:hover {
    background: rgba(59, 130, 246, 0.1);
    transform: translateY(-1px);
}

.wave-name {
    font-size: 0.95rem;
    color: #374151;
    font-weight: 500;
}

.wave-score {
    font-size: 1.1rem;
    color: #1e40af;
    font-weight: 700;
    background: rgba(59, 130, 246, 0.1);
    padding: 4px 12px;
    border-radius: 6px;
}

/* 響應式設計 - 測試功能 */
@media (max-width: 768px) {
    .test-controls {
        flex-direction: column;
        gap: 20px;
    }
    
    .test-display {
        flex-direction: column;
        gap: 15px;
        width: 100%;
    }
    
    .start-btn {
        width: 100%;
        max-width: 300px;
    }
    
    .attention-display {
        width: 100%;
        max-width: 200px;
    }
    
    .attention-score {
        font-size: 1.8rem;
    }
    
    .max-score {
        font-size: 3rem;
    }
    
    .wave-scores {
        grid-template-columns: 1fr;
    }
}

/* 頁腳樣式 - 行式布局 */
.footer {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
    border-top: 1px solid var(--border-color);
    margin-top: 4rem;
    padding: 2rem 0;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
}

.footer-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

.footer-row:last-child {
    border-bottom: none;
}

.footer-item {
    flex: 1;
    text-align: center;
}

.footer-item h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.footer-item h4 {
    color: var(--text-primary);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.footer-item p {
    color: var(--text-secondary);
    margin-bottom: 0.3rem;
    line-height: 1.6;
    font-size: 0.9rem;
}

.footer-item a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-item a:hover {
    color: var(--accent-color);
}

/* 平台圖示 */
.platform-icons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.platform-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
}

.platform-icon {
    font-size: 1.5rem;
    margin-bottom: 0.2rem;
}

.platform-item span:last-child {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* 法律連結 */
.legal-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.legal-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
    position: relative;
    padding: 0.5rem 1rem;
    border-radius: 4px;
}

.legal-link:hover {
    color: var(--primary-color);
    background: rgba(0, 212, 255, 0.1);
}

/* 版權資訊 */
.copyright {
    color: var(--text-muted);
    font-size: 0.9rem;
    text-align: center;
}

/* 響應式設計 */
@media (max-width: 768px) {
    .footer {
        padding: 1.5rem 0;
    }
    
    .footer-row {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .platform-icons {
        gap: 1rem;
    }
    
    .legal-links {
        gap: 1rem;
    }
    
    .legal-link {
        font-size: 0.8rem;
        padding: 0.3rem 0.8rem;
    }
}