/* =========================================================
   安屹会计师事务所 · 官网 Demo
   设计：简洁 / 大方 / 专业
   主色：藏青 #0e2a47 + 哑金 #b08d57
   ========================================================= */

:root {
  --navy: #0e2a47;
  --navy-deep: #0a1e33;
  --ink: #16212c;
  --muted: #5b6875;
  --gold: #b08d57;
  --gold-light: #c9a86a;
  --line: #e4e7eb;
  --line-soft: #eef0f3;
  --bg: #ffffff;
  --bg-soft: #f6f7f9;
  --max: 1180px;
  --sans: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.8;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p, dl, dd { margin: 0; }
::selection { background: rgba(176, 141, 87, .22); }

.container {
  width: min(var(--max), 100% - 48px);
  margin-inline: auto;
}

/* ---------- 通用元素 ---------- */

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--gold);
  flex: none;
}
.eyebrow.light { color: var(--gold-light); }

.section { padding: 104px 0; }
.section-soft { background: var(--bg-soft); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }

.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head h2 {
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: .01em;
}
.section-lead {
  margin-top: 16px;
  font-size: 15px;
  color: var(--muted);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 28px;
  border: 1px solid transparent;
  border-radius: 2px;
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: .04em;
  cursor: pointer;
  transition: background .22s ease, color .22s ease, border-color .22s ease;
}
.btn-sm { padding: 9px 18px; font-size: 13.5px; }
.btn-block { display: flex; width: 100%; margin-top: 12px; }

