/* =========================================================
   华申税务师事务所 · 样式表
   配色：logo 蓝 (#2A6CB7) + 深蓝 (#0E2A4A) + 金色 (#C9A35E)
   ========================================================= */

:root {
  /* 品牌蓝（取自 logo 主色） */
  --brand-700: #1F538F;
  --brand-600: #2A6CB7;
  --brand-500: #4A8BC9;
  --brand-200: #B7D2EA;
  --brand-100: #E1ECF7;
  --brand-50:  #F2F7FC;
  /* 深色：用于页脚、深背景 */
  --deep:     #0E2A4A;
  --deep-2:   #0A2240;
  /* 金色点缀 */
  --gold:     #C9A35E;
  --gold-soft:#E3C98F;
  --gold-deep:#A88A4A;
  /* 中性 */
  --ink:      #1F2A37;
  --muted:    #5B6878;
  --line:     #E6EAF0;
  --bg-soft:  #F5F7FB;
  --white:    #ffffff;
  --shadow:   0 18px 40px -20px rgba(31, 83, 143, .22);
  --radius:   16px;
  --maxw:     1180px;
  --font: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
img, svg { display: block; max-width: 100%; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ===== 按钮 ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 26px; border-radius: 999px; font-size: 15px; font-weight: 600;
  cursor: pointer; border: 1.5px solid transparent; transition: all .25s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--gold); color: #2a1d05; }
.btn-primary:hover { background: var(--gold-soft); transform: translateY(-2px); box-shadow: 0 10px 22px -10px rgba(201,163,94,.8); }
.btn-outline { background: transparent; color: var(--brand-700); border-color: var(--brand-200); }
.btn-outline:hover { background: var(--brand-50); border-color: var(--brand-600); color: var(--brand-600); }
.btn-ghost { color: var(--brand-600); border-color: var(--brand-600); padding: 9px 18px; }
.btn-ghost:hover { background: var(--brand-600); color: #fff; }
.btn-block { width: 100%; }

/* ===== 顶部导航 ===== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255, 255, 255, .96); backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent; transition: all .3s ease;
}
.site-header.scrolled {
  background: rgba(255, 255, 255, 1);
  border-bottom-color: var(--line);
  box-shadow: 0 4px 20px -10px rgba(31, 83, 143, .18);
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; }

.brand { display: flex; align-items: center; gap: 12px; }
.brand-img { height: 48px; width: auto; display: block; }

.nav { display: flex; gap: 30px; }
.nav a { color: var(--brand-700); font-size: 15px; font-weight: 500; position: relative; padding: 6px 0; transition: color .2s; }
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0;
  background: var(--brand-600); transition: width .25s ease;
}
.nav a:hover { color: var(--brand-600); }
.nav a:hover::after { width: 100%; }

.nav-actions { display: flex; align-items: center; gap: 14px; }
.nav-phone { font-weight: 600; }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px; background: none; border: 0;
  cursor: pointer; padding: 6px;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--brand-700); transition: .3s; }

/* ===== 首屏 ===== */
.hero { position: relative; padding: 150px 0 90px; color: var(--ink); overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(700px 420px at 85% 10%, rgba(42, 108, 183, .12), transparent 60%),
    radial-gradient(900px 600px at 10% 100%, rgba(42, 108, 183, .08), transparent 60%),
    linear-gradient(180deg, var(--brand-50) 0%, #ffffff 60%, var(--brand-50) 100%);
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(42, 108, 183, .06) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(42, 108, 183, .06) 1px, transparent 1px);
  background-size: 46px 46px; mask-image: radial-gradient(circle at 70% 30%, #000, transparent 75%);
}
.hero-inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero-visual { position: relative; }
.hero-visual img {
  width: 100%; height: auto; display: block; border-radius: 20px;
  box-shadow: var(--shadow); border: 1px solid rgba(255,255,255,.6);
}
.hero-visual::after {
  content: ""; position: absolute; right: -18px; bottom: -18px; width: 60%; height: 60%;
  background: var(--brand-100); border-radius: 20px; z-index: -1;
}

.eyebrow {
  display: inline-block; font-size: 13px; letter-spacing: 2px; color: var(--brand-600);
  border: 1px solid rgba(42, 108, 183, .25); background: #fff; padding: 6px 14px; border-radius: 999px; margin-bottom: 22px;
}
.hero h1 { font-size: 48px; line-height: 1.18; font-weight: 800; letter-spacing: 1px; color: var(--deep); }
.hero h1 .accent { color: var(--brand-600); }
.lead { font-size: 17px; color: var(--muted); margin: 20px 0 30px; max-width: 520px; }
.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-stats { display: flex; gap: 38px; margin-top: 44px; }
.hero-stats li { display: flex; flex-direction: column; }
.hero-stats strong { font-size: 34px; color: var(--brand-600); font-weight: 800; }
.hero-stats span { font-size: 13px; color: var(--muted); }

/* 玻璃卡片 */
.glass-card {
  background: #fff; backdrop-filter: blur(8px);
  border: 1px solid var(--brand-100); border-radius: 20px; padding: 28px;
  box-shadow: 0 24px 50px -28px rgba(31, 83, 143, .25);
}
.gc-row { display: flex; justify-content: space-between; font-size: 14px; color: var(--ink); margin-top: 16px; }
.gc-row:first-child { margin-top: 0; }
.gc-row b { color: var(--brand-600); }
.gc-bar { height: 8px; background: var(--brand-50); border-radius: 999px; overflow: hidden; margin-top: 6px; }
.gc-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--brand-600), var(--brand-500)); border-radius: 999px; }
.gc-note { margin-top: 20px; font-size: 12px; color: var(--muted); text-align: center; }

