/* ============================================================
   博雅翻译集团 · 涉外办事指南  统一样式
   ============================================================ */
:root {
  --primary: #1b3a6b;
  --primary-light: #2a5298;
  --accent: #c8a45c;
  --accent-light: #e8d5a8;
  --ink: #1f2733;
  --ink-soft: #4a5563;
  --ink-faint: #7b8794;
  --line: #e2e7ee;
  --bg-soft: #f5f7fa;
  --bg-tint: #eef3fa;
  --white: #ffffff;
  --success: #1f7a5a;
  --warn-bg: #fff8e9;
  --warn-line: #c8a45c;
  --radius: 10px;
  --shadow: 0 6px 24px rgba(27, 58, 107, 0.08);
  --maxw: 1120px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Source Han Sans CN", sans-serif;
  color: var(--ink);
  background: var(--bg-soft);
  font-size: 16px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

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

/* ---------- 顶部工具条 ---------- */
.topbar {
  background: var(--primary);
  color: #cddcf0;
  font-size: 13px;
  padding: 8px 0;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.topbar a { color: #e8f0fb; text-decoration: none; }
.topbar .hotline { font-weight: 600; color: var(--white); }
.topbar .hotline b { color: var(--accent-light); font-size: 15px; letter-spacing: .5px; }

/* ---------- 主导航 ---------- */
.site-header {
  background: var(--white);
  border-bottom: 3px solid var(--accent);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(27, 58, 107, 0.06);
}
.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 74px;
  gap: 20px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--primary); }
.brand-logo { height: 52px; width: auto; display: block; }
.brand-sub { font-size: 12px; color: var(--ink-faint); letter-spacing: 2px; border-left: 2px solid var(--line); padding-left: 10px; line-height: 1.5; }
.header-cta { display: flex; align-items: center; gap: 14px; }
.header-cta .hc-label { font-size: 13px; color: var(--ink-faint); }
.header-cta .hc-num { font-size: 19px; font-weight: 700; color: var(--primary); letter-spacing: .5px; }
.header-cta .btn-call { flex-shrink: 0; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 11px 24px; border-radius: 6px;
  font-size: 15px; font-weight: 600; text-decoration: none;
  transition: all .2s; cursor: pointer; border: none;
}
.btn-call { background: var(--accent); color: #2b2010; }
.btn-call:hover { background: #b8933f; transform: translateY(-1px); }
.btn-primary { background: var(--primary); color: var(--white); }
.btn-primary:hover { background: var(--primary-light); }
.btn-block { width: 100%; }

/* ---------- 面包屑 ---------- */
.breadcrumb { font-size: 13px; color: var(--ink-faint); padding: 18px 0 0; }
.breadcrumb a { color: var(--ink-soft); text-decoration: none; }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb span { margin: 0 8px; color: var(--line); }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, #24497f 100%);
  color: var(--white);
  padding: 56px 0 52px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: ""; position: absolute;
  right: -80px; top: -80px;
  width: 320px; height: 320px;
  border-radius: 50%;
  border: 40px solid rgba(255,255,255,.04);
}
.hero .container { position: relative; z-index: 1; }
.hero-tag {
  display: inline-block; font-size: 13px; letter-spacing: 2px;
  color: var(--accent-light); border: 1px solid rgba(232,213,168,.5);
  padding: 4px 14px; border-radius: 20px; margin-bottom: 18px;
}
.hero h1 { font-size: 38px; font-weight: 700; letter-spacing: 1px; margin-bottom: 14px; line-height: 1.4; }
.hero p { font-size: 17px; color: #d6e2f2; max-width: 720px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 28px; margin-top: 28px; }
.hero-meta .hm-item { display: flex; align-items: center; gap: 10px; font-size: 14px; color: #e8f0fb; }
.hm-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }

/* ---------- 主体布局 ---------- */
.layout { display: grid; grid-template-columns: 1fr 320px; gap: 32px; padding: 44px 0 64px; align-items: start; }
.main-col { min-width: 0; }

/* ---------- 内容区块 ---------- */
.section { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 32px 34px; margin-bottom: 24px; }
.section-title {
  font-size: 22px; color: var(--primary); font-weight: 700;
  padding-bottom: 14px; margin-bottom: 22px;
  border-bottom: 2px solid var(--line);
  display: flex; align-items: center; gap: 12px;
}
.section-title .st-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 6px;
  background: var(--primary); color: var(--white);
  font-size: 15px; flex-shrink: 0;
}
.section-title .st-en { font-size: 12px; color: var(--ink-faint); font-weight: 400; letter-spacing: 1px; margin-left: auto; }

.section p { margin-bottom: 14px; color: var(--ink-soft); }
.section p:last-child { margin-bottom: 0; }
.section strong { color: var(--primary); }

/* ---------- 适用场景标签 ---------- */
.scene-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.scene-item {
  background: var(--bg-tint); border-left: 3px solid var(--primary-light);
  border-radius: 0 6px 6px 0; padding: 12px 16px; font-size: 15px; color: var(--ink-soft);
}
.scene-item b { color: var(--primary); }

/* ---------- 办事流程时间轴 ---------- */
.flow { position: relative; padding-left: 4px; }
.flow-step { position: relative; padding-left: 62px; padding-bottom: 30px; }
.flow-step:last-child { padding-bottom: 4px; }
.flow-step::before {
  content: ""; position: absolute; left: 19px; top: 40px; bottom: 0;
  width: 2px; background: var(--line);
}
.flow-step:last-child::before { display: none; }
.flow-num {
  position: absolute; left: 0; top: 0;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--primary); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 17px; font-weight: 700;
  border: 4px solid var(--bg-tint);
}
.flow-step:nth-child(1) .flow-num { background: var(--accent); color: #2b2010; border-color: #fbf3e2; }
.flow-body h3 { font-size: 17px; color: var(--ink); margin-bottom: 6px; font-weight: 700; }
.flow-body p { color: var(--ink-soft); font-size: 15px; margin: 0; }
.flow-body .flow-tip {
  display: inline-block; margin-top: 8px; font-size: 13px;
  background: var(--warn-bg); border: 1px dashed var(--warn-line);
  color: #8a6a24; padding: 4px 12px; border-radius: 4px;
}

/* ---------- 材料清单 ---------- */
.check-list { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 24px; }
.check-list li { position: relative; padding-left: 30px; font-size: 15px; color: var(--ink-soft); }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 7px;
  width: 16px; height: 16px; border-radius: 4px;
  background: var(--primary); color: var(--white);
}
.check-list li::after {
  content: ""; position: absolute; left: 5px; top: 11px;
  width: 6px; height: 3px; border-left: 2px solid var(--white); border-bottom: 2px solid var(--white);
  transform: rotate(-45deg);
}
.group-label { font-size: 14px; font-weight: 700; color: var(--primary); margin: 18px 0 10px; }
.group-label:first-child { margin-top: 0; }

/* ---------- 要求/提示框 ---------- */
.info-box {
  background: var(--bg-tint); border: 1px solid #dbe6f5;
  border-radius: 8px; padding: 20px 24px; margin-bottom: 16px;
}
.info-box h4 { color: var(--primary); font-size: 16px; margin-bottom: 10px; }
.info-box ul { list-style: none; }
.info-box li { position: relative; padding-left: 22px; font-size: 15px; color: var(--ink-soft); margin-bottom: 7px; }
.info-box li::before { content: "•"; position: absolute; left: 4px; color: var(--accent); font-size: 20px; line-height: 1; }
.warn-box {
  background: var(--warn-bg); border-left: 4px solid var(--warn-line);
  border-radius: 0 8px 8px 0; padding: 18px 22px; margin-top: 18px;
}
.warn-box h4 { color: #8a6a24; font-size: 15px; margin-bottom: 8px; }
.warn-box p, .warn-box li { color: #6d5620; font-size: 14px; }
.warn-box ul { padding-left: 20px; margin-top: 6px; }

/* ---------- 侧栏推荐卡 ---------- */
.sidebar { position: sticky; top: 96px; }
.recommend-card {
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden; margin-bottom: 24px;
  border-top: 4px solid var(--accent);
}
.rc-head {
  background: var(--primary); color: var(--white);
  padding: 14px 20px; font-size: 15px; font-weight: 600; letter-spacing: 1px;
  display: flex; align-items: center; gap: 8px;
}
.rc-head .rc-badge { background: var(--accent); color: #2b2010; font-size: 11px; padding: 2px 8px; border-radius: 10px; letter-spacing: 0; }
.rc-body { padding: 22px 20px; }
.rc-logo-box { margin-bottom: 16px; }
.rc-logo-img { height: 56px; width: auto; display: block; }
.rc-desc { font-size: 14px; color: var(--ink-soft); line-height: 1.7; margin-bottom: 18px; }
.rc-phones { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.rc-phone {
  display: flex; align-items: center; gap: 10px;
  background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: 6px; padding: 9px 12px;
  color: var(--primary); font-size: 16px; font-weight: 700; text-decoration: none;
  transition: all .2s;
}
.rc-phone:hover { background: var(--bg-tint); border-color: var(--accent); }
.rc-phone .ph-ico {
  width: 22px; height: 22px; border-radius: 50%; background: var(--accent);
  display: flex; align-items: center; justify-content: center; color: #2b2010; font-size: 12px; flex-shrink: 0;
}
.wechat-note {
  text-align: center; font-size: 13px; color: #8a6a24;
  background: var(--warn-bg); border-radius: 5px; padding: 8px; margin-bottom: 14px;
}
.wechat-note b { color: #6d5620; }

.side-nav-card {
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 20px;
}
.side-nav-card h4 { font-size: 15px; color: var(--primary); margin-bottom: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.side-nav-card a {
  display: block; font-size: 14px; color: var(--ink-soft);
  text-decoration: none; padding: 7px 0; border-bottom: 1px dashed var(--line);
}
.side-nav-card a:last-child { border-bottom: none; }
.side-nav-card a:hover { color: var(--primary); padding-left: 6px; }
.side-nav-card a.current { color: var(--primary); font-weight: 700; }
.side-nav-card a.current::before { content: "▸ "; color: var(--accent); }

/* ---------- FAQ ---------- */
.faq-item { border-bottom: 1px solid var(--line); padding: 14px 0; }
.faq-item:last-child { border-bottom: none; }
.faq-q { font-weight: 700; color: var(--ink); font-size: 15px; margin-bottom: 6px; }
.faq-q::before { content: "Q "; color: var(--accent); font-weight: 700; }
.faq-a { color: var(--ink-soft); font-size: 14px; padding-left: 22px; }
.faq-a::before { content: "A "; color: var(--primary); font-weight: 700; }

/* ---------- 文末CTA ---------- */
.bottom-cta {
  background: linear-gradient(135deg, var(--primary) 0%, #24497f 100%);
  border-radius: var(--radius); padding: 32px; color: var(--white);
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  box-shadow: var(--shadow);
}
.bottom-cta h3 { font-size: 22px; margin-bottom: 6px; }
.bottom-cta p { color: #cddcf0; font-size: 14px; }
.bottom-cta .cta-num { font-size: 24px; font-weight: 700; color: var(--accent-light); letter-spacing: 1px; }

/* ---------- 首页 ---------- */
.home-hero {
  background: linear-gradient(135deg, var(--primary) 0%, #24497f 100%);
  color: var(--white); padding: 72px 0 64px; position: relative; overflow: hidden;
}
.home-hero::after {
  content: ""; position: absolute; right: -100px; bottom: -140px;
  width: 420px; height: 420px; border-radius: 50%; border: 60px solid rgba(255,255,255,.03);
}
.home-hero .container { position: relative; z-index: 1; }
.home-hero h1 { font-size: 42px; margin-bottom: 16px; letter-spacing: 1px; }
.home-hero .lead { font-size: 18px; color: #d6e2f2; max-width: 700px; margin-bottom: 26px; }
.home-hero .hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.stat-row { display: flex; gap: 40px; margin-top: 34px; flex-wrap: wrap; }
.stat-item .num { font-size: 30px; font-weight: 700; color: var(--accent-light); }
.stat-item .lbl { font-size: 13px; color: #b9cce4; }

.section-heading { text-align: center; margin: 52px 0 30px; }
.section-heading h2 { font-size: 30px; color: var(--primary); margin-bottom: 8px; }
.section-heading p { color: var(--ink-faint); font-size: 15px; }

.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; padding-bottom: 20px; }
.biz-card {
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 24px 22px; text-decoration: none; color: inherit;
  border-top: 3px solid var(--accent);
  transition: transform .2s, box-shadow .2s;
  display: flex; flex-direction: column;
}
.biz-card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(27,58,107,.14); }
.biz-card .bc-cat { font-size: 12px; color: var(--ink-faint); letter-spacing: 1px; margin-bottom: 8px; }
.biz-card h3 { font-size: 18px; color: var(--primary); margin-bottom: 10px; line-height: 1.5; }
.biz-card p { font-size: 14px; color: var(--ink-soft); line-height: 1.7; flex: 1; }
.biz-card .bc-more { margin-top: 14px; color: var(--accent); font-size: 14px; font-weight: 600; }

.cat-title { font-size: 20px; color: var(--primary); margin: 36px 0 4px; padding-left: 12px; border-left: 4px solid var(--accent); }

.notice-band { background: var(--bg-tint); border: 1px solid #dbe6f5; border-radius: var(--radius); padding: 26px 30px; margin: 30px 0; }
.notice-band .notice-logo { height: 58px; width: auto; display: block; margin-bottom: 14px; }
.notice-band h3 { color: var(--primary); font-size: 18px; margin-bottom: 10px; }
.notice-band p { color: var(--ink-soft); font-size: 15px; }

/* ---------- 页脚 ---------- */
.site-footer { background: #16294a; color: #9fb2cc; padding: 44px 0 28px; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 28px; border-bottom: 1px solid rgba(255,255,255,.1); }
.site-footer h4 { color: var(--white); font-size: 16px; margin-bottom: 14px; }
.f-logo-box { display: inline-block; background: var(--white); border-radius: 8px; padding: 8px 12px; margin-bottom: 10px; }
.f-logo-img { height: 46px; width: auto; display: block; }
.site-footer p { line-height: 1.9; }
.site-footer .f-phone { color: var(--accent-light); font-weight: 700; font-size: 16px; }
.footer-bottom { text-align: center; padding-top: 20px; font-size: 13px; color: #7f93b0; }

/* ---------- 返回顶部 ---------- */
.back-top {
  position: fixed; right: 24px; bottom: 28px;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--primary); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  text-decoration: none; font-size: 20px; box-shadow: var(--shadow);
  opacity: 0; pointer-events: none; transition: opacity .3s; z-index: 99;
}
.back-top.show { opacity: 1; pointer-events: auto; }

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .header-cta .hc-label, .header-cta .hc-num { display: none; }
  .brand-sub { display: none; }
  .brand-logo { height: 44px; }
  .hero h1 { font-size: 30px; }
  .bottom-cta { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 600px) {
  .container { padding: 0 16px; }
  .card-grid, .scene-grid, .check-list { grid-template-columns: 1fr; }
  .hero h1, .home-hero h1 { font-size: 26px; }
  .section { padding: 22px 18px; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .topbar .container { flex-direction: column; gap: 2px; }
  .breadcrumb { font-size: 12px; }
  .flow-step { padding-left: 54px; }
}

/* ---------- 打印优化 ---------- */
@media print {
  .topbar, .site-header, .sidebar, .bottom-cta, .back-top, .site-footer { display: none !important; }
  .layout { display: block; }
  .section { box-shadow: none; border: 1px solid var(--line); page-break-inside: avoid; }
  body { background: #fff; }
}
