﻿/* 心声驿站 — Editorial Bento Layout */

:root {
  --wrap: 1100px;
  --px: 24px;
  --font: "Noto Sans SC", "PingFang SC", "Source Han Sans SC", "Microsoft YaHei", sans-serif;
  --bg: #f7f5f2;
  --surface: #ffffff;
  --ink: #1c1917;
  --muted: #6b6560;
  --line: #e7e5e4;
  --accent: #b45309;
  --accent-soft: #fef3c7;
  --dark: #1c1917;
  --dark-muted: #a8a29e;
  --radius: 16px;
  --text-sm: clamp(0.75rem, 0.73rem + 0.06vw, 0.8125rem);
  --text-base: clamp(0.875rem, 0.86rem + 0.08vw, 0.9375rem);
  --text-lg: clamp(1rem, 0.96rem + 0.12vw, 1.125rem);
  --text-hero: clamp(1.5rem, 1.35rem + 0.5vw, 1.875rem);
  --text-logo: clamp(1.375rem, 1.2rem + 0.4vw, 1.625rem);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  font-weight: 400;
  font-synthesis: none;
  -webkit-font-smoothing: auto;
  -moz-osx-font-smoothing: auto;
  text-rendering: auto;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--px);
}

/* ── Hero ── */
.hero {
  padding: 28px 0 24px;
}

.hero-layout {
  display: grid;
  gap: 20px;
  align-items: stretch;
}

.hero-brand {
  margin-bottom: 18px;
}

.logo {
  font-size: var(--text-logo);
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--ink);
  line-height: 1.2;
}

.tagline {
  margin-top: 5px;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.06em;
}

.hero-main h1 {
  font-size: var(--text-hero);
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
  color: var(--ink);
}

.sub {
  font-size: var(--text-base);
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 22px;
}

.hero-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-panel-label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 14px;
}

.hero-points {
  list-style: none;
  display: grid;
  gap: 10px;
}

.hero-points li {
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.hero-points li:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.hero-points strong {
  display: block;
  font-size: var(--text-base);
  font-weight: 600;
  margin-bottom: 3px;
}

.hero-points span {
  font-size: var(--text-sm);
  color: var(--muted);
  line-height: 1.55;
}

.hero-panel-foot {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: var(--text-sm);
  color: var(--muted);
}

.hero-panel-foot a {
  color: var(--accent);
  font-weight: 600;
}

.hero-panel-foot a:hover {
  text-decoration: underline;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 22px;
  font-size: var(--text-base);
  font-weight: 600;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: opacity 0.15s, background 0.15s, border-color 0.15s;
}

.btn-fill { background: var(--dark); color: #fff; }
.btn-fill:hover { opacity: 0.88; }
.btn-line { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-line:hover { border-color: var(--ink); }
.btn-block { width: 100%; }

/* ── Bento Board ── */
.board {
  padding: 0 0 20px;
}

.bento {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  overflow: hidden;
}

.cell {
  background: var(--surface);
  padding: 16px 18px;
}

.cell-label {
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--muted);
  margin-bottom: 10px;
}

/* Pain */
.pain-rows {
  list-style: none;
}

.pain-rows li {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 8px 0;
  font-size: var(--text-base);
  font-weight: 500;
  border-bottom: 1px solid var(--line);
}

.pain-rows li:last-child { border-bottom: none; }

.pain-rows span {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--accent);
  flex-shrink: 0;
}

/* Topics */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tags span {
  font-size: var(--text-sm);
  font-weight: 500;
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
}

/* Services */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.svc-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 10px 12px;
  background: var(--bg);
  border-radius: 12px;
  border: 1px solid transparent;
  transition: border-color 0.15s;
}

.svc-item:hover { border-color: var(--line); }

.svc-icon {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--accent);
}

.svc-icon svg { width: 18px; height: 18px; }

.svc-item strong {
  font-size: var(--text-base);
  font-weight: 600;
}

.svc-item span {
  font-size: var(--text-sm);
  color: var(--muted);
  line-height: 1.45;
}

/* Steps */
.step-track {
  display: flex;
  align-items: flex-start;
  gap: 0;
  overflow-x: auto;
  padding-bottom: 4px;
  -webkit-overflow-scrolling: touch;
}

.step-card {
  flex: 1;
  min-width: 72px;
  text-align: center;
  padding: 4px 6px;
}

.step-icon-wrap {
  position: relative;
  width: 38px;
  height: 38px;
  margin: 0 auto 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
}

.step-icon-wrap svg { width: 18px; height: 18px; }

.step-num {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  background: var(--dark);
  color: #fff;
  border-radius: 50%;
  border: 2px solid var(--surface);
}

.step-card strong {
  display: block;
  font-size: var(--text-base);
  font-weight: 600;
  margin-bottom: 3px;
}

.step-card span {
  font-size: var(--text-sm);
  color: var(--muted);
  line-height: 1.4;
}

.step-arrow {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  padding-top: 10px;
  color: var(--line);
}

.step-arrow svg { width: 16px; height: 16px; }

/* Trust */
.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.trust-row span {
  font-size: var(--text-sm);
  font-weight: 500;
  padding: 6px 14px;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 999px;
}

.trust-note {
  font-size: var(--text-sm);
  color: var(--muted);
}

/* ── Pricing ── */
.pricing {
  padding: 28px 0 32px;
  border-top: 1px solid var(--line);
}

.pricing-layout {
  display: grid;
  gap: 24px;
  align-items: center;
}

