/* ========================================
   大学生成长职途助手 - 全局样式
   ======================================== */

/* CSS变量 - 主题色彩 */
:root {
    --primary: #4A90E2;
    --secondary: #67C23A;
    --bg-light: #f5f7fa;
    --bg-white: #fff;
    --text-primary: #303133;
    --text-secondary: #606266;
    --text-light: #909399;
    --border: #dcdfe6;
    --shadow: 0 2px 12px rgba(0,0,0,0.1);
    --error: #f56c6c;
}

/* 全局重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: var(--bg-light);
    color: var(--text-primary);
    line-height: 1.6;
}

/* ========================================
   布局容器
   ======================================== */
.app {
    max-width: 1200px;
    margin: 0 auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.main-content {
    flex: 1;
    padding: 2rem;
}

/* ========================================
   导航栏
   ======================================== */
.navbar {
    background: var(--bg-white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary);
}

.theme-toggle {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: background 0.3s;
    min-height: 48px;
    min-width: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle:hover {
    background: rgba(0,0,0,0.1);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.welcome-user {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.5rem 1rem;
    background: rgba(103, 194, 58, 0.1);
    border-radius: 20px;
}

.btn-logout {
    padding: 0.5rem 1rem;
    background: transparent;
    color: #ff6b6b;
    border: 1px solid #ff6b6b;
    border-radius: 6px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-logout:hover {
    background: #ff6b6b;
    color: white;
}

.btn-records {
    padding: 0.5rem 1rem;
    background: rgba(0, 102, 204, 0.1);
    color: #0066cc;
    border: 1px solid #0066cc;
    border-radius: 6px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-records:hover {
    background: #0066cc;
    color: white;
}

/* ========================================
   测评记录页面
   ======================================== */
.records-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
}

.records-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.records-header h2 {
    color: var(--text-primary);
    font-size: 1.8rem;
    font-weight: 700;
}

.records-list {
    display: grid;
    gap: 1rem;
}

.record-card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid var(--border);
    transition: all 0.3s;
    cursor: pointer;
}

.record-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: var(--primary);
}

.record-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.record-card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.record-card-date {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.record-card-info {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.record-info-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.record-info-item .label {
    color: var(--text-secondary);
    font-weight: 500;
}

.record-info-item .value {
    color: var(--text-primary);
    font-weight: 600;
}

.record-scores {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.record-score-item {
    padding: 0.35rem 0.75rem;
    background: rgba(0, 102, 204, 0.08);
    border-radius: 20px;
    font-size: 0.85rem;
}

.record-score-item .score-label {
    color: #0066cc;
    font-weight: 600;
}

.record-score-item .score-value {
    color: var(--text-primary);
    margin-left: 0.25rem;
}

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--card-bg);
    border-radius: 16px;
    border: 2px dashed var(--border);
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.empty-state p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.nav-links {
    display: flex;
    gap: 1rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-secondary);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    transition: all 0.3s;
    cursor: pointer;
}

.nav-link:hover,
.nav-link.active {
    background: var(--primary);
    color: white;
}

/* ========================================
   页面切换动画
   ======================================== */
.page {
    display: none;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.page.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   首页样式 - 桌面端默认
   ======================================== */
.hero {
    position: relative;
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #4A90E2 0%, #6BA3E0 30%, #67C23A 100%);
    color: white;
    border-radius: 16px;
    margin: 1rem 0 2rem;
    overflow: hidden;
    min-height: 500px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* 动态背景装饰 */
.hero::before,
.hero::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    animation: floatBg 8s ease-in-out infinite;
}

.hero::before {
    width: 400px;
    height: 400px;
    top: -150px;
    right: -80px;
    animation-delay: 0s;
}

.hero::after {
    width: 300px;
    height: 300px;
    bottom: -100px;
    left: -60px;
    animation-delay: -4s;
}

@keyframes floatBg {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(15px, -20px) scale(1.05);
    }
    66% {
        transform: translate(-10px, 10px) scale(0.95);
    }
}

.hero > * {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    text-shadow: 0 2px 12px rgba(0,0,0,0.2);
    line-height: 1.3;
}

.hero .slogan {
    font-size: 1.2rem;
    opacity: 0.95;
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* 阶梯成长图形 */
.growth-ladder {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 0.5rem;
    margin: 2.5rem 0;
    padding: 2rem;
    flex-wrap: wrap;
}

.ladder-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.ladder-step {
    width: 56px;
    height: 56px;
    background: rgba(255,255,255,0.2);
    border: 2px solid rgba(255,255,255,0.5);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    font-weight: bold;
    backdrop-filter: blur(4px);
    transition: all 0.3s;
}

.ladder-item:nth-child(1) .ladder-step { height: 44px; }
.ladder-item:nth-child(3) .ladder-step { height: 68px; }
.ladder-item:nth-child(5) .ladder-step { height: 92px; }
.ladder-item:nth-child(7) .ladder-step { height: 116px; }

.ladder-item:hover .ladder-step {
    background: rgba(255,255,255,0.35);
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(255,255,255,0.3);
}

.ladder-label {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-top: 0.5rem;
}

.ladder-arrow {
    font-size: 1.4rem;
    opacity: 0.7;
    margin-bottom: 1.2rem;
}

.ladder-future {
    height: 140px;
    width: 70px;
    background: rgba(255,255,255,0.08);
    border: 2px dashed rgba(255,255,255,0.4);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    opacity: 0.85;
    font-weight: 500;
    letter-spacing: 2px;
    animation: futurePulse 3s ease-in-out infinite;
}

@keyframes futurePulse {
    0%, 100% {
        border-color: rgba(255,255,255,0.3);
    }
    50% {
        border-color: rgba(255,255,255,0.6);
    }
}

.footer-note {
    font-size: 0.9rem;
    opacity: 0.7;
    margin-top: 2rem;
    letter-spacing: 0.5px;
}

.btn-large {
    min-width: 220px;
    height: 56px;
    font-size: 1.1rem;
    padding: 0 40px;
}

/* ========================================
   按钮样式
   ======================================== */
.btn-primary {
    background: var(--secondary);
    color: white;
    border: none;
    padding: 12px 32px;
    border-radius: 25px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    min-height: 48px;
    box-shadow: 0 2px 8px rgba(103,194,58,0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(103,194,58,0.45);
}

.btn-primary:active {
    transform: translateY(0) scale(0.97);
}

.btn-secondary {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border);
    padding: 12px 32px;
    border-radius: 25px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    min-height: 48px;
}

.btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-secondary:active {
    transform: scale(0.98);
}

.btn-back {
    background: none;
    border: none;
    color: var(--primary);
    font-size: 1rem;
    cursor: pointer;
    padding: 0.5rem;
    transition: color 0.3s;
    min-height: 48px;
    min-width: 48px;
}

.btn-back:hover {
    color: #3a7bc8;
}

.btn-back:active {
    transform: scale(0.95);
}

/* ========================================
   表单样式
   ======================================== */
.form-container {
    max-width: 500px;
    margin: 0 auto;
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.form-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.form-container h2 {
    flex: 1;
    text-align: center;
    margin-bottom: 0;
    color: var(--text-primary);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.required {
    color: var(--error);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(74,144,226,0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: background 0.2s;
}

.checkbox-item:hover {
    background: var(--bg-light);
}

.checkbox-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
}

.error-message {
    color: var(--error);
    font-size: 0.85rem;
    display: block;
    margin-top: 0.25rem;
    min-height: 1.2rem;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 2rem;
}

.form-actions .btn-primary {
    width: 100%;
}

/* ========================================
   测评页样式
   ======================================== */
.test-container {
    max-width: 700px;
    margin: 0 auto;
}

.test-header {
    text-align: center;
    margin-bottom: 2rem;
}

.test-header h2 {
    margin-bottom: 1rem;
}

.progress-track {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 0.5rem;
    padding: 0.75rem 0;
    overflow-x: auto;
}

.progress-node {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--border);
    border: 2px solid var(--border);
    transition: all 0.3s;
    flex-shrink: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 500;
    color: var(--text-secondary);
}

.progress-node:hover {
    transform: scale(1.15);
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.progress-node.completed {
    background: var(--secondary);
    border-color: var(--secondary);
    color: white;
}

.progress-node.completed-unanswered {
    background: var(--border);
    border-color: var(--border);
    color: var(--text-light);
}

.progress-node.current {
    background: var(--secondary);
    border-color: var(--secondary);
    color: white;
    transform: scale(1.3);
    box-shadow: 0 0 12px rgba(103,194,58,0.6);
    cursor: default;
}

.progress-node.current:hover {
    transform: scale(1.3);
}

.progress-line {
    width: 12px;
    height: 2px;
    background: var(--border);
    flex-shrink: 0;
    transition: background 0.3s;
}

.progress-line.completed {
    background: var(--secondary);
}

.progress-text {
    font-size: 0.9rem;
    color: var(--text-light);
    text-align: center;
}

.question-container {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

.question-number {
    width: 36px;
    height: 36px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-bottom: 1rem;
}

.question-text {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--text-primary);
    line-height: 1.8;
}

.options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.option {
    display: flex;
    align-items: center;
    padding: 1rem;
    border: 2px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.option:hover {
    border-color: var(--primary);
    background: rgba(74,144,226,0.05);
}

.option.selected {
    border-color: var(--primary);
    background: rgba(74,144,226,0.1);
}

.option input[type="radio"] {
    margin-right: 1rem;
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
}

.test-actions {
    display: flex;
    justify-content: space-between;
}

.test-actions .btn-primary {
    min-width: 120px;
}

.test-actions .btn-secondary {
    min-width: 100px;
}

/* ========================================
   结果页样式
   ======================================== */
.result-page {
    max-width: 800px;
    margin: 0 auto;
}

.result-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.result-header h2 {
    flex: 1;
    text-align: center;
}

.result-module {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    margin-bottom: 1.5rem;
}

.result-module h3 {
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    font-size: 1.2rem;
}

/* 雷达图 */
.radar-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

#radar-canvas {
    max-width: 100%;
    height: auto;
}

.score-display {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.score-display .score-item {
    background: var(--bg-light);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 60px;
}

.score-display .label {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--primary);
}

.score-display .value {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* 发展路线 */
.routes-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.route-category {
    background: var(--bg-light);
    border-radius: 12px;
    padding: 1.25rem;
    border: 1px solid var(--border);
}

.route-category-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--border);
}

.route-category-icon {
    font-size: 1.5rem;
}

.route-category-name {
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--text-primary);
}

.route-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.route-card {
    background: var(--white);
    padding: 1.25rem;
    border-radius: 8px;
    border-left: 4px solid var(--primary);
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.route-card-title {
    font-weight: bold;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 1.05rem;
}

.route-card-detail {
    color: var(--text-secondary);
    line-height: 1.6;
    word-break: break-word;
    margin-bottom: 0.5rem;
}

.route-salary {
    margin-top: 0.75rem;
    padding: 0.5rem 0.75rem;
    background: rgba(74, 144, 226, 0.1);
    border-radius: 6px;
    display: inline-block;
}

.salary-label {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.salary-value {
    color: var(--primary);
    font-weight: bold;
    font-size: 0.9rem;
}

.route-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.route-name {
    font-weight: bold;
    color: var(--text-primary);
}

.route-match {
    background: var(--secondary);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: bold;
}

.route-desc {
    color: var(--text-secondary);
    line-height: 1.6;
    word-break: break-word;
}

/* 能力分析 */
.abilities-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.ability-direction-section {
    background: var(--bg-light);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.ability-direction-header {
    background: linear-gradient(135deg, var(--primary), #667eea);
    color: white;
    padding: 0.75rem 1rem;
    font-weight: 600;
    font-size: 1rem;
}

.ability-items-wrapper {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.ability-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-light);
    border-radius: 8px;
}

.ability-num {
    width: 32px;
    height: 32px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
}

.ability-content h4 {
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.ability-content p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* 能力差距分析增强样式 */
.ability-item.gap-high {
    border-left: 4px solid #f56c6c;
    background: linear-gradient(135deg, #fff5f5, var(--bg-light));
}

.ability-item.gap-medium {
    border-left: 4px solid #e6a23c;
    background: linear-gradient(135deg, #fffbf0, var(--bg-light));
}

.ability-item.gap-low {
    border-left: 4px solid #67c23a;
    background: linear-gradient(135deg, #f0f9ff, var(--bg-light));
}

.ability-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.ability-status {
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: bold;
}

.ability-status.gap-high {
    background: linear-gradient(135deg, #f56c6c, #e04040);
    color: white;
}

.ability-status.gap-medium {
    background: linear-gradient(135deg, #e6a23c, #d8911a);
    color: white;
}

.ability-status.gap-low {
    background: linear-gradient(135deg, #67c23a, #5daf34);
    color: white;
}

.gap-detail {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.gap-suggestion {
    background: rgba(74, 144, 226, 0.1);
    padding: 0.75rem;
    border-radius: 6px;
    margin-top: 0.5rem;
}

.suggestion-label {
    font-weight: bold;
    color: var(--primary);
}

.suggestion-text {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* 任务清单 */
.tasks-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.task-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-light);
    border-radius: 8px;
    border-left: 3px solid var(--primary);
}

.task-priority {
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: bold;
    flex-shrink: 0;
}

.task-priority.high {
    background: linear-gradient(135deg, #f56c6c, #e04040);
    color: white;
}

.task-priority.medium {
    background: linear-gradient(135deg, #e6a23c, #d8911a);
    color: white;
}

.task-priority.low {
    background: var(--primary);
    color: white;
}

.task-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-light);
    border-radius: 8px;
    border-left: 3px solid var(--primary);
    transition: all 0.3s;
    cursor: default;
}

.task-item:hover {
    transform: translateX(4px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.task-item.priority-high {
    border-left-color: #f56c6c;
}

.task-item.priority-medium {
    border-left-color: #e6a23c;
}

.task-item.priority-low {
    border-left-color: var(--primary);
}

.task-item.completed {
    opacity: 0.6;
    border-left-color: var(--secondary);
}

.task-text {
    flex: 1;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.6;
    word-break: break-word;
}

.result-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

/* ========================================
   登录注册页面
   ======================================== */
.page#login,
.page#register {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 100;
}

.page#login .navbar,
.page#register .navbar {
    display: none !important;
}

.page#login .main-content,
.page#register .main-content {
    padding: 0;
    min-height: 100vh;
}

.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 2rem;
    background: linear-gradient(180deg, #87CEEB 0%, #B0E0E6 30%, #98D8C8 60%, #7CB342 100%);
    position: relative;
    overflow: hidden;
}

.auth-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 20% 10%, rgba(255, 255, 200, 0.4) 0%, transparent 40%),
                radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.3) 0%, transparent 35%),
                radial-gradient(circle at 50% 80%, rgba(100, 200, 100, 0.2) 0%, transparent 50%);
    animation: skyMove 20s ease-in-out infinite;
}

@keyframes skyMove {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(2%, -2%) rotate(1deg); }
    66% { transform: translate(-2%, 2%) rotate(-1deg); }
}

.mountain-range {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 45%;
    pointer-events: none;
}

.mountain {
    position: absolute;
    bottom: 0;
    width: 0;
    height: 0;
    border-style: solid;
}

.mountain-1 {
    left: -5%;
    border-width: 0 250px 300px 250px;
    border-color: transparent transparent #4CAF50 transparent;
    animation: mountainGlow 8s ease-in-out infinite;
}

.mountain-2 {
    left: 15%;
    border-width: 0 300px 380px 300px;
    border-color: transparent transparent #388E3C transparent;
    animation: mountainGlow 8s ease-in-out infinite 1s;
}

.mountain-3 {
    left: 40%;
    border-width: 0 200px 250px 200px;
    border-color: transparent transparent #43A047 transparent;
    animation: mountainGlow 8s ease-in-out infinite 2s;
}

.mountain-4 {
    left: 65%;
    border-width: 0 280px 350px 280px;
    border-color: transparent transparent #367C39 transparent;
    animation: mountainGlow 8s ease-in-out infinite 0.5s;
}

.mountain-5 {
    right: -5%;
    border-width: 0 220px 280px 220px;
    border-color: transparent transparent #4CAF50 transparent;
    animation: mountainGlow 8s ease-in-out infinite 1.5s;
}

@keyframes mountainGlow {
    0%, 100% { opacity: 0.9; }
    50% { opacity: 1; }
}

.mountain-snow {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-style: solid;
}

.mountain-1 .mountain-snow {
    border-width: 0 40px 50px 40px;
    border-color: transparent transparent rgba(255,255,255,0.8) transparent;
}

.mountain-2 .mountain-snow {
    border-width: 0 50px 65px 50px;
    border-color: transparent transparent rgba(255,255,255,0.85) transparent;
}

.mountain-3 .mountain-snow {
    border-width: 0 35px 45px 35px;
    border-color: transparent transparent rgba(255,255,255,0.8) transparent;
}

.mountain-4 .mountain-snow {
    border-width: 0 45px 60px 45px;
    border-color: transparent transparent rgba(255,255,255,0.85) transparent;
}

.mountain-5 .mountain-snow {
    border-width: 0 38px 48px 38px;
    border-color: transparent transparent rgba(255,255,255,0.8) transparent;
}

.grass-field {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 25%;
    background: linear-gradient(180deg, #66BB6A 0%, #4CAF50 50%, #388E3C 100%);
}

.grass-blade {
    position: absolute;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, #81C784, #4CAF50);
    border-radius: 2px 2px 0 0;
    animation: grassSway 3s ease-in-out infinite;
}

.grass-blade:nth-child(odd) {
    animation-delay: 0s;
}

.grass-blade:nth-child(even) {
    animation-delay: 1.5s;
}

@keyframes grassSway {
    0%, 100% { transform: rotate(-5deg); }
    50% { transform: rotate(5deg); }
}

.stream {
    position: absolute;
    bottom: 15%;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 30px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(74, 144, 226, 0.3) 10%, 
        rgba(74, 144, 226, 0.5) 20%,
        rgba(74, 144, 226, 0.4) 30%,
        rgba(74, 144, 226, 0.6) 40%,
        rgba(74, 144, 226, 0.35) 50%,
        rgba(74, 144, 226, 0.5) 60%,
        rgba(74, 144, 226, 0.4) 70%,
        rgba(74, 144, 226, 0.6) 80%,
        rgba(74, 144, 226, 0.3) 90%,
        transparent 100%);
    border-radius: 50%;
    animation: streamFlow 4s linear infinite;
}

@keyframes streamFlow {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.sun {
    position: absolute;
    top: 8%;
    right: 15%;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, #FFD700 0%, #FFA500 50%, transparent 70%);
    border-radius: 50%;
    animation: sunGlow 6s ease-in-out infinite;
    box-shadow: 0 0 60px rgba(255, 215, 0, 0.5), 0 0 100px rgba(255, 165, 0, 0.3);
}

@keyframes sunGlow {
    0%, 100% { transform: scale(1); opacity: 0.9; }
    50% { transform: scale(1.05); opacity: 1; }
}

.cloud {
    position: absolute;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 50px;
    animation: cloudFloat 25s linear infinite;
}

.cloud::before,
.cloud::after {
    content: '';
    position: absolute;
    background: inherit;
    border-radius: 50%;
}

.cloud-1 {
    top: 12%;
    left: -15%;
    width: 100px;
    height: 40px;
    animation-duration: 30s;
}

.cloud-1::before {
    width: 50px;
    height: 50px;
    top: -25px;
    left: 15px;
}

.cloud-1::after {
    width: 35px;
    height: 35px;
    top: -15px;
    left: 50px;
}

.cloud-2 {
    top: 20%;
    right: -12%;
    width: 120px;
    height: 45px;
    animation-duration: 35s;
    animation-delay: -10s;
}

.cloud-2::before {
    width: 60px;
    height: 60px;
    top: -30px;
    left: 20px;
}

.cloud-2::after {
    width: 40px;
    height: 40px;
    top: -18px;
    left: 65px;
}

.cloud-3 {
    top: 8%;
    left: 40%;
    width: 80px;
    height: 30px;
    animation-duration: 40s;
    animation-delay: -20s;
}

.cloud-3::before {
    width: 40px;
    height: 40px;
    top: -20px;
    left: 10px;
}

.cloud-3::after {
    width: 28px;
    height: 28px;
    top: -12px;
    left: 40px;
}

@keyframes cloudFloat {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(100vw + 200px)); }
}

.bird {
    position: absolute;
    font-size: 24px;
    opacity: 0.7;
    animation: birdFly 15s linear infinite;
}

.bird-1 {
    top: 18%;
    left: -5%;
    animation-duration: 20s;
}

.bird-2 {
    top: 25%;
    left: -8%;
    animation-duration: 25s;
    animation-delay: -5s;
    font-size: 18px;
}

.bird-3 {
    top: 15%;
    left: -3%;
    animation-duration: 18s;
    animation-delay: -10s;
    font-size: 20px;
}

@keyframes birdFly {
    0% { transform: translateX(0) translateY(0); opacity: 0; }
    10% { opacity: 0.7; }
    50% { transform: translateX(50vw) translateY(-30px); }
    90% { opacity: 0.7; }
    100% { transform: translateX(105vw) translateY(20px); opacity: 0; }
}

.flower {
    position: absolute;
    bottom: 20%;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    animation: flowerSway 4s ease-in-out infinite;
}

.flower::before {
    content: '';
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 30px;
    background: #4CAF50;
}

.flower-1 {
    left: 10%;
    background: radial-gradient(circle, #FF69B4, #FF1493);
    animation-delay: 0s;
}

.flower-2 {
    left: 25%;
    background: radial-gradient(circle, #FFD700, #FFA500);
    animation-delay: 0.5s;
}

.flower-3 {
    left: 75%;
    background: radial-gradient(circle, #FF69B4, #FF1493);
    animation-delay: 1s;
}

.flower-4 {
    left: 90%;
    background: radial-gradient(circle, #FFD700, #FFA500);
    animation-delay: 1.5s;
}

@keyframes flowerSway {
    0%, 100% { transform: rotate(-8deg) scale(1); }
    50% { transform: rotate(8deg) scale(1.05); }
}

.auth-card {
    background: rgba(255, 255, 255, 0.18);
    border-radius: 32px;
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.12), 
                0 0 0 1px rgba(255, 255, 255, 0.3);
    padding: 3.5rem;
    width: 100%;
    max-width: 460px;
    position: relative;
    z-index: 10;
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    animation: cardFloat 8s ease-in-out infinite;
    border: 1px solid rgba(255, 255, 255, 0.4);
}

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

.auth-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, #4CAF50, #8BC34A, #CDDC39, #4CAF50);
    background-size: 200% 100%;
    animation: gradientFlow 4s linear infinite;
    border-radius: 32px 32px 0 0;
}

@keyframes gradientFlow {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

.auth-header {
    text-align: center;
    margin-bottom: 3rem;
}

.auth-logo {
    font-size: 3rem;
    font-weight: 900;
    background: linear-gradient(135deg, #1B5E20 0%, #33691E 50%, #558B2F 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    letter-spacing: 3px;
    text-shadow: 0 2px 10px rgba(76, 175, 80, 0.3);
}

.auth-header h2 {
    font-size: 2rem;
    color: #1B5E20;
    margin-bottom: 0.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.auth-header p {
    color: #33691E;
    font-size: 1rem;
    opacity: 0.85;
}

.auth-container .form-group {
    margin-bottom: 1.5rem;
}

.auth-container .form-group label {
    display: block;
    margin-bottom: 0.6rem;
    font-weight: 600;
    color: #1B5E20;
    font-size: 0.95rem;
}

.auth-container .form-group label .required {
    color: #E53935;
    margin-left: 2px;
}

.auth-container .form-group input {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid rgba(76, 175, 80, 0.2);
    border-radius: 16px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.5);
    color: #1B5E20;
}

.auth-container .form-group input:focus {
    outline: none;
    border-color: #4CAF50;
    background: rgba(255, 255, 255, 0.85);
    box-shadow: 0 0 0 4px rgba(76, 175, 80, 0.15), 0 4px 20px rgba(76, 175, 80, 0.1);
}

.auth-container .form-group input::placeholder {
    color: rgba(27, 94, 32, 0.4);
}

.captcha-group {
    margin-bottom: 1.5rem;
}

.captcha-row {
    display: flex;
    gap: 0.875rem;
}

.captcha-row input {
    flex: 1;
    padding: 1rem 1.25rem;
    border: 2px solid rgba(76, 175, 80, 0.2);
    border-radius: 16px;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
    color: #1B5E20;
}

.captcha-row input:focus {
    outline: none;
    border-color: #4CAF50;
    background: rgba(255, 255, 255, 0.85);
    box-shadow: 0 0 0 4px rgba(76, 175, 80, 0.15);
}

#login .btn-primary,
#register .btn-primary {
    background: linear-gradient(135deg, #4CAF50 0%, #66BB6A 50%, #8BC34A 100%);
    color: white;
    border: none;
    padding: 15px 32px;
    border-radius: 30px;
    font-size: 1.15rem;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 52px;
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
    font-weight: 700;
    letter-spacing: 1px;
}

#login .btn-primary:hover,
#register .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(76, 175, 80, 0.5);
    background: linear-gradient(135deg, #388E3C 0%, #4CAF50 50%, #66BB6A 100%);
}

#login .btn-primary:active,
#register .btn-primary:active {
    transform: translateY(-1px) scale(0.98);
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.35);
}

.btn-captcha {
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, #66BB6A 0%, #8BC34A 100%);
    border: none;
    border-radius: 16px;
    color: white;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(102, 187, 106, 0.35);
    font-weight: 600;
}

.btn-captcha:hover:not(:disabled) {
    background: linear-gradient(135deg, #4CAF50 0%, #66BB6A 100%);
    box-shadow: 0 6px 20px rgba(102, 187, 106, 0.45);
    transform: translateY(-2px);
}

.btn-captcha:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #ccc;
    box-shadow: none;
    transform: none;
}

.auth-container .form-actions {
    margin-top: 1.75rem;
}

.btn-block {
    width: 100%;
}

.auth-switch {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(76, 175, 80, 0.2);
    color: #33691E;
    font-size: 0.95rem;
}

.auth-switch .link-btn {
    margin-left: 0.5rem;
    color: #1B5E20;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
}

.auth-switch .link-btn:hover {
    color: #33691E;
    text-decoration: underline;
    background: rgba(76, 175, 80, 0.1);
}

/* ========================================
   页脚
   ======================================== */
.footer {
    text-align: center;
    padding: 2rem;
    background: var(--bg-white);
    color: var(--text-light);
    font-size: 0.9rem;
}

/* ========================================
   响应式适配 - 平板/手机
   ======================================== */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 0.75rem;
        padding: 0.75rem 1rem;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
    }

    .main-content {
        padding: 0.5rem;
    }

    .hero {
        padding: 1.5rem 1rem;
        margin: 0.25rem;
    }

    .hero h1 {
        font-size: 1.6rem;
    }

    .hero .slogan {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }

    .growth-ladder {
        gap: 0.15rem;
        padding: 0.75rem 0.25rem;
        margin: 1rem 0;
    }

    .ladder-step {
        width: 38px;
        height: 38px;
        font-size: 0.9rem;
    }

    .ladder-item:nth-child(1) .ladder-step { height: 28px; }
    .ladder-item:nth-child(3) .ladder-step { height: 42px; }
    .ladder-item:nth-child(5) .ladder-step { height: 56px; }
    .ladder-item:nth-child(7) .ladder-step { height: 70px; }

    .ladder-future {
        height: 84px;
        width: 46px;
        font-size: 0.7rem;
    }

    .ladder-arrow {
        font-size: 0.9rem;
        margin-bottom: 0.6rem;
    }

    .ladder-label {
        font-size: 0.75rem;
    }

    .btn-large {
        min-width: 160px;
        height: 46px;
        font-size: 1rem;
        padding: 0 28px;
    }

    .footer-note {
        font-size: 0.7rem;
        margin-top: 0.75rem;
    }

    .form-container {
        padding: 1.5rem;
    }

    .form-actions {
        flex-direction: column;
    }

    .test-container {
        padding: 0;
    }

    .test-actions {
        flex-direction: column;
        gap: 1rem;
    }

    .test-actions .btn-primary,
    .test-actions .btn-secondary {
        width: 100%;
    }

    .result-module {
        padding: 1.5rem;
    }

    .route-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .result-actions {
        flex-direction: column;
    }

    .result-actions .btn-primary {
        width: 100%;
    }

    .sun {
        width: 70px;
        height: 70px;
        top: 10%;
        right: 10%;
    }

    .cloud {
        transform: scale(0.7);
    }

    .mountain-1 {
        border-width: 0 150px 180px 150px;
    }

    .mountain-2 {
        border-width: 0 180px 230px 180px;
    }

    .mountain-3 {
        border-width: 0 120px 150px 120px;
    }

    .mountain-4 {
        border-width: 0 160px 200px 160px;
    }

    .mountain-5 {
        border-width: 0 130px 160px 130px;
    }

    .mountain-1 .mountain-snow {
        border-width: 0 25px 30px 25px;
    }

    .mountain-2 .mountain-snow {
        border-width: 0 30px 40px 30px;
    }

    .mountain-3 .mountain-snow {
        border-width: 0 20px 25px 20px;
    }

    .mountain-4 .mountain-snow {
        border-width: 0 28px 35px 28px;
    }

    .mountain-5 .mountain-snow {
        border-width: 0 22px 28px 22px;
    }

    .flower {
        width: 14px;
        height: 14px;
    }

    .flower::before {
        height: 20px;
        bottom: -20px;
    }

    .bird {
        font-size: 18px;
    }

    .bird-2 {
        font-size: 14px;
    }

    .bird-3 {
        font-size: 16px;
    }

    .auth-card {
        padding: 2rem;
        border-radius: 24px;
    }

    .auth-logo {
        font-size: 2.2rem;
    }

    .auth-header h2 {
        font-size: 1.6rem;
    }
}

/* ========================================
   响应式适配 - 超小屏幕 (375px)
   ======================================== */
@media (max-width: 375px) {
    body {
        font-size: 14px;
    }

    .hero {
        padding: 1.25rem 0.75rem;
        margin: 0.15rem;
    }

    .hero h1 {
        font-size: 1.4rem;
        margin-bottom: 0.5rem;
    }

    .hero .slogan {
        font-size: 0.85rem;
        margin-bottom: 0.75rem;
    }

    .growth-ladder {
        gap: 0.1rem;
        padding: 0.5rem 0.15rem;
        margin: 0.75rem 0;
    }

    .ladder-step {
        width: 30px;
        height: 30px;
        font-size: 0.8rem;
        border-radius: 8px;
    }

    .ladder-item:nth-child(1) .ladder-step { height: 22px; }
    .ladder-item:nth-child(3) .ladder-step { height: 34px; }
    .ladder-item:nth-child(5) .ladder-step { height: 46px; }
    .ladder-item:nth-child(7) .ladder-step { height: 58px; }

    .ladder-future {
        height: 70px;
        width: 38px;
        font-size: 0.65rem;
        border-radius: 8px;
    }

    .ladder-arrow {
        font-size: 0.8rem;
        margin-bottom: 0.4rem;
    }

    .ladder-label {
        font-size: 0.65rem;
    }

    .btn-large {
        min-width: 140px;
        height: 42px;
        font-size: 0.9rem;
        padding: 0 24px;
        border-radius: 21px;
    }

    .footer-note {
        font-size: 0.65rem;
        margin-top: 0.5rem;
    }

    .form-container {
        padding: 1rem;
    }

    .form-group {
        margin-bottom: 1rem;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 10px;
        font-size: 14px;
    }

    .checkbox-group {
        gap: 0.75rem;
    }

    .checkbox-item {
        padding: 0.25rem;
        font-size: 14px;
    }

    .question-container {
        padding: 1.5rem 1rem;
    }

    .question-text {
        font-size: 1rem;
    }

    .option {
        padding: 0.75rem;
    }

    .result-module {
        padding: 1rem;
    }

    .result-module h3 {
        font-size: 1rem;
    }

    .score-display .score-item {
        padding: 0.4rem 0.75rem;
        min-width: 50px;
    }

    .score-display .label {
        font-size: 1rem;
    }

    .score-display .value {
        font-size: 0.8rem;
    }

    .route-card {
        padding: 1rem;
    }

    .route-card-title {
        font-size: 0.95rem;
    }

    .route-category-header {
        padding-bottom: 0.5rem;
        margin-bottom: 0.75rem;
    }

    .route-category-icon {
        font-size: 1.25rem;
    }

    .route-category-name {
        font-size: 1rem;
    }

    .route-desc {
        font-size: 0.85rem;
    }

    .ability-item {
        padding: 0.75rem;
    }

    .ability-num {
        width: 28px;
        height: 28px;
        font-size: 0.85rem;
    }

    .ability-content h4 {
        font-size: 0.9rem;
    }

    .ability-content p {
        font-size: 0.8rem;
    }

    .task-item {
        padding: 0.75rem;
    }

    .task-priority {
        font-size: 0.75rem;
        padding: 0.2rem 0.5rem;
    }

    .task-text {
        font-size: 0.85rem;
    }
}

/* ========================================
   暗黑模式
   ======================================== */
.dark-theme {
    --bg-light: #1a1a2e;
    --bg-white: #16213e;
    --text-primary: #ffffff;
    --text-secondary: #b8b8d0;
    --text-light: #6b6b8a;
    --border: #2d2d44;
    --shadow: 0 2px 12px rgba(0,0,0,0.3);
}

.dark-theme .hero {
    background: linear-gradient(135deg, #3a5070 0%, #4a6fa5 30%, #4a8a4a 100%);
}

/* ========================================
   路线规划按钮样式
   ======================================== */
.route-plan-btn {
    margin-top: 0.75rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, var(--primary), #357abd);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.route-plan-btn:hover {
    background: linear-gradient(135deg, #357abd, #2a5f8f);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.3);
}

.route-plan-btn:active {
    transform: translateY(0);
}

/* ========================================
   规划弹窗样式
   ======================================== */
#plan-modal-container {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
}

.plan-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    overflow-y: auto;
}

.plan-modal-content {
    background: var(--bg-white);
    border-radius: 16px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.plan-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border);
    background: linear-gradient(135deg, var(--primary), #357abd);
    color: white;
    border-radius: 16px 16px 0 0;
}

.plan-modal-title {
    font-size: 1.1rem;
    font-weight: bold;
    margin: 0;
}

.plan-modal-close {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.plan-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.plan-section {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border);
}

.plan-section:last-of-type {
    border-bottom: none;
}

.plan-section-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    font-weight: bold;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.plan-section-icon {
    font-size: 1.1rem;
}

/* 当前状态 */
.plan-status-box {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-light);
    border-radius: 8px;
}

.plan-grade-tag {
    padding: 0.5rem 1rem;
    background: var(--primary);
    color: white;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.9rem;
}

.plan-status-text {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* 能力评估 */
.plan-abilities-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.plan-ability-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: var(--bg-light);
    border-radius: 8px;
    color: var(--text-secondary);
}

.plan-ability-dot {
    color: var(--secondary);
    font-size: 0.8rem;
}

/* 学习规划时间线 */
.plan-timeline {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.plan-phase {
    background: var(--bg-light);
    border-radius: 12px;
    padding: 1rem;
    border-left: 4px solid var(--primary);
}

.plan-phase-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.plan-phase-num {
    width: 28px;
    height: 28px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.85rem;
}

.plan-phase-title {
    font-weight: bold;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.plan-tasks-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.plan-task-item {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.5rem 0;
}

.plan-task-checkbox {
    color: var(--text-light);
    font-size: 1rem;
    flex-shrink: 0;
}

.plan-task-text {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* 提示信息 */
.plan-tip-box {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, rgba(103, 194, 58, 0.1), rgba(74, 144, 226, 0.1));
    border-radius: 8px;
    margin: 1rem 1.5rem;
}

.plan-tip-icon {
    font-size: 1.2rem;
}

.plan-tip-text {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.5;
}

/* ========================================
   规划弹窗响应式适配
   ======================================== */
@media (max-width: 768px) {
    .plan-modal-content {
        max-width: 100%;
        border-radius: 12px;
    }

    .plan-modal-header {
        padding: 1rem;
        border-radius: 12px 12px 0 0;
    }

    .plan-modal-title {
        font-size: 1rem;
    }

    .plan-section {
        padding: 1rem;
    }

    .plan-status-box {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .plan-phase {
        padding: 0.75rem;
    }

    .plan-tip-box {
        margin: 1rem;
        padding: 0.75rem 1rem;
    }
}

@media (max-width: 375px) {
    .plan-modal-header {
        padding: 0.75rem;
    }

    .plan-modal-title {
        font-size: 0.9rem;
    }

    .plan-modal-close {
        width: 28px;
        height: 28px;
        font-size: 1rem;
    }

    .plan-section {
        padding: 0.75rem;
    }

    .plan-section-header {
        font-size: 0.9rem;
    }

    .plan-grade-tag {
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
    }
}

/* 能力差距分析响应式 */
@media (max-width: 768px) {
    .ability-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .ability-status {
        margin-top: 0.25rem;
    }

    .gap-suggestion {
        padding: 0.5rem;
    }
}

.dark-theme .direction-card {
    background: var(--bg-white);
}

.dark-theme .direction-card:has(input:checked) {
    background: linear-gradient(135deg, rgba(74,144,226,0.2) 0%, rgba(74,144,226,0.08) 100%);
}

.dark-theme .ladder-step {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.2);
}

.dark-theme .ladder-future {
    background: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.1);
}

.dark-theme .progress-node {
    background: var(--border);
    border-color: var(--border);
    color: var(--text-secondary);
}

.dark-theme .progress-node.completed {
    background: var(--secondary);
    border-color: var(--secondary);
    color: white;
}

.dark-theme .progress-node.completed-unanswered {
    background: var(--border);
    border-color: var(--border);
    color: var(--text-light);
}

.dark-theme .progress-node.current {
    background: var(--secondary);
    border-color: var(--secondary);
}

.dark-theme .progress-line {
    background: var(--border);
}

.dark-theme .progress-line.completed {
    background: var(--secondary);
}

.dark-theme .skill-pill {
    background: var(--bg-light);
}

.dark-theme .skill-pill:hover {
    background: rgba(74,144,226,0.15);
}

.dark-theme .skill-pill:has(input:checked) {
    background: rgba(74,144,226,0.2);
}

.dark-theme .skill-group-header {
    border-bottom-color: var(--border);
}

/* 暗黑模式下所有卡片和容器的文字颜色 */
.dark-theme .ability-item,
.dark-theme .ability-content h4,
.dark-theme .ability-status,
.dark-theme .gap-detail,
.dark-theme .gap-suggestion,
.dark-theme .suggestion-label,
.dark-theme .suggestion-text {
    color: var(--text-primary);
}

.dark-theme .ability-item {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
}

.dark-theme .ability-num {
    background: var(--primary);
    color: white;
}

.dark-theme .ability-direction-section {
    background: rgba(255,255,255,0.03);
    border-color: rgba(255,255,255,0.1);
}

.dark-theme .ability-direction-header {
    background: linear-gradient(135deg, var(--primary), #667eea);
}

.dark-theme .ability-items-wrapper .ability-item {
    background: rgba(255,255,255,0.05);
}

.dark-theme .ability-header h4 {
    color: var(--text-primary);
}

.dark-theme .gap-suggestion {
    background: rgba(74,144,226,0.15);
}

.dark-theme .suggestion-label {
    color: var(--primary);
}

/* 暗黑模式下路线卡片文字 */
.dark-theme .route-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
}

.dark-theme .route-card-title {
    color: var(--text-primary);
}

.dark-theme .route-card-detail {
    color: var(--text-secondary);
}

.dark-theme .route-salary {
    background: rgba(74,144,226,0.15);
}

.dark-theme .salary-label {
    color: var(--text-secondary);
}

.dark-theme .salary-value {
    color: var(--primary);
}

/* 暗黑模式下规划弹窗 */
.dark-theme .plan-modal-content {
    background: var(--bg-white);
    color: var(--text-primary);
}

.dark-theme .plan-modal-title {
    color: var(--text-primary);
}

.dark-theme .plan-section-header {
    color: var(--text-primary);
    border-bottom-color: rgba(255,255,255,0.1);
}

.dark-theme .plan-grade-tag {
    background: var(--primary);
    color: white;
}

.dark-theme .plan-status-text {
    color: var(--text-secondary);
}

.dark-theme .plan-ability-item {
    color: var(--text-secondary);
}

.dark-theme .plan-phase-header {
    background: rgba(74,144,226,0.15);
}

.dark-theme .plan-phase-num {
    background: var(--primary);
    color: white;
}

.dark-theme .plan-phase-title {
    color: var(--text-primary);
}

.dark-theme .plan-task-item {
    color: var(--text-secondary);
}

.dark-theme .plan-tip-box {
    background: rgba(74,144,226,0.1);
}

.dark-theme .plan-tip-text {
    color: var(--text-secondary);
}

.dark-theme .plan-modal-close {
    color: var(--text-secondary);
}

.dark-theme .plan-modal-close:hover {
    background: rgba(255,255,255,0.1);
}

/* 暗黑模式下结果页面 */
.dark-theme .result-page h2,
.dark-theme .result-module h3 {
    color: var(--text-primary);
}

.dark-theme .result-module {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.1);
}

.dark-theme .score-display {
    background: rgba(255,255,255,0.05);
}

.dark-theme .score-item {
    color: var(--text-primary);
}

.dark-theme .btn-secondary {
    background: rgba(255,255,255,0.1);
    color: var(--text-primary);
    border: 1px solid rgba(255,255,255,0.2);
}

.dark-theme .btn-secondary:hover {
    background: rgba(255,255,255,0.15);
}

.dark-theme .route-plan-btn {
    background: linear-gradient(135deg, var(--primary), #357abd);
}

.dark-theme .route-plan-btn:hover {
    background: linear-gradient(135deg, #357abd, #2a5f8f);
}

.dark-theme .btn-back {
    color: var(--text-secondary);
}

.dark-theme .btn-back:hover {
    background: rgba(255,255,255,0.1);
}

/* 暗黑模式下雷达图 */
.dark-theme .radar-container {
    background: rgba(255,255,255,0.03);
}

/* 暗黑模式下导航栏 */
.dark-theme nav {
    background: var(--bg-white);
    border-bottom-color: rgba(255,255,255,0.1);
}

.dark-theme nav a {
    color: var(--text-secondary);
}

.dark-theme nav a:hover,
.dark-theme nav a.active {
    color: var(--primary);
}

.dark-theme .theme-toggle {
    color: var(--text-secondary);
}

/* 暗黑模式下页脚 */
.dark-theme .footer {
    background: var(--bg-white);
    border-top-color: rgba(255,255,255,0.1);
    color: var(--text-secondary);
}

/* 暗黑模式下表单元素 */
.dark-theme input[type="text"],
.dark-theme input[type="email"],
.dark-theme input[type="tel"],
.dark-theme select,
.dark-theme textarea {
    background: var(--bg-white);
    color: var(--text-primary);
    border-color: var(--border);
}

.dark-theme input[type="text"]:focus,
.dark-theme input[type="email"]:focus,
.dark-theme input[type="tel"]:focus,
.dark-theme select:focus,
.dark-theme textarea:focus {
    border-color: var(--primary);
    outline-color: rgba(74,144,226,0.3);
}

.dark-theme select option {
    background: var(--bg-white);
    color: var(--text-primary);
}

/* 暗黑模式下路线分类标题 */
.dark-theme .route-category-header {
    border-bottom-color: rgba(255,255,255,0.1);
}

.dark-theme .route-category-icon {
    color: var(--primary);
}

.dark-theme .route-category-name {
    color: var(--text-primary);
}

.dark-theme .route-category {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.1);
}

/* 暗黑模式下复选框和单选框 */
.dark-theme input[type="checkbox"],
.dark-theme input[type="radio"] {
    accent-color: var(--primary);
}

/* 暗黑模式下标签和徽章 */
.dark-theme .tag {
    background: rgba(74,144,226,0.15);
    color: var(--primary);
}

/* 暗黑模式下链接 */
.dark-theme a {
    color: var(--primary);
}

.dark-theme a:hover {
    color: #6ba3e0;
}

/* 暗黑模式下测评选项 */
.dark-theme .options {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 1rem;
    border-radius: 12px;
}

.dark-theme .question-text {
    color: var(--text-primary);
}

.dark-theme .task-item {
    background: var(--bg-light);
}

/* ========================================
   任务打卡样式
   ======================================== */
.task-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-light);
    border-radius: 8px;
    border-left: 3px solid var(--primary);
    transition: all 0.3s;
}

.task-item.completed {
    opacity: 0.6;
    border-left-color: var(--secondary);
}

.task-checkbox {
    width: 24px;
    height: 24px;
    accent-color: var(--secondary);
    cursor: pointer;
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.task-content {
    flex: 1;
}

.task-content p {
    margin: 0;
    line-height: 1.6;
    word-break: break-word;
}

.task-item.completed .task-text {
    text-decoration: line-through;
}

/* ========================================
   动画效果
   ======================================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.page.active {
    animation: fadeIn 0.3s ease forwards;
}

/* ========================================
   可搜索下拉选择器
   ======================================== */
.search-select {
    position: relative;
    width: 100%;
}

.search-select-trigger {
    position: relative;
    display: flex;
    align-items: center;
}

.search-select-input {
    width: 100%;
    padding: 12px 32px 12px 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
    background: var(--bg-white);
    cursor: pointer;
}

.search-select-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(74,144,226,0.1);
}

.search-select-arrow {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    font-size: 1rem;
    pointer-events: none;
    transition: transform 0.2s;
}

.search-select.open .search-select-arrow {
    transform: translateY(-50%) rotate(180deg);
}

.search-select-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 100;
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-top: none;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    max-height: 200px;
    overflow-y: auto;
}

.search-select.open .search-select-dropdown {
    display: block;
}

.search-select-dropdown::-webkit-scrollbar {
    width: 6px;
}

.search-select-dropdown::-webkit-scrollbar-thumb {
    background: #dcdfe6;
    border-radius: 3px;
}

.search-select-option {
    padding: 10px 12px;
    cursor: pointer;
    font-size: 0.95rem;
    color: var(--text-primary);
    transition: background 0.15s;
}

.search-select-option:hover {
    background: #e8f1fb;
    color: var(--primary);
}

.search-select-option.selected {
    background: #e8f1fb;
    color: var(--primary);
    font-weight: 500;
}

.search-select-no-result {
    padding: 12px;
    text-align: center;
    color: var(--text-light);
    font-size: 0.9rem;
}

/* ========================================
   方向选择卡片
   ======================================== */
.direction-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.direction-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px 8px;
    border: 2px solid var(--border);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
    background: var(--bg-white);
    user-select: none;
}

.direction-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(74,144,226,0.15);
}

.direction-card input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.direction-card input[type="checkbox"]:checked + .direction-icon {
    transform: scale(1.1);
}

.direction-card:has(input:checked) {
    border-color: var(--primary);
    background: linear-gradient(135deg, rgba(74,144,226,0.08) 0%, rgba(74,144,226,0.03) 100%);
}

.direction-card:has(input:checked)::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary);
    border-radius: 12px 12px 0 0;
}

