:root {
  --linen: #f3efe8;
  --paper: #fbfaf7;
  --stone: #e4ded3;
  --oak: #b59872;
  --oak-soft: #efe6da;
  --sage: #6f8472;
  --sage-deep: #43574a;
  --sage-soft: #e7ece5;
  --ink: #2b302c;
  --muted: #8a8a82;
  --hair: rgba(43, 48, 44, .08);
  --serif: "Songti SC", "STSong", "Noto Serif SC", "Source Han Serif SC", "SimSun", serif;
  --sans: "PingFang SC", "HarmonyOS Sans SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --spring: cubic-bezier(.32, .72, 0, 1);
  --safe-b: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; }
body {
  font-family: var(--sans);
  background: #dcd6cb;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  letter-spacing: .01em;
}
body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 90;
  opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img { display: block; }
img.broken { opacity: 0; }
button { font-family: inherit; }
.ico { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.ico.sm { width: 16px; height: 16px; }
.hidden { display: none !important; }
.serif { font-family: var(--serif); }

.phone {
  max-width: 430px; margin: 0 auto; min-height: 100dvh;
  background: var(--linen); position: relative;
  box-shadow: 0 0 80px rgba(60, 50, 35, .12);
  padding-bottom: calc(96px + var(--safe-b));
  overflow-x: hidden;
}

/* 顶部栏：子页面用，首页隐藏 */
.nav {
  position: sticky; top: 0; z-index: 30;
  display: grid; grid-template-columns: 44px 1fr 44px; align-items: center;
  height: 54px; padding: 0 12px;
  background: rgba(243, 239, 232, .82);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--hair);
}
.nav #navTitle { text-align: center; font-family: var(--serif); font-size: 17px; font-weight: 600; letter-spacing: .08em; }
.nav .back {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--paper); cursor: pointer; box-shadow: 0 0 0 1px var(--hair);
}
body.is-home .nav { display: none; }

.content { padding: 0 0 12px; }

/* 悬浮胶囊 Tab */
.tabbar {
  position: fixed; z-index: 40; left: 50%; transform: translateX(-50%);
  bottom: calc(14px + var(--safe-b));
  width: min(360px, calc(100% - 40px));
  display: grid; grid-template-columns: repeat(4, 1fr);
  padding: 6px; border-radius: 999px;
  background: rgba(43, 48, 44, .9);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 18px 40px -12px rgba(30, 35, 30, .45), inset 0 1px 0 rgba(255,255,255,.08);
}
.tab {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 8px 0 6px; border-radius: 999px; cursor: pointer;
  font-size: 10px; letter-spacing: .1em; color: rgba(251, 250, 247, .55);
  transition: background .5s var(--spring), color .5s var(--spring);
}
.tab.active { background: rgba(251, 250, 247, .12); color: #fbfaf7; }

/* 首页 Hero */
.hero {
  position: relative; min-height: 560px; color: #fbfaf7;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 18px 22px 64px; overflow: hidden;
  background: #4a4a40;
}
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(30, 32, 28, .42) 0%, rgba(30, 32, 28, .08) 26%, rgba(30, 32, 28, .55) 55%, rgba(30, 32, 28, .82) 100%);
}
.hero > :not(.hero-img) { position: relative; z-index: 1; }
.hero-top { display: flex; justify-content: space-between; align-items: center; }
.wordmark { font-family: var(--serif); font-size: 18px; letter-spacing: .28em; }
.wordmark small { display: block; font-family: var(--sans); font-size: 9px; letter-spacing: .38em; opacity: .75; margin-top: 2px; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(251, 250, 247, .16); border: 1px solid rgba(251, 250, 247, .28);
  color: #fbfaf7; cursor: pointer;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px; border-radius: 999px;
  font-size: 10px; letter-spacing: .24em; text-transform: uppercase;
  background: rgba(251, 250, 247, .16); border: 1px solid rgba(251, 250, 247, .3);
}
.eyebrow.dark { background: var(--sage-soft); border-color: transparent; color: var(--sage-deep); }
.hero h1 {
  font-family: var(--serif); font-weight: 500;
  font-size: 40px; line-height: 1.22; letter-spacing: .04em;
  margin: 16px 0 12px;
}
.hero p { margin: 0; font-size: 14px; line-height: 1.75; opacity: .88; max-width: 280px; }
.hero-cta { display: flex; gap: 10px; margin-top: 26px; align-items: center; }

