/* ============================================================
   道如意心理官网 · 组件与布局样式
   严格还原 Ardot 设计稿（桌面 1440 基准）
   ============================================================ */

/* ---------- 通用容器 / 段落 ---------- */
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad-x); }

.section { padding: var(--section-py) 0; }
.section--white { background: var(--bg-white); }
.section--alt { background: var(--bg-section); }
.section--dark { background: var(--primary-deep); }

/* ---------- 段落标题（eyebrow + 标题 居中） ---------- */
.sec-head { text-align: center; margin-bottom: 48px; }
.sec-eyebrow {
  font-family: var(--font-en);
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--accent);
  text-transform: uppercase;
  display: block;
  margin-bottom: 12px;
}
.sec-title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 36px;
  color: var(--text);
  line-height: 1.3;
}
.section--dark .sec-title { color: #fff; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--r-pill);
  font-family: var(--font-sans);
  font-weight: 500;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}
.btn--primary { background: var(--primary); color: #fff; }
.btn--primary:hover { background: var(--primary-strong); }
.btn--ghost {
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--primary);
}
.btn--ghost:hover { background: rgba(44, 95, 124, 0.06); }
.btn--wechat { background: var(--wechat); color: #fff; }
.btn--wechat:hover { filter: brightness(1.05); }
.btn--lg { padding: 16px 32px; font-size: 16px; }
.btn--md { padding: 12px 24px; font-size: 14px; }

/* ---------- 顶部导航 ---------- */
.header {
  position: sticky; top: 0; z-index: 100;
  height: 80px;
  display: flex; align-items: center;
  background: rgba(232, 245, 249, 0.85);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(212, 229, 235, 0.6);
}
.header.scrolled { box-shadow: 0 2px 16px rgba(31, 58, 82, 0.06); }
.header .container {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between;
}
.logo { display: flex; align-items: center; gap: 10px; }
.logo__icon {
  width: 36px; height: 36px; border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-family: var(--font-serif); font-weight: 600; font-size: 18px;
}
.logo__text { font-family: var(--font-serif); font-weight: 600; font-size: 22px; color: var(--text); }
.nav { display: flex; align-items: center; gap: 36px; }
.nav a { font-size: 15px; color: var(--text-muted); transition: color .2s; }
.nav a:hover { color: var(--primary); }
.header__cta { padding: 10px 22px; font-size: 14px; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; width: 28px; }
.nav-toggle span { height: 2px; background: var(--text); border-radius: 2px; }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 760px;
  background: var(--bg);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  padding: 40px var(--pad-x);
  gap: 28px;
  overflow: hidden;
}
.hero__glow { position: absolute; pointer-events: none; }
.hero__glow--pink { width: 480px; height: 480px; left: -80px; top: 40px; background: var(--glow-pink); }
.hero__glow--blue { width: 560px; height: 560px; right: -60px; top: 200px; background: var(--glow-blue); }
.hero__glow--green { width: 420px; height: 420px; left: 50%; top: 380px; transform: translateX(-50%); background: var(--glow-green); }
.hero__eyebrow { font-size: 14px; color: var(--accent); position: relative; }
.hero__title {
  font-family: var(--font-serif); font-weight: 500;
  font-size: 64px; line-height: 80px; color: var(--text);
}
.hero__subtitle { font-family: var(--font-serif); font-size: 20px; line-height: 36px; color: var(--text-muted); }

/* Hero 数据条 */
.stats {
  display: flex; width: 100%; max-width: var(--maxw);
  justify-content: center; gap: 0;
}
.stat { flex: 1; text-align: center; }
.stat__num { font-family: var(--font-serif); font-weight: 500; font-size: 36px; color: var(--primary); }
.stat__label { font-size: 14px; color: var(--text-muted); margin-top: 8px; }
.stats .stat + .stat { border-left: 1px solid rgba(44, 95, 124, 0.12); }

