/* =============================================================================
 * gkzy-skin.css —— 全站「统一皮肤层」
 *
 * 目的：把老页面（/ 首页、/rank_search 位次查询、/qa AI 顾问）的观感，
 *       统一到新平台（/profile /recommend /predict /volunteer）的设计语言：
 *         · 浅灰底 #f5f6f8（干掉老 index.css 铺在 body 上的紫色渐变）
 *         · 白色圆角卡片 + 轻阴影
 *         · 品牌红 #e74c3c / #c0392b 作为唯一强调色
 *         · 灰阶文字 #26282d / #5a6070 / #8a8f99 / #a0a5ad
 *         · 控件圆角 8、卡片圆角 12、胶囊圆角 20
 *
 * ⚠️ 本文件**只做样式覆盖**，不改任何老页面的 DOM 与 JS。
 *    首页全靠 index.min.js 驱动（搜索/联想/详情弹层/导出/分页），
 *    动 DOM 或改老 CSS 的构建产物都是高风险，覆盖层是唯一低风险路径。
 *
 * 加载位置：必须是 <head> 里**最后一个**样式表
 *           （老页面把页面级样式写在内联 <style> 里，内联靠后即胜出，
 *            所以本文件要排在那些 <style> 之后才能压住它们）。
 * 依赖：theme/css/index.css（老站点主题，提供布局骨架）+ theme/css/gkzy.css（新平台令牌）
 * ============================================================================= */

/* =============================================================================
 * 1. 全局底色：干掉紫色渐变
 * ============================================================================= */
body {
    /* 老值：linear-gradient(135deg, #667eea 0%, #764ba2 100%)
       这层紫是整个站点「土」的最大来源，也是新老页面观感不一致的根因。
       body 现有的 padding:20px / min-height:100vh 保留不动 —— 老页面的外边距
       就是靠它提供的，改掉会让首页贴边。 */
    background: #f5f6f8;
    color: #26282d;
    font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', 'Segoe UI', Roboto, sans-serif;
}

/* 新平台的 .gkzy-page 自带 padding，与 body 的 20px 叠加会变成 40px 内边距，
   老页面却只有 20px —— 这正是新老页面左右留白不一致的原因。
   这里把 .gkzy-page 的横向内边距归零，让**所有页面统一由 body 提供 20px 外框**。 */
.gkzy-page { padding: 0 0 40px; }
@media (max-width: 768px) {
    body { padding: 12px; }
    .gkzy-page { padding: 0 0 28px; }
}

/* =============================================================================
 * 2. 用户栏（登录 / 头像 / 昵称 / 退出）
 *
 * 老样式是 body 的直接子元素 + position:fixed（index.css:829 .user-bar）。
 * fixed 相对**视口**定位，而导航卡 .main-container 是 max-width:1400px 居中：
 *   · 视口 1440：容器正好占满 1400（x=20~1420），按钮 x≈1343 —— 碰巧落在卡里；
 *   · 视口 1920：容器被挤到 x=260~1660，按钮却仍在 x=1823
 *     —— 于是它孤零零「游离」在导航卡右外侧 160px 的灰底上。
 * 这正是用户截图里那枚飘着的红色胶囊（以及登录后那个方框）。
 *
 * 修法：把 .user-bar 从 body 直接子元素挪进 .gkzy-nav 内部，作为导航的
 *       最后一个子项（见各页面 HTML 的 .gkzy-nav 结尾），再用 margin-left:auto
 *       把它顶到导航条最右端 —— 它天然属于导航卡，任何视口宽度都跟着卡片走。
 * ============================================================================= */
.user-bar,
.user-bar.guest {
    position: static;
    top: auto;
    right: auto;
    margin-left: auto;        /* 吃掉导航项右侧的剩余空间，把自己推到最右 */
    padding: 0 0 0 14px;      /* 左侧留出分隔线的位置 */
    gap: 10px;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
    border-left: 1px solid #eceef2;   /* 一道细竖线，视觉上"隶属"于导航条 */
}
/* 位次查询页的 #userBar 是个空 div（该页未注入内容）：
   容器透明后它会塌缩成一根 14px 的竖线，得直接隐藏 */
.user-bar:empty { display: none; border-left: none; padding-left: 0; }

