:root {
  --ink: #17211d;
  --muted: #66726d;
  --line: #d9e1dc;
  --paper: #fbfcf9;
  --white: #ffffff;
  --green: #187a4d;
  --green-dark: #0f5337;
  --red: #c94b3b;
  --amber: #f0b23d;
  --blue: #2f6fbd;
  --shadow: 0 18px 50px rgba(20, 39, 32, 0.14);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Microsoft YaHei", "PingFang SC", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

button,
input {
  font: inherit;
}

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

.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 72px;
  padding: 12px clamp(18px, 5vw, 64px);
  color: var(--white);
  transition: background 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}

.site-header.scrolled,
.site-header.menu-open {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
}

.brand-mark {
  display: grid;
  width: 48px;
  height: 38px;
  place-items: center;
  border-radius: var(--radius);
  color: var(--white);
  background: var(--red);
  font-size: 13px;
  font-weight: 900;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  margin-top: 2px;
  color: currentColor;
  font-size: 12px;
  opacity: 0.78;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-left: auto;
  color: currentColor;
  font-size: 14px;
}

.desktop-nav a {
  opacity: 0.84;
}

.desktop-nav a:hover {
  opacity: 1;
}

.primary-btn,
.secondary-btn,
.ghost-btn,
.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 0;
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 800;
  padding: 0 18px;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.primary-btn {
  color: var(--white);
  background: var(--green);
  box-shadow: 0 10px 24px rgba(24, 122, 77, 0.25);
}

.secondary-btn {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.9);
}

.ghost-btn {
  color: var(--green-dark);
  background: #e9f4ef;
}

.share-btn {
  width: 100%;
  color: var(--green-dark);
  background: #edf7f2;
}

.primary-btn:hover,
.secondary-btn:hover,
.ghost-btn:hover,
.share-btn:hover {
  transform: translateY(-1px);
}

.header-cta {
  min-width: 112px;
}

.icon-btn {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: var(--radius);
  color: inherit;
  background: transparent;
  cursor: pointer;
}

.menu-toggle {
  display: none;
  margin-left: auto;
  border-color: rgba(255, 255, 255, 0.45);
}

.site-header.scrolled .menu-toggle,
.site-header.menu-open .menu-toggle {
  border-color: var(--line);
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
}

.mobile-nav {
  position: fixed;
  top: 72px;
  right: 0;
  left: 0;
  z-index: 19;
  display: none;
  padding: 8px 18px 18px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 20px 30px rgba(0, 0, 0, 0.08);
}

.mobile-nav.open {
  display: grid;
}

.mobile-nav a {
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
}

.hero {
  position: relative;
  display: grid;
  min-height: 92vh;
  overflow: hidden;
  color: var(--white);
}

.hero-media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(16, 31, 25, 0.8), rgba(16, 31, 25, 0.42) 48%, rgba(16, 31, 25, 0.06)),
    url("/assets/home-hero.png") center / cover no-repeat;
  transform: scale(1.02);
}

.hero-overlay {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 34%;
  background: linear-gradient(0deg, rgba(251, 252, 249, 1), rgba(251, 252, 249, 0));
}

.hero-inner {
  position: relative;
  z-index: 1;
  align-self: center;
  width: min(760px, calc(100% - 36px));
  margin-left: clamp(18px, 7vw, 92px);
  padding-top: 72px;
  padding-bottom: 96px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--red);
  font-size: 14px;
  font-weight: 900;
}

.hero .eyebrow {
  color: #ffd45e;
}

.hero h1 {
  max-width: 680px;
  margin: 0;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 1.05;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 610px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.75;
}

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

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 560px;
  margin-top: 34px;
}

.hero-metrics div {
  min-height: 82px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--radius);
  padding: 16px;
  background: rgba(255, 255, 255, 0.13);
  backdrop-filter: blur(16px);
}

.hero-metrics strong,
.hero-metrics span {
  display: block;
}

.hero-metrics strong {
  font-size: 26px;
}

.hero-metrics span {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 13px;
}

.campaign-band,
.products-section,
.leader-section,
.cases-section {
  padding: clamp(64px, 8vw, 104px) clamp(18px, 5vw, 64px);
}

.section-head {
  width: min(1120px, 100%);
  margin: 0 auto 28px;
}

.section-head h2 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.18;
}

.split-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 22px;
}

.campaign-grid,
.product-grid,
.leader-section,
.case-panel,
.room-band {
  width: min(1120px, 100%);
  margin: 0 auto;
}

.campaign-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(280px, 0.8fr);
  gap: 18px;
}

.campaign-panel,
.fee-panel,
.calculator,
.case-panel,
.product-card,
.room-card,
.empty-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.campaign-panel {
  padding: clamp(24px, 4vw, 42px);
}

