:root {
  --bg-main: #f5f1e9;
  --bg-soft: #faf7f1;
  --bg-panel: rgba(255, 252, 247, 0.88);
  --bg-panel-strong: #fffdf9;
  --text-main: #223034;
  --text-subtle: #617074;
  --line-soft: rgba(35, 53, 58, 0.1);
  --brand-primary: #2f5560;
  --brand-primary-deep: #23434c;
  --state-open-bg: rgba(47, 85, 96, 0.12);
  --state-open-text: #234650;
  --state-soon-bg: rgba(197, 174, 130, 0.22);
  --state-soon-text: #8b6e34;
  --state-plan-bg: rgba(108, 127, 130, 0.18);
  --state-plan-text: #5d6f72;
  --shadow-main: 0 18px 48px rgba(40, 54, 58, 0.08);
  --shadow-soft: 0 12px 28px rgba(40, 54, 58, 0.05);
  --radius-xl: 34px;
  --radius-lg: 26px;
  --radius-sm: 999px;
  --shell-width: 1180px;
  --transition: 220ms ease;
  --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text-main);
  line-height: 1.72;
  letter-spacing: 0.01em;
  background:
    radial-gradient(circle at top left, rgba(197, 174, 130, 0.18), transparent 26%),
    radial-gradient(circle at bottom right, rgba(47, 85, 96, 0.08), transparent 22%),
    linear-gradient(180deg, #fbf8f2 0%, var(--bg-main) 100%);
}

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

img {
  display: block;
  max-width: 100%;
}

button,
input,
textarea,
select {
  font: inherit;
}

.skip-link {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.skip-link:focus {
  width: auto;
  height: auto;
  clip: auto;
  padding: 0.8rem 1rem;
  top: 1rem;
  left: 1rem;
  z-index: 100;
  border-radius: 14px;
  background: var(--brand-primary);
  color: #fff;
}

.site-shell,
.container {
  width: min(calc(100% - 2rem), var(--shell-width));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 246, 239, 0.84);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line-soft);
}

.header-shell,
.header-inner,
.footer-shell,
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.header-shell,
.header-inner {
  min-height: 82px;
}

.brand-block {
  display: inline-flex;
  align-items: center;
  gap: 0.95rem;
  min-width: 0;
}

.brand-logo-frame {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(197, 174, 130, 0.16), rgba(47, 85, 96, 0.08));
  border: 1px solid rgba(197, 174, 130, 0.28);
  box-shadow: var(--shadow-soft);
}

.brand-logo-image {
  width: 78%;
  height: 78%;
  object-fit: contain;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
}

.brand-title {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.brand-meta,
.footer-note {
  color: var(--text-subtle);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.site-nav a {
  font-size: 0.95rem;
  color: var(--text-subtle);
  letter-spacing: 0.03em;
  transition: color var(--transition);
}

.site-nav a:hover,
.site-nav a:focus-visible,
.footer-link:hover,
.footer-link:focus-visible {
  color: var(--brand-primary);
}

.nav-note {
  margin-left: 0.3rem;
  font-size: 0.78rem;
  color: var(--text-subtle);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow-soft);
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  border-radius: 999px;
  background: var(--brand-primary);
}

.section-block,
.section {
  padding: 2rem 0;
}

.hero-section,
.hero,
.bazi-hero-section {
  padding-top: 3.3rem;
}

.hero-layout,
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.9fr);
  gap: 1.5rem;
  align-items: stretch;
}

.content-panel,
.hero-copy,
.hero-panel,
.feature-card,
.info-card,
.preview-box,
.consultation-wrapper {
  background: var(--bg-panel);
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow-main);
}

.content-panel,
.hero-copy,
.hero-panel,
.info-card,
.preview-box {
  border-radius: var(--radius-xl);
  padding: 2rem;
}

.hero-copy-panel {
  padding: 2.6rem;
}