.direction-icon {
    font-size: 2rem;
    margin-bottom: 8px;
    transition: transform 0.2s;
}

.direction-name {
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.direction-desc {
    font-size: 0.75rem;
    color: var(--text-light);
    text-align: center;
}

.direction-check {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 20px;
    height: 20px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.2s;
}

.direction-card:has(input:checked) .direction-check {
    opacity: 1;
    transform: scale(1);
}

/* 响应式 - 平板 */
@media (max-width: 600px) {
    .direction-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .direction-card {
        padding: 14px 6px;
    }
    
    .direction-icon {
        font-size: 1.75rem;
    }
    
    .direction-name {
        font-size: 0.95rem;
    }
    
    .direction-desc {
        font-size: 0.7rem;
    }
}

/* ========================================
   技能多选 Pills
   ======================================== */
.skill-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 12px;
}

.skills-hint {
    font-size: 0.82rem;
    color: var(--text-light);
    margin-bottom: 10px;
}

.skill-group-header {
    width: 100%;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--primary);
    padding: 6px 0 4px 0;
    border-bottom: 1px solid var(--border);
    margin-bottom: 4px;
    margin-top: 8px;
    letter-spacing: 0.5px;
}

.skill-group-header:first-child {
    margin-top: 0;
}

.skill-pill {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border: 1.5px solid var(--border);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.9rem;
    user-select: none;
    background: var(--bg-white);
}