/* ===== 通用区块 ===== */
.section { padding: 92px 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 54px; }
.kicker { display: inline-block; font-size: 13px; letter-spacing: 3px; color: var(--gold); font-weight: 700; margin-bottom: 12px; }
.section-head h2 { font-size: 34px; color: var(--brand-700); font-weight: 800; letter-spacing: .5px; }
.section-sub { color: var(--muted); margin-top: 14px; font-size: 16px; }

/* ===== 核心优势 ===== */
.advantages { background: var(--bg-soft); }
.advantage-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.advantage {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 26px; transition: transform .25s, box-shadow .25s, border-color .25s;
}
.advantage:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--brand-200); }
.adv-icon {
  width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--brand-600), var(--brand-500)); color: #fff;
  font-size: 26px; margin-bottom: 18px;
}
.advantage h3 { font-size: 18px; color: var(--brand-700); margin-bottom: 10px; }
.advantage p { color: var(--muted); font-size: 14.5px; }

/* ===== 关于 ===== */
.about-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: center; }
.about-visual { position: relative; min-height: 380px; }
.about-shape {
  position: absolute; inset: 0; border-radius: 24px;
  background: #fff; border: 1px solid var(--brand-100);
  overflow: hidden; box-shadow: var(--shadow);
  display: grid; place-items: center; padding: 16px;
}
.about-promo { width: 100%; height: 100%; object-fit: contain; display: block; border-radius: 12px; }
.about-shape::before { display: none; }
.about-badge {
  position: absolute; right: -18px; bottom: 28px; background: var(--gold); color: #2a1d05;
  padding: 18px 22px; border-radius: 14px; font-weight: 700; line-height: 1.4;
  box-shadow: 0 16px 30px -14px rgba(201,163,94,.9); text-align: center; font-size: 15px;
}
.about-copy h2 { font-size: 32px; color: var(--brand-700); margin: 10px 0 18px; font-weight: 800; }
.about-copy p { color: var(--muted); margin-bottom: 16px; }
.about-list { margin: 22px 0 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.about-list li { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--ink); }
.about-list li span { color: var(--brand-600); font-weight: 700; }

