/* ============================================================
   环球青藤快问 · UI 原型样式
   品牌色取自原始 logo：#00d264 绿 → #00b4ff 蓝 / #001428 深藏青
   ============================================================ */

:root {
  --green: #00d264;
  --blue: #00b4ff;
  --grad: linear-gradient(120deg, #00d264 0%, #00b4ff 100%);
  --grad-soft: linear-gradient(120deg, rgba(0, 210, 100, .10) 0%, rgba(0, 180, 255, .10) 100%);
  --ink: #001428;
  --ink-2: #3b4a5e;
  --ink-3: #8794a6;
  --line: #e9eef4;
  --bg: #f5f7fa;
  --card: #ffffff;
  --green-bg: #e9fbf2;
  --blue-bg: #e9f6ff;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow: 0 2px 6px rgba(0, 20, 40, .03), 0 8px 24px rgba(0, 20, 40, .05);
  --shadow-hover: 0 10px 30px rgba(0, 20, 40, .10);
  --maxw: 1200px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", Roboto, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--blue); }
button, input, textarea { font-family: inherit; }
button { cursor: pointer; }
img { max-width: 100%; display: block; }
ul { list-style: none; margin: 0; padding: 0; }

.container { width: var(--maxw); margin: 0 auto; }
.clearfix::after { content: ""; display: block; clear: both; }

/* ---------- 主导航 ---------- */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 60;
}
.site-header .container {
  height: 76px; display: flex; align-items: center; gap: 1px;
}
.logo { flex: 0 0 auto; }
.logo img { width: 152px; height: 42px; }
.logo:hover { opacity: .88; }

.main-nav { display: flex; align-items: center; gap: 24px; height: 100%; }
.main-nav a {
  font-size: 15px; font-weight: 600; color: var(--ink-2);
  height: 100%; display: flex; align-items: center; position: relative;
  transition: color .2s;
}
.main-nav a:hover, .main-nav a.active { color: var(--ink); }
.main-nav a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 3px; border-radius: 3px 3px 0 0; background: var(--grad);
}
.main-nav .nav-hot {
  position: absolute; top: 16px; right: -18px;
  font-size: 10px; line-height: 15px; padding: 0 4px;
  color: #fff; background: #ff6a4d; border-radius: 4px 4px 4px 0;
  font-weight: 500;
}

.header-search {
  flex: 1; max-width: 330px; margin-left: auto;
  position: relative;
}
.header-search input {
  width: 100%; height: 40px; padding: 0 46px 0 16px;
  border: 1px solid var(--line); border-radius: 20px;
  background: #f7f9fb; color: var(--ink); outline: none;
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.header-search input::placeholder { color: #aab5c3; }
.header-search input:focus {
  background: #fff; border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(0, 210, 100, .10);
}
.header-search button {
  position: absolute; right: 4px; top: 4px;
  width: 32px; height: 32px; border: 0; border-radius: 9px;
  background: var(--grad); display: grid; place-items: center;
  transition: box-shadow .2s, transform .2s;
}
.header-search button svg { width: 16px; height: 16px; stroke: #fff; }
.header-search button:hover { transform: scale(1.04); box-shadow: 0 3px 10px rgba(0,180,255,.32); }
.header-search button:hover svg { stroke: #fff; }

.header-actions { display: flex; align-items: center; gap: 14px; }
.user-entry {
  display: flex; align-items: center; gap: 7px;
  font-size: 13px; color: var(--ink-2); font-weight: 600; white-space: nowrap;
}
.user-entry:hover { color: var(--blue); }
.user-avatar {
  width: 27px; height: 27px; border-radius: 50%; display: grid; place-items: center;
  background: var(--grad-soft); border: 1px solid rgba(0,180,255,.2);
}
.user-avatar svg { width: 14px; height: 14px; stroke: var(--blue); }
.user-entry .caret { width: 10px; height: 10px; stroke: var(--ink-3); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 38px; padding: 0 18px; border-radius: 10px;
  font-size: 14px; font-weight: 600; border: 1px solid transparent;
  transition: transform .2s, box-shadow .2s, background .2s, color .2s;
  white-space: nowrap;
}
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 4px 12px rgba(0, 180, 255, .22); }
.btn-primary:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0, 180, 255, .30); }
.btn-ghost { background: #fff; color: var(--ink-2); border-color: var(--line); }
.btn-ghost:hover { color: var(--blue); border-color: rgba(0, 180, 255, .45); }
.btn svg { width: 16px; height: 16px; }
.btn-sm { height: 32px; padding: 0 14px; font-size: 13px; border-radius: 8px; }
.text-login { font-size: 14px; color: var(--ink-2); font-weight: 600; }

/* ---------- 下拉菜单 ---------- */
.dropdown { position: relative; }
.dropdown-toggle {
  border: 0; background: transparent; padding: 0; font: inherit; color: inherit;
  display: flex; align-items: center; cursor: pointer;
}
.dropdown-menu {
  position: absolute; top: calc(100% + 12px); left: 0; z-index: 80;
  min-width: 210px; background: #fff; border: 1px solid var(--line);
  border-radius: 14px; box-shadow: 0 16px 40px rgba(0, 20, 40, .16);
  padding: 8px; opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .18s, transform .18s, visibility .18s;
}
.dropdown.open > .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-menu::before {
  content: ""; position: absolute; top: -6px; left: 26px;
  width: 10px; height: 10px; background: #fff;
  border-left: 1px solid var(--line); border-top: 1px solid var(--line);
  transform: rotate(45deg);
}
.dropdown-menu.align-right { left: auto; right: 0; }
.dropdown-menu.align-right::before { left: auto; right: 26px; }
.dropdown-menu a, .dropdown-menu button {
  display: flex; align-items: center; gap: 9px; width: 100%;
  padding: 9px 12px; border: 0; border-radius: 9px; background: transparent;
  font-size: 13px; color: var(--ink-2); text-align: left;
  transition: background .15s, color .15s;
}
.dropdown-menu a:hover, .dropdown-menu button:hover { background: var(--grad-soft); color: var(--blue); }
.dropdown-menu svg { width: 15px; height: 15px; stroke: currentColor; flex: 0 0 auto; }
.dropdown-menu .menu-sep { height: 1px; background: var(--line); margin: 6px 4px; }
.dropdown-menu .menu-title { font-size: 11px; color: var(--ink-3); padding: 6px 12px 4px; font-weight: 600; }
.menu-user {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px 12px;
  border-bottom: 1px solid var(--line); margin-bottom: 6px;
}
.menu-user .avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--grad-soft); color: var(--blue); display: grid; place-items: center; font-weight: 700; }
.menu-user strong { display: block; font-size: 13px; color: var(--ink); }
.menu-user span { font-size: 11px; color: var(--ink-3); }

