/* ============================================================
   北京聚金汇会计事务所有限公司 官网样式
   设计系统：深藏青 #0F2A43 × 金 #C9A45C
   ============================================================ */

:root {
  --navy: #0F2A43;
  --navy-light: #1B3A5C;
  --gold: #C9A45C;
  --gold-dark: #B08F45;
  --gold-bg: #F8F4EA;
  --gray-bg: #F5F7FA;
  --text: #333333;
  --muted: #6B7280;
  --border: #E5E7EB;
  --on-dark: #D8DEE6;
  --white: #FFFFFF;
  --radius: 10px;
  --shadow: 0 2px 12px rgba(15, 42, 67, .08);
  --shadow-lg: 0 8px 28px rgba(15, 42, 67, .14);
  --font: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Helvetica Neue", Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--text);
  font-size: 16px;
  line-height: 1.75;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--navy); text-decoration: none; transition: color .2s; }
a:hover { color: var(--gold-dark); }
ul, ol { list-style: none; }
h1, h2, h3, h4 { color: var(--navy); line-height: 1.35; font-weight: 700; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section { padding: 64px 0; }
.section.gray { background: var(--gray-bg); }
.section.gold-bg { background: var(--gold-bg); }

/* ---------- 顶部条 ---------- */
.topbar {
  background: var(--navy);
  color: var(--on-dark);
  font-size: 13px;
  padding: 7px 0;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; }
.topbar a { color: var(--gold); }
.topbar .topbar-right span { margin-left: 18px; }

/* ---------- 头部导航 ---------- */
.site-header {
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 0 var(--border);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 44px; height: 44px;
  background: linear-gradient(135deg, var(--navy) 55%, var(--navy-light));
  color: var(--gold);
  border: 1px solid var(--gold);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 18px; letter-spacing: 1px;
}
.brand-name { font-size: 22px; font-weight: 700; color: var(--navy); }
.brand-tag { font-size: 12px; color: var(--muted); letter-spacing: 2px; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  padding: 24px 14px;
  font-size: 15px;
  color: var(--text);
  border-bottom: 3px solid transparent;
}
.nav a:hover { color: var(--gold-dark); }
.nav a.active { color: var(--navy); font-weight: 600; border-bottom-color: var(--gold); }
.nav .nav-cta {
  margin-left: 12px;
  padding: 10px 20px;
  background: var(--gold);
  color: var(--navy);
  border-radius: 6px;
  font-weight: 600;
  border: none;
}
.nav .nav-cta:hover { background: var(--gold-dark); color: var(--white); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block; width: 24px; height: 2px;
  background: var(--navy); border-radius: 2px;
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
  border: 1px solid transparent;
  text-align: center;
}
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: var(--gold-dark); color: var(--white); }
.btn-ghost {
  border-color: rgba(255,255,255,.65);
  color: var(--white);
  background: transparent;
}
.btn-ghost:hover { background: rgba(255,255,255,.12); color: var(--gold); }
.btn-outline { border-color: var(--gold); color: var(--gold-dark); background: transparent; }
.btn-outline:hover { background: var(--gold); color: var(--navy); }

/* ---------- 首页 Hero ---------- */
.hero {
  background:
    radial-gradient(1000px 500px at 85% -10%, rgba(201,164,92,.22), transparent 60%),
    linear-gradient(120deg, var(--navy) 0%, var(--navy-light) 100%);
  color: var(--white);
  padding: 88px 0 96px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 44px 44px;
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; max-width: 960px; }
.hero-kicker {
  display: inline-block;
  color: var(--gold);
  border: 1px solid rgba(201,164,92,.5);
  border-radius: 999px;
  padding: 6px 18px;
  font-size: 14px;
  letter-spacing: 1px;
  margin-bottom: 24px;
}
.hero h1 {
  color: var(--white);
  font-size: 42px;
  letter-spacing: 1px;
  margin-bottom: 18px;
}
.hero .hero-sub {
  font-size: 22px;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 26px;
}
.hero-points { margin-bottom: 36px; }
.hero-points li {
  padding: 6px 0;
  font-size: 17px;
  color: var(--on-dark);
}
.hero-points li::before {
  content: "✓";
  color: var(--gold);
  font-weight: 700;
  margin-right: 10px;
}
.hero-btns { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-btns .btn { min-width: 220px; }
.hero-note {
  margin-top: 28px;
  font-size: 14px;
  color: rgba(216,222,230,.85);
  border-left: 3px solid var(--gold);
  padding-left: 14px;
}

/* ---------- 区块标题 ---------- */
.section-head { text-align: center; max-width: 780px; margin: 0 auto 48px; }
.kicker {
  display: inline-block;
  color: var(--gold-dark);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.section-head h2 { font-size: 32px; margin-bottom: 14px; }
.section-head .lead { color: var(--muted); font-size: 17px; }
.section-head.left { text-align: left; margin-left: 0; }

/* ---------- 网格与卡片 ---------- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow);
  transition: transform .25s, box-shadow .25s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card-icon {
  width: 56px; height: 56px;
  border-radius: 12px;
  background: var(--gold-bg);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.card-title { font-size: 20px; margin-bottom: 10px; }
.card-text { color: var(--muted); font-size: 15px; }
.card-link {
  display: inline-block;
  margin-top: 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--gold-dark);
}
.card-link::after { content: " →"; }
.card .num {
  font-size: 36px;
  font-weight: 700;
  color: var(--gold);
  line-height: 1.2;
}
.card .num-label { color: var(--muted); font-size: 14px; margin-top: 4px; }

/* 业务卡（首页四大业务） */
.svc-card { position: relative; overflow: hidden; }
.svc-card::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--gold), rgba(201,164,92,.25));
}
.svc-card .tag {
  display: inline-block;
  font-size: 12px;
  color: var(--gold-dark);
  background: var(--gold-bg);
  border-radius: 4px;
  padding: 3px 10px;
  margin-bottom: 12px;
  letter-spacing: 1px;
}

