:root {
  --page: #f6f7f7;
  --surface: #ffffff;
  --surface-soft: #f8fbfa;
  --ink: #1f2926;
  --muted: #76827e;
  --subtle: #9aa5a1;
  --line: #e3e9e6;
  --brand: #27a684;
  --brand-dark: #168069;
  --brand-soft: #e7f7f2;
  --accent: #df6d2e;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--page);
}

body {
  margin: 0;
  width: 100%;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--page);
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", sans-serif;
}

body,
button,
a {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
p,
dl,
dd,
ol {
  margin: 0;
}

main {
  padding-bottom: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100% - 64px, var(--max));
  min-height: 72px;
  margin: 0 auto;
}

.brand {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0;
}

.desktop-nav,
.auth-links {
  display: flex;
  gap: 24px;
  align-items: center;
  color: #64716d;
  font-size: 14px;
}

.auth-links {
  gap: 14px;
}

.mobile-header {
  display: none;
}

.breadcrumb {
  width: min(100% - 64px, var(--max));
  margin: 0 auto;
  padding: 34px 0 28px;
  color: #7d8985;
  font-size: 22px;
  font-weight: 600;
}

.hero {
  background: transparent;
}

.hero__inner {
  display: grid;
  grid-template-columns: minmax(320px, 430px) minmax(460px, 1fr);
  gap: 62px;
  width: min(100% - 64px, var(--max));
  margin: 0 auto;
  padding: 58px 0 64px;
  background: var(--surface);
  border-block: 1px solid var(--line);
}

.portrait-panel {
  position: relative;
  min-height: 320px;
  aspect-ratio: 1 / 1;
  background: #f4f0ea;
  overflow: hidden;
}

.portrait-panel img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
}

.profile-summary {
  align-self: center;
}

.name-line {
  display: flex;
  gap: 12px;
  align-items: center;
}

.name-line h1 {
  font-size: 38px;
  line-height: 1.15;
  letter-spacing: 0;
}

.verified {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  color: var(--brand-dark);
  background: var(--brand-soft);
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.profile-subtitle {
  margin-top: 14px;
  color: var(--muted);
  font-size: 15px;
}

.info-table {
  margin-top: 26px;
}

.info-table div {
  display: grid;
  grid-template-columns: 160px 1fr;
  align-items: center;
  min-height: 60px;
  border-bottom: 1px solid var(--line);
}

.info-table dt {
  color: var(--muted);
  font-size: 15px;
}

.info-table dd {
  font-size: 22px;
  font-weight: 800;
}

.info-table .price {
  color: var(--accent);
}

.profile-note {
  margin-top: 24px;
}

.profile-note strong {
  display: block;
  margin-bottom: 8px;
  font-size: 16px;
}

.profile-note p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 20px;
  margin-top: 30px;
}

.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  border-radius: 5px;
  font-weight: 800;
}

.primary-button {
  min-width: 260px;
  color: #fff;
  background: var(--brand);
}

.booking-dialog {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  place-items: center;
  padding: 24px;
}

.booking-dialog.is-open {
  display: grid;
}

.booking-dialog__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(22, 31, 28, 0.38);
  backdrop-filter: blur(4px);
}

.booking-dialog__panel {
  position: relative;
  width: min(560px, 100%);
  background: transparent;
}

.booking-dialog__close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: #6f7c78;
  background: rgba(255, 255, 255, 0.88);
  border-radius: 50%;
}

.booking-dialog__close:focus {
  outline: none;
}

.booking-dialog__close:focus-visible {
  box-shadow: 0 0 0 2px rgba(39, 166, 132, 0.28);
}

.booking-dialog__close svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 2;
}

.booking-dialog__card {
  padding: 22px 22px 24px;
  text-align: center;
  background: #f8fbfa;
  border: 1px solid #bfe2d8;
  border-radius: 6px;
}

.booking-dialog__card img {
  display: block;
  width: 180px;
  height: 180px;
  margin: 0 auto 16px;
  object-fit: contain;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.booking-dialog__card h2 {
  color: var(--brand-dark);
  font-size: 18px;
  line-height: 1.3;
}

.booking-dialog__card p {
  max-width: 500px;
  margin: 10px auto 0;
  color: #6f7c78;
  font-size: 15px;
  line-height: 1.8;
}

.mobile-tabs {
  display: none;
}

.detail-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  width: min(100% - 64px, var(--max));
  margin: 0 auto;
  background: var(--surface);
  border-inline: 1px solid var(--line);
}

.anchor-nav {
  position: sticky;
  top: 73px;
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 28px;
  min-height: calc(100vh - 73px);
  padding: 70px 42px;
  border-right: 1px solid var(--line);
}

.anchor-nav a {
  position: relative;
  color: #76827e;
  font-size: 18px;
  font-weight: 800;
}