/* ---------- 服务区 ---------- */
.cards-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.svc-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--r-md);
  padding: 36px;
  display: flex; flex-direction: column; gap: 16px;
  transition: transform .25s ease, box-shadow .25s ease;
}
.svc-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }
.svc-card__icon {
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
}
.svc-card__title { font-family: var(--font-serif); font-weight: 500; font-size: 20px; color: var(--text); }
.svc-card__desc { font-size: 14px; color: var(--text-muted); line-height: 24px; }

/* ---------- 优势区（5 卡：3+2） ---------- */
.cards-why {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feat-card {
  background: var(--bg-white);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-card);
  padding: 32px;
  display: flex; flex-direction: column; gap: 14px;
}
.feat-card--wide { grid-column: span 1; }
.feat-card__icon { width: 40px; height: 40px; color: var(--accent); }
.feat-card__title { font-family: var(--font-serif); font-weight: 500; font-size: 18px; color: var(--text); }
.feat-card__desc { font-size: 14px; color: var(--text-muted); line-height: 24px; }

/* ---------- 创始人 ---------- */
.founder { display: flex; align-items: center; gap: 64px; }
.founder__photo {
  width: 440px; height: 500px; flex: 0 0 440px;
  border-radius: var(--r-lg);
  background:
    linear-gradient(160deg, rgba(44,95,124,0.92), rgba(122,174,192,0.92)),
    radial-gradient(circle at 50% 35%, rgba(255,255,255,0.25), transparent 60%);
  position: relative; overflow: hidden;
  display: flex; align-items: flex-end; justify-content: center;
  color: #fff;
}
.founder__photo::after {
  content: "如";
  position: absolute; top: 38%; left: 50%; transform: translate(-50%,-50%);
  font-family: var(--font-serif); font-weight: 600; font-size: 140px; opacity: .9;
}
.founder__photo span.tag {
  position: relative; z-index: 1; margin-bottom: 28px;
  font-size: 14px; letter-spacing: 2px; opacity: .9;
}
/* 后台上传创始人照片后：用照片替换默认渐变+“如”字占位 */
.founder__photo.has-photo {
  background-size: cover; background-position: center top; background-repeat: no-repeat;
}
.founder__photo.has-photo::after { display: none; }
.founder__bio { flex: 1; display: flex; flex-direction: column; gap: 20px; }
.founder__name { font-family: var(--font-serif); font-weight: 500; font-size: 32px; color: var(--text); }
.founder__role { font-size: 15px; color: var(--accent); }
.founder__tagline { font-family: var(--font-serif); font-weight: 300; font-size: 16px; line-height: 28px; color: var(--primary); }
.founder__desc { font-size: 15px; color: var(--text-muted); line-height: 28px; }
.founder__cta { align-self: flex-start; padding: 13px 28px; font-size: 15px; margin-top: 6px; }

