/* 叁姆智选官网 V5 — 政务机构风（庄重 · 透明 · 公信力）浅色主题 */
:root {
  --blue: #14418c;
  --blue-d: #0e3269;
  --blue-l: #eef3fb;
  --red: #c82423;
  --gold: #b8862e;
  --bg: #f6f7fa;
  --card: #ffffff;
  --line: #e2e6ee;
  --txt: #1c2333;
  --muted: #5d6580;
  --radius: 10px;
  --maxw: 1200px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  background: var(--bg); color: var(--txt);
  line-height: 1.8; font-size: 16px;
}
a { color: var(--blue); text-decoration: none; }
img { max-width: 100%; display: block; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ── 顶部公告条 ── */
.topbar { background: var(--blue-d); color: #cdd8ee; font-size: 12.5px; }
.topbar .container { display: flex; justify-content: space-between; height: 34px; align-items: center; }
.topbar b { color: #f4d488; font-weight: 600; }

/* ── 主导航 ── */
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 3px solid var(--blue); box-shadow: 0 2px 10px rgba(16, 46, 105, .08); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { display: flex; align-items: center; gap: 12px; color: var(--txt); }
.logo img { width: 46px; height: 46px; }
.logo span { font-weight: 800; font-size: 21px; color: var(--blue-d); letter-spacing: 1px; line-height: 1.15; display: flex; flex-direction: column; }
.logo .sub-name { font-size: 10px; color: #8a93a8; letter-spacing: 2px; font-weight: 400; }
.nav-links { display: flex; gap: 8px; list-style: none; }
.nav-links a {
  color: var(--txt); font-size: 15.5px; font-weight: 600;
  padding: 10px 18px; border-radius: 8px; display: block; transition: all .2s;
}
.nav-links a:hover { background: var(--blue-l); color: var(--blue); }
.nav-links a.active { background: var(--blue); color: #fff; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); color: var(--txt); font-size: 20px; padding: 4px 12px; border-radius: 8px; cursor: pointer; }

/* ── Hero（宗旨横幅） ── */
.hero {
  position: relative; text-align: center; color: #fff;
  padding: 88px 0 80px; overflow: hidden;
  background:
    linear-gradient(165deg, rgba(14, 50, 105, .88) 0%, rgba(14, 50, 105, .72) 45%, rgba(10, 28, 62, .85) 100%),
    url('img/cq-night-1.jpg') center 62% / cover no-repeat;
}
.hero::before {
  content: ""; position: absolute; inset: 0; opacity: .5;
  background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 60px 60px;
}
.hero > .container { position: relative; }
.hero .kicker { color: #f4d488; letter-spacing: 6px; font-size: 14px; margin-bottom: 22px; font-weight: 600; }
.hero h1 { font-size: clamp(30px, 4.8vw, 48px); line-height: 1.35; font-weight: 800; letter-spacing: 3px; }
.hero h1 .em { color: #f4d488; }
.hero p.sub {
  margin-top: 20px; color: #d7e0f2; font-size: clamp(15px, 1.9vw, 18px);
  max-width: 780px; margin-inline: auto; letter-spacing: 1px;
}
.hero .motto {
  margin-top: 34px; display: flex; gap: 0; justify-content: center; flex-wrap: wrap;
  border-top: 1px solid rgba(255,255,255,.18); border-bottom: 1px solid rgba(255,255,255,.18);
  padding: 18px 0; max-width: 860px; margin-inline: auto;
}
.hero .motto span { flex: 1 1 120px; font-size: 18px; font-weight: 700; letter-spacing: 6px; color: #f4d488; border-right: 1px solid rgba(255,255,255,.16); padding: 4px 10px; }
.hero .motto span:last-child { border-right: none; }
.cta { margin-top: 34px; display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: 12px 34px; border-radius: 6px;
  background: var(--red); color: #fff; font-weight: 700; font-size: 15.5px; letter-spacing: 2px;
  transition: filter .2s, transform .2s;
}
.btn:hover { filter: brightness(1.1); transform: translateY(-1px); }
.btn.ghost { background: none; color: #fff; border: 1.5px solid rgba(255,255,255,.55); }
.btn.ghost:hover { background: rgba(255,255,255,.12); }

/* ── 通用区块（栏目化） ── */
.block { padding: 66px 0; }
.block.alt { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.block-head { text-align: center; margin-bottom: 42px; }
.block-head .eyebrow { color: #8a93a8; font-size: 12px; letter-spacing: 5px; margin-bottom: 8px; text-transform: uppercase; }
.block-head h2 {
  font-size: clamp(23px, 3vw, 30px); font-weight: 800; color: var(--blue-d); letter-spacing: 2px;
  display: inline-block; position: relative; padding-bottom: 14px;
}
.block-head h2::after { content: ""; position: absolute; left: 50%; transform: translateX(-50%); bottom: 0; width: 52px; height: 3px; background: var(--red); }
.block-head h2 .em { color: var(--blue); }
.block-head p { color: var(--muted); margin-top: 14px; font-size: 15px; max-width: 700px; margin-inline: auto; }

.grid { display: grid; gap: 20px; }
.g4 { grid-template-columns: repeat(4, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g2 { grid-template-columns: repeat(2, 1fr); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; transition: transform .25s, box-shadow .25s; box-shadow: 0 1px 3px rgba(16, 46, 105, .05); }
.card:hover { transform: translateY(-3px); box-shadow: 0 10px 26px rgba(16, 46, 105, .12); }
.card .ico { width: 50px; height: 50px; border-radius: 10px; background: var(--blue-l); display: grid; place-items: center; margin-bottom: 16px; }
.card .ico svg { width: 25px; height: 25px; stroke: var(--blue); fill: none; stroke-width: 1.7; }
.card h3 { font-size: 17px; margin-bottom: 8px; color: var(--blue-d); }
.card p { color: var(--muted); font-size: 14px; line-height: 1.85; }

/* 指标 */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; text-align: center; }
.stats .stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 12px; box-shadow: 0 1px 3px rgba(16,46,105,.05); }
.stats .num { font-size: clamp(28px, 3.4vw, 38px); font-weight: 800; color: var(--blue); line-height: 1.2; }
.stats .lab { color: var(--muted); font-size: 13px; margin-top: 6px; }

/* 公司简介双栏 */
.intro-wrap { display: grid; grid-template-columns: 1.25fr 1fr; gap: 44px; align-items: start; }
.intro-text .block-head { text-align: left; margin-bottom: 20px; }
.intro-text .block-head h2::after { left: 0; transform: none; }
.intro-text > p { color: #3c455c; font-size: 15px; margin-bottom: 13px; text-align: justify; }
.intro-metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 24px; border-top: 2px solid var(--blue-l); padding-top: 22px; }
.intro-metrics b { font-size: 23px; color: var(--red); display: block; line-height: 1.2; }
.intro-metrics span { color: var(--muted); font-size: 12px; display: block; margin-top: 4px; }
.intro-media img { border-radius: var(--radius); border: 1px solid var(--line); width: 100%; object-fit: cover; aspect-ratio: 16 / 9; box-shadow: 0 4px 14px rgba(16,46,105,.1); }

/* 协会推荐函（公文卡） */
.letter { background: #fffdf7; border: 1px solid #e6d9b8; border-radius: var(--radius); padding: 42px 52px; position: relative; box-shadow: 0 3px 16px rgba(184, 134, 46, .1); }
.letter-head { text-align: center; margin-bottom: 24px; }
.letter .doc-no { display: inline-block; background: var(--red); color: #fff; font-size: 13px; padding: 4px 18px; letter-spacing: 2px; margin-bottom: 16px; border-radius: 4px; }
.letter-head h2 { font-size: clamp(22px, 3vw, 29px); color: var(--blue-d); font-weight: 800; }
.letter .doc-sub { color: #8a7b56; font-size: 12.5px; margin-top: 10px; }
.letter blockquote { color: #3a3625; font-size: 15px; line-height: 2.1; border-left: 3px solid var(--gold); padding: 4px 0 4px 20px; margin: 0 6px; text-align: justify; }
.letter .letter-src { color: #8a7b56; font-size: 13px; margin-top: 14px; text-align: right; }

/* 门店图廊 */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gitem { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 3 / 2; background: #fff; }
.gitem img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.gitem:hover img { transform: scale(1.04); }
.gitem .gcap { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 14px 10px; background: linear-gradient(transparent, rgba(10, 22, 48, .85)); font-size: 13px; color: #fff; }
.gitem .gcap small { display: block; color: #f4d488; font-size: 11px; letter-spacing: 1px; }
.gallery-note { text-align: center; color: var(--muted); font-size: 13px; margin-top: 16px; }

/* 发展历程 */
.timeline { max-width: 800px; margin: 0 auto; position: relative; padding-left: 30px; }
.timeline::before { content: ""; position: absolute; left: 8px; top: 6px; bottom: 6px; width: 2px; background: #cfdaee; }
.tl-item { position: relative; padding-bottom: 28px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before { content: ""; position: absolute; left: -27px; top: 9px; width: 11px; height: 11px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 4px #fbe3e3; }
.tl-date { color: var(--blue); font-size: 13.5px; letter-spacing: 2px; font-weight: 700; margin-bottom: 4px; }
.tl-body h3 { font-size: 16.5px; margin-bottom: 5px; color: var(--blue-d); }
.tl-body p { color: var(--muted); font-size: 14px; }

/* 合作流程 */
.co-list { list-style: none; margin-top: 16px; }
.co-list li { color: #3c455c; font-size: 14px; padding: 8px 0 8px 28px; position: relative; border-bottom: 1px dashed var(--line); }
.co-list li::before { content: ""; position: absolute; left: 6px; top: 16px; width: 8px; height: 8px; border-radius: 50%; background: var(--blue); }

/* 小程序/合作卡 */
.qr-wrap { display: grid; grid-template-columns: 1fr 1.2fr; gap: 22px; align-items: stretch; }
.qr-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; text-align: center; box-shadow: 0 1px 3px rgba(16,46,105,.05); }
.qr-box { width: 200px; height: 200px; margin: 0 auto 14px; border-radius: 12px; background: #fff; padding: 10px; border: 1px solid var(--line); }
.qr-note { color: var(--muted); font-size: 12.5px; margin-top: 6px; }
.qr-card h3 { color: var(--blue-d); font-size: 18px; }

/* 页脚（政务深蓝） */
.site-footer { background: var(--blue-d); color: #b9c6de; margin-top: 50px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1.2fr 1fr; gap: 34px; padding: 46px 0 36px; }
.foot-grid h4 { font-size: 15px; margin-bottom: 13px; color: #f4d488; letter-spacing: 1px; }
.foot-grid ul { list-style: none; }
.foot-grid li { font-size: 13.5px; padding: 3px 0; color: #b9c6de; }
.foot-grid p { font-size: 13.5px; }
.foot-grid a { color: #b9c6de; }
.foot-grid a:hover { color: #fff; }
.foot-bottom { border-top: 1px solid rgba(255,255,255,.14); padding: 18px 0; text-align: center; color: #8fa1c0; font-size: 12.5px; background: var(--blue-d); }
.foot-bottom .icp { margin-top: 4px; letter-spacing: 1px; }

/* 动画 */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (max-width: 960px) {
  .g4, .g3, .steps, .stats { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .qr-wrap { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .intro-wrap { grid-template-columns: 1fr; gap: 28px; }
  .nav-links { display: none; position: absolute; top: 72px; left: 0; right: 0; background: #fff; flex-direction: column; gap: 0; padding: 12px 24px 18px; border-bottom: 3px solid var(--blue); box-shadow: 0 10px 24px rgba(16,46,105,.12); }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .topbar .container { justify-content: center; text-align: center; }
}
@media (max-width: 600px) {
  .g4, .g3, .g2, .stats { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .block { padding: 52px 0; }
  .hero { padding: 64px 0 58px; }
  .letter { padding: 28px 22px; }
  .hero .motto span { font-size: 15px; letter-spacing: 3px; }
}

/* ── 企业理念 ── */
.card.idea { text-align: center; border-top: 3px solid var(--blue); }
.idea-tag {
  display: inline-block; font-size: 21px; font-weight: 800; color: var(--blue-d);
  letter-spacing: 6px; padding-bottom: 8px; margin-bottom: 12px; position: relative;
}
.idea-tag::after { content: ""; position: absolute; left: 50%; transform: translateX(-50%); bottom: 0; width: 30px; height: 2px; background: var(--red); }
.card.idea p { color: var(--muted); font-size: 13.5px; line-height: 1.9; }
.card.idea p b { color: var(--blue); display: block; margin-bottom: 6px; font-size: 14px; }
.idea-line {
  margin-top: 30px; background: var(--blue); color: #fff; text-align: center;
  border-radius: var(--radius); padding: 18px 24px;
  font-size: clamp(15px, 2vw, 19px); font-weight: 700; letter-spacing: 4px;
}
a.motto:hover span { color: #fff; }

/* slogan 金句 */
.slogan {
  margin-top: 18px; font-size: clamp(16px, 2.2vw, 21px); font-weight: 700;
  color: #f4d488; letter-spacing: 3px;
}
.slogan::before, .slogan::after { content: "— "; color: rgba(244, 212, 136, .5); }
.slogan::after { content: " —"; }