.anchor-nav a::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -18px;
  width: 9px;
  height: 9px;
  margin-top: -4px;
  background: #83918d;
  border-radius: 50%;
}

.anchor-nav a.active {
  color: var(--brand-dark);
}

.anchor-nav a.active::after {
  background: var(--brand);
}

.content-flow {
  min-width: 0;
}

.detail-section {
  padding: 32px 32px 34px;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 96px;
}

.section-heading {
  margin-bottom: 18px;
}

.section-heading h2 {
  font-size: 24px;
  line-height: 1.25;
  letter-spacing: 0;
}

.section-heading p {
  margin-top: 8px;
  color: var(--subtle);
  font-size: 13px;
  line-height: 1.6;
}

.detail-section > p {
  max-width: 760px;
  color: #707b77;
  font-size: 15px;
  line-height: 1.9;
}

.detail-section > p + p {
  margin-top: 10px;
}

.audience-grid,
.process-grid {
  display: grid;
  gap: 18px;
}

.audience-grid {
  grid-template-columns: repeat(3, 1fr);
}

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

.audience-grid article,
.process-grid article {
  padding: 18px;
  background: var(--surface-soft);
  border: 1px solid #cfeae2;
  border-radius: 6px;
}

.audience-grid article {
  min-height: 104px;
  padding: 14px;
  background: #f5fcfa;
  border: 1px solid #c7ebe0;
  border-radius: 8px;
}

.audience-grid h3,
.process-grid h3 {
  color: var(--brand-dark);
  font-size: 16px;
  line-height: 1.35;
}

.audience-grid h3 {
  color: var(--brand-dark);
  font-size: 14px;
  line-height: 1.45;
}

.audience-grid p,
.process-grid p {
  margin-top: 8px;
  color: #6f7c78;
  font-size: 14px;
  line-height: 1.65;
}

.audience-grid p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.tag-list span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 15px;
  color: var(--brand-dark);
  background: var(--brand-soft);
  border-radius: 999px;
  font-size: 13px;
  white-space: nowrap;
}

.timeline {
  display: grid;
  gap: 0;
  max-width: 760px;
  padding-left: 0;
  list-style: none;
}

.timeline li {
  position: relative;
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 28px;
  min-height: 54px;
  padding-left: 24px;
}

.timeline li::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 0;
  width: 10px;
  height: 10px;
  background: var(--brand);
  border-radius: 50%;
}

.timeline li::after {
  content: "";
  position: absolute;
  top: 22px;
  bottom: 8px;
  left: 4px;
  width: 1px;
  background: var(--line);
}

.timeline li:last-child::after {
  display: none;
}

.timeline time {
  font-weight: 800;
  white-space: nowrap;
}

.timeline span {
  color: #66736f;
  line-height: 1.6;
}

.wechat-booking {
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  max-width: 650px;
  padding: 22px;
  background: var(--surface-soft);
  border: 1px solid #cfeae2;
  border-radius: 6px;
}

