:root {
  --ink: #2f2a28;
  --muted: #6d625b;
  --paper: #f7f3ec;
  --line: rgba(47, 42, 40, 0.14);
  --teal: #18aaa8;
  --teal-dark: #087f7e;
  --gold: #c8963e;
  --brown: #3c2415;
  --taihe: #285f4a;
  --taihe-red: #9d2933;
  --fashion: #c9a66b;
  --fashion-ink: #4f3b31;
  --book: #496e67;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 4%, rgba(24, 170, 168, 0.12), transparent 28%),
    radial-gradient(circle at 88% 2%, rgba(200, 150, 62, 0.16), transparent 28%),
    var(--paper);
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
}

.preview-shell {
  width: min(1760px, calc(100vw - 40px));
  margin: 0 auto;
  padding: 34px 0 54px;
}

.preview-header {
  padding: 30px clamp(18px, 4vw, 54px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
}

.eyebrow,
.section-title p {
  margin: 0 0 10px;
  color: var(--teal-dark);
  font-size: 13px;
  font-weight: 800;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  font-size: clamp(30px, 4vw, 56px);
  line-height: 1.1;
  letter-spacing: 0;
}

.lead {
  max-width: 920px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

.decision-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.decision-strip span,
.decision-strip a {
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
}

.section-block {
  margin-top: 34px;
}

.position-board {
  margin-top: 24px;
  padding: 24px clamp(18px, 4vw, 42px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.84);
}

.position-board h2 {
  margin: 0 0 16px;
  font-size: clamp(22px, 2.4vw, 32px);
}

.position-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.position-grid div {
  min-height: 124px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.position-grid b {
  display: block;
  margin-bottom: 9px;
}

.position-grid span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.section-title {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: end;
  margin-bottom: 18px;
}

.section-title h2 {
  margin: 0;
  font-size: clamp(22px, 2.4vw, 34px);
  letter-spacing: 0;
}

.phone-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(320px, 1fr));
  gap: 24px;
}

.phone-card,
.mini-phone,
.confirm-board {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 16px 42px rgba(47, 42, 40, 0.08);
}

.phone-card {
  padding: 18px;
}

.phone-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
}

.phone-meta strong {
  font-size: 18px;
}

.phone-meta span,
.note,
.mini-phone > span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.phone-frame {
  width: 100%;
  max-width: 390px;
  margin: 0 auto;
  padding: 12px;
  border: 10px solid #222;
  border-radius: 28px;
  background: #111;
}

.status-bar {
  height: 34px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 12px;
  border-radius: 14px 14px 0 0;
  background: #fff;
  font-size: 12px;
  font-weight: 700;
}

.screen {
  position: relative;
  height: 720px;
  overflow: hidden;
  border-radius: 0 0 16px 16px;
  background: #f5f5f5;
}

.search-row {
  display: grid;
  grid-template-columns: 105px 1fr;
  gap: 8px;
  align-items: center;
  height: 44px;
  padding: 7px 10px;
  color: #fff;
  background: var(--teal);
  font-size: 12px;
}

.search-row div {
  padding: 7px 10px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.92);
  color: #98a0a0;
}

.hero-banner {
  height: 136px;
  padding: 24px 22px;
  background: linear-gradient(125deg, #bff4e1, #76d9c4 54%, #ecfff8);
  color: #087f7e;
}

.hero-banner b {
  display: block;
  font-size: 20px;
  font-style: italic;
}

.hero-banner strong {
  display: block;
  margin-top: 8px;
  color: #264a46;
  font-size: 25px;
}

.hero-banner span {
  display: inline-block;
  margin-top: 8px;
  padding: 4px 8px;
  background: #087f7e;
  color: #fff;
}

.icon-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px 8px;
  padding: 16px 10px;
  background: #fff;
  text-align: center;
  font-size: 12px;
}

.icon-grid i {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  margin: 0 auto 5px;
  border-radius: 50%;
  color: #fff;
  font-style: normal;
  font-size: 12px;
  font-weight: 800;
}

.teal-icons i {
  background: var(--teal);
  box-shadow: inset 0 0 0 4px rgba(245, 196, 47, 0.72);
}

.tabs-row {
  display: flex;
  gap: 16px;
  padding: 12px 12px 8px;
  color: var(--teal-dark);
  font-size: 12px;
  background: #fff;
  border-bottom: 2px solid var(--teal);
}

.upgrade-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 10px;
  background: #fff;
}

.upgrade-row span {
  min-height: 34px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  color: #087f7e;
  background: rgba(24, 170, 168, 0.1);
  font-size: 12px;
  font-weight: 800;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  padding: 6px;
  background: var(--teal);
}