.btn-gold { background: var(--gold); border-color: var(--gold); color: #fff; }
.btn-gold:hover { background: #a07e4a; border-color: #a07e4a; }

.btn-outline-light { background: transparent; border-color: rgba(255, 255, 255, .34); color: #fff; }
.btn-outline-light:hover { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .6); }

.btn-ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 28px;
  font-size: 14px;
  font-weight: 500;
  color: var(--gold);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.link-arrow:hover { border-color: var(--gold); }

/* ---------- 顶栏 ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-soft);
  transition: box-shadow .25s ease;
}
.site-header.scrolled { box-shadow: 0 10px 30px rgba(14, 42, 71, .07); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  height: 78px;
}

.brand { display: flex; align-items: center; gap: 12px; flex: none; }
.brand-mark { width: auto; height: 46px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.3; }
.brand-text strong { font-size: 17px; font-weight: 600; letter-spacing: .04em; }
.brand-text small {
  margin-top: 3px;
  font-size: 10px;
  letter-spacing: .1em;
  color: var(--muted);
}

.main-nav { display: flex; align-items: center; gap: 30px; }
.main-nav a {
  position: relative;
  font-size: 14.5px;
  color: var(--ink);
  padding: 6px 0;
  transition: color .2s ease;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}
.main-nav a:hover { color: var(--gold); }
.main-nav a:hover::after { transform: scaleX(1); }

.header-actions { display: flex; align-items: center; gap: 18px; flex: none; }
.header-tel {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}
.header-tel svg { color: var(--gold); }
.header-tel:hover { color: var(--gold); }

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  margin: 4px auto;
  background: var(--ink);
  transition: transform .25s ease, opacity .25s ease;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  background: var(--navy);
  color: #fff;
  padding: 92px 0 0;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(880px 520px at 82% 12%, rgba(176, 141, 87, .20), transparent 62%),
    radial-gradient(760px 480px at 4% 96%, rgba(84, 126, 174, .20), transparent 60%),
    linear-gradient(180deg, #0f2c4b 0%, var(--navy-deep) 100%);
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(115deg, rgba(255, 255, 255, .05) 0 1px, transparent 1px 27px);
  opacity: .55;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(0, .82fr);
  gap: 64px;
  align-items: center;
  padding-bottom: 76px;
}

.hero h1 {
  font-size: clamp(38px, 4.4vw, 58px);
  font-weight: 600;
  line-height: 1.28;
  letter-spacing: .02em;
  margin-bottom: 26px;
}
.hero-lead {
  max-width: 620px;
  font-size: 15.5px;
  line-height: 1.95;
  color: rgba(255, 255, 255, .76);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin-top: 40px;
  font-size: 12.5px;
  letter-spacing: .06em;
  color: rgba(255, 255, 255, .58);
}
.hero-badges li { position: relative; padding-left: 14px; }
.hero-badges li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 4px;
  height: 4px;
  margin-top: -2px;
  border-radius: 50%;
  background: var(--gold);
}

.hero-card {
  border: 1px solid rgba(255, 255, 255, .16);
  background: rgba(255, 255, 255, .045);
  padding: 36px 34px 30px;
  backdrop-filter: blur(3px);
}
.hero-card-title {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .18em;
  color: var(--gold-light);
  margin-bottom: 8px;
}
.hero-card ul li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.hero-card ul li span { font-size: 15.5px; letter-spacing: .04em; }
.hero-card ul li small {
  font-size: 9.5px;
  letter-spacing: .14em;
  color: rgba(255, 255, 255, .4);
  white-space: nowrap;
}
.hero-card-foot {
  margin-top: 22px;
  font-size: 12px;
  letter-spacing: .12em;
  color: rgba(255, 255, 255, .5);
}

.hero-stats {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(255, 255, 255, .12);
}
.hero-stats .stat {
  padding: 26px 30px 30px 0;
}
.hero-stats .stat + .stat { padding-left: 30px; border-left: 1px solid rgba(255, 255, 255, .1); }
.stat-label {
  display: block;
  font-size: 11px;
  letter-spacing: .16em;
  color: rgba(255, 255, 255, .42);
  margin-bottom: 8px;
}
.stat-value { display: block; font-size: 15px; color: rgba(255, 255, 255, .86); letter-spacing: .02em; }

/* ---------- 关于我们 ---------- */

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: 80px;
  align-items: start;
}
.about-copy p { font-size: 15.5px; line-height: 1.95; color: var(--muted); }
.about-copy p + p { margin-top: 20px; }

.about-points li {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 16px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}
.about-points li:first-child { border-top: 0; padding-top: 0; }
.about-points .num {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .12em;
  color: var(--gold);
  padding-top: 4px;
}
.about-points h3 { font-size: 16.5px; font-weight: 600; margin-bottom: 6px; }
.about-points p { font-size: 14px; line-height: 1.85; color: var(--muted); }

/* ---------- 业务范围 ---------- */

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.service-card {
  background: var(--bg);
  padding: 38px 34px 34px;
  transition: background .25s ease;
}
.service-card:hover { background: #fbfaf8; }
.service-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  color: var(--gold);
  transition: border-color .25s ease, color .25s ease;
}
.service-card:hover .service-icon { border-color: var(--gold); }
.service-card h3 { margin-top: 22px; font-size: 18px; font-weight: 600; letter-spacing: .02em; }
.service-card p { margin-top: 10px; font-size: 14px; line-height: 1.85; color: var(--muted); }
.service-tags {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line-soft);
  font-size: 12.5px !important;
  letter-spacing: .02em;
  color: #8b95a0 !important;
}

/* ---------- 服务流程 ---------- */

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}
.process-step {
  border-top: 1px solid var(--line);
  padding-top: 26px;
}
.step-no {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .18em;
  color: var(--gold);
}
.process-step h3 { margin: 16px 0 10px; font-size: 17px; font-weight: 600; }
.process-step p { font-size: 14px; line-height: 1.85; color: var(--muted); }

/* ---------- 专业机构 ---------- */