/* ===== 服务范围 ===== */
.services { background: var(--bg-soft); }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.service-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 28px; position: relative; overflow: hidden; transition: transform .25s, box-shadow .25s;
}
.service-card::before {
  content: ""; position: absolute; left: 0; top: 0; height: 4px; width: 100%;
  background: linear-gradient(90deg, var(--brand-600), transparent); transform: scaleX(0); transform-origin: left; transition: transform .3s;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.service-card:hover::before { transform: scaleX(1); }
.svc-num { font-size: 40px; font-weight: 800; color: rgba(42,108,183,.12); line-height: 1; margin-bottom: 8px; }
.service-card h3 { font-size: 19px; color: var(--brand-700); margin-bottom: 10px; }
.service-card p { color: var(--muted); font-size: 14.5px; margin-bottom: 16px; }
.service-card ul { display: flex; flex-wrap: wrap; gap: 8px; }
.service-card ul li {
  font-size: 12.5px; color: var(--brand-700); background: var(--brand-50);
  border: 1px solid var(--brand-100); padding: 4px 12px; border-radius: 999px;
}

/* ===== 服务流程 ===== */
.process-steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; counter-reset: step; }
.process-steps li {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 20px; text-align: center; position: relative; transition: transform .25s, box-shadow .25s;
}
.process-steps li:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.step-no {
  width: 46px; height: 46px; border-radius: 50%; margin: 0 auto 14px;
  display: grid; place-items: center; font-weight: 800; color: #fff;
  background: linear-gradient(135deg, var(--brand-600), var(--brand-500));
}
.process-steps h3 { font-size: 17px; color: var(--brand-700); margin-bottom: 8px; }
.process-steps p { font-size: 13.5px; color: var(--muted); }

/* ===== 团队 ===== */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.member {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 24px; text-align: center; transition: transform .25s, box-shadow .25s;
}
.member:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.avatar {
  width: 84px; height: 84px; border-radius: 50%; margin: 0 auto 16px;
  background: linear-gradient(135deg, var(--brand-600), var(--brand-500));
  display: grid; place-items: center; color: #fff; font-size: 30px; font-weight: 700;
}
.avatar::after { content: attr(data-initial); }
.member h3 { font-size: 18px; color: var(--brand-700); }
.member .role { display: block; font-size: 13px; color: var(--brand-600); margin: 4px 0 12px; font-weight: 600; }
.member p { font-size: 13.5px; color: var(--muted); }

