@charset "UTF-8";
/* ==========================================================================
   幼教网 · 自适应模板样式
   思路：移动优先（默认样式服务手机），逐级用 min-width 媒体查询增强到大屏。
   断点：600px 双列 / 768px 大屏平板 / 900px 桌面导航 / 1024px 侧边栏 / 1100px 三列
   ========================================================================== */

/* ---------- 1. 设计变量 ---------- */
:root {
  --brand: #f97316;  /* 品牌橙 */
  --brand-strong: #c2410c;
  --brand-soft: #fff2e6;
  --accent: #ff8a3d;

  --ink: #16212b;
  --ink-2: #4a5a67;
  --ink-3: #8494a1;

  --line: #e6ecf1;
  --line-2: #eef3f6;
  --bg: #f5f7f9;
  --card: #fff;

  --r-lg: 18px;
  --r-md: 14px;
  --r-sm: 10px;

  --shadow-1: 0 1px 2px rgba(16, 36, 50, .04), 0 6px 18px -10px rgba(16, 36, 50, .16);
  --shadow-2: 0 12px 32px -16px rgba(16, 36, 50, .28);

  --header-h: 56px;
  --wrap: 1240px;

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
          "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

@media (min-width: 900px) {
  :root { --header-h: 64px; }
}

/* ---------- 2. 基础重置 ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}

body.is-drawer-open { overflow: hidden; }

h1, h2, h3, h4, p, figure, blockquote { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, svg, video { display: block; max-width: 100%; }
img { height: auto; border-style: none; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
table { border-collapse: collapse; width: 100%; }
time { font-variant-numeric: tabular-nums; }

/* 用 hidden 属性控制显隐时，始终优先级最高（避免被 display:grid 覆盖） */
[hidden] { display: none !important; }

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
  border-radius: 6px;
}

.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.ico {
  display: inline-block;
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: middle;
}
.ico-14 { width: 14px; height: 14px; }
.ico-12 { width: 12px; height: 12px; }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- 3. 通用容器 / 按钮 ---------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 8px 18px -12px rgba(249, 115, 22, .95);
  transition: background .18s ease, transform .18s ease, box-shadow .18s ease;
}
.btn:hover { background: var(--brand-strong); transform: translateY(-1px); }
.btn:active { transform: none; }

.btn--ghost {
  background: #fff;
  color: var(--brand-strong);
  border: 1px solid #f7d5b3;
  box-shadow: none;
}
.btn--ghost:hover { background: #fff8f2; color: var(--brand-strong); }

/* ---------- 4. 顶部导航 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .94);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .2s ease, border-color .2s ease;
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 8px 24px -20px rgba(16, 36, 50, .55);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 9px;
  flex: 0 0 auto;
  margin-right: auto;
  min-width: 0;
}
.logo-badge {
  display: grid;
  place-items: center;
  flex: none;
  width: 34px;
  height: 34px;
}
.logo-badge img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.drawer-head .logo-badge { width: 30px; height: 30px; }
.logo-text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.logo-name {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 2px;
  white-space: nowrap;
}
.logo-sub {
  font-size: 9.5px;
  letter-spacing: 1.6px;
  color: var(--ink-3);
  font-weight: 600;
}
/* 横版整图 logo（图标+中文字+域名一体） */
.logo-img {
  display: block;
  width: auto;
  height: 40px;
  max-width: 100%;
}
.drawer-head .logo-img { height: 34px; }
@media (min-width: 900px) {
  .logo-img { height: 44px; }
}

.hnav { display: none; }

.hnav a,
.hnav-more {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 8px 11px;
  border-radius: 9px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink-2);
  white-space: nowrap;
  transition: color .16s ease, background .16s ease;
}
.hnav a:hover,
.hnav-more:hover { color: var(--brand-strong); background: var(--brand-soft); }
.hnav a[aria-current="page"] { color: var(--brand-strong); background: var(--brand-soft); font-weight: 700; }

.dropdown { position: relative; }
.dropdown-panel {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 190px;
  display: grid;
  gap: 2px;
  padding: 6px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-2);
  z-index: 30;
}
.dropdown-panel[hidden] { display: none; }
.dropdown-panel a { padding: 9px 12px; border-radius: 9px; font-size: 14px; }

.hsearch { display: none; position: relative; }

