/* =========================================================
   华艺绣花培训 · 移动优先样式表
   ========================================================= */

:root {
  --bg: #f7f5f0;
  --surface: #ffffff;
  --ink: #161a18;
  --ink-2: #545c58;
  --ink-3: #7a827d;
  --line: #e8e4db;
  --line-2: #f0ece4;
  --brand: #0e5c4c;
  --brand-2: #178a70;
  --brand-soft: #e7f2ee;
  --accent: #e2573a;
  --accent-soft: #fdeae4;
  --gold: #c9973f;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(22, 26, 24, .04), 0 8px 24px -12px rgba(22, 26, 24, .18);
  --shadow-lg: 0 2px 4px rgba(22, 26, 24, .04), 0 24px 48px -24px rgba(22, 26, 24, .28);
  --nav-h: 62px;
  --maxw: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
          "Microsoft YaHei", "Source Han Sans SC", "Noto Sans CJK SC", sans-serif;
}

* { -webkit-tap-highlight-color: transparent; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
  padding-bottom: calc(var(--nav-h) + env(safe-area-inset-bottom, 0px));
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; border: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 18px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------------- 顶部栏 ---------------- */
.topbar {
  position: sticky; top: 0; z-index: 60;
  background: rgba(247, 245, 240, .86);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line-2);
}
.topbar-in {
  display: flex; align-items: center; gap: 12px;
  height: 56px;
}
.brand { display: flex; align-items: center; gap: 9px; min-width: 0; }
.brand-mark {
  width: 32px; height: 32px; border-radius: 9px; flex: 0 0 auto;
  background: linear-gradient(150deg, var(--brand), var(--brand-2));
  display: grid; place-items: center; color: #fff;
}
.brand-mark svg { width: 19px; height: 19px; }
.brand-txt { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.brand-name { font-size: 15px; font-weight: 700; letter-spacing: -.01em; white-space: nowrap; }
.brand-sub {
  font-size: 10px; color: var(--ink-3); letter-spacing: .04em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 168px;
}
.topbar-sp { flex: 1 1 auto; }
.btn-call {
  display: inline-flex; align-items: center; gap: 6px;
  height: 34px; padding: 0 14px; border-radius: 999px;
  background: var(--brand); color: #fff; font-size: 13px; font-weight: 600;
  box-shadow: 0 4px 14px -6px rgba(14, 92, 76, .7);
  white-space: nowrap;
}
.btn-call svg { width: 14px; height: 14px; }

/* ---------------- Hero ---------------- */
.hero {
  position: relative; overflow: hidden;
  background: #0b3d33;
  color: #fff;
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center 42%;
  transform: scale(1.02);
  opacity: .55;
}
.hero-scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(175deg, rgba(9, 40, 33, .92) 8%, rgba(9, 40, 33, .55) 46%, rgba(9, 40, 33, .94) 100%),
    radial-gradient(120% 80% at 100% 0%, rgba(23, 138, 112, .55), transparent 60%);
}
.hero-in {
  position: relative; padding: 34px 0 30px;
}
.hero-kicker {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 12px 5px 8px; border-radius: 999px;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .18);
  font-size: 12px; letter-spacing: .04em;
  color: #eaf5f1;
  margin-bottom: 16px;
}
.hero-kicker b {
  display: inline-block; padding: 1px 7px; border-radius: 999px;
  background: var(--accent); color: #fff; font-size: 11px; font-weight: 700;
}
.hero h1 {
  margin: 0 0 12px; font-size: 30px; line-height: 1.25;
  font-weight: 800; letter-spacing: -.02em;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(100deg, #ffd48a, #f7a072 60%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p.lead {
  margin: 0 0 20px; font-size: 15px; line-height: 1.65;
  color: rgba(255, 255, 255, .82); max-width: 34em;
}
.hero-cta { display: flex; gap: 10px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 46px; padding: 0 20px; border-radius: 12px;
  font-size: 15px; font-weight: 700; border: 1px solid transparent;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
}
.btn:active { transform: scale(.985); }
.btn-primary {
  background: var(--accent); color: #fff;
  box-shadow: 0 10px 24px -12px rgba(226, 87, 58, .9);
}
.btn-ghost {
  background: rgba(255, 255, 255, .1); color: #fff;
  border-color: rgba(255, 255, 255, .28);
}
.btn-line {
  background: #fff; color: var(--brand); border-color: var(--line);
}
.btn svg { width: 17px; height: 17px; }

.hero-stats {
  position: relative;
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; margin-top: 22px;
  background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 14px; overflow: hidden;
}
.hero-stat { background: rgba(8, 34, 28, .55); padding: 12px 10px; text-align: center; }
.hero-stat b { display: block; font-size: 19px; font-weight: 800; letter-spacing: -.02em; }
.hero-stat span { display: block; font-size: 11px; color: rgba(255, 255, 255, .7); margin-top: 2px; }

/* ---------------- 通用区块 ---------------- */
.section { padding: 34px 0 6px; }
.section-head { margin-bottom: 16px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12px; font-weight: 700; letter-spacing: .1em;
  color: var(--accent); text-transform: uppercase; margin-bottom: 8px;
}
.eyebrow::before {
  content: ""; width: 16px; height: 2px; border-radius: 2px; background: var(--accent);
  display: inline-block;
}
.section-head h2 {
  margin: 0; font-size: 22px; line-height: 1.35;
  font-weight: 800; letter-spacing: -.02em;
}
.section-head p {
  margin: 8px 0 0; color: var(--ink-2); font-size: 14px; line-height: 1.65;
}
.section-head .more {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 13px; font-weight: 600; color: var(--brand); margin-top: 10px;
}
.section-head .more svg { width: 14px; height: 14px; }

/* ---------------- 路径选择 ---------------- */
.path-grid { display: grid; gap: 12px; }
.path-card {
  position: relative; display: block; overflow: hidden;
  border-radius: var(--radius); padding: 20px 18px 18px;
  background: var(--surface); border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.path-card::after {
  content: ""; position: absolute; right: -40px; top: -40px;
  width: 140px; height: 140px; border-radius: 50%;
  background: var(--brand-soft); opacity: .9;
}
.path-card.alt::after { background: var(--accent-soft); }
.path-card > * { position: relative; z-index: 1; }
.path-tag {
  display: inline-block; padding: 3px 9px; border-radius: 7px;
  font-size: 11px; font-weight: 700; letter-spacing: .04em;
  background: var(--brand-soft); color: var(--brand);
}
.path-card.alt .path-tag { background: var(--accent-soft); color: var(--accent); }
.path-card h3 { margin: 10px 0 6px; font-size: 18px; font-weight: 800; letter-spacing: -.01em; }
.path-card p { margin: 0 0 12px; font-size: 13px; color: var(--ink-2); line-height: 1.6; }
.path-list { display: flex; flex-wrap: wrap; gap: 6px; }
.path-list span {
  font-size: 11px; padding: 4px 9px; border-radius: 7px;
  background: #f4f1ea; color: var(--ink-2);
}
.path-link {
  display: inline-flex; align-items: center; gap: 5px;
  margin-top: 14px; font-size: 13px; font-weight: 700; color: var(--brand);
}
.path-card.alt .path-link { color: var(--accent); }
.path-link svg { width: 14px; height: 14px; }

/* ---------------- 课程卡片 ---------------- */
.course-grid { display: grid; gap: 12px; }
.course-card {
  display: flex; align-items: stretch; gap: 0;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .18s ease, box-shadow .2s ease;
}
.course-card:active { transform: scale(.99); }
.course-thumb {
  flex: 0 0 92px; background: linear-gradient(150deg, #10564a, #157a65);
  position: relative; display: grid; place-items: center;
}
.course-thumb svg { width: 30px; height: 30px; color: rgba(255, 255, 255, .92); }
.course-thumb.warm { background: linear-gradient(150deg, #b8442b, #e2573a); }
.course-main { flex: 1 1 auto; padding: 13px 14px; min-width: 0; }
.course-top { display: flex; align-items: center; gap: 7px; margin-bottom: 5px; }
.tag {
  display: inline-block; padding: 1px 7px; border-radius: 6px;
  font-size: 10px; font-weight: 700; letter-spacing: .03em;
  background: var(--brand-soft); color: var(--brand);
}
.tag.warm { background: var(--accent-soft); color: var(--accent); }
.tag.gold { background: #fbf1dd; color: #99701f; }
.course-card h3 {
  margin: 0 0 4px; font-size: 15px; font-weight: 700; line-height: 1.4;
  letter-spacing: -.01em;
}
.course-meta {
  display: flex; flex-wrap: wrap; gap: 4px 10px;
  font-size: 12px; color: var(--ink-3);
}
.course-meta i { font-style: normal; display: inline-flex; align-items: center; gap: 3px; }
.course-meta svg { width: 12px; height: 12px; }

/* ---------------- 成果对比 ---------------- */
.result-band {
  border-radius: 20px; padding: 22px 18px;
  background: linear-gradient(158deg, #0d4f43, #0a3b31 70%);
  color: #fff; position: relative; overflow: hidden;
}
.result-band::before {
  content: ""; position: absolute; inset: 0;
  background-image: repeating-linear-gradient(90deg, rgba(255,255,255,.05) 0 1px, transparent 1px 9px);
  opacity: .5; pointer-events: none;
}
.result-band > * { position: relative; }
.result-band h3 { margin: 0 0 4px; font-size: 18px; font-weight: 800; }
.result-band .rb-sub { margin: 0 0 16px; font-size: 13px; color: rgba(255,255,255,.72); }
.rb-flow { display: grid; gap: 8px; }
.rb-step {
  display: flex; gap: 11px; align-items: flex-start;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 12px; padding: 11px 13px;
}
.rb-num {
  flex: 0 0 22px; height: 22px; border-radius: 7px;
  background: #ffd48a; color: #4a3410;
  font-size: 12px; font-weight: 800; display: grid; place-items: center;
  margin-top: 2px;
}
.rb-step > div { min-width: 0; }
.rb-step > div b { display: block; font-size: 14px; font-weight: 700; }
.rb-step > div span { display: block; font-size: 12px; color: rgba(255, 255, 255, .68); line-height: 1.55; }

/* ---------------- 图片墙 ---------------- */
.shots {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px;
}
.shots a {
  display: block; position: relative; overflow: hidden;
  border-radius: 12px; background: #eae6dd;
  aspect-ratio: 4 / 3;
}
.shots a img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .4s ease;
}
.shots a:active img { transform: scale(1.04); }
.shots a::after {
  content: ""; position: absolute; inset: 0; border-radius: 12px;
  box-shadow: inset 0 0 0 1px rgba(22, 26, 24, .06);
}
.shots-cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 22px 10px 8px; font-size: 11px; color: #fff;
  background: linear-gradient(transparent, rgba(0, 0, 0, .62));
  line-height: 1.35;
}

/* ---------------- 视频 ---------------- */
.video-row { display: grid; gap: 10px; }
.video-card {
  display: flex; align-items: center; gap: 12px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 12px;
  box-shadow: var(--shadow);
}
.video-play {
  flex: 0 0 52px; height: 52px; border-radius: 12px;
  background: linear-gradient(150deg, #10564a, #157a65);
  display: grid; place-items: center; color: #fff;
}
.video-play svg { width: 20px; height: 20px; }
.video-card h4 { margin: 0 0 3px; font-size: 14px; font-weight: 700; line-height: 1.4; }
.video-card p { margin: 0; font-size: 12px; color: var(--ink-3); }

/* ---------------- 步骤 ---------------- */
.steps { display: grid; gap: 10px; counter-reset: s; }
.step {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 14px; border-radius: 14px; background: var(--surface);
  border: 1px solid var(--line);
}
.step-n {
  flex: 0 0 26px; height: 26px; border-radius: 8px;
  background: var(--brand-soft); color: var(--brand);
  font-size: 13px; font-weight: 800; display: grid; place-items: center;
}
.step > div { min-width: 0; }
.step > div b { display: block; font-size: 14px; margin-bottom: 2px; }
.step > div span { font-size: 12.5px; color: var(--ink-2); line-height: 1.6; }

/* ---------------- FAQ ---------------- */
.faq { display: grid; gap: 8px; }
.faq details {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 14px; padding: 0 14px; overflow: hidden;
}
.faq summary {
  list-style: none; cursor: pointer; position: relative;
  padding: 14px 26px 14px 0; font-size: 14.5px; font-weight: 600;
  line-height: 1.5;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 2px; top: 12px;
  font-size: 20px; font-weight: 400; color: var(--ink-3); line-height: 1;
}
.faq details[open] summary::after { content: "−"; }
.faq .ans {
  padding: 0 0 15px; font-size: 14px; color: var(--ink-2); line-height: 1.75;
  border-top: 1px dashed var(--line-2); margin-top: -2px; padding-top: 12px;
}
.faq .ans p { margin: 0 0 8px; }
.faq .ans p:last-child { margin-bottom: 0; }

/* ---------------- CTA 条 ---------------- */
.cta-band {
  margin: 30px 0 8px; border-radius: 20px; overflow: hidden;
  background: linear-gradient(150deg, #e2573a, #c33f26);
  color: #fff; padding: 24px 20px; text-align: center;
  box-shadow: 0 18px 40px -24px rgba(195, 63, 38, .9);
}
.cta-band h3 { margin: 0 0 6px; font-size: 20px; font-weight: 800; letter-spacing: -.01em; }
.cta-band p { margin: 0 0 16px; font-size: 13px; color: rgba(255, 255, 255, .85); }
.cta-band .btns { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.cta-band .btn-primary { background: #fff; color: #b83a20; box-shadow: none; }
.cta-band .btn-ghost { border-color: rgba(255,255,255,.5); }

/* ---------------- 页脚 ---------------- */
.footer {
  margin-top: 34px; padding: 26px 0 22px;
  border-top: 1px solid var(--line);
  color: var(--ink-3); font-size: 12.5px; line-height: 1.8;
}
.footer b { color: var(--ink-2); font-weight: 600; display: block; margin-bottom: 4px; font-size: 13px; }
.footer .cols { display: grid; gap: 18px; }
.footer a { color: var(--ink-2); }
.footer .copy { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line-2); font-size: 11.5px; }

/* ---------------- 底部导航 ---------------- */
.bottomnav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
  height: calc(var(--nav-h) + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--line);
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.bottomnav a {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px; font-size: 10.5px; color: var(--ink-3); font-weight: 600;
}
.bottomnav a svg { width: 21px; height: 21px; }
.bottomnav a.on { color: var(--brand); }
.bottomnav a.on svg { stroke-width: 2.2; }

/* ---------------- 面包屑 / 页头 ---------------- */
.pagehead {
  padding: 18px 0 6px;
}
.crumb { font-size: 12px; color: var(--ink-3); display: flex; gap: 6px; flex-wrap: wrap; }
.crumb a { color: var(--ink-3); }
.crumb span { color: var(--ink-2); }
.pagehead h1 {
  margin: 8px 0 6px; font-size: 24px; font-weight: 800; letter-spacing: -.02em; line-height: 1.35;
}
.pagehead .sub { margin: 0; color: var(--ink-2); font-size: 13.5px; line-height: 1.65; }

/* ---------------- 筛选 ---------------- */
.filterbar { position: sticky; top: 56px; z-index: 40; background: var(--bg); padding: 10px 0 8px; }
.searchbox {
  display: flex; align-items: center; gap: 8px;
  height: 42px; padding: 0 14px; border-radius: 12px;
  background: #fff; border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.searchbox svg { width: 16px; height: 16px; color: var(--ink-3); flex: 0 0 auto; }
.searchbox input {
  flex: 1 1 auto; border: 0; outline: 0; background: transparent;
  font-size: 14px; color: var(--ink); min-width: 0;
}
.searchbox input::placeholder { color: var(--ink-3); }
.chips {
  display: flex; gap: 8px; overflow-x: auto; padding: 10px 0 4px;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: 0 0 auto; height: 32px; padding: 0 13px; border-radius: 999px;
  border: 1px solid var(--line); background: #fff; color: var(--ink-2);
  font-size: 12.5px; font-weight: 600; display: inline-flex; align-items: center;
  cursor: pointer;
}
.chip.on { background: var(--brand); border-color: var(--brand); color: #fff; }

/* ---------------- 文章列表 ---------------- */
.alist { display: grid; gap: 2px; margin-top: 4px; }
.aitem {
  display: block; padding: 13px 0; border-bottom: 1px solid var(--line-2);
}
.aitem h3 {
  margin: 0 0 5px; font-size: 15px; font-weight: 600; line-height: 1.5;
  letter-spacing: -.005em;
}
.aitem .am {
  display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: var(--ink-3);
  flex-wrap: wrap;
}
.aitem .am .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--line); }
.aitem .am em {
  font-style: normal; padding: 0 6px; border-radius: 5px;
  background: var(--brand-soft); color: var(--brand); font-weight: 600;
}
.empty { text-align: center; color: var(--ink-3); font-size: 13.5px; padding: 40px 0; }
.loadmore {
  display: block; width: 100%; margin: 18px 0 6px; height: 46px;
  border-radius: 12px; border: 1px solid var(--line);
  background: #fff; color: var(--brand); font-weight: 700; font-size: 14px;
  cursor: pointer;
}
.loadmore[disabled] { color: var(--ink-3); font-weight: 500; }
.listcount { font-size: 12px; color: var(--ink-3); padding: 4px 0 0; }

/* ---------------- 文章详情 ---------------- */
.article-head { padding: 16px 0 10px; border-bottom: 1px solid var(--line-2); }
.article-head h1 {
  margin: 0 0 10px; font-size: 21px; line-height: 1.45; font-weight: 800; letter-spacing: -.015em;
}
.article-meta {
  display: flex; gap: 10px; flex-wrap: wrap; align-items: center;
  font-size: 12px; color: var(--ink-3);
}
.article-meta .tag { font-size: 11px; }

.article-body {
  padding: 18px 0 8px;
  font-size: 16.5px; line-height: 1.9; color: #232826;
  word-wrap: break-word; overflow-wrap: break-word;
}
.article-body p { margin: 0 0 14px; }
.article-body br { line-height: 1.9; }
.article-body img {
  display: block; max-width: 100%; height: auto; margin: 14px auto;
  border-radius: 12px; background: #eeeae1;
}
.article-body table {
  width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 14px;
  display: block; overflow-x: auto; white-space: nowrap;
}
.article-body td, .article-body th {
  border: 1px solid var(--line); padding: 8px 10px; text-align: left;
}
.article-body ul, .article-body ol { padding-left: 22px; margin: 0 0 14px; }
.article-body li { margin-bottom: 6px; }
.article-body h3, .article-body h4 { margin: 20px 0 10px; font-size: 17px; font-weight: 700; }
.article-body blockquote {
  margin: 14px 0; padding: 10px 14px; border-left: 3px solid var(--brand);
  background: var(--brand-soft); border-radius: 0 10px 10px 0; color: var(--ink-2);
}
.article-body a { color: var(--brand); border-bottom: 1px solid rgba(14, 92, 76, .25); }
.article-body font, .article-body span { font-size: inherit; }
.article-body div { margin: 0 0 14px; }

.article-foot {
  margin: 20px 0 0; padding-top: 16px; border-top: 1px solid var(--line-2);
  display: flex; gap: 10px; flex-wrap: wrap;
}
.pn { display: grid; gap: 8px; margin-top: 18px; }
.pn a {
  display: flex; gap: 8px; align-items: flex-start;
  padding: 12px 14px; border-radius: 12px; background: #fff;
  border: 1px solid var(--line); font-size: 13.5px; line-height: 1.5;
}
.pn a b { flex: 0 0 auto; color: var(--ink-3); font-weight: 600; font-size: 12px; padding-top: 1px; }

/* ---------------- 相册 ---------------- */
.album-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.album {
  display: block; border-radius: 14px; overflow: hidden;
  background: #fff; border: 1px solid var(--line);
}
.album .cover { aspect-ratio: 4 / 3; background: #eae6dd; overflow: hidden; }
.album .cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.album .cap { padding: 9px 10px 10px; }
.album .cap b { display: block; font-size: 13px; font-weight: 600; line-height: 1.4; }
.album .cap span { font-size: 11px; color: var(--ink-3); }

.masonry { columns: 2; column-gap: 8px; }
.masonry img {
  width: 100%; display: block; border-radius: 10px; margin-bottom: 8px;
  background: #eae6dd;
}

/* ---------------- 视频列表 ---------------- */
.vgrid { display: grid; gap: 10px; }
.vitem {
  display: flex; gap: 12px; align-items: center;
  background: #fff; border: 1px solid var(--line);
  border-radius: 14px; padding: 10px;
}
.vitem .vt { flex: 0 0 96px; aspect-ratio: 16/10; border-radius: 10px; overflow: hidden; position: relative;
  background: linear-gradient(150deg, #0f5c4c, #178a70); }
.vitem .vt img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vitem .vt .pv {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: rgba(9, 40, 33, .35); color: #fff;
}
.vitem .vt .pv svg { width: 22px; height: 22px; }
.vitem h4 { margin: 0 0 4px; font-size: 14px; font-weight: 600; line-height: 1.45; }
.vitem p { margin: 0; font-size: 11.5px; color: var(--ink-3); }

.player {
  width: 100%; border-radius: 14px; overflow: hidden; background: #000;
  margin: 6px 0 16px;
}
.player video { width: 100%; display: block; max-height: 70vh; }

/* ---------------- 课程详情 ---------------- */
.course-hero {
  border-radius: 18px; padding: 22px 18px; color: #fff; position: relative; overflow: hidden;
  background: linear-gradient(155deg, #0f5c4c, #0a3b31 78%);
}
.course-hero.warm { background: linear-gradient(155deg, #b8442b, #8d3220 78%); }
.course-hero .tag { background: rgba(255,255,255,.16); color: #fff; }
.course-hero h1 { margin: 10px 0 8px; font-size: 23px; font-weight: 800; line-height: 1.35; letter-spacing: -.02em; }
.course-hero p { margin: 0 0 16px; font-size: 13.5px; color: rgba(255,255,255,.8); line-height: 1.65; }
.course-facts {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: rgba(255,255,255,.18); border-radius: 12px; overflow: hidden;
  border: 1px solid rgba(255,255,255,.18);
}
.course-facts div { background: rgba(8,34,28,.4); padding: 10px 8px; text-align: center; }
.course-facts b { display: block; font-size: 13px; font-weight: 700; line-height: 1.35; letter-spacing: -.01em; }
.course-facts span { display: block; font-size: 10.5px; color: rgba(255,255,255,.65); margin-top: 2px; }

.kv { display: grid; gap: 10px; }
.kv-row { display: flex; gap: 12px; font-size: 14px; line-height: 1.65; }
.kv-row b { flex: 0 0 68px; color: var(--ink-3); font-weight: 600; }
.kv-row span { color: var(--ink); }

.outline { display: grid; gap: 8px; }
.outline details {
  background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 0 14px;
}
.outline summary {
  list-style: none; cursor: pointer; padding: 13px 24px 13px 0; position: relative;
  font-size: 14px; font-weight: 700;
}
.outline summary::-webkit-details-marker { display: none; }
.outline summary::after {
  content: "▾"; position: absolute; right: 2px; top: 12px; color: var(--ink-3); font-size: 12px;
}
.outline details[open] summary::after { content: "▴"; }
.outline ul { margin: 0 0 14px; padding-left: 18px; font-size: 13.5px; color: var(--ink-2); line-height: 1.8; }
.outline li { margin-bottom: 3px; }

.bullets { display: grid; gap: 8px; }
.bullet {
  display: flex; gap: 9px; align-items: flex-start;
  font-size: 14px; line-height: 1.65; color: var(--ink);
}
.bullet svg { flex: 0 0 18px; width: 18px; height: 18px; color: var(--brand); margin-top: 3px; }

/* ---------------- 联系 ---------------- */
.contact-card {
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  padding: 16px; margin-bottom: 12px;
}
.contact-card h3 { margin: 0 0 10px; font-size: 16px; font-weight: 800; }
.contact-card .row { display: flex; gap: 10px; font-size: 14px; line-height: 1.7; margin-bottom: 8px; }
.contact-card .row b { flex: 0 0 56px; color: var(--ink-3); font-weight: 600; font-size: 13px; padding-top: 1px; }
.contact-card .row a { color: var(--brand); font-weight: 600; }

/* ---------------- 桌面端 ---------------- */
@media (min-width: 720px) {
  body { padding-bottom: 0; }
  .bottomnav { display: none; }
  .hero h1 { font-size: 40px; }
  .hero p.lead { font-size: 16px; }
  .hero-in { padding: 52px 0 44px; }
  .section { padding: 46px 0 8px; }
  .section-head h2 { font-size: 27px; }
  .path-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .course-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .shots { grid-template-columns: repeat(3, 1fr); }
  .album-grid { grid-template-columns: repeat(3, 1fr); }
  .masonry { columns: 3; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .video-row { grid-template-columns: repeat(2, 1fr); }
  .footer .cols { grid-template-columns: repeat(3, 1fr); }
  .pn { grid-template-columns: 1fr 1fr; }
  .article-body { font-size: 17px; }
  .hero-stats { max-width: 560px; }
  .filterbar { top: 56px; }
}
@media (min-width: 1024px) {
  .course-grid { grid-template-columns: repeat(3, 1fr); }
  .shots { grid-template-columns: repeat(4, 1fr); }
  .album-grid { grid-template-columns: repeat(4, 1fr); }
  .masonry { columns: 4; }
  .hero h1 { font-size: 46px; }
  .article-body { max-width: 720px; }
}

/* ---------------- 灯箱 / 回顶 ---------------- */
#zoom {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(8, 12, 11, .93);
  display: none; place-items: center; padding: 14px;
}
#zoom.open { display: grid; }
#zoom img { max-width: 100%; max-height: 100%; border-radius: 10px; }

#totop {
  position: fixed; right: 14px; z-index: 50;
  bottom: calc(var(--nav-h) + 16px + env(safe-area-inset-bottom, 0px));
  width: 40px; height: 40px; border-radius: 50%;
  background: #fff; border: 1px solid var(--line);
  box-shadow: var(--shadow); color: var(--brand);
  display: grid; place-items: center; cursor: pointer;
  opacity: 0; pointer-events: none;
  transition: opacity .22s ease, transform .22s ease;
  transform: translateY(6px);
}
#totop svg { width: 18px; height: 18px; }
#totop.show { opacity: 1; pointer-events: auto; transform: none; }

@media (min-width: 720px) {
  #totop { right: 22px; bottom: 24px; }
}

/* 图片墙里的占位与加载 */
.shots a { background: #eae6dd; }
.article-body img { max-height: none; }
.masonry img { cursor: zoom-in; }

/* ---------------- 补充：列表与卡片 ---------------- */
.stack { display: grid; gap: 10px; }
.course-card.col { align-items: stretch; }
.course-card.col .course-main { padding: 15px 16px; }
.course-card.col h3 { font-size: 16.5px; margin: 8px 0 6px; }
.course-line { display: block; font-size: 12.5px; color: var(--brand); font-weight: 600; margin-bottom: 6px; }
.course-desc { margin: 0; font-size: 13px; color: var(--ink-2); line-height: 1.6; }
.tagrow { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 14px; }
.note { font-size: 12.5px; color: var(--ink-3); margin: 10px 0 0; line-height: 1.6; }
.player.nofile { background: #0b3d33; color: #fff; padding: 26px 18px; text-align: center; }
.player.nofile p { margin: 0 0 6px; font-size: 14px; }
.player.nofile span { font-size: 12px; color: rgba(255,255,255,.6); }
.album .cover, .album .cap { display: block; }
.album .cover img { transition: transform .4s ease; }
.album:active .cover img { transform: scale(1.03); }
.vitem .vt { display: block; }
.vitem h4 { margin: 0 0 4px; }
.vitem > div:last-child { min-width: 0; }

/* 桌面端：课程列表两列 */
@media (min-width: 720px) {
  .stack { grid-template-columns: repeat(2, 1fr); }
}

/* ---------------- 培训动态（小红书） ---------------- */
.xhs-row {
  display: grid; grid-auto-flow: column; grid-auto-columns: 62%;
  gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding-bottom: 6px; scrollbar-width: none;
}
.xhs-row::-webkit-scrollbar { display: none; }
.xhs-card {
  display: block; scroll-snap-align: start; border-radius: 16px; overflow: hidden;
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow);
  transition: transform .18s ease;
}
.xhs-card:active { transform: scale(.99); }
.xhs-cover { position: relative; aspect-ratio: 3 / 4; background: #eae6dd; overflow: hidden; }
.xhs-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.xhs-badge {
  position: absolute; left: 8px; top: 8px;
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 8px; border-radius: 999px;
  background: rgba(255, 36, 66, .93); color: #fff;
  font-size: 10px; font-weight: 700; letter-spacing: .02em;
}
.xhs-body { padding: 10px 12px 12px; }
.xhs-body b {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; font-size: 13.5px; line-height: 1.45; font-weight: 600;
}
.xhs-body span { display: block; margin-top: 6px; font-size: 11.5px; color: var(--ink-3); }

.xhs-account {
  display: flex; gap: 13px; align-items: flex-start;
  padding: 16px; border-radius: 18px;
  background: linear-gradient(140deg, #fff2f4, #ffe6ea 70%);
  border: 1px solid #ffd2da;
}
.xhs-logo {
  flex: 0 0 44px; width: 44px; height: 44px; border-radius: 12px;
  background: #ff2442; display: grid; place-items: center; color: #fff;
}
.xhs-logo svg { width: 24px; height: 24px; }
.xhs-account .xhs-info { min-width: 0; }
.xhs-account b { display: block; font-size: 14.5px; line-height: 1.4; font-weight: 700; }
.xhs-account .xid {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 6px;
  font-size: 12.5px; color: #c2304a; font-weight: 600; flex-wrap: wrap;
}
.xhs-account .copyid {
  border: 1px solid #ffb9c6; background: #fff; color: #c2304a;
  border-radius: 999px; padding: 2px 10px; font-size: 11px; font-weight: 600; cursor: pointer;
}
.xhs-account p { margin: 8px 0 0; font-size: 12.5px; color: #8d4a58; line-height: 1.6; }
.xhs-empty { text-align: center; padding: 24px 16px; color: var(--ink-3); font-size: 13px; }

@media (min-width: 720px) {
  .xhs-row {
    grid-auto-flow: row; grid-template-columns: repeat(3, 1fr);
    grid-auto-columns: auto; overflow: visible;
  }
}
@media (min-width: 1024px) {
  .xhs-row { grid-template-columns: repeat(4, 1fr); }
}


/* ---------------- 关注我们（抖音/小红书） ---------------- */
.social-grid { display: grid; gap: 12px; }
.social-card {
  display: flex; gap: 12px; align-items: center;
  padding: 12px; border-radius: 16px; background: #fff;
  border: 1px solid var(--line); box-shadow: var(--shadow);
}
.social-card img {
  flex: 0 0 96px; width: 96px; height: 128px; object-fit: cover;
  border-radius: 10px; background: #eee8df; display: block;
}
.social-card .sc-body { min-width: 0; }
.social-card .sc-body b { display: block; font-size: 14.5px; line-height: 1.4; font-weight: 700; }
.social-card .sc-id {
  display: inline-block; margin-top: 6px; padding: 2px 9px; border-radius: 999px;
  background: var(--brand-soft); color: var(--brand); font-size: 12px; font-weight: 700;
}
.social-card .sc-desc { display: block; margin-top: 7px; font-size: 12.5px; color: var(--ink-2); line-height: 1.55; }
.social-card .sc-tip { display: block; margin-top: 7px; font-size: 11.5px; color: var(--ink-3); }
@media (min-width: 720px) {
  .social-grid { grid-template-columns: repeat(2, 1fr); }
  .social-card img { flex: 0 0 120px; width: 120px; height: 160px; }
}


/* ---------------- 首页图片双栏 ---------------- */
.gal2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.gal2-col {
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  padding: 12px; box-shadow: var(--shadow);
}
.gal2-col h3 { margin: 0 0 9px; font-size: 14px; font-weight: 700; letter-spacing: -.01em; }
.gal2-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.gal2-grid a {
  display: block; position: relative; overflow: hidden; border-radius: 10px;
  background: #eee9e0; aspect-ratio: 1 / 1;
}
.gal2-grid a:first-child { grid-column: 1 / -1; aspect-ratio: 4 / 3; }
.gal2-grid a img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gal2-sub {
  margin: 20px 0 10px; font-size: 13px; font-weight: 700; color: var(--ink-2);
  display: flex; align-items: center; gap: 8px;
}
.gal2-sub::after {
  content: ""; flex: 1 1 auto; height: 1px; background: var(--line);
}
@media (max-width: 380px) {
  .gal2 { gap: 8px; }
  .gal2-col { padding: 9px; }
  .gal2-col h3 { font-size: 13px; }
}


/* ---------------- 视频弹层播放 ---------------- */
#vplayer {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(8, 12, 11, .95);
  display: grid; place-items: center; padding: 18px;
}
#vplayer .vp-inner { position: relative; width: 100%; max-width: 860px; }
#vplayer video {
  width: 100%; max-height: 78vh; border-radius: 12px;
  background: #000; display: block;
}
#vplayer .vp-close {
  position: absolute; top: -44px; right: 0;
  width: 34px; height: 34px; border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, .16); color: #fff;
  font-size: 20px; line-height: 1; cursor: pointer;
}


/* ---------------- 证书展示 ---------------- */
.cert2 { display: grid; gap: 12px; }
.cert2 a {
  display: block; background: #fff; border: 1px solid var(--line);
  border-radius: 14px; overflow: hidden; box-shadow: var(--shadow);
}
.cert2 a img { width: 100%; display: block; background: #f3f0ea; }
.cert2 .cert-cap {
  display: block; padding: 9px 12px; font-size: 12px; color: var(--ink-3);
  border-top: 1px solid var(--line-2);
}
.cert-note { margin: 10px 0 0; font-size: 12.5px; color: var(--ink-3); line-height: 1.6; }
@media (min-width: 720px) {
  .cert2 { grid-template-columns: 1fr 1fr; align-items: start; }
}
