/* =============================================================================
 * 中税华税务师事务所官网 · 样式表
 * 设计取向：专业可信、克制大气。深墨蓝为主色（税务/财税行业天然的稳重感），
 *金色作为点缀色（资质、权威感），大量留白，不用大面积渐变。
 * 全部颜色集中在 :root 变量里，改主色只需改这一处。
 * ========================================================================== */
:root {
  --ink: #0f1f3d;             /* 深墨蓝主文字 */
  --ink-soft: #2c3e5c;
  --muted: #6b7a94;
  --line: #e8ecf2;
  --line-strong: #d3dae5;
  --bg: #ffffff;
  --bg-alt: #f6f8fb;
  --accent: #1e4b8f;          /* 主色：专业蓝 */
  --accent-deep: #12315f;
  --gold: #b8862b;            /* 点缀金：资质/权威 */
  --gold-soft: #f5e9d4;
  --radius: 14px;
  --maxw: 1180px;
  --shadow: 0 10px 32px rgba(15, 31, 61, .08);
  --shadow-hover: 0 16px 44px rgba(15, 31, 61, .13);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ------------------------------ 导航 ------------------------------ */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.9);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, box-shadow .25s;
}
.nav--scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 22px rgba(15,31,61,.06); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 70px; gap: 16px; }
.nav__logo { display: flex; align-items: center; gap: 11px; font-weight: 700; font-size: 17px; letter-spacing: -.01em; color: var(--ink); }
.nav__logo img {
  height: 38px; width: 38px; border-radius: 50%;
  /* Logo 含文字时必须 contain，否则会被裁掉 */
  object-fit: contain; background: #fff;
}
.nav__links { display: flex; gap: 2px; }
.nav__links a { color: var(--ink-soft); font-size: 15px; padding: 8px 13px; border-radius: 8px; transition: color .2s, background .2s; }
.nav__links a:hover { color: var(--accent); background: var(--bg-alt); }
.nav__cta {
  margin-left: 8px; background: var(--accent); color: #fff;
  font-size: 14px; font-weight: 600; padding: 10px 20px; border-radius: 999px;
  transition: transform .2s, background .2s; white-space: nowrap;
}
.nav__cta:hover { background: var(--accent-deep); transform: translateY(-1px); }
.nav__toggle {
  display: none; background: none; border: 1px solid var(--line-strong);
  border-radius: 8px; font-size: 20px; padding: 5px 11px; cursor: pointer; color: var(--ink);
}

/* ------------------------------ Hero ------------------------------ */
.hero {
  position: relative; padding: 118px 0 92px;
  background:
    radial-gradient(820px 400px at 84% -6%, rgba(30,75,143,.07) 0%, rgba(30,75,143,0) 60%),
    radial-gradient(680px 340px at 6% 2%, rgba(184,134,43,.07) 0%, rgba(184,134,43,0) 55%),
    #fff;
}
.hero__inner { max-width: 940px; }
.hero__eyebrow {
  color: var(--gold); letter-spacing: .1em; font-size: 13px; font-weight: 600;
  margin: 0 0 18px;
}
.hero__title {
  font-size: clamp(36px, 5.6vw, 64px); line-height: 1.16; margin: 0 0 22px;
  font-weight: 800; letter-spacing: -.025em; color: var(--ink);
}
.hero__sub { font-size: clamp(16px, 1.9vw, 19px); color: var(--ink-soft); max-width: 720px; margin: 0 0 32px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 30px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 15px; font-weight: 600; padding: 13px 26px; border-radius: 999px;
  transition: transform .2s, background .2s, color .2s, border-color .2s; cursor: pointer;
  border: 1px solid transparent;
}
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-deep); transform: translateY(-1px); }
.btn--primary:hover span { transform: translateX(4px); }
.btn--primary span { transition: transform .2s; }
.btn--primary:disabled { opacity: .6; cursor: not-allowed; transform: none; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }
.hero__tags { display: flex; flex-wrap: wrap; gap: 10px; }
.hero__tag { background: var(--bg-alt); border: 1px solid var(--line); padding: 7px 15px; border-radius: 999px; font-size: 13px; color: var(--ink-soft); }