.firms-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.firm-card {
  display: flex;
  flex-direction: column;
  background: var(--bg);
  border: 1px solid var(--line);
  padding: 36px 32px;
  transition: border-color .25s ease;
}
.firm-card:hover { border-color: rgba(176, 141, 87, .55); }
.firm-role {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .16em;
  color: var(--gold);
}
.firm-card h3 { margin: 14px 0 6px; font-size: 18px; font-weight: 600; line-height: 1.55; min-height: 3.1em; }
.firm-alias { font-size: 13px; color: #8b95a0; }
.firm-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 22px; }
.firm-tags li {
  font-size: 11.5px;
  letter-spacing: .04em;
  color: var(--navy);
  border: 1px solid rgba(14, 42, 71, .18);
  padding: 3px 9px;
}
.firm-focus {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
  font-size: 13px;
  line-height: 1.8;
  color: var(--muted);
}

/* ---------- 专业团队 ---------- */

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.team-card {
  background: var(--bg);
  border: 1px solid var(--line);
  padding: 36px 32px;
  transition: border-color .25s ease;
}
.team-card:hover { border-color: rgba(176, 141, 87, .55); }
.team-role {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .17em;
  color: var(--gold);
}
.team-card h3 { margin: 14px 0 12px; font-size: 19px; font-weight: 600; }
.team-card p { font-size: 14px; line-height: 1.9; color: var(--muted); }

/* ---------- 新闻动态 ---------- */

