/* =========================================================
   林致远 · 专职律师 — 首页样式（简约 / 现代 / 专业）
   ========================================================= */
:root {
  --ink: #0c1829;
  --navy: #142948;
  --navy-2: #1e3a5f;
  --gold: #b3873a;
  --gold-2: #cba35c;
  --gold-soft: #f6efdf;
  --soft: #f5f7fb;
  --text: #45536b;
  --muted: #77839a;
  --line: #e3e9f2;
  --white: #ffffff;
  --max: 1180px;
  --radius: 16px;
  --shadow: 0 12px 34px rgba(12, 24, 41, .09);
  --font-num: Georgia, "Times New Roman", "Songti SC", serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--navy); color: #fff; padding: 10px 18px; z-index: 200; border-radius: 0 0 10px 0;
}
.skip-link:focus { left: 0; }

/* ---------- 通用区块 ---------- */
.section { padding: 96px 0; }
.section.alt { background: var(--soft); }

.sec-head { max-width: 660px; margin: 0 auto 52px; text-align: center; }
.sec-head h2 {
  font-size: 34px; line-height: 1.3; margin: 12px 0 14px;
  color: var(--ink); letter-spacing: .5px;
}
.sec-sub { color: var(--muted); font-size: 15.5px; margin: 0; }

.eyebrow {
  font-size: 13px; font-weight: 700; letter-spacing: 4px;
  color: var(--gold); text-transform: uppercase; margin: 0;
}
.eyebrow.on-dark { color: var(--gold-2); }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 28px; border-radius: 10px;
  font-size: 15px; font-weight: 600; text-decoration: none;
  transition: all .25s ease; border: 1.5px solid transparent; cursor: pointer;
}
.btn-primary {
  background: var(--navy); color: #fff;
  box-shadow: 0 8px 20px rgba(20, 41, 72, .22);
}
.btn-primary:hover { background: var(--gold); transform: translateY(-2px); box-shadow: 0 12px 26px rgba(179, 135, 58, .35); }
.btn-ghost {
  background: transparent; color: var(--ink); border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--gold); color: var(--navy); background: var(--gold-soft); }

/* ---------- 导航 ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: box-shadow .3s, background .3s;
}
.nav.scrolled { box-shadow: 0 6px 24px rgba(12, 24, 41, .09); background: rgba(255, 255, 255, .97); }

.nav-inner { height: 72px; display: flex; align-items: center; justify-content: space-between; }

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark {
  width: 32px; height: 32px; border-radius: 7px;
  object-fit: cover; display: block;
}
.brand-text { line-height: 1.25; }
.brand-text b { display: block; font-size: 17px; color: var(--ink); letter-spacing: 2px; }
.brand-text em { display: block; font-style: normal; font-size: 11px; color: var(--gold); letter-spacing: 3px; }

.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a {
  text-decoration: none; font-size: 15px; font-weight: 500; color: var(--text);
  transition: color .2s;
}
.nav-links a:hover { color: var(--navy); }
.nav-links a.nav-cta {
  background: var(--navy); color: #fff; padding: 9px 20px; border-radius: 999px;
  font-weight: 600; box-shadow: 0 4px 14px rgba(20, 41, 72, .25);
}
.nav-links a.nav-cta:hover { background: var(--gold); }

.nav-burger {
  display: none; background: none; border: 0; width: 42px; height: 42px;
  cursor: pointer; padding: 10px;
}
.nav-burger span {
  display: block; height: 2px; background: var(--ink); border-radius: 2px;
  transition: .3s; margin: 5px 0;
}
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  padding: 170px 0 110px;
  background:
    radial-gradient(900px 420px at 85% 8%, rgba(179, 135, 58, .10), transparent 60%),
    linear-gradient(180deg, #f7f9fd 0%, #ffffff 78%);
}
.hero-grid {
  display: grid; grid-template-columns: 1.05fr .95fr;
  gap: 64px; align-items: center;
}

.hero-copy h1 {
  font-size: 32px; line-height: 1.28; color: var(--ink);
  margin: 20px 0 18px; letter-spacing: 1px; font-weight: 700;
}
.hero-sub { font-size: 16.5px; color: var(--muted); max-width: 520px; margin: 0 0 34px; }
.hero-actions {
  display: flex; gap: 16px; flex-wrap: wrap;
  border-bottom: 1px solid var(--line); padding-bottom: 20px; margin-bottom: 34px;
}
.hero-meta {
  margin: 34px 0 0; font-size: 12.5px; color: var(--muted);
  letter-spacing: .4px; padding-top: 0; max-width: 520px;
}
.hero-meta--sub {
  border-top: 0;
  padding-top: 8px;
  margin-top: 4px;
}


.hero-visual { position: relative; }
.portrait { position: relative; margin: 0; }
.portrait::before {
  content: ""; position: absolute; inset: 20px -20px -20px 20px;
  border: 2px solid var(--gold-2); border-radius: var(--radius);
}
.portrait img {
  position: relative; z-index: 1;
  border-radius: var(--radius); object-fit: cover;
  aspect-ratio: 3 / 4; box-shadow: var(--shadow);
}
.hero-badge {
  position: absolute; z-index: 2; left: -26px; bottom: 34px;
  background: #fff; border-radius: 12px; box-shadow: var(--shadow);
  padding: 14px 20px; display: flex; align-items: center; gap: 12px;
}
.hero-badge strong {
  font-family: var(--font-num); font-size: 26px; color: var(--gold); letter-spacing: .5px;
}
.hero-badge span { font-size: 12.5px; color: var(--muted); line-height: 1.5; max-width: 150px; }

/* ---------- 数据带 ---------- */
.stats {
  background: linear-gradient(135deg, var(--navy) 0%, var(--ink) 100%);
  padding: 58px 0;
}
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { text-align: center; padding: 6px 12px; }
.stat + .stat { border-left: 1px solid rgba(255, 255, 255, .12); }
.stat strong {
  display: block; font-family: var(--font-num); font-size: 44px;
  color: var(--gold-2); line-height: 1.15; letter-spacing: 1px;
}
.stat span { font-size: 13.5px; color: rgba(255, 255, 255, .72); letter-spacing: 2px; }

