:root {
  --red: #df231d;
  --deep-red: #b51212;
  --orange: #ff6f3f;
  --amber: #ffb23e;
  --ink: #3a1511;
  --muted: #8a5a4f;
  --line: rgba(214, 42, 34, 0.18);
  --paper: #fff8ed;
  --white: #fff;
  --shadow: 0 12px 28px rgba(181, 18, 18, 0.08);
  --card-radius: 14px;
  --soft-red: #fff0e3;
  --title-red: #c51616;
  --gold: #ffdfae;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: #fff5e8;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  letter-spacing: 0;
  background:
    radial-gradient(circle at 18% 0%, rgba(255, 226, 184, 0.56), transparent 24%),
    radial-gradient(circle at 86% 8%, rgba(226, 33, 28, 0.1), transparent 28%),
    linear-gradient(180deg, #fff8ef 0%, #fff3e7 44%, #fffaf4 100%);
}

button {
  border: 0;
  font: inherit;
  letter-spacing: 0;
}

.page {
  width: min(100%, 760px);
  margin: 0 auto;
  padding: 0 14px calc(104px + env(safe-area-inset-bottom));
}

.hero {
  position: relative;
  min-height: 226px;
  margin: 0 -14px;
  padding: 12px 18px 48px;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 72%, rgba(255, 217, 166, 0.72), transparent 28%),
    radial-gradient(circle at 86% 15%, rgba(221, 26, 25, 0.16), transparent 23%),
    linear-gradient(180deg, #fffaf3 0%, #fff1df 100%);
}

.hero::before,
.hero::after {
  position: absolute;
  content: "";
  pointer-events: none;
}

.hero::before {
  width: 280px;
  height: 128px;
  left: -118px;
  bottom: -18px;
  border-radius: 55% 45% 42% 58%;
  background:
    linear-gradient(138deg, rgba(176, 10, 14, 0.96), rgba(239, 49, 38, 0.82) 46%, rgba(255, 194, 118, 0.16) 74%),
    repeating-linear-gradient(18deg, rgba(255, 255, 255, 0.2) 0 2px, transparent 2px 12px);
  transform: rotate(-11deg);
  filter: drop-shadow(0 14px 24px rgba(185, 18, 18, 0.16));
  opacity: 0.58;
}

.hero::after {
  width: 238px;
  height: 132px;
  right: -106px;
  top: 66px;
  border-radius: 48% 52% 56% 44%;
  background:
    linear-gradient(32deg, rgba(255, 198, 117, 0.12), rgba(233, 40, 31, 0.82) 42%, rgba(176, 10, 14, 0.96)),
    repeating-linear-gradient(-16deg, rgba(255, 255, 255, 0.22) 0 2px, transparent 2px 11px);
  transform: rotate(21deg);
  filter: drop-shadow(0 16px 30px rgba(185, 18, 18, 0.18));
  opacity: 0.48;
}

.topbar {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 44px;
  margin: 0 -18px;
  padding: 0 18px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 1px 0 rgba(214, 42, 34, 0.08);
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #2b1713;
  font-size: 18px;
  font-weight: 800;
}

.brand-logo {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 6px 14px rgba(245, 54, 34, 0.18);
}

.top-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.share-btn,
.official-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  height: 36px;
  padding: 0 14px;
  border: 1px solid rgba(177, 18, 18, 0.2);
  border-radius: 999px;
  color: #5b2a22;
  font-size: 14px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.9);
}

.official-btn {
  border-color: rgba(198, 22, 22, 0.2);
  color: var(--title-red);
  background: rgba(255, 247, 240, 0.94);
  box-shadow: none;
}

.hero-copy {
  position: relative;
  z-index: 1;
  padding-top: 30px;
  text-align: center;
}

.kicker,
.subtitle,
.section-note,
.dialog-note {
  margin: 0;
  color: var(--muted);
}

.kicker {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  padding: 0 12px;
  border: 1px solid rgba(197, 22, 22, 0.24);
  border-radius: 999px;
  color: var(--title-red);
  font-size: 14px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.7);
}

.hero h1 {
  margin: 12px 0 10px;
  color: var(--title-red);
  font-family: "Songti SC", "STSong", "Noto Serif SC", Georgia, serif;
  font-size: 38px;
  line-height: 1.16;
  font-weight: 900;
  text-shadow: 0 2px 0 rgba(255, 255, 255, 0.72), 0 10px 22px rgba(177, 18, 18, 0.14);
}

.subtitle {
  color: #7d4b43;
  font-size: 15px;
  font-weight: 600;
}

