/* 安诺财税 — 山西安诺财税服务有限公司 */

:root {
  --blue: #0155d2;
  --navy: #0a2f82;
  --ink: #172033;
  --muted: #4e596b;
  --line: #e3ddd0;
  --paper: #f4f1ea;
  --paper-2: #faf8f4;
  --white: #ffffff;
  --gold: #f8bb0a;
  --footer: #08111e;
  --gold-ink: #1a1400;
  --focus: #0155d2;
  --header-h: 76px;
  --wrap: 1120px;
  --sans: "Noto Sans SC", "Noto Sans CJK SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "WenQuanYi Micro Hei", sans-serif;
  --serif: "Noto Serif SC", "Noto Serif CJK SC", "Songti SC", "STSong", "SimSun", serif;
  color-scheme: light;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.75;
  font-weight: 400;
}

img, svg, object { max-width: 100%; }

img { height: auto; }

a { color: var(--blue); text-underline-offset: 3px; }

a:hover { color: var(--navy); }

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -48px;
  background: var(--navy);
  color: #fff;
  padding: 8px 12px;
  z-index: 50;
  text-decoration: none;
}

.skip-link:focus { top: 8px; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.wrap {
  width: min(var(--wrap), calc(100% - 32px));
  margin-inline: auto;
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 700;
  line-height: 1.3;
  color: var(--navy);
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(1.7rem, 3.2vw, 2.6rem); letter-spacing: 0.01em; text-wrap: balance; }
h2 { font-size: clamp(1.45rem, 2.4vw, 1.85rem); }
h3 { font-size: 1.15rem; font-family: var(--sans); }

p { margin: 0 0 0.9em; }

.lead {
  font-size: 1.08rem;
  color: var(--ink);
}

.kicker {
  margin: 0 0 0.7rem;
  color: var(--blue);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.kicker::before {
  content: "";
  display: inline-block;
  width: 16px;
  height: 3px;
  margin-right: 8px;
  background: var(--gold);
  vertical-align: middle;
}

.gold-rule {
  height: 4px;
  background: var(--gold);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.header-bar {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
  min-width: 0;
  text-decoration: none;
  color: inherit;
}

.brand:hover { color: inherit; }

.brand-mark { width: 46px; height: 52px; flex: none; }

.brand-lockup { height: 52px; width: auto; display: block; }

.brand-cn {
  display: block;
  color: var(--navy);
  font-weight: 700;
  font-size: 1.28rem;
  letter-spacing: 0.14em;
  line-height: 1.1;
}

.brand-en {
  display: block;
  margin-top: 3px;
  color: #5e6a7c;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  line-height: 1.2;
  white-space: nowrap;
}

.header-call {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 12px;
  background: var(--blue);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
}

.header-call:hover { background: var(--navy); color: #fff; }

.call-short { display: none; }

.nav-toggle {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.nav-btn {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
}

.nav-bars {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 18px;
}

.nav-bars i {
  display: block;
  height: 2px;
  background: var(--navy);
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.site-nav ul {
  display: flex;
  gap: 2px;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 10px;
  color: var(--ink);
  text-decoration: none;
  font-size: 0.95rem;
}

.site-nav a:hover { color: var(--blue); }

.site-nav a[aria-current="page"] {
  color: var(--blue);
  box-shadow: inset 0 -3px 0 var(--gold);
}

@media (max-width: 980px) {
  .nav-btn { display: inline-flex; }
  .call-long { display: none; }
  .call-short { display: inline; }
  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 4px 8px 12px;
  }
  .nav-toggle:checked ~ .site-nav {
    display: block;
    box-shadow: 0 16px 28px rgba(8, 17, 30, 0.08);
  }
  .site-nav ul { flex-direction: column; align-items: stretch; }
  .site-nav a { padding: 0 8px; }
  .nav-toggle:checked ~ .nav-btn .nav-bars i:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle:checked ~ .nav-btn .nav-bars i:nth-child(2) { opacity: 0; }
  .nav-toggle:checked ~ .nav-btn .nav-bars i:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

@media (max-width: 380px) {
  .brand-en { display: none; }
  .brand-cn { font-size: 1.05rem; letter-spacing: 0.08em; }
  .brand-mark { width: 38px; height: 44px; }
}

/* Hero */
.hero { background: var(--paper); }

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  min-height: 540px;
}

.hero-copy { padding: 64px 8px 56px 0; }

.hero-copy h1 { margin-bottom: 0.35em; }

.tagline {
  margin: 0 0 1rem;
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  color: var(--navy);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 1.2rem 0 0.8rem;
}

.hero-panel {
  background: var(--navy);
  color: #fff;
  padding: 40px 36px;
}

.hero-panel h2 {
  color: #fff;
  font-family: var(--sans);
  font-size: 0.95rem;
  letter-spacing: 0.14em;
  font-weight: 700;
}

.fact-list { margin: 0; padding: 0; list-style: none; }

.fact-list li {
  padding: 12px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.fact-list li:first-child { border-top: 0; }

.fact-list span {
  display: block;
  color: var(--gold);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.fact-list strong, .fact-list a {
  display: block;
  margin-top: 2px;
  color: #fff;
  font-weight: 500;
  font-size: 1.02rem;
  text-decoration: none;
  word-break: break-all;
}

.fact-list a:hover { text-decoration: underline; }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { padding: 36px 0 28px; }
  .hero-panel { margin: 0 -16px; padding: 28px 16px 32px; }
}

/* Buttons and sections */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.98rem;
}

.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--navy); color: #fff; }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-ghost:hover { background: var(--navy); color: #fff; }
.btn-gold { background: var(--gold); color: var(--gold-ink); }
.btn-gold:hover { background: #e0a800; color: var(--gold-ink); }

.section { padding: 64px 0; }
.section-tight { padding: 28px 0; }
.section h2 { margin-bottom: 0.4em; }

.section-head { margin-bottom: 1.4rem; max-width: 46rem; }

.band-white { background: #fff; }
.band-paper { background: var(--paper); }

.grid-3, .grid-2, .grid-4 {
  display: grid;
  gap: 16px;
}

.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .grid-3, .grid-2, .grid-4 { grid-template-columns: 1fr; }
  .section { padding: 44px 0; }
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  padding: 20px 18px 16px;
  color: inherit;
  text-decoration: none;
  display: block;
  height: 100%;
}

a.card:hover { border-color: var(--blue); color: inherit; }

.card.is-core { border-top: 3px solid var(--gold); }

.card h3 { margin-bottom: 0.35em; }

.card p:last-child { margin-bottom: 0; }

.index-no {
  display: block;
  color: var(--blue);
  font-variant-numeric: tabular-nums;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  font-weight: 700;
  margin-bottom: 6px;
}

.svc-name { font-family: var(--serif); font-size: 1.25rem; color: var(--navy); display: block; margin-bottom: 6px; }

.muted { color: var(--muted); }
.small { font-size: 0.92rem; }

.note {
  background: #fff;
  border-left: 3px solid var(--gold);
  padding: 12px 14px;
  color: var(--ink);
}

ol.steps, ul.clean { margin: 0 0 1em; padding-left: 1.2em; }
ol.steps li, ul.clean li { margin: 0.25em 0; }

.step-grid { counter-reset: step; }

.step {
  background: #fff;
  border: 1px solid var(--line);
  padding: 18px 16px 14px;
}

.step strong {
  display: block;
  font-family: var(--serif);
  color: var(--navy);
  font-size: 1.15rem;
  margin-bottom: 6px;
}

.step strong::before {
  content: counter(step, decimal-leading-zero);
  counter-increment: step;
  display: block;
  color: var(--blue);
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  margin-bottom: 6px;
}

.step-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
@media (max-width: 900px) { .step-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .step-grid { grid-template-columns: 1fr; } }

/* Subnav */
.subnav {
  position: sticky;
  top: var(--header-h);
  z-index: 15;
  background: rgba(244, 241, 234, 0.96);
  border-bottom: 1px solid var(--line);
}

.subnav ul {
  display: flex;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow-x: auto;
}

.subnav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 10px;
  white-space: nowrap;
  text-decoration: none;
  color: var(--ink);
  font-size: 0.92rem;
}

.subnav a:hover { color: var(--blue); }

.service-block {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 28px;
  padding: 36px 0;
  border-top: 1px solid var(--line);
}

.service-block.is-core { border-top: 3px solid var(--gold); }

.service-aside {
  background: #fff;
  border: 1px solid var(--line);
  padding: 16px 16px 8px;
  align-self: start;
}

.service-aside h3 { margin-bottom: 8px; font-size: 0.95rem; }

.service-aside ul { margin: 0; padding-left: 1.1em; }
.service-aside li { margin: 0.2em 0; }

@media (max-width: 800px) {
  .service-block { grid-template-columns: 1fr; }
}

/* Tables */
.table-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--line); }

table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.98rem;
}

table.data th,
table.data td {
  text-align: left;
  vertical-align: top;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}

table.data th {
  background: var(--paper-2);
  color: var(--navy);
  font-weight: 700;
  white-space: nowrap;
}

table.data tr:last-child td { border-bottom: 0; }

table.data a { font-weight: 700; white-space: nowrap; }

@media (max-width: 720px) {
  table.stack thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }
  table.stack, table.stack tbody, table.stack tr, table.stack td { display: block; width: 100%; }
  table.stack tr { border-bottom: 8px solid var(--paper); }
  table.stack td { border-bottom: 1px solid var(--line); }
  table.stack td::before {
    content: attr(data-label);
    display: block;
    color: var(--muted);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
  }
}

