/* ===========================================================
   小黑课堂 · 精品课程中心 —— 前台样式
   =========================================================== */

:root {
  --brand: #0fb981;
  --brand-dark: #0a9d6e;
  --brand-soft: #e8faf3;
  --accent: #ff5c1a;
  --price: #ff3b30;
  --ink: #14181c;
  --ink-2: #4b5563;
  --ink-3: #8a94a0;
  --line: #e8ebef;
  --bg: #f5f7f9;
  --card: #ffffff;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .04), 0 1px 3px rgba(16, 24, 40, .06);
  --shadow-md: 0 6px 16px -6px rgba(16, 24, 40, .12), 0 2px 6px rgba(16, 24, 40, .05);
  --shadow-lg: 0 22px 48px -20px rgba(16, 24, 40, .28), 0 6px 16px -8px rgba(16, 24, 40, .12);
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-pill: 999px;
  --max: 1200px;
  --ease: cubic-bezier(.22, .68, .28, 1);
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "HarmonyOS Sans SC", "PingFang SC", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p { margin: 0; }

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

/* ---------------- 按钮 ---------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 42px;
  padding: 0 20px;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: .2px;
  cursor: pointer;
  transition: transform .18s var(--ease), background .18s, box-shadow .18s, color .18s, border-color .18s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-sm { height: 36px; padding: 0 16px; font-size: 13.5px; }

.btn-primary {
  background: linear-gradient(135deg, #16c98f, var(--brand-dark));
  color: #fff;
  box-shadow: 0 8px 18px -8px rgba(15, 185, 129, .75);
}
.btn-primary:hover { box-shadow: 0 12px 22px -10px rgba(15, 185, 129, .85); transform: translateY(-1px); }

.btn-ghost {
  background: #fff;
  border-color: var(--line);
  color: var(--ink-2);
  font-weight: 600;
}
.btn-ghost:hover { border-color: #cfd6dd; color: var(--ink); background: #fbfcfd; }

.btn-light { background: #fff; color: #c2410c; box-shadow: 0 10px 24px -12px rgba(120, 30, 0, .55); }
.btn-light:hover { transform: translateY(-1px); box-shadow: 0 14px 28px -12px rgba(120, 30, 0, .6); }

.btn-outline { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .55); color: #fff; }
.btn-outline:hover { background: rgba(255, 255, 255, .2); }

/* ---------------- 顶部导航 ---------------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid rgba(16, 24, 40, .06);
  transition: box-shadow .25s ease, background .25s ease;
}
.nav.is-scrolled { box-shadow: 0 6px 20px -14px rgba(16, 24, 40, .35); background: rgba(255, 255, 255, .96); }

.nav-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  height: 66px;
}

.brand { display: inline-flex; align-items: center; gap: 10px; flex: none; }
.brand-logo { width: 36px; height: 36px; border-radius: 11px; box-shadow: 0 6px 14px -8px rgba(15, 185, 129, .8); }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-size: 17.5px; font-weight: 800; letter-spacing: .4px; }
.brand-text em {
  font-style: normal;
  font-size: 8.5px;
  letter-spacing: 1.9px;
  color: var(--ink-3);
  font-weight: 600;
  margin-top: 3px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: 8px;
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
}
.nav-links a {
  position: relative;
  display: inline-block;
  padding: 8px 11px;
  border-radius: var(--r-sm);
  font-size: 14.5px;
  color: var(--ink-2);
  font-weight: 500;
  white-space: nowrap;
  transition: color .18s, background .18s;
}
.nav-links a:hover { color: var(--ink); background: #f2f5f8; }
.nav-links a.is-active { color: var(--brand-dark); font-weight: 700; }
.nav-links a.is-active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 18px;
  height: 2.5px;
  border-radius: 2px;
  background: var(--brand);
  transform: translateX(-50%);
}

.nav-actions { display: flex; align-items: center; gap: 10px; flex: none; margin-left: auto; }
.nav-app { font-size: 13.5px; color: var(--ink-2); font-weight: 600; padding: 6px 8px; border-radius: 6px; }
.nav-app:hover { color: var(--brand-dark); background: var(--brand-soft); }

.nav-toggle {
  display: none;
  width: 38px;
  height: 34px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 9px;
  padding: 8px 9px;
  cursor: pointer;
  flex-direction: column;
  justify-content: space-between;
}
.nav-toggle span { display: block; height: 2px; border-radius: 2px; background: var(--ink-2); transition: transform .22s, opacity .22s; }
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-drawer {
  display: none;
  border-top: 1px solid var(--line);
  background: #fff;
  padding: 10px 16px 16px;
  box-shadow: 0 16px 24px -18px rgba(16, 24, 40, .4);
}
.nav-drawer a {
  display: block;
  padding: 11px 8px;
  border-radius: 8px;
  color: var(--ink-2);
  font-size: 15px;
}
.nav-drawer a:hover { background: #f4f6f8; color: var(--ink); }
.nav-drawer .drawer-sep { height: 1px; background: var(--line); margin: 8px 0; }

/* ---------------- Hero ---------------- */

.hero-wrap { padding-top: 22px; }

.hero {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  padding: 42px 46px;
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, .94fr);
  align-items: center;
  gap: 24px;
  color: #fff;
  background:
    radial-gradient(120% 120% at 88% 12%, rgba(255, 214, 102, .55) 0%, rgba(255, 214, 102, 0) 55%),
    linear-gradient(112deg, #ff9a3c 0%, #ff6a1f 42%, #f5320e 100%);
  box-shadow: 0 26px 50px -26px rgba(244, 70, 15, .65);
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, .22) 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: .5;
  mask-image: linear-gradient(105deg, #000 5%, transparent 55%);
  -webkit-mask-image: linear-gradient(105deg, #000 5%, transparent 55%);
  z-index: -1;
}
.hero::after {
  content: "";
  position: absolute;
  right: -120px;
  bottom: -180px;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, .28), rgba(255, 255, 255, 0) 70%);
  z-index: -1;
}

