:root {
  --blue: #409eff;
  --blue-hover: #66b1ff;
  --purple: #6c5ce7;
  --purple-deep: #5746d6;
  --ink: #1a1a2e;
  --text: #303133;
  --muted: #606266;
  --subtle: #909399;
  --line: #ebeef5;
  --bg: #f5f7fb;
  --card: #f7f8fc;
  --white: #fff;
  --shadow: 0 10px 30px rgba(40, 48, 90, 0.08);
  --header: 72px;
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background: var(--bg);
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  font-size: 16px;
  line-height: 1.7;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
button, input { font-family: inherit; }
h1, h2, h3, p { margin: 0; }
ul, ol { margin: 0; padding: 0; }

.container { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }
.narrow { width: min(760px, calc(100% - 40px)); }

.header {
  position: sticky;
  top: 0;
  z-index: 20;
  height: var(--header);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
}
.header.is-scrolled { border-bottom-color: var(--line); }
.header-inner {
  height: 100%;
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
  font-size: 18px;
  flex: none;
}
.logo img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.menu {
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 0;
}
.nav-links {
  display: flex;
  gap: 28px;
  margin-left: auto;
  margin-right: 28px;
}
.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-size: 15px;
  white-space: nowrap;
}
.nav-links a:hover { color: var(--purple); }
.header-login { flex: none; }
.nav-toggle { margin-left: 0; }

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  margin-left: auto;
  border: 0;
  background: transparent;
  padding: 10px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 18px;
  border-radius: 6px;
  border: 1px solid transparent;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn-lg { height: 48px; padding: 0 22px; font-size: 16px; }
