/* ============================================================
   北星互助社 · 门户设计系统 v3（浅色商务风 · 照 1zy 稿）
   品牌色：主蓝 #1e3a8a / 深蓝 #162c68 / 淡蓝 #e8eefc
           点缀橙 #f97316，墨蓝 #0b1b33，页底 #f8fafc
   所有旧类名保留（JS 与 download 页依赖），只换配色与卡片质感
   ============================================================ */
:root {
  --brand: #1e3a8a;
  --brand-600: #1a337a;
  --brand-700: #162c68;
  --brand-900: #0f1f4d;
  --brand-soft: #e8eefc;
  --sky: #2563eb;
  --gold: #f97316;
  --gold-600: #ea580c;
  --teal: #1e3a8a;            /* 兼容旧变量名 → 品牌蓝 */
  --teal-600: #1a337a;
  --teal-300: #bfdbfe;
  --orange: #f97316;          /* 兼容旧变量名 → 点缀橙 */
  --orange-500: #fb923c;
  --ink: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #f8fafc;
  --card: #ffffff;
  --radius: 12px;
  --shadow: 0 4px 15px rgba(30, 58, 138, .06);
  --shadow-lg: 0 10px 25px rgba(30, 58, 138, .10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(1200px 500px at 85% -100px, rgba(30,58,138, .07), transparent 60%),
    var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
.container { width: min(1140px, 92vw); margin: 0 auto; }
.text-muted { color: var(--muted); }
.text-center { text-align: center; }

/* ===== 滚动入场动画 ===== */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; } .reveal.d4 { transition-delay: .32s; }

/* ===== 区块通用 ===== */
.section { padding: 72px 0; position: relative; }
.section--tight { padding: 34px 0; }
.section-head { text-align: center; margin-bottom: 44px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 800; letter-spacing: 2px;
  color: var(--brand); background: var(--brand-soft);
  padding: 5px 14px; border-radius: 999px; margin-bottom: 12px;
}
.section-head h2 { font-size: clamp(26px, 3.4vw, 36px); margin: 0 0 10px; letter-spacing: .5px; }
.section-head h2 em { font-style: normal; color: var(--brand); }
.section-head p { color: var(--muted); margin: 0; font-size: 16px; max-width: 620px; margin-inline: auto; }

/* ===== 导航 ===== */
.navbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid rgba(227, 234, 243, .9);
}
.navbar__inner { display: flex; align-items: center; justify-content: space-between; height: 66px; gap: 18px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 900; font-size: 19px; letter-spacing: 1px; }
.brand__mark {
  display: inline-grid; place-items: center;
  width: 36px; height: 36px; border-radius: 10px;
  background: linear-gradient(135deg, var(--brand) 10%, var(--sky) 90%);
  color: #fff; font-weight: 900; font-size: 18px;
  box-shadow: 0 6px 16px rgba(30,58,138, .35);
}
.nav-links { display: flex; gap: 28px; }
.nav-links a { color: var(--muted); font-weight: 700; padding: 8px 0; position: relative; transition: color .2s; }
.nav-links a:hover { color: var(--ink); }
.nav-links a.active { color: var(--brand); }
.nav-links a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 3px;
  background: linear-gradient(90deg, var(--brand), var(--sky)); border-radius: 3px;
}
.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-actions .user { font-weight: 800; color: var(--brand-600); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 24px; height: 3px; background: var(--ink); border-radius: 3px; transition: .3s; }
.mobile-menu { display: none; flex-direction: column; padding: 12px 18px 18px; gap: 4px; border-top: 1px solid var(--line); background: #fff; }
.mobile-menu a { padding: 11px 4px; font-weight: 700; color: var(--muted); border-bottom: 1px dashed var(--line); }
.mobile-menu a:last-child { border-bottom: 0; }
.mobile-menu.open { display: flex; }

/* ===== 按钮 ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 26px; border-radius: 999px; font-weight: 800; cursor: pointer;
  border: 1px solid transparent; transition: transform .15s, box-shadow .2s, background .2s, color .2s;
  font-size: 15px; letter-spacing: .5px; white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--lg { padding: 15px 34px; font-size: 16.5px; }
.btn-sm { padding: 8px 18px; font-size: 14px; }
.btn--accent { background: linear-gradient(135deg, var(--brand), var(--brand-600)); color: #fff; box-shadow: 0 8px 22px rgba(30,58,138, .32); }
.btn--accent:hover { box-shadow: 0 12px 30px rgba(30,58,138, .45); transform: translateY(-2px); }
.btn--primary { background: linear-gradient(135deg, var(--gold), var(--gold-600)); color: #fff; box-shadow: 0 8px 22px rgba(249,115,22, .35); }
.btn--primary:hover { box-shadow: 0 12px 30px rgba(249,115,22, .5); transform: translateY(-2px); }
.btn--outline { background: #fff; border-color: var(--brand); color: var(--brand); }
.btn--outline:hover { background: var(--brand); color: #fff; box-shadow: 0 10px 24px rgba(30,58,138, .3); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* ===== 首页轮播（Hero）· 浅色左文右图 ===== */
.carousel { position: relative; overflow: hidden; background: var(--bg); }
.carousel__viewport { overflow: hidden; }
.carousel__track { display: flex; transition: transform .65s cubic-bezier(.5, 0, .2, 1); }
.carousel__slide {
  min-width: 100%; color: var(--ink); padding: 62px 0 96px; position: relative;
}
.carousel__slide::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(520px 260px at 88% 14%, rgba(30, 58, 138, .07), transparent 65%),
    radial-gradient(420px 240px at 6% 92%, rgba(249, 115, 22, .06), transparent 60%);
}
.carousel__content {
  position: relative; z-index: 1;
  display: flex; align-items: center; gap: 48px;
}
.carousel__text { flex: 1 1 auto; min-width: 0; }
.carousel__art { flex: 0 0 320px; display: none; place-items: center; position: relative; height: 250px; }
@media (min-width: 901px) { .carousel__art { display: grid; } }
.carousel__art .art-orb {
  width: 208px; height: 208px; border-radius: 50%; display: grid; place-items: center;
  font-size: 84px; background: #fff; border: 1px solid var(--line);
  box-shadow: 0 18px 44px rgba(30, 58, 138, .12); position: relative;
}
.carousel__art .art-orb::after {
  content: ""; position: absolute; inset: -20px; border-radius: 50%;
  border: 1px dashed rgba(30, 58, 138, .22); animation: artspin 24s linear infinite;
}
@keyframes artspin { to { transform: rotate(360deg); } }
.carousel__art .art-dot {
  position: absolute; width: 52px; height: 52px; border-radius: 50%; display: grid;
  place-items: center; font-size: 23px; background: #fff; border: 1px solid var(--line);
  box-shadow: 0 10px 22px rgba(30, 58, 138, .10);
}
.carousel__art .art-dot--1 { top: 14px; right: 18px; }
.carousel__art .art-dot--2 { bottom: 20px; left: 8px; }
.carousel__content h1 {
  font-size: clamp(27px, 4.2vw, 44px); margin: 16px 0 14px; line-height: 1.3;
  letter-spacing: .5px; color: var(--brand);
}
.carousel__content p { font-size: 17px; color: var(--muted); max-width: 560px; }
.carousel__content .btn { margin-top: 22px; }
.carousel__arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255, 255, 255, .92); border: 1px solid var(--line); color: var(--brand);
  font-size: 26px; width: 44px; height: 44px; border-radius: 50%; cursor: pointer; z-index: 2;
  box-shadow: 0 6px 18px rgba(30, 58, 138, .10); transition: all .2s;
}
.carousel__arrow:hover { background: var(--brand); color: #fff; }
.carousel__arrow--prev { left: 18px; } .carousel__arrow--next { right: 18px; }
.carousel__dots { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; z-index: 2; }
.carousel__dots button { width: 10px; height: 10px; border-radius: 50%; border: 0; background: rgba(30, 58, 138, .22); cursor: pointer; transition: all .3s; }
.carousel__dots button.active { background: var(--gold); width: 28px; border-radius: 6px; }

.tag { display: inline-block; padding: 5px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--brand); font-size: 13px; font-weight: 800; letter-spacing: 1px; }
.tag--accent { background: var(--brand-soft); color: var(--brand); border-color: #c7d6fb; }

/* ===== 数据概览 ===== */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: -46px; position: relative; z-index: 5; }
.stats .stat {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 18px; text-align: center; box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s;
}
.stats .stat:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.stats .stat .num {
  font-size: 34px; font-weight: 900; letter-spacing: 1px;
  background: linear-gradient(120deg, var(--brand), var(--sky));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stats .stat .label { color: var(--muted); font-size: 14px; margin-top: 6px; font-weight: 600; }

/* ===== 卡片网格 ===== */
.grid { display: grid; gap: 20px; }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }

