/*
Design Philosophy: 晨雾手稿
File Role: 全站外部样式，延续简·爱式植物庄园、非对称章节排版、雾感与纸张质地。
Question: 这个选择是否强化而不是稀释“晨雾手稿”的文学植物影像气质？
*/
:root {
  --bg: #f5f0e6;
  --paper: #f9f5ec;
  --panel: rgba(255, 249, 239, 0.82);
  --text: #21372f;
  --muted: #6e786f;
  --line: rgba(33, 55, 47, 0.12);
  --deep: #183128;
  --gold: #a98a52;
  --mist: #dbe1d8;
  --shadow: 0 22px 60px rgba(22, 39, 31, 0.13);
  --radius: 28px;
  --container: 1200px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(219,225,216,0.65), transparent 24%),
    linear-gradient(180deg, #f5f0e6 0%, #eef1ea 35%, #f6f1e7 100%);
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.72;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input { font: inherit; }
.site-shell { position: relative; overflow: clip; }
.texture::before,
.texture::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -2;
}
.texture::before {
  opacity: 0.24;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(24,49,40,0.09) 1px, transparent 0);
  background-size: 16px 16px;
  mix-blend-mode: multiply;
}
.texture::after {
  background: linear-gradient(180deg, rgba(255,255,255,0.25), transparent 18%, rgba(17,31,24,0.03));
}
.container {
  width: min(calc(100% - 2rem), var(--container));
  margin-inline: auto;
}
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(16px);
  background: rgba(249, 245, 236, 0.72);
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 1rem 2rem;
  align-items: center;
  padding: 1rem 0;
}
.brandmark {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
}
.brandmark img {
  width: 52px;
  height: 52px;
  object-fit: contain;
}
.brand-title {
  display: block;
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: 1.2rem;
  letter-spacing: 0.08em;
}
.brand-sub {
  color: var(--muted);
  font-size: 0.82rem;
}
.nav-wrap {
  display: grid;
  gap: 0.85rem;
}
.nav-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  justify-content: flex-end;
}
.nav-list a {
  padding-bottom: 0.15rem;
  position: relative;
  font-size: 0.94rem;
}
.nav-list a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.12rem;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.35s ease;
}
.nav-list a:hover::after,
.nav-list a:focus-visible::after,
.nav-list a.current::after { transform: scaleX(1); }
.searchbar {
  display: flex;
  justify-content: flex-end;
}
.searchbox {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  width: min(100%, 420px);
  border: 1px solid rgba(24,49,40,0.15);
  background: rgba(255,255,255,0.62);
  border-radius: 999px;
  padding: 0.4rem 0.55rem 0.4rem 1rem;
  box-shadow: 0 10px 30px rgba(20, 40, 30, 0.06);
}
.searchbox input {
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  min-width: 0;
}
.searchbox button,
.button,
.share-btn,
.video-play,
.fake-action {
  border: 0;
  border-radius: 999px;
  padding: 0.75rem 1.2rem;
  background: var(--deep);
  color: #f7f1e4;
  transition: transform 0.3s ease, opacity 0.3s ease, background 0.3s ease;
}
.searchbox button:hover,
.button:hover,
.share-btn:hover,
.video-play:hover,
.fake-action:hover {
  transform: translateY(-2px);
  background: #224337;
}
.hero {
  position: relative;
  min-height: 88svh;
  display: flex;
  align-items: end;
  isolation: isolate;
}
.hero-media,
.hero-media::after {
  position: absolute;
  inset: 0;
}
.hero-media {
  background: linear-gradient(120deg, rgba(15,27,22,0.74), rgba(15,27,22,0.22) 55%, rgba(245,240,230,0.08)),
    url('../images/hero.webp') center/cover no-repeat;
  transform: scale(1.02);
}
.hero-media::after {
  content: "";
  background: linear-gradient(180deg, rgba(14,24,20,0.15), rgba(14,24,20,0.52) 76%, rgba(245,240,230,0.8));
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.75fr);
  gap: 2rem;
  padding: 8rem 0 4rem;
}
.hero-copy {
  color: #f6f2ea;
  padding: 2.2rem 2.1rem 2rem;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 32px;
  background: linear-gradient(180deg, rgba(255,255,255,0.1), rgba(255,255,255,0.04));
  box-shadow: 0 30px 80px rgba(0,0,0,0.18);
  backdrop-filter: blur(12px);
}
.kicker,
.section-kicker,
.meta-label,
.breadcrumb {
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.76rem;
}
.kicker,
.section-kicker,
.breadcrumb { color: rgba(246,242,234,0.82); }
.hero h1,
.page-hero h1,
.section-title {
  margin: 0.55rem 0 1rem;
  line-height: 1.08;
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-weight: 700;
}
.hero h1 { font-size: clamp(2.5rem, 5.8vw, 5.4rem); max-width: 12ch; }
.hero p { max-width: 62ch; margin: 0; font-size: 1.02rem; }
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.6rem;
}
.button.secondary {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.24);
}
.hero-panel {
  align-self: end;
  background: rgba(249,245,236,0.86);
  color: var(--text);
  border-radius: 30px;
  padding: 1.5rem;
  box-shadow: var(--shadow);
}
.hero-panel dl {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.hero-panel dt {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero-panel dd {
  margin: 0.35rem 0 0;
  font-family: "Noto Serif SC", serif;
  font-size: 1.24rem;
}
.section {
  padding: 5.3rem 0;
  position: relative;
}
.section-head {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 2rem;
  align-items: end;
  margin-bottom: 2rem;
}
.section-head p { margin: 0; color: var(--muted); }
.section-title { font-size: clamp(2rem, 4vw, 3.4rem); color: var(--deep); }
.asym-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2rem;
  align-items: stretch;
}
.image-card,
.panel,
.video-card,
.partner-card,
.faq-item,
.review-card,
.contact-card,
.share-card,
.article-card,
.expert-card,
.community-card,
.story-card {
  border-radius: var(--radius);
  background: var(--panel);
  border: 1px solid rgba(24,49,40,0.09);
  box-shadow: var(--shadow);
}
.image-card {
  overflow: hidden;
  min-height: 100%;
}
.image-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.panel {
  padding: 1.6rem;
}
.panel p:last-child { margin-bottom: 0; }
.card-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.25rem;
}
.video-card {
  grid-column: span 6;
  overflow: hidden;
}
.video-visual {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}
.video-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}
.video-card:hover .video-visual img { transform: scale(1.05); }
.video-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(18,30,24,0.12), rgba(18,30,24,0.45));
}
.video-play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(0.88);
  z-index: 2;
  width: 74px;
  height: 74px;
  padding: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(245,240,230,0.2);
  border: 1px solid rgba(255,255,255,0.38);
  backdrop-filter: blur(8px);
  opacity: 0;
}
.video-card:hover .video-play,
.video-card:focus-within .video-play { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.play-triangle {
  width: 0;
  height: 0;
  margin-left: 4px;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 16px solid #f8f4ea;
}
.video-copy { padding: 1.35rem 1.35rem 1.5rem; }
.video-copy h3,
.community-card h3,
.expert-card h3,
.story-card h3,
.article-card h3,
.contact-card h3 {
  margin: 0 0 0.5rem;
  font-family: "Noto Serif SC", serif;
  font-size: 1.35rem;
}
.muted { color: var(--muted); }
.tag-row,
.keyword-row,
.partner-list,
.stat-row,
.action-row,
.share-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}
.tag,
.partner-logo,
.meta-chip,
.share-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.42rem 0.82rem;
  background: rgba(24,49,40,0.08);
  color: var(--deep);
  font-size: 0.84rem;
}
.community-grid,
.experts-grid,
.review-grid,
.contact-grid,
.story-grid,
.article-grid,
.partner-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.2rem;
}
.community-card,
.expert-card,
.review-card,
.contact-card,
.story-card,
.article-card,
.partner-card { padding: 1.3rem; }
.community-card { grid-column: span 4; }
.expert-card { grid-column: span 4; }
.review-card { grid-column: span 4; }
.contact-card { grid-column: span 6; }
.story-card { grid-column: span 4; }
.article-card { grid-column: span 4; }
.partner-card { grid-column: span 4; }
.section-slab {
  padding: 2rem;
  border: 1px solid rgba(24,49,40,0.08);
  background: rgba(255,255,255,0.48);
  border-radius: 34px;
  box-shadow: 0 18px 48px rgba(17, 35, 28, 0.08);
}
.faq-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.faq-item { padding: 1.2rem 1.3rem; }
.faq-item h3 { margin-top: 0; font-size: 1.04rem; }
.page-hero {
  padding: 9rem 0 3rem;
  background: linear-gradient(180deg, rgba(24,49,40,0.82), rgba(24,49,40,0.55)), url('../images/community.webp') center/cover no-repeat;
  color: #f6f2ea;
}
.page-hero.alt-video { background-image: linear-gradient(180deg, rgba(24,49,40,0.8), rgba(24,49,40,0.5)), url('../images/video.webp'); }
.page-hero.alt-expert { background-image: linear-gradient(180deg, rgba(24,49,40,0.8), rgba(24,49,40,0.5)), url('../images/expert.webp'); }
.page-hero .lead { max-width: 60ch; }
.breadcrumb a { color: inherit; opacity: 0.9; }
.page-main { padding: 3rem 0 5rem; }
.two-column {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 1.6rem;
  align-items: start;
}
.sidebar-card {
  position: sticky;
  top: 6.8rem;
  padding: 1.3rem;
}
.footer {
  padding: 3rem 0 4rem;
  background: #183128;
  color: #f4efe6;
  margin-top: 4rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr;
  gap: 1.5rem;
  align-items: start;
}
.footer small,
.footer p,
.footer li,
.footer a { color: rgba(244,239,230,0.8); }
.footer-brand {
  display: flex;
  gap: 1rem;
  align-items: center;
}
.footer-brand img { width: 64px; height: 64px; object-fit: contain; }
.footer .qr-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.footer .qr-grid img {
  border-radius: 18px;
  background: #f6f2ea;
  padding: 0.6rem;
}
.toast {
  position: fixed;
  left: 50%;
  bottom: 1.4rem;
  transform: translateX(-50%) translateY(140%);
  padding: 0.95rem 1.2rem;
  border-radius: 999px;
  background: rgba(24,49,40,0.92);
  color: #f6f2ea;
  box-shadow: 0 18px 48px rgba(0,0,0,0.18);
  transition: transform 0.35s ease;
  z-index: 60;
}
.toast.show { transform: translateX(-50%) translateY(0); }
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
@media (max-width: 1100px) {
  .hero-grid,
  .section-head,
  .asym-grid,
  .two-column,
  .footer-grid,
  .topbar-inner {
    grid-template-columns: 1fr;
  }
  .nav-list,
  .searchbar { justify-content: start; }
  .sidebar-card { position: static; }
}
@media (max-width: 800px) {
  .community-card,
  .expert-card,
  .review-card,
  .contact-card,
  .story-card,
  .article-card,
  .partner-card,
  .video-card { grid-column: 1 / -1; }
  .faq-list { grid-template-columns: 1fr; }
  .hero { min-height: auto; }
  .hero-grid { padding-top: 7rem; }
  .hero-panel dl { grid-template-columns: 1fr; }
  .footer .qr-grid { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