.section-label {
  margin: 0 0 1.15rem;
  color: var(--brand-primary);
  font-size: 0.82rem;
  line-height: 1.5;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero-title,
.section-heading h2,
.section-head h2,
.info-panel h2,
.info-card h2,
.member-panel h2,
.bazi-intro-panel h1 {
  margin: 0;
  line-height: 1.32;
  letter-spacing: 0.03em;
  font-weight: 600;
}

.hero-title {
  font-size: clamp(2.3rem, 4vw, 4.3rem);
  margin-bottom: 1.2rem;
}

.hero-lead,
.section-intro,
.hero-side-text,
.service-card p,
.feature-card p,
.info-panel p,
.info-card p,
.member-panel p,
.consultation-note p {
  margin: 0;
  color: var(--text-subtle);
}

.hero-lead {
  max-width: 40rem;
  font-size: 1.03rem;
  line-height: 1.95;
}

.section-intro {
  margin-top: 1rem;
  max-width: 42rem;
  line-height: 1.9;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2.15rem;
}

.hero-side-panel,
.hero-panel {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.hero-side-head,
.panel-top,
.service-card-head,
.card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.8rem;
}

.hero-side-head {
  margin-bottom: 0.35rem;
}

.hero-side-head h2,
.hero-panel h2,
.service-card h3,
.feature-card h3 {
  margin: 0;
  font-size: 1.32rem;
  line-height: 1.42;
  letter-spacing: 0.02em;
  font-weight: 600;
}

.feature-points,
.info-list {
  margin: 0.3rem 0 0;
  padding-left: 1.15rem;
  color: var(--text-subtle);
  line-height: 1.9;
}

.section-heading,
.section-head {
  max-width: 48rem;
  margin-bottom: 1.85rem;
}

.section-heading-compact {
  margin-bottom: 1.3rem;
}

.feature-grid,
.card-grid,
.info-grid {
  display: grid;
  gap: 1.2rem;
}

.feature-grid,
.card-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.service-card,
.feature-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-height: 100%;
  padding: 1.7rem;
  border-radius: var(--radius-lg);
  background: var(--bg-panel-strong);
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow-soft);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.service-card p,
.feature-card p,
.info-panel p,
.info-card p,
.member-panel p,
.consultation-note p,
.hero-side-text {
  line-height: 1.9;
}

.service-card:hover,
.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 36px rgba(40, 54, 58, 0.08);
}

.service-card-open,
.feature-card-open {
  border-color: rgba(47, 85, 96, 0.18);
}

.service-card-soon,
.feature-card-soon {
  border-color: rgba(197, 174, 130, 0.28);
}

.service-card-plan,
.feature-card-plan {
  border-color: rgba(108, 127, 130, 0.22);
}

.tag-row,
.tag-list,
.roadmap-tags,
.preview-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.info-tag,
.tag,
.roadmap-tag,
.preview-list span {
  display: inline-flex;
  align-items: center;
  min-height: 2.2rem;
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line-soft);
  color: var(--text-subtle);
  font-size: 0.92rem;
  letter-spacing: 0.02em;
}

.roadmap-panel,
.member-panel {
  display: grid;
  gap: 1.4rem;
}

.member-panel {
  grid-template-columns: minmax(0, 1.5fr) minmax(240px, 0.7fr);
  align-items: center;
}

.member-status-block {
  padding: 1.3rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(244, 240, 232, 0.92));
  border: 1px solid var(--line-soft);
}

.member-status-block p {
  margin: 0.55rem 0 0;
  color: var(--text-subtle);
  line-height: 1.82;
}

.status-chip,
.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2rem;
  padding: 0.24rem 0.8rem;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.status-chip-beta {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line-soft);
}

.status-chip-open,
.status-open {
  background: var(--state-open-bg);
  color: var(--state-open-text);
}

.status-chip-soon,
.status-soon {
  background: var(--state-soon-bg);
  color: var(--state-soon-text);
}

.status-chip-plan,
.status-plan {
  background: var(--state-plan-bg);
  color: var(--state-plan-text);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.82rem 1.25rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition), border-color var(--transition);
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.section-heading h2,
.section-head h2,
.info-panel h2,
.info-card h2,
.member-panel h2,
.bazi-intro-panel h1 {
  margin-bottom: 1rem;
}

.info-panel p + p,
.info-card p + p,
.member-copy p + p {
  margin-top: 0.95rem;
}

.button-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-primary-deep));
  box-shadow: 0 12px 24px rgba(35, 67, 76, 0.18);
}

.button-secondary {
  color: var(--brand-primary);
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(47, 85, 96, 0.16);
}

.button-disabled,
.button-muted {
  color: var(--text-subtle);
  background: rgba(235, 232, 226, 0.96);
  border-color: rgba(97, 112, 116, 0.14);
  cursor: not-allowed;
}

.button-full,
.button-block {
  width: 100%;
}

.consultation-section {
  padding-top: 0.4rem;
}

.bazi-hero-layout {
  display: block;
}

