/* ============================================================
   MandarinHub 汉语汇 — 前台样式（移动优先 / 响应式）
   ============================================================ */
:root {
  --red: #E03C31;
  --red-dark: #B92B22;
  --red-light: #FDECEA;
  --ink: #1F2430;
  --ink-2: #454C5E;
  --muted: #7D8496;
  --line: #E6E8F0;
  --bg: #FFFFFF;
  --bg-alt: #F6F7FB;
  --bg-dark: #171A23;
  --gold: #C9A063;
  --green: #1F9D55;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(31, 36, 48, .05), 0 8px 24px rgba(31, 36, 48, .07);
  --shadow-sm: 0 1px 2px rgba(31, 36, 48, .06);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --header-h: 64px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 15px;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 18px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; background: var(--red); color: #fff;
  padding: 8px 16px; z-index: 200; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ============ 顶部公告条 ============ */
.topbar { background: var(--bg-dark); color: rgba(255,255,255,.92); font-size: 13px; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 36px; padding: 6px 18px; }
.topbar-msg { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }
.topbar-right { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.lang-switch { font-weight: 600; color: #FFD9D5; }
.lang-switch:hover { color: #fff; }
.topbar-link { opacity: .85; }
.topbar-link:hover { opacity: 1; color: #FFD9D5; }

/* ============ 头部 ============ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 14px; min-height: var(--header-h); }

.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand-logo { width: 42px; height: 42px; object-fit: contain; border-radius: 50%; background: #fff; box-shadow: 0 1px 5px rgba(224, 60, 49, .25); }
/* 站点 LOGO 统一圆形展示（页脚 / 登录 / 账户页） */
.site-logo-round { border-radius: 50%; background: #fff; object-fit: contain; box-shadow: 0 1px 4px rgba(224, 60, 49, .22); }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-name { font-size: 18px; font-weight: 800; letter-spacing: .2px; }
.brand-sub { font-size: 11px; color: var(--muted); white-space: nowrap; }

/* 搜索栏（导航下方独立一行） */
.header-searchbar { display: none; background: linear-gradient(180deg, #FFFFFF 0%, var(--bg-alt) 100%); border-bottom: 1px solid var(--line); }
.searchbar-inner { display: flex; align-items: center; gap: 14px 18px; padding: 11px 18px; flex-wrap: wrap; }
.header-search {
  position: relative; display: flex; align-items: center; gap: 6px;
  flex: 1 1 380px; max-width: 560px; background: #fff;
  border: 1.5px solid var(--line); border-radius: 999px; padding: 4px 4px 4px 42px;
  box-shadow: var(--shadow-sm); transition: border-color .2s, box-shadow .2s;
}
.header-search:focus-within { border-color: var(--red); box-shadow: 0 0 0 4px rgba(224, 60, 49, .08); }
.header-search .search-lead { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.header-search input { flex: 1; min-width: 0; border: none; background: transparent; height: 38px; font-size: 14.5px; padding: 0 6px; color: var(--ink); font-family: var(--font); }
.header-search input:focus { outline: none; }
.search-submit {
  background: var(--red); color: #fff; border: none; border-radius: 999px;
  padding: 9px 20px; font-size: 13.5px; font-weight: 600; cursor: pointer; font-family: var(--font);
  transition: background .15s, transform .1s; flex-shrink: 0;
}
.search-submit:hover { background: var(--red-dark); }
.search-submit:active { transform: scale(.97); }
.hot-tags { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; }
.hot-tags-label { color: var(--muted); font-weight: 600; white-space: nowrap; }
.hot-tags a {
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 5px 13px; color: var(--ink-2); font-weight: 500; white-space: nowrap;
  transition: border-color .15s, color .15s, transform .1s;
}
.hot-tags a:hover { border-color: var(--red); color: var(--red); transform: translateY(-1px); }

.main-nav { display: none; align-items: center; gap: 1px; margin-left: auto; flex-wrap: nowrap; }
.main-nav > a, .nav-drop > a {
  display: flex; align-items: center; gap: 4px;
  padding: 8px 10px; border-radius: 8px; font-size: 14px; font-weight: 500;
  color: var(--ink-2); white-space: nowrap;
}
.main-nav > a:hover, .nav-drop > a:hover { background: var(--bg-alt); color: var(--ink); }
.main-nav > a.active, .nav-drop > a.active { color: var(--red); font-weight: 600; }
.nav-new { position: relative; }
.badge-new {
  background: var(--red); color: #fff; font-size: 9px; font-weight: 700;
  padding: 1px 5px; border-radius: 4px; margin-left: 3px; vertical-align: 2px;
  letter-spacing: .3px;
}

.nav-drop { position: relative; }
/* 鼠标桥接区：父项与下拉菜单之间有 8px 视觉间隙，鼠标移入子菜单途中经过间隙会丢失 hover 导致菜单闪断。
   用透明伪元素把间隙纳入 .nav-drop 的 hover 范围，垂直/斜向移动均不中断。 */
.nav-drop::after {
  content: ''; position: absolute; top: 100%; left: 0; right: 0; height: 10px;
  display: block; background: transparent;
}
.nav-drop-menu {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 260px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 8px; display: none; z-index: 120;
}
.nav-drop:hover .nav-drop-menu, .nav-drop:focus-within .nav-drop-menu, .nav-drop.open .nav-drop-menu { display: block; }
.nav-drop-menu a { display: flex; gap: 10px; padding: 9px 10px; border-radius: var(--radius-sm); align-items: flex-start; }
.nav-drop-menu a:hover { background: var(--bg-alt); }
.nav-drop-icon { font-size: 18px; line-height: 1.4; }
.nav-drop-menu strong { display: block; font-size: 14px; }
.nav-drop-menu em { display: block; font-style: normal; font-size: 12px; color: var(--muted); }

.header-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.user-chip { display: flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 999px; }
.user-chip:hover { background: var(--bg-alt); }
.avatar {
  width: 30px; height: 30px; border-radius: 50%; background: var(--red); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px;
}
.user-meta { display: none; flex-direction: column; line-height: 1.2; }
.user-meta strong { font-size: 13px; }
.user-meta em { font-style: normal; font-size: 11px; color: var(--gold); font-weight: 600; }

.nav-toggle {
  width: 40px; height: 40px; border: none; background: var(--bg-alt); border-radius: 10px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; cursor: pointer;
}
.nav-toggle span { width: 18px; height: 2px; background: var(--ink); border-radius: 2px; transition: .2s; }

/* ============ 按钮 ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: none; cursor: pointer; font-family: var(--font);
  font-size: 14px; font-weight: 600; padding: 9px 16px; border-radius: 10px;
  transition: transform .15s, box-shadow .15s, background .15s;
  white-space: nowrap;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); box-shadow: 0 4px 14px rgba(224, 60, 49, .35); }
.btn-outline { background: #fff; color: var(--ink); border: 1.5px solid var(--line); }
.btn-outline:hover { border-color: var(--red); color: var(--red); }
.btn-ghost { background: var(--bg-alt); color: var(--ink); }
.btn-ghost:hover { background: var(--line); }
.btn-lg { padding: 13px 24px; font-size: 15px; border-radius: 12px; }
.btn-sm { padding: 6px 12px; font-size: 13px; border-radius: 8px; }
.btn-block { width: 100%; }
.btn-post { padding: 9px 14px; }

/* ============ 移动端菜单 ============ */
.mobile-menu {
  position: fixed; top: 0; right: -300px; width: 280px; max-width: 85vw; height: 100vh;
  background: #fff; z-index: 150; box-shadow: -8px 0 32px rgba(0,0,0,.12);
  transition: right .28s ease; overflow-y: auto; padding: 20px 0 40px;
  display: flex; flex-direction: column;
}
.mobile-menu.open { right: 0; }
.mobile-menu a { display: flex; align-items: center; gap: 12px; padding: 13px 22px; font-size: 15px; font-weight: 500; border-bottom: 1px solid var(--bg-alt); }
.mobile-menu a span:first-child { font-size: 18px; }
.mobile-menu a:hover { background: var(--bg-alt); color: var(--red); }
.mobile-menu-sep { height: 8px; background: var(--bg-alt); }
.mobile-search { padding: 0 16px 14px; }
.mobile-search input { width: 100%; height: 42px; border: 1.5px solid var(--line); border-radius: 999px; padding: 0 16px; font-size: 14px; background: var(--bg-alt); }

/* ============ Hero ============ */
.hero {
  background:
    radial-gradient(900px 420px at 85% -10%, rgba(224, 60, 49, .10), transparent 60%),
    radial-gradient(700px 380px at -10% 110%, rgba(201, 160, 99, .12), transparent 60%),
    linear-gradient(180deg, #FFF9F8 0%, #FFFFFF 75%);
  border-bottom: 1px solid var(--line);
  padding: 40px 0 0;
}
.hero-inner { display: grid; gap: 28px; }
.hero-eyebrow { font-size: 13px; font-weight: 600; color: var(--red); margin-bottom: 10px; }
.hero-text h1 { font-size: 30px; line-height: 1.25; font-weight: 800; letter-spacing: -.3px; }
.hero-accent {
  background: linear-gradient(90deg, var(--red), var(--gold));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub { color: var(--ink-2); font-size: 15px; margin: 14px 0 20px; max-width: 560px; }
.hero-search { display: flex; gap: 8px; max-width: 520px; }
.hero-search input {
  flex: 1; height: 50px; border: 1.5px solid var(--line); border-radius: 12px;
  padding: 0 16px; font-size: 15px; background: #fff; box-shadow: var(--shadow-sm);
}
.hero-search input:focus { outline: none; border-color: var(--red); }
.hero-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 20px; }
.chip {
  display: inline-flex; align-items: center; gap: 4px;
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 6px 13px; font-size: 13px; color: var(--ink-2); font-weight: 500;
  transition: border-color .15s, color .15s;
}
.chip:hover { border-color: var(--red); color: var(--red); }
.chip-active { background: var(--red); border-color: var(--red); color: #fff; }
.chip-sm { font-size: 12px; padding: 4px 10px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-side { display: flex; justify-content: center; }
.word-card {
  background: #fff; border: 1px solid var(--line); border-radius: 20px;
  box-shadow: var(--shadow); padding: 26px 28px; width: 100%; max-width: 340px; text-align: center;
  position: relative; overflow: hidden;
}
.word-card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 5px;
  background: linear-gradient(90deg, var(--red), var(--gold));
}
.word-card-tag { font-size: 12px; font-weight: 700; color: var(--gold); letter-spacing: .5px; }
.word-zh { font-size: 44px; font-weight: 800; margin: 8px 0 2px; }
.word-py { color: var(--red); font-weight: 600; font-size: 15px; }
.word-en { color: var(--ink-2); font-size: 14px; margin-bottom: 14px; }
.word-ex { background: var(--bg-alt); border-radius: var(--radius-sm); padding: 12px 14px; text-align: left; font-size: 13px; }
.word-ex p:last-child { color: var(--muted); }
.word-share { margin-top: 14px; }

.hero-stats { margin-top: 36px; border-top: 1px solid var(--line); background: rgba(255,255,255,.7); }
.hero-stats-inner { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; padding: 20px 18px; }
.stat { text-align: center; }
.stat strong { display: block; font-size: 24px; font-weight: 800; color: var(--red); }
.stat span { font-size: 12px; color: var(--muted); }

/* ============ 通用区块 ============ */
.section { padding: 44px 0; }
.section-alt { background: var(--bg-alt); }
.section-cross {
  background:
    radial-gradient(600px 300px at 90% 0%, rgba(201,160,99,.14), transparent 60%),
    linear-gradient(180deg, #FFFDF9, #FFFFFF);
}
.section-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 6px; flex-wrap: wrap; }
.section-head h2 { font-size: 22px; font-weight: 800; display: flex; align-items: center; gap: 8px; }
.section-icon { font-size: 22px; }
.section-more { margin-left: auto; font-size: 13px; font-weight: 600; color: var(--red); white-space: nowrap; }
.section-more:hover { text-decoration: underline; }
.section-desc { color: var(--ink-2); font-size: 14px; margin-bottom: 18px; max-width: 720px; }
.center-title { text-align: center; font-size: 22px; font-weight: 800; margin-bottom: 26px; }

/* ============ 卡片网格 ============ */
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: repeat(2, 1fr); }

.cat-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; display: flex; flex-direction: column; gap: 6px;
  transition: transform .18s, box-shadow .18s, border-color .18s;
}
.cat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #F0C8C4; }
.cat-icon { font-size: 30px; }
.cat-card h3 { font-size: 16px; font-weight: 700; }
.cat-card p { font-size: 13px; color: var(--ink-2); flex: 1; }
.cat-count { font-size: 12px; color: var(--muted); font-weight: 600; }
.cat-card-lg { padding: 26px; }
.cat-go { font-size: 13px; font-weight: 700; color: var(--red); margin-top: 8px; }

.art-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .18s, box-shadow .18s;
}
.art-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.art-img { aspect-ratio: 16 / 9; overflow: hidden; background: var(--bg-alt); }
.art-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.art-card:hover .art-img img { transform: scale(1.05); }
.art-card-body { padding: 16px; display: flex; flex-direction: column; gap: 7px; flex: 1; }
.art-meta { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); flex-wrap: wrap; }
.art-cat { color: var(--red); font-weight: 600; }
.art-tag { background: var(--red-light); color: var(--red-dark); font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 6px; }
.art-views { margin-left: auto; }
.art-card h3 { font-size: 15.5px; font-weight: 700; line-height: 1.45; }
.art-card h4 { font-size: 14.5px; font-weight: 700; }
.art-card p { font-size: 13px; color: var(--ink-2); flex: 1; }
.art-more { font-size: 13px; font-weight: 700; color: var(--red); }
.art-more:hover { text-decoration: underline; }

/* HSK */
.hsk-levels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 22px; }
.hsk-level {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 10px; text-align: center; transition: border-color .15s, transform .15s;
}
.hsk-level:hover { border-color: var(--red); transform: translateY(-2px); }
.hsk-num { display: block; font-size: 24px; font-weight: 800; color: var(--red); }
.hsk-label { display: block; font-weight: 700; font-size: 14px; }
.hsk-words { display: block; font-size: 11px; color: var(--muted); }

/* 学校卡片 */
.school-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; display: flex; flex-direction: column; gap: 10px;
  transition: transform .18s, box-shadow .18s;
}
.school-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.school-card-head { display: flex; gap: 12px; align-items: center; }
.school-logo {
  width: 46px; height: 46px; border-radius: 12px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--red), #F0766C); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 800;
}
.school-logo-lg { width: 64px; height: 64px; font-size: 28px; border-radius: 16px; }
.school-card-head h3 { font-size: 15.5px; font-weight: 700; }
.school-loc { font-size: 12px; color: var(--muted); }
.tier-badge { font-size: 10px; font-weight: 800; text-transform: uppercase; padding: 3px 8px; border-radius: 6px; letter-spacing: .4px; margin-left: auto; align-self: flex-start; }
.tier-basic { background: #E8F0FE; color: #1A56DB; }
.tier-pro { background: #FEF3C7; color: #B45309; }
.tier-premium { background: var(--red); color: #fff; }
.tier-free { display: none; }
.type-badge { background: var(--bg-alt); color: var(--ink-2); font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: 6px; }
.school-sum { font-size: 13px; color: var(--ink-2); flex: 1; }
.school-cta { font-size: 13px; font-weight: 700; color: var(--red); }

/* 跨国文化卡片 */
.cross-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; display: flex; flex-direction: column; gap: 8px;
  transition: transform .18s, box-shadow .18s, border-color .18s;
}
.cross-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #EBD9B4; }
.cross-icon { font-size: 28px; }
.cross-card h3 { font-size: 15px; font-weight: 700; }
.cross-card p { font-size: 13px; color: var(--ink-2); flex: 1; }
.cross-card-more { border-style: dashed; background: linear-gradient(180deg, #FFFDF7, #FFFFFF); }

/* 学习路径 */
.learn-path { margin-top: 40px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.learn-path h2 { font-size: 18px; font-weight: 800; margin-bottom: 18px; }
.path-steps { display: grid; gap: 14px; }
.path-step { display: flex; gap: 14px; align-items: flex-start; }
.path-num {
  width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0;
  background: var(--red); color: #fff; font-weight: 800;
  display: flex; align-items: center; justify-content: center; font-size: 15px;
}
.path-step strong { font-size: 15px; }
.path-step p { font-size: 13px; color: var(--ink-2); }

/* CTA 带 */
.cta-band {
  background: linear-gradient(120deg, var(--bg-dark), #2A2F3E); color: #fff;
  border-radius: 20px; padding: 30px 26px; display: grid; gap: 18px;
}
.cta-band h2 { font-size: 20px; font-weight: 800; }
.cta-band p { color: rgba(255,255,255,.75); font-size: 14px; margin-top: 6px; }
.cta-band .btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.cta-band .btn-outline:hover { border-color: #fff; color: #fff; }
.cta-band-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* 社区 / 积分 */
.community-grid { display: grid; gap: 28px; }
.points-list { display: grid; gap: 10px; margin: 18px 0 22px; }
.points-list li { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--ink-2); }
.points-num {
  background: var(--red-light); color: var(--red-dark); font-weight: 800; font-size: 13px;
  padding: 4px 10px; border-radius: 8px; min-width: 52px; text-align: center;
}
.community-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.share-invite {
  background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 26px;
  box-shadow: var(--shadow-sm);
}
.share-invite h3 { font-size: 17px; font-weight: 800; }
.share-invite > p { font-size: 13.5px; color: var(--ink-2); margin: 8px 0 16px; }
.share-invite-buttons { display: flex; gap: 10px; flex-wrap: wrap; }

/* ============ 分享条 ============ */
.share-bar {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 14px 0; border-block: 1px dashed var(--line); margin: 18px 0;
}
.share-label { font-size: 13px; font-weight: 700; color: var(--ink-2); }
.share-buttons { display: flex; gap: 8px; flex-wrap: wrap; }
.share-btn {
  width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line);
  background: #fff; display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--ink-2); transition: transform .15s, color .15s, border-color .15s;
}
.share-btn:hover { transform: translateY(-2px); }
.sb-fb:hover { color: #1877F2; border-color: #1877F2; }
.sb-x:hover { color: #000; border-color: #000; }
.sb-wa:hover { color: #25D366; border-color: #25D366; }
.sb-tg:hover { color: #26A5E4; border-color: #26A5E4; }
.sb-copy:hover { color: var(--red); border-color: var(--red); }
.share-toast { font-size: 13px; font-weight: 700; color: var(--green); }
.share-float-toast {
  position: absolute; z-index: 9999; pointer-events: none; white-space: nowrap;
  background: var(--ink); color: #fff; font-size: 12.5px; font-weight: 600;
  padding: 6px 12px; border-radius: 8px; box-shadow: 0 6px 20px rgba(31, 36, 48, .25);
  opacity: 0; transform: translateY(4px); transition: opacity .18s ease, transform .18s ease;
}
.share-float-toast.show { opacity: 1; transform: translateY(0); }
.share-float-toast::after {
  content: ''; position: absolute; left: 50%; bottom: -5px; margin-left: -5px;
  border: 5px solid transparent; border-top-color: var(--ink); border-bottom: none;
}

/* ============ 页面头（频道页） ============ */
.page-hero {
  background: linear-gradient(180deg, #FFF9F8, #FFFFFF);
  border-bottom: 1px solid var(--line); padding: 26px 0 30px;
}
.page-hero-hsk { background: linear-gradient(180deg, #F6F3FF, #FFFFFF); }
.page-hero-cross { background: linear-gradient(180deg, #FFFDF4, #FFFFFF); }
.page-hero-biz { background: linear-gradient(180deg, #F0F7FF, #FFFFFF); }
.page-hero h1 { font-size: 26px; font-weight: 800; margin: 8px 0 8px; }
.page-hero > .wrap > p { color: var(--ink-2); font-size: 14.5px; max-width: 760px; }
.cat-hero-icon { margin-right: 6px; }
.breadcrumb { font-size: 12.5px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.breadcrumb a:hover { color: var(--red); }
.school-hero { display: flex; gap: 18px; align-items: center; margin-top: 10px; flex-wrap: wrap; }
.school-hero h1 { margin: 0 0 4px; }
.school-badges { display: flex; gap: 8px; flex-wrap: wrap; }

/* ============ 内容布局（含侧栏） ============ */
.layout-with-sidebar { display: grid; gap: 26px; padding: 26px 18px 44px; }
.content-side { display: none; }

/* 芯片行 */
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; align-items: center; }
.chip-label { font-size: 12px; color: var(--muted); font-weight: 600; }

/* ============ 文章页 ============ */
.article-page { min-width: 0; }
.article-header h1 { font-size: 25px; font-weight: 800; line-height: 1.35; margin: 10px 0 12px; }
.article-meta { display: flex; flex-wrap: wrap; gap: 12px; font-size: 13px; color: var(--muted); }
.article-source { color: var(--ink-2); }
.quick-answer {
  background: linear-gradient(135deg, #FFF6F5, #FFFDF8);
  border: 1px solid #F5D9D5; border-left: 4px solid var(--red);
  border-radius: var(--radius); padding: 16px 18px; margin: 18px 0;
}
.quick-answer strong { display: block; font-size: 13px; color: var(--red-dark); margin-bottom: 6px; }
.quick-answer p { font-size: 14px; color: var(--ink-2); }
.quick-answer-hsk { border-left-color: #7C5CD6; border-color: #DED4F5; background: linear-gradient(135deg, #F8F5FF, #FFFFFF); }
.quick-answer-hsk strong { color: #5B3BB8; }
.quick-answer-cross { border-left-color: var(--gold); border-color: #EFE2C4; background: linear-gradient(135deg, #FFFDF4, #FFFFFF); }
.quick-answer-cross strong { color: #97762F; }

.article-content { font-size: 15.5px; line-height: 1.85; color: var(--ink); overflow-wrap: break-word; }
.article-content p { margin: 0 0 1.1em; }
.article-content h2, .article-content h3, .article-content h4 { margin: 1.6em 0 .7em; line-height: 1.4; }
.article-content h2 { font-size: 20px; }
.article-content h3 { font-size: 17px; }
.article-content img { border-radius: var(--radius); margin: 1em auto; }
.article-content a { color: var(--red); text-decoration: underline; text-underline-offset: 3px; }
.article-content ul, .article-content ol { margin: 0 0 1.1em 1.4em; }
.article-content li { list-style: disc; margin-bottom: .4em; }
.article-content ol li { list-style: decimal; }
.article-content blockquote {
  border-left: 3px solid var(--gold); background: var(--bg-alt);
  padding: 12px 16px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; margin: 1em 0; color: var(--ink-2);
}
.article-content table { width: 100%; border-collapse: collapse; margin: 1em 0; font-size: 14px; display: block; overflow-x: auto; }
.article-content th, .article-content td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; }
.article-content th { background: var(--bg-alt); }
.article-fallback-note {
  background: #FFF8E6; border: 1px solid #F0E2B6; color: #8A6D1F;
  border-radius: var(--radius-sm); padding: 10px 14px; font-size: 13.5px; margin-bottom: 14px;
}
.article-source-note { font-size: 12.5px; color: var(--muted); margin: 20px 0; }
.article-source-note a { color: var(--red); }
.article-nav { display: grid; gap: 10px; margin: 22px 0 30px; }
.article-nav-item {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px;
  display: flex; flex-direction: column; gap: 4px; transition: border-color .15s;
}
.article-nav-item:hover { border-color: var(--red); }
.article-nav-item span { font-size: 12px; color: var(--muted); }
.article-nav-item strong { font-size: 14px; line-height: 1.4; }
.related h3 { font-size: 18px; font-weight: 800; margin-bottom: 14px; }
.related .art-card h4 { font-size: 14px; }
.related time { font-size: 12px; color: var(--muted); }

/* 侧栏 */
.side-box {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; margin-bottom: 16px;
}
.side-box h4 { font-size: 15px; font-weight: 800; margin-bottom: 12px; }
.side-link {
  display: block; padding: 8px 0; font-size: 13.5px; color: var(--ink-2);
  border-bottom: 1px solid var(--bg-alt); line-height: 1.5;
}
.side-link:last-child { border-bottom: none; }
.side-link:hover { color: var(--red); }
.side-link.active { color: var(--red); font-weight: 700; }
.side-cta { background: linear-gradient(160deg, #FFF6F5, #FFFFFF); border-color: #F5D9D5; }
.side-cta p { font-size: 13px; color: var(--ink-2); margin-bottom: 12px; }
.side-points li { font-size: 13px; color: var(--ink-2); padding: 4px 0; }

/* 分页 */
.pagination { display: flex; gap: 6px; justify-content: center; margin: 26px 0; flex-wrap: wrap; }
.pagination a {
  min-width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); border-radius: 8px; font-size: 13.5px; font-weight: 600;
  color: var(--ink-2); background: #fff;
}
.pagination a:hover { border-color: var(--red); color: var(--red); }
.pagination a.active { background: var(--red); border-color: var(--red); color: #fff; }

/* 广告位 */
.ad-slot { position: relative; margin: 22px 0; text-align: center; }
.ad-item img { border-radius: var(--radius); margin: 0 auto; }
.ad-link { display: block; }
.ad-caption { display: block; font-size: 12px; color: var(--muted); margin-top: 6px; }
.ad-text { display: inline-block; padding: 10px 18px; border: 1px dashed var(--line); border-radius: var(--radius-sm); color: var(--ink-2); font-size: 13.5px; }
.ad-tag {
  position: absolute; top: 4px; right: 4px; font-size: 10px; color: var(--muted);
  border: 1px solid var(--line); border-radius: 4px; padding: 0 5px; background: #fff;
}

/* ============ 筛选栏 ============ */
.filter-bar {
  display: grid; grid-template-columns: 1fr; gap: 10px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px; margin-bottom: 22px;
}
.filter-field input, .filter-field select {
  width: 100%; height: 42px; border: 1.5px solid var(--line); border-radius: 10px;
  padding: 0 12px; font-size: 14px; background: var(--bg-alt); color: var(--ink); font-family: var(--font);
}
.filter-field input:focus, .filter-field select:focus { outline: none; border-color: var(--red); background: #fff; }

/* ============ 学校详情 ============ */
.school-section { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin-bottom: 18px; }
.school-section h2 { font-size: 18px; font-weight: 800; margin-bottom: 14px; }
.school-desc { font-size: 14.5px; color: var(--ink-2); line-height: 1.8; }
.course-list { display: flex; flex-wrap: wrap; gap: 8px; }
.course-list li {
  background: var(--bg-alt); border: 1px solid var(--line); border-radius: 999px;
  padding: 6px 14px; font-size: 13px; font-weight: 500;
}
.lead-form { display: grid; gap: 12px; }
.lead-form .form-row { display: grid; gap: 12px; }
.lead-form label { display: grid; gap: 5px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.lead-form input, .lead-form textarea, .lead-form select {
  border: 1.5px solid var(--line); border-radius: 10px; padding: 10px 12px;
  font-size: 14px; font-family: var(--font); background: var(--bg-alt); color: var(--ink);
}
.lead-form input:focus, .lead-form textarea:focus, .lead-form select:focus { outline: none; border-color: var(--red); background: #fff; }
.form-msg { font-size: 13.5px; font-weight: 700; }
.form-msg.ok { color: var(--green); }
.form-msg.err { color: var(--red); }
.school-direct { margin-top: 16px; padding-top: 16px; border-top: 1px dashed var(--line); display: grid; gap: 6px; font-size: 14px; }
.school-direct a { color: var(--red); }

/* ============ 搜索页 ============ */
.search-page-form { display: flex; gap: 10px; margin-bottom: 26px; }
.search-page-form input {
  flex: 1; height: 50px; border: 1.5px solid var(--line); border-radius: 12px;
  padding: 0 16px; font-size: 15px; background: #fff;
}
.search-page-form input:focus { outline: none; border-color: var(--red); }
.search-group-title { font-size: 18px; font-weight: 800; margin: 26px 0 14px; }

/* 社区信息卡 */
.post-list { display: grid; gap: 12px; }
.post-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.post-card-head { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.post-card h3 { font-size: 15px; font-weight: 700; }
.post-card p { font-size: 13.5px; color: var(--ink-2); margin: 6px 0; }
.post-card time { font-size: 12px; color: var(--muted); }
.post-contact { font-size: 12.5px; color: var(--gold); font-weight: 600; }
.post-status { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 6px; white-space: nowrap; }
.status-approved { background: #E6F7EC; color: var(--green); }
.status-pending { background: #FFF6E0; color: #B45309; }
.status-rejected { background: var(--red-light); color: var(--red-dark); }

/* ============ 发布信息 / 登录 ============ */
.post-form { display: grid; gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.post-form label, .auth-form label { display: grid; gap: 6px; font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.post-form input, .post-form select, .post-form textarea, .auth-form input {
  border: 1.5px solid var(--line); border-radius: 10px; padding: 11px 13px;
  font-size: 14.5px; font-family: var(--font); background: var(--bg-alt); color: var(--ink);
}
.post-form input:focus, .post-form select:focus, .post-form textarea:focus, .auth-form input:focus { outline: none; border-color: var(--red); background: #fff; }
.form-note { font-size: 12.5px; color: var(--muted); }
.login-hint { background: #FFF6E0; border: 1px solid #F0E2B6; border-radius: var(--radius); padding: 20px; display: grid; gap: 12px; justify-items: start; }
.login-hint p { font-size: 14px; color: #8A6D1F; }
.flash-ok { background: #E6F7EC; border: 1px solid #BDE5CC; color: var(--green); border-radius: var(--radius); padding: 14px 18px; font-weight: 600; margin-bottom: 18px; }
.my-posts { margin-top: 30px; }
.my-posts h2 { font-size: 18px; font-weight: 800; margin-bottom: 14px; }

.auth-page { padding: 40px 0 60px; background: var(--bg-alt); min-height: 70vh; }
.auth-card {
  max-width: 440px; margin: 0 auto; background: #fff; border: 1px solid var(--line);
  border-radius: 20px; padding: 32px 28px; box-shadow: var(--shadow);
}
.auth-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.auth-brand img { width: 44px; height: 44px; }
.auth-card h1 { font-size: 22px; font-weight: 800; margin-bottom: 18px; }
.auth-form { display: grid; gap: 14px; }
.auth-err { background: var(--red-light); color: var(--red-dark); font-size: 13px; font-weight: 600; padding: 9px 12px; border-radius: 8px; margin-bottom: 14px; }
.auth-ok { background: #e8f7ee; color: #157347; font-size: 13px; font-weight: 600; padding: 9px 12px; border-radius: 8px; margin-bottom: 14px; }
.account-card { max-width: 520px; }
.account-info { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-bottom: 6px; }
.account-info-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 11px 14px; font-size: 13.5px; }
.account-info-row + .account-info-row { border-top: 1px solid var(--line); }
.account-info-row:nth-child(odd) { background: var(--bg-alt); }
.account-label { color: var(--ink-2); font-weight: 600; flex-shrink: 0; }
.account-value { text-align: right; word-break: break-all; }
.role-badge { display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--bg-alt); color: var(--ink-2); border: 1px solid var(--line); }
.role-badge.role-school, .role-badge.role-admin { background: var(--red-light); color: var(--red-dark); border-color: transparent; }
.account-links { display: flex; gap: 10px; flex-wrap: wrap; margin: 14px 0 4px; }
.account-links .btn { flex: 1; min-width: 140px; }
.account-subtitle { font-size: 17px; font-weight: 800; margin: 22px 0 14px; padding-top: 18px; border-top: 1px dashed var(--line); }
.auth-switch { text-align: center; font-size: 13.5px; color: var(--ink-2); margin: 16px 0; }
.auth-switch a { color: var(--red); font-weight: 700; }
.auth-points { margin-top: 20px; background: var(--bg-alt); border-radius: var(--radius); padding: 16px; }
.auth-points strong { font-size: 13.5px; }
.auth-points ul { margin: 10px 0; display: grid; gap: 5px; }
.auth-points li { font-size: 13px; color: var(--ink-2); }
.auth-points-note { font-size: 12px; color: var(--muted); }

/* ============ 404 ============ */
.notfound { padding: 80px 0; text-align: center; }
.notfound-code { font-size: 72px; font-weight: 800; color: var(--red); line-height: 1; }
.notfound h1 { font-size: 24px; font-weight: 800; margin: 12px 0 8px; }
.notfound p { color: var(--ink-2); margin-bottom: 24px; }
.notfound-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.notfound-links { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-top: 30px; font-size: 13.5px; }
.notfound-links a { color: var(--red); }

/* ============ 商家页面 ============ */
.why-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.why-icon { font-size: 30px; display: block; margin-bottom: 10px; }
.why-card h3 { font-size: 16px; font-weight: 800; margin-bottom: 8px; }
.why-card p { font-size: 13.5px; color: var(--ink-2); }

.price-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; font-size: 14px; }
.price-table th, .price-table td { padding: 13px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.price-table th { background: var(--bg-alt); font-size: 13px; color: var(--ink-2); white-space: nowrap; }
.price-table tr:last-child td { border-bottom: none; }
.price-table .price { color: var(--red); font-weight: 800; white-space: nowrap; }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.table-note { font-size: 12.5px; color: var(--muted); margin-top: 10px; }

.plan-grid { display: grid; gap: 16px; margin-bottom: 36px; }
.plan-card {
  background: #fff; border: 1.5px solid var(--line); border-radius: 20px; padding: 26px 22px;
  display: flex; flex-direction: column; gap: 12px; position: relative;
}
.plan-popular { border-color: var(--red); box-shadow: 0 12px 32px rgba(224,60,49,.14); }
.plan-flag {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--red); color: #fff; font-size: 11px; font-weight: 800;
  padding: 3px 12px; border-radius: 999px; white-space: nowrap;
}
.plan-card h3 { font-size: 18px; font-weight: 800; }
.plan-desc { font-size: 13px; color: var(--muted); }
.plan-price strong { font-size: 32px; font-weight: 800; color: var(--ink); }
.plan-price span { font-size: 13px; color: var(--muted); margin-left: 4px; }
.plan-features { display: grid; gap: 8px; flex: 1; }
.plan-features li { font-size: 13.5px; color: var(--ink-2); }
.pricing-extra { margin-bottom: 36px; }
.pricing-extra h2 { font-size: 19px; font-weight: 800; margin-bottom: 16px; }
.faq-box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.faq-box h2 { font-size: 19px; font-weight: 800; margin-bottom: 14px; }
.faq-box details { border-bottom: 1px solid var(--bg-alt); padding: 12px 0; }
.faq-box details:last-child { border-bottom: none; }
.faq-box summary { font-size: 14.5px; font-weight: 700; cursor: pointer; list-style: none; }
.faq-box summary::before { content: "Q "; color: var(--red); font-weight: 800; }
.faq-box details p { font-size: 13.5px; color: var(--ink-2); margin-top: 8px; padding-left: 18px; }

/* ============ 跨国文化专题 ============ */
.cross-topics { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }
.cross-topic { background: #fff; border: 1px solid #EFE2C4; color: #97762F; font-size: 13px; font-weight: 600; padding: 7px 14px; border-radius: 999px; }

/* ============ 空状态 ============ */
.empty-hint {
  text-align: center; padding: 40px 20px; background: #fff;
  border: 1.5px dashed var(--line); border-radius: var(--radius); color: var(--muted);
  display: grid; gap: 14px; justify-items: center; font-size: 14px;
}

/* ============ 页脚 ============ */
.site-footer { background: var(--bg-dark); color: rgba(255,255,255,.72); margin-top: 20px; }
.footer-grid { display: grid; gap: 26px; padding: 44px 18px 30px; }
.footer-col h4 { color: #fff; font-size: 14px; font-weight: 700; margin-bottom: 14px; }
.footer-col a { display: block; font-size: 13.5px; padding: 4px 0; }
.footer-col a:hover { color: #fff; }
.footer-col p { font-size: 13.5px; margin-bottom: 8px; }
.footer-about p { line-height: 1.7; margin: 14px 0; }
.footer-brand { margin-bottom: 4px; }
.footer-brand .brand-name { color: #fff; }
.footer-brand .brand-sub { color: rgba(255,255,255,.5); }
.footer-social { display: flex; gap: 10px; margin-top: 14px; }
.footer-social a {
  width: 36px; height: 36px; border-radius: 10px; background: rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: center; color: #fff;
}
.footer-social a:hover { background: var(--red); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); }
.footer-bottom-inner { padding: 18px; display: grid; gap: 6px; font-size: 12.5px; }
.footer-bottom p { color: rgba(255,255,255,.55); }
.footer-icp a { color: rgba(255,255,255,.55); }
.footer-icp a:hover { color: #fff; }
.footer-disclaimer { color: rgba(255,255,255,.4) !important; font-size: 11.5px; }

.back-top {
  position: fixed; right: 16px; bottom: 20px; width: 44px; height: 44px; border-radius: 50%;
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow);
  display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 90;
  opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s, transform .15s;
  color: var(--ink-2);
}
.back-top.show { opacity: 1; visibility: visible; }
.back-top:hover { color: var(--red); border-color: var(--red); }

.show-sm { display: inline; }
.hide-sm { display: none; }

/* ============================================================
   响应式断点
   ============================================================ */
@media (min-width: 640px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .hero-stats-inner { grid-template-columns: repeat(4, 1fr); }
  .filter-bar { grid-template-columns: 1.4fr 1fr 1fr auto; align-items: end; }
  .lead-form .form-row { grid-template-columns: 1fr 1fr; }
  .article-nav { grid-template-columns: 1fr 1fr; }
  .article-nav-item.next { text-align: right; }
  .show-sm { display: none; }
  .hide-sm { display: inline; }
  .plan-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 768px) {
  body { font-size: 15.5px; }
  .hero { padding: 56px 0 0; }
  .hero-text h1 { font-size: 38px; }
  .section { padding: 56px 0; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .path-steps { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; }
  .footer-bottom-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
  .cta-band { grid-template-columns: 1fr auto; align-items: center; padding: 36px 40px; }
  .community-grid { grid-template-columns: 1.2fr 1fr; align-items: center; }
  .page-hero h1 { font-size: 30px; }
  .article-header h1 { font-size: 30px; }
  .user-meta { display: flex; }
}

@media (min-width: 960px) {
  .main-nav { display: flex; }
  .header-searchbar { display: block; }
  .nav-toggle { display: none; }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
  .hero-inner { grid-template-columns: 1.35fr 1fr; align-items: center; }
  .layout-with-sidebar { grid-template-columns: 1fr 300px; }
  .content-side { display: block; }
  .plan-grid { grid-template-columns: repeat(4, 1fr); }
  .hero-text h1 { font-size: 42px; }
  .admin-grid-2 { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 1024px) {
  .brand-sub { font-size: 11.5px; }
  .main-nav > a, .nav-drop > a { padding: 8px 9px; }
}

@media (min-width: 1100px) {
  .wrap { padding: 0 24px; }
  .hero-text h1 { font-size: 46px; }
  .section-head h2 { font-size: 25px; }
}

/* 降低动效偏好 */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* 打印 */
@media print {
  .site-header, .site-footer, .content-side, .share-bar, .back-top, .ad-slot { display: none !important; }
}

/* ============================================================
   社区 / 课程 / 学校后台 / 入驻 / 认领 组件
   ============================================================ */
.flash-err {
  background: var(--red-light); border: 1px solid #F3C7C2; color: var(--red-dark);
  padding: 12px 16px; border-radius: var(--radius-sm); font-weight: 600; margin-bottom: 16px;
}
.flash-big { padding: 22px 24px; }
.flash-big h3 { font-size: 20px; margin-bottom: 8px; }
.flash-big .btn { margin-top: 6px; margin-right: 8px; }

.muted-note { color: var(--muted); font-size: 13px; }
.muted-note a { color: var(--red); }

/* 表单分组 */
.post-form fieldset, .claim-form { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; margin-bottom: 16px; }
.post-form legend { font-weight: 700; padding: 0 8px; color: var(--ink); font-size: 14px; }
.post-form label { display: block; font-size: 13px; font-weight: 600; color: var(--ink-2); margin-bottom: 12px; }
.post-form input, .post-form select, .post-form textarea, .claim-form input {
  width: 100%; margin-top: 6px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  padding: 10px 12px; font-size: 14px; font-family: var(--font); background: #fff; color: var(--ink);
}
.post-form input:focus, .post-form textarea:focus, .post-form select:focus { outline: none; border-color: var(--red); }

/* 国家/城市联动下拉 */
.geo-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.geo-pair label { margin-bottom: 0; }
.geo-ip-note { font-size: 12.5px; color: var(--muted); margin: -4px 0 14px; }
@media (max-width: 640px) {
  .geo-pair { grid-template-columns: 1fr; }
}

/* 定价课程行 */
.plan-course {
  font-size: 13px; font-weight: 700; color: var(--red); background: var(--red-light);
  border-radius: var(--radius-sm); padding: 8px 12px; margin: 4px 0 14px; text-align: center;
}

/* 课程卡片（学校详情） */
.course-cards { display: grid; gap: 12px; grid-template-columns: 1fr; }
.course-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; background: #fff; }
.course-card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.course-card-head h4 { font-size: 15px; }
.course-price { color: var(--red); font-weight: 800; white-space: nowrap; }
.course-card-meta { display: flex; flex-wrap: wrap; gap: 12px; font-size: 12.5px; color: var(--muted); margin: 6px 0; }
.course-card p { font-size: 13.5px; color: var(--ink-2); }

/* 社区 */
.page-hero-community .page-hero-inner, .page-hero-community { }
.community-list { display: grid; gap: 14px; }
.community-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; background: #fff; box-shadow: var(--shadow-sm); }
.community-card-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.community-cat { font-size: 12.5px; font-weight: 700; color: var(--red); background: var(--red-light); padding: 3px 10px; border-radius: 999px; }
.community-meta { font-size: 12.5px; color: var(--muted); }
.community-card h3 { font-size: 17px; margin: 4px 0 6px; }
.community-body { color: var(--ink-2); font-size: 14px; }
.community-contact { font-size: 13px; color: var(--muted); margin-top: 6px; }
.community-actions { display: flex; align-items: center; gap: 16px; margin-top: 12px; font-size: 13px; color: var(--muted); }
.like-btn { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 5px 12px; cursor: pointer; font-size: 13px; display: inline-flex; align-items: center; gap: 6px; transition: border-color .15s, color .15s; }
.like-btn:hover { border-color: var(--red); }
.like-btn.liked { border-color: var(--red); color: var(--red); }
.community-reply { margin-top: 10px; }
.community-reply summary { cursor: pointer; font-size: 13px; font-weight: 600; color: var(--red); }
.community-reply form { margin-top: 8px; }
.community-reply textarea { width: 100%; border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: 10px; font-family: var(--font); font-size: 14px; margin-bottom: 8px; }
.login-hint-inline { font-size: 13px; color: var(--muted); margin-top: 8px; }
.login-hint-inline a { color: var(--red); font-weight: 600; }

/* 学校后台 */
.dash-card { display: flex; flex-direction: column; }
.dash-usage { font-size: 13px; color: var(--ink-2); margin: 8px 0 12px; }
.dash-usage strong { color: var(--red); }
.dash-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; }
.dash-cta-row { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 12px; }
.lead-mini li { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.lead-mini li:last-child { border-bottom: none; }
.lead-mini span { color: var(--muted); }

/* 认领 */
.claim-box { background: var(--bg-alt); border-radius: var(--radius); padding: 18px 20px; }
.claim-box h2 { font-size: 18px; margin-bottom: 8px; }
.claim-form label { font-size: 13px; font-weight: 600; color: var(--ink-2); display: block; margin-bottom: 10px; }
.claim-flash { font-size: 14px; font-weight: 600; color: var(--green); margin-top: 6px; }
.verify-badge { background: var(--green); color: #fff; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; }

/* 登录页备选入口 */
.auth-alt { margin-top: 16px; padding-top: 16px; border-top: 1px dashed var(--line); text-align: center; }
.auth-alt span { display: block; font-size: 13px; color: var(--muted); margin-bottom: 10px; }

/* 响应式补充 */
@media (min-width: 640px) {
  .course-cards { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  .course-cards { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  .community-card { padding: 14px; }
  .community-actions { gap: 12px; }
  .course-card-head { flex-direction: column; }
}

/* ========== 联系我们页（中性，备案前替代商家合作/套餐） ========== */
.contact-grid { display: grid; gap: 16px; grid-template-columns: 1fr; margin: 8px 0 24px; }
@media (min-width: 600px) { .contact-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .contact-grid { grid-template-columns: repeat(4, 1fr); } }
.contact-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 22px; text-align: center; }
.contact-card .why-icon { font-size: 28px; display: block; margin-bottom: 8px; }
.contact-card h3 { font-size: 15px; font-weight: 800; margin-bottom: 6px; }
.contact-card p { font-size: 13.5px; color: var(--ink-2); }
.contact-card a { color: var(--red); font-weight: 600; }
.contact-social { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.contact-social a { color: var(--red); font-weight: 600; }
.contact-note { background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px; font-size: 14px; color: var(--ink-2); text-align: center; }
.muted { color: var(--muted); }
