/* ==========================================================================
   佳婚 Jiahun 官网主样式 — 暖阳·现代温暖 (珊瑚橙渐变, 对齐小程序)
   原则：温暖明亮 · 圆润现代 · 老年友好(大字高对比) · 响应式
   ========================================================================== */

/* ---------- 设计变量(取自佳婚小程序真实配色) ---------- */
:root {
  /* 主色：珊瑚橙红 → 暖阳橘 */
  --coral: #FF6B6B;
  --orange: #FFB347;
  --coral-deep: #F0524F;
  --grad: linear-gradient(135deg, #FF7B6B 0%, #FFB347 100%);
  --grad-soft: linear-gradient(135deg, rgba(255,107,107,.14), rgba(255,179,71,.18));
  /* 暖金 */
  --gold: #F5A623;
  --gold-bright: #FFC94D;
  --gold-line: rgba(245, 166, 35, 0.30);
  /* 文字(高对比, 老年友好) */
  --ink: #2E241F;
  --ink-soft: #6F625A;
  --ink-faint: #A89C92;
  /* 暖桃奶杏底 */
  --cream: #FFF7F0;
  --cream-2: #FFEEE1;
  --paper: #FFFCF9;
  --white: #FFFFFF;
  /* 描边/阴影 */
  --line: rgba(255, 107, 107, 0.13);
  --shadow: 0 18px 46px rgba(240, 82, 79, 0.12);
  --shadow-soft: 0 12px 30px rgba(46, 36, 31, 0.07);
  --radius: 22px;
  --radius-sm: 14px;
  --maxw: 1180px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 18px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Heiti SC", sans-serif;
  font-size: 1.06rem; line-height: 1.9; color: var(--ink);
  background: var(--cream); letter-spacing: 0.2px; overflow-x: hidden;
}

/* 标题用现代黑体(粗) */
h1, h2, h3, h4 { font-weight: 800; color: var(--ink); line-height: 1.4; letter-spacing: 0.5px; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
.icon { width: 1em; height: 1em; display: inline-block; vertical-align: -0.12em; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- 容器与通用 ---------- */
.container { width: 90%; max-width: var(--maxw); margin: 0 auto; }
.section { padding: 100px 0; }
.tight { max-width: 760px; margin-left: auto; margin-right: auto; }

.kicker {
  display: inline-flex; align-items: center; gap: 14px;
  color: var(--coral-deep); font-weight: 800; font-size: 0.9rem;
  letter-spacing: 4px; text-indent: 4px; margin-bottom: 20px;
}
.kicker::before, .kicker::after { content: ""; width: 26px; height: 3px; border-radius: 3px; background: var(--grad); }

.section-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.section-head h2 { font-size: clamp(2rem, 4.2vw, 2.8rem); margin-bottom: 16px; }
.section-head p { font-size: 1.12rem; color: var(--ink-soft); }
.divider { width: 64px; height: 4px; border-radius: 4px; background: var(--grad); margin: 18px auto 0; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 0 38px; font-size: 1.1rem; font-weight: 700;
  border-radius: 999px; cursor: pointer; border: none;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease;
}
.btn-primary { color: #fff; background: var(--grad); box-shadow: 0 12px 28px rgba(255, 107, 107, 0.34); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 18px 36px rgba(255, 107, 107, 0.44); }
.btn-line { color: var(--coral-deep); background: #fff; border: 2px solid rgba(255, 107, 107, 0.35); }
.btn-line:hover { background: var(--coral); color: #fff; border-color: var(--coral); transform: translateY(-3px); }

/* ==========================================================================
   导航
   ========================================================================== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(255, 247, 240, 0.80);
  backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent; transition: all .3s ease;
}
.navbar.scrolled { background: rgba(255, 247, 240, 0.96); border-bottom-color: var(--line); box-shadow: 0 6px 22px rgba(46,36,31,.06); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 78px; }
.logo { display: flex; align-items: center; gap: 12px; font-size: 1.5rem; font-weight: 800; }
.logo .logo-img { width: 46px; height: 46px; border-radius: 13px; object-fit: cover; box-shadow: 0 6px 16px rgba(255, 107, 107, 0.30); }
.logo .logo-text { color: var(--ink); letter-spacing: 2px; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a { padding: 10px 18px; font-size: 1.02rem; font-weight: 600; color: var(--ink-soft); border-radius: 999px; transition: color .2s, background .2s; }
.nav-links a:hover, .nav-links a.active { color: var(--coral-deep); background: rgba(255, 107, 107, 0.09); }
.nav-cta { margin-left: 12px; }
.nav-cta .btn { min-height: 46px; padding: 0 26px; font-size: 0.98rem; }
.nav-cta a.btn-primary, .nav-cta a.btn-primary:hover { color: #fff; }

.nav-toggle { display: none; width: 50px; height: 50px; border: none; background: transparent; cursor: pointer; flex-direction: column; justify-content: center; gap: 6px; align-items: center; }
.nav-toggle span { display: block; width: 28px; height: 3px; border-radius: 3px; background: var(--ink); transition: .3s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* ==========================================================================
   Hero (居中, 暖阳渐变)
   ========================================================================== */
.hero {
  position: relative; display: flex; align-items: center; min-height: 660px;
  padding: 130px 0 90px; overflow: hidden;
  background:
    linear-gradient(100deg, rgba(255,247,240,.95) 0%, rgba(255,247,240,.72) 38%, rgba(255,247,240,.16) 62%, rgba(255,247,240,0) 80%),
    url(../images/waves-bg.jpg) center bottom / cover no-repeat;
  background-color: var(--cream);
}
.hero-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 30px; align-items: center; width: 100%; }
.hero-content { text-align: left; }
.hero-content .hero-brand { width: 66px; height: 66px; border-radius: 17px; object-fit: cover; box-shadow: 0 10px 24px rgba(255,107,107,.3); margin-bottom: 20px; display: block; }
.hero h1 { font-size: clamp(2.4rem, 5.2vw, 3.9rem); letter-spacing: 1px; margin-bottom: 22px; }
.hero h1 .hl { background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero .lead { font-size: 1.2rem; color: var(--ink-soft); max-width: 480px; margin: 0 0 38px; }
.hero-actions { display: flex; gap: 18px; justify-content: flex-start; flex-wrap: wrap; }
.hero-figure { display: flex; justify-content: center; }
.hero-figure img { width: 100%; max-width: 560px; filter: drop-shadow(0 24px 40px rgba(240,82,79,.18)); }

/* ==========================================================================
   理念
   ========================================================================== */
.manifesto { background: var(--paper); text-align: center; }
.manifesto .quote-mark { font-size: 4rem; color: var(--orange); line-height: 0.5; height: 36px; font-weight: 800; }
.manifesto p { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 700; color: var(--ink); line-height: 1.9; }
.manifesto .sign { margin-top: 28px; color: var(--coral-deep); letter-spacing: 3px; font-weight: 700; }

/* ==========================================================================
   核心价值 (01/02/03 现代序号)
   ========================================================================== */
.values { background: var(--cream); }
.value-row { display: grid; grid-template-columns: 130px 1fr; gap: 40px; align-items: center; padding: 48px 8px; border-top: 2px solid var(--line); }
.values .value-row:last-child { border-bottom: 2px solid var(--line); }
.value-row .num-cn { font-size: 3.4rem; font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; line-height: 1; }
.value-row .v-body h3 { font-size: 1.7rem; margin-bottom: 10px; }
.value-row .v-body p { color: var(--ink-soft); font-size: 1.08rem; max-width: 640px; }

/* ==========================================================================
   优质资源
   ========================================================================== */
.members { background: var(--paper); }
.member-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.m-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-align: center; transition: transform .3s ease, box-shadow .3s ease; }
.m-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.m-photo { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; display: block; background: var(--cream-2); }
/* 占位头像(暂无照片时) */
.m-photo-ph { width: 100%; aspect-ratio: 4 / 5; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 2.6rem; font-weight: 800; }
.m-body { padding: 22px 22px 26px; }
.m-name { font-size: 1.28rem; font-weight: 800; display: inline-flex; align-items: center; gap: 8px; }
.m-gender { font-size: 0.72rem; font-weight: 700; padding: 1px 8px; border-radius: 6px; letter-spacing: 0; }
.m-gender.female { color: #E84F8E; background: rgba(232, 79, 142, 0.1); }
.m-gender.male { color: #3B82C4; background: rgba(59, 130, 196, 0.1); }
.m-meta { color: var(--ink-soft); font-size: 1rem; margin-top: 6px; }
.m-tags { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 16px 0 12px; }
.m-tags span { font-size: 0.82rem; color: var(--coral-deep); border: 1px solid var(--line); border-radius: 999px; padding: 3px 11px; }
.m-bio { color: var(--ink-faint); font-size: 0.96rem; line-height: 1.7; border-top: 1px dashed var(--line); padding-top: 14px; margin-top: 4px; }
.members-actions, .members .note { text-align: center; margin-top: 48px; }
.members .note { color: var(--ink-faint); font-size: 0.98rem; }
.members .note a { color: var(--coral-deep); border-bottom: 1px solid var(--gold-line); }
.group-head { text-align: center; margin: 18px 0 40px; }
.group-head .gh-line { display: inline-flex; align-items: center; gap: 16px; font-size: 1.6rem; font-weight: 800; letter-spacing: 3px; }
.group-head .gh-line::before, .group-head .gh-line::after { content: ""; width: 40px; height: 3px; border-radius: 3px; background: var(--grad); }
.member-group + .member-group { margin-top: 72px; }

/* ==========================================================================
   成功案例
   ========================================================================== */
.stories {
  background:
    linear-gradient(rgba(255,240,236,.80), rgba(255,240,236,.86)),
    url(../images/stories-bg.jpg) center / cover no-repeat;
  background-color: var(--cream-2);
}
.story-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.story { position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 30px 32px; display: flex; flex-direction: column; overflow: hidden; transition: transform .3s ease, box-shadow .3s ease; }
.story::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--grad); }
.story:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.story-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.pair { position: relative; display: flex; align-items: center; padding-bottom: 4px; }
.pair-av { width: 52px; height: 52px; border-radius: 50%; border: 2px solid var(--paper); display: flex; align-items: center; justify-content: center; color: #fff; font-size: 1.2rem; font-weight: 800; box-shadow: 0 4px 12px rgba(240,82,79,.16); }
.pair-av.a1 { background: linear-gradient(160deg, #FF9CA6, #F0524F); }
.pair-av.a2 { background: linear-gradient(160deg, #FFCB7A, #F5A623); margin-left: -16px; }
.pair-heart { position: absolute; left: 43px; bottom: -6px; width: 25px; height: 25px; border-radius: 50%; background: var(--grad); color: #fff; font-size: 0.8rem; display: flex; align-items: center; justify-content: center; border: 1.5px solid var(--paper); box-shadow: 0 3px 8px rgba(255,107,107,.4); }
.story-badge { font-size: 0.8rem; color: var(--coral-deep); border: 1px solid var(--line); border-radius: 999px; padding: 4px 13px; letter-spacing: 1px; background: rgba(255, 107, 107, 0.05); white-space: nowrap; }
.story .s-quote { font-size: 1.14rem; color: var(--ink); line-height: 1.9; margin: 4px 0 22px; flex: 1; }
.story .s-foot { border-top: 1px dashed var(--line); padding-top: 18px; }
.story .s-couple { font-size: 1.3rem; font-weight: 800; color: var(--coral-deep); }
.story .s-couple .amp { color: var(--gold); margin: 0 8px; }
.story .s-meta { color: var(--ink-soft); font-size: 0.98rem; margin-top: 6px; }
.story .s-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.story .s-tags span { font-size: 0.82rem; color: var(--coral-deep); border: 1px solid var(--line); border-radius: 999px; padding: 3px 12px; }
.stories .achieve { display: flex; align-items: center; justify-content: center; gap: 20px; margin-top: 54px; font-size: 1.2rem; font-weight: 700; color: var(--ink-soft); }
.stories .achieve::before, .stories .achieve::after { content: ""; width: 50px; height: 3px; border-radius: 3px; background: var(--grad); }
.stories .achieve b { color: var(--coral-deep); font-size: 1.6rem; margin: 0 6px; }

/* ==========================================================================
   扫码邀请
   ========================================================================== */
.invite { background: var(--paper); text-align: center; }
.invite-card { position: relative; max-width: 540px; margin: 0 auto; padding: 56px 40px; background: var(--cream); border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow-soft); }
.invite-card .inv-logo { width: 76px; height: 76px; border-radius: 20px; object-fit: cover; margin: 0 auto 18px; box-shadow: 0 10px 24px rgba(255,107,107,.3); }
.invite-card h2 { font-size: clamp(1.7rem, 3.4vw, 2.3rem); margin-bottom: 12px; }
.invite-card p { color: var(--ink-soft); margin-bottom: 28px; }
.qr { width: 200px; height: 200px; margin: 0 auto; background: var(--white); border: 1px solid var(--line); border-radius: 14px; display: flex; align-items: center; justify-content: center; padding: 10px; }
.qr img { width: 100%; height: 100%; object-fit: contain; }
.invite-card .qr-tip { margin-top: 16px; font-size: 1.04rem; color: var(--ink); font-weight: 600; }

/* ==========================================================================
   页脚
   ========================================================================== */
.footer { background: #2A201B; color: #CFC2BA; padding: 66px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1.3fr; gap: 40px; margin-bottom: 44px; }
.footer .f-logo { display: flex; align-items: center; gap: 12px; font-size: 1.5rem; font-weight: 800; color: #fff; margin-bottom: 18px; letter-spacing: 2px; }
.footer .f-logo .logo-img { width: 42px; height: 42px; border-radius: 11px; object-fit: cover; }
.footer p { color: #A89A91; font-size: 1rem; line-height: 1.9; }
.footer h4 { color: #fff; font-size: 1.08rem; margin-bottom: 18px; letter-spacing: 1px; }
.footer ul li { margin-bottom: 12px; }
.footer ul li a { color: #BCACA3; font-size: 1rem; transition: color .2s; }
.footer ul li a:hover { color: var(--gold-bright); }
.footer .contact-line { color: #BCACA3; font-size: 1rem; margin-bottom: 10px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 24px; display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; align-items: center; }
.footer-bottom p { font-size: 0.92rem; color: #9A8B82; }
.footer-bottom a { color: #9A8B82; }
.footer-bottom a:hover { color: var(--gold-bright); }

/* ==========================================================================
   内容页通用
   ========================================================================== */
.page-hero {
  padding: 150px 0 70px; text-align: center;
  background:
    linear-gradient(rgba(255,247,240,.58), rgba(255,247,240,.78)),
    url(../images/waves-bg.jpg) center / cover no-repeat;
  background-color: var(--cream);
}
.page-hero .kicker { margin-bottom: 16px; }
.page-hero h1 { font-size: clamp(2.2rem, 4.6vw, 3rem); letter-spacing: 1px; margin-bottom: 12px; }
.page-hero p { color: var(--ink-soft); font-size: 1.1rem; }
.breadcrumb { font-size: 0.94rem; color: var(--ink-faint); margin-top: 14px; }
.breadcrumb a:hover { color: var(--coral-deep); }

/* 功能页：认证链 */
.cert-chain { display: flex; justify-content: center; flex-wrap: wrap; gap: 0; max-width: 880px; margin: 0 auto; }
.cert-step { flex: 1; min-width: 150px; text-align: center; position: relative; padding: 0 10px; }
.cert-step:not(:last-child)::after { content: ""; position: absolute; top: 33px; right: -6px; width: 12px; height: 12px; border-top: 2px solid var(--orange); border-right: 2px solid var(--orange); transform: rotate(45deg); }
.cert-step .dot { width: 68px; height: 68px; margin: 0 auto 18px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; background: var(--grad); box-shadow: 0 10px 22px rgba(255,107,107,.3); }
.cert-step .dot .icon { width: 30px; height: 30px; }
.cert-step h3 { font-size: 1.22rem; margin-bottom: 8px; }
.cert-step p { color: var(--ink-soft); font-size: 0.98rem; }

/* 功能页：特性行 */
.feature-list { max-width: 860px; margin: 0 auto; }
.feature-item { display: grid; grid-template-columns: 66px 1fr; gap: 26px; align-items: center; padding: 34px 8px; border-top: 2px solid var(--line); }
.feature-list .feature-item:last-child { border-bottom: 2px solid var(--line); }
.feature-item .fi-ic { width: 62px; height: 62px; border-radius: 18px; display: flex; align-items: center; justify-content: center; color: #fff; background: var(--grad); }
.feature-item .fi-ic .icon { width: 28px; height: 28px; }
.feature-item h3 { font-size: 1.4rem; margin-bottom: 6px; }
.feature-item p { color: var(--ink-soft); font-size: 1.04rem; }

/* 关于页 */
.about-statement { max-width: 800px; margin: 0 auto; text-align: center; }
.about-statement .about-figure { width: 100%; max-width: 360px; border-radius: 22px; margin: 0 auto 30px; box-shadow: 0 18px 40px rgba(240,82,79,.16); display: block; }
.about-statement p { font-size: 1.2rem; color: var(--ink); line-height: 2.05; }
.tenet-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; max-width: 960px; margin: 0 auto; }
.tenet { text-align: center; padding: 18px 30px; position: relative; }
.tenet:not(:last-child)::after { content: ""; position: absolute; right: 0; top: 14%; height: 72%; width: 2px; background: var(--line); }
.tenet .num-cn { font-size: 2.6rem; font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.tenet h3 { font-size: 1.3rem; margin: 10px 0 8px; }
.tenet p { color: var(--ink-soft); font-size: 1rem; }
.contact-list { max-width: 620px; margin: 0 auto; }
.contact-row { display: flex; align-items: center; gap: 20px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 22px 28px; margin-bottom: 14px; }
.contact-row .ci { width: 54px; height: 54px; flex: none; border-radius: 15px; display: flex; align-items: center; justify-content: center; color: #fff; background: var(--grad); }
.contact-row .ci .icon { width: 26px; height: 26px; }
.contact-row .ct strong { display: block; font-size: 1.08rem; color: var(--ink); }
.contact-row .ct span { color: var(--ink-soft); font-size: 1.02rem; }

/* ==========================================================================
   响应式
   ========================================================================== */
@media (max-width: 1024px) {
  .member-grid { grid-template-columns: repeat(2, 1fr); }
  .story-grid { grid-template-columns: 1fr; max-width: 600px; margin: 0 auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
}
@media (max-width: 760px) {
  html { font-size: 17px; }
  .section { padding: 66px 0; }
  .nav-links {
    position: fixed; top: 78px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 2px;
    background: rgba(255,247,240,.98); padding: 14px 20px 22px; box-shadow: 0 16px 30px rgba(46,36,31,.12);
    transform: translateY(-140%); transition: transform .35s ease; max-height: calc(100vh - 78px); overflow-y: auto;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { padding: 14px 16px; font-size: 1.08rem; }
  .nav-cta { margin: 8px 0 0; }
  .nav-cta .btn { width: 100%; }
  .nav-toggle { display: flex; }
  .hero {
    min-height: auto; padding: 116px 0 60px; text-align: center;
    background: linear-gradient(rgba(255,247,240,.82), rgba(255,247,240,.9)), url(../images/waves-bg.jpg) center / cover no-repeat;
    background-color: var(--cream);
  }
  .hero-grid { grid-template-columns: 1fr; gap: 22px; }
  .hero-content { text-align: center; order: 2; }
  .hero-content .hero-brand { margin: 0 auto 16px; }
  .hero-figure { order: 1; }
  .hero-figure img { max-width: 280px; }
  .hero .lead { margin: 0 auto 28px; }
  .hero-actions { justify-content: center; }
  .hero-actions .btn { width: 100%; max-width: 320px; }
  .value-row { grid-template-columns: 64px 1fr; gap: 22px; padding: 36px 4px; }
  .value-row .num-cn { font-size: 2.4rem; }
  .member-grid { grid-template-columns: 1fr; max-width: 360px; margin: 0 auto; }
  .tenet-grid { grid-template-columns: 1fr; }
  .tenet:not(:last-child)::after { display: none; }
  .tenet { padding: 24px 20px; border-bottom: 2px solid var(--line); }
  .cert-step { min-width: 50%; margin-bottom: 24px; }
  .cert-step:not(:last-child)::after { display: none; }
  .feature-item { grid-template-columns: 1fr; text-align: center; gap: 14px; }
  .feature-item .fi-ic { margin: 0 auto; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .stories .achieve { flex-direction: column; gap: 10px; font-size: 1.1rem; text-align: center; }
  .stories .achieve::before, .stories .achieve::after { display: none; }
}

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