.pricing-copy h2 {
  font-size: clamp(1.35rem, 1.1rem + 0.6vw, 1.75rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.pricing-copy p {
  font-size: var(--text-base);
  color: var(--muted);
}

.pricing-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.pcard {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 16px;
  position: relative;
}

.pcard-hot {
  border-color: var(--accent);
  background: linear-gradient(160deg, #fffbeb 0%, #fff 60%);
}

.pcard-badge {
  position: absolute;
  top: -9px;
  left: 20px;
  font-size: 11px;
  font-weight: 600;
  background: var(--accent);
  color: #fff;
  padding: 3px 10px;
  border-radius: 999px;
}

.pcard h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
}

.pcard-price {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 6px;
}

.pcard-price small {
  font-size: 16px;
  font-weight: 500;
  color: var(--muted);
}

.pcard-desc {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 16px;
}

/* ── Bottom ── */
.bottom {
  padding: 32px 0;
  border-top: 1px solid var(--line);
}

.bottom-layout {
  display: grid;
  gap: 40px;
}

.bottom h2 {
  font-size: var(--text-lg);
  font-weight: 700;
  margin-bottom: 20px;
}

.quotes blockquote {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.quotes blockquote:last-child { border-bottom: none; }

.quotes p {
  font-size: var(--text-base);
  line-height: 1.7;
  margin-bottom: 6px;
}

.quotes footer {
  font-size: var(--text-sm);
  color: var(--muted);
}

.faqs details {
  border-bottom: 1px solid var(--line);
}

.faqs summary {
  padding: 16px 0;
  font-size: var(--text-base);
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faqs summary::-webkit-details-marker { display: none; }
.faqs summary::after { content: "+"; font-size: 18px; color: var(--muted); font-weight: 400; }
.faqs details[open] summary::after { content: "−"; }

.faqs p {
  padding: 0 0 16px;
  font-size: var(--text-sm);
  color: var(--muted);
  line-height: 1.65;
}

/* ── Contact ── */
.contact-band {
  background: var(--dark);
  color: #fff;
  padding: 36px 0;
}

.contact-layout {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px 40px;
}

.contact-band h2 {
  font-size: clamp(1.25rem, 1.1rem + 0.5vw, 1.625rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.contact-band p {
  font-size: 14px;
  color: var(--dark-muted);
}

.contact-qr {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0;
}

.contact-qr img {
  width: 88px;
  height: 88px;
  border-radius: 8px;
  background: #fff;
  padding: 5px;
  flex-shrink: 0;
}

.contact-qr figcaption {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.4;
}

/* ── Footer ── */
.foot {
  padding: 24px 0;
  text-align: center;
  font-size: var(--text-sm);
  color: var(--muted);
}

/* ── Back to top ── */
.back-top {
  position: fixed;
  right: 20px;
  bottom: calc(72px + env(safe-area-inset-bottom));
  z-index: 95;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.2s, visibility 0.2s, transform 0.2s;
}

.back-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-top[hidden] { display: flex; }
.back-top:hover { background: var(--bg); }

/* ── Mobile bar ── */
.mob-bar {
  display: flex;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 90;
  padding: 10px var(--px);
  padding-bottom: calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
}

.mob-bar a {
  flex: 1;
  text-align: center;
  padding: 12px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 10px;
  background: var(--dark);
  color: #fff;
}

/* ── Responsive ── */
@media (min-width: 768px) {
  .hero {
    padding: 36px 0 28px;
  }

  .hero-layout {
    grid-template-columns: 1fr minmax(280px, 360px);
    gap: 28px;
    align-items: center;
  }

  .bento {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto auto auto;
  }

  .cell-pain { grid-column: 1; grid-row: 1; }
  .cell-topics { grid-column: 2; grid-row: 1; }
  .cell-service { grid-column: 1 / 3; grid-row: 2; }
  .cell-steps { grid-column: 1 / 3; grid-row: 3; }
  .cell-trust { grid-column: 1 / 3; grid-row: 4; }

  .svc-grid { grid-template-columns: repeat(4, 1fr); }

  .cell-trust {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 14px;
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .cell-trust .cell-label {
    margin-bottom: 0;
    flex-shrink: 0;
  }

  .cell-trust .trust-row {
    margin-bottom: 0;
    flex: 1;
  }

  .cell-trust .trust-note {
    width: 100%;
    margin-top: -2px;
  }

  .pricing-layout {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
  }

  .bottom-layout {
    grid-template-columns: 1fr 1fr;
    gap: 48px;
  }

  .mob-bar { display: none; }
  .back-top { bottom: 28px; }
  body { padding-bottom: 0; }
}

@media (max-width: 767px) {
  body { padding-bottom: 64px; }
}

/* 1080p+ */
@media (min-width: 1440px) {
  :root {
    --wrap: 1160px;
    --px: 28px;
  }

  .hero-layout {
    grid-template-columns: 1fr minmax(300px, 360px);
    gap: 28px;
  }

  .cell {
    padding: 18px 20px;
  }

  .pricing-layout {
    gap: 40px;
  }
}

/* 2K */
@media (min-width: 1920px) {
  :root {
    --wrap: 1240px;
    --px: 32px;
  }

  html { font-size: 16.5px; }

  .hero-layout {
    grid-template-columns: 1fr minmax(320px, 380px);
    gap: 36px;
  }

  .bottom-layout {
    gap: 48px;
  }
}

/* 4K */
@media (min-width: 2560px) {
  :root {
    --wrap: 1320px;
    --px: 36px;
  }

  html { font-size: 17px; }

  .hero-layout {
    grid-template-columns: 1fr minmax(340px, 400px);
    gap: 40px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .back-top { transition: none; }
}