.campaign-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 8px 12px;
  color: var(--green-dark);
  background: #eaf6ef;
  font-size: 13px;
  font-weight: 900;
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(24, 122, 77, 0.12);
}

.campaign-panel h3 {
  max-width: 680px;
  margin: 20px 0 10px;
  font-size: clamp(24px, 3vw, 34px);
}

.campaign-panel p,
.leader-copy p,
.case-content p,
.product-body p {
  color: var(--muted);
  line-height: 1.75;
}

.countdown {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 28px 0;
}

.countdown div {
  display: grid;
  min-height: 78px;
  place-items: center;
  border-radius: var(--radius);
  background: #f5f8f6;
}

.countdown strong,
.countdown span {
  display: block;
}

.countdown strong {
  font-size: 28px;
}

.countdown span {
  color: var(--muted);
  font-size: 13px;
}

.fee-panel {
  padding: 28px;
}

.fee-top {
  border-bottom: 1px solid var(--line);
  padding-bottom: 20px;
}

.fee-top span,
.fee-top strong {
  display: block;
}

.fee-top span {
  color: var(--muted);
}

.fee-top strong {
  margin-top: 8px;
  color: var(--red);
  font-size: 34px;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.check-list {
  display: grid;
  gap: 14px;
  margin: 22px 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 24px;
}

.check-list li::before {
  position: absolute;
  left: 0;
  color: var(--green);
  content: "✓";
  font-weight: 900;
}

.segmented,
.tabs {
  display: inline-flex;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 4px;
  background: var(--white);
}

.segmented button,
.tabs button {
  min-height: 38px;
  border: 0;
  border-radius: 6px;
  padding: 0 14px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-weight: 900;
}

.segmented button.active,
.tabs button.active {
  color: var(--white);
  background: var(--green);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.product-card {
  display: grid;
  overflow: hidden;
}

.product-card.hidden {
  display: none;
}

.product-visual {
  display: grid;
  min-height: 190px;
  place-items: end start;
  padding: 18px;
  color: var(--white);
}

.product-visual span {
  border-radius: 6px;
  padding: 7px 10px;
  background: rgba(0, 0, 0, 0.26);
  font-weight: 900;
}

.product-visual.fresh {
  background:
    linear-gradient(135deg, rgba(20, 107, 65, 0.4), rgba(201, 75, 59, 0.22)),
    radial-gradient(circle at 20% 24%, #e85b4c 0 12%, transparent 13%),
    radial-gradient(circle at 62% 42%, #f6c85f 0 14%, transparent 15%),
    radial-gradient(circle at 72% 76%, #2f9f68 0 16%, transparent 17%),
    #f3e6d3;
}

.product-visual.daily {
  background:
    linear-gradient(135deg, rgba(47, 111, 189, 0.32), rgba(240, 178, 61, 0.22)),
    linear-gradient(90deg, #dce8f8 0 50%, #f8eee0 50% 100%);
}

.product-visual.service,
.product-visual.room {
  background:
    linear-gradient(135deg, rgba(201, 75, 59, 0.36), rgba(24, 122, 77, 0.24)),
    linear-gradient(90deg, #f0d1c8 0 45%, #d5eadf 45% 100%);
}

.product-visual.drink {
  background:
    linear-gradient(135deg, rgba(47, 111, 189, 0.36), rgba(24, 122, 77, 0.18)),
    linear-gradient(90deg, #dbeafe 0 48%, #d8efe5 48% 100%);
}

.product-visual.play {
  background:
    linear-gradient(135deg, rgba(240, 178, 61, 0.42), rgba(201, 75, 59, 0.24)),
    linear-gradient(90deg, #f9e2b9 0 50%, #f0c9c1 50% 100%);
}

.product-body {
  padding: 20px;
}

.tag {
  display: inline-flex;
  margin: 0 0 10px;
  border-radius: 6px;
  padding: 5px 8px;
  color: var(--blue);
  background: #eef4fd;
  font-size: 12px;
  font-weight: 900;
}

.product-body h3 {
  margin: 0;
  font-size: 21px;
}

.product-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 18px 0;
}

.product-row strong {
  color: var(--red);
  font-size: 26px;
}

.product-row span {
  color: var(--green-dark);
  font-weight: 900;
}

.leader-section {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  gap: 28px;
  align-items: center;
}

.leader-copy h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.2;
}

.leader-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 28px 0;
}

.leader-steps div {
  min-height: 90px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  background: var(--white);
}

.leader-steps strong,
.leader-steps span {
  display: block;
}

.leader-steps strong {
  color: var(--red);
}

.leader-steps span {
  margin-top: 8px;
  font-weight: 900;
}

.calculator {
  padding: 26px;
}

.calculator h3 {
  margin: 0 0 24px;
  font-size: 24px;
}

.calculator label {
  display: grid;
  gap: 14px;
}

.calculator input[type="range"] {
  width: 100%;
  accent-color: var(--green);
}

.calc-number {
  display: grid;
  gap: 4px;
  margin-top: 18px;
}

.calc-number span {
  color: var(--red);
  font-size: 34px;
  font-weight: 900;
}

.calc-number small {
  color: var(--muted);
}

.calc-result {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 24px;
  border-radius: var(--radius);
  padding: 18px;
  color: var(--white);
  background: var(--green-dark);
}

.calc-result strong {
  font-size: 28px;
}

.room-band {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  padding: 0 clamp(18px, 5vw, 64px) clamp(42px, 6vw, 74px);
}

.room-card {
  display: grid;
  gap: 8px;
  min-height: 132px;
  padding: 18px;
}

.room-card span {
  color: var(--blue);
  font-size: 13px;
  font-weight: 900;
}

.room-card strong {
  font-size: 22px;
  overflow-wrap: anywhere;
}

.room-card small {
  color: var(--muted);
}

.case-panel {
  display: grid;
  grid-template-columns: minmax(220px, 0.45fr) minmax(0, 1fr);
  overflow: hidden;
}

.case-stat {
  display: grid;
  min-height: 260px;
  place-items: center;
  color: var(--white);
  background: var(--green-dark);
}

.case-stat strong,
.case-stat span {
  display: block;
  text-align: center;
}

.case-stat strong {
  font-size: clamp(56px, 8vw, 86px);
}

.case-content {
  padding: clamp(24px, 4vw, 44px);
}

.case-content h3 {
  margin: 0 0 10px;
  font-size: clamp(24px, 3vw, 34px);
}

.case-bars {
  display: grid;
  gap: 12px;
  margin-top: 26px;
}

.case-bars span {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 34px;
  overflow: hidden;
  border-radius: 6px;
  padding-left: 12px;
  color: var(--ink);
  background: #eef2ef;
  font-size: 13px;
  font-weight: 900;
  isolation: isolate;
}

.case-bars span::before {
  position: absolute;
  inset: 0 auto 0 0;
  z-index: -1;
  width: var(--value);
  background: rgba(240, 178, 61, 0.7);
  content: "";
}

.empty-panel {
  grid-column: 1 / -1;
  padding: 22px;
  color: var(--muted);
  line-height: 1.7;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 22px;
  z-index: 50;
  max-width: min(380px, calc(100vw - 36px));
  border-radius: var(--radius);
  padding: 13px 15px;
  color: var(--white);
  background: var(--ink);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.mobile-cta {
  display: none;
}

@media (max-width: 960px) {
  .desktop-nav,
  .header-cta {
    display: none;
  }

  .menu-toggle {
    display: inline-grid;
  }

  .site-header {
    gap: 12px;
    min-height: 66px;
  }

  .mobile-nav {
    top: 66px;
  }

  .hero {
    min-height: 88vh;
  }

  .hero-inner {
    width: min(620px, calc(100% - 36px));
    margin: 0 auto;
    padding-bottom: 86px;
  }

  .hero-media {
    background:
      linear-gradient(180deg, rgba(16, 31, 25, 0.72), rgba(16, 31, 25, 0.54) 55%, rgba(16, 31, 25, 0.26)),
      url("/assets/home-hero.png") 58% center / cover no-repeat;
  }

  .split-head,
  .campaign-grid,
  .leader-section,
  .case-panel {
    grid-template-columns: 1fr;
  }

  .split-head {
    display: grid;
  }

  .product-grid,
  .room-band {
    grid-template-columns: 1fr 1fr;
  }

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

  .case-stat {
    min-height: 180px;
  }
}

@media (max-width: 640px) {
  body {
    padding-bottom: 76px;
  }

  .brand small {
    display: none;
  }

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

  .hero-copy {
    font-size: 16px;
  }

  .hero-actions {
    display: grid;
  }

  .hero-metrics,
  .countdown,
  .product-grid,
  .room-band {
    grid-template-columns: 1fr;
  }

  .segmented,
  .tabs {
    width: 100%;
    overflow-x: auto;
  }

  .segmented button,
  .tabs button {
    flex: 1 0 auto;
  }

  .campaign-band,
  .products-section,
  .leader-section,
  .cases-section,
  .room-band {
    padding-inline: 18px;
  }

  .mobile-cta {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 30;
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 10px;
    border-top: 1px solid var(--line);
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(16px);
  }

  .mobile-cta a:not(.primary-btn) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    font-weight: 900;
  }
}
