/* ===== 全局样式 ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #6366f1;
    --primary-hover: #4f46e5;
    --secondary-color: #8b5cf6;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --bg-primary: #ffffff;
    --bg-secondary: #f9fafb;
    --bg-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --border-color: #e5e7eb;
    --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-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    background: var(--bg-gradient);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

/* ===== Logo频道按钮 ===== */
.channel-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-primary);
    padding: 8px 16px;
    border-radius: 50px;
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 600;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
    z-index: 1000;
}

.channel-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
    background: var(--primary-color);
    color: white;
}

.logo-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-color);
}

.channel-btn:hover .logo-circle {
    border-color: white;
}

.channel-btn-mini {
    top: 80px;
    padding: 6px 12px;
    font-size: 14px;
}

.logo-circle-mini {
    width: 28px;
    height: 28px;
}

/* ===== 首页样式 ===== */
.welcome-card {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-xl);
    margin-top: 40px;
}

.main-title {
    text-align: center;
    color: var(--primary-color);
    font-size: 32px;
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.emoji {
    font-size: 48px;
}

.subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    font-weight: normal;
}

.intro-section h2 {
    color: var(--text-primary);
    font-size: 20px;
    margin: 25px 0 15px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.greeting {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 15px;
}

.intro-text p {
    margin-bottom: 12px;
    color: var(--text-secondary);
}

.answer-guide {
    background: var(--bg-secondary);
    padding: 20px;
    border-radius: var(--radius-md);
    margin: 20px 0;
}

.answer-guide h3 {
    font-size: 16px;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.options-intro {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.option-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    background: white;
    border-radius: var(--radius-sm);
}

.option-item .icon {
    font-size: 20px;
}

.tips-box {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    padding: 20px;
    border-radius: var(--radius-md);
    margin: 20px 0;
}

.tips-box h3 {
    font-size: 16px;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.tips-box ul {
    list-style: none;
    padding-left: 0;
}

.tips-box li {
    padding: 6px 0;
    color: var(--text-secondary);
}

.tips-box li:before {
    content: "• ";
    color: var(--warning-color);
    font-weight: bold;
    margin-right: 8px;
}

.start-btn {
    width: 100%;
    background: var(--bg-gradient);
    color: white;
    border: none;
    padding: 18px 32px;
    font-size: 18px;
    font-weight: 600;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 30px;
}

.start-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.start-btn:active {
    transform: translateY(0);
}

.btn-icon {
    font-size: 24px;
    transition: transform 0.3s ease;
}

.start-btn:hover .btn-icon {
    transform: translateX(5px);
}

.copyright {
    text-align: center;
    color: var(--text-secondary);
    font-size: 14px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

/* ===== 测试页面样式 ===== */
.test-container {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

.progress-bar-container {
    background: white;
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-md);
    position: relative;
}

.progress-bar {
    height: 8px;
    background: var(--bg-gradient);
    border-radius: 4px;
    transition: width 0.3s ease;
    width: 2%;
}

.progress-text {
    text-align: center;
    margin-top: 10px;
    font-weight: 600;
    color: var(--primary-color);
    font-size: 16px;
}

.test-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-xl);
}

.question-section {
    margin-bottom: 40px;
}

.question-number {
    color: var(--primary-color);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.question-text {
    font-size: 22px;
    color: var(--text-primary);
    line-height: 1.6;
    font-weight: 500;
}

.dimension-tag {
    display: inline-block;
    margin-top: 12px;
    padding: 6px 12px;
    background: var(--bg-secondary);
    color: var(--text-secondary);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.answers-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 30px;
}

.answer-btn {
    background: white;
    border: 2px solid var(--border-color);
    padding: 20px;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 15px;
}

.answer-btn:hover {
    border-color: var(--primary-color);
    background: var(--bg-secondary);
    transform: translateX(5px);
}

.answer-btn.selected {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    box-shadow: var(--shadow-md);
}

.answer-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.answer-label {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    min-width: 80px;
}

.answer-desc {
    font-size: 14px;
    color: var(--text-secondary);
}

.navigation-section {
    display: flex;
    gap: 12px;
    margin-bottom: 30px;
}

.nav-btn {
    flex: 1;
    padding: 14px 24px;
    border: 2px solid var(--border-color);
    background: white;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.nav-btn:hover:not(:disabled) {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: var(--bg-secondary);
}

.nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.nav-next {
    background: var(--bg-gradient);
    color: white;
    border: none;
}

.nav-next:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.dots-navigation {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    padding: 20px 0;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot:hover {
    background: var(--primary-color);
    transform: scale(1.3);
}

.dot.answered {
    background: var(--success-color);
}

.dot.current {
    background: var(--primary-color);
    transform: scale(1.5);
}

/* ===== 弹窗样式 ===== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.modal.show {
    display: flex;
}

.modal-content {
    background: white;
    padding: 40px;
    border-radius: var(--radius-lg);
    max-width: 500px;
    width: 90%;
    box-shadow: var(--shadow-xl);
    text-align: center;
}

.modal-content h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.modal-content p {
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.modal-warning {
    color: var(--warning-color);
    font-weight: 600;
}

.incomplete-info {
    color: var(--danger-color);
    font-weight: 600;
}

.modal-buttons {
    display: flex;
    gap: 12px;
    margin-top: 30px;
}

.modal-btn {
    flex: 1;
    padding: 14px 24px;
    border: none;
    border-radius: var(--radius-md);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-cancel {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.modal-cancel:hover {
    background: var(--border-color);
}

.modal-confirm {
    background: var(--bg-gradient);
    color: white;
}

.modal-confirm:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ===== 响应式设计 ===== */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    
    .welcome-card,
    .test-card {
        padding: 24px;
    }
    
    .main-title {
        font-size: 24px;
    }
    
    .question-text {
        font-size: 18px;
    }
    
    .answer-btn {
        padding: 16px;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .answer-label {
        min-width: auto;
    }
    
    .channel-btn {
        top: 10px;
        right: 10px;
        padding: 6px 12px;
        font-size: 14px;
    }
    
    .logo-circle {
        width: 28px;
        height: 28px;
    }
    
    .modal-content {
        padding: 24px;
    }
}

@media (max-width: 480px) {
    .navigation-section {
        flex-direction: column;
    }
    
    .modal-buttons {
        flex-direction: column;
    }
    
    .start-btn {
        font-size: 16px;
        padding: 16px 24px;
    }
}