.skill-pill:hover {
    border-color: var(--primary);
    background: #e8f1fb;
}

.skill-pill:has(input:checked) {
    background: #e8f1fb;
    border-color: var(--primary);
    color: var(--primary);
    font-weight: 500;
}

.skill-pill input[type="checkbox"] {
    display: none;
}

.skill-other {
    margin-top: 4px;
}

.skill-other input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 0.95rem;
    transition: border-color 0.3s;
}

.skill-other input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(74,144,226,0.1);
}

/* ========================================
   AI智能体对话框样式
   ======================================== */
.btn-ai {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.btn-ai:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.ai-assistant-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
}

.ai-assistant-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.ai-assistant-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 420px;
    height: 650px;
    background: var(--bg-white, #ffffff);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ai-assistant-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ai-assistant-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.ai-avatar {
    font-size: 2rem;
    line-height: 1;
}

.ai-name {
    font-size: 1.1rem;
    font-weight: 600;
}

.ai-status {
    font-size: 0.8rem;
    opacity: 0.9;
}

.ai-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    transition: opacity 0.2s;
}

.ai-header-actions {
    display: flex;
    gap: 0.5rem;
}

.ai-settings {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: background 0.2s;
}

.ai-settings:hover {
    background: rgba(255,255,255,0.3);
}