.bazi-intro-panel {
  max-width: 58rem;
}

.page-bazi .bazi-intro-panel {
  margin: 0 auto;
}

.consultation-wrapper {
  padding: 1.25rem;
  border-radius: var(--radius-xl);
}

.page-bazi .consultation-wrapper {
  max-width: 1040px;
  margin: 0 auto;
}

.consultation-note {
  padding: 0.25rem 0.25rem 1rem;
}

.consultation-frame-shell {
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid var(--line-soft);
  background: #fff;
  min-height: 700px;
}

.member-hint-panel {
  padding: 1rem 1.4rem;
  border-radius: var(--radius-lg);
}

.site-footer {
  padding: 2.4rem 0 2.8rem;
}

.footer-inner {
  padding-top: 1rem;
  border-top: 1px solid var(--line-soft);
}

.footer-brand-block {
  align-items: center;
}

.footer-link {
  color: var(--text-subtle);
  letter-spacing: 0.04em;
}

@media (max-width: 980px) {
  .hero-layout,
  .hero-grid,
  .feature-grid,
  .card-grid,
  .info-grid,
  .member-panel {
    grid-template-columns: 1fr;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 0.7rem);
    right: 1rem;
    left: 1rem;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 0.55rem;
    border-radius: 22px;
    background: rgba(255, 252, 247, 0.98);
    border: 1px solid var(--line-soft);
    box-shadow: var(--shadow-main);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    width: 100%;
    padding: 0.85rem 0.8rem;
    border-radius: 16px;
  }

  .site-nav a:hover,
  .site-nav a:focus-visible {
    background: rgba(47, 85, 96, 0.07);
  }

  .nav-toggle {
    display: inline-block;
  }
}

@media (max-width: 720px) {
  .site-header {
    padding-top: calc(env(safe-area-inset-top, 0px) + 0.45rem);
  }

  .section-block,
  .section {
    padding: 1.4rem 0;
  }

  .hero-section,
  .hero,
  .bazi-hero-section {
    padding-top: 1.8rem;
  }

  .content-panel,
  .hero-copy,
  .hero-panel,
  .feature-card,
  .info-card,
  .preview-box,
  .hero-copy-panel,
  .consultation-wrapper {
    padding: 1.3rem;
  }

  .brand-logo-frame {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
  }

  .brand-title {
    font-size: 0.98rem;
  }

  .section-label {
    margin-bottom: 1rem;
    font-size: 0.76rem;
    letter-spacing: 0.14em;
  }

  .hero-title {
    font-size: 2.2rem;
    margin-bottom: 1.35rem;
    line-height: 1.36;
    letter-spacing: 0.04em;
  }

  .header-shell,
  .header-inner,
  .footer-shell,
  .footer-inner {
    align-items: flex-start;
  }

  .header-shell,
  .header-inner {
    min-height: 88px;
    padding-top: 0.35rem;
    padding-bottom: 0.55rem;
  }

  .brand-block,
  .nav-toggle {
    margin-top: 0.15rem;
  }

  .footer-shell,
  .footer-inner {
    flex-direction: column;
  }

  .hero-actions {
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1.9rem;
  }

  .button {
    width: 100%;
  }

  .hero-lead,
  .section-intro,
  .service-card p,
  .feature-card p,
  .info-panel p,
  .info-card p,
  .member-panel p,
  .consultation-note p,
  .hero-side-text,
  .feature-points,
  .info-list {
    font-size: 0.96rem;
    line-height: 1.92;
  }

  .section-heading,
  .section-head {
    margin-bottom: 1.45rem;
  }

  .section-heading h2,
  .section-head h2,
  .info-panel h2,
  .info-card h2,
  .member-panel h2,
  .bazi-intro-panel h1,
  .hero-side-head h2,
  .hero-panel h2,
  .service-card h3,
  .feature-card h3 {
    line-height: 1.42;
    letter-spacing: 0.03em;
  }

  .section-heading h2,
  .section-head h2,
  .info-panel h2,
  .info-card h2,
  .member-panel h2,
  .bazi-intro-panel h1 {
    margin-bottom: 1.05rem;
  }

  .consultation-frame-shell {
    min-height: 620px;
  }
}

.consultation-note + .consultation-note {
  padding-top: 0;
}

.consultation-note-strong {
  padding-bottom: 0.55rem;
}

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

.plan-card {
  gap: 1.15rem;
}