.icon-btn {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink-2);
  transition: color .16s ease, border-color .16s ease, background .16s ease;
}
.icon-btn:hover { color: var(--brand-strong); border-color: #f7d5b3; background: #fffaf5; }

@media (min-width: 900px) {
  .inner { gap: 14px; padding: 0 24px; }
  .hnav { display: flex; align-items: center; gap: 2px; }
  .hsearch { display: block; margin-left: 6px; }
  .hsearch input {
    width: 200px;
    height: 38px;
    padding: 0 40px 0 15px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #f4f7f9;
    font-size: 13.5px;
    transition: width .22s ease, background .18s ease, border-color .18s ease;
  }
  .hsearch input::placeholder { color: #9aa8b3; }
  .hsearch input:focus {
    width: 248px;
    background: #fff;
    border-color: #fbbf8e;
    outline: none;
    box-shadow: 0 0 0 4px rgba(249, 115, 22, .1);
  }
  .hsearch button {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: var(--ink-3);
  }
  .hsearch button:hover { color: var(--brand-strong); background: var(--brand-soft); }
  .icon-btn--search,
  .icon-btn--menu { display: none; }
}

@media (min-width: 900px) and (max-width: 1040px) {
  .hnav a,
  .hnav-more { padding: 8px 7px; font-size: 13.5px; }
  .member-link { height: 36px; padding: 0 11px; font-size: 13px; }
  .hsearch input { width: 150px; }
  .hsearch input:focus { width: 186px; }
}

/* ---------- 5. 移动端抽屉导航 ---------- */
.drawer-overlay {
  position: fixed;
  inset: 0;
  z-index: 65;
  display: block;
  background: rgba(12, 26, 36, .46);
  opacity: 0;
  visibility: hidden;
  transition: opacity .26s ease, visibility .26s ease;
}
.drawer-overlay[hidden] { display: block !important; }
body.is-drawer-open .drawer-overlay { opacity: 1; visibility: visible; }

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 70;
  width: min(86vw, 340px);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: #fff;
  border-radius: 18px 0 0 18px;
  box-shadow: -16px 0 40px -24px rgba(12, 26, 36, .5);
  transform: translateX(102%);
  visibility: hidden;
  transition: transform .3s cubic-bezier(.22, .8, .3, 1), visibility .3s;
  padding: 0 14px calc(18px + env(safe-area-inset-bottom));
}
body.is-drawer-open .drawer { transform: translateX(0); visibility: visible; }

.drawer-head {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 0 10px;
  background: #fff;
  border-bottom: 1px solid var(--line-2);
}
.drawer-head .logo { margin-right: 0; }

.drawer-search {
  display: flex;
  gap: 8px;
  margin: 12px 0 6px;
  padding: 4px 4px 4px 14px;
  background: #f4f7f9;
  border: 1px solid var(--line);
  border-radius: 999px;
}
.drawer-search input {
  flex: 1;
  min-width: 0;
  height: 36px;
  border: 0;
  background: none;
  font-size: 14px;
  outline: none;
}
.drawer-search button {
  height: 34px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-size: 13.5px;
  font-weight: 600;
}

.drawer-nav { display: flex; flex-direction: column; }

.drawer-link {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 48px;
  padding: 10px 2px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  text-align: left;
  border-bottom: 1px solid var(--line-2);
}
.drawer-link:hover { color: var(--brand-strong); }
.drawer-link.is-home { color: var(--brand-strong); font-weight: 700; }
.drawer-link .chev { margin-left: auto; color: var(--ink-3); transition: transform .2s ease; }
.drawer-link[aria-expanded="true"] .chev { transform: rotate(180deg); }
.drawer-link[aria-expanded="true"] { color: var(--brand-strong); }

.drawer-i {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  border-radius: 9px;
  color: #fff;
  background: var(--brand);
}
.tint-1 { background: #ff8a3d; }
.tint-2 { background: #3d7cf5; }
.tint-3 { background: #2f9e6a; }
.tint-4 { background: #8a5cf6; }
.tint-5 { background: #e0a721; }

.drawer-sub {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 10px 0 12px;
  border-bottom: 1px solid var(--line-2);
}
.drawer-sub[hidden] { display: none; }
.drawer-sub a {
  padding: 9px 10px;
  border-radius: 9px;
  background: #f5f8fa;
  font-size: 13px;
  color: var(--ink-2);
}
.drawer-sub a:hover { background: var(--brand-soft); color: var(--brand-strong); }


@media (min-width: 900px) {
  .drawer, .drawer-overlay { display: none; }
}

/* ---------- 6. 首屏 ---------- */
.hero {
  position: relative;
  margin: 12px 0 18px;
  padding: 22px 18px 20px;
  border: 1px solid #e8eef3;
  border-radius: 20px;
  overflow: hidden;
  background:
    radial-gradient(120% 130% at 100% 0, #fff1e4 0%, rgba(255, 241, 228, 0) 60%),
    radial-gradient(110% 120% at 0% 100%, #eef3fe 0%, rgba(238, 243, 254, 0) 55%),
    #fbfdfe;
}
.hero-inner { display: grid; gap: 18px; }

.hero-eyebrow {
  display: inline-block;
  margin-bottom: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #fbe8d6;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .4px;
  color: var(--brand-strong);
}

.hero #hero-title {
  font-size: 23px;
  line-height: 1.35;
  font-weight: 800;
  letter-spacing: -.2px;
}
.hero #hero-title em {
  font-style: normal;
  background: linear-gradient(transparent 62%, #ffd9b8 62%);
  color: var(--brand-strong);
  white-space: nowrap;
}
.hero-desc {
  margin-top: 9px;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--ink-2);
  max-width: 46em;
}

.hero-search {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 15px;
  padding: 4px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: var(--shadow-1);
}
.hero-search input {
  flex: 1;
  min-width: 0;
  height: 40px;
  padding: 0 12px;
  border: 0;
  background: none;
  font-size: 14px;
  outline: none;
}
.hero-search input::placeholder { color: #9aa8b3; }
.hero-search .btn { height: 40px; padding: 0 16px; font-size: 13.5px; }
.hero-search:focus-within {
  border-color: #fbbf8e;
  box-shadow: 0 0 0 4px rgba(249, 115, 22, .1);
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 16px;
  font-size: 12px;
  color: var(--ink-3);
}
.hero-stats li { display: flex; align-items: baseline; gap: 5px; }
.hero-stats strong { font-size: 15px; color: var(--ink); font-weight: 800; }

.quick {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.quick a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  padding: 12px 6px 11px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(255, 255, 255, .8);
  box-shadow: 0 6px 18px -16px rgba(16, 36, 50, .6);
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-2);
  transition: transform .18s ease, box-shadow .18s ease, color .18s ease;
}
.quick a:hover {
  transform: translateY(-2px);
  color: var(--ink);
  box-shadow: 0 12px 24px -18px rgba(16, 36, 50, .7);
}
.quick i {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  color: #fff;
  background: var(--qc, var(--brand));
  box-shadow: 0 8px 14px -10px var(--qc, var(--brand));
}

@media (min-width: 520px) {
  .quick { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

@media (min-width: 900px) {
  .hero { margin: 24px 0 28px; padding: 30px 34px 28px; border-radius: 22px; }
  .hero #hero-title { font-size: 29px; letter-spacing: -.5px; }
  .hero-desc { font-size: 14.5px; }
  .hero-search { max-width: 460px; }
  .quick { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
  .quick a { padding: 13px 8px; font-size: 12.5px; }
  .quick i { width: 38px; height: 38px; border-radius: 12px; }
}

/* 只有在大屏（1024 起）才让首屏并排，避免 900 附近文字被挤成窄条 */
@media (min-width: 1024px) {
  .hero { padding: 34px 34px 32px; border-radius: 24px; }
  .hero-inner {
    grid-template-columns: minmax(0, 1fr) 430px;
    align-items: center;
    gap: 34px;
  }
  .hero #hero-title { font-size: 33px; letter-spacing: -.6px; }
  .quick { max-width: none; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .quick a { padding: 14px 8px; }
}

/* ---------- 7. 双栏布局 ---------- */
.layout { display: block; }

@media (min-width: 1024px) {
  .layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 316px;
    gap: 26px;
    align-items: start;
  }
}

/* ---------- 8. 板块标题 ---------- */
.sec { margin-bottom: 20px; }
.sec:last-child { margin-bottom: 8px; }

.sec-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 2px 11px;
}
.sec-title {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: .2px;
  line-height: 1.4;
}
.sec-title::before {
  content: "";
  width: 4px;
  height: 17px;
  border-radius: 99px;
  background: var(--c, var(--brand));
}
.sec-more {
  display: inline-flex;
  align-items: center;
  gap: 1px;
  padding: 5px 2px;
  font-size: 12.5px;
  color: var(--ink-3);
  transition: color .16s ease;
}
.sec-more:hover { color: var(--brand-strong); }

@media (min-width: 900px) {
  .sec { margin-bottom: 26px; }
  .sec-title { font-size: 19.5px; }
  .sec-title::before { width: 5px; height: 19px; }
  .sec-more { font-size: 13px; }
}

/* ---------- 9. 图文卡片 ---------- */
.grid-cards { display: grid; gap: 10px; }

.card {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 10px;
  padding: 9px;
  background: var(--card);
  border: 1px solid var(--line-2);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-1);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover {
  transform: translateY(-2px);
  border-color: #f7e6d5;
  box-shadow: var(--shadow-2);
}

.card-media {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--r-sm);
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, #eef4f8, #e2ecf3);
}
.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s cubic-bezier(.2, .7, .3, 1);
}
.card:hover .card-media img { transform: scale(1.045); }

/* 图片加载失败 / 无图时的占位 */
.card-media.is-broken,
.media-ph {
  display: grid;
  place-items: center;
  gap: 6px;
  color: #9fb3c2;
  background:
    radial-gradient(100% 100% at 20% 10%, #f2f8fc, #e4eef5);
}
@media (min-width: 600px) {
  .media-ph--noimg::after {
    content: "暂无配图";
    font-size: 11.5px;
    letter-spacing: .5px;
    opacity: .75;
  }
}
.media-ph--b1 { background: radial-gradient(100% 100% at 20% 10%, #fff2e8, #ffe3cd); color: #e79b5f; }
.media-ph--b2 { background: radial-gradient(100% 100% at 20% 10%, #eaf0ff, #d9e4ff); color: #7c9be0; }
.media-ph--b3 { background: radial-gradient(100% 100% at 20% 10%, #e8f8ef, #d3f0e1); color: #f59e6b; }
.media-ph--b4 { background: radial-gradient(100% 100% at 20% 10%, #f6ecff, #ecd9ff); color: #a97ce0; }
.media-ph--b5 { background: radial-gradient(100% 100% at 20% 10%, #fff0f4, #ffdde7); color: #e082a2; }

.card-body {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 6px;
  min-width: 0;
}
.card-title {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-title a { display: block; }
.card:hover .card-title { color: var(--brand-strong); }

.card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  font-size: 11.5px;
  color: var(--ink-3);
}
.tag {
  max-width: 62%;
  padding: 1px 8px;
  border-radius: 99px;
  background: #f1f6f9;
  color: #5f707d;
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.card-meta time { margin-left: auto; flex: 0 0 auto; }

@media (min-width: 600px) {
  .grid-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .card { grid-template-columns: minmax(0, 1fr); gap: 0; padding: 0; overflow: hidden; }
  .card-media { border-radius: 0; aspect-ratio: 16 / 10; }
  .card-body { padding: 11px 12px 13px; gap: 8px; }
  .card-title { font-size: 14.5px; }
}

@media (min-width: 1100px) {
  .grid-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .card-title { font-size: 14px; }
}

/* ---------- 10. 纯文字列表 ---------- */
.list {
  display: grid;
  padding: 2px 12px;
  background: var(--card);
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-1);
}
/* 行列分隔线用「上边框」而不是下边框：
   单列时首项不画，双列时首行两项都不画。
   这样条目数是奇数还是偶数，最后一行下面都不会多出一条横线。 */
.item { border-top: 1px solid var(--line-2); }
.item:first-child { border-top: 0; }

.item a {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 11px 0;
}
.dot {
  width: 5px;
  height: 5px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #cdd9e1;
  transition: background .16s ease, box-shadow .16s ease;
}
.item a:hover .dot { background: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }

.item-t {
  flex: 1;
  min-width: 0;
  font-size: 14px;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.item a:hover .item-t { color: var(--brand-strong); }
.item time { flex: 0 0 auto; font-size: 11.5px; color: var(--ink-3); }

@media (min-width: 768px) {
  .list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 26px;
  }
  /* 双列时首行两项都不画上边框 */
  .item:first-child { border-top: 1px solid var(--line-2); }
  .item:nth-child(-n + 2) { border-top: 0; }
  .item-t { font-size: 14.5px; }
}

/* ---------- 11. 侧边栏 ---------- */
.sidebar { display: none; }

@media (min-width: 1024px) {
  .sidebar {
    display: grid;
    gap: 16px;
    position: sticky;
    top: calc(var(--header-h) + 16px);
  }
}

.side-card {
  padding: 14px 14px 8px;
  background: var(--card);
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-1);
}
.side-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line-2);
  font-size: 15px;
  font-weight: 800;
}
.side-title::before {
  content: "";
  width: 3px;
  height: 15px;
  border-radius: 99px;
  background: var(--brand);
}

.rank a {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 8px 0;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ink-2);
}
.rank a:hover { color: var(--brand-strong); }
.rank a > span:last-child {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.rank-n {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  flex: 0 0 auto;
  border-radius: 6px;
  background: #f1f5f8;
  color: #8695a1;
  font-size: 11px;
  font-weight: 700;
}
.rank li:nth-child(1) .rank-n { background: #ff6b4a; color: #fff; }
.rank li:nth-child(2) .rank-n { background: #ff9142; color: #fff; }
.rank li:nth-child(3) .rank-n { background: #ffb020; color: #fff; }

.chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 0 8px;
}
.chip-grid a {
  padding: 6px 11px;
  border-radius: 99px;
  background: #f3f7f9;
  font-size: 12.5px;
  color: var(--ink-2);
  transition: background .16s ease, color .16s ease;
}
.chip-grid a:hover { background: var(--brand-soft); color: var(--brand-strong); }

.subscribe { padding-bottom: 14px; }
.qr {
  display: grid;
  place-items: center;
  width: 122px;
  height: 122px;
  margin: 12px auto 10px;
  border: 1px dashed #cfdae2;
  border-radius: 12px;
  background:
    repeating-linear-gradient(45deg, #f7fafc 0 6px, #f2f7fa 6px 12px);
  font-size: 12px;
  color: #9aa8b3;
}
.subscribe-tip {
  font-size: 12px;
  line-height: 1.7;
  color: var(--ink-3);
  text-align: center;
}

/* ---------- 12. 面包屑 / 栏目头 ---------- */
.crumb {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 12px 2px 10px;
  font-size: 12px;
  color: var(--ink-3);
  overflow: hidden;
  white-space: nowrap;
}
.crumb a { color: var(--ink-3); }
.crumb a:hover { color: var(--brand-strong); }
.crumb span { overflow: hidden; text-overflow: ellipsis; }
.crumb .ico { color: #b9c6d0; }

.page-head { padding: 2px 2px 15px; }
.page-title {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: .2px;
}
.page-desc-box {
  position: relative;
  margin-top: 6px;
}
.page-desc {
  margin-top: 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-2);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
.desc-more {
  position: absolute;
  right: 0;
  bottom: 0;
  padding: 0 2px 0 30px;
  border: 0;
  background: linear-gradient(to right, rgba(245, 247, 249, 0), var(--bg) 42%);
  color: var(--brand-strong);
  font-size: 13px;
  line-height: 1.7;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.desc-more:hover { text-decoration: underline; }
/* 「共找到 42 个…」里的数字高亮 */
.page-desc strong { color: var(--brand-strong); font-weight: 700; }
.desc-more .ico { transition: transform .2s ease; }
.desc-more[aria-expanded="true"] .ico { transform: rotate(180deg); }
.page-desc-box.is-open .page-desc {
  display: block;
  -webkit-line-clamp: unset;
  overflow: visible;
}
.page-desc-box.is-open .desc-more {
  position: static;
  display: inline-flex;
  margin-top: 6px;
  padding: 0;
  background: none;
}

@media (min-width: 900px) {
  .page-title { font-size: 26px; }
  .page-desc { font-size: 14px; }
}

.empty {
  padding: 28px 0;
  text-align: center;
  font-size: 13.5px;
  color: var(--ink-3);
}

/* ---------- 13. 分页 ---------- */
.pager {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin: 22px 0 6px;
}
.pager a,
.pager span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  font-size: 13.5px;
  color: var(--ink-2);
  transition: border-color .16s ease, color .16s ease, background .16s ease;
}
.pager a:hover { border-color: #f7d5b3; color: var(--brand-strong); }
.pager .is-current {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  font-weight: 700;
}
.pager .dots { border-color: transparent; background: none; color: var(--ink-3); }
.pager .is-disabled { color: #b6c2cb; background: #f7f9fb; }
.pager .cow { border-color: transparent; background: none; color: var(--ink-3); height: auto; min-width: 0; padding: 0 2px; align-self: center; }
.pager .current { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 700; }
.pager .current b { font-weight: 700; }

@media (max-width: 479px) {
  .pager a:nth-of-type(n+4):not(:last-of-type) { display: none; }
  .pager .dots { display: none; }
}

/* ---------- 14. 正文页 ---------- */
.progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 90;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, #fb923c, #5ac6ff);
  transition: width .1s linear;
}

.article {
  padding: 16px 14px 20px;
  background: var(--card);
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-1);
}
.article h1 {
  font-size: 21px;
  line-height: 1.42;
  font-weight: 800;
  letter-spacing: .1px;
}
.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--line);
  font-size: 12px;
  color: var(--ink-3);
}
.article-meta .tag {
  max-width: none;
  padding: 3px 10px;
  background: var(--brand-soft);
  color: var(--brand-strong);
  font-size: 12px;
  font-weight: 600;
}

.body {
  padding-top: 14px;
  font-size: 15.5px;
  line-height: 1.9;
  color: #24303a;
  overflow-wrap: break-word;
}
.body > * + * { margin-top: 14px; }
.body h2 {
  margin-top: 24px;
  padding-left: 11px;
  border-left: 4px solid var(--brand);
  font-size: 17px;
  line-height: 1.5;
  font-weight: 800;
  color: var(--ink);
}
.body h3 {
  margin-top: 20px;
  font-size: 15.5px;
  font-weight: 700;
  color: var(--ink);
}
.body p { margin: 0; }
.body ul { display: grid; gap: 4px; }
.body li { position: relative; padding-left: 17px; }
.body li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: .74em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ffb37a;
}
.body blockquote {
  margin: 16px 0;
  padding: 12px 14px;
  border-left: 3px solid var(--brand);
  border-radius: 0 12px 12px 0;
  background: #fff8f1;
  color: #3b4a55;
  font-size: 14.5px;
}
.body img { border-radius: 12px; width: 100%; }

.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.table-wrap table { min-width: 560px; font-size: 13.5px; }
.table-wrap th,
.table-wrap td {
  padding: 9px 12px;
  border-bottom: 1px solid var(--line-2);
  text-align: left;
  white-space: nowrap;
}
.table-wrap thead th { background: #f6fafc; font-size: 12.5px; color: var(--ink-2); font-weight: 700; }
.table-wrap tr:last-child td { border-bottom: 0; }

/* 手机上把表格转成“字段 + 值”的卡片，避免横向滚动 */
@media (max-width: 639px) {
  .table-wrap { overflow: visible; border: 0; }
  .table-wrap table,
  .table-wrap tbody,
  .table-wrap tr,
  .table-wrap td { display: block; width: 100%; }
  .table-wrap table { min-width: 0; }
  .table-wrap thead { display: none; }
  .table-wrap tr {
    margin-bottom: 8px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    overflow: hidden;
  }
  .table-wrap tr:last-child { margin-bottom: 0; }
  .table-wrap td {
    display: flex;
    gap: 12px;
    padding: 8px 12px;
    border-bottom: 1px solid var(--line-2);
    white-space: normal;
    font-size: 13.5px;
  }
  .table-wrap td:last-child { border-bottom: 0; }
  .table-wrap td::before {
    content: attr(data-label);
    flex: 0 0 72px;
    color: var(--ink-3);
    font-size: 12.5px;
  }
}

.download {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  padding: 14px;
  border: 1px dashed #fbc496;
  border-radius: 14px;
  background: #fff6ee;
}
.download-info { display: flex; flex-direction: column; gap: 3px; flex: 1 1 100%; }
.download-info strong { font-size: 14px; }
.download-info span { font-size: 12px; line-height: 1.6; color: var(--ink-3); }

.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid var(--line-2);
}
.article-tags a {
  padding: 5px 11px;
  border-radius: 99px;
  background: #f3f7f9;
  font-size: 12.5px;
  color: var(--ink-2);
}
.article-tags a:hover { background: var(--brand-soft); color: var(--brand-strong); }

/* 没有 tag 时不渲染空容器的横线与间距（模板已根治，此处为兜底） */
.article-tags:empty { display: none; }
.article-tags:not(:has(a)) { display: none; }

.prevnext {
  display: grid;
  gap: 8px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line-2);
}
.prevnext a {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  background: #f7fafb;
  font-size: 13.5px;
  color: var(--ink-2);
  line-height: 1.6;
}
.prevnext a:hover { background: var(--brand-soft); color: var(--brand-strong); }
.prevnext span { margin-right: 8px; font-size: 12px; color: var(--ink-3); }

.related { margin-top: 22px; }

@media (min-width: 900px) {
  .article { padding: 30px 34px 34px; border-radius: 20px; }
  .article h1 { font-size: 28px; }
  .body { font-size: 16px; }
  .body h2 { font-size: 19px; margin-top: 30px; }
  .body h3 { font-size: 16.5px; }
  .article-meta { gap: 14px; font-size: 12.5px; }
  .download-info { flex: 1 1 auto; }
  .prevnext { grid-template-columns: 1fr 1fr; gap: 12px; }
}

/* ---------- 15. 页脚（只保留版权条） ---------- */
.site-footer {
  margin-top: 26px;
  background: #10222d;
  color: #93a7b5;
}
.foot-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 14px;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 18px 16px calc(16px + env(safe-area-inset-bottom));
  font-size: 11.5px;
  color: #7b909f;
  text-align: center;
}

@media (min-width: 768px) {
  .foot-bottom { padding: 22px 24px; font-size: 12px; }
}

/* ---------- 16. 返回顶部 ---------- */
.to-top {
  position: fixed;
  right: 14px;
  bottom: calc(14px + env(safe-area-inset-bottom));
  z-index: 45;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: var(--ink-2);
  box-shadow: var(--shadow-2);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .22s ease, transform .22s ease, visibility .22s, color .16s ease;
}
.to-top.is-on { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { color: var(--brand-strong); border-color: #f7d5b3; }

@media (min-width: 900px) {
  .to-top { right: 24px; bottom: 24px; }
}

/* ---------- 17. 无障碍 / 偏好 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}


/* ==========================================================================
   以下为新增模块：会员入口 / MP3 播放器 / 会员中心 / 充值 / 记录 / 移动端底部导航
   ========================================================================== */

/* ---------- 18. 会员入口 ---------- */
.member-link { display: none; }
.icon-btn--member { display: grid; }

@media (min-width: 900px) {
  .member-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 38px;
    padding: 0 14px;
    flex: 0 0 auto;
    border: 1px solid #f6d9bd;
    border-radius: 999px;
    background: #fff8f2;
    color: var(--brand-strong);
    font-size: 13.5px;
    font-weight: 600;
    white-space: nowrap;
    transition: background .16s ease, border-color .16s ease;
  }
  .member-link .ico { color: var(--brand); }
  .member-link:hover { background: var(--brand-soft); border-color: #fbc496; }
  .icon-btn--member { display: none; }
}

/* 抽屉里的会员卡 */
.drawer-user {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 12px 0 4px;
  padding: 11px 12px;
  border: 1px solid #fbe8d6;
  border-radius: 14px;
  background: #fff2e7;
}
.drawer-user .du-av {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
}
.drawer-user .du-text { display: flex; flex-direction: column; min-width: 0; }
.drawer-user .du-name { font-size: 13.5px; font-weight: 700; color: var(--ink); }
.drawer-user .du-sub { margin-top: 2px; font-size: 11.5px; color: var(--ink-3); }
.drawer-user .chev { margin-left: auto; color: #e8b48c; }

/* ---------- 19. MP3 播放器（简洁版） ---------- */
.player {
  display: grid;
  gap: 16px;
  margin: 0 0 16px;
  padding: 16px;
  background: var(--card);
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-1);
}

.player-head { display: flex; align-items: center; gap: 12px; }
.player-cover {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  flex: 0 0 auto;
  border-radius: 14px;
  background: var(--brand-soft);
  color: var(--brand-strong);
}
.player-meta { min-width: 0; flex: 1; }
.player-kicker { font-size: 11.5px; letter-spacing: .3px; color: var(--ink-3); }
.player-artist { margin-top: 2px; font-size: 14.5px; font-weight: 700; color: var(--ink); }
.player-dl {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 34px;
  padding: 0 13px;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f7fafb;
  color: var(--ink-2);
  font-size: 12.5px;
  transition: border-color .16s ease, color .16s ease, background .16s ease;
}
.player-dl:hover { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-strong); }

.player-progress { display: flex; align-items: center; gap: 10px; }
.ptime {
  min-width: 40px;
  text-align: center;
  font-size: 11.5px;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}

.range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  border-radius: 99px;
  background-color: #eef3f6;
  background-image: linear-gradient(90deg, var(--brand), var(--brand));
  background-repeat: no-repeat;
  background-size: var(--p, 0%) 100%;
  outline: none;
  cursor: pointer;
}
.range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-soft);
}
.range::-moz-range-thumb {
  width: 13px;
  height: 13px;
  border: 0;
  border-radius: 50%;
  background: var(--brand);
}
.range:focus-visible { outline: 2px solid var(--brand); outline-offset: 6px; }

.player-controls { display: flex; align-items: center; gap: 14px; }
.pbtn {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--ink-2);
  transition: border-color .16s ease, color .16s ease, background .16s ease;
}
.pbtn:hover { border-color: var(--brand); color: var(--brand-strong); }
.pbtn[disabled] { opacity: .35; pointer-events: none; }
.pbtn--play {
  width: 46px;
  height: 46px;
  border: 0;
  background: var(--brand);
  color: #fff;
  box-shadow: 0 12px 22px -14px rgba(16, 36, 50, .55);
}
.pbtn--play:hover { background: var(--brand-strong); color: #fff; }
.pbtn--play .ico { width: 30px; height: 30px; }
.pbtn--play .ico-pause { display: none; }
.player.is-playing .pbtn--play .ico-play { display: none; }
.player.is-playing .pbtn--play .ico-pause { display: block; }
.pbtn--sm { width: 32px; height: 32px; border: 0; background: none; }

.player-vol { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.range--vol { width: 84px; }

@media (max-width: 480px) {
  .player-vol { display: none; }
}

/* 播放列表 */
.playlist {
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-1);
}
.pl-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line-2);
  text-align: left;
  color: var(--ink);
  transition: background .16s ease;
}
.playlist li:last-child .pl-item { border-bottom: 0; }
.pl-item:hover { background: #fffaf5; }
.pl-no { width: 22px; flex: 0 0 auto; font-size: 12px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.pl-text { flex: 1; min-width: 0; }
.pl-t { display: block; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-a { display: block; margin-top: 2px; font-size: 11.5px; color: var(--ink-3); }
.pl-state {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--brand);
}
.pl-item.is-active { background: var(--brand-soft); }
.pl-item.is-active .pl-t { color: var(--brand-strong); font-weight: 600; }
.pl-item.is-active .pl-no { color: var(--brand-strong); }
.pl-item.is-active .pl-state { background: var(--brand); border-color: var(--brand); color: #fff; }

/* 资源信息 */
.info-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.info-item { padding: 10px 12px; border: 1px solid var(--line-2); border-radius: 12px; background: #fbfdfe; }
.info-item span { display: block; font-size: 11px; color: var(--ink-3); }
.info-item b { display: block; margin-top: 2px; font-size: 14px; font-weight: 700; }
.info-grid--side { margin-bottom: 10px; }
.btn--block { width: 100%; }

.prose {
  padding: 16px;
  background: var(--card);
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-1);
  font-size: 14.5px;
  line-height: 1.85;
  color: #26323c;
}
.prose img {
  display: block;
  width: 100%;
  height: auto;
  margin: 4px 0 12px;
  border-radius: 8px;
}
.prose p + p { margin-top: 10px; }
.prose ul + p,
.prose p + ul { margin-top: 12px; }
.prose h3 { margin: 16px 0 6px; font-size: 15px; font-weight: 700; color: var(--ink); }
.prose ul { display: grid; gap: 6px; margin-top: 6px; }
.prose li { position: relative; padding-left: 16px; }
.prose li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: .72em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #ffb37a;
}

/* 播放器页里侧栏在手机上也显示 */
.sidebar--inline { display: grid; gap: 14px; margin-top: 18px; }
@media (min-width: 1024px) {
  .sidebar--inline { position: sticky; top: calc(var(--header-h) + 16px); margin-top: 0; }
}
@media (min-width: 900px) {
  .prose { padding: 22px 24px; font-size: 15px; }
}

/* ---------- 20. 会员中心 ---------- */
.account-layout { display: grid; gap: 14px; padding-top: 12px; }
.account-side { display: grid; gap: 14px; align-content: start; }
.account-main { min-width: 0; }
.account-narrow { max-width: 760px; margin: 0 auto; padding-top: 4px; }

@media (min-width: 960px) {
  .account-layout { grid-template-columns: 300px minmax(0, 1fr); gap: 24px; align-items: start; padding-top: 22px; }
  .account-side { position: sticky; top: calc(var(--header-h) + 16px); }
}

.profile {
  position: relative;
  overflow: hidden;
  padding: 18px;
  border-radius: 20px;
  color: #fff;
  background: linear-gradient(135deg, #f97316, #c2410c 58%, #7c2d12);
  box-shadow: 0 20px 36px -26px rgba(12, 107, 73, .95);
}
.profile::after {
  content: "";
  position: absolute;
  right: -40px;
  top: -56px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .1);
  pointer-events: none;
}
.profile-top { position: relative; z-index: 1; display: flex; align-items: center; gap: 12px; }
.avatar {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: rgba(255, 255, 255, .2);
  border: 1px solid rgba(255, 255, 255, .38);
}
.profile-id { min-width: 0; flex: 1; }
.profile-name {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: .3px;
}
.profile-uname { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profile-mobile { font-size: 12px; font-weight: 600; letter-spacing: 0; white-space: nowrap; color: rgba(255, 255, 255, .85); }
.profile-sub { margin-top: 3px; font-size: 12px; color: rgba(255, 255, 255, .8); }
.coin-row {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, .18);
}
.coin-num { font-size: 26px; font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; }
.coin-label { margin-top: 2px; font-size: 11.5px; color: rgba(255, 255, 255, .8); }
.btn--light {
  margin-left: auto;
  height: 36px;
  padding: 0 16px;
  background: #fff;
  color: var(--brand-strong);
  font-size: 13px;
  box-shadow: none;
}
.btn--light:hover { background: #fff7f0; color: var(--brand-strong); }

.menu-card {
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-1);
}
.menu-row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 56px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line-2);
  font-size: 15px;
  color: var(--ink);
  text-align: left;
  transition: background .16s ease;
}
.menu-row:last-child { border-bottom: 0; }
.menu-row:hover { background: #fafcfd; }
.menu-row strong { margin-left: auto; font-size: 12.5px; font-weight: 600; color: var(--ink-3); }
.menu-row .chev { margin-left: auto; color: #c3d0da; }
.menu-row strong + .chev { margin-left: 6px; }
.m-icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  border-radius: 10px;
  color: #fff;
  background: var(--mi, var(--brand));
}

/* 会员信息条 */
.member-strip {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  padding: 12px 14px;
  border: 1px solid #fbe8d6;
  border-radius: 16px;
  background: #fff2e7;
}
.ms-avatar {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
}
.ms-name { font-size: 14px; font-weight: 600; }
.ms-sub { margin-top: 2px; font-size: 12px; color: var(--ink-3); }
.ms-link { margin-left: auto; display: inline-flex; align-items: center; gap: 2px; font-size: 12.5px; color: var(--brand-strong); white-space: nowrap; }

/* 卡片块 */
.card-block {
  margin-bottom: 14px;
  padding: 16px 14px;
  background: var(--card);
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-1);
}
.block-title { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; font-size: 15px; font-weight: 800; }
.block-title::before { content: ""; width: 3px; height: 15px; border-radius: 99px; background: var(--brand); }

/* 充值套餐 */
.pkg-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.pkg {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: 66px;
  padding: 10px 8px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  transition: border-color .16s ease, background .16s ease, box-shadow .16s ease;
}
.pkg b { font-size: 15px; font-weight: 700; color: var(--ink); }
.pkg span { font-size: 11.5px; color: var(--ink-3); }
.pkg:hover { border-color: #fbc496; }
.pkg[aria-pressed="true"] {
  border-color: var(--brand);
  background: #fff5ec;
  box-shadow: 0 0 0 3px rgba(249, 115, 22, .12);
}
.pkg[aria-pressed="true"] b { color: var(--brand-strong); }
.pkg[aria-pressed="true"]::after {
  content: "✓";
  position: absolute;
  right: 0;
  bottom: 0;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 10px 0 13px 0;
  background: var(--brand);
  color: #fff;
  font-size: 11px;
}

/* 支付方式 */
.pay-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.pay {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  font-size: 13.5px;
  transition: border-color .16s ease, background .16s ease;
}
.pay:hover { border-color: #fbc496; }
.pay[aria-pressed="true"] { border-color: var(--brand); background: #fff8f2; }
.badge {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
  border-radius: 8px;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}
.badge--wx { background: #1aad19; }
.badge--ali { background: #1677ff; }
.radio { margin-left: auto; width: 17px; height: 17px; flex: 0 0 auto; border: 1.5px solid #cfdae2; border-radius: 50%; }
.pay[aria-pressed="true"] .radio {
  border-color: var(--brand);
  background: radial-gradient(circle, var(--brand) 0 4.5px, transparent 5px);
}

/* 结算区 */
.pay-btn {
  display: flex;
  width: 100%;
  height: 50px;
  margin: 0 0 18px;
  border-radius: 16px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .5px;
}
.pay-tip {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--brand-soft);
  color: var(--brand-strong);
  font-size: 12.5px;
  text-align: center;
  margin-bottom: 16px;
}
.note ol { display: grid; gap: 8px; padding-left: 18px; list-style: decimal; font-size: 12.5px; line-height: 1.8; color: var(--ink-2); }
.note li::marker { color: var(--brand); }

/* ---------- 21. 记录 / 浏览记录 ---------- */
.tabs { display: inline-flex; gap: 4px; margin-bottom: 14px; padding: 4px; border-radius: 999px; background: #eef3f6; }
.tab { padding: 8px 18px; border-radius: 999px; font-size: 13.5px; color: var(--ink-2); }
.tab[aria-selected="true"] {
  background: #fff;
  color: var(--brand-strong);
  font-weight: 700;
  box-shadow: 0 2px 8px -4px rgba(16, 36, 50, .45);
}

.record-list {
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-1);
}
.record { display: flex; align-items: center; gap: 12px; padding: 13px 14px; border-bottom: 1px solid var(--line-2); color: var(--ink); }
.record-list > li:last-child .record,
.record-list > .record:last-child { border-bottom: 0; }
.record-t { flex: 1; min-width: 0; font-size: 14.5px; line-height: 1.5; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.record-d { margin-top: 3px; font-size: 11.5px; color: var(--ink-3); }
.record-time { flex: 0 0 auto; font-size: 12px; color: #e2661f; white-space: nowrap; }
.record-amt { margin-left: auto; font-size: 15px; font-weight: 700; color: var(--brand-strong); white-space: nowrap; }
.record-amt.is-out { color: #e2661f; }
a.record { transition: background .16s ease; }
a.record:hover { background: #fafcfd; }
a.record:hover .record-t { color: var(--brand-strong); }
.record-hint { margin-top: 12px; font-size: 12px; color: var(--ink-3); text-align: center; }

.page-head--row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; }
.btn--sm { height: 36px; padding: 0 14px; font-size: 13px; }

@media (min-width: 640px) {
  .pkg-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .info-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 900px) {
  .card-block { padding: 20px; }
  .pay-btn {
    width: 100%;
    max-width: 360px;
    height: 52px;
    margin: 0 auto 20px;
  }
}

/* 会员中心左侧快捷入口：只在桌面显示，手机上避免与主菜单重复 */
.account-side-menu { display: none; }
@media (min-width: 960px) { .account-side-menu { display: block; } }

/* 播放器与下方卡片留出间距 */
.player { margin-bottom: 14px; }
/* 宽屏下按钮不必通栏 */
@media (min-width: 640px) {
  .card-block .btn--block { width: auto; min-width: 200px; }
}
/* 没有面包屑时，页面标题与吸顶栏之间留出呼吸空间 */
.wrap > .page-head:first-child { padding-top: 14px; }

/* ---------- 23. 公开课视频内容页 ---------- */
.post-head { padding: 2px 2px 10px; }
.post-head h1 { font-size: 21px; line-height: 1.42; font-weight: 800; letter-spacing: .1px; }
.post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  font-size: 12px;
  color: var(--ink-3);
}
.post-meta .tag {
  max-width: none;
  padding: 3px 10px;
  background: var(--brand-soft);
  color: var(--brand-strong);
  font-size: 12px;
  font-weight: 600;
}
@media (min-width: 900px) {
  .post-head h1 { font-size: 27px; }
}

/* 播放器外框 */
.vplayer {
  position: relative;
  margin: 0 0 16px;
  border-radius: 18px;
  overflow: hidden;
  background: #0b141a;
  box-shadow: 0 14px 30px -24px rgba(16, 36, 50, .45);
  outline: none;
}
.vplayer:focus-visible { box-shadow: 0 0 0 3px rgba(249, 115, 22, .45); }
.vplayer-stage { position: relative; aspect-ratio: 16 / 9; background: #0b141a; }
.vplayer video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: transparent;
  border-radius: inherit;
}

/* 播放器左上角「视频预览」角标 */
.vp-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(6, 14, 18, .62);
  color: #fff;
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: .04em;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  pointer-events: none;
  transition: opacity .25s ease;
}
.vp-badge::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--brand);
}
/* 播放中淡一点，不抢画面；全屏时不显示 */
.vplayer.is-playing .vp-badge { opacity: .72; }
.vplayer:fullscreen .vp-badge,
.vplayer:-webkit-full-screen .vp-badge { display: none; }

.vp-bigplay {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  border: 0;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  box-shadow: 0 18px 34px -18px rgba(0, 0, 0, .65);
  transition: transform .2s ease, opacity .2s ease, visibility .2s, background .2s ease;
  z-index: 2;
}
.vp-bigplay .ico { width: 48px; height: 48px; margin-left: 1px; }
.vp-bigplay:hover { transform: translate(-50%, -50%) scale(1.06); background: var(--brand-strong); }
.vplayer.is-playing .vp-bigplay { opacity: 0; visibility: hidden; }

.vp-controls {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 34px 12px 8px;
  background: linear-gradient(180deg, rgba(6, 14, 18, 0), rgba(6, 14, 18, .74));
  transition: opacity .25s ease;
}
.vplayer.is-idle.is-playing .vp-controls { opacity: 0; pointer-events: none; }

.vp-progress {
  position: relative;
  display: flex;
  align-items: center;
  height: 18px;
  cursor: pointer;
  touch-action: none;
}
.vp-progress::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 4px;
  border-radius: 99px;
  background: rgba(255, 255, 255, .22);
}
.vp-buffer { position: absolute; left: 0; height: 4px; width: 0; border-radius: 99px; background: rgba(255, 255, 255, .4); }
.vp-played { position: absolute; left: 0; height: 4px; width: 0; border-radius: 99px; background: #ff9d4d; }
.vp-knob {
  position: absolute;
  left: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity .16s ease;
}
.vp-progress:hover .vp-knob,
.vp-progress.is-dragging .vp-knob { opacity: 1; }

.vp-bar { display: flex; align-items: center; gap: 8px; margin-top: 2px; }
.vp-btn {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: #fff;
  transition: background .16s ease;
}
.vp-btn:hover { background: rgba(255, 255, 255, .16); }
.vp-time {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11.5px;
  color: rgba(255, 255, 255, .86);
  font-variant-numeric: tabular-nums;
}
.vp-time i { font-style: normal; opacity: .45; }
.vp-right { display: flex; align-items: center; gap: 4px; margin-left: auto; }

.vp-btn .ico-vpause { display: none; }
.vplayer.is-playing .vp-btn[data-vplay] .ico-vplay { display: none; }
.vplayer.is-playing .vp-btn[data-vplay] .ico-vpause { display: block; }

.vp-btn .ico-vmuted { display: none; }
.vplayer.is-muted .vp-btn[data-vmute] .ico-vvol { display: none; }
.vplayer.is-muted .vp-btn[data-vmute] .ico-vmuted { display: block; }

.vp-vol {
  -webkit-appearance: none;
  appearance: none;
  width: 68px;
  height: 3px;
  border-radius: 99px;
  background: rgba(255, 255, 255, .28);
  outline: none;
  cursor: pointer;
}
.vp-vol::-webkit-slider-thumb { -webkit-appearance: none; width: 11px; height: 11px; border-radius: 50%; background: #fff; }
.vp-vol::-moz-range-thumb { width: 11px; height: 11px; border: 0; border-radius: 50%; background: #fff; }
.vp-speed { width: auto; padding: 0 9px; border-radius: 99px; font-size: 12px; font-variant-numeric: tabular-nums; }

@media (max-width: 600px) {
  .vp-vol { display: none; }
  .vp-bigplay { top: 40%; width: 56px; height: 56px; }
}

.vp-error {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(8, 16, 22, .86);
  color: #fdeee2;
  font-size: 13px;
  text-align: center;
}

.vplayer:fullscreen { border-radius: 0; margin: 0; background: #000; }
.vplayer:fullscreen .vplayer-stage,
.vplayer:-webkit-full-screen .vplayer-stage { height: 100%; aspect-ratio: auto; }

/* 配套资源 */
.res-list {
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-1);
}
.res-item { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--line-2); transition: background .16s ease; }
.res-item:last-child { border-bottom: 0; }
.res-item:hover { background: #fafcfd; }
.res-text { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.res-text b { font-size: 14px; font-weight: 600; }
.res-text span { margin-top: 2px; font-size: 11.5px; color: var(--ink-3); }
.res-btn {
  flex: 0 0 auto;
  padding: 5px 12px;
  border-radius: 99px;
  border: 1px solid #f6d9bd;
  background: #fff8f2;
  color: var(--brand-strong);
  font-size: 12px;
  font-weight: 600;
}
.res-item:hover .res-btn { background: var(--brand-soft); }

/* 课程目录 */
.chapters { display: grid; gap: 2px; padding: 4px 0 2px; }
.chapter {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 4px;
  border-radius: 10px;
  text-align: left;
  color: var(--ink-2);
  transition: background .16s ease, color .16s ease;
}
.chapter:hover { background: #fffaf5; color: var(--brand-strong); }
.ch-time { flex: 0 0 auto; font-size: 11.5px; font-weight: 700; color: var(--brand); font-variant-numeric: tabular-nums; }
.ch-t { min-width: 0; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.info-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 640px) {
  .info-grid--4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ---------- 25. 侧栏「推荐专题」（带缩略图） ---------- */
.topic-list { display: grid; gap: 2px; padding: 6px 0; }
.topic {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px;
  border-radius: 11px;
  transition: background .16s ease;
}
.topic:hover { background: #fffaf5; }
.topic-thumb {
  position: relative;
  display: block;
  width: 58px;
  height: 44px;
  flex: 0 0 auto;
  overflow: hidden;
  border-radius: 9px;
  background: linear-gradient(135deg, #eef4f8, #e2ecf3);
}
.topic-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.topic-thumb.is-broken { display: grid; place-items: center; color: #9fb3c2; }
.topic-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.topic-t {
  font-size: 13px;
  line-height: 1.4;
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.topic:hover .topic-t { color: var(--brand-strong); }
.topic-m { font-size: 11px; color: var(--ink-3); }

/* 会员中心：桌面端菜单合并到左侧，右侧只留最近浏览；手机端保持原来的五项菜单 */
@media (min-width: 960px) {
  .account-mobile-menu { display: none; }
  .account-main > .sec { margin-top: 16px; }
}

/* 会员子页：会员卡 + 菜单侧栏只在桌面显示，手机保持原单列 */
@media (max-width: 959px) {
  .account-side--desktop { display: none; }
}
/* 充值页在桌面端已有左侧会员卡，顶部的会员信息条不再重复显示 */
@media (min-width: 960px) {
  .member-strip { display: none; }
}

/* 会员子页：无标题时，列表上方的工具条（如「清空记录」） */
.list-toolbar {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin: 2px 0 10px;
}

/* 会员中心：面包屑与左侧会员卡同高，桌面端放在右侧内容列顶部 */
@media (min-width: 960px) {
  .account-layout--crumb {
    grid-template-rows: auto minmax(0, 1fr);
    row-gap: 0;
    align-items: start;
  }
  .account-layout--crumb > .account-crumb { grid-column: 2; grid-row: 1; }
  .account-layout--crumb > .account-side { grid-column: 1; grid-row: 1 / span 2; }
  .account-layout--crumb > .account-main { grid-column: 2; grid-row: 2; }
}

/* 会员中心：最近浏览与上方菜单的间距（手机端同样生效） */
.account-main > .sec { margin-top: 22px; }
/* 电脑端面包屑已占一行，最近浏览上方的间距不需要和手机端一样大 */
@media (min-width: 960px) {
  .account-main > .sec { margin-top: 4px; }
}

/* ---------- 26. 页脚客服按钮 + 客服二维码弹窗 ---------- */
.foot-service { flex: 1 1 100%; display: flex; justify-content: center; margin-top: 10px; }
.btn-service {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 36px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  color: #dbe7ee;
  font-size: 12.5px;
  font-weight: 600;
  transition: background .16s ease, border-color .16s ease, color .16s ease;
}
.btn-service:hover { background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .3); color: #fff; }

.modal { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal-mask {
  position: absolute;
  inset: 0;
  background: rgba(8, 20, 28, .55);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}
.modal-panel {
  position: relative;
  z-index: 1;
  width: min(92vw, 330px);
  padding: 26px 22px 22px;
  background: #fff;
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 30px 60px -30px rgba(6, 20, 15, .65);
  animation: modalIn .22s ease;
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(10px) scale(.98); }
  to { opacity: 1; transform: none; }
}
.modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #f4f7f9;
  color: var(--ink-3);
}
.modal-close:hover { background: #e9eff3; color: var(--ink); }
.modal-title { font-size: 17px; font-weight: 800; }
.modal-desc { margin-top: 8px; font-size: 12.5px; line-height: 1.7; color: var(--ink-3); }
.modal-qr {
  display: grid;
  place-items: center;
  width: 168px;
  height: 168px;
  margin: 16px auto 12px;
  border: 1px dashed #cfdae2;
  border-radius: 14px;
  background: repeating-linear-gradient(45deg, #f7fafc 0 6px, #f2f7fa 6px 12px);
  color: #9aa8b3;
  font-size: 12px;
  overflow: hidden;
}
/* 二维码图片撑满容器，与边框之间不留空隙 */
.modal-qr img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.modal-note { font-size: 11.5px; color: var(--ink-3); }
body.is-modal-open { overflow: hidden; }

/* 抽屉会员卡改成按钮后的尺寸 */
button.drawer-user { width: 100%; text-align: left; font-family: inherit; }

/* ---------- 27. 会员登录弹窗 ---------- */
.modal-panel--login { width: min(92vw, 360px); text-align: left; }
.modal-panel--login .modal-title,
.modal-panel--login .modal-desc { text-align: center; }
.modal-panel--login .modal-desc { margin-bottom: 18px; }

.login-form { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; }
.field-row { display: flex; gap: 8px; }
.field-input {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f8fafb;
  font-size: 14px;
  color: var(--ink);
  transition: border-color .16s ease, background .16s ease, box-shadow .16s ease;
}
.field-input::placeholder { color: #a7b4bf; }
.field-input:focus {
  outline: none;
  background: #fff;
  border-color: #fbbf8e;
  box-shadow: 0 0 0 4px rgba(249, 115, 22, .1);
}
.code-btn {
  flex: 0 0 auto;
  height: 44px;
  padding: 0 14px;
  border: 1px solid #f7d5b3;
  border-radius: 12px;
  background: #fff8f2;
  color: var(--brand-strong);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}
.code-btn:hover { background: var(--brand-soft); }
.code-btn[disabled] { color: var(--ink-3); border-color: var(--line); background: #f4f7f9; cursor: default; }

.login-tip { margin-top: -4px; font-size: 12px; line-height: 1.5; color: #e2661f; }
.login-tip.is-ok { color: var(--brand-strong); }

.login-submit {
  display: flex;
  width: 100%;
  height: 46px;
  border-radius: 13px;
  font-size: 15px;
  font-weight: 700;
}

.login-divider { position: relative; margin: 18px 0 14px; text-align: center; }
.login-divider::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: var(--line-2);
}
.login-divider span {
  position: relative;
  padding: 0 10px;
  background: #fff;
  font-size: 11.5px;
  color: var(--ink-3);
}

.login-social { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-2);
  transition: border-color .16s ease, color .16s ease, background .16s ease;
}
.social-btn:hover { border-color: #f7d5b3; color: var(--brand-strong); background: #fffaf5; }
.social-btn--qq .ico { color: #12b7f5; }
.social-btn--wx .ico { color: #1aad19; }

/* 手机模式：只保留手机号验证码登录 */
@media (max-width: 899px) {
  .login-divider,
  .login-social { display: none; }
}

/* ---------- 28. 资源下载弹窗 ---------- */
.modal-panel--download {
  width: min(92vw, 400px);
  padding: 38px 26px 26px;
  text-align: center;
}
.download-badge {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: #fff2e7;
  color: var(--brand);
}
.download-tip {
  font-size: 16px;
  font-weight: 800;
  line-height: 1.5;
  color: #e2661f;
}
.download-go {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  max-width: 300px;
  height: 54px;
  margin: 22px auto 18px;
  border-radius: 12px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 1px;
  box-shadow: 0 14px 26px -16px rgba(249, 115, 22, .95);
}
.download-note {
  padding-top: 18px;
  border-top: 1px dashed var(--line);
  font-size: 12.5px;
  color: var(--ink-3);
}
.download-note a { color: var(--brand-strong); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- 29. 充值页：电脑端扫码支付 ---------- */
.pay-qr { display: none; }
@media (min-width: 960px) {
  .pay-btn,
  .pay-tip { display: none; }

  .pay-qr {
    display: grid;
    justify-items: center;
    gap: 8px;
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px dashed var(--line);
  }
  .pay-qr-box {
    position: relative;
    width: 168px;
    height: 168px;
    display: grid;
    place-items: center;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
    overflow: hidden;
  }
  .pay-qr-img {
    width: 100%;
    height: 100%;
    object-fit: fill;
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }
  .pay-qr-img[hidden] { display: none; }
  .pay-qr-loading {
    width: 30px;
    height: 30px;
    border: 3px solid #fde0c8;
    border-top-color: var(--brand);
    border-radius: 50%;
    animation: rcspin 0.8s linear infinite;
  }
  .pay-qr-loading[hidden] { display: none; }
  .pay-qr-tip { font-size: 13px; color: var(--ink-2); }
  .pay-qr-tip b { font-weight: 700; color: var(--ink); }
  .pay-qr-note { font-size: 11.5px; color: var(--ink-3); }
}

/* ---------- 29b. 金币充值弹窗 ---------- */
.modal-panel--recharge {
  width: min(92vw, 440px);
  padding: 24px 22px 20px;
  text-align: center;
}
.modal-panel--recharge .pkg-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 14px;
}
.modal-panel--recharge .pay-list { margin-top: 10px; }
.modal-panel--recharge .pay-btn {
  display: flex;
  margin: 16px 0 0;
}
.modal-panel--recharge .pay-tip { display: block; }
.modal-panel--recharge .pay-qr[hidden] { display: none; }
.modal-panel--recharge .pay-qr:not([hidden]) {
  display: grid;
  justify-items: center;
  gap: 8px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px dashed var(--line);
}
.modal-panel--recharge .pay-qr-box {
  position: relative;
  width: 168px;
  height: 168px;
  display: grid;
  place-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
}
.modal-panel--recharge .pay-qr-img {
  width: 100%;
  height: 100%;
  object-fit: fill;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.modal-panel--recharge .pay-qr-img[hidden] { display: none; }
.modal-panel--recharge .pay-qr-loading {
  width: 30px;
  height: 30px;
  border: 3px solid #fde0c8;
  border-top-color: var(--brand);
  border-radius: 50%;
  animation: rcspin 0.8s linear infinite;
}
.modal-panel--recharge .pay-qr-loading[hidden] { display: none; }
@keyframes rcspin { to { transform: rotate(360deg); } }
.modal-panel--recharge .pay-qr-tip { font-size: 13px; color: var(--ink-2); }
.modal-panel--recharge .pay-qr-tip b { font-weight: 700; color: var(--ink); }
.modal-panel--recharge .pay-qr-note { font-size: 11.5px; color: var(--ink-3); }
@media (min-width: 960px) {
  .modal-panel--recharge .pay-btn { display: none; }
}

/* 侧栏「全部标签」入口 */
.side-more {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-3);
  transition: color .16s ease;
}
.side-more:hover { color: var(--brand-strong); }

/* ---------- 30. 标签云页面 ---------- */
.tag-page { padding-bottom: 8px; }
.tag-block {
  margin-bottom: 14px;
  padding: 16px 16px 18px;
  background: var(--card);
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-1);
}
.tag-block__title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  font-size: 15px;
  font-weight: 800;
}
.tag-block__title::before {
  content: "";
  width: 3px;
  height: 15px;
  border-radius: 99px;
  background: var(--brand);
}
.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: #f4f8fa;
  color: var(--ink-2);
  font-size: 13px;
  transition: background .16s ease, color .16s ease, border-color .16s ease;
}
.tag-pill:hover { background: var(--brand-soft); color: var(--brand-strong); }
.tag-pill em { font-style: normal; font-size: 11px; color: var(--ink-3); }
.tag-pill:hover em { color: var(--brand); }
.tag-pill.is-hot { background: #fff6ee; color: var(--brand-strong); font-weight: 600; }
.tag-pill.is-hot em { color: #f0a06a; }
.tag-pill.is-hot:hover { background: var(--brand); color: #fff; }
.tag-pill.is-hot:hover em { color: rgba(255, 255, 255, .8); }

@media (min-width: 900px) {
  .tag-page { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; }
  .tag-block { margin-bottom: 0; }
  .tag-block--hot { grid-column: 1 / -1; }
  .tag-block--hot .tag-pill { padding: 8px 15px; font-size: 13.5px; }
  .tag-block--all { grid-column: 1 / -1; }
}
.tag-block__count { font-size: 12px; font-weight: 400; color: var(--ink-3); }

/* ---------- 31. 专题内容页 ---------- */
.topic-hero {
  display: grid;
  gap: 14px;
  margin: 4px 0 18px;
  padding: 14px;
  background: var(--card);
  border: 1px solid var(--line-2);
  border-radius: 20px;
  box-shadow: var(--shadow-1);
}
.topic-hero__media {
  overflow: hidden;
  border-radius: 14px;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #eef4f8, #e2ecf3);
}
.topic-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.topic-kicker {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 99px;
  background: var(--brand-soft);
  color: var(--brand-strong);
  font-size: 11.5px;
  font-weight: 700;
}
.topic-title { margin-top: 8px; font-size: 22px; font-weight: 800; line-height: 1.35; }
.topic-desc { margin-top: 8px; font-size: 13.5px; line-height: 1.7; color: var(--ink-2); }
.topic-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 12px; font-size: 12px; color: var(--ink-3); }
.topic-meta b { font-weight: 700; color: var(--ink); }
.sec-count { margin-left: 6px; font-size: 12px; font-weight: 500; color: var(--ink-3); }

@media (min-width: 900px) {
  .topic-hero { grid-template-columns: 300px minmax(0, 1fr); gap: 22px; align-items: center; padding: 18px; }
  .topic-title { margin-top: 10px; font-size: 27px; }
  .topic-desc { font-size: 14px; }
}

/* 会员卡：绑定手机号 */
.profile-bind {
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
  white-space: nowrap;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.profile-bind:hover { color: #fff; text-decoration-color: rgba(255,255,255,.6); }

/* ==========================================================================
   文章末尾 · Word 文档下载按钮
   ========================================================================== */
.word-download {
  display: flex;
  justify-content: center;
  margin: 26px 0 6px;
}
.word-dl-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 30px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.2;
  box-shadow: 0 8px 18px -8px rgba(249, 115, 22, .65);
  transition: background .2s ease, transform .15s ease;
}
.word-dl-btn:hover {
  background: var(--brand-strong);
  color: #fff;
  transform: translateY(-1px);
}
.word-dl-btn svg { width: 17px; height: 17px; }
