/* ============================================================
   思慕聊天室 · 宣传网站样式
   暗色优雅主题 · 移动端优先 · 无外部依赖
   ============================================================ */

:root {
  --bg: #121014;
  --bg-2: #17151b;
  --card: #1d1a22;
  --card-2: #24212a;
  --line: rgba(255, 255, 255, 0.07);
  --line-strong: rgba(255, 255, 255, 0.12);

  --text: #f0edf2;
  --muted: #a8a3b0;
  --faint: #756f7f;

  --accent: #e3a68f;        /* 灰玫瑰 */
  --accent-strong: #c98672;
  --accent-soft: rgba(227, 166, 143, 0.12);
  --gold: #e0bd8f;

  --radius: 16px;
  --radius-lg: 22px;

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Songti SC", "STSong", "Noto Serif CJK SC", "SimSun", serif;

  --maxw: 1120px;
  --nav-h: 64px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* 背景氛围 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(227, 166, 143, 0.08), transparent 60%),
    radial-gradient(900px 500px at 0% 10%, rgba(224, 189, 143, 0.05), transparent 55%);
  pointer-events: none;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.18s ease;
}
a:hover {
  color: var(--accent-strong);
}

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

::selection {
  background: var(--accent-soft);
  color: var(--text);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: #1a1414;
  padding: 10px 18px;
  border-radius: 0 0 10px 0;
  font-weight: 600;
  z-index: 100;
}
.skip-link:focus {
  left: 0;
  color: #1a1414;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-h);
  background: rgba(18, 16, 20, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  letter-spacing: 0.5px;
}
.brand:hover {
  color: var(--text);
}
.brand .logo {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  flex: none;
}
.brand .brand-name {
  font-family: var(--font-serif);
  font-size: 18px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}
.nav-links a {
  display: block;
  padding: 8px 13px;
  border-radius: 9px;
  color: var(--muted);
  font-size: 15px;
}
.nav-links a:hover {
  color: var(--text);
  background: var(--card);
}
.nav-links a[aria-current="page"] {
  color: var(--text);
  background: var(--card-2);
}
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: 10px;
  background: var(--accent);
  color: #241413 !important;
  font-weight: 600;
}
.nav-cta:hover {
  background: var(--accent-strong);
  color: #241413 !important;
}
.nav-toggle {
  display: none;
  background: var(--card-2);
  border: 1px solid var(--line-strong);
  color: var(--text);
  border-radius: 9px;
  width: 42px;
  height: 42px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav-toggle svg {
  width: 20px;
  height: 20px;
}

@media (max-width: 760px) {
  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    background: rgba(18, 16, 20, 0.98);
    border-bottom: 1px solid var(--line);
    padding: 10px 16px 16px;
  }
  .nav-links.open {
    display: flex;
  }
  .nav-links a {
    padding: 12px 14px;
  }
  .nav-toggle {
    display: inline-flex;
  }
  .nav-cta {
    margin-left: auto;
  }
}

/* ---------- 通用区块 ---------- */
section {
  padding: 72px 0;
}
.section-head {
  max-width: 720px;
  margin: 0 auto 44px;
  text-align: center;
}
.eyebrow {
  display: inline-block;
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.section-head h2 {
  font-family: var(--font-serif);
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 600;
  line-height: 1.25;
  margin-bottom: 14px;
}
.section-head p {
  color: var(--muted);
  font-size: 17px;
}

/* ---------- 首屏 Hero ---------- */
.hero {
  padding: 88px 0 72px;
  text-align: center;
}
.hero .container {
  max-width: 820px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--accent-soft);
  border: 1px solid rgba(227, 166, 143, 0.25);
  color: var(--accent);
  font-size: 14px;
  margin-bottom: 24px;
}
.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(34px, 6.4vw, 60px);
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: 1px;
  margin-bottom: 20px;
}
.hero h1 .accent {
  color: var(--accent);
}
.hero-sub {
  font-size: clamp(17px, 2.4vw, 20px);
  color: var(--muted);
  max-width: 620px;
  margin: 0 auto 32px;
}
.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn-primary {
  background: var(--accent);
  color: #241413;
}
.btn-primary:hover {
  background: var(--accent-strong);
  color: #241413;
  transform: translateY(-1px);
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line-strong);
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.hero-trust {
  display: flex;
  gap: 10px 26px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 40px;
  color: var(--faint);
  font-size: 14px;
}
.hero-trust span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.hero-trust svg {
  width: 16px;
  height: 16px;
  color: var(--gold);
}

/* ---------- 特性卡片 ---------- */
.grid {
  display: grid;
  gap: 22px;
}
.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}
.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}
@media (max-width: 900px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 620px) {
  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
  }
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.card:hover {
  border-color: var(--line-strong);
  transform: translateY(-3px);
}
.card .icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.card .icon svg {
  width: 22px;
  height: 22px;
}
.card h3 {
  font-size: 19px;
  font-weight: 600;
  margin-bottom: 10px;
}
.card p {
  color: var(--muted);
  font-size: 15px;
}

/* ---------- 步骤 ---------- */
.steps {
  counter-reset: step;
}
.step {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 28px 28px 84px;
}
.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 26px;
  top: 26px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid rgba(227, 166, 143, 0.3);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.step h3 {
  font-size: 18px;
  margin-bottom: 8px;
}
.step p {
  color: var(--muted);
  font-size: 15px;
}