/* 按钮：胶囊 + 内嵌圆形图标 */
.pill {
  display: inline-flex; align-items: center; gap: 12px;
  border: none; cursor: pointer; border-radius: 999px;
  padding: 6px 6px 6px 22px; font-size: 15px; font-weight: 600; letter-spacing: .06em;
  transition: transform .5s var(--spring), background .5s var(--spring);
}
.pill:active { transform: scale(.97); }
.pill .dot {
  width: 38px; height: 38px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: transform .6s var(--spring);
}
.pill:hover .dot { transform: translate(2px, -1px) scale(1.05); }
.pill-light { background: #fbfaf7; color: var(--ink); }
.pill-light .dot { background: var(--sage-deep); color: #fbfaf7; }
.pill-dark { background: var(--sage-deep); color: #fbfaf7; }
.pill-dark .dot { background: rgba(251, 250, 247, .14); }
.pill.block { width: 100%; justify-content: space-between; }
.link-ghost {
  background: none; border: none; color: inherit; cursor: pointer;
  font-size: 14px; letter-spacing: .08em; padding: 10px 6px;
  border-bottom: 1px solid currentColor; opacity: .9;
}

/* 双层卡片 */
.shell {
  margin: 14px 16px; padding: 6px; border-radius: 28px;
  background: rgba(255, 255, 255, .38);
  box-shadow: 0 0 0 1px var(--hair);
}
.core {
  border-radius: 22px; background: var(--paper); padding: 20px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 20px 40px -28px rgba(60, 50, 35, .35);
}
.card {
  margin: 14px 16px; padding: 20px; border-radius: 24px;
  background: var(--paper);
  box-shadow: 0 0 0 1px var(--hair), 0 20px 40px -30px rgba(60, 50, 35, .35);
}

.stats-bar {
  margin: -40px 16px 0; position: relative; z-index: 2;
}
.stats-bar .core { display: grid; grid-template-columns: repeat(3, 1fr); padding: 18px 8px; }
.stats-bar .core > div { text-align: center; position: relative; }
.stats-bar .core > div + div::before {
  content: ""; position: absolute; left: 0; top: 20%; bottom: 20%; width: 1px; background: var(--hair);
}
.stat-n { font-family: var(--serif); font-size: 24px; color: var(--sage-deep); display: block; }
.stat-t { font-size: 11px; color: var(--muted); letter-spacing: .12em; }

/* 分区标题 */
.sec { padding: 44px 20px 0; }
.sec-hd { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 18px; }
.sec-hd h2 { font-family: var(--serif); font-weight: 500; font-size: 26px; margin: 10px 0 0; letter-spacing: .04em; }
.sec-hd .more {
  font-size: 12px; color: var(--muted); letter-spacing: .12em; cursor: pointer;
  display: inline-flex; align-items: center; gap: 4px; padding-bottom: 4px;
}
.sec-en { font-size: 10px; letter-spacing: .3em; color: var(--oak); text-transform: uppercase; }

/* 服务 Bento */
.bento { display: grid; grid-template-columns: 1.15fr 1fr; grid-auto-rows: 132px; gap: 10px; }
.tile {
  position: relative; overflow: hidden; border-radius: 22px; cursor: pointer;
  background: var(--stone);
  transition: transform .6s var(--spring);
}
.tile:active { transform: scale(.98); }
.tile.tall { grid-row: span 2; }
.tile.wide { grid-column: span 2; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--spring); }
.tile:hover img { transform: scale(1.05); }
.tile::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(30, 32, 28, .66));
}
.tile .cap { position: absolute; left: 14px; right: 14px; bottom: 12px; z-index: 1; color: #fbfaf7; }
.tile .cap b { display: block; font-family: var(--serif); font-weight: 500; font-size: 17px; letter-spacing: .04em; }
.tile .cap span { font-size: 11px; opacity: .85; letter-spacing: .08em; }
.tile .price-chip {
  position: absolute; top: 10px; right: 10px; z-index: 1;
  padding: 4px 10px; border-radius: 999px; font-size: 11px;
  background: rgba(251, 250, 247, .9); color: var(--ink);
}

/* 人物横滑 */
.hscroll {
  display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 20px;
  padding: 0 20px 4px; margin: 0 -20px; scrollbar-width: none;
}
.hscroll::-webkit-scrollbar { display: none; }
.person { flex: 0 0 132px; scroll-snap-align: start; cursor: pointer; }
.person .ph {
  width: 132px; height: 172px; border-radius: 20px; overflow: hidden;
  background: var(--stone); position: relative;
}
.person .ph img { width: 100%; height: 100%; object-fit: cover; }
.person .lvl {
  position: absolute; top: 8px; left: 8px;
  padding: 3px 8px; border-radius: 999px; font-size: 10px; letter-spacing: .1em;
  background: rgba(251, 250, 247, .92); color: var(--sage-deep);
}
.person .nm { font-family: var(--serif); font-size: 16px; margin-top: 10px; }
.person .sub { font-size: 11px; color: var(--muted); margin-top: 2px; }

/* 前后对比案例 */
.case-feature { border-radius: 26px; overflow: hidden; background: var(--paper); cursor: pointer; box-shadow: 0 0 0 1px var(--hair); }
.case-feature .img { aspect-ratio: 4 / 3; position: relative; background: var(--stone); }
.case-feature .img img { width: 100%; height: 100%; object-fit: cover; }
.case-feature .body { padding: 18px 20px 20px; }
.case-feature h3 { font-family: var(--serif); font-weight: 500; font-size: 19px; line-height: 1.45; margin: 8px 0 6px; }
.ba {
  position: absolute; left: 12px; bottom: 12px; display: flex; gap: 6px;
}
.ba span {
  padding: 4px 10px; border-radius: 999px; font-size: 10px; letter-spacing: .14em;
  background: rgba(251, 250, 247, .9);
}

/* 小课 */
.course-h { flex: 0 0 240px; scroll-snap-align: start; cursor: pointer; }
.course-h .ph { height: 150px; border-radius: 20px; overflow: hidden; position: relative; background: var(--stone); }
.course-h .ph img { width: 100%; height: 100%; object-fit: cover; }
.play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 46px; height: 46px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(251, 250, 247, .88); color: var(--sage-deep);
}
.dur {
  position: absolute; right: 10px; bottom: 10px; font-size: 10px; letter-spacing: .08em;
  padding: 3px 8px; border-radius: 999px; background: rgba(30, 32, 28, .6); color: #fbfaf7;
}
.course-h .nm { font-family: var(--serif); font-size: 15px; margin-top: 10px; line-height: 1.45; }

