/* ===== 全局变量 ===== */
:root {
  --primary: #4f46e5; --primary-light: #818cf8; --primary-dark: #3730a3;
  --bg: #f1f5f9; --card-bg: #ffffff; --text: #1e293b; --text-light: #64748b;
  --border: #e2e8f0; --danger: #ef4444; --success: #10b981; --warning: #f59e0b;
  --sidebar-w: 220px; --radius: 8px; --shadow: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif; color: var(--text); background: var(--bg); line-height: 1.6; }
#app { display: flex; min-height: 100vh; }

/* ===== 侧边栏 ===== */
#sidebar { width: var(--sidebar-w); background: linear-gradient(180deg, #1e1b4b 0%, #312e81 100%); color: #e0e7ff; display: flex; flex-direction: column; position: fixed; top: 0; left: 0; bottom: 0; z-index: 100; }
.logo { padding: 24px 20px; display: flex; align-items: center; gap: 10px; border-bottom: 1px solid rgba(255,255,255,.1); }
.logo-icon { font-size: 28px; } .logo-text { font-size: 20px; font-weight: 700; letter-spacing: 1px; }
.nav-menu { list-style: none; flex: 1; padding: 12px 0; }
.nav-item { padding: 11px 20px; cursor: pointer; transition: all .2s; display: flex; align-items: center; gap: 10px; font-size: 14px; border-left: 3px solid transparent; }
.nav-item:hover { background: rgba(255,255,255,.08); }
.nav-item.active { background: rgba(255,255,255,.12); border-left-color: var(--primary-light); color: #fff; }
.nav-icon { font-size: 18px; }
.sidebar-footer { padding: 16px 20px; border-top: 1px solid rgba(255,255,255,.1); font-size: 12px; color: rgba(255,255,255,.4); }

/* ===== 主内容 ===== */
#main-content { margin-left: var(--sidebar-w); flex: 1; padding: 28px 32px; max-width: 1200px; }
.page { display: none; } .page.active { display: block; }
h2 { font-size: 22px; margin-bottom: 20px; padding-bottom: 10px; border-bottom: 2px solid var(--border); }
h3 { font-size: 16px; margin-bottom: 12px; display: flex; align-items: center; gap: 10px; }

/* ===== 卡片/看板 ===== */
.dashboard-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; margin-bottom: 24px; }
.dash-card { background: var(--card-bg); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); transition: transform .2s; }
.dash-card:hover { transform: translateY(-2px); }
.card-header { font-size: 13px; color: var(--text-light); margin-bottom: 8px; }
.card-body { font-size: 28px; font-weight: 700; }
.card-footer { font-size: 12px; color: rgba(255,255,255,.7); margin-top: 8px; }
.countdown-card { background: linear-gradient(135deg, #4f46e5, #7c3aed); color: #fff; }
.countdown-card .card-header { color: rgba(255,255,255,.8); }

.dash-actions { background: var(--card-bg); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); margin-bottom: 24px; }
.action-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-action { padding: 12px 20px; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); font-size: 14px; cursor: pointer; transition: all .2s; font-weight: 500; }
.btn-action:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.dash-today-preview { background: var(--card-bg); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.dash-today-preview h3 { display: flex; justify-content: space-between; align-items: center; }

/* ===== 表单 ===== */
.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 6px; color: var(--text); }
.form-input { width: 100%; padding: 10px 14px; border: 1px solid var(--border); border-radius: var(--radius); font-size: 14px; transition: border-color .2s; background: #fff; }
.form-input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(79,70,229,.1); }
.form-select { cursor: pointer; } .form-textarea { resize: vertical; min-height: 80px; }
.form-row { display: flex; gap: 16px; } .form-row .form-group { flex: 1; }
.checkbox-group { display: flex; gap: 16px; flex-wrap: wrap; padding-top: 4px; }
.checkbox-label { display: flex; align-items: center; gap: 6px; font-size: 14px; cursor: pointer; font-weight: normal; }
.checkbox-label input[type="checkbox"] { width: 16px; height: 16px; cursor: pointer; }

