/* 大湾区生存指南 wanqu.to — 共享样式。主题：深海蓝 × 玉绿，呼应湾区海湾意象。 */
:root {
  --navy: #0b3d5c;
  --navy-2: #0e4d6f;
  --navy-deep: #072a40;
  --jade: #12a594;
  --jade-2: #0d8a7c;
  --jade-soft: #d8f3ee;
  --gold: #e8a33d;
  --ink: #17323f;
  --body: #33474f;
  --muted: #6d818a;
  --line: #e2e9ec;
  --bg: #f6f9fa;
  --card: #ffffff;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(11,61,92,.05), 0 8px 24px rgba(11,61,92,.07);
  --shadow-lg: 0 16px 48px rgba(11,61,92,.14);
  --wrap: 1080px;
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); color: var(--body);
  background: var(--bg); line-height: 1.7; font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { color: var(--ink); line-height: 1.3; font-weight: 700; }
a { color: var(--jade-2); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.86); backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 16px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--navy); font-weight: 800; }
.brand:hover { text-decoration: none; }
.brand-mark { color: var(--jade); flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; font-size: 17px; }
.brand-text em { font-style: normal; font-size: 11px; letter-spacing: 1px; color: var(--muted); font-weight: 600; }
.site-nav { margin-left: auto; display: flex; gap: 4px; flex-wrap: wrap; }
.site-nav a {
  color: var(--body); font-size: 14.5px; font-weight: 600; padding: 8px 12px;
  border-radius: 8px; transition: background .15s, color .15s;
}
.site-nav a:hover { background: var(--jade-soft); color: var(--navy); text-decoration: none; }
.site-nav a[aria-current="page"] { color: var(--jade-2); }
.nav-toggle { display: none; margin-left: auto; background: none; border: 0; cursor: pointer; padding: 10px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--navy); margin: 4px 0; border-radius: 2px; transition: .2s; }

/* ---------- 通用区块 ---------- */
.section { padding: 60px 0; }
.section-alt { background: linear-gradient(180deg, #eef5f6, var(--bg)); }
.section-title { font-size: 28px; margin: 0 0 8px; letter-spacing: -.5px; }
.section-lead { color: var(--muted); margin: 0 0 32px; max-width: 640px; }

.btn {
  display: inline-flex; align-items: center; gap: 6px; padding: 12px 22px;
  border-radius: 999px; font-weight: 700; font-size: 15px; cursor: pointer;
  border: 1.5px solid transparent; transition: transform .12s, box-shadow .15s, background .15s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--jade); color: #fff; box-shadow: 0 6px 18px rgba(18,165,148,.35); }
.btn-primary:hover { background: var(--jade-2); color: #fff; }
.btn-ghost { border-color: rgba(255,255,255,.5); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.14); color: #fff; }
.page-city .btn-ghost, .page-timeline .btn-ghost { border-color: var(--jade); color: var(--jade-2); }
.page-city .btn-ghost:hover { background: var(--jade-soft); }

/* ---------- 首页 Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background: radial-gradient(140% 120% at 15% 0%, var(--navy-2), var(--navy-deep) 70%);
  padding: 84px 0 96px;
}
.hero .wrap { position: relative; z-index: 2; }
.hero-kicker { text-transform: uppercase; letter-spacing: 3px; font-size: 12.5px; color: var(--jade-soft); font-weight: 700; margin: 0 0 14px; }
.hero h1 { color: #fff; font-size: clamp(30px, 5vw, 50px); margin: 0 0 18px; letter-spacing: -1px; }
.hero-sub { font-size: clamp(15px, 2vw, 18px); color: #cfe3ea; max-width: 620px; margin: 0 0 28px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-wave {
  position: absolute; left: 0; right: 0; bottom: -1px; height: 120px; z-index: 1;
  background:
    radial-gradient(60% 90% at 20% 100%, rgba(18,165,148,.28), transparent 70%),
    radial-gradient(60% 90% at 75% 100%, rgba(18,165,148,.18), transparent 70%);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120'%3E%3Cpath d='M0 60c150 0 150-40 300-40s150 40 300 40 150-40 300-40 150 40 300 40v60H0z' fill='%23000'/%3E%3C/svg%3E") bottom/1200px 120px repeat-x;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120'%3E%3Cpath d='M0 60c150 0 150-40 300-40s150 40 300 40 150-40 300-40 150 40 300 40v60H0z' fill='%23000'/%3E%3C/svg%3E") bottom/1200px 120px repeat-x;
}

/* ---------- 城市卡片 ---------- */
.city-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; }
.city-card {
  position: relative; display: flex; flex-direction: column; gap: 4px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; color: var(--ink); box-shadow: var(--shadow);
  transition: transform .15s, box-shadow .15s, border-color .15s;
  overflow: hidden;
}
.city-card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--jade); opacity: .8; }
.city-card.tier-standard::before { background: var(--gold); }
.city-card.tier-brief::before { background: #9db4bd; }
.city-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--jade); text-decoration: none; }
.city-region { font-size: 12px; color: var(--muted); font-weight: 600; }
.city-name { font-size: 21px; font-weight: 800; color: var(--navy); }
.city-tagline { font-size: 13.5px; color: var(--body); min-height: 20px; }
.city-tier { margin-top: 8px; font-size: 12px; color: var(--jade-2); font-weight: 700; }

