/* ============================================================
   财税通企业服务 - 前台样式
   主色：#1c5ea8（商务蓝） 辅色：#e8a33d（金色）
   ============================================================ */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", "Helvetica Neue", Arial, sans-serif;
  color: #333; background: #f7f8fa; line-height: 1.7; font-size: 15px;
}
a { color: #1c5ea8; text-decoration: none; }
a:hover { color: #e8a33d; }
img { max-width: 100%; }
ul { list-style: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 16px; }

/* ---------- 顶部条 ---------- */
.topbar { background: #15385e; color: #cfe0f2; font-size: 13px; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; height: 34px; }
.topbar b { color: #ffd68a; font-size: 14px; }

/* ---------- 页头 ---------- */
.header-main { display: flex; align-items: center; justify-content: space-between; padding: 16px; }
.logo { display: flex; align-items: center; gap: 10px; }
.logo a { display: flex; align-items: center; }
.site-logo { max-width: 220px; max-height: 64px; width: auto; height: auto; object-fit: contain; display: block; }
.logo-icon {
  width: 60px; height: 50px; border-radius: 8px; background: linear-gradient(135deg, #1c5ea8, #e8a33d);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
  font-size: 28px; color: #fff;
}
.logo-icon img { width: 100%; height: 100%; object-fit: contain; display: block; }
.logo-text { font-size: 22px; font-weight: 700; color: #15385e; }
.main-nav { display: flex; gap: 4px; flex-wrap: wrap; }
.main-nav a {
  padding: 8px 14px; border-radius: 6px; color: #3a4a5c; font-weight: 500;
}
.main-nav a:hover { background: #eaf2fb; color: #1c5ea8; }
.main-nav a.active { background: #1c5ea8; color: #fff; }
.nav-toggle { display: none; font-size: 24px; cursor: pointer; }

/* ---------- 主视觉 ---------- */
.hero { position: relative; color: #fff; padding: 72px 0; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  transform: scale(1.02);
}
.hero-mask {
  position: absolute; inset: 0;
  background: linear-gradient(110deg, rgba(18,58,102,.88) 0%, rgba(18,58,102,.55) 45%, rgba(18,58,102,.25) 100%);
}
.hero-inner { position: relative; display: flex; gap: 40px; align-items: center; }
.hero-text { flex: 1.6; }
.hero h1 { font-size: 36px; margin-bottom: 14px; }
.hero-sub { font-size: 18px; color: #ffd68a; margin-bottom: 14px; }
.hero-desc { color: #d5e4f5; margin-bottom: 24px; max-width: 640px; }
.hero-actions { display: flex; gap: 14px; }
.hero-consult { flex: 1; }
.consult-card { background: #fff; color: #333; border-radius: 12px; padding: 26px; box-shadow: 0 10px 30px rgba(0,0,0,.18); }
.consult-card h3 { color: #15385e; margin-bottom: 6px; }
.consult-phone { font-size: 26px; font-weight: 700; color: #e8a33d; margin: 10px 0 4px; }
.consult-time { color: #888; font-size: 13px; margin-bottom: 14px; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-block; padding: 10px 24px; border-radius: 6px; border: 1px solid transparent;
  font-size: 15px; cursor: pointer; text-align: center; transition: all .2s;
}
.btn-primary { background: #1c5ea8; color: #fff; }
.btn-primary:hover { background: #174e8d; color: #fff; }
.btn-outline { border-color: rgba(255,255,255,.7); color: #fff; }
.btn-outline:hover { background: rgba(255,255,255,.15); color: #fff; }
.btn-light { background: #fff; color: #1c5ea8; }
.btn-light:hover { background: #eaf2fb; }
.btn-block { display: block; width: 100%; }

/* ---------- 通用区块 ---------- */
.section { padding: 48px 0; }
.section-gray { background: #eef1f5; }
.section-head { text-align: center; margin-bottom: 32px; }
.section-head h2 { font-size: 26px; color: #15385e; }
.section-head p { color: #7a8794; margin-top: 6px; }
.section-head.light h2, .section-head.light p { color: #fff; }
.section-head.light p { color: #cfe0f2; }
.section-head .section-more { position: relative; }
.section-head .section-more a { color: #1c5ea8; font-size: 14px; font-weight: 600; }
.section-head.light .section-more a { color: #fff; }

/* ---------- 业务卡片 ---------- */
.biz-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.biz-card {
  background: #fff; border-radius: 10px; padding: 24px 18px; text-align: center;
  box-shadow: 0 2px 10px rgba(20,60,110,.06); transition: all .25s; border: 1px solid #eef1f5;
}
.biz-card:hover { transform: translateY(-4px); box-shadow: 0 10px 24px rgba(20,60,110,.14); border-color: #1c5ea8; }
.biz-img { width: 100%; height: 118px; border-radius: 8px; overflow: hidden; margin-bottom: 12px; border: 1px solid #eef1f5; }
.biz-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.biz-card:hover .biz-img img { transform: scale(1.05); }
.biz-icon { font-size: 30px; margin-bottom: 10px; }
.biz-card h3 { font-size: 17px; color: #15385e; margin-bottom: 8px; }
.biz-card p { color: #7a8794; font-size: 13px; height: 54px; overflow: hidden; }
.biz-more { color: #1c5ea8; font-size: 13px; font-weight: 600; }

/* ---------- 海南自贸港 ---------- */
.section-hn { background: linear-gradient(120deg, #0e3a2c, #187a5c 60%, #1d9d74); }
.hn-banner { margin-bottom: 30px; border-radius: 14px; overflow: hidden; box-shadow: 0 12px 30px rgba(0,0,0,.28); border: 2px solid rgba(255,255,255,.25); }
.hn-banner img { width: 100%; display: block; }
.hn-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 32px; }
.hn-main h3 { color: #bff0dd; font-size: 22px; margin-bottom: 10px; }
.hn-main p { color: #e3f6ee; margin-bottom: 16px; }
.hn-points { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 20px; margin-top: 18px; }
.hn-points li { color: #bff0dd; padding-left: 18px; position: relative; }
.hn-points li::before { content: "✔"; position: absolute; left: 0; color: #ffd68a; }
.hn-news { background: rgba(255,255,255,.1); border-radius: 10px; padding: 18px 22px; backdrop-filter: blur(2px); }
.hn-news h3 { color: #ffd68a; margin-bottom: 12px; }
.hn-news li { border-bottom: 1px dashed rgba(255,255,255,.25); padding: 7px 0; display: flex; justify-content: space-between; gap: 8px; }
.hn-news a { color: #e3f6ee; font-size: 14px; }
.hn-news span { color: #9fd8c3; font-size: 12px; white-space: nowrap; }

/* ---------- 资讯 ---------- */
.news-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.news-col { background: #fff; border-radius: 10px; padding: 18px; box-shadow: 0 2px 8px rgba(20,60,110,.05); }
.news-title { font-size: 16px; border-left: 4px solid #1c5ea8; padding-left: 10px; margin-bottom: 12px; }
.news-title a { color: #15385e; display: flex; justify-content: space-between; }
.news-title span { font-size: 12px; color: #9aa7b4; font-weight: 400; }
.news-list li { border-bottom: 1px dashed #e8edf2; padding: 8px 0; display: flex; justify-content: space-between; gap: 8px; }
.news-list a { color: #3a4a5c; font-size: 14px; }
.news-list .date { color: #9aa7b4; font-size: 12px; white-space: nowrap; }
.empty { color: #9aa7b4; padding: 12px 0; }

/* ---------- 案例 ---------- */
.case-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.case-grid.big { grid-template-columns: repeat(2, 1fr); }
.case-card {
  background: #fff; border-radius: 10px; padding: 20px; box-shadow: 0 2px 8px rgba(20,60,110,.05);
  border-top: 3px solid transparent; transition: all .25s; display: block;
}
.case-card:hover { border-top-color: #e8a33d; box-shadow: 0 8px 20px rgba(20,60,110,.12); }
.case-tag { display: inline-block; background: #eaf2fb; color: #1c5ea8; font-size: 12px; border-radius: 4px; padding: 2px 10px; margin-bottom: 10px; }
.case-card h3 { color: #15385e; font-size: 16px; margin-bottom: 8px; }
.case-card p { color: #7a8794; font-size: 13px; }
.case-card.big { padding: 26px; }
.case-date { color: #9aa7b4; font-size: 12px; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 900px; margin: 0 auto; }
.faq-item { background: #fff; border-radius: 8px; margin-bottom: 10px; box-shadow: 0 1px 6px rgba(20,60,110,.05); overflow: hidden; }
.faq-q { padding: 14px 20px; cursor: pointer; font-weight: 600; color: #15385e; display: flex; justify-content: space-between; align-items: center; }
.faq-icon { color: #1c5ea8; font-size: 20px; font-weight: 400; transition: transform .2s; }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-a { display: none; padding: 0 20px 16px; color: #5c6b7a; }
.faq-item.open .faq-a { display: block; }

/* ---------- 财税知识库 ---------- */
.knowledge-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.knowledge-card { display: block; background: #fff; border: 1px solid #e8edf2; border-radius: 10px; padding: 20px; text-decoration: none; transition: box-shadow .2s, transform .2s; }
.knowledge-card:hover { box-shadow: 0 6px 18px rgba(20,60,110,.10); transform: translateY(-2px); }
.knowledge-card h3 { font-size: 17px; color: #1c5ea8; margin-bottom: 10px; }
.knowledge-card p { font-size: 13px; color: #666; line-height: 1.6; margin-bottom: 12px; }
.knowledge-card .k-meta { font-size: 12px; color: #999; }
.knowledge-more { display: inline-block; margin-top: 20px; color: #1c5ea8; font-weight: 600; }

/* ---------- 服务流程 ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.step { background: #fff; border-radius: 10px; padding: 22px; text-align: center; box-shadow: 0 2px 8px rgba(20,60,110,.05); }
.step b { font-size: 30px; color: #e8a33d; }
.step h4 { color: #15385e; margin: 8px 0; font-size: 16px; }
.step p { color: #7a8794; font-size: 13px; }

/* ---------- 页面主体 ---------- */
.page-wrap { padding: 30px 0 48px; }
.crumbs { font-size: 13px; color: #9aa7b4; margin-bottom: 18px; }
.crumbs a { color: #7a8794; }
.layout { display: grid; grid-template-columns: 1fr 300px; gap: 24px; align-items: start; }
.layout-main { background: #fff; border-radius: 10px; padding: 26px; box-shadow: 0 2px 8px rgba(20,60,110,.05); }
.page-title { font-size: 22px; color: #15385e; border-left: 4px solid #1c5ea8; padding-left: 12px; margin-bottom: 20px; }

/* ---------- 子栏目导航 ---------- */
.subcat-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.subcat-nav a { display: inline-block; padding: 6px 16px; background: #fff; border: 1px solid #d9e2ec; border-radius: 20px; color: #4a5a6a; font-size: 14px; box-shadow: 0 1px 3px rgba(20,60,110,.05); }
.subcat-nav a:hover { border-color: #1c5ea8; color: #1c5ea8; }
.subcat-nav a.on { background: #1c5ea8; border-color: #1c5ea8; color: #fff; font-weight: 600; }

/* ---------- 文章列表 ---------- */
.art-list li { border-bottom: 1px solid #eef1f5; padding: 14px 0; }
.art-link { font-size: 16px; color: #2c3e50; font-weight: 500; }
.art-link:hover { color: #1c5ea8; }
.art-meta { color: #9aa7b4; font-size: 12px; margin-left: 10px; }
.art-type { color: #e8a33d; font-size: 13px; }
.art-desc { color: #7a8794; font-size: 13px; margin-top: 6px; }

/* ---------- 侧栏 ---------- */
.layout-side .side-box { background: #fff; border-radius: 10px; padding: 18px; margin-bottom: 16px; box-shadow: 0 2px 8px rgba(20,60,110,.05); }
.side-box h3 { font-size: 15px; color: #15385e; border-left: 3px solid #e8a33d; padding-left: 10px; margin-bottom: 12px; }
.side-box li { border-bottom: 1px dashed #eef1f5; padding: 7px 0; }
.side-box li a { color: #4a5a6a; font-size: 14px; }
.side-box li a.on { color: #1c5ea8; font-weight: 600; }
.side-box .big { font-size: 22px; color: #e8a33d; font-weight: 700; }
.side-contact { background: #f0f6fd; border: 1px solid #d9e7f6; }

/* ---------- 文章详情 ---------- */
.article-title { font-size: 26px; color: #15385e; line-height: 1.4; }
.article-meta { color: #9aa7b4; font-size: 13px; margin: 12px 0 20px; display: flex; gap: 16px; flex-wrap: wrap; }
.pseudo-tag { background: #fdf3e0; color: #b57b12; padding: 1px 8px; border-radius: 3px; }
.article-content { color: #3d4c5c; font-size: 15.5px; }
.article-content h3 { color: #15385e; font-size: 18px; margin: 22px 0 10px; }
.article-content p { margin-bottom: 14px; }
.article-content ul, .article-content ol { margin: 0 0 14px 22px; }
.article-content li { margin-bottom: 6px; }
.article-content img { border-radius: 8px; }
.article-source { color: #9aa7b4; font-size: 13px; border-top: 1px dashed #e8edf2; margin-top: 22px; padding-top: 12px; word-break: break-all; }
.related-box { margin-top: 28px; border-top: 1px solid #eef1f5; padding-top: 18px; }
.related-box h3 { font-size: 16px; color: #15385e; margin-bottom: 10px; }
.related-box li { padding: 7px 0; border-bottom: 1px dashed #eef1f5; display: flex; justify-content: space-between; gap: 10px; }
.related-box a { color: #4a5a6a; }
.related-box .date { color: #9aa7b4; font-size: 12px; }

/* ---------- CTA ---------- */
.cta-box { margin-top: 28px; background: #f0f6fd; border: 1px solid #d9e7f6; border-radius: 10px; padding: 22px; text-align: center; }
.cta-phone { font-size: 24px; font-weight: 700; color: #e8a33d; margin: 6px 0 12px; }

/* ---------- 搜索 ---------- */
.search-form { display: flex; gap: 10px; margin-bottom: 18px; }
.search-form input {
  flex: 1; padding: 12px 16px; border: 1px solid #d5dde5; border-radius: 6px; font-size: 15px; outline: none;
}
.search-form input:focus { border-color: #1c5ea8; }
.search-info { color: #7a8794; margin-bottom: 10px; }

/* ---------- 404 ---------- */
.notfound { text-align: center; padding: 80px 0; }
.notfound h1 { font-size: 72px; color: #d5dde5; }
.notfound p { color: #7a8794; margin-bottom: 14px; }

/* ---------- 分页 ---------- */
.pager { margin-top: 24px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pager a, .pager .current {
  padding: 6px 13px; border-radius: 5px; background: #eef1f5; color: #3a4a5c; font-size: 14px;
}
.pager .current { background: #1c5ea8; color: #fff; }
.pager a:hover { background: #dbe7f5; }
.pager-info { color: #9aa7b4; font-size: 13px; margin-right: 8px; }

/* ---------- GEO 摘要 ---------- */
.geo-summary { max-width: 1200px; margin: 0 auto; padding: 0 16px; }

/* ---------- 页脚 ---------- */
.site-footer { background: #15385e; color: #b8c9dc; margin-top: 20px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 30px; padding: 40px 16px 30px; }
.footer-col h4 { color: #fff; font-size: 16px; margin-bottom: 14px; }
.footer-col p { font-size: 13.5px; margin-bottom: 6px; }
.footer-col ul li { padding: 5px 0; }
.footer-col a { color: #b8c9dc; font-size: 14px; }
.footer-col a:hover { color: #ffd68a; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 16px 0; font-size: 13px; }
.footer-bottom .container { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.footer-bottom .icp { color: #8ba3ba; }

/* ---------- 响应式 ---------- */
@media (max-width: 1199px) {
  .container { padding: 0 20px; }
  .biz-grid { grid-template-columns: repeat(2, 1fr); }
  .news-grid { grid-template-columns: repeat(2, 1fr); }
  .case-grid { grid-template-columns: repeat(2, 1fr); }
  .hn-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: 32px; }
  .hero-sub { font-size: 16px; }
  .hero { padding: 56px 0; }
}
@media (max-width: 767px) {
  .biz-grid { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: 1fr; }
  .case-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .nav-toggle { display: block; }
  .main-nav {
    display: none; position: absolute; left: 16px; right: 16px; top: 96px; background: #fff;
    border-radius: 8px; box-shadow: 0 10px 30px rgba(0,0,0,.15); padding: 10px; z-index: 99;
    flex-direction: column;
  }
  .main-nav.open { display: flex; }
  .hero-inner { flex-direction: column; }
  .hero { padding: 40px 0; }
  .hero h1 { font-size: 24px; margin-bottom: 10px; }
  .hero-sub { font-size: 14px; margin-bottom: 10px; }
  .hero-desc { font-size: 13px; margin-bottom: 16px; }
  .hero-actions { flex-direction: column; gap: 8px; }
  .hero-actions .btn { text-align: center; }
  .section-head h2 { font-size: 22px; }
  .section-head p { font-size: 14px; }
  .topbar .container { flex-direction: column; height: auto; padding: 6px 16px; gap: 2px; text-align: center; }
  .logo-text { font-size: 18px; }
  .consult-card { padding: 18px; }
  .consult-phone { font-size: 22px; }
}