/* ---------- 强调横幅 ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--card-2), var(--card));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 52px 32px;
  text-align: center;
}
.cta-band h2 {
  font-family: var(--font-serif);
  font-size: clamp(24px, 4vw, 34px);
  margin-bottom: 12px;
}
.cta-band p {
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto 26px;
}

/* ---------- 价值列表 / 检查列表 ---------- */
.check-list {
  list-style: none;
  display: grid;
  gap: 14px;
}
.check-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: var(--muted);
  font-size: 15px;
}
.check-list li svg {
  width: 20px;
  height: 20px;
  flex: none;
  color: var(--gold);
  margin-top: 3px;
}
.check-list li strong {
  color: var(--text);
  font-weight: 600;
}

/* 禁止事项 */
.forbidden {
  list-style: none;
  display: grid;
  gap: 12px;
}
.forbidden li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: rgba(227, 166, 143, 0.05);
  border: 1px solid rgba(227, 166, 143, 0.16);
  border-radius: 12px;
  padding: 14px 18px;
  color: var(--muted);
  font-size: 15px;
}
.forbidden li svg {
  width: 20px;
  height: 20px;
  flex: none;
  color: var(--accent-strong);
  margin-top: 3px;
}
.forbidden li strong {
  color: var(--text);
}

/* ---------- FAQ 手风琴 ---------- */
.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
}
.faq-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}
.faq-q {
  width: 100%;
  background: none;
  border: none;
  color: var(--text);
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  text-align: left;
  padding: 18px 22px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.faq-q .chev {
  flex: none;
  width: 18px;
  height: 18px;
  color: var(--faint);
  transition: transform 0.2s ease;
}
.faq-item[open] .chev {
  transform: rotate(180deg);
}
.faq-a {
  padding: 0 22px 20px;
  color: var(--muted);
  font-size: 15px;
}
.faq-a p + p {
  margin-top: 8px;
}

/* ---------- 面包屑 ---------- */
.breadcrumb {
  font-size: 14px;
  color: var(--faint);
  padding: 20px 0 0;
}
.breadcrumb a {
  color: var(--faint);
}
.breadcrumb a:hover {
  color: var(--accent);
}
.breadcrumb .sep {
  margin: 0 8px;
}

/* 子页页头 */
.page-hero {
  padding: 56px 0 28px;
  text-align: center;
}
.page-hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(30px, 5vw, 46px);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 16px;
}
.page-hero p {
  color: var(--muted);
  font-size: 18px;
  max-width: 680px;
  margin: 0 auto;
}

/* ---------- 页脚 ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 56px 0 40px;
  margin-top: 40px;
  background: var(--bg-2);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 36px;
}
@media (max-width: 760px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}
.footer-brand p {
  color: var(--muted);
  font-size: 14px;
  margin-top: 12px;
  max-width: 340px;
}
.footer-col h4 {
  font-size: 15px;
  margin-bottom: 14px;
  color: var(--text);
}
.footer-col ul {
  list-style: none;
  display: grid;
  gap: 10px;
}
.footer-col a {
  color: var(--muted);
  font-size: 14px;
}
.footer-col a:hover {
  color: var(--accent);
}
.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  color: var(--faint);
  font-size: 13px;
}

/* ---------- 微信跳转按钮 ---------- */
.btn-wechat {
  background: #07c160;
  color: #ffffff;
  border: none;
}
.btn-wechat:hover {
  background: #06ad56;
  color: #ffffff;
  transform: translateY(-1px);
}

/* ---------- 小程序卡片（logo + 二维码 + 跳转） ---------- */
.app-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 28px;
  align-items: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  max-width: 620px;
  margin: 0 auto;
  text-align: left;
}
@media (max-width: 560px) {
  .app-card {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }
  .app-card .app-info {
    width: 100%;
  }
  .app-card .app-actions {
    justify-content: center;
  }
}
.app-card .app-logo {
  width: 104px;
  height: 104px;
  border-radius: 24px;
  object-fit: cover;
  flex: none;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}
.app-card .app-info h3 {
  font-size: 20px;
  margin-bottom: 6px;
}
.app-card .app-info p {
  color: var(--muted);
  font-size: 15px;
  margin-bottom: 18px;
}
.app-card .app-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
/* 二维码卡片（加入区块） */
.qr-card {
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: center;
  margin-top: 36px;
  text-align: left;
  flex-wrap: wrap;
}
.qr-card .qr-img {
  width: 168px;
  height: 168px;
  border-radius: 16px;
  background: #fff;
  padding: 10px;
  object-fit: contain;
  flex: none;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}
.qr-card .qr-copy {
  max-width: 300px;
}
.qr-card .qr-copy h3 {
  font-size: 17px;
  margin-bottom: 8px;
}
.qr-card .qr-copy p {
  color: var(--muted);
  font-size: 15px;
}

/* ---------- 其他 ---------- */
.muted {
  color: var(--muted);
}
.center {
  text-align: center;
}
.mt-24 {
  margin-top: 24px;
}
.mt-40 {
  margin-top: 40px;
}
.prose {
  max-width: 760px;
  margin: 0 auto;
}
.prose h2 {
  font-family: var(--font-serif);
  font-size: 26px;
  margin: 40px 0 14px;
}
.prose h3 {
  font-size: 19px;
  margin: 26px 0 10px;
}
.prose p {
  color: var(--muted);
  margin-bottom: 14px;
}
.prose ul {
  margin: 0 0 14px 22px;
  color: var(--muted);
}
.prose li {
  margin-bottom: 8px;
}

/* ---------- 焦点可见性（键盘无障碍） ---------- */
a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 8px;
}

/* 锚点定位：避免被吸顶导航遮挡 */
section[id] {
  scroll-margin-top: calc(var(--nav-h) + 20px);
}

/* ---------- 滚动显现动画（渐进增强） ---------- */
html.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
html.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  html.js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