/* ---------- 卡片网格 ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 28px; transition: transform .3s, box-shadow .3s, border-color .3s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--gold-2); }
.card-icon {
  width: 54px; height: 54px; border-radius: 13px;
  background: var(--soft); color: var(--navy);
  display: grid; place-items: center; margin-bottom: 20px;
  transition: background .3s, color .3s;
}
.card-icon svg { width: 27px; height: 27px; }
.card:hover .card-icon { background: var(--gold-soft); color: var(--gold); }
.card h3 { margin: 0 0 8px; font-size: 18px; color: var(--ink); letter-spacing: 1px; }
.card p { margin: 0; font-size: 14.5px; color: var(--muted); }

/* ---------- 关于我 ---------- */
.about-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: start; }
.about-copy .eyebrow { display: block; margin-bottom: 8px; }
.about-copy h2 { font-size: 30px; color: var(--ink); margin: 8px 0 18px; line-height: 1.4; white-space: nowrap; }
.about-copy p { font-size: 16px; margin: 0 0 18px; }
.about-sign { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); }
.about-sign b {
  font-size: 22px; color: var(--ink); letter-spacing: 6px;
  font-family: var(--font-num); font-weight: 700;
}
.about-sign p {
  margin: 8px 0 0; font-size: 12px; color: var(--gold);
  letter-spacing: 1.5px; white-space: nowrap;
}

/* ---------- 关于我右侧图片区 ---------- */
.about-image {
  align-self: start;
}
.about-img-wrap {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(12, 24, 41, .14);
}
.about-img-wrap img {
  display: block;
  width: 100%;
  height: 340px;
  object-fit: cover;
}
.about-img-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 40px 24px 22px;
  background: linear-gradient(to top, rgba(12,24,41,.88) 0%, transparent 100%);
  display: flex;
  gap: 24px;
}
.about-img-stat {
  display: flex;
  flex-direction: column;
}
.about-img-stat .big {
  font-family: var(--font-num);
  font-size: 32px;
  font-weight: 700;
  color: var(--gold-2);
  line-height: 1;
}
.about-img-stat span:last-child {
  font-size: 12px;
  color: rgba(255,255,255,.72);
  margin-top: 5px;
  letter-spacing: 1px;
}