/* Page hero */
.page-hero { padding: 36px 0 8px; }
.page-hero p { max-width: 46rem; }

.crumbs { margin: 0 0 10px; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px; color: var(--muted); font-size: 0.88rem; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--blue); }
.crumbs li:not(:last-child)::after { content: "/"; margin-left: 6px; color: #b0a898; }

/* FAQ */
.faq-item { padding: 22px 0; border-top: 1px solid var(--line); }
.faq-item h2 { font-size: 1.28rem; }
.faq-item:target { scroll-margin-top: 130px; }
.service-block:target, .page-hero { scroll-margin-top: 120px; }

.toc { columns: 2; margin: 0 0 8px; padding-left: 1.2em; }
@media (max-width: 700px) { .toc { columns: 1; } }
.toc a { text-decoration: none; }
.toc a:hover { text-decoration: underline; }

/* Scans, QR, office */
.scan-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 800px) { .scan-grid { grid-template-columns: 1fr; } }

.scan {
  margin: 0;
  background: #fff;
  border: 1px solid var(--line);
  padding: 12px;
}

.scan object, .qr object, .scan img, .office img, .storefront {
  display: block;
  width: 100%;
  height: auto;
}

.scan img { background: #fff; }

.storefront {
  aspect-ratio: 16 / 10;
  object-fit: cover;
  margin: 0 0 12px;
  border: 1px solid var(--line);
}

.storefront-top {
  object-position: top;
}

.entity-block { margin-top: 48px; }
.entity-block > h2 { margin-bottom: 8px; }
.entity-block > .lead-mini { color: var(--muted); margin: 0 0 16px; }
.scan-grid.one-col { grid-template-columns: minmax(0, 40rem); }

.scan-fallback, .qr-fallback, .office-placeholder {
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 6px;
  padding: 20px;
  background:
    linear-gradient(180deg, rgba(248, 187, 10, 0.18), rgba(248, 187, 10, 0.18)) 0 0 / 100% 4px no-repeat,
    var(--paper-2);
  border: 1px dashed #cfc6b6;
  color: var(--navy);
}

.scan figcaption, .office figcaption { margin-top: 8px; color: var(--muted); font-size: 0.9rem; }

.qr-box {
  width: min(240px, 100%);
  background: #fff;
  border: 1px solid var(--line);
  padding: 12px;
}

.qr-fallback { min-height: 200px; align-items: center; text-align: center; }

.office-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.office { margin: 0; background: #fff; border: 1px solid var(--line); padding: 10px; }
.office img {
  aspect-ratio: 3 / 2;
  object-fit: cover;
}
@media (max-width: 800px) {
  .office-grid { grid-template-columns: 1fr; }
}

.office-placeholder { min-height: 180px; }
.office-placeholder span {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.14em;
  color: var(--blue);
  font-weight: 700;
  font-size: 0.8rem;
}
.office-placeholder strong { font-family: var(--serif); font-size: 1.2rem; }
.office-placeholder em { font-style: normal; color: var(--muted); font-size: 0.92rem; }

/* CTA */
.cta {
  background: var(--navy);
  color: #fff;
  padding: 42px 0;
}

.cta h2 { color: #fff; }
.cta p { color: rgba(255, 255, 255, 0.88); max-width: 40rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.cta-row > div { flex: 1 1 280px; }
.cta .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, 0.7); }
.cta .btn-ghost:hover { background: #fff; color: var(--navy); }

/* Footer */
.site-footer {
  background: var(--footer);
  color: #d5dbe6;
  padding: 40px 0 16px;
  font-size: 0.95rem;
}

.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

.footer-brand .brand-cn { color: #fff; }
.footer-brand .brand-en { color: #b7c0ce; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1.2fr;
  gap: 28px;
  padding-bottom: 24px;
}

.site-footer h2 {
  color: #fff;
  font-family: var(--sans);
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  margin-bottom: 10px;
}

.site-footer ul { margin: 0; padding: 0; list-style: none; }
.site-footer li { margin: 0.25em 0; }

.footer-base {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  justify-content: space-between;
  color: #aeb6c4;
  font-size: 0.88rem;
}

.icp-slot { color: #fff; }

@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
}

.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.8fr);
  gap: 28px;
  align-items: start;
}
@media (max-width: 800px) { .two-col { grid-template-columns: 1fr; } }

dl.meta { margin: 0; }
dl.meta div {
  display: grid;
  grid-template-columns: 7.5em 1fr;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}
dl.meta dt { color: var(--muted); font-weight: 700; }
dl.meta dd { margin: 0; }

.timeline { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--gold); }
.timeline li { padding: 0 0 16px 16px; }
.timeline time { display: block; color: var(--blue); font-weight: 700; font-size: 0.88rem; }

.compare th:first-child, .compare td:first-child { width: 22%; }

address { font-style: normal; }

@media print {
  .site-header, .site-footer, .hero-actions, .cta, .subnav, .nav-btn, .header-call { display: none !important; }
  body { background: #fff; font-size: 12pt; }
  a { color: #000; text-decoration: none; }
  .hero-panel { background: #fff; color: #000; border: 1px solid #000; }
  .hero-panel h2, .fact-list strong, .fact-list a, .fact-list span { color: #000; }
  .section { padding: 16px 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
