:root {
  --bg: #f6fbf8;
  --card: rgba(255, 255, 255, 0.92);
  --card-strong: #ffffff;
  --text: #0f172a;
  --muted: #526071;
  --line: #dbe7e2;
  --primary: #0d9488;
  --primary-dark: #0f766e;
  --soft: #ecfdf5;
  --warn: #fef3c7;
  --danger: #ffe4e6;
  --shadow: 0 20px 40px rgba(15, 23, 42, 0.08);
  --radius: 28px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 10% 10%, rgba(167, 243, 208, 0.45), transparent 25%),
    radial-gradient(circle at 90% 0%, rgba(191, 219, 254, 0.65), transparent 25%),
    linear-gradient(180deg, #f8fffb 0%, #eef8ff 48%, #f6fbf8 100%);
  color: var(--text);
  font:
    16px/1.6 "PingFang SC",
    "Microsoft YaHei",
    "Noto Sans SC",
    system-ui,
    sans-serif;
}

.page {
  max-width: 1180px;
  margin: 0 auto;
  padding: 32px 20px 176px;
}

.hero,
.contact-layout,
.service-layout {
  display: grid;
  gap: 24px;
}

.hero {
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 340px);
  align-items: center;
  padding: 40px 0 24px;
}

.hero-copy,
.hero-card,
.panel,
.contact-copy,
.contact-card,
.preset-card,
.guide-card,
.option-card {
  min-width: 0;
}

.hero h1,
.section-heading h2,
.contact-copy h2 {
  margin: 0;
  line-height: 1.12;
  font-size: clamp(2.1rem, 5vw, 4.4rem);
  font-weight: 900;
  text-wrap: balance;
  overflow-wrap: anywhere;
}

.hero-text,
.section-heading p,
.contact-copy p,
.contact-card p {
  color: var(--muted);
  overflow-wrap: anywhere;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--primary-dark);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow.light {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
}

.hero-tags,
.hero-actions,
.preset-grid,
.guide-grid,
.option-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-tags span {
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.35;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 0;
  border-radius: 16px;
  text-decoration: none;
  font-weight: 800;
  line-height: 1.3;
  text-align: center;
  white-space: normal;
  cursor: pointer;
}

.hero-actions .button {
  min-width: 180px;
}

.button.primary {
  background: linear-gradient(135deg, var(--primary), #06b6d4);
  color: #fff;
  box-shadow: 0 12px 24px rgba(13, 148, 136, 0.28);
}

.button.secondary {
  background: #fff;
  color: var(--primary-dark);
  box-shadow: var(--shadow);
}

.hero-card,
.guide-card,
.panel,
.contact-card,
.preset-card,
.option-card {
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-card,
.contact-card {
  padding: 18px;
  text-align: center;
}

.hero-card img,
.contact-card img {
  width: 100%;
  border-radius: 22px;
  background: #fff;
}

.hero-card p {
  margin: 14px 0 4px;
  font-weight: 800;
  color: var(--primary-dark);
}

.section {
  margin-top: 28px;
}

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

.section-heading.compact h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
}

.section-heading h2 {
  font-size: clamp(1.9rem, 4vw, 3rem);
}

.preset-grid,
.guide-grid,
.option-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.preset-card,
.guide-card,
.panel,
.contact-card {
  padding: 22px;
}

.preset-card h3,
.guide-card h3,
.contact-card h3,
.subheading {
  margin: 0 0 10px;
  font-size: 1.2rem;
  font-weight: 900;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.preset-card p,
.guide-card p,
.option-card p,
.tip-box,
.status-box {
  margin: 0;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.price-row {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}

.price {
  font-size: 2rem;
  font-weight: 900;
}

.old-price {
  color: #94a3b8;
  text-decoration: line-through;
  font-weight: 800;
}

.tag {
  display: inline-flex;
  padding: 6px 12px;
  border-radius: 999px;
  background: #e0f2fe;
  color: #075985;
  font-size: 0.78rem;
  font-weight: 800;
}

.builder {
  padding-bottom: 12px;
}

.panel {
  margin-bottom: 22px;
}

.subheading {
  margin-bottom: 14px;
}

.option-card {
  width: 100%;
  padding: 18px;
  text-align: left;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.option-card h3 {
  margin: 12px 0 8px;
  font-size: 1.08rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.option-card:hover {
  transform: translateY(-2px);
}

.option-card.active {
  border-color: #5eead4;
  box-shadow: 0 0 0 4px rgba(45, 212, 191, 0.18), var(--shadow);
}

.option-card.disabled {
  cursor: not-allowed;
  opacity: 0.52;
}

.option-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.option-badge {
  display: inline-flex;
  padding: 5px 10px;
  border-radius: 999px;
  background: #ecfeff;
  color: #155e75;
  font-size: 0.75rem;
  font-weight: 800;
}

.option-badge.gold {
  background: #fef3c7;
  color: #92400e;
}

.option-price {
  font-size: 1.5rem;
  font-weight: 900;
}

.status-box,
.tip-box {
  padding: 16px 18px;
  border-radius: 20px;
  background: var(--soft);
  border: 1px solid #bbf7d0;
  font-size: 0.95rem;
  font-weight: 700;
}

.status-box.warn {
  background: var(--danger);
  border-color: #fecdd3;
  color: #9f1239;
}

.tip-box.hidden {
  display: none;
}

.service-layout {
  grid-template-columns: 1.15fr 0.85fr;
  align-items: start;
}

.panel.featured {
  background: linear-gradient(180deg, rgba(255, 251, 235, 0.95), rgba(254, 249, 195, 0.5));
}

.contact-layout {
  grid-template-columns: minmax(0, 0.95fr) minmax(300px, 1.05fr);
  align-items: start;
}

.contact-copy {
  padding: 28px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #0d9488, #0ea5e9);
  color: #fff;
  box-shadow: 0 26px 44px rgba(13, 148, 136, 0.22);
}

.contact-copy p {
  color: rgba(255, 255, 255, 0.9);
}

.checkout-bar {
  position: fixed;
  inset: auto 0 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding: 14px 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.75);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(14px);
  box-shadow: 0 -18px 32px rgba(15, 23, 42, 0.09);
}

.checkout-bar > div {
  min-width: 0;
  flex: 1 1 auto;
}

.checkout-bar .button {
  flex: 0 0 auto;
}

.count,
.discount {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--muted);
}

.total {
  margin: 3px 0;
  font-size: 1.4rem;
  font-weight: 900;
}

.total span,
.discount {
  color: var(--primary-dark);
}

@media (max-width: 900px) {
  .hero,
  .service-layout,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .hero-card {
    max-width: 340px;
    margin: 0 auto;
  }
}

@media (max-width: 760px) {
  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hero-actions .button {
    width: 100%;
    min-width: 0;
  }

  .option-meta {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .page {
    padding: 18px 14px 158px;
  }

  .hero {
    padding-top: 14px;
  }

  .section {
    margin-top: 22px;
  }

  .preset-card,
  .guide-card,
  .panel,
  .contact-card,
  .contact-copy {
    padding: 18px;
    border-radius: 22px;
  }

  .hero-tags {
    gap: 10px;
  }

  .hero-tags span {
    font-size: 0.88rem;
    padding: 9px 12px;
  }

  .checkout-bar {
    align-items: stretch;
    flex-direction: column;
    padding: 12px 14px;
  }

  .checkout-bar > div,
  .checkout-bar .button {
    flex: none;
  }

  .checkout-bar .button {
    width: 100%;
    min-height: 56px;
  }
}