/* ---------- 步骤流程 ---------- */
.step-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
.step {
  position: relative;
  padding: 30px 24px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  display: block;
  font-size: 34px;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 12px;
}
.step h3 { font-size: 18px; margin-bottom: 8px; }
.step p { font-size: 14px; color: var(--muted); }

/* ---------- 案例 ---------- */
.case-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .25s, box-shadow .25s;
}
.case-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.case-tag {
  font-size: 12px;
  color: var(--gold-dark);
  background: var(--gold-bg);
  padding: 4px 12px;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 12px;
  letter-spacing: 1px;
}
.case-body { padding: 26px 26px 30px; display: flex; flex-direction: column; flex: 1; }
.case-body h3 { font-size: 18px; margin-bottom: 10px; }
.case-body p { font-size: 14px; color: var(--muted); flex: 1; }
.case-result {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed var(--border);
  font-size: 14px;
  color: var(--navy);
  font-weight: 600;
}
.case-result b { color: var(--gold-dark); }

/* ---------- 内页横幅 ---------- */
.page-hero {
  background:
    radial-gradient(800px 380px at 80% -20%, rgba(201,164,92,.25), transparent 60%),
    linear-gradient(120deg, var(--navy), var(--navy-light));
  color: var(--white);
  padding: 64px 0 60px;
}
.page-hero h1 { color: var(--white); font-size: 36px; margin-bottom: 14px; }
.page-hero p { color: var(--on-dark); font-size: 17px; max-width: 760px; }

.crumb {
  font-size: 13px;
  color: var(--muted);
  padding: 14px 0;
}
.crumb a { color: var(--muted); }
.crumb a:hover { color: var(--gold-dark); }
.crumb span { margin: 0 8px; color: #C0C6CE; }

/* ---------- 内容排版 ---------- */
.prose h2 { font-size: 26px; margin: 40px 0 16px; padding-left: 14px; border-left: 4px solid var(--gold); }
.prose h3 { font-size: 20px; margin: 28px 0 12px; }
.prose p { margin-bottom: 14px; color: #444; }
.prose ul.bullet, .prose ol.bullet { margin: 0 0 16px 4px; }
.prose ul.bullet li, .prose ol.bullet li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 8px;
  color: #444;
}
.prose ul.bullet li::before {
  content: "";
  position: absolute;
  left: 4px; top: 11px;
  width: 7px; height: 7px;
  background: var(--gold);
  border-radius: 50%;
}
.prose ol.bullet { counter-reset: ol; }
.prose ol.bullet li { padding-left: 30px; }
.prose ol.bullet li::before {
  counter-increment: ol;
  content: counter(ol);
  position: absolute; left: 0; top: 2px;
  width: 21px; height: 21px;
  background: var(--navy);
  color: var(--gold);
  border-radius: 50%;
  font-size: 12px;
  display: flex; align-items: center; justify-content: center;
}
.prose strong { color: var(--navy); }

.info-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 15px;
  background: var(--white);
}
.info-table th, .info-table td {
  border: 1px solid var(--border);
  padding: 12px 16px;
  text-align: left;
}
.info-table th { background: var(--navy); color: var(--white); font-weight: 600; }
.info-table tr:nth-child(even) td { background: var(--gray-bg); }

.callout {
  background: var(--gold-bg);
  border-left: 4px solid var(--gold);
  border-radius: 0 8px 8px 0;
  padding: 18px 22px;
  margin: 22px 0;
  font-size: 15px;
}
.callout b { color: var(--navy); }

/* ---------- 表单 ---------- */
.form-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 36px;
}
.form-row { margin-bottom: 18px; }
.form-row label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 8px; color: var(--navy); }
.form-row input, .form-row select, .form-row textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 15px;
  font-family: inherit;
  transition: border-color .2s;
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
  outline: none;
  border-color: var(--gold);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