/* ===== 按钮 ===== */
.btn { padding: 10px 20px; border: none; border-radius: var(--radius); font-size: 14px; cursor: pointer; transition: all .2s; font-weight: 500; }
.btn-primary { background: var(--primary); color: #fff; } .btn-primary:hover { background: var(--primary-dark); }
.btn-outline { background: transparent; border: 1px solid var(--border); color: var(--text); } .btn-outline:hover { background: var(--bg); }
.btn-sm { padding: 6px 14px; font-size: 13px; border: 1px solid var(--border); background: #fff; border-radius: 20px; cursor: pointer; }
.btn-sm:hover { background: var(--bg); } .btn-active { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn-danger { background: var(--danger); color: #fff; } .btn-danger:hover { opacity: .9; }

/* ===== 倒计时 ===== */
.countdown-setup { background: var(--card-bg); padding: 24px; border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 24px; }
.countdown-display { text-align: center; padding: 40px; }
.countdown-big { display: flex; justify-content: center; gap: 24px; margin-bottom: 16px; }
.countdown-item { background: var(--card-bg); padding: 20px 24px; border-radius: var(--radius); box-shadow: var(--shadow); min-width: 90px; }
.countdown-item span { display: block; font-size: 48px; font-weight: 800; color: var(--primary); line-height: 1.2; }
.countdown-item label { font-size: 13px; color: var(--text-light); }
.countdown-label { font-size: 16px; color: var(--text-light); margin-top: 12px; }

/* ===== 战略规划 ===== */
.plan-setup { background: var(--card-bg); padding: 24px; border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 24px; }
.plan-header-card { background: linear-gradient(135deg, #1e1b4b, #3730a3); color: #fff; padding: 24px; border-radius: var(--radius); margin-bottom: 20px; }
.plan-header-card h3 { color: #fff; font-size: 18px; margin-bottom: 8px; }
.plan-meta { display: flex; gap: 16px; font-size: 14px; opacity: .9; margin-bottom: 12px; }
.plan-tips { background: rgba(255,255,255,.15); padding: 12px 16px; border-radius: var(--radius); font-size: 14px; line-height: 1.6; }
.plan-timeline { display: flex; flex-direction: column; gap: 16px; }
.plan-phase { background: var(--card-bg); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; border-left: 4px solid var(--primary); }
.phase-header { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.phase-num { width: 28px; height: 28px; border-radius: 50%; background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; flex-shrink: 0; }
.phase-name { font-size: 15px; font-weight: 600; }
.phase-tasks { padding-left: 40px; }
.phase-tasks li { font-size: 14px; margin-bottom: 6px; color: var(--text); line-height: 1.5; }

/* ===== 任务 ===== */
.task-recommend-panel { background: linear-gradient(135deg, #ede9fe, #e0e7ff); border-radius: var(--radius); padding: 24px; margin-bottom: 20px; border: 1px solid #c7d2fe; }
.panel-header { margin-bottom: 16px; } .panel-header h3 { margin-bottom: 4px; }
.panel-hint { font-size: 13px; color: var(--text-light); }
.task-recommend-list { margin: 16px 0; }
.rec-task-item { display: flex; align-items: center; gap: 12px; padding: 10px 14px; background: #fff; border-radius: var(--radius); margin-bottom: 8px; font-size: 14px; border: 1px solid var(--border); }
.rec-task-item .rec-subject { font-size: 12px; padding: 2px 10px; border-radius: 12px; background: var(--primary); color: #fff; font-weight: 500; flex-shrink: 0; }
.rec-task-item .rec-time { font-size: 12px; color: var(--text-light); margin-left: auto; flex-shrink: 0; }
.task-manual-panel { background: var(--card-bg); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); margin-bottom: 20px; }
.task-add-bar { display: flex; gap: 12px; } .task-add-bar .form-select { width: 120px; } .task-add-bar .form-input { flex: 1; }
.task-filters, .error-filters { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; align-items: center; }
.task-list, .error-list { display: flex; flex-direction: column; gap: 8px; }
.task-item, .error-item { background: var(--card-bg); padding: 14px 18px; border-radius: var(--radius); box-shadow: var(--shadow); display: flex; align-items: center; gap: 12px; transition: all .2s; }
.task-item.done { opacity: .6; background: #f8fafc; } .task-item.done .task-text { text-decoration: line-through; }
.task-checkbox { width: 22px; height: 22px; border: 2px solid var(--border); border-radius: 4px; cursor: pointer; display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: all .2s; }
.task-checkbox.checked { background: var(--success); border-color: var(--success); }
.task-checkbox.checked::after { content: '✓'; color: #fff; font-size: 14px; }
.task-subject-tag { font-size: 12px; padding: 2px 10px; border-radius: 12px; background: var(--bg); color: var(--primary); font-weight: 500; flex-shrink: 0; }
.task-text { flex: 1; font-size: 15px; }
.task-del { cursor: pointer; color: var(--text-light); font-size: 18px; padding: 4px; transition: color .2s; } .task-del:hover { color: var(--danger); }

/* ===== 院校 ===== */
.school-count { font-size: 13px; color: var(--text-light); margin-bottom: 12px; }
.search-bar { display: flex; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; } .search-bar .form-input { flex: 1; min-width: 180px; }
.school-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); gap: 16px; }
.school-card { background: var(--card-bg); border-radius: var(--radius); box-shadow: var(--shadow); transition: all .3s; align-self: start; }
.school-card.expanded { grid-column: 1 / -1; box-shadow: 0 4px 20px rgba(0,0,0,.15); }
.school-card-header { padding: 16px 20px; display: flex; justify-content: space-between; align-items: center; cursor: pointer; user-select: none; gap: 12px; }
.school-card-header:hover { background: #fafbfc; }
.school-header-left { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.school-header-left h3 { font-size: 17px; margin: 0; }
.school-ranking { font-size: 12px; padding: 2px 10px; border-radius: 12px; background: #fef3c7; color: #92400e; font-weight: 600; }
.school-card-header .school-badges { display: flex; gap: 6px; flex-shrink: 0; }
.school-badge { font-size: 11px; padding: 2px 8px; border-radius: 10px; font-weight: 600; }
.badge-985 { background: #fef2f2; color: #dc2626; } .badge-211 { background: #eff6ff; color: #2563eb; }
.badge-double { background: #f0fdf4; color: #16a34a; } .badge-normal { background: #f8fafc; color: #64748b; }
.school-card-body { padding: 0 20px 20px; display: none; }
.school-card.expanded .school-card-body { display: block; }
.school-body-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 32px; }
.school-detail-grid { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; font-size: 14px; align-items: baseline; }
.school-detail-grid dt { color: var(--text-light); font-size: 12px; white-space: nowrap; } .school-detail-grid dd { font-weight: 500; }

/* 院校信息行（紧凑） */
.school-info-row { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 13px; color: var(--text-light); margin-bottom: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.school-info-row strong { color: var(--text); }

/* 院校特色标签 */
.school-features { margin-bottom: 12px; }
.features-list { display: flex; flex-wrap: wrap; gap: 6px; }
.feature-tag { font-size: 12px; padding: 4px 12px; border-radius: 12px; background: #ede9fe; color: #5b21b6; font-weight: 500; }

/* 学院/专业表格 */
.school-depts { margin-bottom: 12px; }
.school-depts h4 { font-size: 14px; margin-bottom: 8px; }
.dept-table-wrap { overflow-x: auto; }
.dept-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.dept-table th { background: #f1f5f9; padding: 8px 10px; text-align: left; font-size: 12px; color: var(--text-light); font-weight: 600; white-space: nowrap; }
.dept-table td { padding: 7px 10px; border-bottom: 1px solid #f1f5f9; }
.dept-table tbody tr:hover { background: #fafbfc; }
.dept-name { font-weight: 600; color: var(--text); }
.dept-score { font-weight: 700; color: var(--primary); }
.dept-exam { font-size: 12px; color: var(--text-light); max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 旧样式保留兼容 */
.school-scores { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border); }
.school-scores h4 { font-size: 14px; margin-bottom: 8px; }
.score-bar { display: flex; gap: 12px; } .score-year { text-align: center; background: var(--bg); padding: 8px 12px; border-radius: var(--radius); flex: 1; }
.score-year .year { font-size: 12px; color: var(--text-light); } .score-year .score { font-size: 20px; font-weight: 700; color: var(--primary); }

/* ===== 资料推荐 ===== */
.resource-form { background: var(--card-bg); padding: 24px; border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 24px; }
.resource-header { margin-bottom: 16px; }
.resource-header h3 { margin-bottom: 4px; }
.resource-note { font-size: 13px; color: var(--text-light); }
.resource-result { display: flex; flex-direction: column; gap: 16px; }
.resource-card { background: var(--card-bg); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); border-left: 4px solid var(--primary); }
.resource-card h3 { font-size: 16px; margin-bottom: 6px; }
.resource-card .res-meta { font-size: 13px; color: var(--text-light); margin-bottom: 8px; }
.resource-card .res-desc { font-size: 14px; color: var(--text); }
.resource-card .res-tag { display: inline-block; font-size: 12px; padding: 2px 10px; border-radius: 12px; background: #ede9fe; color: var(--primary); margin-right: 6px; margin-top: 8px; }

/* ===== 错题本 ===== */
.error-add-form { background: var(--card-bg); padding: 24px; border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 24px; }
.error-item .error-subject { font-size: 12px; padding: 2px 10px; border-radius: 12px; background: #fef2f2; color: var(--danger); font-weight: 500; flex-shrink: 0; }
.error-item .error-content { flex: 1; }
.error-item .error-question { font-size: 15px; margin-bottom: 4px; }
.error-item .error-meta { font-size: 12px; color: var(--text-light); }
.error-item .error-answer { font-size: 13px; color: var(--success); margin-top: 6px; }
.error-item .error-reason-tag { display: inline-block; font-size: 12px; padding: 2px 8px; border-radius: 10px; background: #fef9c3; color: #a16207; margin-top: 4px; }

/* ===== 打卡系统 ===== */
.dash-checkin-section { margin-bottom: 20px; }
.dash-checkin-card { background: linear-gradient(135deg, #f0fdf4, #ecfdf5); border: 1px solid #bbf7d0; border-radius: var(--radius); padding: 20px; display: flex; gap: 24px; align-items: flex-start; }
.checkin-left { flex-shrink: 0; min-width: 180px; }
.checkin-left h3 { font-size: 18px; margin-bottom: 8px; }
.checkin-stats { display: flex; gap: 16px; margin-bottom: 14px; font-size: 14px; color: var(--text-light); }
.checkin-stats strong { color: var(--primary); font-size: 18px; }
.btn-checkin { padding: 12px 28px; background: linear-gradient(135deg, #10b981, #059669); color: #fff; font-size: 16px; font-weight: 700; border-radius: 12px; border: none; cursor: pointer; transition: all .2s; box-shadow: 0 4px 12px rgba(16,185,129,.3); }
.btn-checkin:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(16,185,129,.4); }
.btn-checkin.checked { background: linear-gradient(135deg, #9ca3af, #6b7280); box-shadow: 0 2px 8px rgba(107,114,128,.3); }
.checkin-right { flex: 1; min-width: 0; }

/* ===== 打卡日历 ===== */
.calendar { font-size: 13px; }
.calendar-header { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; color: var(--text-light); margin-bottom: 6px; font-weight: 600; }
.calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.cal-day { aspect-ratio: 1; display: flex; align-items: center; justify-content: center; border-radius: 6px; font-size: 12px; background: #fff; transition: all .2s; }
.cal-day.empty { background: transparent; }
.cal-day.today { border: 2px solid var(--primary); font-weight: 700; }
.cal-day.checked { background: #10b981; color: #fff; font-weight: 700; }

/* ===== 网课推荐 ===== */
.course-form { background: var(--card-bg); padding: 24px; border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 24px; }
.course-result { display: flex; flex-direction: column; gap: 16px; }
.course-card { background: var(--card-bg); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); border-left: 4px solid #f59e0b; }
.course-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.course-header h3 { font-size: 16px; margin: 0; }
.course-platform { font-size: 12px; padding: 3px 12px; border-radius: 12px; background: #fef3c7; color: #92400e; font-weight: 600; }
.course-meta { display: flex; gap: 16px; font-size: 13px; color: var(--text-light); margin-bottom: 8px; }
.course-desc { font-size: 14px; color: var(--text); margin-bottom: 8px; line-height: 1.5; }
.course-tags { margin-bottom: 12px; }
.course-tag { display: inline-block; font-size: 12px; padding: 2px 10px; border-radius: 12px; background: #ede9fe; color: var(--primary); margin-right: 6px; }
.course-link-btn { display: inline-block; text-decoration: none; font-size: 13px; padding: 8px 16px; }

/* ===== 院校分页 & 操作按钮 ===== */
.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 24px; padding: 16px 0; flex-wrap: wrap; grid-column: 1 / -1; }
.pagination-dots { padding: 6px 4px; color: var(--text-light); }
.pagination .btn-sm[disabled] { opacity: .4; cursor: not-allowed; pointer-events: none; }
.school-actions { display: flex; gap: 10px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border); }
.school-actions .btn { font-size: 13px; text-decoration: none; }
.school-link { color: var(--primary); text-decoration: none; font-weight: 500; }
.school-link:hover { text-decoration: underline; }

/* ===== 用户系统 ===== */
.user-login-card { background: linear-gradient(135deg, #eef2ff, #e0e7ff); border: 1px solid #c7d2fe; border-radius: var(--radius); padding: 24px; margin-bottom: 20px; }
.user-login-card h3 { margin-bottom: 4px; }
.user-hint { font-size: 13px; color: var(--text-light); margin-bottom: 16px; }
.user-profile-card { background: var(--card-bg); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); margin-bottom: 20px; display: flex; align-items: center; gap: 16px; }
.user-avatar { width: 48px; height: 48px; border-radius: 50%; background: linear-gradient(135deg, #4f46e5, #7c3aed); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 700; flex-shrink: 0; }
.user-info { flex: 1; }
.user-name { font-size: 18px; font-weight: 700; margin-bottom: 4px; }
.user-details { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 13px; color: var(--text-light); }
.user-recommend { background: var(--card-bg); border-radius: var(--radius); padding: 16px 20px; box-shadow: var(--shadow); }
.user-recommend h4 { margin-bottom: 12px; font-size: 15px; }
.rec-item { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: var(--radius); margin-bottom: 6px; background: var(--bg); transition: all .2s; }
.rec-item:hover { background: #ede9fe; }
.rec-icon { font-size: 20px; flex-shrink: 0; }
.rec-text { flex: 1; font-size: 14px; }
.rec-arrow { color: var(--text-light); font-size: 14px; }

/* ===== 战略规划 ===== */
.plan-tabs { display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; }
.plan-tab { padding: 10px 20px; border: 2px solid var(--border); border-radius: var(--radius); background: var(--card-bg); font-size: 14px; font-weight: 600; cursor: pointer; transition: all .2s; }
.plan-tab:hover { border-color: var(--primary); color: var(--primary); }
.plan-tab.active { background: var(--primary); color: #fff; border-color: var(--primary); }

.plan-intro-card { background: linear-gradient(135deg, #eef2ff, #e0e7ff); border: 1px solid #c7d2fe; border-radius: var(--radius); padding: 16px 20px; margin-bottom: 20px; }
.plan-intro-card h3 { margin: 0 0 4px; font-size: 16px; }
.plan-intro-card p { margin: 0; font-size: 13px; color: var(--text-light); }

/* 每日计划 */
.plan-phase-block { background: var(--card-bg); border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 20px; overflow: hidden; }
.plan-phase-header { background: linear-gradient(135deg, #1e1b4b, #3730a3); color: #fff; padding: 12px 20px; display: flex; align-items: center; gap: 12px; }
.phase-badge { background: rgba(255,255,255,.2); padding: 3px 12px; border-radius: 12px; font-size: 13px; font-weight: 600; }
.phase-weeks { font-size: 13px; opacity: .9; }

.plan-daily-table { overflow-x: auto; }
.daily-header { display: grid; grid-template-columns: 100px 1fr 180px 220px; gap: 8px; padding: 10px 20px; background: #f8fafc; font-size: 12px; font-weight: 600; color: var(--text-light); border-bottom: 1px solid var(--border); }
.daily-row { display: grid; grid-template-columns: 100px 1fr 180px 220px; gap: 8px; padding: 10px 20px; font-size: 13px; border-bottom: 1px solid #f1f5f9; align-items: center; transition: background .15s; }
.daily-row:hover { background: #fafbfc; }
.daily-row:last-child { border-bottom: none; }
.daily-time { font-weight: 600; color: var(--primary); font-size: 12px; }
.daily-task { line-height: 1.4; }
.daily-resource { font-size: 12px; color: var(--text-light); }
.daily-course { font-size: 12px; }
.course-ref { color: var(--primary); text-decoration: none; font-weight: 500; }
.course-ref:hover { text-decoration: underline; }

/* 状态横幅 */
.plan-status-banner { padding: 12px 18px; border-radius: var(--radius); margin-bottom: 16px; font-size: 14px; }
.plan-status-banner.info { background: #eff6ff; border: 1px solid #bfdbfe; color: #1e40af; }
.plan-status-banner.active { background: #fef3c7; border: 1px solid #fcd34d; color: #92400e; }
.plan-status-banner.done { background: #f0fdf4; border: 1px solid #bbf7d0; color: #166534; }

/* 当前阶段标记 */
.phase-current-tag { font-size: 11px; padding: 2px 10px; border-radius: 10px; background: #fef3c7; color: #92400e; font-weight: 600; margin-left: auto; }
.phase-active { box-shadow: 0 0 0 2px var(--primary), 0 4px 12px rgba(79,70,229,.2); }

/* 阶段策略卡片当前高亮 */
.phase-strategy-active { border-left-color: #f59e0b; box-shadow: 0 0 0 2px #f59e0b, 0 4px 16px rgba(245,158,11,.2); position: relative; }
.phase-current-ribbon { position: absolute; top: 0; right: 0; background: linear-gradient(135deg, #f59e0b, #d97706); color: #fff; font-size: 11px; font-weight: 700; padding: 4px 14px; border-radius: 0 var(--radius) 0 var(--radius); }

/* 表格当前行高亮 */
.row-active { background: #fefce8 !important; }
.row-active td:first-child { font-weight: 700; }
.phase-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 16px; }
.phase-strategy-card { background: var(--card-bg); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; border-left: 4px solid var(--primary); }
.phase-strategy-header { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.phase-strategy-header h4 { margin: 0; font-size: 16px; }
.phase-icon { font-size: 28px; }
.phase-period { font-size: 12px; color: var(--text-light); }
.phase-goal { background: #fefce8; padding: 10px 14px; border-radius: var(--radius); font-size: 13px; margin-bottom: 12px; line-height: 1.5; }
.phase-details { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.phase-item { display: flex; gap: 10px; font-size: 13px; line-height: 1.5; }
.phase-label { font-weight: 600; white-space: nowrap; min-width: 70px; color: var(--text); }
.phase-item span:last-child { color: var(--text-light); }
.phase-tips { font-size: 12px; color: #92400e; background: #fffbeb; padding: 10px 14px; border-radius: var(--radius); line-height: 1.5; }

/* ===== 响应式 ===== */
@media (max-width: 768px) {
  #sidebar { width: 60px; } .logo-text, .nav-item span:not(.nav-icon), .sidebar-footer { display: none; }
  .nav-item { justify-content: center; padding: 14px; } .nav-icon { font-size: 22px; }
  #main-content { margin-left: 60px; padding: 16px; }
  .dashboard-grid { grid-template-columns: 1fr 1fr; } .school-list { grid-template-columns: 1fr; }
  .form-row { flex-direction: column; } .countdown-big { gap: 12px; }
  .countdown-item { min-width: 60px; padding: 12px 16px; } .countdown-item span { font-size: 32px; }
  .school-body-columns { grid-template-columns: 1fr; }
  .daily-header, .daily-row { grid-template-columns: 80px 1fr; }
  .daily-header span:nth-child(3), .daily-header span:nth-child(4),
  .daily-resource, .daily-course { display: none; }
  .phase-cards { grid-template-columns: 1fr; }
  .plan-tabs { flex-wrap: nowrap; overflow-x: auto; }
  .dash-checkin-card { flex-direction: column; }
  .school-card.expanded { grid-column: auto; }
}

/* ===== 院校查询页面 (研招通) ===== */
#schoolsApp { margin-top: 8px; }
.schools-search-bar { position: relative; margin-bottom: 12px; }
.schools-search-bar input {
  width: 100%; padding: 10px 40px 10px 14px; border: 1px solid var(--border);
  border-radius: var(--radius); font-size: 14px; transition: border-color .2s;
}
.schools-search-bar input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(79,70,229,.1); }
.schools-search-clear {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  background: none; border: none; color: var(--text-light); cursor: pointer;
  font-size: 16px; padding: 4px 8px; border-radius: 4px; display: none;
}
.schools-search-clear:hover { color: var(--danger); }
.schools-search-clear.visible { display: block; }

.schools-filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; margin-bottom: 12px; }
.schools-filters .filter-group { display: flex; flex-direction: column; gap: 4px; }
.schools-filters .filter-group label { font-size: 12px; color: var(--text-light); font-weight: 500; }
.schools-filters .form-select { min-width: 120px; font-size: 13px; padding: 8px 12px; }

.schools-result-info { font-size: 13px; color: var(--text-light); margin-bottom: 12px; }
.schools-result-info .result-count { color: var(--primary); font-weight: 700; }

.schools-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 12px; }
.schools-card {
  background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px; cursor: pointer; transition: all .2s; position: relative; overflow: hidden;
}
.schools-card::before {
  content: ''; position: absolute; top: 0; left: 0; width: 3px; height: 100%;
  background: linear-gradient(180deg, var(--primary), var(--primary-light)); opacity: 0; transition: opacity .2s;
}
.schools-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: var(--primary-light); }
.schools-card:hover::before { opacity: 1; }

.schools-card-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 8px; }
.schools-card-name { font-size: 16px; font-weight: 700; color: var(--text); }
.schools-card-badges { display: flex; gap: 4px; flex-shrink: 0; }
.schools-badge {
  font-size: 10px; padding: 2px 6px; border-radius: 4px; font-weight: 700;
  letter-spacing: 0.5px; white-space: nowrap;
}
.schools-badge-985 { background: #fef3c7; color: #92400e; }
.schools-badge-211 { background: #dbeafe; color: #1e40af; }
.schools-badge-double { background: #d1fae5; color: #065f46; }
.schools-badge-auto { background: #fee2e2; color: #991b1b; }

.schools-card-meta { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 13px; color: var(--text-light); margin-bottom: 8px; }
.schools-card-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 8px; }
.schools-tag {
  font-size: 11px; padding: 2px 8px; border-radius: 20px;
  background: #eef2ff; color: #4338ca; white-space: nowrap;
}
.schools-card-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 8px; border-top: 1px solid var(--border);
  font-size: 12px; color: var(--text-light);
}
.schools-card-url { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 240px; }
.schools-card-arrow { transition: transform .2s; }
.schools-card:hover .schools-card-arrow { transform: translateX(3px); color: var(--primary); }

.schools-empty { text-align: center; padding: 48px 16px; }
.schools-empty .empty-icon { font-size: 48px; margin-bottom: 12px; opacity: 0.5; }
.schools-empty h3 { border: none; margin-bottom: 8px; }
.schools-empty p { color: var(--text-light); }

.schools-load-more { text-align: center; padding: 20px 0 32px; }

/* 院校详情弹窗 */
.modal-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(0,0,0,.5); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  padding: 24px; opacity: 0; pointer-events: none; transition: opacity .25s;
}
.modal-overlay.active { opacity: 1; pointer-events: auto; }
.modal-content {
  background: var(--card-bg); border-radius: 12px; width: 100%; max-width: 640px;
  max-height: 85vh; overflow-y: auto; padding: 28px; position: relative;
  box-shadow: 0 8px 50px rgba(0,0,0,.15);
  animation: modalIn .3s ease;
}
@keyframes modalIn { from { opacity: 0; transform: translateY(16px) scale(.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
.modal-close-btn {
  position: sticky; top: 0; float: right; z-index: 10;
  width: 32px; height: 32px; border-radius: 50%; background: var(--bg);
  border: 1px solid var(--border); color: var(--text-light); font-size: 16px;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: all .2s;
}
.modal-close-btn:hover { background: #fee2e2; border-color: var(--danger); color: var(--danger); }

.modal-school-name { font-size: 22px; font-weight: 900; margin-bottom: 4px; }
.modal-school-ename { font-size: 13px; color: var(--text-light); margin-bottom: 12px; }
.modal-school-badges { display: flex; gap: 6px; margin-bottom: 16px; }

.modal-info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
.modal-info-item { background: var(--bg); border-radius: var(--radius); padding: 12px 16px; }
.modal-info-label { font-size: 11px; color: var(--text-light); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 4px; }
.modal-info-value { font-size: 14px; font-weight: 500; }

.modal-section-title { font-size: 12px; color: var(--text-light); text-transform: uppercase; letter-spacing: .5px; margin: 16px 0 8px; }

.modal-links { display: flex; flex-direction: column; gap: 8px; }
.modal-link {
  display: flex; align-items: center; gap: 8px; padding: 10px 14px;
  background: #eef2ff; border: 1px solid #c7d2fe; border-radius: var(--radius);
  color: var(--primary); text-decoration: none; font-size: 13px; transition: all .2s;
}
.modal-link:hover { background: #e0e7ff; border-color: var(--primary); }
.modal-link span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 学科评估徽章 */
.schools-badge-disc { background: #fce7f3; color: #be185d; }

/* 报录比标签 */
.schools-ratio-badge {
  font-size: 11px; padding: 2px 8px; border-radius: 10px; font-weight: 600; white-space: nowrap;
}
.ratio-high { background: #fee2e2; color: #dc2626; }
.ratio-mid { background: #fef3c7; color: #d97706; }
.ratio-low { background: #d1fae5; color: #059669; }

/* 分数线趋势指示器 */
.trend-up { color: #dc2626; font-weight: 600; font-size: 12px; }
.trend-down { color: #16a34a; font-weight: 600; font-size: 12px; }
.trend-stable { color: #6b7280; font-weight: 600; font-size: 12px; }

/* 卡片内分数线行 */
.schools-card-scores { margin-bottom: 8px; padding: 8px 0; border-top: 1px dashed var(--border); border-bottom: 1px dashed var(--border); }
.schools-score-row { display: flex; gap: 6px; align-items: flex-end; }
.score-cell { flex: 1; text-align: center; }
.score-year { display: block; font-size: 10px; color: var(--text-light); margin-bottom: 2px; }
.score-val { display: block; font-size: 14px; font-weight: 700; color: var(--text); }
.score-trend-cell { flex: 1.2; display: flex; align-items: center; justify-content: center; }

/* 弹窗分数线柱状图 */
.score-timeline { display: flex; gap: 12px; align-items: flex-end; justify-content: center; padding: 12px 0; height: 120px; }
.score-bar-col { flex: 1; max-width: 60px; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; }
.score-bar-label { font-size: 13px; font-weight: 700; color: var(--primary); margin-bottom: 4px; }
.score-bar-track { width: 100%; height: 80px; background: #f1f5f9; border-radius: 6px; position: relative; display: flex; align-items: flex-end; overflow: hidden; }
.score-bar-inner {
  width: 100%; border-radius: 6px;
  background: linear-gradient(180deg, var(--primary), var(--primary-light));
  transition: height .5s ease;
  min-height: 4px;
}
.score-bar-year { font-size: 11px; color: var(--text-light); margin-top: 4px; }
.score-trend-info { text-align: center; font-size: 13px; padding: 4px 0; }

/* 学科评估列表 */
.disc-list { display: flex; flex-wrap: wrap; gap: 6px; }
.disc-tag {
  font-size: 12px; padding: 4px 10px; border-radius: 6px;
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  color: #92400e; font-weight: 500; white-space: nowrap;
}

/* 优势专业标签 */
.majors-list { display: flex; flex-wrap: wrap; gap: 6px; }
.major-tag {
  font-size: 12px; padding: 4px 12px; border-radius: 16px;
  background: #ede9fe; color: #5b21b6; font-weight: 500;
}

@media (max-width: 768px) {
  .schools-grid { grid-template-columns: 1fr; }
  .modal-info-grid { grid-template-columns: 1fr; }
  .modal-content { padding: 16px; }
  .score-timeline { gap: 6px; }
  .score-bar-col { max-width: 48px; }
}

/* ===== 错题本 ===== */
.error-add-form { background: var(--card-bg); padding: 24px; border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 24px; }
.error-add-form h3 { margin-bottom: 16px; font-size: 16px; }
.error-filters { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; align-items: center; }
.error-list { display: flex; flex-direction: column; gap: 10px; }
.error-item { background: var(--card-bg); padding: 16px 18px; border-radius: var(--radius); box-shadow: var(--shadow); display: flex; align-items: flex-start; gap: 12px; transition: all .2s; }
.error-item:hover { box-shadow: 0 4px 12px rgba(0,0,0,.1); }
.error-item .error-subject { font-size: 12px; padding: 3px 12px; border-radius: 12px; background: #fef2f2; color: var(--danger); font-weight: 600; flex-shrink: 0; margin-top: 2px; }
.error-item .error-content { flex: 1; min-width: 0; }
.error-item .error-question { font-size: 15px; margin-bottom: 6px; line-height: 1.5; word-break: break-word; }
.error-item .error-answer { font-size: 13px; color: var(--success); margin-top: 6px; padding: 8px 12px; background: #f0fdf4; border-radius: 6px; line-height: 1.5; }
.error-item .error-meta { font-size: 12px; color: var(--text-light); margin-top: 6px; display: flex; gap: 12px; flex-wrap: wrap; }
.error-item .error-reason-tag { display: inline-block; font-size: 12px; padding: 2px 10px; border-radius: 10px; background: #fef9c3; color: #a16207; margin-top: 6px; font-weight: 500; }

/* ===== 打卡系统增强 ===== */
.checkin-hero { background: linear-gradient(135deg, #f0fdf4, #ecfdf5); border: 1px solid #bbf7d0; border-radius: var(--radius); padding: 28px; text-align: center; }
.checkin-stats { display: flex; gap: 16px; justify-content: center; margin-bottom: 8px; }
.checkin-stat-card { background: #fff; border-radius: var(--radius); padding: 16px 24px; box-shadow: var(--shadow); min-width: 120px; }
.stat-number { font-size: 32px; font-weight: 800; color: var(--primary); }
.stat-label { font-size: 13px; color: var(--text-light); margin-top: 4px; }
.btn-checkin { padding: 12px 28px; background: linear-gradient(135deg, #10b981, #059669); color: #fff; font-size: 16px; font-weight: 700; border-radius: 12px; border: none; cursor: pointer; transition: all .2s; box-shadow: 0 4px 12px rgba(16,185,129,.3); }
.btn-checkin:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(16,185,129,.4); }
.btn-checkin.checked { background: linear-gradient(135deg, #9ca3af, #6b7280); box-shadow: 0 2px 8px rgba(107,114,128,.3); }


/* ===== 图片上传 ===== */
.image-upload-area { display: flex; align-items: center; margin-top: 4px; }
.img-remove-btn { width: 24px; height: 24px; border-radius: 50%; background: #fee2e2; border: 1px solid #fecaca; color: #dc2626; font-size: 14px; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.img-remove-btn:hover { background: #fecaca; }
.error-image-wrap { margin: 8px 0; }

/* ===== 学习日志 ===== */
.log-input-area { background: var(--card-bg); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); }
.log-date-group { margin-bottom: 16px; }
.log-date-header { font-size: 14px; font-weight: 600; color: var(--primary); margin-bottom: 8px; padding-bottom: 6px; border-bottom: 1px solid var(--border); }
.log-entry { background: var(--bg); border-radius: var(--radius); padding: 12px 16px; margin-bottom: 8px; border-left: 3px solid var(--primary-light); }
.log-entry-content { font-size: 14px; line-height: 1.6; color: var(--text); white-space: pre-wrap; word-break: break-word; }
.log-entry-meta { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; font-size: 12px; color: var(--text-light); }
.log-del { cursor: pointer; color: var(--text-light); font-size: 16px; padding: 2px 6px; border-radius: 4px; transition: all .2s; }
.log-del:hover { color: var(--danger); background: #fee2e2; }

/* 日历有日志标记 */
.cal-day.has-log::after { content: ''; display: block; width: 4px; height: 4px; border-radius: 50%; background: #f59e0b; position: absolute; bottom: 2px; }
.cal-day { position: relative; }

/* ===== 自定义计划 ===== */
.custom-plan-form { background: var(--card-bg); border-radius: var(--radius); padding: 20px 24px; box-shadow: var(--shadow); margin-bottom: 20px; }
.custom-plan-form h4 { margin-bottom: 14px; font-size: 15px; }
.custom-day-group { margin-bottom: 20px; }
.custom-day-header { display: flex; justify-content: space-between; align-items: center; font-size: 14px; font-weight: 600; color: var(--primary); margin-bottom: 8px; padding-bottom: 6px; border-bottom: 1px solid var(--border); }
.custom-plan-item { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; background: var(--bg); border-radius: var(--radius); margin-bottom: 6px; transition: all .2s; }
.custom-plan-item:hover { background: #eef2ff; }
.custom-plan-item.done { opacity: .6; }
.custom-plan-check { font-size: 20px; cursor: pointer; flex-shrink: 0; margin-top: 1px; user-select: none; transition: transform .15s; }
.custom-plan-check:hover { transform: scale(1.2); }
.custom-plan-info { flex: 1; min-width: 0; }
.custom-plan-content { font-size: 14px; line-height: 1.5; word-break: break-word; }
.custom-plan-content.done-text { text-decoration: line-through; color: var(--text-light); }
.custom-plan-meta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; font-size: 12px; color: var(--text-light); align-items: center; }
.custom-plan-tag { font-size: 11px; padding: 2px 8px; border-radius: 8px; font-weight: 600; }
.custom-plan-del { cursor: pointer; color: var(--text-light); font-size: 16px; padding: 2px 6px; border-radius: 4px; flex-shrink: 0; }
.custom-plan-del:hover { color: var(--danger); background: #fee2e2; }

/* ===== 自定义计划视图切换 ===== */
.custom-view-tabs { display: flex; gap: 8px; margin-bottom: 16px; }
.custom-view-tab { padding: 6px 16px; border: 1px solid var(--border); border-radius: 20px; background: var(--bg); color: var(--text); font-size: 13px; cursor: pointer; transition: all .2s; }
.custom-view-tab:hover { background: #eef2ff; border-color: var(--primary); }
.custom-view-tab.active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ===== 多选科目 ===== */
.subject-checkboxes { display: flex; gap: 8px; flex-wrap: wrap; }
.subject-checkbox { display: flex; align-items: center; gap: 4px; font-size: 13px; padding: 6px 12px; border: 1px solid var(--border); border-radius: 20px; cursor: pointer; transition: all .2s; user-select: none; background: var(--bg); }
.subject-checkbox:hover { border-color: var(--primary); background: #eef2ff; }
.subject-checkbox input[type=checkbox] { accent-color: var(--primary); width: 14px; height: 14px; cursor: pointer; }
.subject-checkbox:has(input:checked) { background: #eef2ff; border-color: var(--primary); font-weight: 600; }

/* ===== AI 助手 ===== */
.ai-tabs { display: flex; gap: 8px; margin-bottom: 20px; }
.ai-tab { padding: 10px 20px; border: 2px solid var(--border); border-radius: 12px; background: var(--bg); color: var(--text); font-size: 14px; font-weight: 600; cursor: pointer; transition: all .2s; }
.ai-tab:hover { border-color: var(--primary); background: #eef2ff; }
.ai-tab.active { background: linear-gradient(135deg, #6366f1, #8b5cf6); color: #fff; border-color: transparent; }
.ai-api-config { background: var(--card-bg); border-radius: var(--radius); padding: 14px 18px; margin-bottom: 20px; box-shadow: var(--shadow); }
.ai-form-card { background: var(--card-bg); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); margin-bottom: 20px; }
.ai-form-card h4 { margin-bottom: 8px; }
.subject-levels { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.subject-level-row { display: flex; align-items: center; gap: 10px; }
.level-label { width: 48px; font-size: 13px; font-weight: 600; }
.ai-loading { text-align: center; padding: 40px; }
.ai-spinner { width: 40px; height: 40px; border: 3px solid #e5e7eb; border-top-color: var(--primary); border-radius: 50%; animation: spin .8s linear infinite; margin: 0 auto 16px; }
@keyframes spin { to { transform: rotate(360deg); } }
.ai-result-card { background: var(--card-bg); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); line-height: 1.8; }
.ai-result-card h2 { font-size: 20px; margin: 20px 0 10px; color: var(--primary); }
.ai-result-card h3 { font-size: 17px; margin: 16px 0 8px; color: #4f46e5; }
.ai-result-card h4 { font-size: 15px; margin: 12px 0 6px; }
.ai-result-card ul { padding-left: 20px; margin: 8px 0; }
.ai-result-card li { margin: 4px 0; font-size: 14px; }
.ai-result-card code { background: #f1f5f9; padding: 2px 6px; border-radius: 4px; font-size: 13px; }
.ai-result-card strong { color: #4f46e5; }
.ai-result-card p { margin: 8px 0; font-size: 14px; }
.ai-error { background: #fef2f2; border: 1px solid #fecaca; border-radius: var(--radius); padding: 16px; color: #dc2626; font-size: 14px; }

/* ===== Footer 打赏 ===== */
#site-footer { margin-top: auto; border-top: 1px solid var(--border); padding: 0; }
.footer-support { padding: 16px 24px; }
.support-card { display: flex; align-items: center; gap: 14px; background: linear-gradient(135deg, #fef3c7, #fde68a); border-radius: 12px; padding: 14px 20px; }
.support-icon { font-size: 32px; }
.support-text { flex: 1; display: flex; flex-direction: column; }
.support-text strong { font-size: 14px; color: #92400e; }
.support-text span { font-size: 12px; color: #a16207; }
.footer-bottom { display: flex; justify-content: space-between; padding: 12px 24px; font-size: 12px; color: var(--text-light); border-top: 1px solid var(--border); }
.donate-modal { max-width: 420px; text-align: center; }
.donate-options { display: flex; gap: 24px; justify-content: center; }
.donate-qr { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 13px; }
.qr-placeholder { width: 160px; height: 160px; background: #f1f5f9; border-radius: 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #94a3b8; font-size: 14px; border: 2px dashed #cbd5e1; }

/* ===== AI 模块增强 ===== */
.ai-mode-info { display: flex; align-items: center; gap: 10px; }
.ai-mode-badge { padding: 3px 10px; border-radius: 20px; font-size: 12px; font-weight: 600; }
.ai-mode-badge.free { background: #d1fae5; color: #065f46; }
.ai-mode-badge.pro { background: #dbeafe; color: #1e40af; }
.ai-api-config details summary { color: var(--primary); font-weight: 500; }
.ai-api-config details a { color: var(--primary); }

/* ===== AI Key 输入行 ===== */
.ai-key-row { display: flex; align-items: center; gap: 10px; }
.ai-key-label { font-size: 13px; font-weight: 600; white-space: nowrap; }
.ai-key-hint { margin-top: 6px; font-size: 12px; color: var(--text-light); }
.ai-key-hint a { color: var(--primary); }

/* ===== Footer 链接 ===== */
.footer-links { display: flex; gap: 16px; align-items: center; }
.footer-links a { color: var(--primary); text-decoration: none; font-size: 12px; }
.footer-links a:hover { text-decoration: underline; }

/* ===== 反馈弹窗 ===== */
.feedback-modal { max-width: 500px; }
.feedback-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 16px; }
.fb-history-title { font-size: 13px; font-weight: 600; color: var(--text-light); margin-bottom: 10px; padding-top: 12px; border-top: 1px solid var(--border); }
.fb-item { background: #f8fafc; border-radius: 8px; padding: 10px 12px; margin-bottom: 8px; }
.fb-item-header { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.fb-type-tag { font-size: 11px; padding: 2px 8px; border-radius: 10px; background: #e0e7ff; color: #4338ca; }
.fb-status-tag { font-size: 11px; padding: 2px 8px; border-radius: 10px; }
.fb-status-tag.pending { background: #fef3c7; color: #92400e; }
.fb-status-tag.done { background: #d1fae5; color: #065f46; }
.fb-status-tag.wontfix { background: #f1f5f9; color: #64748b; }
.fb-date { font-size: 11px; color: var(--text-light); margin-left: auto; }
.fb-delete-btn { background: none; border: none; cursor: pointer; font-size: 14px; opacity: .5; padding: 0 2px; }
.fb-delete-btn:hover { opacity: 1; }
.fb-item-content { font-size: 13px; line-height: 1.6; }
.fb-item-contact { font-size: 11px; color: var(--text-light); margin-top: 4px; }

/* ===== 打赏按钮增强 ===== */
.support-card .btn-primary { background: linear-gradient(135deg, #f97316, #ef4444); border: none; color: #fff; font-weight: 700; padding: 10px 20px; border-radius: 24px; box-shadow: 0 2px 8px rgba(239,68,68,.35); animation: pulse-donate 2s infinite; }
.support-card .btn-primary:hover { transform: scale(1.05); box-shadow: 0 4px 16px rgba(239,68,68,.5); }
@keyframes pulse-donate { 0%,100% { box-shadow: 0 2px 8px rgba(239,68,68,.35); } 50% { box-shadow: 0 4px 20px rgba(239,68,68,.6); } }

/* ===== 右侧广告栏 ===== */
#ad-sidebar { width: 180px; flex-shrink: 0; padding: 80px 12px 20px 0; position: sticky; top: 0; align-self: flex-start; }
.ad-card { background: linear-gradient(135deg, #fefce8, #fef9c3); border: 2px dashed #facc15; border-radius: 16px; padding: 16px 14px; text-align: center; }
.ad-label { font-size: 13px; font-weight: 700; color: #a16207; margin-bottom: 12px; padding-bottom: 8px; border-bottom: 1px dashed #fde68a; }
.ad-content p { font-size: 12px; color: #713f12; margin: 6px 0; }
.ad-contact { margin-top: 12px; padding-top: 10px; border-top: 1px dashed #fde68a; }
.ad-contact p { font-size: 11px; color: #a16207; margin: 0 0 4px; }
.ad-contact a { font-size: 11px; color: #6366f1; text-decoration: none; word-break: break-all; }
.ad-contact a:hover { text-decoration: underline; }
@media (max-width: 1200px) { #ad-sidebar { display: none; } }