/* 核心服务 */
.feature { padding: 30px 26px; position: relative; overflow: hidden; transition: transform .2s, box-shadow .2s; }
.feature:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.feature::after {
  content: ""; position: absolute; right: -34px; top: -34px; width: 110px; height: 110px;
  border-radius: 50%; background: var(--brand-soft); opacity: .7; transition: .3s;
}
.feature:hover::after { transform: scale(1.35); }
.feature__icon {
  width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center;
  font-size: 27px; color: #fff; margin-bottom: 16px; position: relative; z-index: 1;
  box-shadow: 0 8px 18px rgba(15,31,77, .18);
}
.feature h3 { margin: 0 0 8px; font-size: 19px; position: relative; z-index: 1; }
.feature p { margin: 0; font-size: 14.5px; color: var(--muted); position: relative; z-index: 1; }
.feature__more { display: inline-block; margin-top: 14px; font-weight: 800; font-size: 14px; color: var(--brand); position: relative; z-index: 1; }

/* 快速入口（保留旧类） */
.quick-entry { display: block; padding: 24px; transition: transform .2s, box-shadow .2s; }
.quick-entry:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.quick-entry__icon { width: 54px; height: 54px; border-radius: 15px; display: grid; place-items: center; font-size: 25px; color: #fff; margin-bottom: 13px; box-shadow: 0 8px 18px rgba(15,31,77,.18); }
.quick-entry h3 { margin: 6px 0; font-size: 18px; }
.quick-entry p { margin: 0; font-size: 14px; }

/* ===== 互助流程 ===== */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; position: relative; }
.steps::before {
  content: ""; position: absolute; top: 34px; left: 8%; right: 8%; height: 3px;
  background: linear-gradient(90deg, var(--brand-soft), var(--sky), var(--brand-soft));
  border-radius: 3px;
}
.step { text-align: center; position: relative; padding: 0 8px; }
.step__no {
  width: 68px; height: 68px; margin: 0 auto 16px; border-radius: 50%;
  display: grid; place-items: center; font-size: 26px; font-weight: 900; color: var(--brand-700);
  background: #fff; border: 3px solid var(--sky);
  box-shadow: 0 10px 24px rgba(30,58,138, .18); position: relative; z-index: 1;
}
.step h3 { margin: 0 0 8px; font-size: 18px; }
.step p { margin: 0; color: var(--muted); font-size: 14px; }

