/* baiyangshuo-site — 移动优先；品牌绿 + 轻氛围；大屏加宽 + Hero 分栏 */

:root {
  --bg: #f4f7f5;
  --surface: #ffffff;
  --text: #1a1f1c;
  --text-muted: #5c6560;
  --text-soft: #8a938e;
  --brand: #2f6b4f;
  --brand-press: #255640;
  --brand-soft: #e8f2ec;
  --brand-mist: #eef5f0;
  --line: #e4e8e5;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(26, 31, 28, 0.04);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
    "Noto Sans SC", system-ui, sans-serif;
  --page-max: 720px;
  --page-pad-x: 20px;
  --content-max: 40em;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background:
    radial-gradient(110% 55% at 50% -8%, #d8ebe2 0%, transparent 58%),
    var(--bg);
  min-height: 100vh;
}

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

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

.page {
  max-width: var(--page-max);
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  width: 100%;
}

/* —— Top nav —— */
.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px var(--page-pad-x) 8px;
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--brand);
  line-height: 1.2;
}

.nav-logo {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  gap: 18px;
  font-size: 14px;
  color: var(--text-muted);
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--brand);
}

/* —— Hero —— */
.hero {
  padding: 28px var(--page-pad-x) 36px;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.hero-copy {
  min-width: 0;
}

.hero-visual {
  min-width: 0;
}

.hero-brand {
  margin: 0 0 20px;
  font-size: clamp(40px, 11vw, 56px);
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--brand);
  line-height: 1.1;
}

.hero-slogan {
  margin: 0 0 14px;
  font-size: clamp(22px, 5.5vw, 28px);
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.35;
  color: var(--text);
}

.hero-support {
  margin: 0 0 28px;
  font-size: 15px;
  color: var(--text-muted);
  max-width: 34em;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 28px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.04em;
  border: none;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}

.cta:hover,
.cta:focus-visible {
  background: var(--brand-press);
}

.cta:active {
  transform: scale(0.98);
}

.cta--block {
  width: 100%;
  max-width: 320px;
}

.hero-placeholder {
  margin-top: 36px;
  height: clamp(180px, 42vw, 280px);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, var(--brand-mist) 0%, #dceee4 45%, var(--brand-soft) 100%);
  border: 1px solid rgba(47, 107, 79, 0.12);
  position: relative;
  overflow: hidden;
}

.hero-placeholder img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-placeholder:has(img) {
  background: #e8f2ec;
  border-color: rgba(47, 107, 79, 0.1);
}

.hero-placeholder:not(:has(img))::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 70% 40%, rgba(47, 107, 79, 0.14), transparent 70%);
}

.hero-placeholder-label {
  position: absolute;
  left: 16px;
  bottom: 14px;
  z-index: 1;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--text-soft);
}

/* —— Sections —— */
.section {
  padding: 8px var(--page-pad-x) 40px;
}

.section-title {
  margin: 0 0 16px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand);
}

.intro-text {
  margin: 0;
  font-size: 16px;
  color: var(--text);
  text-align: justify;
  max-width: var(--content-max);
}

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

.points li {
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.points strong {
  display: block;
  margin-bottom: 4px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}

.points span {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.55;
}

/* —— Mid CTA —— */
.mid-cta {
  margin: 8px var(--page-pad-x) 40px;
  padding: 28px 22px;
  border-radius: var(--radius);
  background:
    linear-gradient(160deg, var(--brand-soft) 0%, var(--brand-mist) 100%);
  border: 1px solid rgba(47, 107, 79, 0.1);
  text-align: center;
}

.mid-cta p {
  margin: 0 0 18px;
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
}

.mid-cta .cta {
  margin: 0 auto;
}

/* —— Entry codes（小程序 / 服务号） —— */
.entry-codes {
  padding-bottom: 48px;
}

.entry-lead {
  margin: 0 0 16px;
  font-size: 15px;
  color: var(--text-muted);
  max-width: var(--content-max);
}

.entry-codes-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 280px;
}

.entry-codes-grid > li {
  flex: 1 1 calc(50% - 5px);
  min-width: 118px;
  max-width: 136px;
}