.user-bar .user-info { color: #26282d; gap: 8px; }
.user-bar .user-avatar { background: #fdecea; width: 28px; height: 28px; font-size: 14px; }
.user-bar .user-name { color: #26282d; font-size: 13.5px; }

.user-bar .btn-login {
    display: inline-flex;
    align-items: center;
    line-height: 1;
    padding: 8px 20px;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: #fff;
    border: none;
    border-radius: 20px;
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}
.user-bar .btn-login:hover { box-shadow: 0 4px 12px rgba(231, 76, 60, .32); }

.user-bar .btn-logout,
.user-bar .btn-profile {
    background: #fff;
    border: 1px solid #e2e4e9;
    color: #5a6070;
    text-decoration: none;
    white-space: nowrap;
}
.user-bar .btn-logout { padding: 6px 14px; font-size: 12.5px; border-radius: 20px; }
.user-bar .btn-profile { padding: 5px 9px; border-radius: 20px; font-size: 12.5px; }
.user-bar .btn-logout:hover,
.user-bar .btn-profile:hover {
    background: #fdecea;
    border-color: #fecaca;
    color: #b91c1c;
}

/* 窄屏：导航项会折行，用户栏跟着折行后靠右即可，分隔线在换行处是多余的 */
@media (max-width: 768px) {
    .user-bar,
    .user-bar.guest { padding-left: 0; border-left: none; }
}

/* =============================================================================
 * 3. 老首页 · 搜索区
 * ============================================================================= */
.search-box {
    border-radius: 12px;
    padding: 20px 22px;
    margin-bottom: 16px;
    box-shadow: 0 2px 14px rgba(0, 0, 0, .06);
}
.search-title {
    font-size: 20px;
    font-weight: 600;
    color: #1f2126;
    margin-bottom: 16px;
    /* 移动端主题（indexm.css）把标题做成「渐变文字」：
       background:linear-gradient(...) + -webkit-background-clip:text + -webkit-text-fill-color:transparent。
       只改 color 是没用的 —— 文字被抠成了背景色的形状。必须把这三件套一起复位。 */
    background: none;
    background-clip: border-box;
    -webkit-background-clip: border-box;
    -webkit-text-fill-color: currentColor;
}
.search-row { gap: 14px; margin-bottom: 14px; }

.form-group label { font-size: 13px; color: #8a8f99; font-weight: 500; }
.form-group input,
.form-group select,
.keyword-wrapper input {
    padding: 9px 12px;
    border: 1px solid #e2e4e9;
    border-radius: 8px;
    font-size: 14px;
    color: #26282d;
    background: #fff;
    transition: border-color .2s, box-shadow .2s;
}
.form-group input:focus,
.form-group select:focus,
.keyword-wrapper input:focus {
    border-color: #e74c3c;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, .1);
}
.keyword-clear { color: #b6bac2; }
.keyword-clear:hover { color: #e74c3c; }

/* 联想下拉 */
.keyword-suggestions {
    border-radius: 10px;
    overflow: hidden;
    border-color: #eceef2;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .1);
}
.suggestion-title { color: #a0a5ad; }
.suggestion-item:hover { background: #fff5f3; }
.suggestion-item .info { color: #a0a5ad; }

/* 查询 / 重置 / 导出 / 排序按钮 */
.btn-search {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(231, 76, 60, .25);
}
.btn-search:hover {
    box-shadow: 0 6px 18px rgba(231, 76, 60, .35);
}
.btn-reset {
    background: #fff;
    border: 1px solid #e2e4e9;
    color: #5a6070;
    border-radius: 8px;
}
.btn-reset:hover { border-color: #e74c3c; color: #c0392b; }

.btn-export {
    background: #fff;
    border: 1px solid #e2e4e9;
    color: #5a6070;
    border-radius: 8px;
}
.btn-export:hover { border-color: #e74c3c; color: #c0392b; }

.btn-sort {
    background: #f4f5f7;
    border: 1px solid transparent;
    color: #5a6070;
    border-radius: 20px;
}
.btn-sort:hover { color: #c0392b; }
.btn-sort.active {
    background: #fff;
    border-color: #e74c3c;
    color: #e74c3c;
}

/* 年份多选下拉 */
.ms-trigger { border-color: #e2e4e9; border-radius: 8px; }
.ms-trigger:hover,
.ms-trigger.open { border-color: #e74c3c; }
.ms-menu { border-color: #e74c3c; box-shadow: 0 10px 30px rgba(0, 0, 0, .12); }
.ms-option:has(input:checked) { background: #fff5f3; color: #c0392b; }

/* =============================================================================
 * 4. 老首页 · 更多筛选
 * ============================================================================= */
.filter-toggle a { color: #e74c3c; }
.filter-label { color: #8a8f99; }
.filter-options a {
    border: 1px solid #e2e4e9;
    border-radius: 20px;
    background: #fff;
    color: #5a6070;
}
.filter-options a:hover { border-color: #f0b0a8; color: #c0392b; }
.filter-options a.active {
    background: #fff5f3;
    border-color: #e74c3c;
    color: #c0392b;
    font-weight: 600;
}
.filter-checkbox:hover { border-color: #e74c3c; }
.filter-checkbox input[type="checkbox"]:checked + span { color: #c0392b; }
.filter-checkbox input[type="checkbox"] { accent-color: #e74c3c; }

/* =============================================================================
 * 5. 老首页 · 结果 Tab（下划线式 → 胶囊式，与新平台 .gkzy-tab 一致）
 * ============================================================================= */
.tabs-box {
    border-radius: 12px;
    box-shadow: 0 2px 14px rgba(0, 0, 0, .06);
    margin-bottom: 16px;
}
.tabs-header {
    border-bottom: 1px solid #f0f0f2;
    gap: 6px;
    padding: 14px 20px 12px;
    flex-wrap: wrap;
}
.tab-btn {
    flex: 0 0 auto;
    padding: 7px 18px;
    border-radius: 20px;
    font-size: 13.5px;
    font-weight: 500;
    color: #5a6070;
    background: #f4f5f7;
    border: 1px solid transparent;
    transition: all .2s;
}
.tab-btn:hover { color: #c0392b; }
.tab-btn.active {
    background: #fff;
    border-color: #e74c3c;
    color: #e74c3c;
    font-weight: 600;
}
.tab-content { padding: 16px 20px 20px; }

.result-header { margin-bottom: 14px; }
.result-count { font-size: 13px; color: #8a8f99; }
.result-count span { color: #e74c3c; font-weight: 700; font-variant-numeric: tabular-nums; }

/* 结果卡片 */
.university-card,
.major-card {
    border-radius: 10px;
    border-left: 3px solid #e74c3c;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .05);
    padding: 16px 18px;
    margin-bottom: 10px;
}
.university-card:hover,
.major-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, .08);
}
.university-name { color: #1f2126; }
.tags .tag {
    background: #f4f5f7;
    color: #6b7280;
    border-radius: 4px;
}
.feature-tag {
    background: #f4f5f7;
    color: #6b7280;
    border-radius: 4px;
}
.location,
.location-text { color: #8a8f99; }
.ranking-badge,
.ranking-value { color: #e74c3c; }
.stat-row .stat-item .label { color: #a0a5ad; }
.stat-row .stat-item .value { color: #26282d; font-variant-numeric: tabular-nums; }
.major-name { color: #1f2126; }
.major-stats { color: #8a8f99; }

/* 分页
 * ⚠️ bootstrap 把 .pagination 设为 display:flex + 左对齐，压掉了 index.css 的 text-align:center，
 * 导致「上一页 / 第X页 / 下一页」整体靠左、页码文字与按钮不垂直居中。
 * 这里显式接管：整行在数据区水平居中 + 控件垂直居中。 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    padding: 14px 20px;
}
.pagination button {
    border: 1px solid #e2e4e9;
    border-radius: 8px;
    color: #5a6070;
    background: #fff;
    transition: all .2s;
}
.pagination button:hover:not(:disabled) {
    border-color: #e74c3c;
    color: #c0392b;
    background: #fff;
}
.pagination .page-info { color: #8a8f99; margin: 0; line-height: 1; }

/* 空态 / 加载 */
.empty-state { color: #a0a5ad; padding: 56px 24px; }
.loading-state { color: #a0a5ad; }
.loading-spinner { border-top-color: #e74c3c; }

/* =============================================================================
 * 6. 老首页 · 院校详情弹层（showUniversityDetail 渲染的那一屏）
 *
 * 老版观感问题（=用户截图里说"不好看"的那一屏）：
 *   ① 头部 .detail-header 是一整块高饱和红渐变，上面还挤着半透明白标签和一个
 *      「阳光高考院校网址」半透明胶囊 —— 对比度极低，看着像 disabled 的按钮；
 *   ② 小节标题 .detail-section h3 仍带 index.css 的 2px #667eea 蓝紫下划线
 *      （skin 之前漏了这条，截图里"录取统计（本科批次）"下面那条蓝线就是它）；
 *   ③ 专业组头 .zyz-header 是第二条满幅红（提前批还是满幅橙），
 *      与下面浅灰的表头完全不搭，一屏里红/橙/蓝三种强调色打架；
 *   ④ 「趋势对比」按钮的紫渐变写在 JS 的**内联 style** 里（index.min.js:767），
 *      普通选择器压不住，只能用 !important（见 §12）。
 *
 * 统一策略：把弹层收进站点既有语言 —— 白卡 / 浅灰底 / 灰阶文字，
 *          品牌红只做"标点符号"（标题前的竖条、组名前的小色块、官网入口）。
 * ============================================================================= */

/* ---- 6.1 弹层容器 ---- */
.modal-overlay { background: rgba(20, 22, 28, .48); }
.modal-content {
    border-radius: 16px;
    box-shadow: 0 24px 64px rgba(20, 22, 28, .26);
}
.modal-title { color: #1f2126; }
.modal-close {
    background: #fff;
    border: 1px solid #ecEEF2;
    color: #8a8f99;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .06);
}
.modal-close:hover { background: #fdecea; border-color: #fecaca; color: #c0392b; }

/* ---- 6.2 头部：高饱和红渐变 → 浅暖底 + 深色标题 ---- */
.detail-header {
    background: linear-gradient(135deg, #fff8f6 0%, #fff1ed 100%);
    border-bottom: 1px solid #f7ddd6;
    color: #1f2126;
    padding: 24px 26px;
    gap: 18px;
    align-items: center;
}
.detail-logo {
    width: 72px;
    height: 72px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid #f2e2de;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .05);
    object-fit: contain;
    padding: 5px;
    flex: 0 0 auto;
}
.detail-info { min-width: 0; flex: 1; }
.detail-info h2 {
    color: #1f2126;
    font-size: 21px;
    font-weight: 700;
    letter-spacing: .2px;
    margin: 0 0 9px;
}
.detail-info .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.detail-info .tags .tag {
    background: #fff;
    border: 1px solid #f4ddd7;
    color: #b6463a;
    font-size: 12px;
    line-height: 1.5;
    padding: 2px 9px;
    border-radius: 6px;
}
.detail-info .meta-row { gap: 10px; align-items: center; }
.detail-info .meta { color: #8a8f99; font-size: 13px; opacity: 1; }
.detail-info .yg-link {
    background: #fff;
    border: 1px solid #f6cfc6;
    color: #c0392b;
    font-size: 12.5px;
    font-weight: 500;
    padding: 5px 13px;
    border-radius: 20px;
}
.detail-info .yg-link:hover {
    background: #fdecea;
    border-color: #e74c3c;
    color: #c0392b;
}

/* ---- 6.3 正文与小节标题 ---- */
.detail-body { color: #33363d; padding: 22px 26px; }
.detail-section h3 {
    /* 干掉 index.css:630 的 border-bottom:2px solid #667eea（蓝紫下划线） */
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: none;
    padding-bottom: 0;
    margin: 0 0 14px;
    font-size: 15.5px;
    font-weight: 600;
    color: #1f2126;
}
.detail-section h3::before {
    content: '';
    width: 3px;
    height: 15px;
    border-radius: 2px;
    background: #e74c3c;
    flex: 0 0 auto;
}

/* 年份切换 */
.year-tab { color: #5a6070; border-radius: 20px; }
.year-tab.active {
    background: #fff;
    border-color: #e74c3c;
    color: #e74c3c;
    font-weight: 600;
}

/* ---- 6.4 录取统计卡片 ---- */
.stat-card {
    background: #fff;
    border: 1px solid #eceef2;
    border-radius: 10px;
    padding: 16px 12px;
}
.stat-card .value { color: #1f2126; font-size: 21px; font-weight: 700; font-variant-numeric: tabular-nums; }
.stat-card .label { color: #8a8f99; font-size: 12px; margin-top: 6px; }

/* ---- 6.5 专业组卡片：满幅红/橙 → 浅底 + 红色点缀 ---- */
.zyz-block {
    background: #fff;
    border: 1px solid #eceef2;
    border-radius: 10px;
}
/* 满幅红渐变（index.css:740）与「提前批」的内联橙渐变都要压掉，故 !important */
.zyz-header {
    background: #fff9f8 !important;
    color: #26282d !important;
    border-bottom: 1px solid #f7e5e0;
    padding: 12px 16px;
    align-items: center;
}
.zyz-header .zyz-name {
    color: #1f2126;
    font-weight: 600;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.zyz-header .zyz-name::before {
    content: '';
    width: 3px;
    height: 14px;
    border-radius: 2px;
    background: #e74c3c;
    flex: 0 0 auto;
}
.zyz-header .zyz-name small { color: #a0a5ad !important; font-weight: 400; }
.zyz-header .zyz-stats { gap: 18px; }
.zyz-stat-item label { color: #9aa0a8 !important; font-size: 11px; opacity: 1 !important; }
.zyz-stat-item value { color: #1f2126 !important; font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; }

.zyz-item { border-radius: 10px; }
.zyz-item h4 { color: #1f2126; }

/* ---- 6.6 专业表 ---- */
.major-table th,
.major-result-table th {
    background: #f7f8fa;
    color: #6b7280;
    border-bottom: 1px solid #eceef2;
}
.major-table td,
.major-result-table td { color: #33363d; border-bottom: 1px solid #f4f5f7; }
.major-table tbody tr:hover td,
.major-result-table tr:hover td { background: #fafbfc; }

/* ---- 6.7 专业趋势 ---- */
.trend-section h4 { color: #1f2126; }
.trend-button {
    background: #fff;
    border: 1px solid #e2e4e9;
    color: #5a6070;
    border-radius: 8px;
}
.trend-button:hover { border-color: #e74c3c; color: #c0392b; }
.major-item { border-radius: 10px; box-shadow: 0 2px 10px rgba(0, 0, 0, .05); }
.major-item:hover { box-shadow: 0 6px 20px rgba(0, 0, 0, .08); }
.trend-table th { background: #f7f8fa; color: #6b7280; }
.badge { background: #eef0f3; color: #6b7280; border-radius: 4px; }

/* ---- 6.8 个人信息弹窗：紫色标题条 → 普通标题 ---- */
.profile-modal .modal-title {
    background: none;
    color: #1f2126;
    padding: 20px 25px 14px;
    border-bottom: 1px solid #f0f0f2;
}
.profile-form .profile-field label { color: #8a8f99; }
.profile-form .profile-field input {
    border: 1px solid #e2e4e9;
    border-radius: 8px;
    color: #26282d;
}
.profile-form .profile-field input:focus {
    border-color: #e74c3c;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, .1);
}
.profile-form .btn-submit {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    border-radius: 8px;
}
.profile-form .btn-submit:hover { box-shadow: 0 4px 12px rgba(231, 76, 60, .32); }
.profile-form .btn-cancel {
    background: #fff;
    border: 1px solid #e2e4e9;
    color: #5a6070;
    border-radius: 8px;
}
.profile-form .btn-cancel:hover { border-color: #e74c3c; color: #c0392b; background: #fff; }

/* =============================================================================
 * 7. 老首页 · 免责声明 / 回到顶部
 *    （橙色保留 —— 是「警示」语义，不是品牌色，但圆角与阴影对齐新令牌）
 * ============================================================================= */
.disclaimer { border-radius: 12px; }
.back-to-top {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    border-radius: 50%;
}
.back-to-top:hover { box-shadow: 0 6px 18px rgba(231, 76, 60, .4); }

/* =============================================================================
 * 8. 位次查询页（/rank_search）
 *    该页配色**本来就已经是品牌红**（.rank-btn-query / focus / highlight-row 都是 #e74c3c），
 *    它唯一的毛病是：① 被 body 的紫色渐变拖累；② 自绘了一条下划线式 .rank-nav，
 *    跟新平台的胶囊导航不是一套语言。
 *    两处分别由：① 本文件第 1 节  ② 改成 .gkzy-nav  解决。
 *    其余 .rank-* / .st-* / .equiv-* 都是该页私有组件，交给页面自己的内联样式维护，
 *    不在这里堆覆盖规则 —— 否则以后改位次查询页要同时维护两处。
 * ============================================================================= */

/* =============================================================================
 * 9. AI 顾问页（/qa）
 *
 * 该页是「满屏 flex + 内部滚动」，没有 .main-container —— 于是它的导航和聊天区
 * 一路铺到视口边缘，而其余 6 个页面都是 body 20px 外边距 + 1400px 居中：
 * 同一套导航，两种宽度，用户一眼就看出「跟前面的界面不一致」。
 *
 * 处理：给它套一个和别的页面同宽的外框 .qa-shell（1400px 居中 + 整块白卡），
 *       把导航 / 上下文 / 会话 / 快捷问 / 输入框全部收进这张卡里。
 *       body 的 20px 外边距写在 qa/index.html 的内联 body 规则里
 *       （那页自己是 height:100vh + overflow:hidden，外边距属于它的布局职责）。
 * ============================================================================= */

/* ---- 9.1 外框 ---- */
.qa-shell {
    width: 100%;
    max-width: 1400px;   /* 与 .main-container 同宽 */
    margin: 0 auto;
    flex: 1;
    min-height: 0;       /* 关键：flex 子项默认 min-height:auto，不归零则内部无法滚动 */
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 2px 14px rgba(0, 0, 0, .06);
    overflow: hidden;
}

/* 导航现在是"卡内页头"：去掉它自带的白卡底/阴影/圆角，只留一条分隔线，
   否则会是"白卡上再叠一张白卡"。 */
.qa-top {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-bottom: 1px solid #f0f0f2;
    flex-shrink: 0;
}
.qa-top .gkzy-nav {
    flex: 1;
    margin-bottom: 0;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
    padding: 0;
}

/* 窄屏：7 个导航项 + 用户栏 + 一枚按钮挤一行会折成好几行。
   改成导航占满一整行、按钮换行后右对齐。 */
@media (max-width: 768px) {
    .qa-top { flex-wrap: wrap; }
    .qa-top .gkzy-nav { flex: 1 1 100%; }
    .qa-top .gkzy-btn { margin-left: auto; }
    .qa-shell { border-radius: 12px; }
}

.context-bar {
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    border-bottom: 1px solid #f5f6f8;
    margin: 0;
    padding: 12px 16px;
}
/* 游客态没有上下文时，别留一条空栏 */
.context-bar:empty { display: none; }
.context-tag {
    background: #f4f5f7;
    border-radius: 20px;
    color: #5a6070;
}
.context-tag.active {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: #fff;
    box-shadow: 0 2px 8px rgba(231, 76, 60, .25);
}

.chat-area { padding: 16px; background: #fafbfc; }

.message.bot .bubble { border-radius: 14px; border-top-left-radius: 10px; }
.message.user .bubble {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    border-radius: 14px;
    border-top-right-radius: 10px;
    box-shadow: 0 2px 8px rgba(231, 76, 60, .2);
}
.message.bot .avatar { background: linear-gradient(135deg, #e74c3c, #c0392b); }

.quick-bar { background: #fff; border-top: 1px solid #f0f0f2; padding: 10px 16px; }
.quick-btn {
    background: #fff;
    border: 1px solid #e2e4e9;
    border-radius: 20px;
    color: #5a6070;
}
.quick-btn:hover {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 2px 8px rgba(231, 76, 60, .25);
}
/* 输入区已在 .qa-shell 卡片底部，去掉投影免得在卡里糊出一条灰边 */
.input-area {
    box-shadow: none;
    border-top: 1px solid #f0f0f2;
    padding: 12px 16px;
}
.input-area textarea {
    border: 1px solid #e2e4e9;
    background: #f5f6f8;
    border-radius: 22px;
    color: #26282d;
}
.input-area textarea:focus {
    border-color: #e74c3c;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, .1);
}
.btn-send {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    box-shadow: 0 2px 8px rgba(231, 76, 60, .3);
}
.btn-send:hover { box-shadow: 0 4px 12px rgba(231, 76, 60, .4); }
.btn-send:disabled { box-shadow: 0 2px 8px rgba(231, 76, 60, .3); }
.typing-indicator span { background: #e74c3c; }

/* =============================================================================
 * 10. 登录页（/login）
 *     该页样式完全自绘（内联 <style>，且带 * { margin:0; padding:0 } 全局重置），
 *     紫色系（#667eea / #764ba2）成片出现。处理方式：
 *       · 底色/字体 —— 由本文件第 1 节统一接管；
 *       · 品牌色   —— 直接在 login/index.html 的内联样式里把紫色令牌换成品牌红
 *                     （页面自绘的样式就让它自己自洽，不在这里堆一长串覆盖规则，
 *                      否则以后改登录页要同时维护两处）。
 * ============================================================================= */

/* =============================================================================
 * 11. 移动端主题（indexm.css）残留紫色兜底
 *
 * 页面靠一段内联脚本按 innerWidth 在 index.css / indexm.css 之间二选一，
 * 所以「桌面好看」不等于「手机好看」—— 移动主题里另有 27 条规则在用紫色系
 * （#667eea / #764ba2 / #6366f1 / #a855f7）。上面的规则已覆盖大部分，这里补漏网的。
 *
 * 说明：本文件在 <head> 里排在最后，实测层叠顺序为
 *       indexm.min.css → 页面内联 <style> → gkzy.css → gkzy-skin.css（本文件），
 *       因此同优先级选择器本文件胜出，不需要 !important。
 * ============================================================================= */

/* 移动端给激活 tab 挂了一条紫色渐变下划线；胶囊样式自带边框，这条是多余的 */
.tab-btn.active::after { display: none; }

/* 详情弹层头部/专业组头的配色已全部由 §6 接管（浅底 + 深色字 + 红色点缀），
   这里不再重复 —— 原先那条「整块红渐变」的兜底会盖住 §6，已删除。 */

.pagination button:active:not(:disabled) {
    border-color: #e74c3c;
    color: #c0392b;
}

.trend-button:hover {
    border-color: #e74c3c;
    color: #c0392b;
    box-shadow: 0 2px 10px rgba(231, 76, 60, .18);
}

/* =============================================================================
 * 12. 内联样式里的旧配色（!important 专用区）
 *
 * 这一节只收「写在 HTML 属性 style="" 里的颜色」—— 内联样式优先级高于任何
 * 普通选择器，只能靠 !important 压。已核查全部来源：
 *   · index.min.js:610 / 890 —— 游客截断提示条（紫渐变）+ 里面的「立即登录」按钮
 *   · index.min.js:673      —— 「账号已在其他设备登录」弹窗的「重新登录」按钮
 *   · index.min.js:767      —— 详情弹层「趋势对比」按钮（紫渐变）
 *   · index.min.js:853      —— 提前批专业组头（橙渐变，语义色，保留成浅橙）
 * 站点里没有其它内联颜色，所以这一节是**封闭**的：以后新增内联色要同步加到这里。
 * ============================================================================= */

/* 游客数据截断提示条：紫渐变 → 品牌红渐变（白字保持可读） */
.login-hint,
.major-limit-hint {
    background: linear-gradient(135deg, #e74c3c, #c0392b) !important;
    border-radius: 10px !important;
}
.login-hint button,
.major-limit-hint button {
    color: #c0392b !important;
    border-radius: 20px !important;
}
/* 提示条里的长文案在窄屏会顶到按钮，给个换行兜底 */
.login-hint, .major-limit-hint { gap: 12px; flex-wrap: wrap; }

/* 「账号已在其他设备登录」弹窗的重新登录按钮 */
#kicked-out-modal button {
    background: linear-gradient(135deg, #e74c3c, #c0392b) !important;
    border-radius: 20px !important;
}

/* 详情弹层「趋势对比」按钮 */
#trendBtn {
    background: linear-gradient(135deg, #e74c3c, #c0392b) !important;
    border-radius: 20px !important;
    font-weight: 600 !important;
    box-shadow: 0 2px 8px rgba(231, 76, 60, .25);
}
#trendBtn:hover { box-shadow: 0 4px 14px rgba(231, 76, 60, .35); }

/* 提前批专业组：橙色是"提前批"的语义色，保留但降饱和成浅橙底，
   与正常的浅红底区分开（选择器靠内联 style 里的 #faad14 命中）。 */
.zyz-header[style*="faad14"] { background: #fffaf0 !important; border-bottom-color: #fbe7c2 !important; }
.zyz-header[style*="faad14"] .zyz-name::before { background: #fa8c16; }
.zyz-block[style*="faad14"] { border-color: #fbe7c2; }