/* --------------------------- 关键词滚动条 --------------------------- */
.marquee { overflow: hidden; background: var(--ink); padding: 13px 0; }
.marquee__track { display: inline-flex; align-items: center; white-space: nowrap; animation: marquee-scroll 32s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item { color: #dce3ee; font-size: 14px; letter-spacing: .02em; padding: 0 4px; }
.marquee__sep { color: var(--gold); padding: 0 20px; font-weight: 700; }
@keyframes marquee-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------------------------- 通用 Section ---------------------------- */
.section { padding: 88px 0; }
.section--alt { background: var(--bg-alt); }
.section__head { max-width: 780px; margin: 0 auto 48px; text-align: center; }
.section__eyebrow { color: var(--gold); letter-spacing: .16em; font-size: 12px; font-weight: 700; margin: 0 0 12px; }
.section__title { font-size: clamp(27px, 3.7vw, 40px); margin: 0 0 14px; font-weight: 800; letter-spacing: -.02em; }
.section__lead { color: var(--muted); font-size: 17px; margin: 0; }
.empty { grid-column: 1/-1; text-align: center; color: var(--muted); padding: 40px; background: #fff; border: 1px dashed var(--line-strong); border-radius: var(--radius); }

/* ---------------------------- 核心业务 ---------------------------- */
.biz__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; }
.biz-card {
  position: relative; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 30px 28px 26px;
  transition: transform .25s, box-shadow .25s, border-color .25s; overflow: hidden;
}
.biz-card::before {
  content: ''; position: absolute; left: 0; top: 0; width: 3px; height: 0;
  background: linear-gradient(180deg, var(--accent), var(--gold));
  transition: height .35s;
}
.biz-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); border-color: var(--line-strong); }
.biz-card:hover::before { height: 100%; }
.biz-card__icon { font-size: 30px; margin-bottom: 14px; }
.biz-card__title { margin: 0 0 10px; font-size: 21px; font-weight: 700; letter-spacing: -.01em; }
.biz-card__tag {
  display: inline-block; background: var(--gold-soft); color: var(--gold);
  font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 999px; margin-bottom: 12px;
}
.biz-card__desc { color: var(--ink-soft); margin: 0 0 18px; font-size: 15px; }
.biz-card__products { display: flex; flex-wrap: wrap; gap: 8px; }
.biz-card__products span { background: var(--bg-alt); border: 1px solid var(--line); font-size: 12px; color: var(--muted); padding: 5px 12px; border-radius: 8px; }

/* ---------------------------- 行业方案 ---------------------------- */
.ind__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 20px; }
.ind-card {
  display: flex; gap: 18px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px 26px;
  transition: transform .25s, box-shadow .25s;
}
.ind-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.ind-card__icon {
  font-size: 28px; flex: none; width: 54px; height: 54px;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-alt); border-radius: 14px;
}
.ind-card__main h3 { margin: 0 0 7px; font-size: 19px; font-weight: 700; }
.ind-card__tag {
  display: inline-block; background: rgba(30,75,143,.08); color: var(--accent);
  font-size: 12px; font-weight: 600; padding: 3px 11px; border-radius: 999px; margin-bottom: 9px;
}
.ind-card__main p { margin: 0; color: var(--muted); font-size: 14.5px; }

/* ---------------------------- 服务流程 ---------------------------- */
.flow { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; position: relative; }
.flow__item {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 22px; position: relative; transition: transform .25s, box-shadow .25s;
}
.flow__item:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.flow__num {
  font-size: 30px; font-weight: 800; color: var(--gold);
  opacity: .32; line-height: 1; margin-bottom: 12px; letter-spacing: -.03em;
}
.flow__item h3 { margin: 0 0 8px; font-size: 17px; font-weight: 700; }
.flow__item p { margin: 0; color: var(--muted); font-size: 14px; }

