/* ============================================================
   衡阳义楚财税服务有限公司 官网样式
   设计：专业财税风 —— 深蓝 + 金，简洁、可信、现代，桌面/移动端自适应
   ============================================================ */

:root {
  --primary: #143a6b;
  --primary-dark: #0c2747;
  --primary-light: #1f5a9e;
  --gold: #c9a24b;
  --gold-soft: #f3e9cf;
  --bg: #ffffff;
  --bg-alt: #f5f8fc;
  --bg-dark: #0c2747;
  --text: #16233a;
  --muted: #5d6b81;
  --border: #e4e9f1;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(12, 39, 71, 0.08);
  --shadow-lg: 0 18px 50px rgba(12, 39, 71, 0.14);
  --maxw: 1180px;
  --header-h: 68px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text); background: var(--bg); line-height: 1.75; -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
ul { list-style: none; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

/* 顶部导航 */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 700; }
.brand-logo { width: 40px; height: 40px; flex: 0 0 auto; border-radius: 11px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text b { font-size: 17px; letter-spacing: .5px; color: var(--primary-dark); }
.brand-text small { font-size: 9.5px; color: var(--muted); letter-spacing: 1.5px; font-weight: 600; }

.nav { display: flex; align-items: center; gap: 6px; }
.nav a { padding: 8px 14px; border-radius: 9px; font-size: 15px; font-weight: 600; color: var(--muted); transition: .2s; }
.nav a:hover { color: var(--primary); background: var(--bg-alt); }
.nav a.active { color: var(--primary); background: #eaf0f8; }
.nav-toggle { display: none; border: none; background: var(--bg-alt); color: var(--primary); width: 42px; height: 42px; border-radius: 10px; font-size: 20px; cursor: pointer; }

/* 通用区块 */
.section { padding: 84px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 740px; margin: 0 auto 52px; }
.section-head .eyebrow { display: inline-block; color: var(--gold); font-weight: 700; font-size: 13px; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 12px; }
.section-head h2 { font-size: 32px; line-height: 1.25; letter-spacing: .5px; color: var(--primary-dark); }
.section-head p { color: var(--muted); margin-top: 14px; font-size: 16px; }

.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 26px; border-radius: 11px; font-weight: 700; font-size: 15px; cursor: pointer; transition: .2s; border: none; }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 10px 24px rgba(20, 58, 107, .28); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 32px rgba(20, 58, 107, .36); background: var(--primary-light); }
.btn-gold { background: var(--gold); color: #3a2b08; box-shadow: 0 10px 24px rgba(201, 162, 75, .3); }
.btn-gold:hover { transform: translateY(-2px); }
.btn-ghost { background: #fff; color: var(--primary); border: 1.5px solid var(--border); }
.btn-ghost:hover { border-color: var(--primary); background: var(--bg-alt); }

/* Hero */
.hero { position: relative; overflow: hidden; background: linear-gradient(135deg, #0c2747 0%, #143a6b 55%, #1f5a9e 100%); color: #fff; padding: 108px 0 116px; }
.hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 48px 48px; mask-image: radial-gradient(circle at 75% 25%, #000, transparent 75%); }
.hero::after { content: ""; position: absolute; width: 480px; height: 480px; left: -120px; bottom: -180px; background: radial-gradient(circle, rgba(201,162,75,.35), transparent 65%); }
.hero .container { position: relative; z-index: 2; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; padding: 7px 15px; border-radius: 999px; background: rgba(255,255,255,.1); border: 1px solid rgba(201,162,75,.5); font-size: 13px; color: #f3e9cf; margin-bottom: 22px; }
.hero h1 { font-size: 46px; line-height: 1.18; letter-spacing: 1px; max-width: 800px; }
.hero h1 .gold { color: #f0cd7e; }
.hero p.lead { margin-top: 22px; font-size: 18px; color: #cfdcef; max-width: 640px; }
.hero-actions { margin-top: 36px; display: flex; gap: 16px; flex-wrap: wrap; }

/* 数据条 */
.stats { background: #fff; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding: 48px 0; }
.stat { text-align: center; }
.stat .num { font-size: 38px; font-weight: 800; color: var(--primary); letter-spacing: .5px; }
.stat .num small { font-size: 18px; }
.stat .label { color: var(--muted); font-size: 14px; margin-top: 4px; }

/* 网格 */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }

.card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 30px 26px; transition: .25s; box-shadow: var(--shadow); }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: #cfd9ea; }
.card .icon { width: 52px; height: 52px; border-radius: 13px; display: grid; place-items: center; background: linear-gradient(135deg, #eaf0f8, #f3e9cf); margin-bottom: 18px; }
.card h3 { font-size: 19px; margin-bottom: 10px; color: var(--primary-dark); }
.card p { color: var(--muted); font-size: 14.5px; }

/* 服务产品 */
.service { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; position: relative; overflow: hidden; transition: .25s; }
.service::before { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 4px; background: linear-gradient(90deg, var(--primary), var(--gold)); }
.service:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.service .tag { align-self: flex-start; font-size: 12px; font-weight: 700; color: #8a6a1e; background: var(--gold-soft); padding: 4px 11px; border-radius: 999px; display: inline-block; margin-bottom: 12px; }
.service h3 { font-size: 18px; color: var(--primary-dark); }
.service p { color: var(--muted); font-size: 14.5px; margin-top: 8px; }
.service ul { margin-top: 12px; font-size: 14px; color: var(--muted); }
.service ul li { padding: 4px 0 4px 18px; position: relative; }
.service ul li::before { content: "✓"; position: absolute; left: 0; color: var(--gold); font-weight: 700; }

/* 信任/资质 */
.badges { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.badge { display: inline-flex; align-items: center; gap: 9px; padding: 12px 20px; border-radius: 12px; background: #fff; border: 1px solid var(--border); font-weight: 600; font-size: 14.5px; box-shadow: var(--shadow); }
.badge .dot { width: 9px; height: 9px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), var(--gold)); }

/* 新闻 */
.news-card { display: flex; gap: 20px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; transition: .25s; }
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.news-date { flex: 0 0 78px; text-align: center; border-right: 1px solid var(--border); padding-right: 18px; }
.news-date .d { font-size: 30px; font-weight: 800; color: var(--primary); line-height: 1; }
.news-date .m { font-size: 13px; color: var(--muted); margin-top: 4px; }
.news-body h3 { font-size: 17px; margin-bottom: 6px; color: var(--primary-dark); }
.news-body p { color: var(--muted); font-size: 14px; }
.news-body .cat { display: inline-block; font-size: 12px; color: #8a6a1e; font-weight: 700; margin-bottom: 6px; }

/* 时间线 */
.timeline { position: relative; max-width: 820px; margin: 0 auto; padding-left: 30px; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(var(--primary), var(--gold)); }
.tl-item { position: relative; padding: 0 0 36px 28px; }
.tl-item::before { content: ""; position: absolute; left: -30px; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 3px solid var(--primary); }
.tl-item .yr { font-weight: 800; color: var(--primary); font-size: 15px; }
.tl-item h3 { font-size: 18px; margin: 4px 0 6px; color: var(--primary-dark); }
.tl-item p { color: var(--muted); font-size: 14.5px; }

/* CTA */
.cta { background: linear-gradient(135deg, #0c2747, #1f5a9e); color: #fff; border-radius: 22px; padding: 56px 44px; text-align: center; position: relative; overflow: hidden; }
.cta h2 { font-size: 30px; margin-bottom: 12px; }
.cta p { color: #cfdcef; margin-bottom: 28px; font-size: 16px; }
.cta .hero-actions { justify-content: center; }

/* 联系页 */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: start; }
.info-list li { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--border); }
.info-list .ico { flex: 0 0 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; background: var(--bg-alt); font-size: 18px; }
.info-list .k { font-size: 13px; color: var(--muted); }
.info-list .v { font-size: 16px; font-weight: 600; color: var(--primary-dark); }
.info-list .v a:hover { color: var(--primary); }
.map-box { margin-top: 22px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); background: linear-gradient(135deg, #eaf0f8, #f3e9cf); height: 240px; position: relative; display: grid; place-items: center; }
.map-box .pin { text-align: center; color: var(--primary-dark); }
.map-box .pin b { display: block; font-size: 15px; margin-top: 8px; }
.map-box a.map-link { position: absolute; right: 14px; bottom: 14px; font-size: 13px; font-weight: 700; color: #fff; background: var(--primary); padding: 8px 14px; border-radius: 9px; }

.form { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); }
.form .field { margin-bottom: 18px; }
.form label { display: block; font-size: 14px; font-weight: 700; margin-bottom: 7px; }
.form input, .form textarea, .form select { width: 100%; padding: 12px 14px; border: 1.5px solid var(--border); border-radius: 10px; font-size: 15px; font-family: inherit; color: var(--text); background: #fff; transition: .2s; }
.form input:focus, .form textarea:focus, .form select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(20,58,107,.12); }
.form textarea { resize: vertical; min-height: 110px; }
.form .hint { font-size: 12.5px; color: var(--muted); margin-top: 10px; }

/* 标注 */
.note-tag { display: inline-block; font-size: 11.5px; font-weight: 700; color: #8a6a1e; background: var(--gold-soft); border: 1px solid #e6d29a; padding: 2px 9px; border-radius: 999px; vertical-align: middle; margin-left: 6px; }
.callout { background: #fbf6ea; border: 1px solid #ecd9a6; border-left: 4px solid var(--gold); border-radius: 10px; padding: 16px 18px; font-size: 14px; color: #6b4f12; margin: 28px 0; }

/* 页脚 */
.site-footer { background: var(--bg-dark); color: #aeb9cf; padding: 56px 0 26px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.4fr; gap: 32px; }
.site-footer h4 { color: #fff; font-size: 15px; margin-bottom: 16px; }
.site-footer .brand-text b { color: #fff; }
.site-footer .brand-text small { color: #7e8aa3; }
.site-footer a { color: #aeb9cf; font-size: 14px; line-height: 2; }
.site-footer a:hover { color: #f0cd7e; }
.footer-about { font-size: 14px; line-height: 1.8; margin-top: 14px; color: #8c98b3; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); margin-top: 38px; padding-top: 20px; text-align: center; font-size: 13px; color: #6b768f; }
.footer-contact li { display: flex; gap: 10px; font-size: 14px; margin-bottom: 10px; align-items: flex-start; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
.reveal { animation: fadeUp .7s ease both; }

/* 响应式 */
@media (max-width: 980px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .nav { position: absolute; top: var(--header-h); left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: #fff; border-bottom: 1px solid var(--border); padding: 10px 16px 18px; display: none; box-shadow: var(--shadow); }
  .nav.open { display: flex; }
  .nav a { padding: 13px 12px; border-radius: 8px; }
  .nav-toggle { display: block; }
  .hero { padding: 78px 0 88px; }
  .hero h1 { font-size: 32px; }
  .hero p.lead { font-size: 16px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .section { padding: 60px 0; }
  .section-head h2 { font-size: 26px; }
  .cta { padding: 40px 22px; }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .grid-4 { grid-template-columns: 1fr; }
  .hero h1 { font-size: 27px; }
}