/* 动态条 */
.ticker { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--muted); }
.ticker .live { width: 7px; height: 7px; border-radius: 50%; background: var(--sage); box-shadow: 0 0 0 4px var(--sage-soft); flex-shrink: 0; }
.ticker-track { overflow: hidden; height: 20px; flex: 1; }
.ticker-list { animation: tick 14s var(--spring) infinite; }
.ticker-list div { height: 20px; line-height: 20px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@keyframes tick {
  0%, 18% { transform: translateY(0); }
  25%, 43% { transform: translateY(-20px); }
  50%, 68% { transform: translateY(-40px); }
  75%, 93% { transform: translateY(-60px); }
  100% { transform: translateY(0); }
}

/* 底部 CTA */
.cta-block {
  margin: 44px 16px 0; border-radius: 30px; padding: 30px 24px;
  background: var(--sage-deep); color: #fbfaf7; position: relative; overflow: hidden;
}
.cta-block::before {
  content: ""; position: absolute; right: -60px; top: -60px; width: 200px; height: 200px;
  border-radius: 50%; background: radial-gradient(circle, rgba(181, 152, 114, .35), transparent 70%);
}
.cta-block h3 { font-family: var(--serif); font-weight: 500; font-size: 24px; line-height: 1.4; margin: 12px 0 8px; position: relative; }
.cta-block p { margin: 0 0 22px; font-size: 13px; opacity: .8; line-height: 1.7; position: relative; }

/* 通用列表元素 */
.muted { color: var(--muted); font-size: 13px; line-height: 1.7; }
.tag {
  display: inline-block; padding: 3px 10px; border-radius: 999px;
  background: var(--sage-soft); color: var(--sage-deep);
  font-size: 11px; letter-spacing: .06em; margin: 0 4px 4px 0;
}
.tag.oak { background: var(--oak-soft); color: #8a6c47; }
.price { font-family: var(--serif); color: var(--sage-deep); font-size: 18px; }
.title-serif { font-family: var(--serif); font-weight: 500; font-size: 22px; line-height: 1.4; margin: 6px 0; }
.row { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.btn {
  border: none; border-radius: 999px; padding: 14px 18px; width: 100%;
  font-size: 15px; font-weight: 600; letter-spacing: .08em; cursor: pointer;
  transition: transform .5s var(--spring);
}
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--sage-deep); color: #fbfaf7; }
.btn-ghost { background: transparent; color: var(--sage-deep); box-shadow: inset 0 0 0 1px rgba(67, 87, 74, .3); }
.btn-sm { width: auto; padding: 9px 16px; font-size: 13px; display: inline-flex; align-items: center; gap: 6px; }

.cover { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 18px; background: var(--stone); margin-bottom: 14px; }
.cover.sm { width: 92px; height: 92px; aspect-ratio: auto; margin: 0; border-radius: 16px; flex-shrink: 0; }
.svc-row { display: flex; gap: 14px; cursor: pointer; align-items: center; }

.avatar-img, .avatar {
  width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex-shrink: 0;
  background: var(--stone); color: var(--sage-deep);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 20px;
}
.avatar-img.lg, .avatar.lg { width: 84px; height: 84px; border-radius: 26px; }
.avatar-img.sm, .avatar.sm { width: 22px; height: 22px; font-size: 11px; }
.worker-row { display: flex; gap: 14px; cursor: pointer; align-items: flex-start; }

.levels { display: flex; gap: 6px; padding: 16px 16px 0; }
.lv {
  flex: 1; text-align: center; padding: 9px 0; border-radius: 999px; cursor: pointer;
  font-size: 12px; letter-spacing: .08em; color: var(--muted);
  background: var(--paper); box-shadow: 0 0 0 1px var(--hair);
  transition: all .5s var(--spring);
}
.lv.on { background: var(--sage-deep); color: #fbfaf7; box-shadow: none; }

.stats {
  display: grid; grid-template-columns: repeat(3, 1fr); text-align: center;
  background: var(--linen); border-radius: 18px; padding: 14px 0; margin: 18px 0;
}
.stats b { display: block; font-family: var(--serif); font-weight: 500; font-size: 22px; color: var(--sage-deep); }
.block { background: var(--linen); border-radius: 16px; padding: 14px; margin-top: 12px; line-height: 1.7; font-size: 14px; }
.block b { display: block; font-size: 11px; letter-spacing: .2em; color: var(--oak); margin-bottom: 4px; }
.menu-item {
  display: inline-block; padding: 7px 12px; margin: 0 6px 6px 0; border-radius: 999px;
  font-size: 12px; background: var(--linen); color: var(--ink);
}
.bullet { display: flex; gap: 10px; align-items: center; padding: 8px 0; font-size: 14px; border-bottom: 1px solid var(--hair); }
.bullet:last-child { border-bottom: none; }
.bullet i { width: 6px; height: 6px; border-radius: 50%; background: var(--oak); flex-shrink: 0; }

.step { display: flex; gap: 14px; align-items: flex-start; }
.num {
  width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 15px; color: var(--sage-deep);
  background: var(--sage-soft);
}

label { display: block; margin-top: 16px; font-size: 11px; letter-spacing: .16em; color: var(--muted); }
.field {
  width: 100%; margin-top: 8px; padding: 13px 16px; border: none; border-radius: 16px;
  background: var(--linen); font-size: 14px; font-family: inherit; color: var(--ink);
  box-shadow: inset 0 0 0 1px transparent; transition: box-shadow .4s var(--spring), background .4s var(--spring);
}
.field:focus { outline: none; background: #fff; box-shadow: inset 0 0 0 1px rgba(67, 87, 74, .35); }
.slots { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.slot {
  padding: 9px 14px; border-radius: 999px; font-size: 13px; cursor: pointer;
  background: var(--linen); transition: all .45s var(--spring);
}
.slot.on { background: var(--sage-deep); color: #fbfaf7; }

.upload-box {
  position: relative; margin-top: 8px; padding: 22px; border-radius: 18px; cursor: pointer;
  text-align: center; font-size: 13px; color: var(--muted);
  background: var(--linen); border: 1px dashed rgba(67, 87, 74, .28);
}
.upload-box input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.upload-preview { margin: 12px auto 0; max-width: 100%; max-height: 180px; border-radius: 14px; }

/* 发现：分段 + 瀑布流 */
.seg {
  display: flex; margin: 16px; padding: 5px; border-radius: 999px;
  background: var(--paper); box-shadow: 0 0 0 1px var(--hair);
}
.seg button {
  flex: 1; border: none; background: none; border-radius: 999px; padding: 10px 0; cursor: pointer;
  font-size: 13px; letter-spacing: .1em; color: var(--muted);
  transition: all .5s var(--spring);
}
.seg button.on { background: var(--sage-deep); color: #fbfaf7; }
.waterfall { column-count: 2; column-gap: 10px; padding: 4px 16px 0; }
.wf-card {
  break-inside: avoid; margin-bottom: 10px; border-radius: 20px; overflow: hidden; cursor: pointer;
  background: var(--paper); box-shadow: 0 0 0 1px var(--hair);
}
.wf-card img { width: 100%; background: var(--stone); min-height: 100px; }
.wf-card .body { padding: 12px 12px 14px; }
.wf-card .body b { display: block; font-family: var(--serif); font-weight: 500; font-size: 14px; line-height: 1.5; }
.wf-meta { display: flex; align-items: center; gap: 6px; margin-top: 8px; }
.wf-meta span { font-size: 11px; color: var(--muted); }
.course-card { display: flex; gap: 14px; cursor: pointer; align-items: center; }
.course-card .info { flex: 1; min-width: 0; }
.video-box { border-radius: 20px; overflow: hidden; background: #22251f; margin-bottom: 16px; position: relative; }
.video-box video, .video-box img { width: 100%; max-height: 260px; object-fit: cover; }

/* 我的 */
.me-head { display: flex; gap: 14px; align-items: center; }
.admin-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.admin-tile {
  padding: 18px 14px; border-radius: 20px; cursor: pointer;
  background: var(--linen); transition: transform .5s var(--spring);
}
.admin-tile:active { transform: scale(.97); }
.admin-tile .ic {
  width: 38px; height: 38px; border-radius: 12px; margin-bottom: 12px;
  display: flex; align-items: center; justify-content: center;
  background: var(--paper); color: var(--sage-deep);
}
.admin-tile b { display: block; font-size: 14px; font-weight: 600; }
.admin-tile span { font-size: 11px; color: var(--muted); }
.list-item {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 2px; border-bottom: 1px solid var(--hair); cursor: pointer; font-size: 14px;
}
.list-item:last-child { border-bottom: none; }
.list-actions { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }

.toast {
  position: fixed; left: 50%; bottom: calc(100px + var(--safe-b)); z-index: 60;
  transform: translate(-50%, 10px); opacity: 0; pointer-events: none;
  padding: 11px 18px; border-radius: 999px; font-size: 13px; max-width: 80%;
  background: rgba(43, 48, 44, .92); color: #fbfaf7;
  transition: transform .5s var(--spring), opacity .5s var(--spring);
}
.toast.show { transform: translate(-50%, 0); opacity: 1; }

.fab { display: none; }

/* 入场动效 */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--spring), transform .9s var(--spring); }
.reveal.in { opacity: 1; transform: none; }
.page-enter { animation: pageIn .6s var(--spring); }
@keyframes pageIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .reveal, .page-enter, .ticker-list { animation: none; transition: none; opacity: 1; transform: none; }
}