/* ===== 新闻 ===== */
.news { background: var(--bg-soft); }
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.news-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s;
}
.news-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.news-tag {
  align-self: flex-start; font-size: 12px; color: var(--brand-600); background: var(--brand-50);
  border: 1px solid var(--brand-200); padding: 4px 12px; border-radius: 999px; margin-bottom: 14px;
}
.news-card h3 { font-size: 17px; color: var(--brand-700); margin-bottom: 10px; line-height: 1.5; }
.news-card p { color: var(--muted); font-size: 14px; flex: 1; }
.news-date { margin-top: 16px; font-size: 12.5px; color: #9aa6b5; }

/* ===== 客户评价 ===== */
.quote-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.quote-grid blockquote {
  background: linear-gradient(135deg, var(--brand-700), var(--brand-500));
  color: #fff; border-radius: var(--radius); padding: 30px; position: relative;
  box-shadow: var(--shadow);
}
.quote-grid blockquote::before { content: "\201C"; font-size: 60px; color: rgba(255,255,255,.35); position: absolute; top: 6px; left: 18px; }
.quote-grid p { font-size: 15.5px; margin: 14px 0 18px; position: relative; z-index: 1; color: rgba(255,255,255,.95); }
.quote-grid footer { font-size: 13px; color: rgba(255,255,255,.85); }

/* ===== 联系 ===== */
.contact { background: var(--bg-soft); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 50px; align-items: start; }
.contact-info h2 { font-size: 30px; color: var(--brand-700); margin: 8px 0 12px; font-weight: 800; }
.contact-list { margin-top: 26px; display: grid; gap: 16px; }
.contact-list li { display: flex; align-items: center; gap: 12px; font-size: 15px; color: var(--ink); }
.contact-list span { color: var(--brand-600); font-size: 18px; }
.contact-list a:hover { color: var(--brand-500); text-decoration: underline; }

.contact-form {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px; box-shadow: var(--shadow); display: grid; grid-template-columns: 1fr 1fr; gap: 18px;
}
.field { display: flex; flex-direction: column; gap: 7px; }
.field-full { grid-column: 1 / -1; }
.field label { font-size: 13.5px; color: var(--brand-700); font-weight: 600; }
.field input, .field select, .field textarea {
  font-family: var(--font); font-size: 14.5px; color: var(--ink);
  border: 1.5px solid var(--line); border-radius: 10px; padding: 12px 14px;
  transition: border-color .2s, box-shadow .2s; background: #fbfcfe;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--brand-600); box-shadow: 0 0 0 3px rgba(42, 108, 183, .15);
}
.field textarea { resize: vertical; }
.contact-form .btn { grid-column: 1 / -1; }
.form-hint { grid-column: 1 / -1; font-size: 13.5px; min-height: 18px; }
.form-hint.ok { color: #1f7a4d; }
.form-hint.err { color: #c0392b; }

/* ===== 页脚 ===== */
.site-footer { background: var(--deep); color: #c2ccda; padding: 60px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 36px; }
.footer-logo { width: 200px; height: auto; display: block; background: #fff; padding: 14px 18px; border-radius: 12px; }
.footer-brand p { margin-top: 18px; font-size: 14px; color: #9fabc0; line-height: 1.7; }
.footer-col h4 { color: #fff; font-size: 15px; margin-bottom: 16px; }
.footer-col a, .footer-col span { display: block; font-size: 14px; color: #9fabc0; margin-bottom: 10px; transition: color .2s; }
.footer-col a:hover { color: var(--gold-soft); }
.footer-bottom {
  margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1);
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}
.footer-bottom p { font-size: 12.5px; color: #7e8ba0; }
.footer-bottom a { color: #9fabc0; text-decoration: underline; }
.footer-bottom a:hover { color: var(--gold-soft); }
.footer-mini { background: var(--deep); color: #7e8ba0; padding: 26px 0; margin-top: 48px; border-top: 1px solid rgba(255,255,255,.08); text-align: center; }
.footer-mini p { font-size: 12.5px; line-height: 1.8; }
.footer-mini a { color: #9fabc0; text-decoration: underline; }
.footer-mini a:hover { color: var(--gold-soft); }

/* ===== 返回顶部 ===== */
.back-top {
  position: fixed; right: 26px; bottom: 26px; width: 44px; height: 44px; border-radius: 50%;
  background: var(--gold); color: #2a1d05; display: grid; place-items: center; font-size: 20px;
  box-shadow: 0 10px 24px -10px rgba(201,163,94,.9); opacity: 0; pointer-events: none; transition: .3s; z-index: 90;
}
.back-top.show { opacity: 1; pointer-events: auto; }
.back-top:hover { background: var(--gold-soft); }

/* ===== 滚动揭示动画 ===== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ===== 响应式 ===== */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .advantage-grid { grid-template-columns: repeat(2, 1fr); }
  .service-grid, .news-grid, .quote-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .process-steps { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; }
  .about-visual { min-height: 280px; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .nav { position: fixed; top: 76px; right: 0; width: 78%; max-width: 320px; height: calc(100vh - 76px);
    background: var(--deep); flex-direction: column; gap: 0; padding: 16px 20px;
    transform: translateX(100%); transition: transform .3s ease; box-shadow: -10px 0 30px -16px rgba(0,0,0,.6); }
  .nav.open { transform: translateX(0); }
  .nav a { padding: 14px 0; color: #fff; border-bottom: 1px solid rgba(255,255,255,.1); }
  .nav a:hover { color: var(--brand-200); }
  .nav-phone { display: none; }
  .nav-toggle { display: flex; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .hero { padding: 120px 0 64px; }
  .hero h1 { font-size: 34px; }
  .hero-stats { gap: 24px; }
  .hero-stats strong { font-size: 26px; }
  .section { padding: 64px 0; }
  .section-head h2 { font-size: 26px; }
  .advantage-grid, .service-grid, .news-grid, .quote-grid, .team-grid, .process-steps { grid-template-columns: 1fr; }
  .about-list { grid-template-columns: 1fr; }
  .contact-form { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