/* ---------- 分类卡片 ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.cat-card {
  display: flex; flex-direction: column; gap: 6px; padding: 20px 18px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  color: var(--ink); box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s;
}
.cat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); text-decoration: none; }
.cat-card-icon { font-size: 26px; }
.cat-card-icon.big { font-size: 40px; }
.cat-card-name { font-weight: 800; color: var(--navy); font-size: 16px; }
.cat-card-desc { font-size: 12.5px; color: var(--muted); }

/* ---------- 对比表 ---------- */
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow); }
.compare-table { width: 100%; border-collapse: collapse; min-width: 560px; }
.compare-table th, .compare-table td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.compare-table th { background: var(--navy); color: #fff; font-weight: 700; position: sticky; top: 0; }
.compare-table tbody tr:hover { background: var(--jade-soft); }
.compare-table td:first-child { font-weight: 700; }

/* ---------- 城市页 ---------- */
.breadcrumb { padding-top: 18px; font-size: 13px; color: var(--muted); }
.breadcrumb a { color: var(--muted); }
.breadcrumb span { color: var(--body); }
.city-hero, .guide-hero {
  color: #fff; padding: 48px 0 40px; margin-bottom: 8px;
  background: radial-gradient(130% 130% at 10% 0%, var(--navy-2), var(--navy-deep) 75%);
}
.city-hero h1, .guide-hero h1 { color: #fff; font-size: clamp(26px, 4vw, 38px); margin: 8px 0 10px; }
.city-hero-sub { color: #cfe3ea; max-width: 640px; margin: 0 0 18px; }
.city-region-badge {
  display: inline-block; background: rgba(18,165,148,.25); color: #b8f0e6;
  border: 1px solid rgba(18,165,148,.5); padding: 3px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 700;
}
.city-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 13.5px; color: #bcd6df; margin-bottom: 18px; }
.city-meta span { border-left: 2px solid var(--jade); padding-left: 8px; }
.city-body { padding: 20px 20px 60px; }
.guide-body { padding: 30px 20px 60px; }

/* ---------- 分类区块 & 事实卡 ---------- */
.cat-section { margin: 34px 0; scroll-margin-top: 76px; }
.cat-title { display: flex; align-items: center; gap: 10px; font-size: 20px; margin: 0 0 16px; padding-bottom: 10px; border-bottom: 2px solid var(--jade-soft); }
.cat-icon { font-size: 22px; }
.fact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.fact {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 18px; box-shadow: var(--shadow);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.fact-body { flex: 1 1 340px; }
.fact h4 { margin: 0 0 5px; font-size: 15.5px; color: var(--navy); }
.fact p { margin: 0 0 6px; font-size: 14.5px; }
.fact-dept { display: inline-block; font-size: 12.5px; color: var(--jade-2); background: var(--jade-soft); padding: 2px 9px; border-radius: 6px; font-weight: 600; }
.fact-src { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; flex: 0 0 auto; align-self: center; }
.src-tag { font-size: 12px; color: var(--navy); background: #eef4f6; border: 1px solid var(--line); padding: 4px 10px; border-radius: 7px; font-weight: 600; white-space: nowrap; }
.src-tag:hover { background: var(--jade); color: #fff; text-decoration: none; }
.src-date { font-size: 11px; color: var(--muted); }

/* ---------- 分类对比页 ---------- */
.guide-city { margin-bottom: 34px; }
.guide-city h3 { display: flex; align-items: baseline; gap: 8px; font-size: 19px; border-bottom: 2px solid var(--jade-soft); padding-bottom: 8px; margin: 0 0 14px; }

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: 10px; }
.faq-item { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 4px 16px; box-shadow: var(--shadow); }
.faq-item summary { cursor: pointer; font-weight: 700; color: var(--navy); padding: 12px 0; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before { content: "＋ "; color: var(--jade); }
.faq-item[open] summary::before { content: "－ "; }
.faq-item p { margin: 0 0 14px; font-size: 14.5px; }

/* ---------- 时间轴 ---------- */
.tl-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.tl-tab {
  background: var(--card); border: 1.5px solid var(--line); color: var(--body);
  padding: 8px 18px; border-radius: 999px; font-weight: 700; font-size: 14px; cursor: pointer; transition: .15s;
}
.tl-tab:hover { border-color: var(--jade); color: var(--jade-2); }
.tl-tab.active { background: var(--navy); color: #fff; border-color: var(--navy); }
.tl-panel { display: none; animation: fade .3s ease; }
.tl-panel.active { display: block; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.tl-city-name { display: flex; align-items: baseline; gap: 10px; font-size: 24px; margin: 0 0 6px; }
.tl-path { margin: 26px 0; }
.tl-path-title { font-size: 18px; color: var(--jade-2); margin: 0 0 14px; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.tl-note { font-size: 12.5px; color: var(--muted); font-weight: 500; }
.tl-steps { list-style: none; margin: 0; padding: 0 0 0 8px; position: relative; }
.tl-step { position: relative; padding: 0 0 22px 30px; border-left: 2px solid var(--jade-soft); }
.tl-step:last-child { border-left-color: transparent; padding-bottom: 0; }
.tl-dot { position: absolute; left: -8px; top: 2px; width: 14px; height: 14px; border-radius: 50%; background: var(--jade); border: 3px solid #fff; box-shadow: 0 0 0 2px var(--jade); }
.tl-step-body h4 { margin: 0 0 4px; font-size: 15.5px; color: var(--navy); display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.tl-time { font-size: 12.5px; color: #fff; background: var(--gold); padding: 1px 9px; border-radius: 6px; font-weight: 700; }
.tl-step-body p { margin: 0 0 5px; font-size: 14px; }

/* ---------- 博客 ---------- */
.post-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.post-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s; }
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.post-cover img { aspect-ratio: 16/9; object-fit: cover; width: 100%; }
.post-card-body { padding: 18px; }
.post-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.tag { background: var(--jade-soft); color: var(--jade-2); padding: 2px 9px; border-radius: 6px; font-weight: 700; }
.post-card h2 { font-size: 18px; margin: 0 0 8px; }
.post-card p { font-size: 14px; color: var(--body); margin: 0 0 10px; }
.post-author { font-size: 12.5px; color: var(--muted); }
.empty-note { background: var(--card); border: 1px dashed var(--line); border-radius: var(--radius); padding: 40px; text-align: center; color: var(--muted); }
.empty-note code { background: var(--jade-soft); color: var(--jade-2); padding: 2px 8px; border-radius: 6px; }

/* 博文正文 */
.post-full { max-width: 760px; padding-top: 6px; padding-bottom: 60px; }
.post-header { padding: 24px 0 10px; }
.post-header h1 { font-size: clamp(26px, 4vw, 36px); margin: 8px 0; }
.post-hero-img { border-radius: var(--radius); margin: 16px 0; }
.post-content { font-size: 16.5px; line-height: 1.85; }
.post-content h2 { font-size: 23px; margin: 34px 0 12px; }
.post-content h3 { font-size: 19px; margin: 26px 0 10px; }
.post-content p { margin: 0 0 16px; }
.post-content img { border-radius: var(--radius); margin: 16px 0; }
.post-content blockquote { border-left: 4px solid var(--jade); background: var(--jade-soft); margin: 16px 0; padding: 12px 18px; border-radius: 0 8px 8px 0; }
.post-content code { background: #eef4f6; padding: 2px 6px; border-radius: 5px; font-size: .9em; }
.post-content pre { background: var(--navy-deep); color: #e6f0f3; padding: 16px; border-radius: var(--radius); overflow-x: auto; }
.post-content pre code { background: none; padding: 0; }
.post-content a { text-decoration: underline; }

/* ---------- 社媒精选 ---------- */
.social-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; }
.social-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); color: var(--ink); transition: transform .15s, box-shadow .15s; }
.social-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); text-decoration: none; }
.social-cover img { aspect-ratio: 3/4; object-fit: cover; width: 100%; }
.social-body { padding: 14px 16px; }
.social-platform { display: inline-block; font-size: 11px; font-weight: 700; color: #fff; background: #ff2e51; padding: 2px 8px; border-radius: 6px; margin-bottom: 6px; }
.social-body h3 { font-size: 15px; margin: 0 0 6px; }
.social-body p { font-size: 13px; color: var(--muted); margin: 0 0 10px; }
.social-foot { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); }
.social-jump { color: var(--jade-2); font-weight: 700; }

/* ---------- 页脚 ---------- */
.site-footer { background: var(--navy-deep); color: #b7cdd7; margin-top: 40px; }
.footer-grid { display: flex; flex-wrap: wrap; gap: 30px; justify-content: space-between; padding: 46px 20px 24px; }
.footer-brand { max-width: 420px; }
.footer-brand strong { color: #fff; font-size: 18px; display: block; margin-bottom: 8px; }
.footer-brand p { font-size: 13.5px; margin: 0; color: #91adb9; }
.footer-nav { display: flex; flex-direction: column; gap: 8px; }
.footer-nav a { color: #b7cdd7; font-size: 14px; }
.footer-nav a:hover { color: var(--jade); }
.footer-note { border-top: 1px solid rgba(255,255,255,.1); padding: 18px 20px 30px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.footer-note p { font-size: 12px; color: #7b97a3; margin: 0; }

/* ---------- 响应式 ---------- */
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: fixed; inset: 60px 0 auto 0; flex-direction: column; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: 8px 16px 16px;
    transform: translateY(-120%); transition: transform .25s; box-shadow: var(--shadow-lg);
  }
  .site-nav.open { transform: translateY(0); }
  .site-nav a { padding: 12px 8px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
  .section { padding: 44px 0; }
  .hero { padding: 60px 0 72px; }
  .fact { flex-direction: column; gap: 10px; justify-content: flex-start; }
  .fact-body { flex-basis: auto; }
  .fact-src { flex-direction: row; align-items: center; align-self: flex-start; flex-wrap: wrap; }
}