.product-card {
  min-height: 122px;
  display: flex;
  flex-direction: column;
  justify-content: end;
  padding: 10px;
  border-radius: 5px;
  color: #fff;
  background: #e8f8f7;
}

.product-card strong {
  font-size: 16px;
}

.product-card span {
  margin-top: 4px;
  font-size: 12px;
}

.product-card.dark {
  background: linear-gradient(135deg, #15191e, #476d86);
}

.product-card.clean {
  color: #222;
  background: linear-gradient(135deg, #f8f8f8, #cfd8dc);
}

.product-card.warm {
  background: linear-gradient(135deg, #111, #8c1820);
}

.product-card.health {
  background: linear-gradient(135deg, #e8fdff, #64c7cc);
  color: #164c4f;
}

.coupon-float {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 54px;
  padding: 13px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(21, 172, 168, 0.88), rgba(196, 246, 234, 0.95));
  color: #fff;
  text-align: center;
  font-size: 18px;
  font-weight: 900;
  box-shadow: 0 6px 18px rgba(8, 127, 126, 0.35);
}

.bottom-tabs {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 48px;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  place-items: center;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(24, 170, 168, 0.96));
  color: #0c4b4a;
  font-size: 12px;
}

.member-hero {
  padding: 22px 16px 18px;
  background: var(--teal);
  color: #fff;
}

.avatar-line {
  display: flex;
  align-items: center;
  gap: 12px;
}

.avatar {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #ffb800;
}

.member-hero button,
.birth-card button,
.fashion-hero button,
.activity-card button {
  border: 0;
  border-radius: 999px;
  min-height: 38px;
  padding: 0 18px;
  color: #fff;
  background: #1f2224;
  font-weight: 800;
}

.member-hero button {
  display: block;
  margin: 12px auto;
}

.wallet-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  text-align: center;
}

.wallet-row b {
  display: block;
  font-size: 20px;
}

.panel,
.list-panel,
.birth-card,
.report-preview,
.activity-card,
.book-card,
.ai-box,
.butler-card {
  margin: 10px;
  padding: 14px;
  border-radius: 8px;
  background: #fff;
}

.panel-head {
  display: flex;
  justify-content: space-between;
}

.order-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-top: 18px;
  color: var(--teal-dark);
  text-align: center;
  font-size: 12px;
}

.list-panel p {
  margin: 0;
  padding: 11px 4px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.taihe-screen {
  background:
    linear-gradient(180deg, rgba(248, 244, 236, 0.94), rgba(243, 235, 221, 0.96)),
    #f6efe4;
}

.ink-hero {
  min-height: 178px;
  padding: 30px 24px;
  background: linear-gradient(140deg, rgba(40, 95, 74, 0.9), rgba(157, 41, 51, 0.72));
  color: #fff;
}

.ink-hero span {
  display: inline-block;
  margin-bottom: 12px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  font-size: 12px;
}

.ink-hero h3,
.gold-hero h3,
.book-hero h3,
.fashion-hero h3 {
  margin: 0;
  font-size: 26px;
  line-height: 1.25;
  letter-spacing: 0;
}

.ink-hero p,
.gold-hero p,
.book-hero p,
.fashion-hero p {
  margin: 10px 0 0;
  line-height: 1.6;
}

.birth-card b {
  display: block;
  margin-bottom: 10px;
  font-size: 18px;
}

.form-line {
  margin-bottom: 8px;
  padding: 12px;
  border: 1px solid #ddcdbb;
  border-radius: 6px;
  color: #8a7868;
  background: #fbf8f2;
}

.birth-card button {
  width: 100%;
  margin-top: 4px;
  background: var(--taihe-red);
}

.mini-feature-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 10px;
}

.mini-feature-row span {
  padding: 10px 4px;
  border-radius: 6px;
  background: rgba(40, 95, 74, 0.12);
  color: var(--taihe);
  text-align: center;
  font-weight: 800;
}

.report-preview {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 10px;
}

.report-preview.full {
  min-height: 144px;
}

.report-head {
  margin: 10px;
  padding: 22px 20px;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, #285f4a, #9d2933);
}

.report-head small {
  font-weight: 800;
}

.report-head h3 {
  margin: 8px 0 0;
  font-size: 24px;
  letter-spacing: 0;
}

.advice-stack {
  display: grid;
  gap: 8px;
  margin: 10px;
}

.advice-stack div {
  padding: 12px;
  border-radius: 8px;
  background: #fff;
}

.advice-stack b,
.advice-stack span {
  display: block;
}