.hero-copy { min-width: 0; }
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  padding: 5px 13px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, .18);
  border: 1px solid rgba(255, 255, 255, .38);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .4px;
  backdrop-filter: blur(6px);
}
.hero-tag::before { content: "🔥"; font-size: 12px; }

.hero-title {
  margin-top: 16px;
  font-size: 42px;
  line-height: 1.22;
  font-weight: 900;
  letter-spacing: -.5px;
  text-shadow: 0 8px 24px rgba(120, 30, 0, .28);
}
.hero-title > span:first-child { display: block; }
.hero-title-sub { display: block; margin-top: 6px; font-size: 23px; font-weight: 800; letter-spacing: 0; }
.hero-title-sub i {
  font-style: normal;
  font-size: 1.24em;
  color: #ffe066;
  text-shadow: 0 4px 14px rgba(160, 60, 0, .35);
}

.hero-sub {
  margin-top: 14px;
  font-size: 15px;
  line-height: 1.7;
  color: rgba(255, 255, 255, .93);
  max-width: 34em;
}

.hero-points { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.hero-points li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 9px;
  background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .3);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .2px;
}
.hero-points li::before { content: "✓"; font-size: 11px; font-weight: 900; color: #fff; opacity: .95; }

.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

/* Hero 右侧视觉 */
.hero-art {
  position: relative;
  height: 296px;
  min-width: 0;
}
.art-glow {
  position: absolute;
  right: 6%;
  top: 2%;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, .5), rgba(255, 255, 255, 0) 68%);
  filter: blur(2px);
}
.art-ring {
  position: absolute;
  right: 12%;
  top: 12%;
  width: 210px;
  height: 210px;
  border-radius: 50%;
  border: 1.5px dashed rgba(255, 255, 255, .45);
  animation: spin 26s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.art-card {
  position: absolute;
  border-radius: 18px;
  background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .42);
  backdrop-filter: blur(10px);
  box-shadow: 0 22px 40px -22px rgba(110, 25, 0, .6);
}
.art-card-back {
  right: 24%;
  top: 24px;
  width: 216px;
  height: 150px;
  transform: rotate(-9deg);
  padding: 16px;
  display: flex;
  align-items: flex-end;
}
.art-back-label { font-size: 11.5px; letter-spacing: .6px; color: rgba(255, 255, 255, .85); font-weight: 600; }

