/* 我考网公开门户样式（与 1603 后台同一套配色：品牌红 #c60c23） */
:root {
  --brand: #c60c23;
  --brand-dark: #a30c1e;
  --brand-deep: #6f0915;
  --brand-50: #fef4f5;
  --brand-100: #fde3e6;
  --ink-900: #0b1220;
  --ink-700: #344054;
  --ink-500: #667085;
  --ink-400: #98a2b3;
  --ink-200: #e4e7ec;
  --ink-100: #eaecf0;
  --bg: #f6f7f9;
  --radius: 10px;
  --wrap: 1180px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", sans-serif;
  background: #fff;
  color: var(--ink-700);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3 { margin: 0; color: var(--ink-900); }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
/* 只给机器读的隐藏文本（首页 h1 等）：不进视觉版式，但完整存在于 HTML 文本里 */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* 顶部 */
.site-header { background: #fff; box-shadow: 0 1px 0 rgba(16, 24, 40, .06); position: relative; z-index: 20; }
/* 顶部工具条已移除；小屏在品牌条右侧保留一个轻量登录入口 */
.brand-login { display: none; }

.brandbar { background: linear-gradient(115deg, #6f0915 0%, #a30c1e 40%, #c60c23 70%, #8f0a19 100%); position: relative; overflow: hidden; }
/* 顶部装饰：博士帽 / 志愿表 / 指南针，低透明度水印 */
.brand-deco { position: absolute; inset: 0; color: #fff; pointer-events: none; }
.brand-deco .ic { position: absolute; width: 1em; height: 1em; opacity: .10; }
.brand-deco .deco-1 { right: 268px; top: -34px; font-size: 176px; transform: rotate(-7deg); opacity: .16; }
.brand-deco .deco-2 { right: 118px; bottom: -46px; font-size: 108px; transform: rotate(8deg); opacity: .09; }
.brand-deco .deco-3 { left: 40%; top: -18px; font-size: 84px; opacity: .06; }

/* 品牌区右侧标签：升学规划 · 志愿填报 */
.brand-badge { display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; border-radius: 999px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.24); color: #fff; font-size: 12px; font-weight: 600; white-space: nowrap; flex: 0 0 auto; }
.brand-badge .ic { font-size: 16px; opacity: .95; }

.ic { width: 1em; height: 1em; display: inline-block; vertical-align: -0.12em; }
.brandbar-inner { display: flex; align-items: center; gap: 24px; padding-top: 18px; padding-bottom: 18px; }
.brand { background: #fff; border-radius: 10px; padding: 8px 12px; flex: 0 0 auto; }
.brand img { height: 40px; width: auto; }
.search { flex: 1; display: flex; max-width: 560px; background: #fff; border-radius: 999px; padding: 5px 5px 5px 18px; align-items: center; }
.search input { flex: 1; border: 0; outline: 0; font-size: 14px; min-width: 0; }
.search button { border: 0; background: var(--brand); color: #fff; border-radius: 999px; padding: 8px 18px; font-size: 13px; cursor: pointer; }
.search button:hover { background: var(--brand-dark); }
.phone-card { margin-left: auto; display: flex; flex-direction: column; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25); border-radius: 10px; padding: 6px 14px; color: #fff; }
.phone-label { font-size: 11px; opacity: .8; }
.phone-num { font-size: 16px; font-weight: 700; letter-spacing: .3px; }

/* 频道导航：滚动时冻结在视口顶部（桌面 + 移动端）。
   独立于 .site-header，避免随父容器一起滚走；高度、字号、间距与原样式保持一致。 */
.channel { border-bottom: 1px solid var(--ink-100); position: sticky; top: 0; background: #fff; z-index: 30; transition: box-shadow .18s ease; }
.channel.is-stuck { box-shadow: 0 4px 14px rgba(11,18,32,.10); }
/* 吸顶时在导航下方铺一层渐隐遮罩：滚动内容从下方淡出，避免被硬切成半行文字 */
.channel::after { content: ''; position: absolute; left: 0; right: 0; top: 100%; height: 24px; pointer-events: none; opacity: 0; transition: opacity .18s ease; background: linear-gradient(180deg, rgba(255,255,255,.96) 0%, rgba(255,255,255,.6) 55%, rgba(255,255,255,0) 100%); }
.channel.is-stuck::after { opacity: 1; }
.channel-inner { display: flex; gap: 26px; overflow-x: auto; scrollbar-width: none; }
.channel-inner::-webkit-scrollbar { display: none; }
.nav-item { position: relative; padding: 12px 0; font-size: 15px; color: var(--ink-700); white-space: nowrap; }
.nav-item:hover { color: var(--brand); }
.nav-item.active { color: var(--brand); font-weight: 600; }
.nav-item.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2.5px; border-radius: 2px; background: var(--brand); }

/* 首页布局 */
.main-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; padding-top: 18px; padding-bottom: 24px; }
.col-main { min-width: 0; }
.col-side { display: flex; flex-direction: column; gap: 14px; }

.pinned-card { background: #fdf2f3; border-radius: var(--radius); padding: 14px 18px; margin-bottom: 6px; }
.pinned-head { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--ink-500); }
.pinned-title { color: var(--ink-700); font-weight: 500; }
.pinned-date { margin-left: auto; color: var(--ink-400); }
.pinned-card ul { margin-top: 8px; display: flex; flex-direction: column; gap: 6px; }
/* 置顶标题字号与下方信息流标题（.feed-title 17px / 600）保持一致 */
/* 置顶条目：行首不再是圆点，改为「所属板块」标签（沿用原来的品牌红色系） */
.pinned-card li { display: flex; align-items: flex-start; gap: 8px; font-size: 17px; font-weight: 600; line-height: 1.45; color: var(--ink-900); }
.pin-cat { flex: 0 0 auto; margin-top: 4px; padding: 1px 8px; border-radius: 4px; background: var(--brand-50); color: var(--brand); font-size: 11.5px; font-weight: 600; line-height: 1.6; white-space: nowrap; min-width: 4.6em; text-align: center; }
.pinned-card li a { flex: 1 1 auto; min-width: 0; }
.pinned-card li a:hover { color: var(--brand); }
@media (max-width: 640px) {
  .pinned-card li { font-size: 15.5px; gap: 6px; }
  .pin-cat { font-size: 11px; padding: 1px 6px; margin-top: 3px; min-width: 4.2em; }
}

.badge-top { display: inline-block; background: var(--brand); color: #fff; font-size: 11px; padding: 1px 6px; border-radius: 4px; margin-right: 6px; vertical-align: 1px; font-weight: 500; }

.feed-item { padding: 18px 0; border-bottom: 1px solid var(--ink-100); }
.feed-item:first-child { padding-top: 6px; }
.feed-main { display: flex; gap: 18px; }
.feed-text { min-width: 0; flex: 1; }
.feed-title { display: block; font-size: 17px; font-weight: 600; line-height: 1.45; color: var(--ink-900); }
.feed-title:hover { color: var(--brand); }
.feed-summary { margin: 6px 0 0; color: var(--ink-400); font-size: 13px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.feed-meta { margin-top: 10px; display: flex; gap: 12px; font-size: 12px; color: var(--ink-400); }
.feed-meta a { color: var(--ink-500); }
.feed-meta a:hover { color: var(--brand); }
.feed-thumb { width: 150px; height: 100px; object-fit: cover; border-radius: 6px; flex: 0 0 auto; }
.feed-gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.feed-gallery img { width: 100%; height: 118px; object-fit: cover; border-radius: 6px; }
.feed-gallery-link { display: block; margin-bottom: 10px; }

.load-more-wrap { padding: 18px 0 4px; }
.load-more { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 2px; background: #f9fafb; border: 1px solid var(--ink-100); border-radius: var(--radius); padding: 12px; font-size: 13.5px; color: var(--ink-700); cursor: pointer; }
.load-more:hover { border-color: var(--brand-100); background: var(--brand-50); color: var(--brand); }
.lm-sub { font-size: 11.5px; color: var(--ink-400); }
.list-end { text-align: center; color: var(--ink-400); font-size: 12px; padding: 16px 0; }

/* 右栏 */
.side-card { border: 1px solid var(--ink-100); border-radius: var(--radius); padding: 14px 16px; }
.login-card { background: linear-gradient(165deg, #fff 0%, #fef5f6 100%); border-color: #f4c3c9; text-align: center; padding: 18px 16px 14px; }
.login-card .lg-logo img { width: 64px; height: 64px; border-radius: 14px; display: block; margin: 0 auto; box-shadow: 0 6px 18px rgba(198,12,35,.18); }
.login-card .lg-slogan { font-size: 12px; font-weight: 700; color: var(--ink-900); letter-spacing: .5px; margin: 10px 0 12px; }
.login-card .lg-tabs { display: flex; gap: 8px; margin-bottom: 12px; }
.login-card .lg-tab { flex: 1 1 0; min-width: 0; padding: 8px 0; font-size: 12.5px; font-weight: 600; border-radius: 8px; border: 1px solid var(--ink-200); background: #fff; color: var(--ink-500); cursor: pointer; }
.login-card .lg-tab.on { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 700; }
.login-card .lg-label { display: block; text-align: left; font-size: 12px; color: var(--ink-700); margin-bottom: 5px; }
.login-card .lg-input { width: 100%; height: 36px; border: 1px solid var(--ink-200); border-radius: 8px; padding: 0 10px; font-size: 13px; color: var(--ink-900); background: #fff; margin-bottom: 10px; box-sizing: border-box; }
.login-card .lg-input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(198,12,35,.08); }
.login-card .lg-submit { width: 100%; height: 38px; border: none; border-radius: 8px; background: var(--brand); color: #fff; font-size: 14px; font-weight: 700; letter-spacing: 2px; cursor: pointer; }
.login-card .lg-submit:hover { background: var(--brand-deep); }
.login-card .lg-submit:disabled { opacity: .7; cursor: default; }
.login-card .lg-msg { min-height: 16px; margin: 6px 0 0; font-size: 11.5px; color: #dc2626; line-height: 1.5; }
.login-card .lg-hint { font-size: 10.5px; color: var(--ink-400); margin-top: 4px; }

/* 已登录：登录卡切换为账号信息卡 */
.login-card .ac-head { display: flex; align-items: center; gap: 10px; text-align: left; }
.login-card .ac-ava { width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(135deg, #c60c23, #8f0a19); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 16px; font-weight: 700; flex: 0 0 auto; }
.login-card .ac-main { flex: 1; min-width: 0; }
.login-card .ac-name { margin: 0; font-size: 15px; font-weight: 700; color: var(--ink-900); }
.login-card .ac-role { margin: 2px 0 0; font-size: 11.5px; color: var(--ink-500); }
.login-card .ac-dot { width: 8px; height: 8px; border-radius: 50%; background: #16a34a; flex: 0 0 auto; }
.login-card .ac-actions { display: flex; gap: 8px; margin-top: 12px; }
.login-card .ac-foot { margin: 10px 0 0; font-size: 11.5px; }
.login-card .ac-foot a { color: var(--ink-400); }
.login-card .ac-foot a:hover { color: var(--brand); }
.login-card .ac-btn { flex: 1 1 0; min-width: 0; text-align: center; padding: 9px 0; border-radius: 8px; font-size: 12.5px; font-weight: 700; }
.login-card .ac-primary { background: var(--brand); color: #fff; }
.login-card .ac-primary:hover { background: var(--brand-dark); }
.login-card .ac-ghost { background: #fff; color: var(--ink-700); border: 1px solid var(--ink-200); }
.login-card .ac-ghost:hover { border-color: var(--brand); color: var(--brand); }
.side-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.side-head h3 { font-size: 14px; }
.side-head a { font-size: 11.5px; color: var(--ink-400); }
.side-head a:hover { color: var(--brand); }
.side-list li { padding: 9px 0; border-bottom: 1px solid #f2f4f7; }
.side-list li:last-child { border-bottom: 0; }
.side-list a { font-size: 13px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.side-list a:hover { color: var(--brand); }
.side-list span { display: block; margin-top: 3px; font-size: 11px; color: var(--ink-400); }
.rank-list li { display: flex; gap: 8px; padding: 7px 0; font-size: 13px; align-items: flex-start; }
.rank-list a { -webkit-line-clamp: 2; display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; }
.rank-list a:hover { color: var(--brand); }
.rank { width: 16px; flex: 0 0 auto; font-weight: 700; color: var(--ink-400); font-size: 13px; }
.rank-1 { color: var(--brand); }
.rank-2, .rank-3 { color: #d9495f; }
.side-consult { background: var(--brand-50); border-color: var(--brand-100); }
.sc-title { margin: 0 0 10px; font-weight: 700; color: var(--ink-900); font-size: 13.5px; }
.fc-row { display: flex; gap: 12px; align-items: center; }
.fc-row img { width: 84px; height: 84px; border-radius: 6px; border: 1px solid #fff; background: #fff; object-fit: contain; }
.fc-row p { margin: 2px 0; font-size: 11.5px; color: var(--ink-400); }
.fc-row a { font-size: 14px; font-weight: 700; color: var(--brand); }

/* 文章页 */
.article-wrap { padding-top: 18px; padding-bottom: 32px; max-width: 900px; }
.crumbs { font-size: 12.5px; color: var(--ink-400); margin-bottom: 12px; }
.crumbs a:hover { color: var(--brand); }
.article-card { border: 1px solid var(--ink-100); border-radius: var(--radius); padding: 28px 32px; }
.article-card h1 { font-size: 26px; line-height: 1.45; letter-spacing: -.2px; }
.article-summary { margin: 12px 0 0; padding-left: 12px; border-left: 3px solid var(--ink-200); color: var(--ink-500); font-size: 13.5px; }
.article-meta { margin: 16px 0 20px; display: flex; flex-wrap: wrap; gap: 14px; font-size: 12.5px; color: var(--ink-400); }
.article-cover { width: 100%; max-height: 380px; object-fit: cover; border-radius: 8px; margin-bottom: 18px; }
.article-source { margin-top: 24px; background: var(--bg); border-radius: 6px; padding: 10px 12px; font-size: 12px; color: var(--ink-500); word-break: break-all; }
.related { margin-top: 22px; border: 1px solid var(--ink-100); border-radius: var(--radius); padding: 16px 20px; }
.related h3 { font-size: 14px; margin-bottom: 8px; }
.related li { padding: 7px 0; border-bottom: 1px solid #f2f4f7; font-size: 13.5px; }
.related li:last-child { border-bottom: 0; }
.related a:hover { color: var(--brand); }

.prose { font-size: 16px; line-height: 1.9; color: var(--ink-700); }
.prose h2 { margin: 1.8em 0 .8em; padding-left: 10px; border-left: 4px solid var(--brand); font-size: 20px; }
.prose h3 { margin: 1.5em 0 .6em; font-size: 17px; }
.prose h4 { margin: 1.3em 0 .5em; font-size: 15.5px; }
.prose p { margin: 1em 0; }
.prose ul, .prose ol { margin: 1em 0; padding-left: 1.4em; list-style: revert; }
.prose li { margin: .4em 0; }
.prose blockquote { margin: 1.2em 0; padding: 10px 14px; background: var(--brand-50); border-left: 3px solid #e85464; color: var(--ink-500); font-size: 14.5px; }
.prose img { border-radius: 8px; margin: 1.2em auto; }
.prose table { width: 100%; border-collapse: collapse; font-size: 13.5px; margin: 1.2em 0; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--ink-200); padding: 8px 10px; text-align: left; }
.prose th { background: var(--bg); white-space: nowrap; }
.prose code { background: #f2f4f7; padding: 1px 5px; border-radius: 4px; font-size: .9em; color: #b42318; }
.prose pre { background: #131c2e; color: #e4e7ec; padding: 14px; border-radius: 8px; overflow-x: auto; }
.prose pre code { background: none; color: inherit; }
.prose a { color: #b30a1e; border-bottom: 1px solid #f4c3c9; }
.prose hr { border: 0; border-top: 1px dashed var(--ink-200); margin: 2em 0; }

/* 板块页 / 搜索 / 测评 */
.cat-head { padding-bottom: 14px; border-bottom: 1px solid var(--ink-100); margin-bottom: 4px; }
.cat-head h1 { font-size: 22px; }
.cat-head p { margin: 6px 0 0; color: var(--ink-500); font-size: 13px; }
.cat-head span { display: block; margin-top: 6px; font-size: 12px; color: var(--ink-400); }
.cat-list li { display: flex; justify-content: space-between; padding: 8px 0; font-size: 13.5px; border-bottom: 1px solid #f2f4f7; }
.cat-list li:last-child { border-bottom: 0; }
.cat-list li.on a { color: var(--brand); font-weight: 600; }
.cat-list li span { color: var(--ink-400); font-size: 11.5px; }

.search-wrap { padding: 20px 0 32px; max-width: 900px; }
.search-head h1 { font-size: 20px; }
.search-head form { display: flex; gap: 8px; margin: 12px 0 8px; }
.search-head input { flex: 1; border: 1px solid var(--ink-200); border-radius: 8px; padding: 9px 12px; font-size: 13.5px; outline: 0; }
.search-head input:focus { border-color: var(--brand); }
.search-head button { background: var(--brand); color: #fff; border: 0; border-radius: 8px; padding: 9px 18px; font-size: 13.5px; cursor: pointer; }
.search-head p { font-size: 12.5px; color: var(--ink-400); }

.assess-wrap { padding: 22px 0 40px; max-width: 860px; }
.assess-head h1 { font-size: 24px; }
.assess-head p { margin-top: 8px; color: var(--ink-500); font-size: 13.5px; }
.assess-form { margin-top: 18px; border: 1px solid var(--ink-100); border-radius: var(--radius); padding: 20px; }
.q { margin-bottom: 18px; }
.q > p { margin: 0 0 8px; font-size: 14px; font-weight: 500; color: var(--ink-900); }
.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opts label { cursor: pointer; }
.opts input { display: none; }
.opts span { display: inline-block; border: 1px solid var(--ink-200); border-radius: 999px; padding: 6px 14px; font-size: 13px; color: var(--ink-700); }
.opts input:checked + span { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn-primary { background: var(--brand); color: #fff; border: 0; border-radius: 8px; padding: 11px 0; width: 100%; font-size: 14px; cursor: pointer; }
.btn-primary:hover { background: var(--brand-dark); }
.assess-result { margin-top: 20px; border: 1px solid var(--brand-100); background: var(--brand-50); border-radius: var(--radius); padding: 20px; }
.assess-result h2 { font-size: 18px; color: var(--brand-dark); }
.assess-result li { margin: 10px 0; }
.assess-result li a { font-weight: 600; color: var(--ink-900); }
.assess-result li p { margin: 3px 0 0; font-size: 12.5px; color: var(--ink-500); }
.assess-result h3 { margin-top: 16px; font-size: 14px; }

/* 页脚 */
.site-footer { border-top: 1px solid var(--ink-100); background: #fff; margin-top: 24px; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; padding: 28px 16px 20px; }
.footer-brand img { height: 42px; width: auto; }
.footer-brand p { margin-top: 12px; max-width: 520px; font-size: 12.5px; line-height: 1.8; color: var(--ink-400); }
.footer-contact { border: 1px solid var(--brand-100); background: var(--brand-50); border-radius: var(--radius); padding: 14px 16px; }
.fc-title { margin: 0 0 10px; font-size: 13px; font-weight: 600; color: var(--ink-900); }
.footer-contact .fc-row img { width: 96px; height: 96px; }
.copyright { border-top: 1px solid var(--ink-100); text-align: center; font-size: 12px; color: var(--ink-400); padding: 14px 16px; }

/* 右下角悬浮：客服二维码按钮 + 电话按钮，竖排 */
.fab-stack { position: fixed; right: 18px; bottom: 22px; z-index: 60; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.fab { width: 46px; height: 46px; border-radius: 50%; background: var(--brand); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 20px; box-shadow: 0 8px 20px rgba(198,12,35,.3); border: 0; cursor: pointer; padding: 0; }
.fab:hover { background: var(--brand-dark); }
.fab-tel { text-decoration: none; }
.fab-qr-btn { background: #0b1220; box-shadow: 0 8px 20px rgba(11,18,32,.28); }
.fab-qr-btn:hover { background: #1c2740; }
.fab-qr-btn .ic { width: 22px; height: 22px; }
.fab-qr-btn.on { background: var(--brand); }

/* 二维码弹窗 */
.fab-qr { position: fixed; inset: 0; z-index: 70; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(11,18,32,.5); backdrop-filter: blur(2px); }
.fab-qr[hidden] { display: none; }
.fq-card { position: relative; width: 100%; max-width: 320px; background: #fff; border-radius: 16px; padding: 20px 18px 18px; text-align: center; box-shadow: 0 24px 60px rgba(11,18,32,.28); }
.fq-close { position: absolute; top: 10px; right: 12px; width: 26px; height: 26px; border: 0; border-radius: 50%; background: #f1f3f6; color: #64748b; font-size: 13px; line-height: 1; cursor: pointer; }
.fq-close:hover { background: #e4e7ec; color: #344054; }
.fq-head { display: flex; align-items: center; gap: 10px; text-align: left; }
.fq-head .ic { width: 26px; height: 26px; color: var(--brand); flex: 0 0 auto; }
.fq-title { margin: 0; font-size: 15px; font-weight: 700; color: var(--ink-900); }
.fq-sub { margin: 2px 0 0; font-size: 12px; color: var(--ink-500); }
.fq-qr { width: 190px; height: 190px; margin: 14px auto 0; border: 1px solid var(--ink-100); border-radius: 12px; background: #fff; object-fit: contain; }
.fq-tip { margin: 12px 0 0; font-size: 12.5px; color: var(--ink-500); line-height: 1.6; }
.fq-tel { display: inline-block; margin-top: 10px; font-size: 17px; font-weight: 700; color: var(--brand); text-decoration: none; font-variant-numeric: tabular-nums; }
.fq-tel:hover { text-decoration: underline; }

@media (max-width: 960px) {
  .main-grid { grid-template-columns: 1fr; }
  .col-side { order: 2; }
  .brandbar-inner { flex-wrap: wrap; gap: 12px; }
  .search { order: 3; width: 100%; max-width: none; flex-basis: 100%; }
  .phone-card { display: none; }
  .feed-gallery { grid-template-columns: repeat(3, 1fr); }
  .feed-gallery img { height: 92px; }
  .article-card { padding: 20px 18px; }
  .article-card h1 { font-size: 21px; }
  .footer-inner { grid-template-columns: 1fr; }
  .brand-login { display: inline-flex; align-items: center; margin-left: auto; padding: 8px 16px; border-radius: 999px; background: #fff; color: #b30a1e; font-size: 13px; font-weight: 700; }
  .brand-deco .deco-1 { right: -30px; top: -10px; font-size: 120px; }
  .brand-badge { display: none; }
  .brand-deco .deco-2, .brand-deco .deco-3 { display: none; }
}

/* 后台「返回门户」落地页顶部的后台操作条（独立页面，非 iframe 预览） */
.staffbar { background: #0b1220; color: #fff; }
/* 窄屏时条内横向滚动，绝不让操作条把整页撑出横向溢出 */
.staffbar-inner { display: flex; align-items: center; gap: 12px; padding: 8px 16px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.staffbar-inner::-webkit-scrollbar { display: none; }
.sb-flag { flex: 0 0 auto; font-size: 11.5px; font-weight: 700; letter-spacing: .3px; padding: 2px 8px; border-radius: 4px; background: var(--brand); color: #fff; }
.sb-tip { font-size: 12.5px; color: rgba(255,255,255,.72); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sb-acts { margin-left: auto; display: flex; gap: 8px; flex: 0 0 auto; }
.sb-btn { flex: 0 0 auto; white-space: nowrap; font-size: 12.5px; padding: 5px 12px; border-radius: 6px; background: rgba(255,255,255,.12); color: #fff; transition: .16s; }
.sb-btn:hover { background: rgba(255,255,255,.22); }
.sb-strong { background: #fff; color: var(--brand-deep); font-weight: 600; }
.sb-strong:hover { background: #f5f6f8; }
@media (max-width: 720px) {
  .sb-tip, .sb-refresh { display: none; }
  .sb-btn { padding: 5px 10px; font-size: 12px; }
}

/* ---------------- 板块介绍色块 ---------------- */
/* 每个板块一个色调（tone-0~6）：介绍区是一块带底色与左色条的色块，
   浅底上统一深色文字，对比度 ≥ 4.5:1。 */
.cat-head { margin: 0 0 16px; }
.cat-head .ch-info { background: var(--tone-bg); border-left: 4px solid var(--tone-line); border-radius: 10px; padding: 14px 16px; }
.cat-head h1 { font-size: 22px; color: var(--tone-fg); }
.cat-head p { margin: 6px 0 0; color: var(--ink-700); font-size: 13px; }
.cat-head span { display: block; margin-top: 6px; font-size: 12px; color: var(--tone-fg); opacity: .85; }

/* 板块色调变量：色块底色 / 描边 / 强调文字 */
.tone-0 { --tone-bg: #eef4ff; --tone-line: #c9dcff; --tone-fg: #1e40af; }
.tone-1 { --tone-bg: #fdecef; --tone-line: #f7cdd6; --tone-fg: #a80d25; }
.tone-2 { --tone-bg: #e4f6f2; --tone-line: #bfe6de; --tone-fg: #0b6b62; }
.tone-3 { --tone-bg: #f0e9fc; --tone-line: #d8c9f7; --tone-fg: #6023a8; }
.tone-4 { --tone-bg: #fbeedd; --tone-line: #f5d5b0; --tone-fg: #9a4a12; }
.tone-5 { --tone-bg: #fce9f2; --tone-line: #f7cfe0; --tone-fg: #a52263; }
.tone-6 { --tone-bg: #e2f4f8; --tone-line: #bfe0ea; --tone-fg: #0b6274; }

@media (max-width: 480px) {
  .cat-head h1 { font-size: 20px; }
  .cat-head .ch-info { padding: 12px 13px; }
}

/* ---------------- 城市落地页（成都升学规划 / 成都志愿填报） ---------------- */
.cd-wrap { max-width: 880px; padding: 18px 16px 44px; }
.cd-crumbs { font-size: 12px; color: var(--ink-400); margin-bottom: 12px; }
.cd-crumbs a { color: var(--ink-500); }
.cd-hero { padding: 22px 20px; border-radius: 14px; background: linear-gradient(135deg, #fdf3f4, #fff8f6 62%, #fdf7ef); border: 1px solid #f7dfe3; }
.cd-kicker { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: .5px; color: var(--brand); }
.cd-hero h1 { margin: 8px 0 0; font-size: 27px; line-height: 1.3; color: var(--ink-900); }
.cd-lead { margin: 10px 0 0; font-size: 14px; line-height: 1.75; color: var(--ink-700); }
.cd-cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.cd-btn { display: inline-flex; align-items: center; padding: 10px 18px; border-radius: 999px; background: var(--brand); color: #fff; font-size: 13.5px; font-weight: 600; }
.cd-btn:hover { background: var(--brand-dark); }
.cd-note { margin: 12px 0 0; font-size: 12px; color: var(--ink-500); line-height: 1.7; }

.cd-block { margin-top: 26px; }
.cd-block h2 { font-size: 19px; }
.cd-sub { margin: 6px 0 14px; font-size: 12.5px; color: var(--ink-500); }

.cd-services { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.cd-svc { padding: 14px; border: 1px solid var(--ink-100); border-radius: 10px; background: #fff; }
.cd-svc h3 { font-size: 14px; }
.cd-desc { margin: 8px 0 0; font-size: 12.5px; line-height: 1.7; color: var(--ink-500); }

.cd-steps { list-style: none; counter-reset: step; }
.cd-steps li { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid #f2f4f7; }
.cd-steps li:last-child { border-bottom: 0; }
.cd-num { flex: 0 0 auto; width: 24px; height: 24px; border-radius: 50%; background: #fdf3f4; color: var(--brand); font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.cd-steps h3 { font-size: 14px; }
.cd-steps p { margin: 4px 0 0; font-size: 12.5px; line-height: 1.7; color: var(--ink-500); }

.cd-links { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-bottom: 10px; }
.cd-links a { font-size: 13px; font-weight: 600; color: var(--brand); }
.cd-artlist { display: flex; flex-direction: column; gap: 7px; }
.cd-artlist a { font-size: 13.5px; color: var(--ink-700); }
.cd-artlist a:hover { color: var(--brand); }

.cd-faq { margin-top: 26px; padding: 18px 16px; border-radius: 12px; background: #fbfcfe; border: 1px solid var(--ink-100); }
.cd-faq h2 { font-size: 18px; }
.cd-q { padding: 12px 0; border-bottom: 1px solid #eef1f5; }
.cd-q:last-child { border-bottom: 0; padding-bottom: 0; }
.cd-q h3 { font-size: 14px; color: var(--ink-900); }
.cd-q p { margin: 6px 0 0; font-size: 13px; line-height: 1.8; color: var(--ink-500); }

.cd-about { padding: 18px 16px; border-radius: 12px; background: #fafafa; }
.cd-about p { margin: 8px 0 0; font-size: 13px; line-height: 1.8; color: var(--ink-700); }

@media (max-width: 720px) {
  .cd-hero { padding: 18px 15px; }
  .cd-hero h1 { font-size: 22px; }
  .cd-lead { font-size: 13.5px; }
  .cd-btn { flex: 0 0 auto; justify-content: center; padding: 10px 16px; font-size: 13px; }
  .cd-services { grid-template-columns: 1fr; }
  .cd-block h2 { font-size: 17px; }
}

/* ---------------- 手机端增强（≤480px）：字号 / 触控 / 卡片密度 / 悬浮按钮 ----------------
   视口 meta 与基础限宽已在基础层处理（img 全局 max-width、prose 表格横滚、
   channel 导航横向滚动）；这里只做小屏观感与触控密度的收窄。 */
@media (max-width: 480px) {
  .brandbar-inner { padding-top: 12px; padding-bottom: 12px; gap: 10px; }
  .brand { padding: 6px 10px; }
  .brand img { height: 34px; }
  .search { padding: 4px 4px 4px 14px; }
  .search input { font-size: 13px; }
  .search button { padding: 7px 14px; font-size: 12.5px; }

  .channel-inner { gap: 18px; }
  .nav-item { font-size: 14px; padding: 10px 0; }

  .main-grid { padding-top: 14px; }
  .pinned-card { padding: 12px 14px; }
  .feed-item { padding: 14px 0; }
  .feed-title { font-size: 16px; }
  .feed-thumb { width: 108px; height: 78px; }
  .feed-gallery { gap: 4px; }
  .feed-gallery img { height: 74px; }
  .feed-meta { gap: 10px; font-size: 11.5px; flex-wrap: wrap; }
  .side-card { padding: 12px 14px; }
  .fc-row img { width: 72px; height: 72px; }

  .article-card { padding: 16px 14px; }
  .article-card h1 { font-size: 19px; }
  .prose { font-size: 15.5px; line-height: 1.85; overflow-wrap: break-word; }
  .related { padding: 12px 14px; }

  .fab-stack { right: 14px; bottom: 18px; }
  .fab { width: 44px; height: 44px; font-size: 19px; }
  .fq-card { max-width: 300px; }
  .fq-qr { width: 170px; height: 170px; }

  .footer-inner { padding: 22px 14px 16px; gap: 24px; }
  .footer-contact .fc-row img { width: 84px; height: 84px; }
  .cd-hero { padding: 16px 14px; }
  .cd-hero h1 { font-size: 20px; }
  .cd-faq { padding: 14px 12px; }
}