.principles { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.principle {
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 22px 20px; position: relative;
}
.principle::before {
  content: ""; position: absolute; top: 22px; left: 20px;
  width: 8px; height: 8px; border-radius: 2px; background: var(--gold);
}
.principle h3 { margin: 0 0 6px; font-size: 16.5px; color: var(--ink); padding-left: 16px; letter-spacing: 2px; }
.principle p { margin: 0; font-size: 13.5px; color: var(--muted); padding-left: 16px; }

/* ---------- 履历时间线 ---------- */
.timeline-grid { display: grid; grid-template-columns: .42fr .58fr; gap: 64px; align-items: start; }
.timeline-grid .sec-head { margin: 0; text-align: left; position: sticky; top: 110px; }
.timeline { list-style: none; margin: 0; padding: 6px 0 0 30px; border-left: 2px solid var(--line); }
.timeline li { position: relative; padding: 0 0 34px; }
.timeline li:last-child { padding-bottom: 4px; }
.timeline li::before {
  content: ""; position: absolute; left: -38px; top: 7px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--gold); box-shadow: 0 0 0 4px var(--gold-soft);
}
.tl-period { display: block; font-size: 13px; color: var(--gold); font-weight: 700; letter-spacing: 2px; }
.tl-org { display: block; font-size: 18px; font-weight: 700; color: var(--ink); margin: 3px 0 5px; }
.tl-detail { margin: 0; font-size: 14.5px; color: var(--muted); max-width: 480px; }

/* ---------- 资质 ---------- */
.cred-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; max-width: 860px; margin: 0 auto; }
.cred {
  display: flex; gap: 16px; align-items: flex-start;
  background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 24px;
}
.cred-icon {
  flex: 0 0 40px; width: 40px; height: 40px; border-radius: 50%;
  background: var(--navy); color: var(--gold-2);
  display: grid; place-items: center;
}
.cred-icon svg { width: 20px; height: 20px; }
.cred b { display: block; font-size: 16px; color: var(--ink); margin-bottom: 3px; }
.cred p { margin: 0; font-size: 13.5px; color: var(--muted); }

/* ---------- 联系 ---------- */
.contact { background: var(--soft); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.contact-info .eyebrow { display: block; margin-bottom: 8px; }
.contact-info h2 { font-size: 32px; color: var(--ink); margin: 8px 0 10px; }
.contact-info > p { color: var(--muted); font-size: 15px; margin: 0 0 30px; max-width: 400px; white-space: nowrap; }

.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list li { display: flex; gap: 16px; align-items: center; padding: 15px 0; border-bottom: 1px solid var(--line); }
.contact-list li:last-child { border-bottom: 0; }
.ci-icon {
  flex: 0 0 44px; width: 44px; height: 44px; border-radius: 12px;
  background: #fff; border: 1px solid var(--line); color: var(--navy);
  display: grid; place-items: center;
}
.ci-icon svg { width: 21px; height: 21px; }
.ci-label { display: block; font-size: 12px; color: var(--muted); letter-spacing: 1px; }
.ci-value { font-size: 16px; font-weight: 600; color: var(--ink); word-break: break-all; white-space: pre-line; }

.contact-form {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 36px; box-shadow: var(--shadow);
}
.contact-form h3 { margin: 0 0 6px; font-size: 20px; color: var(--ink); }
.contact-form .form-note { font-size: 13px; color: var(--muted); margin: 0 0 22px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; letter-spacing: 1px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; font: inherit; font-size: 14.5px;
  color: var(--ink); background: var(--soft); border: 1px solid var(--line);
  border-radius: 10px; outline: none; transition: border-color .2s, background .2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--gold-2); background: #fff;
}
.field textarea { resize: vertical; min-height: 96px; }
.contact-form .btn { width: 100%; justify-content: center; border: 0; font-family: inherit; }
/* ---------- 微信二维码区 ---------- */
.contact-qr { align-self: start; }
.qr-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 36px; box-shadow: var(--shadow); text-align: center;
}
.qr-image-wrap {
  width: 200px; height: 200px; margin: 0 auto 20px;
  border: 1px dashed var(--line); border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; background: #fafbfd;
}
.qr-placeholder {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: var(--muted);
}
.qr-placeholder svg { width: 48px; height: 48px; opacity: 0.4; }
.qr-hint { font-size: 12px; color: var(--muted); letter-spacing: 1px; }
.qr-card img { width: 200px; height: 200px; object-fit: cover; border-radius: 8px; }
.qr-wechat-id { font-size: 16px; color: var(--ink); margin: 0 0 6px; }
.qr-note { font-size: 13.5px; color: var(--muted); margin: 0 0 14px; }
.qr-tip { font-size: 12px; color: var(--gold); background: var(--gold-soft); padding: 10px 16px; border-radius: 8px; display: inline-block; margin-top: 6px; }