/* 搜索建议 */
.search-suggest {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 80;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 12px 30px rgba(0, 20, 40, .14); padding: 8px 0;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .18s, transform .18s, visibility .18s;
}
.header-search.open .search-suggest { opacity: 1; visibility: visible; transform: translateY(0); }
.search-suggest .ss-head { font-size: 11px; color: var(--ink-3); padding: 4px 14px 6px; }
.search-suggest button { display: flex; align-items: center; gap: 8px; width: 100%; border: 0; background: transparent; padding: 7px 14px; font-size: 13px; color: var(--ink-2); text-align: left; }
.search-suggest button:hover { background: var(--grad-soft); color: var(--blue); }
.search-suggest .rank { width: 16px; font-weight: 700; color: var(--ink-3); }
.search-suggest button:nth-child(2) .rank,
.search-suggest button:nth-child(3) .rank,
.search-suggest button:nth-child(4) .rank { color: #ff7a45; }
.ss-tags { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 14px 4px; border-top: 1px solid var(--line); margin-top: 6px; }
.ss-tags span { font-size: 11px; color: var(--ink-3); }
.ss-tags a { font-size: 12px; padding: 3px 9px; border-radius: 12px; background: #f5f7fa; color: var(--ink-2); }
.ss-tags a:hover { background: var(--grad-soft); color: var(--blue); }

/* ---------- 二级导航条（品牌渐变通栏） ---------- */
.cat-bar {
  background: linear-gradient(100deg, #00b069 0%, #00a9bd 55%, #00b4ff 100%);
  color: #fff; position: relative; box-shadow: inset 0 1px 0 rgba(255,255,255,.12);
}
.cat-bar .container { display: flex; align-items: stretch; min-height: 48px; gap: 0; padding: 0; }
.exam-name {
  display: flex; align-items: center; gap: 8px; flex: 0 0 auto;
  padding: 0 22px 0 1px; font-size: 14px; font-weight: 700; color: #fff;
  border-right: 1px solid rgba(255,255,255,.28); white-space: nowrap;
}
.exam-name:hover { color: #fff; opacity: .92; }
.exam-name svg { width: 15px; height: 15px; stroke: #fff; }
.exam-name .caret { font-size: 10px; opacity: .8; margin-left: 2px; transition: transform .2s; }
.dropdown.open .exam-name .caret { transform: rotate(180deg); }
.exam-links { display: flex; align-items: center; flex: 1; overflow-x: auto; padding: 6px 0; }
.exam-links a {
  font-size: 13px; color: rgba(255,255,255,.88); display: flex; align-items: center;
  padding: 6px 18px; margin: 0 2px; border-radius: 18px; white-space: nowrap;
  transition: color .2s, background .2s;
}
.exam-links a:hover { color: #fff; background: rgba(255,255,255,.14); }
.exam-links a.active { color: #fff; font-weight: 700; }
.exam-links a.active::after {
  content: ""; position: absolute; left: 18px; right: 18px; bottom: 0;
  height: 3px; border-radius: 3px 3px 0 0; background: #fff;
}
.cat-bar .cat-more {
  margin-left: auto; color: rgba(255,255,255,.92); padding-left: 18px;
  flex: 0 0 auto; font-size: 13px; display: flex; align-items: center; gap: 5px;
}
.cat-bar .cat-more:hover { color: #fff; }
.cat-bar .cat-more svg { width: 13px; height: 13px; stroke: currentColor; transition: transform .2s; }
.dropdown.open .cat-more svg { transform: rotate(90deg); }

/* 二级导航下拉 */
.exam-menu { min-width: 300px; display: grid; grid-template-columns: 1fr 1fr; gap: 2px; padding: 10px; }
.exam-menu .menu-title { grid-column: 1 / -1; }
.exam-menu a { padding: 8px 10px; border-radius: 8px; }
.exam-menu a.active { background: var(--grad-soft); color: var(--blue); font-weight: 700; }
.mega-menu { min-width: 520px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px 14px; padding: 16px; }
.mega-col h5 { margin: 0 0 8px; font-size: 12px; color: var(--ink); font-weight: 700; }
.mega-col a { display: block; padding: 6px 8px; font-size: 12px; border-radius: 7px; }
.mega-menu::before { left: auto; right: 40px; }

/* 通用 chip（筛选栏、标签区复用） */
.cat-chip {
  font-size: 13px; padding: 5px 13px; border-radius: 16px;
  color: var(--ink-2); background: #f5f7fa; transition: all .2s;
}
.cat-chip:hover { background: var(--grad-soft); color: var(--blue); }
.cat-chip.active { background: var(--grad); color: #fff; font-weight: 600; }
.cat-more { margin-left: auto; font-size: 13px; color: var(--ink-3); display: flex; align-items: center; gap: 4px; }
.cat-more svg { width: 12px; height: 12px; stroke: currentColor; }

/* ---------- Hero ---------- */
.hero { margin: 24px 0 26px; }
.hero-inner {
  position: relative; overflow: hidden;
  border-radius: var(--radius-lg);
  background: linear-gradient(115deg, #03253f 0%, #063a5c 46%, #086b6b 100%);
  min-height: 236px; padding: 42px 54px; color: #fff;
  display: flex; align-items: center;
}
.hero-inner::before {
  content: ""; position: absolute; width: 520px; height: 520px; border-radius: 50%;
  right: -90px; top: -250px;
  background: radial-gradient(circle, rgba(0, 210, 100, .40) 0%, rgba(0, 180, 255, .10) 60%, transparent 70%);
}
.hero-inner::after {
  content: ""; position: absolute; width: 380px; height: 380px; border-radius: 50%;
  right: 170px; bottom: -270px;
  background: radial-gradient(circle, rgba(0, 180, 255, .32) 0%, transparent 70%);
}
.hero-copy { position: relative; z-index: 2; max-width: 610px; }
.hero-tag {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12px; letter-spacing: 1px; font-weight: 600;
  color: #b6f5d5; background: rgba(0, 210, 100, .13);
  border: 1px solid rgba(0, 210, 100, .30);
  padding: 5px 13px; border-radius: 20px; margin-bottom: 18px;
}
.hero-tag i { width: 5px; height: 5px; border-radius: 50%; background: var(--green); }
.hero h1 { margin: 0 0 12px; font-size: 34px; line-height: 1.35; letter-spacing: -.5px; font-weight: 700; }
.hero h1 em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { margin: 0 0 24px; color: rgba(255, 255, 255, .72); font-size: 15px; }
.hero-search { display: flex; gap: 10px; max-width: 520px; }
.hero-search input {
  flex: 1; height: 48px; padding: 0 20px; border: 0; border-radius: 12px;
  background: rgba(255, 255, 255, .96); color: var(--ink); outline: none; font-size: 14px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .12);
}
.hero-search input::placeholder { color: #9aa7b6; }
.hero-search .btn { height: 48px; padding: 0 26px; border-radius: 12px; font-size: 15px; }
.hero-stats { display: flex; gap: 30px; margin-top: 24px; }
.hero-stats div { font-size: 12px; color: rgba(255, 255, 255, .62); }
.hero-stats strong { display: block; font-size: 19px; color: #fff; font-weight: 700; margin-bottom: 1px; }
.hero-stats strong span { font-size: 12px; font-weight: 500; margin-left: 2px; color: rgba(255, 255, 255, .7); }
.hero-art { position: absolute; right: 48px; top: 50%; transform: translateY(-50%); z-index: 2; width: 310px; height: 190px; opacity: .95; }

/* ---------- 两栏布局 ---------- */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
.layout.detail-layout { grid-template-columns: minmax(0, 1fr) 300px; }

/* ---------- 通用卡片 ---------- */
.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
}
.card + .card { margin-top: 18px; }
.card-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 22px 12px;
}
.card-title { font-size: 17px; font-weight: 700; display: flex; align-items: center; gap: 9px; margin: 0; }
.card-title::before {
  content: ""; width: 4px; height: 17px; border-radius: 3px; background: var(--grad);
}
.card-more { font-size: 13px; color: var(--ink-3); display: flex; align-items: center; gap: 4px; }
.card-more svg { width: 13px; height: 13px; stroke: currentColor; }
.card-more:hover { color: var(--blue); }

/* ---------- Feed 切换 ---------- */
.feed-tabs {
  display: flex; align-items: center; gap: 26px;
  padding: 0 22px; border-bottom: 1px solid var(--line);
}
.feed-tabs button {
  border: 0; background: transparent; padding: 14px 0 12px;
  font-size: 15px; color: var(--ink-3); font-weight: 600;
  position: relative; transition: color .2s;
}
.feed-tabs button:hover { color: var(--ink-2); }
.feed-tabs button.active { color: var(--ink); }
.feed-tabs button.active::after {
  content: ""; position: absolute; bottom: -1px; left: 0; right: 0;
  height: 3px; border-radius: 3px; background: var(--grad);
}
.feed-list { padding: 4px 22px 8px; }

/* ---------- 信息流条目 ---------- */
.feed-item {
  display: flex; gap: 16px; padding: 20px 0;
  border-bottom: 1px solid var(--line);
  transition: transform .2s;
}
.feed-item:last-child { border-bottom: 0; }
.feed-item:hover .feed-title { color: var(--blue); }
.feed-thumb {
  flex: 0 0 128px; height: 84px; border-radius: 10px; overflow: hidden;
  background: linear-gradient(135deg, #d9f7e9 0%, #d6efff 100%);
  position: relative; display: grid; place-items: center;
}
.feed-thumb svg { width: 38px; height: 38px; opacity: .55; }
.feed-thumb.blue { background: linear-gradient(135deg, #e2f1ff 0%, #e8e9ff 100%); }
.feed-thumb.green { background: linear-gradient(135deg, #ddf9e9 0%, #d9f4f4 100%); }
.feed-thumb.warm { background: linear-gradient(135deg, #fff0e0 0%, #ffe2e8 100%); }
.feed-thumb .thumb-text {
  position: absolute; bottom: 0; left: 0; right: 0; text-align: center;
  font-size: 10px; color: rgba(0, 20, 40, .42); padding-bottom: 5px; letter-spacing: .5px;
}
.feed-body { flex: 1; min-width: 0; }
.feed-title {
  font-size: 16px; font-weight: 600; line-height: 1.5; margin: 0 0 8px;
  transition: color .2s; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.feed-excerpt {
  color: var(--ink-3); font-size: 13px; line-height: 1.7; margin: 0 0 10px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.feed-meta { display: flex; align-items: center; gap: 16px; font-size: 12px; color: var(--ink-3); flex-wrap: wrap; }
.feed-meta span { display: flex; align-items: center; gap: 4px; }
.feed-meta svg { width: 13px; height: 13px; stroke: currentColor; }
.tag {
  display: inline-block; font-size: 11px; font-weight: 600;
  padding: 2px 8px; border-radius: 5px; margin-right: 8px;
}
.tag-green { color: #009e59; background: var(--green-bg); }
.tag-blue { color: #0089c9; background: var(--blue-bg); }
.tag-orange { color: #d97706; background: #fff5e6; }
.tag-purple { color: #7c5cd6; background: #f2edff; }

/* 问答条目特殊样式 */
.qa-item { flex-direction: column; gap: 10px; }
.qa-item .feed-title { font-size: 17px; }
.qa-qmark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 19px; height: 19px; border-radius: 5px; background: var(--grad);
  color: #fff; font-size: 12px; font-weight: 700; margin-right: 7px; vertical-align: -3px;
}
.qa-answer {
  background: #f7f9fb; border-left: 3px solid var(--green);
  border-radius: 0 8px 8px 0; padding: 10px 14px;
  font-size: 13px; color: var(--ink-2); line-height: 1.7;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.qa-answer b { color: #009e59; font-weight: 600; }

/* ---------- 侧栏组件 ---------- */
.side-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.side-card + .side-card { margin-top: 18px; }
.side-head {
  padding: 16px 18px 0; display: flex; align-items: center; justify-content: space-between;
}
.side-head h3 { margin: 0; font-size: 15px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.side-head h3::before { content: ""; width: 3px; height: 14px; border-radius: 3px; background: var(--grad); }
.side-head span { font-size: 12px; color: var(--ink-3); }
.side-body { padding: 12px 18px 18px; }

/* 登录卡 */
.login-card { background: linear-gradient(140deg, #f2fbf7 0%, #f0f8ff 100%); border: 1px solid #dbf0e6; }
.login-card .side-body { padding: 16px 18px 18px; }
.login-card p { margin: 0 0 14px; font-size: 13px; color: var(--ink-2); }
.login-card .btn { width: 100%; }
.login-card .btn + .btn { margin-top: 10px; }
.login-mini-links { display: flex; justify-content: center; gap: 14px; margin-top: 12px; font-size: 12px; color: var(--ink-3); }

/* 排行榜 */
.rank-list li {
  display: flex; gap: 11px; align-items: flex-start;
  padding: 10px 0; border-bottom: 1px dashed var(--line);
}
.rank-list li:last-child { border-bottom: 0; padding-bottom: 2px; }
.rank-num {
  flex: 0 0 20px; height: 20px; border-radius: 6px;
  display: grid; place-items: center; font-size: 11px; font-weight: 700;
  background: #f0f3f7; color: var(--ink-3); margin-top: 2px;
}
.rank-list li:nth-child(1) .rank-num { background: var(--grad); color: #fff; }
.rank-list li:nth-child(2) .rank-num { background: rgba(0, 210, 100, .18); color: #009e59; }
.rank-list li:nth-child(3) .rank-num { background: rgba(0, 180, 255, .16); color: #0089c9; }
.rank-list a { font-size: 13px; line-height: 1.55; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rank-list a:hover { color: var(--blue); }
.rank-hot { color: #ff6a4d !important; font-size: 10px; margin-left: 4px; }

/* 课程卡 */
.course-item { display: flex; gap: 11px; padding: 11px 0; border-bottom: 1px dashed var(--line); }
.course-item:last-child { border-bottom: 0; padding-bottom: 2px; }
.course-cover {
  flex: 0 0 62px; height: 62px; border-radius: 9px;
  background: linear-gradient(140deg, #e5f8ef, #e3f1ff);
  display: grid; place-items: center; overflow: hidden;
}
.course-cover svg { width: 27px; height: 27px; opacity: .5; }
.course-info { min-width: 0; flex: 1; }
.course-info h4 { margin: 0 0 4px; font-size: 13px; font-weight: 600; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.course-info h4:hover { color: var(--blue); }
.course-info p { margin: 0; font-size: 11px; color: var(--ink-3); }
.course-price { color: #ff6a4d; font-weight: 700; font-size: 13px; }

/* APP 卡 */
.app-card { background: linear-gradient(135deg, #052a45, #074c6b); color: #fff; border: 0; }
.app-card .side-body { display: flex; align-items: center; gap: 14px; }
.app-qr {
  flex: 0 0 66px; height: 66px; border-radius: 8px; background: #fff; padding: 6px;
  display: grid; place-items: center;
}
.app-qr svg { width: 100%; height: 100%; }
.app-card h4 { margin: 0 0 5px; font-size: 14px; }
.app-card p { margin: 0 0 10px; font-size: 12px; color: rgba(255,255,255,.65); }
.app-card a { display: inline-block; font-size: 12px; color: var(--green); border: 1px solid rgba(0,210,100,.5); padding: 3px 11px; border-radius: 12px; }

/* ---------- 页脚 ---------- */
.site-footer { background: #fff; border-top: 1px solid var(--line); margin-top: 40px; padding: 34px 0 24px; }
.footer-top { display: flex; justify-content: space-between; gap: 40px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.footer-brand { max-width: 330px; }
.footer-brand img { width: 132px; height: 37px; margin-bottom: 14px; }
.footer-brand p { margin: 0; font-size: 12px; color: var(--ink-3); line-height: 1.8; }
.footer-links { display: flex; gap: 60px; }
.footer-links h4 { margin: 0 0 12px; font-size: 13px; font-weight: 700; }
.footer-links a { display: block; font-size: 12px; color: var(--ink-3); margin-bottom: 8px; }
.footer-links a:hover { color: var(--blue); }
.footer-bottom { text-align: center; font-size: 12px; color: var(--ink-3); padding-top: 20px; line-height: 1.8; }

/* ============================================================
   文章详情页
   ============================================================ */
.breadcrumb { font-size: 12px; color: var(--ink-3); padding: 18px 0; display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.breadcrumb a:hover { color: var(--blue); }
.breadcrumb svg { width: 11px; height: 11px; stroke: var(--ink-3); }

.article-main { padding: 30px 34px 34px; }
.article-cat { display: inline-block; font-size: 12px; font-weight: 600; color: #0089c9; background: var(--blue-bg); padding: 4px 11px; border-radius: 6px; margin-bottom: 14px; }
.article-title { font-size: 28px; line-height: 1.4; margin: 0 0 16px; font-weight: 700; letter-spacing: -.3px; }
.article-meta { display: flex; align-items: center; gap: 20px; font-size: 12px; color: var(--ink-3); padding-bottom: 20px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.article-meta span { display: flex; align-items: center; gap: 5px; }
.article-meta svg { width: 13px; height: 13px; stroke: currentColor; }
.meta-author { display: flex; align-items: center; gap: 7px; }
.avatar-sm {
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--grad); color: #fff; display: grid; place-items: center;
  font-size: 11px; font-weight: 700;
}

.answer-highlight {
  margin: 24px 0; padding: 18px 20px;
  border-radius: 12px; background: var(--grad-soft);
  border: 1px solid rgba(0, 210, 100, .22);
  position: relative;
}
.answer-highlight .ah-label {
  display: flex; align-items: center; gap: 7px;
  font-size: 13px; font-weight: 700; color: #009e59; margin-bottom: 8px;
}
.answer-highlight .ah-label svg { width: 16px; height: 16px; stroke: #009e59; }
.answer-highlight p { margin: 0; font-size: 15px; line-height: 1.8; color: var(--ink); font-weight: 500; }

.article-body { font-size: 15px; line-height: 2; color: var(--ink-2); }
.article-body h2 {
  font-size: 19px; color: var(--ink); margin: 30px 0 12px; font-weight: 700;
  padding-left: 12px; border-left: 4px solid var(--green); line-height: 1.5;
}
.article-body h3 { font-size: 16px; color: var(--ink); margin: 22px 0 10px; font-weight: 700; }
.article-body p { margin: 0 0 16px; }
.article-body ul, .article-body ol { margin: 0 0 18px; padding-left: 24px; }
.article-body li { margin-bottom: 7px; }
.article-body li::marker { color: var(--green); font-weight: 700; }
.article-body strong { color: var(--ink); }
.article-body .inline-link { color: var(--blue); border-bottom: 1px dashed var(--blue); }
.article-quote {
  margin: 20px 0; padding: 16px 20px; background: #f7f9fb;
  border-radius: 10px; color: var(--ink-2); font-size: 14px;
}
.article-quote::before { content: "“"; font-size: 26px; color: var(--green); line-height: 1; margin-right: 4px; }

.download-box {
  margin: 26px 0; padding: 18px 20px; border: 1px dashed #b9e6d0;
  border-radius: 12px; background: #fafffc;
  display: flex; align-items: center; gap: 14px;
}
.download-box .dl-icon {
  width: 42px; height: 42px; border-radius: 10px; background: var(--grad);
  display: grid; place-items: center; color: #fff; flex: 0 0 auto;
}
.download-box .dl-icon svg { width: 21px; height: 21px; }
.download-box .dl-text { flex: 1; }
.download-box h4 { margin: 0 0 3px; font-size: 14px; }
.download-box p { margin: 0; font-size: 12px; color: var(--ink-3); }

.article-actions { display: flex; align-items: center; gap: 10px; margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--line); }
.action-btn {
  display: inline-flex; align-items: center; gap: 7px; height: 36px;
  padding: 0 15px; border-radius: 9px; border: 1px solid var(--line);
  background: #fff; color: var(--ink-2); font-size: 13px; transition: all .2s;
}
.action-btn svg { width: 16px; height: 16px; stroke: currentColor; }
.action-btn:hover, .action-btn.liked { color: var(--green); border-color: rgba(0, 210, 100, .4); background: #f3fcf7; }
.action-btn.liked svg { fill: rgba(0, 210, 100, .18); }
.action-btn.faved { color: var(--blue); border-color: rgba(0, 180, 255, .4); background: #f2faff; }

.tags-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; }
.tags-row a { font-size: 12px; color: var(--ink-3); background: #f5f7fa; padding: 4px 11px; border-radius: 6px; }
.tags-row a:hover { color: var(--blue); background: var(--blue-bg); }

/* 目录 */
.toc-list { padding: 8px 18px 18px; }
.toc-list a {
  display: block; font-size: 13px; color: var(--ink-3);
  padding: 8px 0 8px 12px; border-left: 2px solid var(--line); line-height: 1.55;
  transition: all .2s;
}
.toc-list a:hover, .toc-list a.active { color: var(--green); border-left-color: var(--green); background: #f8fdfa; }

/* ============================================================
   问答详情页
   ============================================================ */
.question-card { padding: 28px 32px; }
.question-top { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.q-badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; font-weight: 700; color: #fff; background: var(--grad);
  padding: 3px 10px; border-radius: 6px;
}
.q-cat { font-size: 12px; color: var(--ink-3); }
.question-title { font-size: 26px; line-height: 1.45; margin: 0 0 14px; font-weight: 700; }
.question-desc { font-size: 14px; color: var(--ink-2); line-height: 1.9; margin: 0 0 20px; }
.question-stats { display: flex; align-items: center; gap: 22px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 12px; color: var(--ink-3); }
.question-stats strong { color: var(--ink); font-size: 15px; font-weight: 700; margin-right: 3px; }
.question-stats .q-actions { margin-left: auto; display: flex; gap: 10px; }

.answers-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px 14px; border-bottom: 1px solid var(--line);
}
.answers-head h3 { margin: 0; font-size: 17px; font-weight: 700; }
.answers-head h3 span { color: var(--ink-3); font-size: 14px; font-weight: 500; }
.sort-tabs { display: flex; gap: 16px; font-size: 12px; }
.sort-tabs button { border: 0; background: transparent; color: var(--ink-3); padding: 0; }
.sort-tabs button.active, .sort-tabs button:hover { color: var(--green); font-weight: 600; }

.answer-item { padding: 24px; border-bottom: 1px solid var(--line); }
.answer-item:last-child { border-bottom: 0; }
.answer-item.accepted { background: linear-gradient(180deg, #f7fdfa 0%, #fff 60%); }
.accepted-banner {
  display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700;
  color: #009e59; background: var(--green-bg); padding: 4px 11px;
  border-radius: 6px; margin-bottom: 14px;
}
.accepted-banner svg { width: 14px; height: 14px; stroke: #009e59; }
.answer-author { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.avatar {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  font-size: 14px; font-weight: 700; color: #fff; background: var(--grad); flex: 0 0 auto;
}
.avatar.blue { background: linear-gradient(135deg, #3ea1ff, #5b6ef5); }
.avatar.orange { background: linear-gradient(135deg, #ffa53e, #ff6a6a); }
.answer-author .a-name { font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.verified { font-size: 10px; font-weight: 500; color: #0089c9; background: var(--blue-bg); padding: 2px 6px; border-radius: 4px; }
.answer-author .a-meta { font-size: 12px; color: var(--ink-3); }
.answer-body { font-size: 14px; line-height: 1.95; color: var(--ink-2); }
.answer-body p { margin: 0 0 14px; }
.answer-body h4 { font-size: 15px; color: var(--ink); margin: 18px 0 8px; }
.answer-body ul { margin: 0 0 16px; padding-left: 22px; }
.answer-body li { margin-bottom: 6px; }
.answer-body li::marker { color: var(--green); font-weight: 700; }
.answer-foot { display: flex; align-items: center; gap: 18px; margin-top: 18px; padding-top: 14px; border-top: 1px dashed var(--line); }
.answer-foot button {
  border: 0; background: transparent; display: flex; align-items: center; gap: 6px;
  font-size: 12px; color: var(--ink-3); padding: 0;
}
.answer-foot button svg { width: 15px; height: 15px; stroke: currentColor; }
.answer-foot button:hover, .answer-foot button.liked { color: var(--green); }
.answer-foot button.liked svg { fill: rgba(0, 210, 100, .18); }

.reply-editor { margin: 22px 24px 26px; padding: 20px; border-radius: 12px; background: #f7f9fb; border: 1px solid var(--line); }
.reply-editor h4 { margin: 0 0 12px; font-size: 15px; }
.reply-editor textarea {
  width: 100%; min-height: 96px; border: 1px solid var(--line); border-radius: 9px;
  padding: 12px 14px; resize: vertical; outline: none; font-size: 13px; color: var(--ink); background: #fff;
}
.reply-editor textarea:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(0, 210, 100, .08); }
.reply-editor .editor-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; }
.reply-editor .editor-foot span { font-size: 12px; color: var(--ink-3); }

.user-mini { display: flex; align-items: center; gap: 11px; }
.user-mini .avatar { width: 44px; height: 44px; font-size: 15px; }
.user-mini h4 { margin: 0 0 3px; font-size: 14px; }
.user-mini p { margin: 0; font-size: 12px; color: var(--ink-3); }
.user-mini-stat { display: flex; gap: 22px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.user-mini-stat div { font-size: 11px; color: var(--ink-3); text-align: center; }
.user-mini-stat strong { display: block; font-size: 16px; color: var(--ink); }
.hot-tags { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- 回到顶部 ---------- */
.back-top {
  position: fixed; right: 26px; bottom: 34px; z-index: 60;
  width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line);
  background: #fff; color: var(--ink-3); display: grid; place-items: center;
  box-shadow: var(--shadow-hover); opacity: 0; pointer-events: none; transition: all .25s;
}
.back-top.show { opacity: 1; pointer-events: auto; }
.back-top:hover { color: var(--green); transform: translateY(-3px); }
.back-top svg { width: 18px; height: 18px; stroke: currentColor; }

/* ---------- 响应式 ---------- */
@media (max-width: 1240px) {
  .container { width: 96%; }
  .main-nav { gap: 20px; }
  .hero-art { display: none; }
}
@media (max-width: 1000px) {
  .layout, .layout.detail-layout { grid-template-columns: 1fr; }
  .side-column { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .side-card + .side-card { margin-top: 0; }
  .header-search { max-width: 220px; }
}
@media (max-width: 760px) {
  .topbar { display: none; }
  .site-header .container { height: auto; flex-wrap: wrap; padding: 12px 0; gap: 12px; }
  .main-nav { order: 3; width: 100%; height: 40px; overflow-x: auto; }
  .header-search { max-width: none; flex: 1; }
  .header-actions .btn-ghost { display: none; }
  .hero-inner { padding: 30px 24px; }
  .hero h1 { font-size: 26px; }
  .hero-search { flex-direction: column; }
  .feed-thumb { flex-basis: 92px; height: 68px; }
  .article-main, .question-card { padding: 22px 18px; }
  .article-title, .question-title { font-size: 22px; }
  .side-column { grid-template-columns: 1fr; }
  .footer-links { gap: 24px; }
}

/* ============================================================
   关联模块：相关文章 / 相关问答 / 资料下载 / 在线题库 / 相关笔记
   ============================================================ */
.rel-section { margin-top: 26px; }
.rel-tabs {
  display: flex; align-items: center; gap: 30px;
  padding: 0 24px; border-bottom: 1px solid var(--line);
}
.rel-tabs button {
  border: 0; background: transparent; padding: 15px 0 13px;
  font-size: 15px; font-weight: 600; color: var(--ink-3);
  position: relative; transition: color .2s;
}
.rel-tabs button:hover { color: var(--ink-2); }
.rel-tabs button.active { color: var(--ink); }
.rel-tabs button.active::after {
  content: ""; position: absolute; bottom: -1px; left: 0; right: 0;
  height: 3px; border-radius: 3px; background: var(--grad);
}
.rel-tabs .rel-count { font-size: 12px; color: var(--ink-3); font-weight: 400; margin-left: 3px; }
.rel-panel { padding: 20px 24px 26px; }
.rel-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.rel-card {
  border: 1px solid var(--line); border-radius: 12px; padding: 16px;
  background: #fff; transition: all .22s; display: flex; flex-direction: column;
  min-height: 132px;
}
.rel-card:hover {
  border-color: rgba(0, 180, 255, .42); transform: translateY(-3px);
  box-shadow: 0 10px 26px rgba(0, 20, 40, .09);
}
.rel-card:hover h4 { color: var(--blue); }
.rel-card .rel-kind {
  display: inline-flex; align-items: center; gap: 5px; align-self: flex-start;
  font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 5px; margin-bottom: 10px;
  color: #009e59; background: var(--green-bg);
}
.rel-card .rel-kind.blue { color: #0089c9; background: var(--blue-bg); }
.rel-card .rel-kind.orange { color: #d97706; background: #fff5e6; }
.rel-card .rel-kind.purple { color: #7c5cd6; background: #f2edff; }
.rel-card h4 {
  margin: 0 0 7px; font-size: 14px; font-weight: 600; line-height: 1.55;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  transition: color .2s;
}
.rel-card p {
  margin: 0 0 10px; font-size: 12px; color: var(--ink-3); line-height: 1.65;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.rel-card .rel-meta {
  margin-top: auto; font-size: 11px; color: var(--ink-3);
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}
.rel-card .rel-meta b { color: var(--green); font-weight: 600; }
.rel-card .rel-ask {
  display: inline-flex; align-items: center; justify-content: center;
  width: 17px; height: 17px; border-radius: 4px; background: var(--grad);
  color: #fff; font-size: 11px; font-weight: 700; margin-right: 5px; vertical-align: -3px;
}
.rel-card .rel-note-head { display: flex; align-items: center; gap: 8px; margin-bottom: 9px; }
.rel-card .rel-note-head .avatar-sm { width: 22px; height: 22px; font-size: 10px; }
.rel-card .rel-note-head span { font-size: 11px; color: var(--ink-3); }
.rel-more {
  display: block; text-align: center; margin-top: 18px; padding: 11px;
  border: 1px dashed var(--line); border-radius: 10px;
  font-size: 13px; color: var(--ink-3); transition: all .2s;
}
.rel-more:hover { color: var(--blue); border-color: rgba(0, 180, 255, .45); background: #f8fcff; }

/* 资料下载区 */
.dl-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; padding: 20px 24px 26px; }
.dl-item {
  display: flex; align-items: center; gap: 13px; padding: 14px;
  border: 1px solid var(--line); border-radius: 12px; background: #fff; transition: all .2s;
}
.dl-item:hover { border-color: rgba(0, 210, 100, .45); box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.dl-file {
  flex: 0 0 42px; height: 48px; border-radius: 8px; display: grid; place-items: center;
  background: linear-gradient(145deg, #e9fbf2, #e6f5ff); color: #009e59;
}
.dl-file svg { width: 22px; height: 22px; }
.dl-file.pdf { background: linear-gradient(145deg, #fff0e8, #ffe6e6); color: #e06a4d; }
.dl-info { flex: 1; min-width: 0; }
.dl-info h4 { margin: 0 0 4px; font-size: 13px; font-weight: 600; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.dl-info p { margin: 0; font-size: 11px; color: var(--ink-3); }
.dl-info .dl-free { color: #009e59; font-weight: 600; }
.dl-item .btn { flex: 0 0 auto; }

/* 在线题库卡片 */
.bank-card {
  position: relative; overflow: hidden; margin: 0 24px 26px;
  border-radius: 14px; padding: 24px 26px; color: #fff;
  background: linear-gradient(115deg, #063653 0%, #086d78 100%);
  display: flex; align-items: center; gap: 24px;
}
.bank-card::before {
  content: ""; position: absolute; width: 260px; height: 260px; border-radius: 50%;
  right: -70px; top: -120px; background: radial-gradient(circle, rgba(0,210,100,.34), transparent 70%);
}
.bank-card .bank-icon {
  flex: 0 0 62px; height: 62px; border-radius: 16px; display: grid; place-items: center;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.24);
}
.bank-card .bank-icon svg { width: 32px; height: 32px; }
.bank-card .bank-copy { position: relative; z-index: 2; flex: 1; }
.bank-card h3 { margin: 0 0 5px; font-size: 19px; }
.bank-card p { margin: 0; font-size: 12px; color: rgba(255,255,255,.7); }
.bank-card .bank-nums { display: flex; gap: 26px; margin-top: 14px; }
.bank-card .bank-nums div { font-size: 11px; color: rgba(255,255,255,.62); }
.bank-card .bank-nums strong { display: block; font-size: 17px; color: #fff; }
.bank-card .btn { position: relative; z-index: 2; flex: 0 0 auto; background: #fff; color: var(--ink); }
.bank-card .btn:hover { color: var(--blue); }

/* 通用内页头 */
.page-hero {
  border-radius: var(--radius-lg); padding: 30px 36px; margin: 22px 0 20px;
  background: linear-gradient(115deg, #052b44, #077076); color: #fff;
  position: relative; overflow: hidden;
}
.page-hero::after {
  content: ""; position: absolute; width: 320px; height: 320px; border-radius: 50%;
  right: -60px; top: -180px; background: radial-gradient(circle, rgba(0,210,100,.32), transparent 70%);
}
.page-hero h1 { margin: 0 0 7px; font-size: 27px; position: relative; z-index: 2; }
.page-hero p { margin: 0; font-size: 14px; color: rgba(255,255,255,.72); position: relative; z-index: 2; }
.page-hero .ph-stats { display: flex; gap: 28px; margin-top: 18px; position: relative; z-index: 2; }
.page-hero .ph-stats div { font-size: 12px; color: rgba(255,255,255,.65); }
.page-hero .ph-stats strong { display: block; font-size: 19px; color: #fff; }
.filter-bar { display: flex; gap: 8px; flex-wrap: wrap; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.filter-bar .cat-chip { border: 0; cursor: pointer; }

/* 题库练习卡 */
.practice-item {
  display: flex; align-items: center; gap: 16px; padding: 18px 20px;
  border-bottom: 1px solid var(--line); transition: background .2s;
}
.practice-item:last-child { border-bottom: 0; }
.practice-item:hover { background: #fbfdfd; }
.practice-icon {
  flex: 0 0 50px; height: 50px; border-radius: 12px; display: grid; place-items: center;
  background: var(--grad-soft); color: #009e59;
}
.practice-icon svg { width: 25px; height: 25px; }
.practice-info { flex: 1; min-width: 0; }
.practice-info h4 { margin: 0 0 5px; font-size: 15px; }
.practice-info p { margin: 0; font-size: 12px; color: var(--ink-3); }
.practice-progress { height: 5px; border-radius: 3px; background: var(--line); margin-top: 9px; max-width: 260px; overflow: hidden; }
.practice-progress i { display: block; height: 100%; border-radius: 3px; background: var(--grad); }

/* 笔记条目 */
.note-item { padding: 20px 22px; border-bottom: 1px solid var(--line); }
.note-item:last-child { border-bottom: 0; }
.note-item .note-head { display: flex; align-items: center; gap: 9px; margin-bottom: 10px; }
.note-item .note-head .avatar-sm { width: 26px; height: 26px; font-size: 11px; }
.note-item .note-head b { font-size: 13px; }
.note-item .note-head span { font-size: 11px; color: var(--ink-3); }
.note-item h3 { margin: 0 0 7px; font-size: 16px; }
.note-item h3 a:hover { color: var(--blue); }
.note-item p { margin: 0 0 10px; font-size: 13px; color: var(--ink-2); line-height: 1.75; }
.note-item .note-foot { display: flex; gap: 16px; font-size: 12px; color: var(--ink-3); }

@media (max-width: 1000px) {
  .rel-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .rel-grid, .dl-grid { grid-template-columns: 1fr; }
  .rel-tabs { gap: 16px; overflow-x: auto; padding: 0 16px; }
  .rel-panel, .dl-grid { padding-left: 16px; padding-right: 16px; }
  .bank-card { margin: 0 16px 20px; flex-wrap: wrap; }
  .page-hero { padding: 24px 20px; }
}

/* ============================================================
   频道列表页：资讯列表 / 问答列表
   ============================================================ */
.channel-head {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 20px 26px; margin-bottom: 0;
}
.channel-head h1 { margin: 0 0 5px; font-size: 22px; display: flex; align-items: center; gap: 9px; }
.channel-head h1::before { content: ""; width: 4px; height: 20px; border-radius: 3px; background: var(--grad); }
.channel-head p { margin: 0; font-size: 13px; color: var(--ink-3); }
.channel-head .ch-right { display: flex; align-items: center; gap: 12px; }
.channel-head .ch-stat { font-size: 12px; color: var(--ink-3); }

.list-toolbar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 20px; border-bottom: 1px solid var(--line); flex-wrap: wrap;
}
.list-toolbar .lt-left { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.list-toolbar .lt-right { font-size: 12px; color: var(--ink-3); display: flex; align-items: center; gap: 14px; }
.list-toolbar .lt-right a { color: var(--ink-2); }
.list-toolbar .lt-right a.active { color: var(--green); font-weight: 600; }
.list-toolbar .cat-chip { cursor: pointer; }

/* 问答列表条目 */
.qa-row { padding: 20px 22px; border-bottom: 1px solid var(--line); transition: background .2s; }
.qa-row:last-child { border-bottom: 0; }
.qa-row:hover { background: #fcfdfd; }
.qa-row:hover h3 a { color: var(--blue); }
.qa-row .qr-top { display: flex; align-items: center; gap: 9px; margin-bottom: 9px; flex-wrap: wrap; }
.qa-status {
  display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 600;
  padding: 2px 8px; border-radius: 5px; color: #0089c9; background: var(--blue-bg);
}
.qa-status.solved { color: #009e59; background: var(--green-bg); }
.qa-status.hot { color: #e0603d; background: #fff0e8; }
.qa-status.wait { color: #d97706; background: #fff5e6; }
.qa-row h3 { margin: 0 0 8px; font-size: 16px; font-weight: 600; line-height: 1.5; }
.qa-row h3 a { transition: color .2s; }
.qa-row .qr-answer {
  font-size: 13px; color: var(--ink-2); line-height: 1.7; margin: 0 0 10px;
  padding: 9px 13px; background: #f7f9fb; border-left: 3px solid var(--green); border-radius: 0 8px 8px 0;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.qa-row .qr-answer b { color: #009e59; }
.qa-row .qr-meta { display: flex; align-items: center; gap: 16px; font-size: 12px; color: var(--ink-3); flex-wrap: wrap; }
.qa-row .qr-meta .qr-hot { color: #e0603d; }

/* 分页 */
.pager { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 24px 20px 26px; }
.pager a {
  min-width: 34px; height: 34px; padding: 0 11px; border: 1px solid var(--line);
  border-radius: 8px; display: grid; place-items: center; font-size: 13px;
  color: var(--ink-2); background: #fff; transition: all .2s;
}
.pager a:hover { color: var(--blue); border-color: rgba(0,180,255,.45); }
.pager a.active { background: var(--grad); color: #fff; border-color: transparent; font-weight: 600; }
.pager .pager-ellipsis { border: 0; background: transparent; color: var(--ink-3); cursor: default; }
.pager a:first-child, .pager a:last-child { font-size: 12px; color: var(--ink-3); }

@media (max-width: 760px) {
  .channel-head { padding: 18px 16px; flex-direction: column; align-items: flex-start; }
  .qa-row { padding: 18px 16px; }
  .pager { flex-wrap: wrap; }
}

/* ============================================================
   文章短信提醒表单
   ============================================================ */
.sms-remind {
  margin: 24px 0 26px; padding: 17px 20px 19px;
  background: #f7f9fb; border-left: 4px solid var(--blue);
  border-radius: 0 10px 10px 0;
}
.sms-remind h4 {
  margin: 0 0 14px; font-size: 15px; font-weight: 700; color: var(--ink);
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.sms-remind h4 span { color: var(--green); font-size: 14px; }
.sms-remind h4 .sms-tag {
  font-size: 11px; font-weight: 600; color: #fff; background: var(--grad);
  padding: 2px 8px; border-radius: 5px;
}
.sms-form { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.sms-form select, .sms-form input {
  height: 38px; padding: 0 12px; font-size: 13px; color: var(--ink);
  border: 1px solid #dfe5ec; border-radius: 7px; background: #fff; outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.sms-form select { width: 128px; cursor: pointer; }
.sms-form input { width: 148px; }
.sms-form input::placeholder { color: #aab5c3; }
.sms-form select:focus, .sms-form input:focus {
  border-color: var(--green); box-shadow: 0 0 0 3px rgba(0,210,100,.08);
}
.sms-form .btn-code {
  height: 38px; padding: 0 15px; border-radius: 7px;
  border: 1px solid var(--blue); background: #fff; color: var(--blue);
  font-size: 13px; font-weight: 600; transition: all .2s;
}
.sms-form .btn-code:hover { background: var(--blue-bg); }
.sms-form .btn-book {
  height: 38px; padding: 0 21px; border: 0; border-radius: 7px;
  background: var(--grad); color: #fff; font-size: 13px; font-weight: 600;
  box-shadow: 0 3px 10px rgba(0,180,255,.2); transition: all .2s;
}
.sms-form .btn-book:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(0,180,255,.3); color: #fff; }
.sms-remind .sms-note { margin: 10px 0 0; font-size: 11px; color: var(--ink-3); }

@media (max-width: 760px) {
  .sms-remind { padding: 14px 16px; }
  .sms-form select, .sms-form input { flex: 1; width: auto; min-width: 120px; }
}

/* ---------- 弹窗 ---------- */
.modal-mask {
  position: fixed; inset: 0; z-index: 200; display: grid; place-items: center;
  background: rgba(0, 20, 40, .48); backdrop-filter: blur(3px);
  opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s;
  padding: 20px;
}
.modal-mask.show { opacity: 1; visibility: visible; }
.modal-box {
  width: 100%; max-width: 460px; max-height: 90vh; overflow: auto;
  background: #fff; border-radius: 18px; box-shadow: 0 24px 70px rgba(0, 20, 40, .28);
  transform: translateY(16px) scale(.98); transition: transform .22s;
}
.modal-mask.show .modal-box { transform: translateY(0) scale(1); }
.modal-box.wide { max-width: 620px; }
.modal-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px 14px; border-bottom: 1px solid var(--line);
}
.modal-head h3 { margin: 0; font-size: 18px; color: var(--ink); }
.modal-head .modal-close {
  width: 30px; height: 30px; border: 0; border-radius: 8px; background: #f5f7fa;
  display: grid; place-items: center; color: var(--ink-3); font-size: 18px;
}
.modal-head .modal-close:hover { background: var(--grad-soft); color: var(--blue); }
.modal-body { padding: 22px 24px 24px; }
.modal-field { margin-bottom: 14px; }
.modal-field label { display: block; font-size: 12px; color: var(--ink-2); font-weight: 600; margin-bottom: 6px; }
.modal-field input, .modal-field select, .modal-field textarea {
  width: 100%; border: 1px solid #dfe5ec; border-radius: 9px; background: #fff;
  padding: 10px 12px; font-size: 13px; color: var(--ink); outline: none; resize: vertical;
  transition: border-color .2s, box-shadow .2s;
}
.modal-field input:focus, .modal-field select:focus, .modal-field textarea:focus {
  border-color: var(--green); box-shadow: 0 0 0 3px rgba(0, 210, 100, .10);
}
.modal-field textarea { min-height: 92px; }
.modal-field .inline { display: flex; gap: 10px; }
.modal-field .inline input { flex: 1; }
.modal-field .inline .btn-code { flex: 0 0 auto; height: 40px; padding: 0 14px; border: 1px solid var(--blue); background: #fff; color: var(--blue); border-radius: 9px; font-size: 12px; font-weight: 600; }
.modal-field .inline .btn-code:hover { background: var(--blue-bg); }
.modal-field .inline .btn-code:disabled { border-color: var(--line); color: var(--ink-3); cursor: default; }
.modal-tabs { display: flex; gap: 8px; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
.modal-tabs button {
  border: 0; background: transparent; padding: 8px 4px 12px; margin-right: 16px;
  font-size: 14px; font-weight: 600; color: var(--ink-3); position: relative;
}
.modal-tabs button.active { color: var(--ink); }
.modal-tabs button.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: var(--grad); border-radius: 3px; }
.modal-submit { width: 100%; height: 42px; margin-top: 4px; border: 0; border-radius: 10px; background: var(--grad); color: #fff; font-size: 14px; font-weight: 700; box-shadow: 0 4px 12px rgba(0,180,255,.22); }
.modal-submit:hover { filter: brightness(1.04); }
.modal-tip { font-size: 12px; color: var(--ink-3); text-align: center; margin: 12px 0 0; }
.modal-tip a { color: var(--blue); font-weight: 600; }
.modal-list { display: grid; gap: 8px; }
.modal-list a { display: flex; align-items: center; gap: 10px; padding: 11px 13px; border-radius: 10px; background: #f7f9fb; font-size: 13px; color: var(--ink-2); }
.modal-list a:hover { background: var(--grad-soft); color: var(--blue); }
.modal-list svg { width: 16px; height: 16px; stroke: currentColor; }
.qr-block { display: flex; align-items: center; gap: 20px; }
.qr-code {
  width: 132px; height: 132px; flex: 0 0 auto; border-radius: 12px; padding: 8px;
  border: 1px solid var(--line); background: #fff;
  background-image: repeating-linear-gradient(0deg, transparent 0 8px, rgba(0,20,40,.9) 8px 12px), repeating-linear-gradient(90deg, transparent 0 8px, rgba(0,20,40,.9) 8px 12px);
  background-size: 16px 16px;
}
.qr-block h4 { margin: 0 0 6px; font-size: 15px; }
.qr-block p { margin: 0 0 12px; font-size: 12px; color: var(--ink-3); line-height: 1.7; }
.share-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.share-grid button { border: 1px solid var(--line); background: #fff; border-radius: 12px; padding: 16px 8px; display: grid; justify-items: center; gap: 8px; font-size: 12px; color: var(--ink-2); }
.share-grid button:hover { border-color: rgba(0,180,255,.4); background: var(--grad-soft); color: var(--blue); }
.share-grid .s-icon { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 14px; font-weight: 700; }
.s-wechat { background: #09bb07; } .s-weibo { background: #e6162d; } .s-qzone { background: #f7b633; } .s-copy { background: var(--grad); }

@media (max-width: 760px) {
  .dropdown-menu { position: fixed; top: auto; left: 12px; right: 12px; width: auto; }
  .mega-menu { min-width: 0; }
  .exam-menu { min-width: 0; }
  .modal-body { padding: 18px; }
}

/* ===== 问答详情：内容排版与链接卡片（移植自旧版，作用域限定） ===== */
.question-desc p, .answer-body p, .RichText p { margin: 0 0 12px; line-height: 1.9; }
.question-desc img, .answer-body img, .RichText img { max-width: 100%; height: auto; }
.question-desc ul, .answer-body ul, .RichText ul { padding-left: 22px; margin: 0 0 12px; }
.question-desc ol, .answer-body ol, .RichText ol { padding-left: 22px; margin: 0 0 12px; }
.question-desc h4, .answer-body h4, .RichText h4 { margin: 14px 0 8px; font-size: 16px; }
.answer-body .appendbox { background: #f7f8fa; border-radius: 8px; padding: 10px 14px; margin: 10px 0; }
.answer-body .appendbox h4 { margin: 0 0 6px; font-size: 13px; color: #8590a6; }
.answer-body .zhuiwentext { line-height: 1.8; }
    .LinkCard {
        background-color: #f6f6f6;
        display: block;
        border-radius: 8px;
        overflow: hidden;
        color: inherit;
        margin: 1em auto;
        max-width: 100%;
        min-height: 88px;
        position: relative;
        text-decoration: none;
        width: 390px;
        z-index: 0;
    }
    .LinkCard-card {
        overflow: hidden;
        max-width: 400px;
        min-height: 88px;
    }
    .LinkCard-card, .LinkCard-cardContainer {
        -webkit-box-align: stretch;
        -ms-flex-align: stretch;
        align-items: stretch;
        position: relative;
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
    }
    .LinkCard-cardContainer {
        -webkit-box-sizing: border-box;
        box-sizing: border-box;
        width: 100%;
        padding: 14px;
        z-index: 2;
    }
    .LinkCard :hover {text-decoration: none!important;}
    .LinkCard-imageContainer {
        -ms-flex-negative: 0;
        flex-shrink: 0;
        overflow: hidden;
        position: relative;
        border-radius: 6px;
        height: 100px;
        width: 100px;
    }
    .LinkCard-image {
        height: 100%;
        width: 100%;
    }
    .LinkCard-info {
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
        -webkit-box-flex: 1;
        -ms-flex-positive: 1;
        flex-grow: 1;
        margin-left: 12px;
        overflow: hidden;
    }
    .LinkCard-info, .LinkCard-titleContainer {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
    }
    .LinkCard-titleContainer {
        -webkit-box-align: center;
        -ms-flex-align: center;
        align-items: center;
        -webkit-box-pack: justify;
        -ms-flex-pack: justify;
        justify-content: space-between;
    }
    .LinkCard-title {
        color: #121212;
        font-size: 16px;
        line-height: 20px;
        max-height: 40px;
        font-weight: 600;
        font-synthesis: style;
        display: -webkit-box;
        text-overflow: ellipsis;
        overflow: hidden;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }
    .LinkCard-source {
        color: #646464;
        font-size: 12px;
        line-height: 17px;
        margin-top: 5px;
        font-weight: 600;
        font-synthesis: style;
    }
    .LinkCard-tool {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-align: end;
        -ms-flex-align: end;
        align-items: flex-end;
        margin-top: auto;
    }
    .LinkCard-toolLeft {
        margin-right: auto;
    }
    .LinkCard-price {
        -webkit-box-align: center;
        -ms-flex-align: center;
        align-items: center;
        color: #ff7955;
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        font-size: 16px;
        font-weight: 500;
        line-height: 18px;
        margin-right: auto;
    }
    .LinkCard:hover{text-decoration: none;}
    .LinkCard-image{margin: 0 auto!important;}
    .LinkCard-button {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -ms-flex-negative: 0;
        flex-shrink: 0;
        -webkit-box-pack: center;
        -ms-flex-pack: center;
        justify-content: center;
        -ms-flex-item-align: start;
        align-self: flex-start;
        -webkit-box-align: center;
        -ms-flex-align: center;
        align-items: center;
        color: #ff7955;
        font-size: 13px;
        height: 17px;
        line-height: 17px;
        font-weight: 600;
        font-synthesis: style;
    }

.hide{
                display: none;
            }

/* ===== 头部：真实logo+23周年徽章 ===== */
.site-header .logo { display: flex; align-items: center; gap: 8px; flex-wrap: nowrap; flex: none; }
.site-header .logo img { height: 40px; width: auto; display: block; }
.site-header .logo .icon_bg { float: none !important; margin: 0 !important; flex: none; display: inline-block; width: 62px; height: 34px; background-size: contain; background-repeat: no-repeat; background-position: center; }

/* ===== 分享微信弹窗 ===== */
.modal.share-wechat { z-index: 1050; }
.modal.share-wechat .modal-dialog { max-width: 420px; margin: 60px auto; }
.modal.share-wechat .modal-content { border-radius: 12px; overflow: hidden; }
.modal.share-wechat .modal-body { padding: 20px 24px 28px; text-align: center; }
.modal.share-wechat .modal-body h5 { font-size: 14px; color: #333; margin: 0 0 16px; line-height: 1.6; }
.modal.share-wechat .qrcode { display: flex; justify-content: center; }
.modal.share-wechat .qrcode img, .modal.share-wechat .qrcode canvas, .modal.share-wechat .qrcode table { width: 180px !important; height: 180px !important; display: block !important; margin: 0 auto; }

/* ===== 举报弹窗 ===== */
.panel-report .modal-dialog { max-width: 520px; }
.panel-report .modal-body { padding: 16px 24px; }
.panel-report .modal-body h4 { font-size: 14px; margin: 14px 0 8px; color: #333; }
.panel-report .modal-body ul { list-style: none; padding: 0; margin: 0 0 6px; }
.panel-report .modal-body ul li, .panel-report .modal-body .list label { display: inline-block; margin: 4px 16px 4px 0; font-size: 14px; color: #444; cursor: pointer; }
.panel-report .modal-body input[type="radio"] { margin-right: 5px; vertical-align: -1px; }
.panel-report .modal-body textarea { width: 100%; min-height: 90px; border: 1px solid #e1e4e8; border-radius: 8px; padding: 10px 12px; font-size: 14px; resize: vertical; box-sizing: border-box; }
.panel-report .modal-footer { padding: 12px 24px 20px; border-top: 0; }
.panel-report .modal-footer .btn { margin-right: 10px; }

/* ===== 添加讨论（评论区） ===== */
.comments-mod { background: #f7f8fa; border-radius: 10px; padding: 14px 16px; margin-top: 10px; }
.comments-mod .areabox .input-group { display: flex; gap: 8px; }
.comments-mod .comment-input { flex: 1; border: 1px solid #e1e4e8; border-radius: 8px; padding: 9px 12px; font-size: 14px; height: auto; }
.comments-mod .input-group-btn .btn { border-radius: 8px; padding: 8px 20px; }
.comments-mod .my-comments-list { list-style: none; padding: 0; margin: 12px 0 0; }
.comments-mod .my-comments-list li { padding: 10px 0; border-top: 1px solid #eceff3; font-size: 14px; line-height: 1.7; }
.comments-mod .my-comments-list li:first-child { border-top: 0; }
.comments-mod .my-comments-list li img { width: 28px; height: 28px; border-radius: 50%; vertical-align: -8px; margin-right: 8px; }
.comments-mod .my-comments-list li .time, .comments-mod .my-comments-list li span.time { color: #9aa5b1; font-size: 12px; margin-left: 8px; }
.comments-mod .loading { color: #9aa5b1; font-size: 13px; }

/* ===== 游客登录提示 & 分类条右对齐 ===== */
.guest-editor .sign-container { display: flex; align-items: center; justify-content: center; gap: 14px; padding: 26px 16px; }
.guest-editor .sign-tip { font-size: 14px; color: #8590a6; }
.guest-editor .btn-sign { padding: 9px 26px; border-radius: 8px; font-size: 14px; }
.cat-bar .exam-links { justify-content: flex-end; }