/* ---------------------------- 关于我们 ---------------------------- */
.about { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: start; margin-bottom: 24px; }
.about__text p { color: var(--ink-soft); margin: 0 0 16px; font-size: 16px; }
.about__points { color: var(--muted); padding-left: 20px; margin: 20px 0 0; }
.about__points li { margin-bottom: 10px; font-size: 15px; }
.about__points li::marker { color: var(--gold); }
.about__stats { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.stat {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 22px; text-align: center;
}
.stat__num { font-size: 36px; font-weight: 800; letter-spacing: -.02em; line-height: 1; color: var(--accent); }
.stat__suffix { font-size: 17px; font-weight: 700; margin-left: 3px; }
.stat__label { color: var(--muted); margin-top: 10px; font-size: 13.5px; }

.about__cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(238px, 1fr)); gap: 18px; }
.about__card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px; transition: transform .25s, box-shadow .25s;
}
.about__card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.about__card-icon { font-size: 26px; margin-bottom: 12px; }
.about__card h3 { margin: 0 0 8px; font-size: 17.5px; font-weight: 700; }
.about__card p { margin: 0; color: var(--muted); font-size: 14px; }

/* ---------------------------- 我们的优势 ---------------------------- */
.adv__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; }
.adv-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 26px; position: relative; overflow: hidden;
  transition: transform .25s, box-shadow .25s;
}
.adv-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.adv-card__num {
  position: absolute; right: 22px; top: 16px;
  font-size: 42px; font-weight: 800; color: var(--accent); opacity: .07; letter-spacing: -.04em;
}
.adv-card h3 { margin: 0 0 10px; font-size: 18.5px; font-weight: 700; position: relative; }
.adv-card p { margin: 0; color: var(--muted); font-size: 14.5px; position: relative; }

