/* =========================================================
   学汇教辅 · 设计系统
   ========================================================= */
:root {
  --blue-600: #2563eb;
  --blue-700: #1d4ed8;
  --blue-50:  #eef4ff;
  --blue-100: #dbe7ff;
  --ink-900:  #0b1526;
  --ink-700:  #24324a;
  --ink-600:  #475569;
  --ink-500:  #64748b;
  --ink-400:  #94a3b8;
  --line:     #e6ecf5;
  --bg:       #f5f8fd;
  --white:    #ffffff;
  --amber:    #f59e0b;
  --mint:     #0ea5a4;
  --violet:   #7c3aed;
  --rose:     #f43f5e;
  --radius-sm: 10px;
  --radius:    16px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06), 0 4px 12px rgba(15, 23, 42, .04);
  --shadow-md: 0 10px 30px rgba(15, 23, 42, .08);
  --shadow-lg: 0 24px 60px rgba(15, 23, 42, .14);
  --container: 1200px;
  --header-h: 72px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

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

h1, h2, h3, h4, p, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; }
input { font: inherit; }
svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 64px 0; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 42px;
  padding: 0 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), background .18s var(--ease), color .18s var(--ease);
}
.btn:active { transform: scale(.97); }
.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, #3b82f6, #2563eb 55%, #1e40af);
  box-shadow: 0 8px 20px rgba(37, 99, 235, .28);
}
.btn-primary:hover { box-shadow: 0 12px 26px rgba(37, 99, 235, .36); transform: translateY(-1px); }
.btn-ghost { color: var(--ink-600); }
.btn-ghost:hover { color: var(--blue-600); background: var(--blue-50); }
.btn-outline {
  color: var(--blue-700);
  border: 1.5px solid var(--blue-100);
  background: #fff;
}
.btn-outline:hover { border-color: var(--blue-600); background: var(--blue-50); }
.btn-light { color: #fff; background: rgba(255, 255, 255, .18); border: 1px solid rgba(255, 255, 255, .35); }
.btn-light:hover { background: rgba(255, 255, 255, .3); }
.btn-lg { height: 50px; padding: 0 26px; font-size: 15px; }
.btn-ico { width: 18px; height: 18px; }

.icon-btn {
  display: none;
  width: 40px; height: 40px;
  align-items: center; justify-content: center;
  border-radius: 12px;
  color: var(--ink-600);
}
.icon-btn svg { width: 22px; height: 22px; }
.icon-btn:hover { background: var(--blue-50); color: var(--blue-600); }

/* =========================================================
   顶部导航
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, box-shadow .25s;
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 8px 24px rgba(15, 23, 42, .05);
}

.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand-mark {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 12px;
  color: #fff; font-size: 19px; font-weight: 800;
  background: linear-gradient(135deg, #4f8dff, #2563eb 60%, #1e3a8a);
  box-shadow: 0 8px 18px rgba(37, 99, 235, .3);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: 17px; color: var(--ink-900); letter-spacing: .5px; }
.brand-text small { font-size: 11px; color: var(--ink-400); letter-spacing: 1px; }

.main-nav { display: flex; align-items: center; gap: 4px; flex: 1; }
.nav-link {
  position: relative;
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink-600);
  transition: color .18s, background .18s;
}
.nav-link:hover { color: var(--blue-600); background: var(--blue-50); }
.nav-link.is-active { color: var(--blue-700); font-weight: 600; }
.nav-link.is-active::after {
  content: "";
  position: absolute;
  left: 50%; bottom: 2px;
  width: 18px; height: 3px;
  border-radius: 2px;
  transform: translateX(-50%);
  background: var(--blue-600);
}

.header-actions { display: flex; align-items: center; gap: 8px; }

.search-bar { display: none; border-top: 1px solid var(--line); padding: 12px 16px; background: #fff; }
.search-bar-inner {
  display: flex; align-items: center; gap: 8px;
  height: 44px; padding: 0 6px 0 14px;
  background: var(--bg); border-radius: 999px;
}
.search-bar input { flex: 1; border: 0; background: none; outline: none; font-size: 14px; min-width: 0; }
.search-bar .btn { height: 36px; padding: 0 16px; }

/* =========================================================
   Hero
   ========================================================= */
.hero {
  position: relative;
  overflow: hidden;
  padding: 64px 0 56px;
  background: linear-gradient(180deg, #f2f7ff 0%, #fbfdff 70%, #fff 100%);
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.orb { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; }
.orb-1 {
  width: 520px; height: 520px;
  top: -220px; left: -120px;
  background: radial-gradient(circle at 30% 30%, #bfd7ff, #7ab0ff 60%, transparent 70%);
}
.orb-2 {
  width: 460px; height: 460px;
  top: -160px; right: -100px;
  background: radial-gradient(circle at 60% 40%, #c9f5ee, #8ee6d8 55%, transparent 72%);
  opacity: .45;
}
.grid-mask {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(37, 99, 235, .055) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(37, 99, 235, .055) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  gap: 48px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12.5px;
  color: var(--ink-600);
  background: #fff;
  border: 1px solid var(--blue-100);
  box-shadow: var(--shadow-sm);
}
.hero-badge b { color: var(--blue-700); }
.hero-badge .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, .16);
}

.hero-title {
  margin: 20px 0 16px;
  font-size: clamp(30px, 4.2vw, 52px);
  line-height: 1.22;
  font-weight: 800;
  letter-spacing: -.8px;
  color: var(--ink-900);
}
.text-gradient {
  background: linear-gradient(100deg, #2563eb 10%, #0ea5a4 55%, #4f46e5 95%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  max-width: 520px;
  color: var(--ink-500);
  font-size: 15.5px;
  line-height: 1.75;
}

.hero-search {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 600px;
  margin-top: 28px;
  padding: 6px 6px 6px 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 12px 34px rgba(37, 99, 235, .1);
  transition: box-shadow .2s, border-color .2s;
}
.hero-search:focus-within {
  border-color: #b9cdfb;
  box-shadow: 0 16px 40px rgba(37, 99, 235, .16);
}
.hero-search .search-icon { display: flex; color: var(--ink-400); }
.search-icon svg { width: 20px; height: 20px; }
.hero-search input {
  flex: 1;
  min-width: 0;
  height: 42px;
  border: 0;
  outline: none;
  background: none;
  font-size: 14.5px;
  color: var(--ink-700);
}
.hero-search input::placeholder { color: var(--ink-400); }
.hero-search .btn { height: 44px; padding: 0 22px; }

.hero-hot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  font-size: 12.5px;
  color: var(--ink-400);
}
.hot-word {
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 12.5px;
  color: var(--ink-600);
  background: rgba(255, 255, 255, .75);
  border: 1px solid var(--line);
  transition: all .18s;
}
.hot-word:hover { color: var(--blue-700); border-color: var(--blue-100); background: #fff; }

/* Hero 右侧装饰面板 */
.hero-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
}
.panel-card {
  background: #fff;
  border: 1px solid #eef2f9;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.panel-main {
  padding: 22px 24px 20px;
  animation: floatY 7s ease-in-out infinite;
}
.panel-head { display: flex; align-items: center; justify-content: space-between; }
.panel-tag {
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 600;
  color: #b45309;
  background: #fef3c7;
}
.panel-live { display: flex; align-items: center; gap: 5px; font-size: 11.5px; color: var(--ink-400); }
.panel-live i { width: 6px; height: 6px; border-radius: 50%; background: #22c55e; animation: blink 1.6s infinite; }
.panel-main h3 {
  margin: 14px 0 8px;
  font-size: 18px;
  line-height: 1.45;
  color: var(--ink-900);
}
.panel-meta { display: flex; flex-wrap: wrap; gap: 6px; }
.panel-meta span {
  padding: 2px 9px;
  border-radius: 6px;
  font-size: 11.5px;
  color: var(--ink-500);
  background: var(--bg);
}
.panel-progress { margin-top: 18px; font-size: 12px; color: var(--ink-500); }
.panel-progress .bar {
  height: 6px;
  margin-bottom: 8px;
  border-radius: 999px;
  background: #eef2f9;
  overflow: hidden;
}
.panel-progress .bar i {
  display: block; height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #4f8dff, #0ea5a4);
}
.panel-foot {
  display: flex; align-items: center; gap: 10px;
  margin-top: 18px; padding-top: 16px;
  border-top: 1px dashed var(--line);
  font-size: 12px; color: var(--ink-500);
}
.avatars { display: flex; }
.avatars i {
  width: 24px; height: 24px;
  border-radius: 50%;
  border: 2px solid #fff;
  margin-left: -8px;
}
.avatars i:first-child { margin-left: 0; }
.avatars .a1 { background: linear-gradient(135deg, #93c5fd, #3b82f6); }
.avatars .a2 { background: linear-gradient(135deg, #fcd34d, #f59e0b); }
.avatars .a3 { background: linear-gradient(135deg, #6ee7b7, #0ea5a4); }

.panel-chips {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.panel-float {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 12px;
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
}
.panel-float strong { display: block; font-size: 13px; color: var(--ink-900); line-height: 1.3; }
.panel-float small { font-size: 11px; color: var(--ink-400); white-space: nowrap; }
.mini-ico {
  flex-shrink: 0;
  width: 32px; height: 32px;
  display: grid; place-items: center;
  border-radius: 10px;
  font-size: 14px; font-weight: 700;
}
.mini-ico.blue { color: #1d4ed8; background: #e0eaff; }
.mini-ico.amber { color: #b45309; background: #fef3c7; }
.mini-ico.mint { color: #0f766e; background: #ccfbf1; }

@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: .25; }
}

/* =========================================================
   通用标题
   ========================================================= */
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}
.section-title {
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 800;
  letter-spacing: -.4px;
  color: var(--ink-900);
}
.section-desc { margin-top: 6px; font-size: 13.5px; color: var(--ink-500); }
.link-more {
  display: inline-flex; align-items: center; gap: 3px;
  font-size: 13.5px; color: var(--ink-500);
  white-space: nowrap;
  transition: color .18s;
}
.link-more svg { width: 16px; height: 16px; }
.link-more:hover { color: var(--blue-600); }

/* =========================================================
   学段入口
   ========================================================= */
.stage-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }

.stage-card {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 26px 24px;
  text-align: left;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: #fff;
  overflow: hidden;
  transition: transform .22s var(--ease), box-shadow .22s var(--ease), border-color .22s;
}
.stage-card::before {
  content: "";
  position: absolute;
  right: -60px; top: -70px;
  width: 190px; height: 190px;
  border-radius: 50%;
  opacity: .14;
  transition: transform .35s var(--ease);
}
.stage-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #dbe6fb; }
.stage-card:hover::before { transform: scale(1.12); }

.stage-primary::before { background: #3b82f6; }
.stage-junior::before { background: #0ea5a4; }
.stage-senior::before { background: #7c3aed; }

.stage-icon {
  flex-shrink: 0;
  width: 50px; height: 50px;
  display: grid; place-items: center;
  border-radius: 14px;
}
.stage-icon svg { width: 26px; height: 26px; }
.stage-primary .stage-icon { color: #2563eb; background: #eaf1ff; }
.stage-junior .stage-icon { color: #0d9488; background: #e2fbf6; }
.stage-senior .stage-icon { color: #7c3aed; background: #f1eafe; }

.stage-info { flex: 1; min-width: 0; }
.stage-label {
  display: inline-block;
  margin-bottom: 4px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .3px;
}
.stage-primary .stage-label { color: #2563eb; }
.stage-junior .stage-label { color: #0d9488; }
.stage-senior .stage-label { color: #7c3aed; }
.stage-info strong { display: block; font-size: 15px; color: var(--ink-900); }
.stage-info small { display: block; margin-top: 6px; font-size: 12px; color: var(--ink-400); }
.stage-arrow {
  position: absolute;
  right: 18px; bottom: 16px;
  width: 18px; height: 18px;
  color: var(--ink-400);
  opacity: .7;
  transition: transform .2s;
}
.stage-card:hover .stage-arrow { transform: translateX(3px); }

/* =========================================================
   资料列表区
   ========================================================= */
.listing-section { background: var(--bg); }

.listing-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  align-items: start;
}

.filter-panel {
  padding: 18px 20px 8px;
  margin-bottom: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.filter-row {
  display: flex;
  gap: 14px;
  padding-bottom: 12px;
}
.filter-label {
  flex-shrink: 0;
  width: 42px;
  padding-top: 5px;
  font-size: 13px;
  color: var(--ink-400);
}
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  padding: 5px 13px;
  border-radius: 8px;
  font-size: 13px;
  color: var(--ink-600);
  background: #f4f7fc;
  transition: all .16s;
}
.chip:hover { color: var(--blue-700); background: #e9f0ff; }
.chip.is-active {
  color: #fff;
  background: var(--blue-600);
  font-weight: 600;
  box-shadow: 0 4px 10px rgba(37, 99, 235, .25);
}
.filter-collapse {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0 auto;
  padding: 6px 12px;
  font-size: 12.5px;
  color: var(--ink-400);
}
.filter-collapse svg { width: 15px; height: 15px; transition: transform .2s; }
.filter-collapse.is-open svg { transform: rotate(180deg); }

.result-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.result-count { font-size: 13px; color: var(--ink-500); }
.result-count b { color: var(--blue-700); }
.result-sort { display: flex; gap: 4px; }
.sort-btn {
  padding: 5px 12px;
  border-radius: 8px;
  font-size: 12.5px;
  color: var(--ink-500);
  transition: all .16s;
}
.sort-btn:hover { color: var(--blue-600); }
.sort-btn.is-active { color: var(--blue-700); font-weight: 600; background: #e9f0ff; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

/* ---------- 资料卡片 ---------- */
.doc-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s;
  animation: cardIn .4s var(--ease) both;
}
.doc-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: #d7e3fa; }
@keyframes cardIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.doc-top { display: flex; gap: 12px; }
.doc-cover {
  position: relative;
  flex-shrink: 0;
  width: 66px; height: 84px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  border-radius: 10px;
  color: #fff;
  overflow: hidden;
  box-shadow: 0 6px 14px rgba(15, 23, 42, .12);
}
.doc-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 0%, rgba(255, 255, 255, .35), transparent 55%);
}
.doc-cover .cover-subject { font-size: 18px; font-weight: 800; line-height: 1.2; }
.doc-cover .cover-form { margin-top: 2px; font-size: 9px; letter-spacing: .5px; opacity: .85; }
.cover-blue { background: linear-gradient(140deg, #60a5fa, #2563eb); }
.cover-mint { background: linear-gradient(140deg, #5eead4, #0d9488); }
.cover-amber { background: linear-gradient(140deg, #fcd34d, #d97706); }
.cover-violet { background: linear-gradient(140deg, #c4b5fd, #7c3aed); }
.cover-rose { background: linear-gradient(140deg, #fda4af, #e11d48); }
.cover-slate { background: linear-gradient(140deg, #94a3b8, #334155); }

.doc-main { flex: 1; min-width: 0; }
.doc-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--ink-900);
  cursor: pointer;
  transition: color .16s;
}
.doc-title:hover { color: var(--blue-700); text-decoration: underline; text-underline-offset: 3px; }
.doc-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.doc-tag {
  padding: 1px 7px;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 500;
  color: #1d4ed8;
  background: #eef4ff;
}
.doc-tag.green { color: #0f766e; background: #e6faf5; }
.doc-tag.amber { color: #b45309; background: #fef4e2; }
.doc-meta { display: flex; flex-wrap: wrap; gap: 3px 12px; margin-top: 10px; font-size: 11.5px; color: var(--ink-400); }
.doc-meta span { display: inline-flex; align-items: center; gap: 3px; }
.doc-meta svg { width: 13px; height: 13px; }

.doc-dl { display: flex; align-items: baseline; gap: 4px; font-size: 11.5px; color: var(--ink-400); }
.doc-dl b { font-size: 15px; color: var(--ink-900); }
.doc-dl b small { font-size: 10px; font-weight: 500; color: var(--ink-400); margin-left: 1px; }
.doc-btn {
  display: inline-flex; align-items: center; gap: 5px;
  height: 32px; padding: 0 14px;
  border-radius: 999px;
  font-size: 12.5px; font-weight: 600;
  color: var(--blue-700);
  background: #eef4ff;
  transition: all .18s;
}
.doc-btn svg { width: 14px; height: 14px; }
.doc-btn:hover { color: #fff; background: var(--blue-600); box-shadow: 0 6px 14px rgba(37, 99, 235, .28); }

.fav-toggle {
  position: absolute;
  top: 12px; right: 12px;
  width: 26px; height: 26px;
  display: grid; place-items: center;
  border-radius: 50%;
  color: var(--ink-400);
  background: #fff;
  box-shadow: var(--shadow-sm);
  opacity: 0;
  transition: opacity .2s, color .2s, transform .2s;
}
.fav-toggle svg { width: 14px; height: 14px; }
.fav-toggle:hover { color: var(--amber); transform: scale(1.1); }
.fav-toggle.is-fav { color: var(--amber); opacity: 1; }
.doc-card:hover .fav-toggle { opacity: 1; }
@media (hover: none) {
  .fav-toggle { opacity: 1; }
}

.empty-state { padding: 70px 20px; text-align: center; }
.empty-ico {
  width: 64px; height: 64px;
  display: grid; place-items: center;
  margin: 0 auto 16px;
  border-radius: 50%;
  color: var(--ink-400);
  background: #eaf0fa;
}
.empty-ico svg { width: 30px; height: 30px; }
.empty-state h3 { font-size: 17px; color: var(--ink-900); }
.empty-state p { margin: 6px 0 20px; font-size: 13.5px; color: var(--ink-500); }

.load-more {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  height: 46px;
  margin-top: 20px;
  border-radius: 12px;
  font-size: 14px;
  color: var(--ink-500);
  background: #fff;
  border: 1px solid var(--line);
  transition: all .18s;
}
.load-more svg { width: 16px; height: 16px; }
.load-more:hover { color: var(--blue-600); border-color: var(--blue-100); background: #f7faff; }

/* =========================================================
   侧栏
   ========================================================= */
.sidebar { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 92px; }
.side-card {
  padding: 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.side-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.side-head h3 { font-size: 15px; font-weight: 700; color: var(--ink-900); }
.side-tag {
  padding: 1px 8px;
  border-radius: 5px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .5px;
  color: var(--blue-700);
  background: #eef4ff;
}
.rank-list { display: flex; flex-direction: column; gap: 2px; }
.rank-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 8px;
  border-radius: 8px;
  cursor: pointer;
  transition: background .16s;
}
.rank-item:hover { background: #f6f9ff; }
.rank-no {
  flex-shrink: 0;
  width: 20px; height: 20px;
  display: grid; place-items: center;
  border-radius: 6px;
  font-size: 11px; font-weight: 700;
  color: var(--ink-400);
  background: #f1f5f9;
}
.rank-item:nth-child(1) .rank-no { color: #fff; background: linear-gradient(135deg, #fb923c, #ea580c); }
.rank-item:nth-child(2) .rank-no { color: #fff; background: linear-gradient(135deg, #a3a3a3, #6b7280); }
.rank-item:nth-child(3) .rank-no { color: #fff; background: linear-gradient(135deg, #fbbf24, #b45309); }
.rank-tit {
  flex: 1; min-width: 0;
  font-size: 12.5px; line-height: 1.4;
  color: var(--ink-700);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.rank-hot { flex-shrink: 0; font-size: 11px; color: var(--ink-400); }

.side-link {
  display: flex; align-items: center; justify-content: center; gap: 2px;
  margin-top: 12px; padding-top: 12px;
  border-top: 1px solid #f0f4fa;
  font-size: 12.5px; color: var(--ink-400);
}
.side-link svg { width: 14px; height: 14px; }
.side-link:hover { color: var(--blue-600); }

.upload-card {
  color: #fff;
  background: linear-gradient(150deg, #2563eb, #1e3a8a 65%, #172554);
  border: 0;
  overflow: hidden;
  position: relative;
}
.upload-card::after {
  content: "";
  position: absolute;
  right: -36px; bottom: -46px;
  width: 150px; height: 150px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .12);
}
.upload-ico {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  margin-bottom: 14px;
  border-radius: 12px;
  color: #fff;
  background: rgba(255, 255, 255, .16);
}
.upload-ico svg { width: 22px; height: 22px; }
.upload-card h3 { font-size: 16px; }
.upload-card p { margin: 6px 0 16px; font-size: 12.5px; line-height: 1.7; color: rgba(255, 255, 255, .72); }
.upload-card .btn { position: relative; z-index: 1; height: 38px; font-size: 13px; }

.news-list { display: flex; flex-direction: column; gap: 10px; }
.news-list li {
  display: flex; align-items: flex-start; gap: 8px;
  font-size: 12.5px; line-height: 1.55;
  color: var(--ink-600);
}
.news-dot { flex-shrink: 0; width: 5px; height: 5px; margin-top: 7px; border-radius: 50%; background: #93b4f7; }

/* =========================================================
   热门专题
   ========================================================= */
.topic-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.topic-card {
  position: relative;
  display: flex;
  align-items: stretch;
  min-height: 156px;
  padding: 24px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  color: #fff;
  transition: transform .22s var(--ease), box-shadow .22s var(--ease);
}
.topic-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.topic-a { background: linear-gradient(125deg, #3b82f6, #1e40af); }
.topic-b { background: linear-gradient(125deg, #14b8a6, #0f766e); }
.topic-c { background: linear-gradient(125deg, #8b5cf6, #4c1d95); }
.topic-d { background: linear-gradient(125deg, #f59e0b, #b45309); }

.topic-body { position: relative; z-index: 1; display: flex; flex-direction: column; flex: 1; }
.topic-badge {
  align-self: flex-start;
  padding: 2px 9px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  background: rgba(255, 255, 255, .2);
  border: 1px solid rgba(255, 255, 255, .25);
}
.topic-body h3 { margin: 12px 0 6px; font-size: 19px; font-weight: 700; letter-spacing: -.3px; }
.topic-body p { font-size: 12.5px; line-height: 1.6; color: rgba(255, 255, 255, .78); }
.topic-foot { margin-top: auto; padding-top: 14px; font-size: 11.5px; color: rgba(255, 255, 255, .7); }
.topic-art {
  position: absolute;
  right: 10px; bottom: 4px;
  display: flex; align-items: flex-end;
  color: rgba(255, 255, 255, .2);
  pointer-events: none;
}
.topic-art svg { width: 130px; height: 130px; stroke-width: 2.2; }
.art-num { font-size: 88px; font-weight: 900; line-height: .8; letter-spacing: -6px; }
.art-unit { font-size: 30px; font-weight: 800; margin-bottom: 10px; }
.art-formula { font-size: 96px; line-height: .8; font-weight: 700; font-family: Georgia, serif; }
.art-formula.small { font-size: 54px; margin-left: -14px; margin-bottom: 26px; }

.benefit-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
  padding: 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.benefit { display: flex; align-items: flex-start; gap: 10px; }
.b-ico {
  flex-shrink: 0;
  width: 26px; height: 26px;
  display: grid; place-items: center;
  border-radius: 8px;
  font-size: 13px; font-weight: 700;
  color: #0f766e;
  background: #e6faf5;
}
.benefit strong { display: block; font-size: 13.5px; color: var(--ink-900); line-height: 1.4; }
.benefit small { display: block; margin-top: 3px; font-size: 11.5px; color: var(--ink-400); line-height: 1.5; }

/* =========================================================
   页脚
   ========================================================= */
.site-footer { margin-top: 8px; background: #0b1526; color: rgba(255, 255, 255, .62); }
.footer-inner {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 40px;
  padding-top: 56px;
  padding-bottom: 44px;
}
.footer-brand .brand-text strong { color: #fff; }
.footer-brand .brand-text small { color: rgba(255, 255, 255, .45); }
.footer-brand p { margin-top: 16px; max-width: 300px; font-size: 12.5px; line-height: 1.75; }
.footer-social { display: flex; gap: 8px; margin-top: 18px; }
.footer-social a {
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  color: rgba(255, 255, 255, .7);
  background: rgba(255, 255, 255, .08);
  transition: background .18s, color .18s;
}
.footer-social a:hover { color: #fff; background: rgba(255, 255, 255, .16); }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links h4 { margin-bottom: 4px; font-size: 13.5px; color: #fff; }
.footer-links a { font-size: 12.5px; color: rgba(255, 255, 255, .55); transition: color .18s; }
.footer-links a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); }
.footer-bottom .container {
  display: flex; flex-wrap: wrap; gap: 8px;
  align-items: center; justify-content: space-between;
  padding-top: 18px; padding-bottom: 18px;
  font-size: 11.5px;
  color: rgba(255, 255, 255, .4);
}

/* =========================================================
   移动端底部导航
   ========================================================= */
.tabbar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 60;
  display: none;
  align-items: flex-end;
  justify-content: space-around;
  height: calc(58px + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--line);
}
.tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  flex: 1;
  height: 58px;
  font-size: 10.5px;
  color: var(--ink-400);
  transition: color .18s;
}
.tab svg { width: 21px; height: 21px; }
.tab.is-active { color: var(--blue-600); font-weight: 600; }

/* =========================================================
   资料详情弹窗
   ========================================================= */
.modal-mask {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(11, 21, 38, .5);
  backdrop-filter: blur(4px);
  animation: fadeIn .2s var(--ease);
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.modal {
  position: relative;
  width: 100%;
  max-width: 560px;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  background: #fff;
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
  animation: modalIn .28s var(--ease);
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(16px) scale(.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.modal-close {
  position: absolute;
  top: 14px; right: 14px;
  z-index: 2;
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 50%;
  color: var(--ink-600);
  background: rgba(255, 255, 255, .9);
  box-shadow: var(--shadow-sm);
  transition: transform .18s;
}
.modal-close svg { width: 17px; height: 17px; }
.modal-close:hover { transform: rotate(90deg); }

.modal-hero {
  position: relative;
  height: 132px;
  display: flex;
  align-items: flex-end;
  padding: 20px 24px;
  background: linear-gradient(130deg, #3b82f6, #1e40af 70%);
}
.modal-hero::after {
  content: "";
  position: absolute;
  right: -40px; top: -70px;
  width: 210px; height: 210px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .13);
}
.modal-hero-inner { position: relative; z-index: 1; width: 100%; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.doc-format {
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 11.5px; font-weight: 700; letter-spacing: .5px;
  color: #fff;
  background: rgba(255, 255, 255, .2);
  border: 1px solid rgba(255, 255, 255, .3);
}
.modal-hero-meta { display: flex; flex-wrap: wrap; gap: 8px; color: rgba(255, 255, 255, .82); font-size: 12px; }

.modal-body { padding: 22px 24px 24px; }
.modal-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.modal-tags span {
  padding: 2px 9px;
  border-radius: 6px;
  font-size: 11.5px;
  color: #1d4ed8;
  background: #eef4ff;
}
.modal-title { font-size: 21px; line-height: 1.45; font-weight: 700; color: var(--ink-900); letter-spacing: -.3px; }
.modal-sub { margin-top: 6px; font-size: 13px; color: var(--ink-500); }

.modal-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 18px 0;
  padding: 14px 0;
  border-top: 1px solid #f0f4fa;
  border-bottom: 1px solid #f0f4fa;
}
.modal-stats > div { text-align: center; }
.modal-stats b { display: block; font-size: 17px; color: var(--ink-900); letter-spacing: -.3px; }
.modal-stats span { font-size: 11.5px; color: var(--ink-400); }

.modal-desc { font-size: 13px; line-height: 1.8; color: var(--ink-600); }
.modal-actions { display: flex; gap: 10px; margin-top: 20px; }
.modal-actions .btn { flex: 1; }
.modal-note { margin-top: 14px; font-size: 11px; line-height: 1.6; color: var(--ink-400); text-align: center; }

/* =========================================================
   Toast
   ========================================================= */
.toast {
  position: fixed;
  left: 50%; bottom: 40px;
  z-index: 200;
  max-width: 86vw;
  padding: 11px 20px;
  border-radius: 12px;
  font-size: 13.5px;
  color: #fff;
  background: rgba(11, 21, 38, .92);
  box-shadow: var(--shadow-lg);
  transform: translate(-50%, 20px);
  opacity: 0;
  pointer-events: none;
  transition: all .28s var(--ease);
  text-align: center;
}
.toast.is-show { opacity: 1; transform: translate(-50%, 0); }

/* =========================================================
   响应式
   ========================================================= */
@media (max-width: 1080px) {
  .hero-inner { gap: 32px; }
  .listing-layout { grid-template-columns: minmax(0, 1fr) 288px; gap: 20px; }
}

@media (max-width: 900px) {
  .main-nav { display: none; }
  .icon-btn.search-toggle, .icon-btn.menu-toggle { display: flex; }
  .header-inner { gap: 12px; justify-content: space-between; }
  .header-actions { margin-left: auto; }
  .hero { padding: 44px 0 52px; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-panel { display: none; }
  .section { padding: 48px 0; }
  .listing-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .upload-card { grid-column: span 2; }
  .topic-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .benefit-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 28px; }
  .tabbar { display: flex; }
  .site-footer { padding-bottom: calc(58px + env(safe-area-inset-bottom)); }
  .toast { bottom: calc(76px + env(safe-area-inset-bottom)); }
}

@media (max-width: 720px) {
  .container { padding: 0 16px; }
  .header-inner { padding: 0 16px; height: 62px; }
  .brand-text small { display: none; }
  .brand-mark { width: 34px; height: 34px; font-size: 17px; border-radius: 10px; }
  .brand-text strong { font-size: 15.5px; }
  .hero { padding: 32px 0 40px; }
  .hero-title { margin: 14px 0 12px; letter-spacing: -.4px; }
  .hero-sub { font-size: 14px; }
  .hero-search {
    margin-top: 20px;
    height: 52px;
    padding: 4px 4px 4px 14px;
  }
  .hero-search .btn { height: 44px; padding: 0 16px; }
  .hide-sm { display: none !important; }
  .hero-search .btn span { display: none; }
  .stage-grid { grid-template-columns: 1fr; gap: 12px; }
  .stage-card { padding: 18px 18px; align-items: center; }
  .stage-icon { width: 44px; height: 44px; border-radius: 12px; }
  .stage-icon svg { width: 22px; height: 22px; }
  .stage-info strong { font-size: 14px; }
  .card-grid { grid-template-columns: 1fr; }
  .filter-panel { padding: 14px 14px 6px; }
  .filter-row { gap: 10px; }
  .filter-label { width: 34px; font-size: 12px; }
  .chip { padding: 4px 10px; font-size: 12px; }
  .section-head { margin-bottom: 18px; }
  .section-head .link-more { display: none; }
  .section-title { font-size: 21px; }
  .section-desc { font-size: 12.5px; }
  .sidebar { grid-template-columns: 1fr; }
  .upload-card { grid-column: auto; }
  .news-card { display: none; }
  .topic-grid { grid-template-columns: 1fr; gap: 14px; }
  .topic-card { min-height: 140px; padding: 20px; }
  .topic-body h3 { font-size: 17px; }
  .benefit-strip { grid-template-columns: 1fr; gap: 14px; padding: 16px; }
  .benefit small { display: none; }
  .footer-inner { grid-template-columns: 1fr; gap: 22px; padding-top: 36px; padding-bottom: 30px; }
  .footer-links { display: none; }
  .footer-brand p { max-width: none; }
  .modal-mask { padding: 0; align-items: flex-end; }
  .modal { max-width: 100%; max-height: 88vh; border-radius: 22px 22px 0 0; }
  .modal-hero { height: 112px; }
  .modal-body { padding: 18px 18px 20px; }
  .modal-title { font-size: 18px; }
  .modal-stats b { font-size: 15px; }
  .modal-actions { position: sticky; bottom: -20px; margin: 18px -18px -20px; padding: 12px 18px calc(16px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line); }
  .toast { bottom: calc(76px + env(safe-area-inset-bottom)); }
}

@media (max-width: 380px) {
  .hero-search .btn { padding: 0 12px; }
}

/* =========================================================
   辅助状态
   ========================================================= */
[hidden] { display: none !important; }

.filter-panel.is-collapsed .filter-row:not(:first-child) { display: none; }

@media (max-width: 900px) {
  .main-nav.is-open {
    display: flex;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 10px 16px 16px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 30px rgba(15, 23, 42, .08);
  }
  .main-nav.is-open .nav-link { padding: 12px 10px; font-size: 15px; border-radius: 10px; }
  .main-nav.is-open .nav-link.is-active::after { display: none; }
  .main-nav.is-open .nav-link.is-active { background: var(--blue-50); }
}

/* =========================================================
   精简版：单列 Hero、首页资料网格、简洁页脚
   ========================================================= */
.hero-simple .hero-inner { grid-template-columns: minmax(0, 1fr); }
.hero-simple .hero-copy { max-width: 760px; margin: 0 auto; text-align: center; }
.hero-simple .hero-search { margin-left: auto; margin-right: auto; }
.hero-simple .hero-hot { justify-content: center; }
.hero-simple { padding: 56px 0 48px; }

.home-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1080px) {
  .home-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .home-grid { grid-template-columns: minmax(0, 1fr); }
}

.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding-top: 34px;
  padding-bottom: 30px;
}
.footer-row .brand-text strong { color: #fff; }
.footer-row .brand-text small { color: rgba(255, 255, 255, .45); }
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  font-size: 13px;
  color: rgba(255, 255, 255, .6);
}
.footer-nav a { transition: color .18s; }
.footer-nav a:hover { color: #fff; }

@media (max-width: 720px) {
  .hero-simple { padding: 34px 0 38px; }
  .footer-row { padding-top: 26px; padding-bottom: 24px; }
  .footer-nav { gap: 8px 16px; font-size: 12.5px; }
}