/* ===== 会员体系 ===== */
.tier { padding: 34px 28px; text-align: center; position: relative; overflow: hidden; transition: transform .2s, box-shadow .2s; }
.tier:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.tier--hot { border: 2px solid var(--gold); }
.tier__flag {
  position: absolute; top: 18px; right: -34px; transform: rotate(45deg);
  background: linear-gradient(135deg, var(--gold), var(--gold-600));
  color: #7c2d12; font-size: 12px; font-weight: 900; padding: 4px 40px; letter-spacing: 2px;
}
.tier__icon { font-size: 40px; margin-bottom: 8px; }
.tier h3 { margin: 0 0 6px; font-size: 21px; }
.tier__sub { color: var(--gold-600); font-weight: 800; font-size: 13px; letter-spacing: 2px; margin-bottom: 16px; }
.tier ul { list-style: none; margin: 0 0 20px; padding: 0; text-align: left; }
.tier ul li { padding: 8px 0 8px 26px; position: relative; color: #33455f; font-size: 14.5px; border-bottom: 1px dashed var(--line); }
.tier ul li:last-child { border-bottom: 0; }
.tier ul li::before { content: "✓"; position: absolute; left: 2px; color: var(--brand); font-weight: 900; }

/* ===== 理念横幅 ===== */
.quote-band {
  background:
    radial-gradient(600px 300px at 90% 0%, rgba(255,255,255,.12), transparent 60%),
    linear-gradient(120deg, var(--brand-900), var(--brand) 55%, var(--sky));
  color: #fff; border-radius: 22px; padding: 54px 40px; text-align: center;
  box-shadow: var(--shadow-lg); position: relative; overflow: hidden;
}
.quote-band::before {
  content: "“"; position: absolute; left: 34px; top: -10px; font-size: 150px;
  font-family: Georgia, serif; opacity: .14; line-height: 1;
}
.quote-band h2 { font-size: clamp(24px, 3.2vw, 34px); margin: 0 0 14px; letter-spacing: 6px; }
.quote-band h2 span { color: var(--gold); }
.quote-band p { max-width: 640px; margin: 0 auto; opacity: .92; font-size: 15.5px; }

/* ===== 动态 feed ===== */
.feed { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.feed li {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 22px; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s;
}
.feed li:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.feed .meta { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13px; margin-bottom: 6px; }
.feed .avatar { width: 32px; height: 32px; border-radius: 50%; background: linear-gradient(135deg, var(--brand), var(--sky)); color: #fff; display: grid; place-items: center; font-weight: 800; }
.feed h3 { margin: 4px 0 6px; font-size: 17px; }
.feed .snippet { color: var(--muted); margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.feed .badge { background: var(--brand-soft); color: var(--brand-600); padding: 3px 12px; border-radius: 999px; font-size: 12px; font-weight: 800; }

/* ===== FAQ ===== */
.faq { max-width: 780px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); overflow: hidden; }
.faq summary { cursor: pointer; padding: 18px 22px; font-weight: 800; font-size: 15.5px; list-style: none; display: flex; align-items: center; gap: 10px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "Q"; flex: none; width: 26px; height: 26px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-700); border-radius: 8px; font-size: 13px; font-weight: 900; }
.faq summary::after { content: "+"; margin-left: auto; color: var(--brand); font-size: 20px; font-weight: 900; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .faq__a { padding: 0 22px 18px 58px; color: var(--muted); font-size: 14.5px; }

/* ===== 页脚 ===== */
.footer { background: linear-gradient(180deg, #162c68, #0b1b33); color: #b8c6dd; padding: 60px 0 22px; margin-top: 56px; }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.2fr; gap: 30px; }
.footer h4 { color: #fff; margin: 0 0 14px; font-size: 15.5px; letter-spacing: 1px; }
.footer a { display: block; color: #b8c6dd; padding: 5px 0; font-size: 14px; transition: color .2s, padding-left .2s; }
.footer a:hover { color: #fff; padding-left: 4px; }
.footer__about { max-width: 300px; font-size: 14px; margin: 0; }
.footer .brand { color: #fff; margin-bottom: 12px; }
.footer__contact p { margin: 4px 0; font-size: 14px; display: flex; align-items: center; gap: 8px; }
.footer__bottom { text-align: center; color: #64748b; font-size: 13px; margin-top: 30px; border-top: 1px solid rgba(255,255,255,.08); padding-top: 18px; }

/* ===== 表单 / 页面通用 ===== */
.page-hero {
  background:
    radial-gradient(500px 240px at 88% 10%, rgba(255,255,255,.15), transparent 60%),
    linear-gradient(120deg, var(--brand-900), var(--brand) 60%, var(--sky));
  color: #fff; padding: 66px 0 92px; position: relative; overflow: hidden;
}
.page-hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(45deg, rgba(255,255,255,.04) 0 2px, transparent 2px 20px);
}
.page-hero h1 { font-size: clamp(26px, 4vw, 40px); margin: 0 0 10px; letter-spacing: 1px; position: relative; z-index: 1; }
.page-hero p { opacity: .93; margin: 0; font-size: 16px; position: relative; z-index: 1; max-width: 620px; }
.page-hero .crumbs { position: relative; z-index: 1; font-size: 13.5px; opacity: .85; margin-bottom: 14px; }

.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 26px; margin-top: -46px; position: relative; z-index: 2; }
.field { margin-bottom: 14px; }
.field label { display: block; font-weight: 700; margin-bottom: 6px; font-size: 14px; }
.field input, .field textarea, .field select {
  width: 100%; padding: 12px 15px; border: 1.5px solid var(--line); border-radius: 12px; font-size: 15px; font-family: inherit;
  transition: border .2s, box-shadow .2s; background: #fbfdff;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(30,58,138,.12); background: #fff; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.auth-wrap { max-width: 440px; margin: 40px auto 64px; }
.auth-brand { text-align: center; margin-bottom: 18px; }
.auth-brand h1 { font-size: 24px; margin: 0 0 6px; }
.auth-brand p { color: var(--muted); margin: 0; font-size: 14px; }
.tabs { display: flex; gap: 8px; margin-bottom: 20px; background: var(--brand-soft); padding: 5px; border-radius: 12px; }
.tabs button { flex: 1; padding: 11px; border: 0; background: transparent; border-radius: 9px; font-weight: 800; cursor: pointer; color: var(--muted); transition: .2s; }
.tabs button.active { background: #fff; color: var(--brand-700); box-shadow: 0 4px 12px rgba(15,31,77,.12); }
.auth-slot .btn-sm { padding: 7px 16px; font-size: 14px; }

/* ===== 帖子 / 活动列表 ===== */
.list { display: grid; gap: 16px; margin-top: 26px; }
.post-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 24px; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s; }
.post-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.post-card .meta { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13px; margin-bottom: 8px; }
.post-card .avatar { width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg, var(--brand), var(--sky)); color: #fff; display: grid; place-items: center; font-weight: 800; }
.post-card h3 { margin: 4px 0 8px; font-size: 18px; }
.post-card .body { color: #33455f; margin: 0 0 10px; white-space: pre-wrap; }
.post-card .tags { display: flex; gap: 8px; flex-wrap: wrap; }
.post-card .tagchip { background: var(--brand-soft); color: var(--brand-600); padding: 3px 12px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.post-card .actions { display: flex; gap: 16px; margin-top: 12px; color: var(--muted); font-size: 14px; }
.post-card .actions button { background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 14px; font-weight: 700; transition: color .2s; }
.post-card .actions button:hover { color: var(--brand); }
.post-card .actions button.liked { color: var(--gold-600); }

.filters { display: flex; gap: 8px; flex-wrap: wrap; margin: 22px 0 0; }
.filters button { padding: 9px 18px; border: 1.5px solid var(--line); background: #fff; border-radius: 999px; cursor: pointer; font-weight: 700; color: var(--muted); transition: .2s; }
.filters button:hover { border-color: var(--sky); color: var(--brand); }
.filters button.active { background: linear-gradient(135deg, var(--brand), var(--brand-600)); color: #fff; border-color: transparent; box-shadow: 0 6px 16px rgba(30,58,138,.3); }

.activity-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s; display: flex; flex-direction: column; }
.activity-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.activity-card .cover { height: 150px; border-radius: 12px; background: linear-gradient(135deg, var(--brand), var(--sky)); display: grid; place-items: center; color: #fff; font-size: 22px; font-weight: 900; margin-bottom: 16px; letter-spacing: 2px; }
.activity-card h3 { margin: 0 0 6px; }
.activity-card .meta { color: var(--muted); font-size: 14px; margin-bottom: 8px; }
.activity-card .status { font-size: 12px; font-weight: 800; padding: 4px 12px; border-radius: 999px; align-self: flex-start; }
.status.upcoming, .status.recruiting { background: #e9f8ef; color: #1d4ed8; }
.status.ongoing { background: #fff1e7; color: #b97900; }
.status.finished, .status.cancelled { background: #f1f5f9; color: #64748b; }
.activity-card .regBtn { margin-top: auto; }

.download-box { max-width: 520px; margin: 40px auto; text-align: center; }
.qr { width: 200px; height: 200px; border: 1px solid var(--line); border-radius: 16px; margin: 18px auto; display: grid; place-items: center; background: #fff; }
.qr img { width: 180px; height: 180px; }

.empty { text-align: center; color: var(--muted); padding: 48px 0; }

/* ===== APP 下载悬停下拉（保留） ===== */
.dl-wrap { position: relative; display: inline-flex; }
.dl-wrap::after { content: ""; position: absolute; left: -12px; right: -12px; top: 100%; height: 16px; }
.dl-menu {
  position: absolute; top: calc(100% + 12px); left: 50%;
  transform: translateX(-50%) translateY(8px);
  width: 300px; padding: 10px;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
  z-index: 90;
}
.dl-menu::before {
  content: ""; position: absolute; top: -6px; left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 12px; height: 12px; background: #fff;
  border-left: 1px solid var(--line); border-top: 1px solid var(--line);
}
.dl-wrap:hover .dl-menu,
.dl-wrap:focus-within .dl-menu {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.dl-item { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 10px; transition: background .15s; }
.dl-item:hover { background: var(--brand-soft); }
.dl-item + .dl-item { margin-top: 4px; }
.dl-item__icon { width: 44px; height: 44px; border-radius: 12px; flex: none; display: grid; place-items: center; font-size: 22px; color: #fff; }
.dl-item__icon--scan { background: linear-gradient(135deg, var(--brand), var(--sky)); }
.dl-item__icon--member { background: linear-gradient(135deg, var(--brand-900), var(--brand-600)); }
.dl-item__txt h5 { margin: 0; font-size: 15px; color: var(--ink); white-space: nowrap; }
.dl-item__txt p { margin: 2px 0 0; font-size: 12px; color: var(--muted); }
.dl-item .go { margin-left: auto; color: var(--brand); font-weight: 800; font-size: 13px; white-space: nowrap; }
.dl-menu__foot { display: block; text-align: center; margin-top: 6px; padding: 8px 0 4px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.dl-menu__foot:hover { color: var(--brand); }
.nav-links .dl-wrap > a::after { content: " ▾"; font-size: 11px; opacity: .7; }
@media (hover: none), (max-width: 860px) { .dl-menu { display: none; } }

/* ===== 响应式 ===== */
@media (max-width: 960px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
  .steps::before { display: none; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .row { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .grid--4, .grid--3, .steps { grid-template-columns: 1fr; }
  .carousel__slide { padding: 72px 0 84px; }
  .section { padding: 52px 0; }
  .quote-band { padding: 40px 24px; }
  .footer__grid { grid-template-columns: 1fr; }
  .carousel__arrow { display: none; }
}

/* ===== 成员故事卡片 ===== */
.story { padding: 22px 24px; }
.story__head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.story .avatar { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 900; font-size: 18px; flex: 0 0 auto; }
.story__head b { display: block; font-size: 15px; }
.story__head .text-muted { font-size: 12px; }
.story__quote { color: #33455f; font-size: 15px; line-height: 1.7; }

/* ===== 共创规则列表 ===== */
.rules { display: grid; gap: 14px; margin-top: 8px; }
.rule { display: flex; gap: 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow); }
.rule__no { flex: 0 0 38px; height: 38px; border-radius: 50%; background: linear-gradient(135deg, var(--brand), var(--sky)); color: #fff; display: grid; place-items: center; font-weight: 900; }
.rule__body { flex: 1; }
.rule__body h4 { margin: 0 0 4px; }
.rule__body p { margin: 0; color: #33455f; font-size: 14px; line-height: 1.7; }
.rule__body ul { margin: 8px 0 0; padding-left: 18px; color: #33455f; font-size: 14px; }
.rule__body li { margin: 3px 0; }

.notice { border-radius: var(--radius); padding: 16px 20px; margin-top: 16px; font-size: 14px; line-height: 1.7; border: 1px solid transparent; }
.notice--warn { background: #fff1e7; border-color: #fdba74; color: #8a5a00; }
.notice--info { background: var(--brand-soft); border-color: var(--brand-soft); color: var(--brand-600); }

/* ===== 附近会员分布（范围定位，不暴露个人） ===== */
.nearby-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 24px; align-items: start; }
@media (max-width: 960px) { .nearby-grid { grid-template-columns: 1fr; } }
.map-stage { position: relative; background:
    radial-gradient(circle at 30% 30%, #ffffff 0, #eaf1fa 60%),
    linear-gradient(135deg, #eef6f3, #e3f0ec);
  border: 1px solid var(--line); border-radius: var(--radius); height: 440px; overflow: hidden; }
.map-stage::before { content: ""; position: absolute; inset: 0; background-image:
    linear-gradient(rgba(30,58,138,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30,58,138,.06) 1px, transparent 1px);
  background-size: 28px 28px; }
.map-ring { position: absolute; border: 2px dashed rgba(30,58,138,.55); border-radius: 50%; transform: translate(-50%, -50%); background: rgba(30,58,138,.07); }
.node { position: absolute; transform: translate(-50%, -50%); text-align: center; z-index: 2; }
.node__dot { width: 13px; height: 13px; border-radius: 50%; background: var(--brand); margin: 0 auto; box-shadow: 0 0 0 4px rgba(30,58,138,.16); }
.node--center .node__dot { width: 18px; height: 18px; background: var(--gold-600); box-shadow: 0 0 0 5px rgba(234,88,12,.22); }
.node__label { font-size: 12px; margin-top: 4px; color: #1a2230; white-space: nowrap; font-weight: 700; }
.node__num { font-size: 11px; color: var(--brand-600); font-weight: 800; }
.range-bar { display: flex; gap: 10px; flex-wrap: wrap; margin: 14px 0; }
.range-bar button { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 8px 18px; cursor: pointer; font-weight: 700; color: var(--text); }
.range-bar button.active { background: var(--brand); color: #fff; border-color: var(--brand); }
.stat-pill { display: inline-flex; gap: 8px; align-items: center; background: var(--brand-soft); color: var(--brand-600); border-radius: 999px; padding: 6px 14px; font-weight: 800; font-size: 13px; margin: 4px 6px 4px 0; }
.legend { font-size: 12px; color: var(--muted); margin-top: 10px; }
.nearby-summary { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.nearby-summary h3 { margin: 0 0 10px; }
.cmt-row { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.cmt-row:last-child { border-bottom: 0; }
.cmt-row b { color: var(--brand-600); }

/* ===== 共创页 · 在线提案 ===== */
@media (max-width: 900px) {
  .co-split { grid-template-columns: 1fr !important; }
}


/* ===== 导航下拉（details/summary，纯 HTML 无需 JS） ===== */
.nav-dd { position: relative; display: inline-block; }
.mobile-menu .nav-dd { display: block; }
.nav-dd > summary {
  cursor: pointer; list-style: none; color: var(--muted, #5b6b84); font-weight: 700;
  padding: 8px 0; text-decoration: none; display: block; transition: color .2s; font-size: 15px; user-select: none;
}
.nav-dd > summary::-webkit-details-marker { display: none; }
.nav-dd > summary::marker { display: none; }
.nav-dd > summary:hover { color: var(--ink, #0b1b33); }
.nav-dd > .nav-dd__menu {
  position: absolute; top: 100%; left: 0; background: var(--card, #fff);
  border: 1px solid var(--line, #e3eef0); border-radius: 8px; box-shadow: 0 4px 12px rgba(0,0,0,.08);
  list-style: none; margin: 8px 0 0 0; padding: 8px 0; min-width: 220px; z-index: 200;
}
.nav-dd > .nav-dd__menu a {
  display: block; padding: 12px 16px; color: var(--ink, #0b1b33); text-decoration: none;
  font-size: 14px; line-height: 1.4; transition: background .15s, color .15s; white-space: nowrap;
}
.nav-dd > .nav-dd__menu a:hover { background: var(--brand-soft, #e8eefc); color: var(--brand, #1e3a8a); }
/* 触发区与菜单之间有 8px 间隙，鼠标跨越途中会触发 mouseleave 导致菜单瞬间消失。
   搭一座透明桥（仅桌面，移动端菜单是 static 布局不需要，避免挡住上方链接）。 */
@media (min-width: 769px) {
  .nav-dd > .nav-dd__menu::before {
    content: ""; position: absolute; left: -8px; right: -8px; top: -18px; height: 18px;
  }
}
@media (max-width: 768px) {
  .nav-dd { display: block; }
  .nav-dd > .nav-dd__menu {
    position: static; box-shadow: none; border: none; border-top: 1px solid var(--line, #e3eef0);
    padding: 4px 0 8px 16px; min-width: 0; margin: 4px 0 0 0;
  }
}

/* ============================================================
   v3 补遗 · 1zy 浅色商务风强化
   卡片 hover 上浮 + 橙色描边（照 1zy.html .card:hover），
   页脚统一深蓝，导航 hover 走主蓝。只加视觉，不动任何结构。
   ============================================================ */
.card { transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease; }
.card:hover { transform: translateY(-5px); border-color: var(--gold); box-shadow: 0 10px 25px rgba(30, 58, 138, .10); }
.feature:hover, .tier:hover, .story:hover { border-color: var(--gold); }
.feature__icon, .quick-entry__icon { box-shadow: 0 8px 18px rgba(30, 58, 138, .16); }
.feature__more:hover { color: var(--gold-600); }
.tier__flag { color: #fff; }
.tier--hot { box-shadow: 0 10px 30px rgba(249, 115, 22, .14); }
.nav-links a:hover { color: var(--brand); }
.nav-links a.active::after { background: var(--brand); }
.feed li:hover { border-color: var(--gold); }
.faq details:hover { border-color: #c7d6fb; }
.stats .stat:hover { border-color: var(--gold); }
/* Hero 两个按钮之间的水平间距（原设计靠深色底看不出，浅色下必须补） */
.carousel__text .btn + .btn { margin-left: 12px; }
/* 互助流程有 5 步，原 4 列会把第 5 步挤到第二行、连接线断掉 */
.steps { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } .steps::before { display: none; } }