/* ---------------------------- 政策资讯 ---------------------------- */
.pol__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.pol-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 26px 24px; display: flex; flex-direction: column;
  transition: transform .25s, box-shadow .25s;
}
.pol-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.pol-card__meta { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.pol-card__tag {
  background: rgba(30,75,143,.08); color: var(--accent);
  font-size: 12px; font-weight: 600; padding: 4px 12px; border-radius: 999px;
}
.pol-card__date { color: var(--muted); font-size: 13px; }
.pol-card h3 { margin: 0 0 10px; font-size: 18.5px; font-weight: 700; line-height: 1.5; }
.pol-card p { margin: 0 0 16px; color: var(--muted); font-size: 14.5px; flex: 1; }
.pol-card__more { color: var(--accent); font-size: 14px; font-weight: 600; }

/* ---------------------------- 常见问题 FAQ ---------------------------- */
.faq { max-width: 860px; margin: 0 auto; }
.faq__item {
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  margin-bottom: 12px; overflow: hidden; transition: border-color .2s, box-shadow .2s;
}
.faq__item[open] { border-color: var(--line-strong); box-shadow: var(--shadow); }
.faq__q {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
  padding: 19px 22px; cursor: pointer; font-weight: 600; font-size: 16px;
  color: var(--ink); list-style: none; user-select: none;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q:hover { color: var(--accent); }
.faq__arrow {
  flex: none; width: 24px; height: 24px; border-radius: 50%;
  background: var(--bg-alt); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 700; transition: transform .25s, background .25s;
}
.faq__item[open] .faq__arrow { transform: rotate(45deg); background: var(--accent); color: #fff; }
.faq__a { padding: 0 22px 20px; color: var(--ink-soft); font-size: 15px; line-height: 1.8; }

/* ---------------------------- 联系我们 ---------------------------- */
.contact { max-width: 820px; margin: 0 auto; }
.contact__card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 38px 40px; box-shadow: var(--shadow);
}
.contact__card h3 { margin: 0 0 8px; font-size: 24px; font-weight: 800; }
.contact__card p { color: var(--muted); margin: 0 0 20px; font-size: 15px; }
.contact__items { list-style: none; padding: 0; margin: 0 0 18px; }
.contact__items li { padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 15px; color: var(--ink-soft); }
.contact__items li strong { display: inline-block; min-width: 76px; color: var(--ink); font-weight: 600; }
.contact__tags { display: flex; flex-wrap: wrap; gap: 8px; }
.contact__tag { background: var(--bg-alt); border: 1px solid var(--line); font-size: 13px; color: var(--muted); padding: 6px 13px; border-radius: 999px; }

/* ---------------------------- 留言表单 ---------------------------- */
.inquiry {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 36px; box-shadow: var(--shadow); margin-top: 22px;
}
.inquiry__title { margin: 0 0 6px; font-size: 22px; font-weight: 800; }
.inquiry__hint { color: var(--muted); font-size: 14px; margin: 0 0 20px; }
.inquiry__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.inquiry input, .inquiry textarea, .inquiry select {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line-strong);
  border-radius: 10px; font: inherit; color: var(--ink); background: #fff;
  transition: border-color .2s; font-size: 15px;
}
.inquiry select { cursor: pointer; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236b7a94' d='M1 1l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
.inquiry input:focus, .inquiry textarea:focus, .inquiry select:focus { outline: none; border-color: var(--accent); }
.inquiry textarea { margin-bottom: 18px; resize: vertical; }
.inquiry__actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.inquiry__status { font-size: 14px; color: var(--muted); }
.inquiry__status:empty { display: none; }
.inquiry__status--ok { color: #1a7f4b; font-weight: 600; }
.inquiry__status--err { color: #c0392b; font-weight: 600; }
.inquiry__status--busy { color: var(--muted); }

/* ---------------------------- 页脚 ---------------------------- */
.footer { background: var(--ink); color: #b6c0d1; padding: 60px 0 0; }
.footer__grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 44px; }
.footer__logo { display: flex; align-items: center; gap: 11px; font-weight: 700; font-size: 17px; color: #fff; }
.footer__logo img { height: 38px; width: 38px; border-radius: 50%; object-fit: contain; background: #fff; }
.footer__slogan { color: #8996ab; font-size: 14px; margin: 16px 0 0; max-width: 320px; line-height: 1.75; }
.footer__col h4 { color: #fff; font-size: 14px; font-weight: 700; margin: 0 0 16px; }
.footer__col ul { list-style: none; padding: 0; margin: 0; }
.footer__col li { margin-bottom: 10px; }
.footer__col a, .footer__col li { color: #8996ab; font-size: 13.5px; line-height: 1.6; transition: color .2s; word-break: break-all; }
.footer__col a:hover { color: #fff; }
.footer__bar {
  display: flex; justify-content: space-between; align-items: center;
  border-top: 1px solid rgba(255,255,255,.1); padding: 22px 0; color: #6f7d94; font-size: 13px;
}
.footer__legal { border-top: 1px solid rgba(255,255,255,.06); padding: 14px 0 22px; color: #5c6a80; font-size: 12.5px; }

/* ---------------------------- 滚动入场动画 ---------------------------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------------------------- 响应式 ---------------------------- */
@media (max-width: 980px) {
  .about { grid-template-columns: 1fr; gap: 36px; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 820px) {
  .nav__toggle { display: block; }
  .nav__links {
    display: none; position: absolute; left: 0; right: 0; top: 70px;
    background: #fff; flex-direction: column; padding: 12px 20px 18px;
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
  }
  .nav__links--open { display: flex; }
  .nav__links a { padding: 11px 8px; border-radius: 8px; }
  .nav__cta { display: none; }
  .hero { padding: 84px 0 62px; }
  .section { padding: 64px 0; }
  .inquiry__row { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 28px; }
  .footer__bar { flex-direction: column; gap: 8px; text-align: center; }
  .contact__card, .inquiry { padding: 26px 22px; }
  .about__stats { grid-template-columns: 1fr 1fr; }
  .ind-card { flex-direction: column; gap: 14px; }
}
@media (max-width: 480px) {
  .container { padding: 0 18px; }
  .about__stats { grid-template-columns: 1fr; }
  .flow { grid-template-columns: 1fr; }
}