.advice-stack span {
  margin-top: 5px;
  color: #6d625b;
  font-size: 13px;
  line-height: 1.55;
}

.radar {
  aspect-ratio: 1;
  border-radius: 50%;
  background: conic-gradient(from 40deg, #9d2933, #d9b16e, #285f4a, #9d2933);
  opacity: 0.88;
}

.gold-hero {
  padding: 32px 22px;
  color: #fff;
  background: linear-gradient(135deg, #3c2415, #c8963e);
}

.gold-hero small,
.book-hero small,
.fashion-hero small {
  display: block;
  margin-bottom: 8px;
  font-weight: 800;
}

.gold-icons i {
  background: var(--gold);
  color: #3c2415;
}

.activity-card {
  border-left: 4px solid var(--gold);
}

.activity-card button {
  margin-top: 10px;
  background: var(--gold);
  color: #3c2415;
}

.activity-card.soft {
  background: #faf4e8;
}

.read-screen {
  background: #f0f5f1;
}

.book-hero {
  margin: 10px;
  padding: 24px 20px;
  border-radius: 8px;
  background: linear-gradient(145deg, #496e67, #d8c692);
  color: #fff;
}

.book-card.active {
  border: 1px solid rgba(73, 110, 103, 0.24);
}

.book-card span {
  color: var(--book);
  font-size: 12px;
  font-weight: 800;
}

.book-card b {
  display: block;
  margin-top: 8px;
  font-size: 18px;
}

.two-col {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 10px;
}

.two-col div {
  min-height: 96px;
  padding: 14px;
  border-radius: 8px;
  background: #fff;
}

.ai-box {
  color: #fff;
  background: #496e67;
}

.lx-screen {
  background: #f8f4ef;
}

.fashion-hero {
  margin: 10px;
  padding: 24px 20px;
  border-radius: 8px;
  background: linear-gradient(135deg, #f1ddbf, #fff8ee 48%, #d0b176);
  color: var(--fashion-ink);
}

.fashion-hero button {
  width: 100%;
  margin-top: 14px;
  color: #332418;
  background: #c9a66b;
}

.diagnosis-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 10px;
}

.diagnosis-grid div {
  min-height: 112px;
  padding: 10px;
  border-radius: 8px;
  background: #fff;
  text-align: center;
}

.diagnosis-grid span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  margin: 0 auto 8px;
  border-radius: 50%;
  background: #ead6b5;
}

.diagnosis-grid b,
.diagnosis-grid em {
  display: block;
  font-size: 12px;
  font-style: normal;
}

.diagnosis-grid em {
  margin-top: 5px;
  color: #7b685d;
}

.butler-card {
  background: linear-gradient(90deg, rgba(201, 166, 107, 0.24), #fff);
}

.before-after {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin: 10px;
}

.before-after div {
  min-height: 124px;
  display: grid;
  place-items: end start;
  padding: 12px;
  border-radius: 8px;
  color: #fff;
  font-weight: 800;
}

.before-after div:first-child {
  background: linear-gradient(135deg, #665247, #d8c4aa);
}

.before-after div:last-child {
  background: linear-gradient(135deg, #1a1a2e, #c9a66b);
}

.upload-zone {
  margin: 10px;
  min-height: 168px;
  padding: 22px;
  border: 2px dashed rgba(201, 166, 107, 0.8);
  border-radius: 8px;
  background: #fffaf1;
  color: var(--fashion-ink);
}

.upload-zone small {
  font-weight: 800;
  color: #a98442;
}

.upload-zone h3 {
  margin: 8px 0;
  font-size: 24px;
  letter-spacing: 0;
}

.wardrobe-strip,
.flow-card,
.growth-card,
.rights-card,
.verify-card,
.safety-card {
  margin: 10px;
  padding: 14px;
  border-radius: 8px;
  background: #fff;
}

.wardrobe-strip div,
.lesson-grid,
.match-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 10px;
}

.wardrobe-strip span,
.lesson-grid span,
.match-grid span {
  min-height: 34px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: rgba(201, 166, 107, 0.16);
  color: #6f552e;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.tryon-result {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin: 10px;
}

.tryon-result div {
  min-height: 128px;
  display: grid;
  place-items: end start;
  padding: 12px;
  border-radius: 8px;
  color: #fff;
  font-weight: 800;
}

.tryon-result div:first-child {
  background: linear-gradient(135deg, #6b5b52, #d9cbb8);
}

.tryon-result div:last-child {
  background: linear-gradient(135deg, #16162b, #d2b16e);
}

.compact-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(220px, 1fr));
  gap: 18px;
}

.mini-phone {
  padding: 16px;
}

.mini-phone strong {
  display: block;
  margin-bottom: 10px;
  font-size: 18px;
}

.mini-screen {
  min-height: 230px;
  padding: 18px;
  border: 8px solid #222;
  border-radius: 24px;
  color: #fff;
}

.mini-screen h3 {
  margin: 0 0 8px;
  font-size: 22px;
}

.mini-screen p {
  line-height: 1.6;
}

.home-service .mini-screen {
  background: linear-gradient(135deg, #28745f, #70b6a1);
}

.children .mini-screen {
  background: linear-gradient(135deg, #386fc4, #f1bd56);
}

.adult .mini-screen {
  background: linear-gradient(135deg, #5b4f91, #b58b54);
}

.love .mini-screen {
  background: linear-gradient(135deg, #7e4f62, #d7acb8);
}

.mini-screen.muted {
  filter: saturate(0.75);
}

.service-list {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}

.service-list span {
  padding: 8px 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.2);
}

.service-screen {
  background: #eff7f3;
}

.service-hero,
.edu-hero,
.adult-hero,
.love-hero {
  margin: 10px;
  padding: 24px 20px;
  border-radius: 8px;
  color: #fff;
}

.service-hero {
  background: linear-gradient(135deg, #28745f, #79b69f);
}

.edu-hero {
  background: linear-gradient(135deg, #386fc4, #f0b953);
}

.adult-hero {
  background: linear-gradient(135deg, #50468d, #b58b54);
}

.love-hero {
  background: linear-gradient(135deg, #7e4f62, #d7acb8);
}

.service-hero small,
.edu-hero small,
.adult-hero small,
.love-hero small {
  font-weight: 800;
}

.service-hero h3,
.edu-hero h3,
.adult-hero h3,
.love-hero h3 {
  margin: 8px 0;
  font-size: 25px;
  letter-spacing: 0;
  line-height: 1.25;
}

.service-menu {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 10px;
}

.service-menu span {
  min-height: 54px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #fff;
  color: #28745f;
  font-size: 13px;
  font-weight: 800;
}

.worker-card,
.course-card,
.lesson-card {
  margin: 10px;
  padding: 15px;
  border-radius: 8px;
  background: #fff;
}

.worker-card button,
.course-card button,
.lesson-card button,
.verify-card button {
  width: 100%;
  min-height: 38px;
  margin-top: 10px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: #222;
  font-weight: 800;
}

.flow-card span,
.growth-card p,
.rights-card p,
.safety-card p {
  display: block;
  margin-top: 8px;
  color: #6d625b;
  line-height: 1.55;
}

.children-screen {
  background: #f3f6ff;
}

.course-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 10px;
}

.course-tabs span {
  padding: 10px 0;
  border-radius: 999px;
  background: #fff;
  color: #386fc4;
  text-align: center;
  font-weight: 800;
}

.course-card {
  border-left: 4px solid #386fc4;
}

.course-card button {
  background: #386fc4;
}

.adult-screen {
  background: #f4f1fa;
}

.lesson-card {
  border-left: 4px solid #5b4f91;
}

.lesson-card button {
  background: #5b4f91;
}

.lesson-grid {
  margin: 10px;
}

.lesson-grid span {
  min-height: 56px;
  background: #fff;
  color: #5b4f91;
}

.love-screen {
  background: #fbf2f5;
}

.verify-card {
  border-left: 4px solid #9b5d73;
}

.verify-card button {
  background: #9b5d73;
}

.match-grid {
  margin: 10px;
  grid-template-columns: repeat(2, 1fr);
}

.match-grid span {
  min-height: 58px;
  background: #fff;
  color: #7e4f62;
}

.confirm-board {
  margin-top: 34px;
  padding: 24px clamp(18px, 4vw, 42px);
}

.confirm-board h2 {
  margin: 0 0 14px;
}

.confirm-board li {
  margin: 10px 0;
  line-height: 1.7;
}

@media (max-width: 1180px) {
  .phone-grid,
  .compact-grid,
  .position-grid {
    grid-template-columns: repeat(2, minmax(280px, 1fr));
  }
}

@media (max-width: 720px) {
  .preview-shell {
    width: min(100vw - 20px, 420px);
    padding-top: 14px;
  }

  .phone-grid,
  .compact-grid,
  .position-grid {
    grid-template-columns: 1fr;
  }

  .phone-card {
    padding: 12px;
  }

  .phone-meta {
    align-items: flex-start;
    flex-direction: column;
  }

  .phone-frame {
    max-width: 360px;
  }

  .screen {
    height: 680px;
  }
}