/* ---------- 平台区（深色玻璃卡） ---------- */
.platform-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.plat-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(122, 174, 192, 0.20);
  border-radius: var(--r-lg);
  padding: 40px;
  display: flex; flex-direction: column; gap: 20px;
  min-height: 460px;
}
.plat-card__icon { width: 48px; height: 48px; color: var(--accent); }
.plat-card__name { font-family: var(--font-serif); font-weight: 500; font-size: 22px; color: #fff; }
.plat-card__tagline { font-size: 14px; color: var(--accent); }
.plat-card__features { font-size: 14px; color: #c5d5de; line-height: 28px; white-space: pre-line; }
.plat-card__qr {
  margin-top: auto;
  display: flex; align-items: center; gap: 12px;
}
.qr-box {
  width: 72px; height: 72px; background: #fff; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
}
.qr-box svg { width: 56px; height: 56px; }
.plat-card__qrtext { font-size: 12px; color: #a8c3d0; line-height: 20px; }

/* ---------- 案例区 ---------- */
.cases-stats { display: flex; margin-bottom: 48px; }
.case-stat { flex: 1; text-align: center; }
.case-stat__num { font-family: var(--font-serif); font-weight: 500; font-size: 40px; color: var(--primary); }
.case-stat__label { font-size: 14px; color: var(--text-muted); margin-top: 8px; }
.cases-stats .case-stat + .case-stat { border-left: 1px solid rgba(44, 95, 124, 0.12); }
.logo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.logo-cell {
  height: 72px; background: var(--card-bg); border: 1px solid var(--card-border);
  border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 500; color: var(--text-muted);
}

/* ---------- 博客区 ---------- */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.article-card {
  background: var(--bg-white); border: 1px solid var(--card-border);
  border-radius: var(--r-md); padding: 32px;
  display: flex; flex-direction: column; gap: 14px;
  transition: transform .25s ease, box-shadow .25s ease;
}
.article-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }
.article-card__cat { font-size: 12px; font-weight: 500; color: var(--accent); }
.article-card__title { font-family: var(--font-serif); font-weight: 500; font-size: 17px; line-height: 28px; color: var(--text); }
.article-card__excerpt { font-size: 13px; color: var(--text-muted); line-height: 22px; flex: 1; }
.article-card__meta { display: flex; align-items: center; justify-content: space-between; margin-top: 4px; }
.article-card__date { font-size: 12px; color: #999; }
.sync-badge {
  display: inline-flex; align-items: center; gap: 4px;
  background: rgba(232, 245, 249, 0.9); border: 1px solid rgba(122, 174, 192, 0.30);
  border-radius: var(--r-pill); padding: 3px 10px; font-size: 10px; color: var(--accent);
}

/* ---------- 公众号区 ---------- */
.wechat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: stretch; }
.wc-card {
  background: #f5fbff; border-radius: var(--r-lg);
  padding: 40px; display: flex; flex-direction: column;
}
.wc-card--qr { align-items: center; text-align: center; gap: 14px; padding-top: 40px; padding-bottom: 40px; }
.wc-logo {
  width: 56px; height: 56px; border-radius: 50%; background: var(--wechat);
  display: flex; align-items: center; justify-content: center; color: #fff; position: relative;
}
.wc-account { font-family: var(--font-serif); font-weight: 500; font-size: 22px; color: var(--text); margin-top: 8px; }
.wc-id { font-size: 13px; color: var(--accent); }
.wc-desc { font-size: 14px; color: var(--text-muted); }
.wc-qr {
  width: 128px; height: 128px; background: #fff; border: 1px solid var(--card-border);
  border-radius: 12px; padding: 8px; margin: 8px 0;
}
.wc-qr svg { width: 100%; height: 100%; }
.wc-qrlabel { font-size: 12px; color: var(--text-muted); }
.wc-follow { margin-top: 16px; padding: 13px 36px; font-size: 15px; }

.wc-card--flow { justify-content: flex-start; }
.wc-flow-head { font-family: var(--font-serif); font-weight: 500; font-size: 22px; color: var(--text); margin-bottom: 8px; }
.wc-flow { display: flex; align-items: center; gap: 8px; margin: 24px 0; }
.wc-step {
  flex: 1; background: #fff; border-radius: var(--r-md); padding: 16px 12px;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.wc-step__icon { width: 36px; height: 36px; color: var(--wechat); }
.wc-step__text { font-size: 13px; font-weight: 500; color: var(--text); }
.wc-arrow { color: var(--accent); flex: 0 0 20px; }
.wc-desc2 { font-size: 14px; color: var(--text-muted); line-height: 24px; }
.wc-syncbar {
  margin-top: 24px; background: rgba(232, 245, 249, 0.9); border-radius: var(--r-sm);
  padding: 12px 16px; display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--primary);
}
.wc-syncbar .dot { width: 8px; height: 8px; border-radius: 4px; background: var(--wechat); }
.wc-link { margin-top: 16px; display: inline-flex; align-items: center; gap: 6px; color: var(--primary); font-weight: 500; font-size: 14px; }

/* ---------- 页脚 ---------- */
.footer { background: var(--primary-deep); color: #fff; padding: 80px 0 40px; }
.footer__main { display: flex; justify-content: space-between; gap: 60px; margin-bottom: 48px; }
.footer__brand { max-width: 300px; }
.footer__logo { font-family: var(--font-serif); font-weight: 600; font-size: 24px; color: #fff; }
.footer__tagline { font-size: 14px; color: var(--accent); line-height: 24px; margin-top: 16px; white-space: pre-line; }
.footer__nav { display: flex; gap: 60px; }
.footer__col { display: flex; flex-direction: column; gap: 12px; }
.footer__col h4 { font-size: 14px; font-weight: 500; color: #fff; margin-bottom: 4px; }
.footer__col a { font-size: 13px; color: var(--text-soft); }
.footer__col a:hover { color: #fff; }
.footer__bottom { border-top: 1px solid rgba(255, 255, 255, 0.1); padding-top: 24px; text-align: center; }
.footer__copy { font-size: 12px; color: var(--text-soft); }

/* ---------- 预约弹窗 ---------- */
.modal {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(31, 58, 82, 0.92);
  display: none; align-items: center; justify-content: center;
  padding: 20px;
}
.modal.open { display: flex; }
.modal__card {
  width: 480px; max-width: 100%;
  background: #fff; border-radius: var(--r-md);
  box-shadow: var(--shadow-pop);
  padding: 40px; position: relative;
  display: flex; flex-direction: column; align-items: center; gap: 20px;
  text-align: center;
}
.modal__close {
  position: absolute; top: 12px; right: 12px;
  width: 32px; height: 32px; border-radius: var(--r-pill);
  background: var(--bg-section); color: #5a7a8c; font-size: 16px;
  display: flex; align-items: center; justify-content: center;
}
.modal__close:hover { background: #e3eef3; }
.modal__title { font-family: var(--font-serif); font-weight: 700; font-size: 28px; color: var(--primary-deep); }
.modal__sub { font-size: 15px; color: #5a7a8c; }
.modal__qr {
  width: 220px; height: 220px; background: #fff; border: 1px solid #c9dee8;
  border-radius: 12px; padding: 16px;
}
.modal__qr svg { width: 100%; height: 100%; }
.modal__hint { font-size: 14px; font-weight: 500; color: var(--primary); }
.modal__time { font-size: 13px; color: #5a7a8c; }
.modal__note { font-size: 11px; color: var(--text-soft); }

/* ============================================================
   响应式（移动端适配，与设计稿移动端版对应）
   ============================================================ */
@media (max-width: 1024px) {
  :root { --pad-x: 60px; --section-py: 72px; }
  .hero__title { font-size: 48px; line-height: 60px; }
  .cards-4, .cards-3 { grid-template-columns: repeat(2, 1fr); }
  .cards-why { grid-template-columns: repeat(2, 1fr); }
  .founder { flex-direction: column; gap: 40px; }
  .founder__photo { width: 100%; max-width: 420px; flex: none; }
  .platform-grid, .wechat-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  :root { --pad-x: 24px; --section-py: 56px; }
  .nav, .header__cta { display: none; }
  .nav-toggle { display: flex; }
  .nav.open {
    display: flex; flex-direction: column; gap: 20px;
    position: absolute; top: 80px; left: 0; right: 0;
    background: rgba(232, 245, 249, 0.98); padding: 24px var(--pad-x);
  }
  .hero__title { font-size: 36px; line-height: 46px; }
  .sec-title { font-size: 28px; }
  .cards-4, .cards-3, .cards-why, .logo-grid { grid-template-columns: 1fr; }
  .stats { flex-direction: column; gap: 24px; }
  .stats .stat + .stat { border-left: none; border-top: 1px solid rgba(44, 95, 124, 0.12); }
  .cases-stats { flex-direction: column; gap: 24px; }
  .cases-stats .case-stat + .case-stat { border-left: none; border-top: 1px solid rgba(44, 95, 124, 0.12); }
  .footer__main { flex-direction: column; gap: 40px; }
  .footer__nav { gap: 40px; flex-wrap: wrap; }
  .wc-flow { flex-direction: column; }
}
