@charset "UTF-8";

/* =========================================================
   沐雨社区 · 青蓝论坛版式（整站独立骨架）
   ========================================================= */

:root {
  --teal: #4C8FA8;
  --teal-deep: #356b80;
  --teal-dark: #244c5c;
  --teal-soft: #d7e8ee;
  --wash: #f1f8fa;
  --ink: #22333a;
  --muted: #5f7078;
  --line: #d9e5ea;
  --paper: #ffffff;
  --shell: 1200px;
  --header-h: 70px;
  --shadow: 0 12px 26px rgba(36, 76, 92, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--paper);
  font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

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

a {
  color: inherit;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
  font: inherit;
  -webkit-tap-highlight-color: transparent;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}

.page-shell {
  width: min(calc(100% - 52px), var(--shell));
  margin: 0 auto;
}

/* ---------- 图标 ---------- */
.icon {
  display: inline-block;
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  vertical-align: middle;
}

.icon::before {
  display: block;
  width: 100%;
  height: 100%;
  content: "";
  background: center / contain no-repeat;
}

.icon-download::before { background-image: url("../icons/download.svg"); }
.icon-menu::before { background-image: url("../icons/menu.svg"); }
.icon-close::before { background-image: url("../icons/close.svg"); }
.icon-plus::before { background-image: url("../icons/plus.svg"); }
.icon-arrow::before { background-image: url("../icons/arrow.svg"); }
.icon-globe::before { background-image: url("../icons/globe.svg"); }
.icon-wechat::before { background-image: url("../icons/wechat.svg"); }
.icon-bell::before { background-image: url("../icons/bell.svg"); }

/* ---------- 顶栏 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: #fff;
  border-top: 4px solid var(--teal);
  border-bottom: 1px solid var(--line);
}

.nav-shell {
  display: flex;
  align-items: center;
  width: min(calc(100% - 52px), var(--shell));
  min-height: var(--header-h);
  margin: 0 auto;
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: max-content;
  gap: 9px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.2px;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: contain;
  background: var(--wash);
}

.primary-nav {
  margin-left: auto;
}

.primary-nav ul {
  display: flex;
  align-items: center;
  padding: 0;
  margin: 0;
  list-style: none;
}

.primary-nav li {
  position: relative;
}

.primary-nav li + li::before {
  position: absolute;
  top: 50%;
  left: 0;
  width: 1px;
  height: 13px;
  content: "";
  background: var(--line);
  transform: translateY(-50%);
}

.primary-nav a {
  display: block;
  padding: 6px 16px;
  color: #4a5b63;
  font-size: 13.5px;
  transition: color 160ms ease;
}

.primary-nav a:hover {
  color: var(--teal-deep);
}

.nav-download,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
}

.nav-download {
  min-height: 40px;
  padding: 0 17px;
  border: 1.5px solid var(--teal);
  border-radius: 6px;
  color: var(--teal-deep);
  font-size: 13.5px;
  transition: background 160ms ease, color 160ms ease;
}

.nav-download .icon::before {
  filter: invert(41%) sepia(24%) saturate(958%) hue-rotate(155deg) brightness(92%) contrast(89%);
}

.nav-download:hover {
  color: #fff;
  background: var(--teal);
}

.nav-download:hover .icon::before {
  filter: brightness(0) invert(1);
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
}

.menu-toggle .icon {
  width: 18px;
  height: 18px;
  opacity: 0.65;
}

/* ---------- 英雄区 ---------- */
.hero {
  padding: 62px 0 72px;
  background:
    linear-gradient(90deg, rgba(76, 143, 168, 0.06) 1px, transparent 1px) 0 0 / 52px 100%,
    linear-gradient(180deg, #f0f7f9 0%, #ffffff 88%);
  scroll-margin-top: calc(var(--header-h) + 14px);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(400px, 520px);
  align-items: center;
  gap: 50px;
}

.hero-copy {
  max-width: 500px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--teal);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 2.4px;
}

.hero h1 {
  margin: 0;
  font-size: clamp(44px, 5.2vw, 70px);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: 0.5px;
}

.hero-title {
  margin: 15px 0 15px;
  color: var(--teal-deep);
  font-size: clamp(22px, 2.5vw, 31px);
  font-weight: 700;
  letter-spacing: 1.2px;
}

.hero-summary {
  max-width: 460px;
  margin: 0 0 25px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.9;
}

.button {
  min-width: 170px;
  min-height: 47px;
  padding: 0 23px;
  border-radius: 6px;
  font-size: 14.5px;
  transition: background 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.button-primary {
  color: #fff;
  background: var(--teal);
  box-shadow: 0 10px 20px rgba(76, 143, 168, 0.28);
}

.button-primary .icon::before {
  filter: brightness(0) invert(1);
}

.button-primary:hover {
  background: var(--teal-deep);
  transform: translateY(-2px);
}

.hero-note {
  margin: 18px 0 0;
  color: #7f939b;
  font-size: 12px;
  letter-spacing: 0.3px;
}

/* ---------- 英雄组件：论坛版块列表 ---------- */
.hero-boards {
  width: 100%;
  max-width: 520px;
  min-width: 0;
  margin-left: auto;
  border: 1px solid #cfe0e7;
  border-radius: 10px;
  background: #fff;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hb-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 18px;
  color: #eaf5f8;
  background: var(--teal);
  font-size: 12px;
  letter-spacing: 0.6px;
}

.hb-head b {
  font-weight: 700;
  letter-spacing: 1.2px;
}

.hb-row {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 13px 18px;
  border-bottom: 1px solid #edf3f6;
  transition: background 160ms ease;
}

.hb-row:hover {
  background: #f6fbfc;
}

.hb-ico {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

.hb-ico.i1 { background: #4C8FA8; }
.hb-ico.i2 { background: #5f9f8a; }
.hb-ico.i3 { background: #b58b62; }
.hb-ico.i4 { background: #7c8fa8; }

.hb-txt {
  min-width: 0;
}

.hb-txt b {
  display: block;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
}

.hb-txt small {
  display: block;
  overflow: hidden;
  color: #8a9ba2;
  font-size: 11.5px;
  line-height: 1.5;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.hb-badge {
  min-width: 44px;
  padding: 4px 9px;
  border-radius: 999px;
  color: var(--teal-deep);
  background: #e8f3f6;
  font-size: 11.5px;
  font-weight: 700;
  text-align: center;
}

.hb-foot {
  display: flex;
  justify-content: space-between;
  padding: 11px 18px;
  color: #82959d;
  background: #fafcfd;
  font-size: 11.5px;
}

/* ---------- 通用标题 ---------- */
.section-heading {
  max-width: 620px;
  margin-bottom: 34px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 800;
  line-height: 1.22;
}

.section-heading > p:last-child {
  margin: 11px 0 0;
  color: var(--muted);
  font-size: 14.5px;
}

/* ---------- 核心特色 ---------- */
.routes {
  padding: 70px 0 78px;
  background: #fff;
  scroll-margin-top: calc(var(--header-h) + 14px);
}

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

.four {
  position: relative;
  padding: 24px 26px 24px 30px;
  border-left: 4px solid var(--teal-soft);
  border-radius: 0 8px 8px 0;
  background: #fbfdfe;
  box-shadow: 0 6px 16px rgba(36, 76, 92, 0.05);
  transition: border-color 180ms ease, background 180ms ease;
}

.four:hover {
  border-left-color: var(--teal);
  background: #f5fafc;
}

.four .n {
  position: absolute;
  top: 18px;
  right: 22px;
  color: #e2eef2;
  font-size: 30px;
  font-weight: 800;
  line-height: 1;
}

.four h3 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 700;
}

.four p {
  margin: 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.85;
}

/* ---------- 界面展示 ---------- */
.screens {
  padding: 74px 0 82px;
  background: var(--wash);
  border-top: 1px solid #e2eef2;
  border-bottom: 1px solid #e2eef2;
  scroll-margin-top: calc(var(--header-h) + 14px);
}

.shots {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.shot {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  align-items: center;
  column-gap: 20px;
  min-width: 0;
  margin: 0;
  padding: 14px;
  border: 1px solid #dae8ed;
  border-radius: 10px;
  background: #fff;
}

.shot img {
  width: 100%;
  aspect-ratio: 9 / 15;
  object-fit: cover;
  object-position: top center;
  border-radius: 6px;
  background: #f4f8fa;
}

.shot figcaption {
  min-width: 0;
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
}

.shot figcaption small {
  display: block;
  margin-top: 6px;
  color: #7b8e96;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.7;
}

/* ---------- FAQ ---------- */
.faq {
  padding: 72px 0 64px;
  background: #fff;
  scroll-margin-top: calc(var(--header-h) + 14px);
}

.faq-list {
  border-top: 2px solid var(--teal);
  counter-reset: qa;
}

.faq-item {
  counter-increment: qa;
  border-bottom: 1px solid var(--line);
}

.faq-item summary {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 60px;
  padding: 0 4px;
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary h3 {
  margin: 0;
  font-size: 15.5px;
  font-weight: 700;
  line-height: 1.5;
  text-align: left;
}

.faq-item summary h3::before {
  content: "0" counter(qa);
  display: inline-block;
  min-width: 34px;
  color: var(--teal);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.6px;
}

.faq-item summary .icon {
  width: 13px;
  height: 13px;
  flex: none;
  margin-left: auto;
  opacity: 0.5;
  transition: transform 180ms ease;
}

.faq-item summary .icon::before {
  filter: invert(46%) sepia(16%) saturate(878%) hue-rotate(153deg) brightness(93%) contrast(88%);
}

.faq-item[open] summary .icon {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 4px 16px 50px;
}

.faq-answer p {
  margin: 0;
  color: var(--muted);
  font-size: 13.8px;
  line-height: 1.9;
}

/* ---------- 官方入口 ---------- */
.official {
  padding: 6px 0 76px;
  background: #fff;
}

.official-fold {
  border-radius: 8px;
  background: var(--teal);
  overflow: hidden;
}

.official-fold summary {
  display: flex;
  align-items: center;
  min-height: 58px;
  padding: 0 22px;
  color: #fff;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  list-style: none;
}

.official-fold summary::-webkit-details-marker {
  display: none;
}

.official-fold summary::after {
  content: "+";
  margin-left: auto;
  color: #d9eef5;
  font-size: 18px;
  font-weight: 400;
}

.official-fold[open] summary::after {
  content: "−";
}

.official-link {
  padding: 0 22px 18px;
}

.official-link p {
  margin: 0;
  padding-top: 13px;
  border-top: 1px solid rgba(255, 255, 255, 0.28);
  color: #dcecf2;
  font-size: 13.5px;
}

.official-link a {
  color: #fff;
  font-weight: 700;
  border-bottom: 1px solid rgba(255, 255, 255, 0.6);
  word-break: break-all;
}

/* ---------- 用户评价 ---------- */
.reviews {
  padding: 72px 0 80px;
  background: #f5f9fb;
  border-top: 1px solid #e2eef2;
  scroll-margin-top: calc(var(--header-h) + 14px);
}

.rgrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.review-card {
  min-width: 0;
  padding: 18px 20px 16px;
  border: 1px solid #dce8ed;
  border-left: 3px solid var(--teal-soft);
  border-radius: 6px;
  background: #fff;
}

.review-card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eef4f7;
}

.who {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 9px;
}

.ava {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  color: #fff;
  background: var(--teal);
  font-size: 13px;
}

.who b {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.3;
}

.who small {
  display: block;
  color: #95a5ac;
  font-size: 10.5px;
  line-height: 1.5;
}

.review-card time {
  flex: none;
  color: #96a6ad;
  font-size: 10.5px;
  white-space: nowrap;
}

.review-card > p {
  margin: 11px 0 0;
  color: #4b5c64;
  font-size: 13.4px;
  line-height: 1.88;
}

.rv-site {
  margin-top: 9px;
  color: var(--teal-deep);
  font-size: 11px;
  letter-spacing: 0.2px;
}

/* ---------- 下载 CTA ---------- */
.download-cta {
  padding: 54px 0 50px;
  color: #fff;
  background: var(--teal-dark);
  scroll-margin-top: calc(var(--header-h) + 14px);
}

.cta-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 36px;
  row-gap: 14px;
}

.cta-text .eyebrow {
  margin-bottom: 6px;
  color: #9fc6d4;
}

.download-cta h2 {
  margin: 0;
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 800;
}

.cta-text > p:last-child {
  margin: 8px 0 0;
  color: #b9d3dc;
  font-size: 13.5px;
}

.cta-inner .button-primary {
  color: var(--teal-dark);
  background: #fff;
  box-shadow: none;
}

.cta-inner .button-primary .icon::before {
  filter: invert(23%) sepia(19%) saturate(1216%) hue-rotate(154deg) brightness(92%) contrast(91%);
}

.cta-inner .button-primary:hover {
  background: #d9eef5;
}

.disclaimer {
  grid-column: 1 / -1;
  margin: 4px 0 0;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  color: #93b6c2;
  font-size: 11.8px;
}

/* ---------- 页脚 ---------- */
.site-footer {
  padding: 28px 0 22px;
  background: #1d3d4a;
  color: #a6c0ca;
  text-align: center;
  font-size: 12.5px;
}

.site-footer p {
  margin: 0 0 8px;
}

.site-footer a {
  color: #cfe4ec;
  border-bottom: 1px solid transparent;
}

.site-footer a:hover {
  border-bottom-color: #7fb0c2;
}

.site-footer .icp {
  margin: 0;
  color: #7f9ea9;
  font-size: 11.5px;
}

/* ---------- 返回顶部 ---------- */
.to-top {
  position: fixed;
  right: 24px;
  bottom: 158px;
  z-index: 45;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid #7fb0c2;
  border-radius: 6px;
  cursor: pointer;
  background: var(--teal-deep);
  box-shadow: 0 10px 20px rgba(29, 61, 74, 0.3);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 200ms ease, transform 200ms ease, visibility 200ms ease;
}

.to-top::before {
  content: "";
  width: 8px;
  height: 8px;
  border-top: 2px solid #fff;
  border-left: 2px solid #fff;
  transform: rotate(45deg) translate(1px, 1px);
}

.to-top.is-show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: none;
}

.to-top:hover {
  background: var(--teal);
}

/* ---------- 响应式 ---------- */
@media (max-width: 1040px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(370px, 440px);
    gap: 34px;
  }
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 34px;
  }

  .hero-copy {
    max-width: 640px;
  }

  .hero-boards {
    max-width: 560px;
    margin: 0 auto;
  }

  .shot {
    grid-template-columns: 140px minmax(0, 1fr);
  }
}

@media (max-width: 760px) {
  .primary-nav ul {
    display: grid;
  }

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

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

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

@media (max-width: 820px) {
  :root {
    --header-h: 62px;
  }

  body {
    padding-top: var(--header-h);
  }

  .site-header {
    position: fixed;
    right: 0;
    left: 0;
    width: 100%;
    border-top-width: 3px;
  }

  .page-shell,
  .nav-shell {
    width: calc(100% - 32px);
  }

  .nav-shell {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    grid-template-rows: var(--header-h);
    min-height: var(--header-h);
    column-gap: 8px;
  }

  .brand {
    grid-column: 1;
    gap: 7px;
    font-size: 16px;
  }

  .brand img {
    width: 30px;
    height: 30px;
    border-radius: 6px;
  }

  .primary-nav {
    display: none;
    grid-column: 1 / -1;
    grid-row: 2;
    margin: 0 -16px;
    padding: 0 16px 14px;
    border-top: 1px solid var(--line);
    background: #fff;
  }

  .primary-nav.is-open {
    display: block;
  }

  .primary-nav ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding-top: 12px;
  }

  .primary-nav li + li::before {
    display: none;
  }

  .primary-nav a {
    padding: 9px 12px;
    border: 1px solid var(--line);
    border-radius: 6px;
    font-size: 12.5px;
  }

  .nav-download {
    grid-column: 3;
    grid-row: 1;
    min-height: 34px;
    min-width: auto;
    padding: 0 10px;
    font-size: 11.5px;
  }

  .nav-download .icon {
    width: 14px;
    height: 14px;
  }

  .menu-toggle {
    display: inline-flex;
    grid-column: 4;
    grid-row: 1;
    width: 34px;
    height: 34px;
  }

  .hero {
    padding: 40px 0 48px;
  }

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

  .hero-title {
    font-size: 21px;
  }

  .hero-summary {
    font-size: 14px;
  }

  .hero-boards {
    border-radius: 8px;
  }

  .hb-row {
    padding: 11px 14px;
    grid-template-columns: 34px minmax(0, 1fr) auto;
    gap: 10px;
  }

  .hb-ico {
    width: 34px;
    height: 34px;
    font-size: 13px;
  }

  .routes,
  .screens,
  .faq,
  .reviews {
    padding: 50px 0;
  }

  .section-heading h2 {
    font-size: 26px;
  }

  .section-heading {
    margin-bottom: 26px;
  }

  .shot {
    grid-template-columns: 116px minmax(0, 1fr);
    column-gap: 14px;
    padding: 12px;
  }

  .faq-answer {
    padding-left: 4px;
  }

  .cta-inner {
    grid-template-columns: 1fr;
  }

  .cta-inner .button-primary {
    width: 100%;
  }

  .to-top {
    right: 16px;
    bottom: 134px;
    width: 38px;
    height: 38px;
  }
}

@media (max-width: 380px) {
  .brand span {
    font-size: 14px;
  }

  .primary-nav ul {
    grid-template-columns: 1fr;
  }

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