.entry-code {
  margin: 0;
  padding: 10px 10px 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  text-align: center;
}

.entry-code img {
  width: 104px;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  border-radius: 6px;
}

.entry-code figcaption {
  margin-top: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.06em;
}

/* —— Footer —— */
.site-footer {
  margin-top: auto;
  padding: 28px var(--page-pad-x) calc(28px + var(--safe-bottom));
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.55);
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-soft);
}

.footer-entity {
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
}

.footer-meta {
  margin: 0 0 4px;
}

.footer-disclaimer {
  margin: 12px 0 0;
  font-size: 12px;
  color: var(--text-soft);
}

.footer-nav {
  margin: 14px 0 0;
}

.footer-nav a {
  color: var(--brand);
  font-size: 13px;
}

.footer-nav a:hover,
.footer-nav a:focus-visible {
  text-decoration: underline;
}

/* —— Article —— */
.article {
  padding: 12px var(--page-pad-x) 48px;
  flex: 1;
  max-width: 760px;
  width: 100%;
}

.article-header {
  margin-bottom: 24px;
}

.article-header h1 {
  margin: 0 0 10px;
  font-size: clamp(24px, 6vw, 32px);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.02em;
}

.article-meta {
  margin: 0;
  font-size: 13px;
  color: var(--text-soft);
}

.article-media {
  margin: 0 0 28px;
}

.article-media img {
  width: 100%;
  border-radius: var(--radius);
  object-fit: cover;
}

.article-body p {
  margin: 0 0 1.1em;
  font-size: 16px;
  color: var(--text-muted);
}

.article-body p:last-child {
  margin-bottom: 0;
}

.back-home {
  display: inline-block;
  margin-bottom: 20px;
  font-size: 14px;
  color: var(--brand);
}

.back-home:hover,
.back-home:focus-visible {
  text-decoration: underline;
}

/* —— Tablet+：略加宽 + 要点两列 —— */
@media (min-width: 721px) {
  :root {
    --page-max: 960px;
    --page-pad-x: 32px;
  }

  .points {
    grid-template-columns: 1fr 1fr;
  }

  .hero-placeholder {
    height: clamp(220px, 28vw, 320px);
  }
}

/* —— Desktop：内容区加宽 + Hero 左右分栏 —— */
@media (min-width: 960px) {
  :root {
    --page-max: 1120px;
    --page-pad-x: 40px;
  }

  .site-nav {
    padding-top: 22px;
    padding-bottom: 12px;
  }

  .nav-brand {
    font-size: 20px;
  }

  .hero {
    padding-top: 40px;
    padding-bottom: 48px;
  }

  .hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 48px;
    align-items: center;
  }

  .hero-brand {
    margin-bottom: 18px;
    font-size: clamp(48px, 4.2vw, 64px);
  }

  .hero-slogan {
    font-size: clamp(26px, 2.4vw, 32px);
  }

  .hero-support {
    margin-bottom: 32px;
    font-size: 16px;
    max-width: 32em;
  }

  .cta--block {
    width: auto;
    min-width: 200px;
    max-width: none;
  }

  .hero-placeholder {
    margin-top: 0;
    height: clamp(280px, 32vw, 400px);
  }

  .section {
    padding-top: 12px;
    padding-bottom: 48px;
  }

  .intro-text {
    font-size: 17px;
    line-height: 1.7;
  }

  .points {
    gap: 16px;
  }

  .mid-cta {
    margin-top: 12px;
    margin-bottom: 48px;
    padding: 36px 32px;
  }

  .entry-codes-grid {
    max-width: 300px;
    gap: 12px;
  }

  .entry-codes-grid > li {
    max-width: 144px;
  }

  .entry-code {
    padding: 12px 12px 10px;
  }

  .entry-code img {
    width: 112px;
  }

  .article {
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
    padding-top: 20px;
  }

  .media-placeholder {
    height: clamp(200px, 24vw, 280px);
  }
}

@media (min-width: 1280px) {
  :root {
    --page-max: 1200px;
    --page-pad-x: 48px;
  }

  .hero-inner {
    gap: 56px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .cta {
    transition: none;
  }
}