.wechat-booking img {
  width: 168px;
  height: 168px;
  object-fit: contain;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.wechat-booking strong {
  display: block;
  color: var(--brand-dark);
  font-size: 16px;
}

.wechat-booking p {
  margin-top: 8px;
  color: #6f7c78;
  font-size: 14px;
  line-height: 1.7;
}

.wechat-booking p span,
.booking-dialog__card p span {
  display: block;
}

.booking-bar {
  display: none;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 96px;
  z-index: 70;
  max-width: min(280px, calc(100% - 40px));
  padding: 10px 16px;
  color: #fff;
  background: rgba(31, 41, 38, 0.88);
  border-radius: 6px;
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 8px);
  transition:
    opacity 0.18s ease,
    transform 0.18s ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.icon-button {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: #24302c;
  background: transparent;
  border-radius: 50%;
}

.icon-button svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

@media (max-width: 860px) {
  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }

  main {
    padding-bottom: 110px;
    overflow-x: hidden;
  }

  .site-header,
  .breadcrumb,
  .anchor-nav {
    display: none;
  }

  .mobile-header {
    position: sticky;
    top: 0;
    z-index: 30;
    display: grid;
    grid-template-columns: 52px 1fr 52px;
    align-items: center;
    min-height: 54px;
    padding: 0 4px;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(14px);
  }

  .mobile-header strong {
    justify-self: center;
    font-size: 16px;
  }

  .mobile-header__actions {
    display: grid;
    place-items: center;
    width: 52px;
    justify-self: end;
  }

  .hero {
    background: var(--surface);
    border-top: 0;
  }

  .hero__inner {
    display: block;
    width: 100%;
    padding: 0;
    border-block: 0;
  }

  .portrait-panel {
    min-height: 248px;
    aspect-ratio: 390 / 248;
    border-bottom: 0;
  }

  .portrait-panel img {
    object-position: center center;
  }

  .profile-summary {
    min-width: 0;
    overflow: hidden;
    padding: 24px 20px 20px;
  }

  .name-line h1 {
    font-size: 28px;
  }

  .profile-subtitle {
    margin-top: 10px;
    font-size: 14px;
  }

  .info-table {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    width: 100%;
    margin-top: 20px;
  }

  .info-table div {
    min-width: 0;
    display: flex;
    flex-direction: column-reverse;
    justify-content: center;
    min-height: 68px;
    border: 0;
    text-align: center;
  }

  .info-table div:nth-child(4) {
    display: none;
  }

  .info-table dt {
    margin-top: 8px;
    font-size: 12px;
  }

  .info-table dd {
    max-width: 100%;
    overflow-wrap: anywhere;
    font-size: 18px;
  }

  .profile-note {
    margin-top: 18px;
  }

  .profile-note strong {
    display: none;
  }

  .profile-note p {
    font-size: 14px;
  }

  .hero-actions {
    display: none;
  }

  .mobile-tabs {
    position: sticky;
    top: 54px;
    z-index: 25;
    display: flex;
    gap: 22px;
    overflow-x: auto;
    padding: 14px 20px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    scrollbar-width: none;
  }

  .mobile-tabs::-webkit-scrollbar {
    display: none;
  }

  .mobile-tabs a {
    flex: 0 0 auto;
    color: var(--brand-dark);
    font-size: 14px;
    font-weight: 800;
  }

  .detail-layout {
    display: block;
    width: 100%;
    max-width: 100%;
    border: 0;
  }

  .detail-section {
    min-width: 0;
    overflow: hidden;
    padding: 24px 20px 28px;
    border-bottom: 1px solid var(--line);
    scroll-margin-top: 112px;
  }

  .section-heading {
    margin-bottom: 14px;
  }

  .section-heading h2 {
    font-size: 21px;
  }

  .detail-section > p {
    font-size: 14px;
    line-height: 1.85;
  }

  .audience-grid,
  .process-grid {
    display: block;
  }

  .audience-grid article,
  .process-grid article {
    padding: 0;
    background: transparent;
    border: 0;
  }

  .audience-grid article {
    min-height: 0;
    padding: 14px;
    background: #f5fcfa;
    border: 1px solid #c7ebe0;
    border-radius: 8px;
  }

  .audience-grid article + article,
  .process-grid article + article {
    margin-top: 10px;
  }

  .audience-grid p,
  .process-grid p {
    font-size: 13px;
  }

  .audience-grid h3 {
    color: var(--brand-dark);
  }

  .audience-grid p {
    color: var(--muted);
  }

  .tag-list {
    gap: 10px;
    margin-top: 20px;
    max-width: 100%;
  }

  .tag-list span {
    max-width: 100%;
    min-height: 30px;
    padding: 0 13px;
    white-space: normal;
  }

  .timeline li {
    grid-template-columns: 124px minmax(0, 1fr);
    gap: 14px;
    min-height: 48px;
    padding-left: 18px;
    font-size: 14px;
  }

  .timeline li::before {
    width: 8px;
    height: 8px;
  }

  .timeline li::after {
    left: 3px;
  }

  .booking-bar {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 40;
    display: flex;
    gap: 16px;
    align-items: center;
    justify-content: space-between;
    min-height: 72px;
    padding: 10px 20px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.98);
    border-top: 1px solid var(--line);
    box-shadow: 0 -10px 24px rgba(31, 41, 38, 0.08);
    backdrop-filter: blur(14px);
  }

  .booking-bar > div {
    min-width: 0;
  }

  .booking-bar span {
    display: block;
    color: var(--muted);
    font-size: 12px;
  }

  .booking-bar strong {
    display: block;
    margin-top: 4px;
    overflow-wrap: anywhere;
    font-size: 16px;
  }

  .booking-bar button {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 150px;
    min-height: 46px;
    color: #fff;
    background: var(--brand);
    border-radius: 5px;
    font-weight: 800;
  }

  .booking-dialog {
    align-items: center;
    padding: 18px;
  }

  .booking-dialog__panel {
    width: 100%;
  }

  .booking-dialog__card {
    padding: 22px 22px 24px;
  }

  .wechat-booking {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 16px;
    padding: 20px;
    text-align: center;
  }

  .wechat-booking img {
    width: 180px;
    height: 180px;
  }
}

@media (max-width: 380px) {
  .mobile-header {
    grid-template-columns: 48px 1fr 48px;
  }

  .mobile-header__actions {
    width: 48px;
  }

  .info-table dd {
    font-size: 16px;
  }

  .booking-bar button {
    min-width: 132px;
  }
}