.art-card-main {
  right: 6%;
  top: 62px;
  width: 250px;
  padding: 22px 22px 20px;
  transform: rotate(3deg);
  background: rgba(255, 255, 255, .96);
  border-color: rgba(255, 255, 255, .9);
  color: var(--ink);
  box-shadow: 0 30px 50px -24px rgba(90, 20, 0, .55);
}
.art-ribbon {
  position: absolute;
  top: -12px;
  right: 16px;
  padding: 3px 10px;
  border-radius: 6px;
  background: linear-gradient(135deg, #ffd166, #ffab00);
  color: #7a3c00;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .5px;
  box-shadow: 0 6px 14px -8px rgba(160, 90, 0, .9);
}
.art-letters { display: flex; gap: 6px; }
.art-letters b {
  flex: 1;
  display: grid;
  place-items: center;
  height: 58px;
  border-radius: 12px;
  font-size: 30px;
  font-weight: 900;
  color: #fff;
  background: linear-gradient(140deg, #ff8a3d, #f5320e);
  box-shadow: 0 10px 18px -12px rgba(245, 50, 14, .9);
  letter-spacing: 0;
}
.art-letters b:nth-child(2) { background: linear-gradient(140deg, #24d3a0, #0a9d6e); box-shadow: 0 10px 18px -12px rgba(10, 157, 110, .9); }
.art-letters b:nth-child(3) { background: linear-gradient(140deg, #4f8dff, #1e5bd6); box-shadow: 0 10px 18px -12px rgba(30, 91, 214, .9); }
.art-sub { margin-top: 12px; font-size: 12.5px; font-weight: 700; color: var(--ink-2); }
.art-progress { margin-top: 12px; height: 6px; border-radius: 4px; background: #eef1f4; overflow: hidden; }
.art-progress span { display: block; height: 100%; width: 92%; border-radius: 4px; background: linear-gradient(90deg, #ffb020, #ff5c1a); }
.art-meta { margin-top: 8px; font-size: 10.5px; color: var(--ink-3); letter-spacing: .2px; }

.art-chip {
  position: absolute;
  padding: 8px 13px;
  border-radius: var(--r-pill);
  background: #fff;
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 14px 26px -14px rgba(60, 20, 0, .55);
  animation: floaty 5.5s ease-in-out infinite;
}
.art-chip-1 { left: 2%; top: 34px; color: #d63a00; }
.art-chip-2 { left: 8%; bottom: 30px; animation-delay: -2.6s; color: #0a8f66; }
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* 保障条 */
.assurance {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 16px;
}
.assurance li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
}
.ass-ic {
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  font-size: 15px;
  font-weight: 900;
  color: #fff;
}
.ass-ic-1 { background: linear-gradient(140deg, #3dd6a4, #0a9d6e); }
.ass-ic-2 { background: linear-gradient(140deg, #ffb020, #ff7a18); }
.ass-ic-3 { background: linear-gradient(140deg, #6ea8ff, #2b5fd9); }
.assurance strong { display: block; font-size: 13.5px; font-weight: 800; line-height: 1.4; }
.assurance small { display: block; font-size: 12px; color: var(--ink-3); line-height: 1.5; }

/* ---------------- 课程区 ---------------- */

.section { padding: 34px 24px 56px; scroll-margin-top: 80px; }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}
.section-title { display: flex; align-items: center; gap: 9px; }
.section-title .flame { color: #ff4d2e; }
.section-title h2 { font-size: 21px; font-weight: 900; letter-spacing: .3px; }
.section-meta {
  font-size: 12px;
  color: var(--ink-3);
  padding: 2px 8px;
  border-radius: 6px;
  background: #eef1f4;
  font-weight: 600;
}
.section-tip { font-size: 12.5px; color: var(--ink-3); }

.filters {
  display: flex;
  gap: 9px;
  overflow-x: auto;
  padding: 4px 2px 10px;
  margin-bottom: 6px;
  scrollbar-width: none;
}
.filters::-webkit-scrollbar { display: none; }
.chip {
  flex: none;
  height: 34px;
  padding: 0 16px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink-2);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all .18s var(--ease);
}
.chip:hover { border-color: #cfd6dd; color: var(--ink); transform: translateY(-1px); }
.chip.is-active {
  background: linear-gradient(135deg, #16c98f, #0a9d6e);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 10px 20px -12px rgba(15, 185, 129, .95);
}
.chip .chip-n { opacity: .6; margin-left: 5px; font-size: 12px; font-weight: 700; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(268px, 1fr));
  gap: 20px;
  margin-top: 8px;
}

/* 课程卡片 */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid rgba(16, 24, 40, .06);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
  animation: cardIn .5s var(--ease) both;
}
@keyframes cardIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(15, 185, 129, .35);
}
.card:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }

.card-cover { position: relative; aspect-ratio: 8 / 5; overflow: hidden; background: #eef1f4; }
.card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease);
}
.card:hover .card-cover img { transform: scale(1.055); }
.card-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(8, 12, 18, .28), rgba(8, 12, 18, 0) 42%);
  opacity: 0;
  transition: opacity .3s;
}
.card:hover .card-cover::after { opacity: 1; }

.card-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  padding: 3px 9px;
  border-radius: 6px;
  background: linear-gradient(135deg, #ff6a3d, #f81c3c);
  color: #fff;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: .6px;
  box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .55), 0 6px 14px -8px rgba(248, 28, 60, .95);
}
.card-cat {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 2;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(10, 14, 20, .46);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .3px;
}
.card-cat:empty { display: none; }

.card-body { display: flex; flex-direction: column; flex: 1 1 auto; padding: 13px 14px 12px; }
.card-title {
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.55;
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: calc(2 * 1.55em);
  letter-spacing: .1px;
}
.card-sub {
  margin-top: 5px;
  font-size: 12px;
  color: var(--ink-3);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-price { display: flex; align-items: baseline; gap: 7px; margin-top: 11px; min-height: 28px; flex-wrap: wrap; }
.price-now { font-size: 21px; font-weight: 900; color: var(--price); letter-spacing: -.4px; line-height: 1; }
.price-now small { font-size: 13px; font-weight: 800; margin-right: 1px; }
.price-old { font-size: 12.5px; color: #a8b0b9; text-decoration: line-through; }
.price-save {
  font-size: 10.5px;
  font-weight: 700;
  color: #ff3b30;
  background: #fff1ef;
  border: 1px solid #ffe0db;
  padding: 1px 6px;
  border-radius: 4px;
}
.price-free { font-size: 16px; font-weight: 900; color: var(--brand-dark); }

.card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed #edf0f3;
  font-size: 12.5px;
  color: var(--ink-3);
}
.hot { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.hot i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 0 rgba(15, 185, 129, .5);
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(15, 185, 129, .45); }
  70% { box-shadow: 0 0 0 7px rgba(15, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(15, 185, 129, 0); }
}
.hot b { color: var(--ink); font-weight: 800; font-variant-numeric: tabular-nums; }
.card-go {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: var(--brand-dark);
  font-weight: 800;
  white-space: nowrap;
  transition: gap .2s var(--ease), color .2s;
}
.card:hover .card-go { gap: 7px; }
.card-go svg { width: 13px; height: 13px; }

/* 骨架屏 */
.sk-card {
  height: 322px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: linear-gradient(100deg, #eef1f4 20%, #f7f9fb 40%, #eef1f4 60%);
  background-size: 220% 100%;
  animation: shimmer 1.4s linear infinite;
}
@keyframes shimmer { to { background-position: -120% 0; } }

/* 空状态 */
.empty { padding: 60px 0 40px; text-align: center; color: var(--ink-3); }
.empty-ic { font-size: 34px; margin-bottom: 6px; }
.empty p { font-size: 14px; margin-bottom: 14px; }

/* 轻提示 */
.toast {
  position: fixed;
  left: 50%;
  bottom: 34px;
  transform: translate(-50%, 20px);
  max-width: min(92vw, 420px);
  padding: 11px 18px;
  border-radius: 12px;
  background: rgba(20, 24, 28, .93);
  color: #fff;
  font-size: 13.5px;
  line-height: 1.5;
  box-shadow: 0 18px 36px -18px rgba(0, 0, 0, .6);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s, transform .25s var(--ease);
  z-index: 200;
  text-align: center;
}
.toast.is-show { opacity: 1; transform: translate(-50%, 0); }
.toast.is-error { background: rgba(190, 32, 32, .95); }

/* ---------------- 页脚 ---------------- */

.footer {
  margin-top: 10px;
  background: #101418;
  color: #9aa4af;
  padding: 34px 0 30px;
}
.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}
.footer .brand-text strong { color: #fff; }
.footer .brand-text em { color: #6b7681; }
.footer-brand p { margin-top: 10px; font-size: 12.5px; color: #7d8894; max-width: 22em; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 18px; padding-top: 6px; }
.footer-links a { font-size: 13px; color: #9aa4af; }
.footer-links a:hover { color: #fff; }
.footer-right { text-align: right; padding-top: 6px; }
.footer-admin { display: inline-block; font-size: 13px; color: #c8d1da; padding: 5px 12px; border: 1px solid #2a323a; border-radius: var(--r-pill); }
.footer-admin:hover { border-color: #3d4750; color: #fff; }
.footer-right small { display: block; margin-top: 12px; font-size: 11.5px; color: #6b7681; }

/* ---------------- 响应式 ---------------- */

@media (max-width: 1100px) {
  .hero { padding: 34px 34px; }
  .hero-title { font-size: 36px; }
  .hero-title-sub { font-size: 20px; }
  .hero-art { height: 270px; }
  .art-card-main { width: 224px; right: 3%; }
  .art-card-back { width: 196px; right: 22%; }
  .nav-links a { padding: 8px 9px; font-size: 14px; }
}

@media (max-width: 960px) {
  .nav-cta { display: none; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
}

@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav-drawer:not([hidden]) { display: block; }
  .nav-app { display: none !important; }

  .hero {
    grid-template-columns: 1fr;
    padding: 30px 26px 26px;
    gap: 8px;
  }
  .hero-art { display: none; }
  .hero-title { font-size: 32px; }
  .hero-title-sub { font-size: 19px; }
  .assurance { grid-template-columns: 1fr; gap: 10px; }
  .assurance li { padding: 12px 14px; }
  .section { padding: 26px 20px 46px; }
  .footer-inner { flex-direction: column; gap: 20px; }
  .footer-right { text-align: left; }
}

@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .nav-inner { height: 60px; gap: 10px; }
  .brand-logo { width: 32px; height: 32px; border-radius: 10px; }
  .brand-text strong { font-size: 16px; }
  .brand-text em { font-size: 7.5px; letter-spacing: 1.5px; }
  .btn-sm { height: 33px; padding: 0 13px; font-size: 12.5px; }
  .hero-wrap { padding-top: 14px; }
  .hero { border-radius: 16px; padding: 24px 20px; }
  .hero-tag { font-size: 11.5px; padding: 4px 10px; }
  .hero-title { margin-top: 12px; font-size: 27px; }
  .hero-title-sub { font-size: 17px; }
  .hero-sub { font-size: 13.5px; margin-top: 10px; }
  .hero-points li { font-size: 11.5px; padding: 4px 9px; }
  .hero-cta { margin-top: 18px; gap: 9px; }
  .hero-cta .btn { height: 38px; padding: 0 16px; font-size: 13.5px; flex: 1 1 auto; }
  .section-title h2 { font-size: 18px; }
  .section-tip { display: none; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .card-body { padding: 10px 11px 10px; }
  .card-title { font-size: 13px; min-height: calc(2 * 1.55em); }
  .card-sub { display: none; }
  .price-now { font-size: 17px; }
  .price-old { font-size: 11px; }
  .price-save { display: none; }
  .card-foot { margin-top: 9px; padding-top: 8px; font-size: 11.5px; }
  .card-go { font-size: 11.5px; }
  .card-go span { display: none; }
  .sk-card { height: 250px; }
}

@media (max-width: 380px) {
  .grid { grid-template-columns: 1fr; }
  .card-sub { display: block; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  html { scroll-behavior: auto; }
}