.ai-api-settings {
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    padding: 1rem;
}

.api-settings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    font-weight: 600;
    color: #333;
}

.api-settings-close {
    background: none;
    border: none;
    color: #999;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.3rem;
}

.api-input-group {
    margin-bottom: 0.75rem;
}

.api-input-group label {
    display: block;
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.api-input-group input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 0.9rem;
    box-sizing: border-box;
}

.api-input-group input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.api-hint {
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.api-hint a {
    color: #667eea;
    text-decoration: none;
}

.api-hint a:hover {
    text-decoration: underline;
}

.api-settings-actions {
    display: flex;
    gap: 0.5rem;
}

.api-save-btn {
    flex: 1;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 0.75rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: opacity 0.2s;
}

.api-save-btn:hover {
    opacity: 0.9;
}

.api-clear-btn {
    background: #e9ecef;
    color: #666;
    border: none;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.2s;
}

.api-clear-btn:hover {
    background: #dee2e6;
}

.api-status {
    margin-top: 1rem;
    padding: 0.75rem;
    background: #d4edda;
    color: #155724;
    border-radius: 8px;
    font-size: 0.85rem;
    text-align: center;
}

.api-status-error {
    background: #f8d7da;
    color: #721c24;
}

.ai-close:hover {
    opacity: 0.7;
}

.ai-assistant-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    background: var(--bg-light, #f8f9fa);
}

.ai-message {
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
}

.ai-message-welcome {
    background: var(--bg-white, #ffffff);
    padding: 1rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.ai-message-content {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-primary, #333);
}

.ai-message-content p {
    margin: 0.5rem 0;
}

.ai-message-content ul {
    margin: 0.5rem 0;
    padding-left: 1.5rem;
}

.ai-message-content li {
    margin: 0.3rem 0;
}

.ai-message-time {
    font-size: 0.75rem;
    color: var(--text-secondary, #999);
    margin-top: 0.5rem;
}

.ai-message-user {
    align-items: flex-end;
}

.ai-message-user .ai-message-content {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.8rem 1rem;
    border-radius: 12px 12px 0 12px;
    max-width: 80%;
}

.ai-message-ai {
    align-items: flex-start;
}

.ai-message-ai .ai-message-content {
    background: var(--bg-white, #ffffff);
    padding: 0.8rem 1rem;
    border-radius: 12px 12px 12px 0;
    max-width: 85%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.ai-typing-indicator {
    display: flex;
    gap: 0.3rem;
    padding: 0.5rem 0;
}

.ai-typing-indicator span {
    width: 8px;
    height: 8px;
    background: #667eea;
    border-radius: 50%;
    animation: typing 1.4s infinite;
}

.ai-typing-indicator span:nth-child(2) {
    animation-delay: 0.2s;
}

.ai-typing-indicator span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {
    0%, 60%, 100% {
        transform: translateY(0);
        opacity: 0.4;
    }
    30% {
        transform: translateY(-10px);
        opacity: 1;
    }
}

.ai-quick-questions {
    padding: 0.75rem 1rem;
    background: var(--bg-white, #ffffff);
    border-top: 1px solid var(--border-color, #e0e0e0);
}

.quick-questions-label {
    font-size: 0.8rem;
    color: var(--text-secondary, #999);
    margin-bottom: 0.5rem;
}

.quick-questions-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.quick-question-btn {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border: none;
    padding: 0.4rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    color: var(--text-primary, #333);
    cursor: pointer;
    transition: all 0.2s;
}

.quick-question-btn:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    transform: translateY(-1px);
}

.ai-assistant-input {
    padding: 1rem;
    background: var(--bg-white, #ffffff);
    border-top: 1px solid var(--border-color, #e0e0e0);
    display: flex;
    gap: 0.5rem;
}

.ai-assistant-input input {
    flex: 1;
    padding: 0.6rem 1rem;
    border: 2px solid var(--border-color, #e0e0e0);
    border-radius: 25px;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.2s;
}

.ai-assistant-input input:focus {
    border-color: #667eea;
}

.ai-send-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 25px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
}

.ai-send-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* 响应式设计 */
@media (max-width: 480px) {
    .ai-assistant-container {
        width: 100%;
        height: 100%;
        bottom: 0;
        right: 0;
        border-radius: 0;
    }
}