.form-tip { font-size: 12px; color: var(--muted); text-align: center; margin: 14px 0 0; }

/* ---------- 博客二维码卡片 ---------- */
.blog-qr-card {
  margin-top: 60px;
  padding: 40px;
  background: linear-gradient(135deg, #fafbfc 0%, #f0f2f5 100%);
  border-radius: var(--radius);
  border: 1px solid var(--line);
}
.blog-qr-card .qr-inner {
  display: flex;
  align-items: center;
  gap: 40px;
  max-width: 680px;
  margin: 0 auto;
}
.blog-qr-card .qr-img {
  flex: 0 0 180px;
  height: 180px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(12, 24, 41, .08);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.blog-qr-card .qr-img img {
  width: 160px;
  height: 160px;
  object-fit: contain;
  border-radius: 8px;
}
.blog-qr-card .qr-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--muted);
}
.blog-qr-card .qr-placeholder svg {
  width: 48px;
  height: 48px;
  opacity: .4;
}
.blog-qr-card .qr-hint {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 1px;
}
.blog-qr-card .qr-info h4 {
  margin: 0 0 8px;
  font-size: 18px;
  color: var(--ink);
  font-weight: 600;
}
.blog-qr-card .wechat-id {
  margin: 0 0 8px;
  font-size: 15px;
  color: var(--gold);
  font-weight: 600;
}
.blog-qr-card .qr-desc {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
}

/* ---------- 页脚 ---------- */
.footer { background: var(--ink); color: rgba(255, 255, 255, .72); padding: 60px 0 26px; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1.2fr; gap: 40px; }
.footer .brand-text b { color: #fff; }
.footer p { font-size: 13.5px; line-height: 1.9; }
.footer-brand { padding: 0 0 32px; }
.footer-intro {
  margin: 14px 0 20px; font-size: 14px; color: rgba(255,255,255,.62);
  line-height: 1.95; max-width: 680px;
}
.footer-divider {
  height: 1px; background: linear-gradient(90deg, var(--gold-2), transparent 70%);
  opacity: .35; margin-top: 8px;
}
.footer h4 {
  color: #fff; font-size: 15px; letter-spacing: 2px; margin: 0 0 16px;
  padding-bottom: 10px; border-bottom: 1px solid rgba(255, 255, 255, .12);
}
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: 9px; }
.footer-links a { text-decoration: none; font-size: 14px; transition: color .2s; }
.footer-links a:hover { color: var(--gold-2); }
.footer .ci-mini { display: flex; gap: 10px; align-items: center; margin-bottom: 9px; font-size: 13.5px; }
.footer .ci-mini svg { width: 16px; height: 16px; flex: 0 0 16px; color: var(--gold-2); }
.footer-bottom {
  margin-top: 44px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .12);
  font-size: 12px; color: rgba(255, 255, 255, .45); line-height: 1.9;
}
.footer-bottom .disclaimer { max-width: 760px; }

/* ---------- 浮层提示 ---------- */
.toast {
  position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 20px);
  background: var(--ink); color: #fff; font-size: 14px;
  padding: 14px 22px; border-radius: 12px; box-shadow: 0 14px 40px rgba(12, 24, 41, .4);
  opacity: 0; pointer-events: none; transition: .35s; z-index: 300; max-width: 90vw;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- 滚动渐显 ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- 内页（single） ---------- */