.wechat-user-card {
  display: inline-grid;
  grid-template-columns: 28px auto;
  grid-template-rows: auto auto;
  align-items: center;
  column-gap: 8px;
  margin-top: 14px;
  padding: 7px 12px;
  border: 1px solid rgba(245, 54, 34, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 8px 18px rgba(196, 62, 34, 0.1);
}

.wechat-user-card[hidden] {
  display: none;
}

.wechat-user-card img,
.wechat-user-card span {
  grid-row: 1 / 3;
  width: 28px;
  height: 28px;
  border-radius: 50%;
}

.wechat-user-card img {
  object-fit: cover;
}

.wechat-user-card span {
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  background: linear-gradient(135deg, #ff9a32, #f53622);
}

.wechat-user-card p,
.wechat-user-card em {
  margin: 0;
  text-align: left;
  line-height: 1.2;
}

.wechat-user-card p {
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.wechat-user-card em {
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
}

.wechat-user-card.compact {
  display: grid;
  width: fit-content;
  margin: 0 0 12px;
}

.wechat-user-card.compact[hidden] {
  display: none;
}

.expert-panel,
.benefit-card,
.case-card,
.dietitian-card,
.services {
  border: 1px solid var(--line);
  border-radius: var(--card-radius);
  background: rgba(255, 252, 246, 0.94);
  box-shadow: var(--shadow);
}

.expert-panel {
  position: relative;
  margin-top: 20px;
  padding: 16px 14px 14px;
  border-color: rgba(211, 43, 35, 0.12);
  background: rgba(255, 252, 246, 0.78);
}

.section-title,
.section-head {
  display: flex;
  align-items: center;
}

.section-title {
  gap: 7px;
}

.section-title.centered {
  justify-content: center;
}

.section-title h2,
.section-head h2 {
  margin: 0;
  color: var(--title-red);
  font-size: 22px;
  line-height: 1.2;
}

.section-title span {
  color: var(--red);
  font-size: 20px;
}

.section-note {
  margin-top: 6px;
  text-align: center;
  font-size: 14px;
}

.teacher-slider {
  overflow: hidden;
  margin-top: 12px;
}

.slider-track {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.teacher-card {
  min-width: 0;
  padding: 8px 5px 10px;
  border-radius: 12px;
  text-align: center;
  background: rgba(255, 255, 255, 0.64);
}

.portrait {
  display: grid;
  place-items: center;
  width: min(22vw, 98px);
  height: min(29vw, 128px);
  margin: 0 auto 8px;
  border-radius: 10px;
  color: #fff;
  font-size: 28px;
  font-weight: 800;
  box-shadow: inset 0 -12px 0 rgba(0, 0, 0, 0.08);
}

.portrait-photo {
  display: block;
  object-fit: contain;
  object-position: 50% 100%;
  border: 0;
  box-shadow: none;
}

.portrait-photo-zhou {
  object-position: 50% 100%;
}

.portrait-photo-cai {
  object-position: 50% 100%;
}

.portrait-male {
  background: linear-gradient(160deg, #15375b, #4d6d9a);
}

.portrait-senior {
  background: linear-gradient(160deg, #26364b, #9d8a74);
}

.portrait-female {
  background: linear-gradient(160deg, #142342, #d65b6c);
}

.teacher-card h3 {
  display: grid;
  place-items: center;
  gap: 2px;
  min-height: 46px;
  margin: 0 0 4px;
  padding: 5px 4px;
  border-radius: 999px;
  color: #fff;
  font-size: 13px;
  background: linear-gradient(180deg, #ef493a, #c81616);
  box-shadow: 0 8px 14px rgba(177, 18, 18, 0.16);
}

.teacher-card h3 span,
.teacher-card h3 em {
  display: block;
  line-height: 1.12;
}

.teacher-card h3 em {
  font-style: normal;
}

.teacher-card p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.dots {
  display: none;
  justify-content: center;
  gap: 6px;
  margin-top: 12px;
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(245, 54, 34, 0.28);
}

.dot.active {
  width: 18px;
  border-radius: 999px;
  background: var(--red);
}

.outline-action,
.primary-action,
.sticky-cta button,
.dietitian-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 999px;
  font-weight: 800;
}

.outline-action {
  display: flex;
  width: 176px;
  min-height: 38px;
  margin: 12px auto 0;
  border: 0;
  color: #fff;
  font-size: 14px;
  background: linear-gradient(180deg, #f04a3b, #d91e1c);
  box-shadow: 0 8px 16px rgba(177, 18, 18, 0.14);
}

.outline-action::after {
  content: "›";
  margin-left: 10px;
  font-size: 24px;
  line-height: 0;
}

.benefit-grid,
.case-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 14px;
}

.primary-benefits {
  position: relative;
  z-index: 2;
  margin-top: 14px;
}

.benefit-card {
  min-height: 146px;
  padding: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 247, 236, 0.96));
}

.benefit-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  color: #fff;
  font-size: 22px;
  background: linear-gradient(135deg, #ff7b4a, var(--deep-red));
}

.benefit-card h2 {
  margin: 10px 0 6px;
  font-size: 17px;
  line-height: 1.25;
}

.benefit-card p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.progress-line {
  position: relative;
  display: flex;
  justify-content: space-between;
  margin: 18px 0 0;
}

.progress-line::before {
  position: absolute;
  top: 15px;
  left: 20px;
  right: 20px;
  height: 2px;
  background: #ffc68a;
  content: "";
}

.progress-line span {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid #ff9d4b;
  border-radius: 50%;
  color: var(--deep-red);
  font-size: 12px;
  background: #fffaf2;
}

.coupon h2 {
  color: var(--red);
}

.benefit-eyebrow {
  display: inline-flex;
  width: fit-content;
  min-height: 22px;
  align-items: center;
  padding: 0 8px;
  border-radius: 999px;
  color: var(--title-red) !important;
  font-weight: 800;
  background: #fff1e5;
}

.featured-coupon {
  border-color: rgba(214, 42, 34, 0.22);
  background:
    radial-gradient(circle at 92% 18%, rgba(255, 210, 142, 0.42), transparent 32%),
    linear-gradient(180deg, #fff8ec 0%, #fff 100%);
  box-shadow: 0 14px 32px rgba(181, 18, 18, 0.12);
}

.featured-coupon h2 {
  font-size: 18px;
}

.coupon-ticket {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 54px;
  margin: 10px 0;
  border: 1px dashed rgba(204, 27, 24, 0.3);
  border-radius: 12px;
  background: linear-gradient(135deg, #fff5e6, #fff);
}

.coupon-ticket strong {
  color: var(--red);
  font-size: 32px;
  line-height: 1;
}

.coupon-ticket span {
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}

.primary-action {
  width: 100%;
  color: #fff;
  background: linear-gradient(180deg, #f54d3d, #c91617);
  box-shadow: 0 8px 14px rgba(177, 18, 18, 0.16);
}

.cases,
.dietitians,
.services {
  margin-top: 20px;
}

.section-head {
  justify-content: space-between;
  gap: 12px;
}

.text-link {
  min-width: 72px;
  color: var(--title-red);
  font-size: 14px;
  font-weight: 700;
  background: transparent;
}

.text-link::after {
  content: "›";
  margin-left: 4px;
  font-size: 20px;
  vertical-align: -1px;
}

.case-card {
  position: relative;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  column-gap: 12px;
  min-height: 156px;
  padding: 14px;
  overflow: hidden;
}

.case-card.sleep {
  background: linear-gradient(140deg, #fff 0%, #fff 54%, #eee7ff 100%);
}

.case-card.weight {
  background: linear-gradient(140deg, #fff 0%, #fff 54%, #ffe2e1 100%);
}

.case-icon {
  display: grid;
  place-items: center;
  grid-row: 1 / 3;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  color: #fff;
  font-size: 24px;
  background: linear-gradient(135deg, #7d6bf1, #ae8aff);
}

.weight .case-icon {
  background: linear-gradient(135deg, #ff4260, #ff8c52);
}

.case-card h3 {
  margin: 2px 0 4px;
  font-size: 18px;
  line-height: 1.2;
}

.case-card p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.metric-row {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  align-items: end;
  margin-top: 14px;
  padding: 9px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.62);
}

.metric-row span {
  min-width: 0;
  padding: 7px 6px;
  border-radius: 10px;
  color: var(--muted);
  font-size: 11px;
  text-align: center;
  background: rgba(255, 255, 255, 0.78);
}

.metric-row b {
  display: block;
  margin-top: 3px;
  color: var(--red);
  font-size: 19px;
  line-height: 1;
}

.metric-row strong {
  grid-column: 1 / -1;
  justify-self: end;
  min-width: 72px;
  margin-top: 2px;
  padding: 5px 12px;
  border-radius: 999px;
  color: #fff;
  font-size: 14px;
  line-height: 1;
  text-align: center;
  background: linear-gradient(135deg, #8c74ff, #ff626d);
}

.dietitian-scroller {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(360px, 88%);
  gap: 12px;
  margin-top: 12px;
  overflow-x: auto;
  padding-bottom: 4px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.dietitian-scroller::-webkit-scrollbar {
  display: none;
}

.dietitian-card {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 14px;
  min-height: 158px;
  padding: 14px;
  scroll-snap-align: start;
  border-color: rgba(214, 42, 34, 0.16);
  background: linear-gradient(180deg, #fffdf8, #fff7ee);
}

.dietitian-avatar {
  display: grid;
  align-items: end;
  justify-items: center;
  width: 112px;
  height: 146px;
  border-radius: 8px;
  color: #fff;
  font-size: 38px;
  font-weight: 900;
  background: linear-gradient(160deg, #fff0e9 0%, #ffb19e 38%, #305a79 100%);
  overflow: hidden;
}

.dietitian-avatar span {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
}

.dietitian-avatar img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: 50% 100%;
}

.dietitian-info {
  min-width: 0;
}

.dietitian-top {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}

.dietitian-top h3 {
  flex: 0 0 100%;
  margin: 0;
  font-size: 21px;
  line-height: 1.2;
  white-space: nowrap;
}

.badge,
.status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 22px;
  padding: 0 8px;
  border: 1px solid rgba(214, 42, 34, 0.24);
  border-radius: 999px;
  color: #b91918;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  background: #fff3e7;
}

.status.online {
  border-color: rgba(33, 177, 100, 0.34);
  color: #15965a;
  background: #f0fff7;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 10px 0 12px;
}

.tags span {
  padding: 5px 7px;
  border-radius: 6px;
  color: #8b2d25;
  font-size: 12px;
  background: #fff1e5;
}

.dietitian-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.dietitian-actions button {
  min-height: 38px;
  color: var(--title-red);
  font-size: 14px;
  background: #fff3ee;
  white-space: nowrap;
}

.dietitian-actions button:first-child {
  grid-column: 1 / -1;
  color: #fff;
  background: linear-gradient(180deg, #f54d3d, #c91617);
}

.services {
  padding: 14px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.service-grid button {
  min-height: 72px;
  padding: 10px 6px;
  border: 1px solid rgba(214, 42, 34, 0.18);
  border-radius: 8px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  background: linear-gradient(180deg, #fff, #fff6eb);
  box-shadow: 0 6px 14px rgba(177, 18, 18, 0.08);
}

.service-grid button::before {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin: 0 auto 6px;
  border-radius: 50%;
  color: #fff;
  font-size: 18px;
  background: linear-gradient(135deg, #ff6f3f, var(--deep-red));
  content: "＋";
}

.sticky-cta {
  position: fixed;
  z-index: 10;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 8px;
  width: min(100%, 760px);
  margin: 0 auto;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, rgba(255, 246, 235, 0), #fff4e6 32%);
}

.sticky-cta button {
  min-height: 50px;
  color: #fff;
  font-size: 15px;
  box-shadow: 0 8px 16px rgba(177, 18, 18, 0.22);
}

.sticky-cta .consult {
  border: 1px solid rgba(214, 42, 34, 0.16);
  color: #c51616;
  font-size: 16px;
  background: linear-gradient(180deg, #fff7de, #ffe4bd);
}

.sticky-cta .claim {
  font-size: 15px;
  background: linear-gradient(180deg, #f54d3d, #c91617);
}

.sheet {
  width: min(calc(100% - 28px), 560px);
  max-height: min(82vh, 720px);
  margin: auto auto 0;
  padding: 22px 16px 18px;
  border: 0;
  border-radius: 8px 8px 0 0;
  color: var(--ink);
  background: #fff;
  box-shadow: 0 -18px 42px rgba(71, 29, 18, 0.2);
}

.sheet::backdrop {
  background: rgba(42, 18, 12, 0.45);
}

.close {
  position: absolute;
  top: 10px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: var(--muted);
  font-size: 24px;
  background: #fff3ee;
}

.sheet h2 {
  margin: 0 36px 8px 0;
  font-size: 22px;
}

.profile-head {
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 12px;
  align-items: center;
}

.profile-head .dietitian-avatar {
  width: 82px;
  height: 102px;
}

.profile-head h2 {
  margin-right: 0;
}

.profile-meta,
.teacher-list {
  display: grid;
  gap: 10px;
  margin: 14px 0;
  padding: 0;
  list-style: none;
}

.profile-meta li,
.teacher-list li,
.consult-row {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffaf7;
}

.profile-meta strong,
.teacher-list strong {
  display: block;
  margin-bottom: 4px;
  color: var(--deep-red);
}

.profile-meta span,
.teacher-list span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.profile-cta {
  width: 100%;
  min-height: 46px;
  border-radius: 999px;
  color: #fff;
  font-weight: 800;
  background: linear-gradient(180deg, #ff4e33, #ee1e13);
}

.consult-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.consult-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
}

.consult-row h3 {
  margin: 0 0 6px;
  font-size: 17px;
}

.consult-row p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.consult-row button {
  min-width: 86px;
  min-height: 36px;
  border-radius: 999px;
  color: #fff;
  font-weight: 800;
  background: linear-gradient(180deg, #ff4e33, #ee1e13);
}

.consult-row.offline button {
  color: var(--muted);
  background: #f3e6df;
}

.toast {
  position: fixed;
  z-index: 20;
  right: 24px;
  bottom: 96px;
  left: 24px;
  display: none;
  width: fit-content;
  max-width: calc(100% - 48px);
  margin: 0 auto;
  padding: 10px 14px;
  border-radius: 999px;
  color: #fff;
  font-size: 14px;
  background: rgba(52, 24, 18, 0.88);
}

.toast.show {
  display: block;
}

.subpage {
  background:
    radial-gradient(circle at 78% 8%, rgba(255, 184, 87, 0.22), transparent 28%),
    linear-gradient(180deg, #fff 0%, #fff7ef 48%, #fff 100%);
}

.app-nav {
  position: sticky;
  top: 0;
  z-index: 8;
  display: grid;
  grid-template-columns: 96px 1fr 128px;
  align-items: center;
  width: min(100%, 760px);
  min-height: 58px;
  margin: 0 auto;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
}

.app-nav h1 {
  margin: 0;
  color: #111;
  font-size: 22px;
  text-align: center;
}

.back-btn {
  justify-self: start;
  width: 38px;
  height: 38px;
  color: #222;
  font-size: 44px;
  line-height: 26px;
  background: transparent;
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  justify-self: end;
  gap: 6px;
  color: #2d2927;
  font-size: 18px;
  font-weight: 700;
  white-space: nowrap;
}

.nav-brand .brand-logo {
  width: 24px;
  height: 24px;
  border-radius: 7px;
}

.subpage-main {
  width: min(100%, 760px);
  margin: 0 auto;
  padding: 12px 12px calc(34px + env(safe-area-inset-bottom));
}

.expert-hero,
.benefits-hero {
  position: relative;
  overflow: hidden;
  border-radius: 8px 8px 0 0;
  background:
    linear-gradient(135deg, rgba(255, 126, 35, 0.18), transparent 38%),
    linear-gradient(225deg, rgba(255, 184, 104, 0.34), transparent 42%),
    #fff1df;
}

.expert-hero::before,
.expert-hero::after,
.benefits-hero::before,
.benefits-hero::after {
  position: absolute;
  content: "";
  pointer-events: none;
}

.expert-hero::before,
.benefits-hero::before {
  width: 96px;
  height: 96px;
  left: -34px;
  top: 18px;
  border-radius: 18px 80px 18px 80px;
  background: linear-gradient(145deg, rgba(255, 136, 43, 0.38), rgba(255, 255, 255, 0));
  transform: rotate(28deg);
}

.expert-hero::after,
.benefits-hero::after {
  width: 132px;
  height: 132px;
  right: -40px;
  top: 10px;
  border-radius: 70% 18% 70% 18%;
  background: linear-gradient(145deg, rgba(255, 142, 48, 0.28), rgba(255, 255, 255, 0));
  transform: rotate(-22deg);
}

.expert-hero {
  padding: 38px 18px 30px;
  text-align: center;
}

.expert-hero h2,
.benefits-hero h2 {
  position: relative;
  z-index: 1;
  margin: 0;
  color: #a6400f;
  font-size: 34px;
  line-height: 1.16;
  font-weight: 900;
}

.expert-hero p,
.benefits-hero p {
  position: relative;
  z-index: 1;
  margin: 14px 0 0;
  color: #df4b16;
  font-size: 16px;
  font-weight: 700;
}

.expert-hero p span {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin-right: 6px;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, #ffb35c, #ff611d);
}

.expert-list {
  display: grid;
  gap: 12px;
  padding: 14px 12px;
  border: 1px solid rgba(255, 138, 24, 0.22);
  border-top: 0;
  border-radius: 0 0 8px 8px;
  background: rgba(255, 255, 255, 0.82);
}

.authority-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(255, 138, 24, 0.26);
  border-radius: 8px;
  background: linear-gradient(180deg, #fffdf8, #fff8ef);
}

.authority-photo {
  display: grid;
  place-items: center;
  align-self: center;
  justify-self: center;
  width: min(100%, 260px);
  height: 260px;
  min-height: 0;
  border-radius: 8px;
  color: #fff;
  font-size: 44px;
  font-weight: 900;
}

.authority-photo-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: 50% 100%;
  box-shadow: none;
}

.authority-photo-zhou {
  object-position: 50% 100%;
}

.authority-photo-cai {
  object-position: 50% 100%;
}

.authority-info {
  min-width: 0;
  text-align: center;
}

.authority-info h3 {
  margin: 4px 0 10px;
  color: #101010;
  font-size: 24px;
  line-height: 1.2;
}

.authority-info h3 span {
  display: block;
  margin: 6px 0 0;
  color: #f05b19;
  font-size: 17px;
}

.authority-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 7px;
  margin-bottom: 10px;
}

.authority-tags span {
  padding: 4px 9px;
  border: 1px solid #ff8d55;
  border-radius: 999px;
  color: #f05b19;
  font-size: 12px;
  line-height: 1.2;
  background: #fffaf5;
}

.authority-info ul {
  display: grid;
  gap: 8px;
  margin: 14px 0 0;
  padding: 0;
  color: #242424;
  font-size: 15px;
  line-height: 1.62;
  list-style: none;
  text-align: left;
}

.authority-info li {
  position: relative;
  padding-left: 18px;
}

.authority-info li::before {
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ff6b1d;
  content: "";
}

.wide-orange-action {
  display: flex;
  align-items: center;
  justify-content: center;
  width: calc(100% - 22px);
  max-width: 360px;
  min-height: 54px;
  margin: 24px auto 12px;
  border-radius: 999px;
  color: #fff;
  font-size: 22px;
  font-weight: 900;
  background: linear-gradient(180deg, #ff7a24, #ff4f12);
  box-shadow: 0 8px 16px rgba(255, 91, 22, 0.22);
}

.wide-orange-action::after {
  margin-left: 12px;
  font-size: 30px;
  content: "›";
}

.safe-note {
  margin: 0;
  color: #a6a0a0;
  font-size: 13px;
  text-align: center;
}

.benefits-main {
  padding-right: 10px;
  padding-left: 10px;
  padding-bottom: calc(112px + env(safe-area-inset-bottom));
}

.benefits-hero {
  display: grid;
  grid-template-columns: 1fr 142px;
  min-height: 186px;
  margin: 0 -10px;
  padding: 44px 18px 28px;
  border-radius: 0;
}

.benefits-hero h2 {
  color: #e65016;
  font-size: 31px;
}

.benefits-hero p {
  color: #7a2c11;
  font-size: 18px;
}

.gift-visual {
  position: relative;
  z-index: 1;
  align-self: center;
  justify-self: center;
  width: 116px;
  height: 104px;
  border-radius: 14px;
  background: linear-gradient(145deg, #ffb13d, #ff6b20);
  box-shadow: inset 0 -18px 0 rgba(197, 68, 0, 0.16), 0 16px 22px rgba(255, 106, 32, 0.22);
}

.gift-visual::before {
  position: absolute;
  top: -20px;
  left: 18px;
  width: 78px;
  height: 34px;
  border: 12px solid #ff8a18;
  border-bottom: 0;
  border-radius: 48px 48px 0 0;
  content: "";
}

.gift-visual::after {
  position: absolute;
  top: 0;
  left: 50%;
  width: 18px;
  height: 104px;
  background: rgba(255, 242, 202, 0.7);
  content: "";
  transform: translateX(-50%);
}

.gift-visual span {
  position: absolute;
  top: 22px;
  left: -34px;
  display: grid;
  place-items: center;
  width: 58px;
  height: 68px;
  border-radius: 8px;
  color: #fff;
  font-size: 24px;
  background: rgba(255, 255, 255, 0.55);
}

.gift-visual span::after {
  content: "✓";
}

.progress-panel,
.reward-card,
.rules-panel {
  border: 1px solid rgba(255, 138, 24, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 22px rgba(153, 75, 25, 0.1);
}

.progress-panel {
  position: relative;
  z-index: 1;
  margin-top: -20px;
  padding: 16px 14px 14px;
}

.progress-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 20px;
}

.progress-head h2,
.rules-panel h2 {
  margin: 0;
  color: #171717;
  font-size: 21px;
}

.progress-head h2 span,
.rules-panel h2 span {
  color: #ff650f;
}

.progress-head p {
  margin: 0;
  color: #777;
  font-size: 14px;
  white-space: nowrap;
}

.progress-head b {
  color: #ff650f;
}

.day-progress {
  position: relative;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.day-progress::before {
  position: absolute;
  top: 23px;
  right: 7%;
  left: 7%;
  height: 3px;
  background: linear-gradient(90deg, #ff650f 0 50%, #e9e9e9 50% 100%);
  content: "";
}

.day-progress li {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 6px;
  color: #777;
  font-size: 13px;
}

.day-progress strong {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 2px solid #eee;
  border-radius: 50%;
  color: #888;
  font-size: 18px;
  font-style: normal;
  background: #fff;
}

.day-progress .done strong {
  border-color: #ff650f;
  color: #fff;
  font-size: 24px;
  background: #ff650f;
}

.day-progress .today strong {
  border-color: #ff650f;
  color: #ff650f;
  background: #fff;
}

.day-progress .today::before {
  position: absolute;
  top: -28px;
  left: 50%;
  padding: 3px 9px;
  border-radius: 999px;
  color: #fff;
  font-size: 12px;
  background: #ff6224;
  content: "今天";
  transform: translateX(-50%);
}

.day-progress .done,
.day-progress .today {
  color: #ff650f;
}

.day-progress span,
.day-progress em {
  font-style: normal;
}

.progress-tip {
  margin: 24px 0 0;
  padding: 14px 16px;
  border-radius: 8px;
  color: #6f3b26;
  font-size: 15px;
  background: linear-gradient(90deg, #fff4e9, #fff8ef);
}

.progress-tip::before {
  margin-right: 10px;
  content: "☀";
}

.reward-list {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.reward-card {
  display: grid;
  grid-template-columns: 118px 1fr auto;
  gap: 14px;
  align-items: center;
  min-height: 132px;
  padding: 14px;
}

.ticket-face {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: end;
  justify-items: center;
  min-height: 92px;
  padding: 14px 10px 12px;
  border-radius: 8px;
  color: #fff;
  background:
    radial-gradient(circle at 0 22px, #fff 0 7px, transparent 8px),
    radial-gradient(circle at 0 48px, #fff 0 7px, transparent 8px),
    radial-gradient(circle at 0 74px, #fff 0 7px, transparent 8px),
    linear-gradient(135deg, #ffbd54, #ff6417);
}

.ticket-face small {
  align-self: center;
  font-size: 18px;
  font-weight: 800;
}

.ticket-face strong {
  font-size: 44px;
  line-height: 0.95;
}

.ticket-face span {
  grid-column: 1 / -1;
  font-size: 22px;
  font-weight: 800;
}

.ticket-face.zero {
  color: #e45612;
  background:
    radial-gradient(circle at 0 22px, #fff 0 7px, transparent 8px),
    radial-gradient(circle at 0 48px, #fff 0 7px, transparent 8px),
    radial-gradient(circle at 0 74px, #fff 0 7px, transparent 8px),
    linear-gradient(135deg, #fff2d5, #ffd992);
}

.reward-info {
  min-width: 0;
}

.reward-info h2 {
  margin: 0 0 8px;
  color: #151515;
  font-size: 20px;
  line-height: 1.2;
}

.reward-info mark {
  display: inline-flex;
  margin-bottom: 8px;
  padding: 3px 8px;
  border-radius: 5px;
  color: #ff5818;
  font-size: 13px;
  background: #fff0df;
}

.reward-info p {
  margin: 0 0 8px;
  color: #5d4d46;
  font-size: 14px;
}

.reward-info small {
  color: #888;
  font-size: 13px;
}

.reward-card button {
  min-width: 98px;
  min-height: 46px;
  border-radius: 999px;
  color: #fff;
  font-size: 17px;
  font-weight: 900;
  background: linear-gradient(180deg, #ff7c18, #ff4b0d);
}

.reward-card.claimed .ticket-face,
.reward-card.claimed .ticket-face.zero {
  color: #a86e43;
  background:
    radial-gradient(circle at 0 22px, #fff 0 7px, transparent 8px),
    radial-gradient(circle at 0 48px, #fff 0 7px, transparent 8px),
    radial-gradient(circle at 0 74px, #fff 0 7px, transparent 8px),
    linear-gradient(135deg, #ffe9c2, #f5d8a7);
}

.lock-state {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  color: #8e8179;
  font-size: 14px;
  background: #f5eee8;
}

.lock-state::before {
  display: block;
  margin-bottom: 2px;
  font-size: 24px;
  content: "▣";
}

.rules-panel {
  margin-top: 12px;
  padding: 18px 16px;
}

.rules-panel ol {
  display: grid;
  gap: 10px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: rule;
}

.rules-panel li {
  position: relative;
  min-height: 24px;
  padding-left: 34px;
  color: #3f3f3f;
  font-size: 14px;
  line-height: 1.55;
  counter-increment: rule;
}

.rules-panel li::before {
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  background: #ff650f;
  content: counter(rule);
}

.benefits-footer {
  position: fixed;
  z-index: 10;
  right: 0;
  bottom: 0;
  left: 0;
  width: min(100%, 760px);
  margin: 0 auto;
  padding: 12px 12px calc(10px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), #fff 30%);
}

.benefits-footer button {
  width: 100%;
  min-height: 58px;
  border-radius: 8px;
  color: #fff;
  font-size: 21px;
  font-weight: 900;
  background: linear-gradient(180deg, #ff7425, #ff4f12);
  box-shadow: 0 8px 18px rgba(255, 91, 22, 0.22);
}

.benefits-footer button::before {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin-right: 10px;
  border-radius: 50%;
  color: #ff6417;
  background: #fff;
  content: "↝";
}

.benefits-footer p {
  margin: 8px 0 0;
  color: #9c9c9c;
  font-size: 13px;
  text-align: center;
}

@media (max-width: 420px) {
  .page {
    padding-right: 12px;
    padding-left: 12px;
  }

  .hero {
    margin-right: -12px;
    margin-left: -12px;
    min-height: 218px;
    padding-bottom: 44px;
  }

  .brand {
    font-size: 18px;
  }

  .hero h1 {
    font-size: 32px;
  }

  .slider-track,
  .benefit-grid,
  .case-grid {
    gap: 10px;
  }

  .benefit-card,
  .case-card {
    padding: 12px;
  }

  .benefit-card h2 {
    font-size: 16px;
  }

  .featured-coupon h2 {
    font-size: 17px;
  }

  .coupon-ticket {
    gap: 8px;
  }

  .coupon-ticket strong {
    font-size: 28px;
  }

  .portrait {
    width: min(22vw, 88px);
    height: min(29vw, 116px);
  }

  .teacher-card h3 {
    min-height: 42px;
    font-size: 12px;
  }

  .teacher-card p {
    font-size: 10px;
  }

  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dietitian-scroller {
    grid-auto-columns: minmax(324px, 92%);
  }

  .dietitian-card {
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 12px;
  }

  .dietitian-avatar {
    width: 96px;
    height: 128px;
  }

  .dietitian-top h3 {
    font-size: 20px;
  }

  .app-nav {
    grid-template-columns: 56px 1fr 104px;
    min-height: 52px;
    padding: 7px 10px;
  }

  .app-nav h1 {
    font-size: 20px;
  }

  .nav-brand {
    font-size: 15px;
  }

  .expert-hero h2 {
    font-size: 29px;
  }

  .expert-hero p {
    font-size: 14px;
  }

  .authority-card {
    gap: 12px;
    padding: 12px;
  }

  .authority-photo {
    width: min(100%, 250px);
    height: 250px;
    min-height: 0;
  }

  .authority-info h3 {
    font-size: 21px;
  }

  .authority-info ul {
    font-size: 13px;
  }

  .benefits-hero {
    grid-template-columns: 1fr 116px;
    min-height: 174px;
  }

  .benefits-hero h2 {
    font-size: 28px;
  }

  .gift-visual {
    width: 96px;
    height: 88px;
  }

  .reward-card {
    grid-template-columns: 102px 1fr;
  }

  .reward-card button,
  .lock-state {
    grid-column: 2;
    justify-self: start;
  }

  .lock-state {
    width: auto;
    height: 34px;
    padding: 0 14px;
    border-radius: 999px;
  }

  .lock-state::before {
    display: inline;
    margin: 0 6px 0 0;
    font-size: 15px;
  }

  .day-progress strong {
    width: 38px;
    height: 38px;
  }

  .day-progress::before {
    top: 19px;
  }
}

@media (max-width: 360px) {
  .hero h1 {
    font-size: 29px;
  }

  .teacher-card h3 {
    font-size: 11px;
  }

  .dietitian-scroller {
    grid-auto-columns: minmax(300px, 94%);
  }

  .dietitian-card {
    grid-template-columns: 88px minmax(0, 1fr);
  }

  .dietitian-avatar {
    width: 88px;
    height: 120px;
  }

  .benefit-grid,
  .case-grid {
    grid-template-columns: 1fr;
  }

  .primary-benefits {
    margin-top: 12px;
  }

  .authority-card {
    grid-template-columns: 1fr;
  }

  .authority-photo {
    width: min(100%, 242px);
    height: 242px;
    min-height: 0;
  }

  .benefits-hero {
    grid-template-columns: 1fr;
  }

  .gift-visual {
    display: none;
  }

  .day-progress {
    overflow-x: auto;
    grid-template-columns: repeat(7, 54px);
    padding-bottom: 4px;
  }

  .reward-card {
    grid-template-columns: 1fr;
  }

  .reward-card button,
  .lock-state {
    grid-column: auto;
  }
}
