/* 墨诚财税官网 - 简约大气 · 移动端自适应 */
:root {
  --primary: #14497f;
  --primary-dark: #0e3560;
  --accent: #c9a45c;
  --text: #2b3138;
  --muted: #6b7480;
  --bg: #ffffff;
  --bg-light: #f5f8fb;
  --line: #e3eaf1;
  --radius: 10px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", sans-serif;
  color: var(--text); background: var(--bg); line-height: 1.75; font-size: 16px;
}
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.4; color: #1c2733; }
h2 { font-size: 26px; margin: 34px 0 14px; }
h3 { font-size: 20px; margin: 22px 0 10px; }
h4 { font-size: 17px; margin: 16px 0 8px; }
p { margin-bottom: 12px; }
img { max-width: 100%; }
ul.list, ol.steps { margin: 0 0 14px 22px; }
ul.list li, ol.steps li { margin-bottom: 8px; }

/* 头部 */
.site-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.header-inner { display: flex; align-items: center; gap: 26px; height: 72px; }
.logo { display: flex; align-items: center; gap: 10px; }
.logo-mark { background: var(--primary); color: #fff; font-weight: 700; padding: 8px 10px; border-radius: 8px; letter-spacing: 2px; }
.logo-text strong { display: block; font-size: 19px; color: #1c2733; letter-spacing: 1px; }
.logo-text small { color: var(--muted); font-size: 12px; }
.site-nav { display: flex; gap: 4px; flex: 1; }
.site-nav a { padding: 8px 13px; color: #3a4653; font-size: 15px; border-radius: 6px; white-space: nowrap; }
.site-nav a:hover, .site-nav a.active { background: var(--bg-light); color: var(--primary); font-weight: 600; }
.header-phone { color: var(--primary); font-weight: 700; white-space: nowrap; }
.nav-toggle { display: none; font-size: 24px; background: none; border: none; cursor: pointer; color: var(--primary); }

/* 英雄区 */
.hero { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%); color: #fff; padding: 70px 0; }
.hero h1 { color: #fff; font-size: 34px; margin-bottom: 14px; }
.hero-sub { font-size: 18px; opacity: .92; margin-bottom: 18px; }
.hero-tags { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 22px; }
.hero-tags a { color: #fff; border: 1px solid rgba(255,255,255,.45); padding: 6px 14px; border-radius: 20px; font-size: 14px; }
.hero-tags a:hover { background: rgba(255,255,255,.12); text-decoration: none; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.hero-note { font-size: 14px; opacity: .8; }
.hero-inner { display: flex; gap: 40px; align-items: center; justify-content: space-between; }
.hero-inner .hero-text { flex: 1; }

/* 二维码卡片 */
.qr-card { background: #fff; border-radius: var(--radius); padding: 18px 22px; text-align: center; box-shadow: 0 6px 24px rgba(10,40,80,.14); min-width: 200px; }
.qr-card img { width: 160px; height: 160px; display: block; margin: 0 auto 10px; }
.qr-card p { font-size: 13.5px; color: var(--muted); margin: 0; }
.footer-qr { width: 130px; height: 130px; margin-top: 12px; background: #fff; padding: 6px; border-radius: 8px; }

/* 按钮 */
.btn { display: inline-block; padding: 11px 26px; border-radius: 8px; font-size: 16px; cursor: pointer; border: none; }
.btn-primary { background: var(--accent); color: #fff; font-weight: 600; }
.btn-primary:hover { background: #b8913f; text-decoration: none; }
.btn-ghost { border: 1.5px solid var(--primary); color: var(--primary); }
.btn-ghost:hover { background: var(--bg-light); text-decoration: none; }

/* 通用区块 */
.section { padding: 54px 0; }
.bg-light { background: var(--bg-light); }
.section-lead { color: var(--muted); font-size: 15.5px; margin-top: 16px; }
.conclusion { background: #eef4fa; border-left: 4px solid var(--primary); padding: 14px 18px; border-radius: 0 8px 8px 0; margin-bottom: 18px; }
.jump-nav a { margin-right: 4px; }
.page-head { background: var(--primary); color: #fff; padding: 44px 0; }
.page-head h1 { color: #fff; font-size: 28px; margin-bottom: 8px; }
.page-head p { opacity: .85; margin: 0; }
.cards3, .cards4 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 20px 0; }
.cards4 { grid-template-columns: repeat(4, 1fr); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card.featured { border: 1.5px solid var(--accent); position: relative; }
.card.mini { text-align: center; display: flex; flex-direction: column; gap: 4px; }
.card.mini strong { font-size: 26px; color: var(--primary); }
.card.mini span { color: var(--muted); font-size: 14px; }
.price-tag { color: var(--primary); font-weight: 600; font-size: 14.5px; }
.more { font-size: 14.5px; font-weight: 600; }
.cta-band { background: var(--bg-light); }
.cta-band-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.faq-inline h3 { margin-top: 24px; }

/* 表格 */
.table { width: 100%; border-collapse: collapse; margin: 16px 0 24px; background: #fff; }
.table th, .table td { border: 1px solid var(--line); padding: 11px 14px; text-align: left; font-size: 15px; }
.table th { background: var(--bg-light); font-weight: 600; }

/* FAQ */
.faq-cat { margin-bottom: 26px; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px; margin-bottom: 12px; }
.faq-item h3 { margin: 0 0 8px; font-size: 17.5px; }
.faq-item p { margin: 0; color: #46505c; }

/* 产品块 */
.product-block h2 { margin-top: 0; }

/* 案例中心：数据带 + 手风琴卡片 */
.stats-band { background: var(--bg-light); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin: 20px 0; }
.stat { background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--accent); border-radius: var(--radius); padding: 20px 22px; }
.stat strong { display: block; font-size: 24px; color: var(--primary); margin-bottom: 6px; }
.stat span { font-size: 13.5px; color: var(--muted); }
.case-list { display: flex; flex-direction: column; gap: 20px; margin-top: 18px; }
.case-card {
  background: #fff; border: 1px solid #d8e2ec; border-left: 4px solid var(--primary); border-radius: 8px;
  padding: 0 26px; box-shadow: 0 3px 12px rgba(20,73,127,.08); overflow: hidden;
  transition: box-shadow .15s ease;
}
.case-card:hover { box-shadow: 0 6px 18px rgba(20,73,127,.14); }
.case-card summary {
  list-style: none; cursor: pointer; padding: 16px 18px; margin: 0 -26px; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  font-size: 16.5px; font-weight: 700; color: #16324f; background: #f6f9fc; border-bottom: 1px solid #d8e2ec;
}
.case-card summary::-webkit-details-marker { display: none; }
.case-card summary::marker { content: ''; }
.case-card summary:hover { color: var(--primary); background: #eef4fa; }
.case-toggle { flex: none; width: 22px; height: 2px; background: var(--accent); position: relative; }
.case-toggle::after { content: ''; position: absolute; left: 10px; top: -10px; width: 2px; height: 22px; background: var(--accent); transition: opacity .15s; }
.case-card[open] .case-toggle::after { opacity: 0; }
.case-body { padding: 18px 0 20px; }
.case-body p { margin: 0 0 12px; font-size: 15px; color: #46505c; }
.case-body p strong { color: #16324f; }
.case-body p:last-child { margin-bottom: 0; }
.case-note { font-size: 14px !important; color: var(--muted) !important; padding-top: 4px; border-top: 1px dashed var(--line); margin-top: 6px !important; }
.case-note a { color: var(--primary); }

/* 联系 */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 44px; }
.contact-form label { display: block; margin-bottom: 14px; font-size: 14.5px; color: #3a4653; }
.contact-form input, .contact-form select, .contact-form textarea {
  width: 100%; margin-top: 6px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; font-size: 15px; font-family: inherit;
}
.contact-form input:focus, .contact-form textarea:focus, .contact-form select:focus { outline: 2px solid rgba(20,73,127,.25); border-color: var(--primary); }
.ok-page { max-width: 560px; margin: 90px auto; text-align: center; }

/* 资讯 */
.tag-cloud { margin-bottom: 24px; font-size: 14.5px; }
.tag { display: inline-block; background: var(--bg-light); border: 1px solid var(--line); padding: 3px 12px; border-radius: 15px; font-size: 13.5px; margin: 0 6px 6px 0; color: var(--primary); }
.tag:hover { background: #e7eff7; text-decoration: none; }
.news-item { border-bottom: 1px solid var(--line); padding: 22px 4px; }
.news-item h3 { margin: 0 0 6px; font-size: 19px; }
.meta { color: var(--muted); font-size: 13.5px; margin-bottom: 8px; }
.digest { color: #46505c; }

/* 文章页 */
.article-wrap { max-width: 840px; }
.article-body { font-size: 16.5px; }
.article-body h2 { font-size: 24px; margin-top: 30px; }
.article-body h3 { font-size: 19px; }
.article-body a { text-decoration: underline; }
.article-qr { background: var(--bg-light); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; text-align: center; margin: 30px 0; }
.article-qr img { width: 150px; height: 150px; display: block; margin: 10px auto; }
.article-qr span { display: block; color: var(--muted); font-size: 14px; }
.related { margin-top: 26px; }
.related ul { margin-left: 20px; }
.related li { margin-bottom: 8px; }

/* 页脚 */
.site-footer { background: #0e2a47; color: #c8d4e0; padding: 50px 0 26px; margin-top: 40px; }
.site-footer h3 { color: #fff; font-size: 16px; margin-bottom: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 30px; }
.site-footer a { display: block; color: #c8d4e0; margin-bottom: 8px; font-size: 14.5px; }
.site-footer p { font-size: 13.5px; margin-bottom: 8px; }
.friendlinks { border-top: 1px solid rgba(255,255,255,.14); margin-top: 30px; padding-top: 22px; }
.friendlinks-list a { display: inline-block; margin-right: 18px; }
.friendlinks-list span { font-size: 13.5px; opacity: .7; }
.copyright { border-top: 1px solid rgba(255,255,255,.14); margin-top: 22px; padding-top: 20px; font-size: 13px; opacity: .85; }

/* 悬浮咨询 */
.float-contact { position: fixed; right: 18px; bottom: 90px; display: flex; flex-direction: column; gap: 12px; z-index: 60; }
.float-phone a, .float-phone { background: var(--primary); color: #fff; border-radius: 12px; padding: 12px 14px; text-align: center; font-size: 13px; box-shadow: 0 4px 14px rgba(10,40,80,.25); display: flex; flex-direction: column; align-items: center; gap: 2px; }
.float-phone span:first-child { font-size: 18px; }
.float-qr { background: #fff; border-radius: 12px; padding: 10px 12px; text-align: center; font-size: 13px; box-shadow: 0 4px 14px rgba(10,40,80,.18); width: 92px; }
.float-qr img { width: 64px; height: 64px; }
.float-qr span { color: var(--muted); }

/* 后台 */
.admin-body { background: var(--bg-light); }
.admin-header { background: var(--primary); color: #fff; padding: 14px 26px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.admin-header nav { display: flex; gap: 16px; flex-wrap: wrap; }
.admin-header a { color: #dfe9f3; font-size: 14.5px; }
.admin-wrap { max-width: 1000px; margin: 30px auto; padding: 0 20px; }
.admin-wrap h1 { margin-bottom: 18px; }
.admin-login { max-width: 380px; margin: 90px auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 34px; }
.admin-login h1 { font-size: 20px; margin-bottom: 18px; }
.admin-login label { display: block; margin-bottom: 14px; font-size: 14.5px; }
.admin-login input { width: 100%; margin-top: 6px; padding: 10px; border: 1px solid var(--line); border-radius: 8px; font-size: 15px; }
.admin-login .btn { width: 100%; margin-top: 8px; }
.admin-login .back { display: block; margin-top: 16px; font-size: 14px; }
.err { color: #c0392b; margin-bottom: 12px; }
.admin-form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.admin-form label { display: block; margin-bottom: 14px; font-size: 14.5px; }
.admin-form input, .admin-form select, .admin-form textarea {
  width: 100%; margin-top: 6px; padding: 10px; border: 1px solid var(--line); border-radius: 8px; font-size: 15px; font-family: inherit;
}
.toolbar { margin: 6px 0 10px; }
.toolbar button { background: var(--bg-light); border: 1px solid var(--line); border-radius: 6px; padding: 7px 13px; margin-right: 8px; cursor: pointer; font-size: 14px; }
.toolbar button:hover { background: #e7eff7; }
.hint { color: var(--muted); font-size: 13.5px; margin: 10px 0 18px; }
.link-btn { background: none; border: none; color: var(--primary); cursor: pointer; font-size: 14px; padding: 0; }
.link-btn:hover { text-decoration: underline; }

/* 富文本编辑器 */
.rte { min-height: 680px; border: 1px solid var(--line); border-radius: 8px; padding: 24px 28px; background: #fff; outline: none; font-size: 16px; line-height: 1.9; }
.rte:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(20,73,127,.08); }
.rte:empty::before { content: '在此输入正文内容…'; color: #a0a8b2; }
.rte h2 { font-size: 22px; margin: 22px 0 10px; }
.rte h3 { font-size: 18px; margin: 18px 0 8px; }
.rte p { margin-bottom: 12px; }
.rte ul, .rte ol { margin: 10px 0 14px 24px; }
.rte a { color: var(--primary); text-decoration: underline; }
.modal-mask { position: fixed; inset: 0; background: rgba(14,42,71,.5); z-index: 200; align-items: center; justify-content: center; padding: 20px; }
.modal-box { background: #fff; border-radius: 12px; padding: 26px 30px; width: 100%; max-width: 520px; max-height: 88vh; overflow-y: auto; box-shadow: 0 12px 40px rgba(0,0,0,.2); }
.modal-box h2 { font-size: 20px; margin: 0 0 8px; }
.modal-box .hint { margin: 0 0 14px; }
.anchor-options { display: flex; flex-direction: column; gap: 8px; max-height: 320px; overflow-y: auto; }
.anchor-option { display: flex; align-items: center; gap: 10px; margin: 0 !important; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; font-size: 15px !important; }
.anchor-option:hover { background: var(--bg-light); }
.anchor-option input { width: auto !important; margin: 0 !important; }
.anchor-option span { display: flex; flex-direction: column; }
.anchor-option strong { font-weight: 600; color: #1c2733; }
.anchor-option small { color: var(--muted); font-size: 12px; }
.custom-anchor { display: block; margin: 14px 0 0 !important; font-size: 14px !important; }
.modal-actions { display: flex; justify-content: flex-end; gap: 12px; margin-top: 20px; }

/* 移动端自适应 */
@media (max-width: 860px) {
  .header-inner { flex-wrap: wrap; height: auto; padding: 10px 0; }
  .nav-toggle { display: block; margin-left: auto; }
  .site-nav { display: none; width: 100%; flex-direction: column; order: 4; padding-bottom: 10px; }
  .site-nav a { padding: 10px 12px; border-bottom: 1px solid var(--line); }
  body.nav-open .site-nav { display: flex; }
  .header-phone { display: none; }
  .hero { padding: 44px 0; }
  .hero h1 { font-size: 25px; }
  .hero-inner { flex-direction: column; align-items: flex-start; }
  .cards3, .cards4 { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-band-inner { flex-direction: column; align-items: flex-start; }
  h2 { font-size: 22px; }
  .page-head h1 { font-size: 22px; }
  .table { display: block; overflow-x: auto; }
  .float-contact { bottom: 16px; }
  .section { padding: 38px 0; }
}