.article { padding: 150px 0 90px; max-width: 780px; margin: 0 auto; }
.article h1 { font-size: 34px; color: var(--ink); line-height: 1.4; }
.article .meta { color: var(--muted); font-size: 13.5px; margin: 0 0 30px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.article .content p { font-size: 16px; }
.back-link { display: inline-block; margin-bottom: 24px; color: var(--gold); text-decoration: none; font-size: 14px; }
.back-link:hover { text-decoration: underline; }

/* ---------- 博客浮动侧边栏 ---------- */
/* 博客文章布局 */
.blog-article-wrapper {
  max-width: 1100px;
  margin: 80px auto 40px;
  padding: 0 20px;
}
.blog-main { min-width: 0; }

/* 浮动侧边栏 - 固定定位 */
.blog-sidebar {
  width: 260px;
  position: fixed;
  right: 30px;
  top: 100px;
  opacity: 0;
  transition: opacity .4s ease;
  pointer-events: none;
  z-index: 200;
}
.blog-sidebar.visible { opacity: 1; pointer-events: auto; }
.sidebar-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: 0 8px 32px rgba(12, 24, 41, .12);
}
.sidebar-brand { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.sidebar-brand .brand-mark {
  width: 28px; height: 28px;
  object-fit: cover; display: block;
}
.sidebar-brand .brand-name { font-size: 17px; font-weight: 700; color: var(--ink); }
.sidebar-bio { font-size: 13.5px; color: var(--muted); line-height: 1.7; margin: 0 0 16px; }
.sidebar-divider { height: 1px; background: var(--line); margin: 16px 0; }
.sidebar-qr { text-align: center; margin-bottom: 16px; }
.sidebar-qr .qr-box {
  width: 140px; height: 140px;
  margin: 0 auto 12px;
  background: #fafbfc;
  border: 1px dashed var(--line);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.sidebar-qr .qr-box img { width: 130px; height: 130px; object-fit: contain; border-radius: 6px; }
.sidebar-qr .qr-placeholder-mini svg { width: 48px; height: 48px; opacity: .35; color: var(--muted); }
.sidebar-qr .wechat-id { font-size: 14px; color: var(--gold); font-weight: 600; margin: 0 0 4px; }
.sidebar-qr .wechat-hint { font-size: 12px; color: var(--muted); margin: 0 0 12px; }
.sidebar-contact { font-size: 13px; color: var(--muted); display: flex; gap: 8px; align-items: flex-start; }
.sidebar-contact svg { flex: 0 0 16px; width: 16px; height: 16px; color: var(--gold-2); margin-top: 2px; }

/* ---------- 响应式 ---------- */
@media (max-width: 980px) {
  .hero { padding: 140px 0 80px; }
  .hero-grid { grid-template-columns: 1fr; gap: 70px; }
  .hero-copy h1 { font-size: 28px; }
  .hero-visual { max-width: 420px; margin: 0 auto; }
  .hero-badge { left: -14px; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .about-grid, .contact-grid, .timeline-grid { grid-template-columns: 1fr; gap: 44px; }
  .timeline-grid .sec-head { position: static; text-align: left; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 30px 0; }
  .stat:nth-child(3) { border-left: 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 860px) {
  .nav-burger { display: block; }
  .nav-links {
    position: fixed; top: 72px; left: 0; right: 0;
    background: #fff; flex-direction: column; align-items: flex-start;
    padding: 22px 28px 26px; gap: 16px;
    box-shadow: 0 18px 30px rgba(12, 24, 41, .12);
    opacity: 0; transform: translateY(-12px); pointer-events: none; transition: .3s;
  }
  .nav-links.open { opacity: 1; transform: none; pointer-events: auto; }
  .nav-links a { font-size: 16px; }
}

@media (max-width: 640px) {
  .section { padding: 64px 0; }
  .hero { padding: 120px 0 64px; }
  .hero-copy h1 { font-size: 24px; }
  .sec-head h2 { font-size: 27px; }
  .grid-3 { grid-template-columns: 1fr; }
  .cred-grid { grid-template-columns: 1fr; }
  .principles { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .contact-form { padding: 26px 22px; }
  .hero-badge { bottom: 16px; left: 8px; }
  .stat strong { font-size: 34px; }
}

/* 博客浮动侧边栏响应式 */
@media (max-width: 980px) {
  .blog-sidebar { display: none; }
}

@media (max-width: 640px) {
  .sidebar-card { padding: 20px; }
  .sidebar-qr .qr-box { width: 120px; height: 120px; }
  .sidebar-qr .qr-box img { width: 110px; height: 110px; }
}

/* ---------- 图片轮播 (gallery) ---------- */
.carousel { position: relative; overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow); background: var(--ink); }
.carousel-track { display: flex; transition: transform .65s cubic-bezier(.22,.61,.36,1); }
.carousel-slide { position: relative; min-width: 100%; }
.carousel-slide img { width: 100%; height: 520px; object-fit: cover; display: block; }
.carousel-caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 30px 34px;
  background: linear-gradient(180deg, transparent, rgba(12,24,41,.3) 35%, rgba(12,24,41,.9));
  color: #fff;
}
.cc-tag { display: inline-block; background: rgba(179,135,58,.92); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: 2px; padding: 5px 14px; border-radius: 999px; margin-bottom: 12px; }
.carousel-caption h3 { margin: 0 0 8px; font-size: 22px; color: #fff; letter-spacing: 1px; }
.carousel-caption p { margin: 0; font-size: 14px; color: rgba(255,255,255,.82); max-width: 640px; line-height: 1.7; }
.carousel-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 46px; height: 46px; border-radius: 50%; border: 0;
  background: rgba(255,255,255,.92); color: var(--ink);
  display: grid; place-items: center; cursor: pointer;
  box-shadow: 0 6px 18px rgba(12,24,41,.28);
  transition: background .25s, color .25s;
}
.carousel-arrow:hover { background: var(--gold-2); color: #fff; }
.carousel-arrow svg { width: 20px; height: 20px; }
.carousel-arrow.prev { left: 18px; }
.carousel-arrow.next { right: 18px; }
.carousel-dots { display: flex; gap: 10px; justify-content: center; margin-top: 22px; }
.carousel-dot { width: 10px; height: 10px; border-radius: 50%; border: 0; background: #c6cfdd; cursor: pointer; padding: 0; transition: all .3s; }
.carousel-dot.active { background: var(--gold); width: 28px; border-radius: 6px; }

/* ---------- 博客洞察 (insights) ---------- */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.post-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 28px; display: flex; flex-direction: column;
  transition: transform .3s, box-shadow .3s;
}
.post-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.post-meta { font-size: 12.5px; color: var(--muted); letter-spacing: 1px; margin-bottom: 12px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.post-meta .dot-sep { color: var(--gold); }
.post-card h3 { font-size: 17.5px; color: var(--ink); line-height: 1.55; margin: 0 0 10px; }
.post-card h3 a { text-decoration: none; transition: color .2s; }
.post-card h3 a:hover { color: var(--gold); }
.post-card p { font-size: 14px; color: var(--muted); margin: 0; flex: 1; }
.post-more { margin-top: 16px; font-size: 14px; font-weight: 600; color: var(--navy); text-decoration: none; }
.post-more::after { content: " →"; }
.post-more:hover { color: var(--gold); }
.center-cta { text-align: center; margin-top: 36px; }

/* ---------- 博客列表页 ---------- */
.blog-page { padding: 150px 0 90px; }
.blog-head { max-width: 780px; margin: 0 auto 20px; text-align: center; }
.blog-head h1 { font-size: 36px; color: var(--ink); margin: 10px 0 12px; }
.blog-head > p { color: var(--muted); font-size: 15px; }
.blog-head .back-link { margin-top: 18px; }
.blog-list { max-width: 780px; margin: 30px auto 0; }
.post-row { border-bottom: 1px solid var(--line); padding: 32px 0; }
.post-row:first-child { padding-top: 0; }
.post-row h2 { font-size: 24px; color: var(--ink); line-height: 1.45; margin: 10px 0 8px; }
.post-row h2 a { text-decoration: none; transition: color .2s; }
.post-row h2 a:hover { color: var(--gold); }
.post-row > p { color: var(--muted); font-size: 14.5px; margin: 0 0 12px; }

/* ---------- 轮播 / 博客 响应式 ---------- */
@media (max-width: 980px) {
  .carousel-slide img { height: 420px; }
  .post-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .carousel-slide img { height: 320px; }
  .carousel-caption { padding: 20px 22px; }
  .carousel-caption h3 { font-size: 18px; }
  .carousel-arrow { width: 38px; height: 38px; }
  .post-grid { grid-template-columns: 1fr; }
  .blog-page { padding: 130px 0 60px; }
}