.news-list { border-bottom: 1px solid var(--line); }
.news-row {
  display: grid;
  grid-template-columns: 104px 88px 1fr 24px;
  gap: 20px;
  align-items: center;
  padding: 24px 0;
  border-top: 1px solid var(--line);
  transition: background .2s ease;
}
.news-row:hover .news-title { color: var(--gold); }
.news-row:hover .news-arrow { transform: translateX(4px); color: var(--gold); }
.news-date { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.news-cat {
  justify-self: start;
  font-size: 11px;
  letter-spacing: .06em;
  color: var(--gold);
  border: 1px solid rgba(176, 141, 87, .4);
  padding: 2px 8px;
  white-space: nowrap;
}
.news-title { font-size: 16px; line-height: 1.6; transition: color .2s ease; }
.news-arrow { color: #b7bec6; transition: transform .2s ease, color .2s ease; }

/* ---------- 联系我们 ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: 80px;
  align-items: start;
}
.contact-copy h2 {
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 14px;
}
.contact-list { margin-top: 36px; }
.contact-list li {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 20px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}
.contact-list li:last-child { border-bottom: 1px solid var(--line); }
.contact-label { font-size: 12px; letter-spacing: .08em; color: #8b95a0; padding-top: 3px; }
.contact-value { font-size: 15.5px; }
.contact-value a:hover { color: var(--gold); }

.contact-card {
  background: var(--navy);
  color: #fff;
  padding: 44px 40px;
}
.contact-card h3 { font-size: 22px; font-weight: 600; letter-spacing: .02em; }
.contact-card-lead {
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.85;
  color: rgba(255, 255, 255, .62);
}
.contact-card dl { margin: 28px 0 30px; }
.contact-card dl > div {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid rgba(255, 255, 255, .12);
}
.contact-card dl > div:last-child { border-bottom: 1px solid rgba(255, 255, 255, .12); }
.contact-card dt { font-size: 12px; letter-spacing: .08em; color: rgba(255, 255, 255, .42); padding-top: 3px; }
.contact-card dd { font-size: 14.5px; color: rgba(255, 255, 255, .88); }
.contact-card .btn-block + .btn-block { margin-top: 10px; }

/* ---------- 页脚 ---------- */

.site-footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, .72);
  padding-top: 72px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr .8fr 1.5fr 1.4fr;
  gap: 48px;
  padding-bottom: 56px;
}
.footer-name { font-size: 19px; font-weight: 600; color: #fff; letter-spacing: .04em; }
.footer-en {
  margin-top: 6px;
  font-size: 11px;
  letter-spacing: .08em;
  color: rgba(255, 255, 255, .46);
}
.footer-desc {
  margin-top: 22px;
  font-size: 13px;
  line-height: 1.9;
  color: rgba(255, 255, 255, .5);
}
.footer-title {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .12em;
  color: var(--gold-light);
  margin-bottom: 18px;
}
.footer-nav { display: flex; flex-direction: column; gap: 10px; }
.footer-nav a, .footer-service p, .footer-contact p {
  font-size: 13.5px;
  color: rgba(255, 255, 255, .62);
  line-height: 1.8;
}
.footer-nav a:hover, .footer-contact a:hover { color: var(--gold-light); }
.footer-contact p + p { margin-top: 6px; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 32px;
  padding: 22px 0;
  border-top: 1px solid rgba(255, 255, 255, .1);
  font-size: 12.5px;
  color: rgba(255, 255, 255, .42);
}
.footer-icp a { color: rgba(255, 255, 255, .58); }
.footer-icp a:hover { color: var(--gold-light); }
.footer-icp .sep { margin: 0 10px; color: rgba(255, 255, 255, .22); }

/* ---------- 滚动入场 ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s ease, transform .7s ease;
}
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  * { transition-duration: .01ms !important; }
}

/* ---------- 响应式 ---------- */

@media (max-width: 1080px) {
  .main-nav { gap: 22px; }
  .hero-grid { gap: 44px; }
}

@media (max-width: 960px) {
  .hide-sm { display: none; }
  .main-nav {
    position: fixed;
    inset: 78px 0 auto 0;
    z-index: 49;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 24px 20px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 30px rgba(14, 42, 71, .08);
    display: none;
  }
  body.nav-open .main-nav { display: flex; }
  .main-nav a { padding: 14px 0; border-bottom: 1px solid var(--line-soft); }
  .main-nav a::after { display: none; }
  .nav-toggle { display: block; }
  body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
  body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

  .hero-grid { grid-template-columns: 1fr; gap: 44px; padding-bottom: 56px; }
  .hero-card { max-width: 520px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .hero-stats .stat:nth-child(3) { padding-left: 0; border-left: 0; border-top: 1px solid rgba(255, 255, 255, .1); }
  .hero-stats .stat:nth-child(4) { border-top: 1px solid rgba(255, 255, 255, .1); }

  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .firms-grid { grid-template-columns: 1fr; }
  .firm-card h3 { min-height: 0; }
  .process-grid { grid-template-columns: repeat(2, 1fr); gap: 32px 40px; }
  .team-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}

@media (max-width: 640px) {
  .container { width: calc(100% - 40px); }
  .header-inner { height: 66px; }
  .main-nav { inset: 66px 0 auto 0; }
  .brand-text strong { font-size: 15px; }
  .brand-text small { display: none; }
  .brand-mark { width: auto; height: 38px; }
  .header-tel span { display: none; }

  .hero { padding-top: 64px; }
  .section { padding: 72px 0; }
  .section-head { margin-bottom: 40px; }
  .hero h1 { font-size: 34px; }
  .hero-lead { font-size: 14.5px; }
  .hero-actions .btn { flex: 1 1 160px; }
  .hero-badges { gap: 8px 18px; font-size: 12px; }
  .hero-stats { grid-template-columns: 1fr; }
  .hero-stats .stat, .hero-stats .stat + .stat {
    padding: 18px 0;
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, .1);
  }
  .hero-stats .stat:first-child { border-top: 0; }

  .services-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; }
  .news-row { grid-template-columns: 88px 1fr; row-gap: 6px; }
  .news-cat { grid-row: 2; grid-column: 1; }
  .news-title { grid-column: 2; grid-row: 1 / span 2; font-size: 15px; }
  .news-arrow { display: none; }
  .contact-list li { grid-template-columns: 76px 1fr; gap: 14px; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; padding-bottom: 40px; }
  .footer-contact p { overflow-wrap: anywhere; }
}