.btn-block { width: 100%; }
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: var(--blue-hover); }
.btn-purple { background: var(--purple); color: #fff; }
.btn-purple:hover { background: var(--purple-deep); }
.btn-ghost { background: #fff; color: var(--muted); border-color: #dcdfe6; }
.btn-ghost:hover { color: var(--purple); border-color: #c9c2f8; }
.btn-white { background: #fff; color: var(--purple); }
.btn-white:hover { background: #f4f1ff; }
.btn:focus-visible, a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--purple);
  outline-offset: 2px;
}

.hero { padding: 72px 0 36px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 36px;
  align-items: center;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  padding: 6px 14px;
  border-radius: 999px;
  background: #efedff;
  color: var(--purple);
  font-size: 13px;
}
.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--purple);
}
.hero h1 {
  font-size: 52px;
  line-height: 1.2;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: 0.5px;
}
.grad {
  background: linear-gradient(90deg, #5b6cff, #7a5af8);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lead {
  margin-top: 18px;
  max-width: 540px;
  color: var(--muted);
  font-size: 16px;
}
.hero-actions { display: flex; gap: 12px; margin-top: 28px; }
.metrics {
  display: flex;
  gap: 0;
  margin-top: 48px;
  max-width: 520px;
}
.metrics div {
  flex: 1;
  padding-right: 18px;
  margin-right: 18px;
  border-right: 1px solid #e4e7ed;
}
.metrics div:last-child { border-right: 0; margin-right: 0; padding-right: 0; }
.metrics strong {
  display: block;
  font-size: 22px;
  color: var(--ink);
  line-height: 1.3;
}
.metrics span { color: var(--subtle); font-size: 13px; }

.hero-visual { position: relative; min-height: 380px; }
.bed-stage {
  width: min(100%, 420px);
  margin-left: auto;
  background: #fff;
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 12px 12px 18px;
}
.hero-photo {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: 14px;
}
.bed-caption {
  text-align: center;
  color: var(--subtle);
  font-size: 13px;
}
.float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(40, 48, 90, 0.1);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}
.float-a { top: 18px; left: 0; }
.float-b { top: 46%; right: 0; }
.float-c { bottom: 36px; left: 18px; }
.mini-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 14px;
}
.mini-purple { background: var(--purple); }
.mini-blue { background: var(--blue); }
.mini-green { background: #67c23a; }

.section { padding: 88px 0; background: #fff; }
.section-muted { background: var(--bg); }
.section h2, .cta h2 {
  text-align: center;
  font-size: 36px;
  font-weight: 700;
  color: var(--text);
}
.section-desc {
  text-align: center;
  color: var(--subtle);
  margin: 10px auto 40px;
}

.card-grid, .advantage-grid, .product-grid, .plan-grid, .spec-row {
  display: grid;
  gap: 18px;
}
.card-grid { grid-template-columns: repeat(3, 1fr); }
.info-card, .product-card, .plan, .spec-row article, .contact-card {
  background: var(--card);
  border-radius: 16px;
  padding: 28px 24px;
}
.product-card, .plan, .spec-row article, .contact-card { background: #fff; }
.section-muted .info-card { background: #fff; }
.info-card {
  background: var(--card);
}
.info-card h3, .product-card h3, .advantage-grid h3, .spec-row h3 {
  margin: 12px 0 8px;
  font-size: 18px;
  color: var(--ink);
}
.info-card p, .product-card p, .advantage-grid p, .spec-row p, .steps p {
  color: var(--muted);
  font-size: 14px;
}
.icon, .adv-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-weight: 700;
}
.icon-purple { background: #efedff; color: var(--purple); }
.icon-blue { background: #ecf5ff; color: var(--blue); }
.icon-cyan { background: #e8f8f6; color: #13c2c2; }
.icon-green { background: #f0f9eb; color: #67c23a; }
.icon-pink { background: #fdeff3; color: #f56c9a; }
.icon-orange { background: #fdf6ec; color: #e6a23c; }

.advantage-grid { grid-template-columns: repeat(4, 1fr); }
.adv-icon {
  background: #efedff;
  color: var(--purple);
  font-size: 14px;
}

.product-grid { grid-template-columns: repeat(3, 1fr); }
.product-card { border: 1px solid var(--line); }
.product-photo {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 12px;
}

.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 28px 0;
}
.steps li {
  background: var(--card);
  border-radius: 16px;
  padding: 22px 18px;
}
.steps span {
  color: var(--purple);
  font-weight: 800;
  font-size: 20px;
}
.steps h3 { margin: 8px 0; font-size: 16px; color: var(--ink); }

.spec-row { grid-template-columns: repeat(3, 1fr); }
.spec-row article { border: 1px solid var(--line); }

.platform-row {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  max-width: 640px;
  margin: 0 auto;
}
.platform-row {
  max-width: 760px;
}
.platform-row li {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  min-height: 120px;
  display: grid;
  place-items: center;
  padding: 20px;
}
.platform-row img { width: 72px; height: 72px; }

.plan-grid { grid-template-columns: repeat(3, 1fr); align-items: stretch; }
.plan {
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  position: relative;
}
.plan-featured {
  border: 2px solid #409eff;
  box-shadow: var(--shadow);
  transform: translateY(-8px);
}
.plan-year { border: 2px solid #f5a623; }
.plan-tag {
  position: absolute;
  top: 16px;
  right: 16px;
  background: #ff7a45;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
}
.plan-tag-gold { background: #f5a623; }
.plan-price {
  margin: 14px 0 0;
  font-size: 40px;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.1;
}
.plan-price span {
  font-size: 16px;
  font-weight: 600;
  color: var(--muted);
}
.plan-daily {
  margin-top: 6px;
  color: var(--subtle);
  font-size: 13px;
}
.plan-save {
  margin-top: 10px;
  background: #fff1f0;
  color: #f56c6c;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  border-radius: 6px;
  padding: 4px 8px;
}
.plan-foot {
  margin: 8px 0 0;
  color: var(--subtle);
  font-size: 13px;
  text-align: center;
}
.plan ul {
  list-style: none;
  margin-bottom: 22px;
  flex: 1;
}
.plan li {
  position: relative;
  padding-left: 18px;
  margin: 8px 0;
  color: var(--muted);
  font-size: 14px;
}
.plan li::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--purple);
  position: absolute;
  left: 0;
  top: 0.55em;
}

.faq-list { display: grid; gap: 12px; }
.faq-list details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 18px;
}
.faq-list summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--ink);
}
.faq-list p { margin-top: 8px; color: var(--muted); font-size: 14px; }

.cta {
  padding: 72px 0;
  background: linear-gradient(90deg, #667eea, #7a5af8);
  color: #fff;
  text-align: center;
}
.cta h2 { color: #fff; }
.cta p { margin: 12px 0 24px; color: rgba(255, 255, 255, 0.92); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 18px;
}
.contact-card {
  border: 1px solid var(--line);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 160px;
}
.contact-card strong { font-size: 28px; color: var(--ink); line-height: 1.3; }
.contact-label { color: var(--purple); font-size: 13px; font-weight: 700; }
.contact-card span:last-child, .map-link { color: var(--muted); font-size: 14px; }
.map-link { color: var(--blue); width: fit-content; }

.footer {
  background: #1e1f2e;
  color: rgba(255, 255, 255, 0.72);
  padding-top: 48px;
}
.footer a { color: rgba(255, 255, 255, 0.72); text-decoration: none; display: block; margin: 8px 0; }
.footer a:hover { color: #fff; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 28px;
  padding-bottom: 28px;
}
.footer-brand { color: #fff; font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.footer h3 { color: #fff; font-size: 15px; margin-bottom: 8px; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 16px 0 22px;
  font-size: 13px;
}

@media (max-width: 1080px) {
  .nav-toggle { display: flex; margin-left: 8px; }
  .header-login { margin-left: auto; height: 36px; padding: 0 14px; }
  .menu {
    display: none;
    position: absolute;
    top: var(--header);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    padding: 8px 20px 20px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }
  .menu.is-open { display: flex; }
  .nav-links { flex-direction: column; margin: 0; gap: 4px; align-items: stretch; }
  .nav-links a { padding: 10px 0; }
  .float-card { position: static; width: fit-content; margin-top: 10px; }
  .hero-visual { min-height: 0; }
  .header { height: var(--header); }
  .header-inner { position: relative; }
  .hero-grid, .card-grid, .advantage-grid, .product-grid, .steps, .spec-row, .plan-grid, .platform-row, .contact-grid, .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .plan-featured { transform: none; }
  .hero h1 { font-size: 40px; }
  .float-a, .float-c { left: 8px; }
}

@media (max-width: 720px) {
  .container, .header-inner, .narrow { width: min(var(--max), calc(100% - 32px)); }
  .hero { padding-top: 28px; }
  .hero-grid, .card-grid, .advantage-grid, .product-grid, .steps, .spec-row, .plan-grid, .contact-grid, .footer-grid, .platform-row {
    grid-template-columns: 1fr;
  }
  .logo-name { font-size: 16px; }
  .hero h1 { font-size: 30px; }
  .section h2, .cta h2 { font-size: 26px; }
  .section { padding: 52px 0; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .metrics {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    max-width: none;
    gap: 8px;
  }
  .metrics div { border-right: 0; margin: 0; padding: 0; }
  .metrics strong { font-size: 16px; }
  .hero-photo, .product-photo { height: 200px; }
  .bed-stage { margin: 0; }
  .platform-row li { min-height: 100px; padding: 16px; }
  .platform-row img { width: 64px; height: 64px; }
  .plan-price { font-size: 32px; }
  .contact-card strong { font-size: 22px; word-break: break-all; }
  .cta { padding: 48px 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