.plan-card h2,
.success-panel h1 {
  margin: 0;
  line-height: 1.36;
  letter-spacing: 0.03em;
  font-weight: 600;
}

.plan-summary {
  margin: 0;
  color: var(--text-main);
  font-size: 1rem;
}

.form-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.8fr);
  gap: 1.2rem;
  align-items: start;
}

.form-panel {
  padding: 2rem;
}

.service-form {
  display: grid;
  gap: 1.3rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.form-field,
.service-form fieldset {
  display: grid;
  gap: 0.6rem;
  margin: 0;
  padding: 1rem;
  border: 1px solid var(--line-soft);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.54);
  box-shadow: var(--shadow-soft);
  min-width: 0;
}

.form-field span,
.service-form legend {
  color: var(--brand-primary-deep);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0 0.1rem;
}

.form-field-full {
  grid-column: 1 / -1;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 0.9rem 1rem;
  border-radius: 18px;
  border: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.82);
  color: var(--text-main);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}

.form-field textarea {
  resize: vertical;
  min-height: 140px;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: rgba(47, 85, 96, 0.28);
  box-shadow: 0 0 0 4px rgba(47, 85, 96, 0.08);
  background: #fff;
}

.choice-row,
.choice-column {
  display: grid;
  gap: 0.8rem;
}

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

.choice-item,
.choice-card,
.confirm-row {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
}

.choice-item,
.choice-card {
  padding: 0.9rem 1rem;
  border-radius: 20px;
  border: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.75);
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition), transform var(--transition);
  cursor: pointer;
}

.choice-card {
  flex-direction: column;
  gap: 0.25rem;
  position: relative;
}

.choice-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.choice-card span,
.choice-item span {
  color: var(--text-main);
}

.choice-card small {
  color: var(--text-subtle);
  font-size: 0.86rem;
}

.choice-card:has(input:checked),
.choice-item:has(input:checked),
.choice-card.is-selected,
.choice-item.is-selected {
  border-color: rgba(35, 67, 76, 0.34);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(245, 249, 248, 0.98));
  box-shadow: 0 12px 28px rgba(35, 67, 76, 0.1);
  transform: translateY(-1px);
}

.choice-card:has(input:checked) span,
.choice-item:has(input:checked) span,
.choice-card.is-selected span,
.choice-item.is-selected span {
  color: var(--brand-primary-deep);
}

.choice-card:has(input:checked)::after,
.choice-card.is-selected::after {
  content: "已选套餐";
  position: absolute;
  top: 0.9rem;
  right: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 1.9rem;
  padding: 0.2rem 0.7rem;
  border-radius: var(--radius-sm);
  background: var(--state-open-bg);
  color: var(--state-open-text);
  font-size: 0.76rem;
  letter-spacing: 0.06em;
}

.choice-card.is-selected {
  border-width: 2px;
  padding: calc(0.9rem - 1px) calc(1rem - 1px);
}

.choice-item.is-selected {
  border-width: 2px;
  padding: calc(0.9rem - 1px) calc(1rem - 1px);
}

.confirm-row {
  color: var(--text-subtle);
  line-height: 1.8;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.form-status,
.form-hint {
  margin: 0;
  color: var(--text-subtle);
}

.success-shell {
  max-width: 760px;
}

.success-panel {
  text-align: center;
}

.success-panel .hero-lead {
  margin-left: auto;
  margin-right: auto;
}

.success-panel .tag-row,
.success-panel .hero-actions {
  justify-content: center;
}

@media (max-width: 980px) {
  .plan-grid,
  .form-layout,
  .form-grid,
  .choice-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .form-panel {
    padding: 1.3rem;
  }

  .form-field,
  .service-form fieldset {
    padding: 0.9rem;
    border-radius: 20px;
  }

  .choice-card:has(input:checked)::after {
    position: static;
    margin-top: 0.35rem;
    width: fit-content;
  }
}

.helper-note-panel {
  margin-top: 1rem;
}

.helper-note {
  margin: 1.4rem 0 0;
  color: var(--text-subtle);
  line-height: 1.9;
}

.member-copy .hero-actions {
  margin-bottom: 1rem;
}

#member-hint .info-card .hero-actions {
  margin-top: 1.35rem;
  margin-bottom: 0.55rem;
}

.member-copy .helper-note {
  margin-top: 1.5rem;
}

.helper-note,
.member-hint-panel p,
.form-status,
.form-hint {
  text-wrap: pretty;
  word-break: break-word;
}