/* ---------- CTA 横幅 ---------- */
.cta-band {
  background:
    radial-gradient(600px 300px at 90% 0%, rgba(201,164,92,.28), transparent 60%),
    linear-gradient(120deg, var(--navy), var(--navy-light));
  color: var(--white);
  padding: 56px 0;
}
.cta-band .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.cta-band h2 { color: var(--white); font-size: 28px; margin-bottom: 8px; }
.cta-band p { color: var(--on-dark); font-size: 15px; }
.cta-band .cta-btns { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- 页脚 ---------- */
.site-footer { background: var(--navy); color: var(--on-dark); font-size: 14px; }
.footer-main {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding: 56px 0 40px;
}
.footer-main h4 { color: var(--white); font-size: 16px; margin-bottom: 18px; }
.footer-main li { margin-bottom: 10px; }
.footer-main a { color: var(--on-dark); }
.footer-main a:hover { color: var(--gold); }
.footer-brand .brand-name { color: var(--white); font-size: 20px; }
.footer-brand p { margin-top: 12px; line-height: 1.9; color: rgba(216,222,230,.8); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding: 18px 0;
  text-align: center;
  color: rgba(216,222,230,.6);
  font-size: 13px;
}
.footer-bottom a { color: rgba(216,222,230,.6); }

/* ---------- 悬浮咨询 ---------- */
.float-contact {
  position: fixed;
  right: 24px;
  bottom: 90px;
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.float-item {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  display: flex; align-items: center; justify-content: center;
  color: var(--navy);
  position: relative;
  transition: all .2s;
}
.float-item:hover { background: var(--gold); color: var(--navy); }
.float-item .float-tip {
  position: absolute;
  right: 68px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--navy);
  color: var(--white);
  font-size: 13px;
  padding: 8px 14px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s;
}
.float-item:hover .float-tip { opacity: 1; }
.float-item.main {
  width: auto; height: auto;
  border-radius: 999px;
  padding: 13px 22px;
  background: var(--gold);
  font-weight: 700;
  font-size: 15px;
  border: none;
}
.float-item.main:hover { background: var(--gold-dark); color: var(--white); }

/* ---------- 资讯列表 ---------- */
.news-list { display: grid; gap: 20px; }
.news-item {
  display: flex;
  gap: 22px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 26px;
  box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s;
}
.news-item:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.news-date {
  flex-shrink: 0;
  text-align: center;
  border-right: 1px solid var(--border);
  padding-right: 22px;
}
.news-date .d { font-size: 26px; font-weight: 700; color: var(--gold-dark); }
.news-date .ym { font-size: 13px; color: var(--muted); }
.news-item h3 { font-size: 18px; margin-bottom: 6px; }
.news-item p { font-size: 14px; color: var(--muted); }

/* ---------- 页面独立文章 ---------- */
.article-head { max-width: 820px; margin: 0 auto 36px; text-align: center; }
.article-head h1 { font-size: 32px; margin: 12px 0 14px; }
.article-meta { color: var(--muted); font-size: 14px; }
.article-body { max-width: 820px; margin: 0 auto; }

/* ---------- 关于我们 时间线 ---------- */
.timeline { position: relative; padding-left: 30px; }
.timeline::before {
  content: "";
  position: absolute; left: 7px; top: 6px; bottom: 6px;
  width: 2px;
  background: var(--border);
}
.timeline li { position: relative; padding-bottom: 28px; }
.timeline li::before {
  content: "";
  position: absolute; left: -29px; top: 6px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--gold);
  border: 3px solid var(--white);
  box-shadow: 0 0 0 2px var(--gold);
}
.timeline .t-year { font-weight: 700; color: var(--gold-dark); font-size: 15px; }

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .step-list { grid-template-columns: repeat(2, 1fr); }
  .footer-main { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .section { padding: 48px 0; }
  .topbar { display: none; }
  .nav {
    display: none;
    position: absolute;
    top: 72px; left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    padding: 10px 20px 20px;
    box-shadow: var(--shadow-lg);
    border-top: 1px solid var(--border);
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 4px; border-bottom: 1px solid var(--gray-bg); }
  .nav a.active { border-bottom-color: var(--gray-bg); }
  .nav .nav-cta { margin: 12px 0 0; text-align: center; }
  .nav-toggle { display: flex; }
  .hero { padding: 60px 0 64px; }
  .hero h1 { font-size: 30px; }
  .hero .hero-sub { font-size: 18px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .step-list { grid-template-columns: 1fr; }
  .section-head h2 { font-size: 26px; }
  .page-hero h1 { font-size: 27px; }
  .cta-band .container { flex-direction: column; text-align: center; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-main { grid-template-columns: 1fr; gap: 28px; }
  .float-contact { right: 14px; bottom: 70px; }
  .float-item { width: 48px; height: 48px; }
  .news-item { flex-direction: column; gap: 12px; }
  .news-date { border-right: none; border-bottom: 1px solid var(--border); padding: 0 0 10px; text-align: left; display: flex; gap: 8px; align-items: baseline; }
  .article-head h1 { font-size: 26px; }
}
