/* =====================================================================
   合规圈 heguiquan.com 主样式
   主色 #2ea06f
   ===================================================================== */
* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --green: #2ea06f;
  --green-dark: #279063;
  --green-light: #34b07a;
  --gray-bar: #6f6f6f;
  --bg: #f2f2f2;
  --text: #333;
  --text-light: #777;
  --border: #e5e5e5;
}
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  font-size: 14px; color: var(--text); background: var(--bg); line-height: 1.7;
}
a { color: #333; text-decoration: none; transition: color .2s; }
a:hover { color: var(--green); }
img { max-width: 100%; border: 0; vertical-align: middle; }
ul, ol { list-style: none; }
h1,h2,h3,h4 { font-weight: 600; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 15px; }

/* 按钮 */
.btn {
  display: inline-block; padding: 7px 20px; font-size: 13px; cursor: pointer;
  border: 1px solid var(--green); text-align: center; line-height: 1.4;
}
.btn-detail { background: var(--green); color: #fff; }
.btn-detail:hover { background: var(--green-dark); color: #fff; }
.btn-consult { background: #fff; color: var(--green); }
.btn-consult:hover { background: var(--green); color: #fff; }
.btn-outline { background: #fff; color: var(--green); }
.btn-outline:hover { background: var(--green); color: #fff; }

/* ---------- 顶部条 ---------- */
.top-bar { background: var(--gray-bar); color: #e8e8e8; font-size: 13px; }
.top-bar-inner { display: flex; justify-content: space-between; align-items: center; height: 38px; }
.top-links a { color: #e8e8e8; margin-left: 18px; }
.top-links a:hover { color: #fff; }

/* ---------- Logo 区 ---------- */
.header { background: #fff; padding: 22px 0; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 64px; height: 64px; border-radius: 50%;
  background: linear-gradient(135deg, #1d3a8a, #2b56b8);
  color: #ffd24a; font-weight: 700; font-size: 15px;
  border: 3px solid #ff9d2e; position: relative;
}
.logo-badge.sm { width: 72px; height: 72px; font-size: 13px; border-width: 2px; }
.logo-text { font-size: 38px; font-weight: 800; color: #1d3a8a; letter-spacing: 4px; }
.logo-img { height: 52px; width: auto; display: block; }
.header-slogan { flex: 1; padding-left: 28px; border-left: 1px solid var(--border); }
.slogan-main { font-size: 24px; color: #222; font-weight: 700; }
.slogan-sub { font-size: 14px; color: var(--text-light); margin-top: 4px; }
.header-contact { text-align: right; flex-shrink: 0; }
.hc-label { color: #999; font-size: 14px; }
.hc-tele { display: inline-flex; align-items: center; gap: 6px; color: #2b9fd4; font-size: 16px; margin-top: 8px; }
.tele-ico {
  display: inline-flex; width: 22px; height: 22px; border-radius: 50%;
  background: #2b9fd4; color: #fff; align-items: center; justify-content: center; font-size: 12px; font-style: normal;
}

/* ---------- 主导航 ---------- */
.main-nav { background: var(--green); }
.nav-menu { display: flex; }
.nav-menu li { flex: 1; text-align: center; position: relative; }
.nav-menu li a { display: block; padding: 15px 10px; color: #fff; font-size: 16px; }
.nav-menu li + li::before { content: ""; position: absolute; left: 0; top: 25%; height: 50%; width: 1px; background: rgba(255,255,255,.25); }
.nav-menu li.active a, .nav-menu li a:hover { background: var(--green-light); }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 10px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: #fff; margin: 5px 0; }

/* ---------- 热门关键词 ---------- */
.hot-keywords-bar { background: #fff; padding: 12px 0; border-bottom: 1px solid var(--border); }
.hk-label { color: var(--green); font-weight: 600; }
.hot-keywords-bar a { color: #555; margin: 0 8px; font-size: 13px; }
.hot-keywords-bar a:hover { color: var(--green); }

/* ---------- 主体布局 ---------- */
.main-body { padding-top: 22px; padding-bottom: 22px; }
.home-hero { border-radius: 8px; overflow: hidden; margin-bottom: 22px; box-shadow: 0 2px 12px rgba(0,0,0,.08); }
.home-hero img { width: 100%; height: auto; display: block; max-height: 340px; object-fit: cover; }
.content-wrap { display: flex; gap: 22px; align-items: flex-start; }
.sidebar { width: 270px; flex-shrink: 0; }
.content { flex: 1; min-width: 0; background: #fff; padding: 18px; }

/* 侧边栏 */
.side-box { background: #fff; margin-bottom: 22px; }
.side-title {
  background: var(--green); color: #fff; padding: 14px 18px;
}
.side-title.green { background: var(--green); }
.st-cn { display: block; font-size: 20px; font-weight: 600; }
.st-en { display: block; font-size: 12px; opacity: .9; margin-top: 2px; letter-spacing: 1px; }
.side-menu li { border-bottom: 1px solid var(--border); }
.side-menu li a { display: block; padding: 13px 18px; font-size: 15px; }
.side-menu li a:hover { color: var(--green); padding-left: 24px; }
.side-menu li.active a { color: var(--green); font-weight: 600; background: #f6fbf8; }

.side-service .service-poster { height: 120px; background: #eef4f1; display: flex; align-items: center; justify-content: center; font-size: 34px; overflow: hidden; }
.side-service .service-poster-img { width: 100%; height: 120px; object-fit: cover; display: block; }
.service-list { padding: 12px 18px; }
.service-list li { padding: 4px 0; color: #444; font-size: 13px; word-break: break-all; }
.service-list b { color: #333; }

/* ---------- 产品网格 ---------- */
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.product-card { background: #fff; box-shadow: 0 2px 12px rgba(0,0,0,.08); padding-bottom: 18px; text-align: center; }
.pc-thumb { height: 180px; background: #f7f7f7; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.pc-noimg { font-size: 48px; color: #c5d8cf; }
.pc-name { padding: 16px 10px 12px; font-size: 15px; min-height: 56px; display: flex; align-items: center; justify-content: center; }
.pc-actions { display: flex; gap: 10px; justify-content: center; }
.pc-actions .btn { padding: 6px 16px; }

/* ---------- CTA 横幅 ---------- */
.cta-banner { background: var(--green); color: #fff; text-align: center; padding: 40px 15px; margin: 26px 0; }
.cta-title { font-size: 32px; font-weight: 700; }
.cta-sub { font-size: 20px; margin-top: 12px; opacity: .95; }
.cta-sub a { color: #fff; text-decoration: underline; }
.cta-sub a:hover { color: #fff; opacity: .85; }

/* ---------- 通用首页板块 ---------- */
.home-section { background: var(--bg); padding: 36px 0; }
.section-title { text-align: center; font-size: 30px; color: var(--green); }
.section-subtitle { text-align: center; color: #555; font-size: 16px; letter-spacing: 2px; margin-top: 6px; }
.section-more { text-align: center; margin-top: 26px; }

.advantage-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 30px; max-width: 1200px; margin-left: auto; margin-right: auto; padding: 0 15px; }
.advantage-grid.full { padding: 0; }
.advantage-card { background: #fff; padding: 22px 18px; box-shadow: 0 2px 10px rgba(0,0,0,.06); text-align: center; }
.ac-title { color: var(--green); font-size: 16px; line-height: 1.5; min-height: 50px; display: flex; align-items: center; justify-content: center; }
.ac-desc { color: #666; font-size: 13px; margin-top: 12px; text-align: left; }
.ac-badge { margin-top: 18px; display: flex; justify-content: center; }

/* 关于条 */
.about-strip { background: var(--bg); padding-bottom: 40px; }
.about-strip-head { background: #7fc3a4; color: #fff; text-align: center; padding: 22px; max-width: 1200px; margin: 0 auto; }
.about-strip-head h2 { font-size: 28px; }
.about-strip-head p { margin-top: 6px; }
.about-strip-body { display: flex; gap: 26px; background: #fff; padding: 26px; margin-top: 22px; box-shadow: 0 2px 10px rgba(0,0,0,.06); align-items: center; }
.asb-img { flex-shrink: 0; }
.asb-placeholder { font-size: 120px; display: block; }
.asb-img-src, .ap-img-src { width: 280px; height: auto; border-radius: 6px; display: block; }
.asb-text p { color: #444; margin-bottom: 12px; text-indent: 2em; }

/* 首页新闻 */
.home-news-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 30px; }
.home-news-col { background: #fff; padding: 18px; }
.hnc-banner { display: block; margin-bottom: 14px; overflow: hidden; border-radius: 4px; }
.hnc-banner img { display: block; width: 100%; height: auto; aspect-ratio: 380 / 200; object-fit: cover; transition: transform .25s ease; }
.hnc-banner:hover img { transform: scale(1.04); }
.hnc-title { border-bottom: 2px solid var(--green); padding-bottom: 10px; margin-bottom: 10px; font-size: 17px; }
.hnc-list li { padding: 7px 0; display: flex; justify-content: space-between; align-items: center; gap: 8px; border-bottom: 1px dashed #eee; }
.hnc-list li a { flex: 1; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hnc-date { color: #999; font-size: 12px; flex-shrink: 0; }
.empty { color: #aaa; }

/* ---------- 列表页 ---------- */
.list-banner { height: 170px; background: linear-gradient(120deg,#cfe6db,#e8f2ee); margin: -18px -18px 18px; overflow: hidden; }
.list-banner img { width: 100%; height: 170px; object-fit: cover; display: block; }
.breadcrumb-bar { background: #f7f9f8; padding: 10px 14px; margin-bottom: 18px; font-size: 13px; color: #777; }
.bc-label { color: #555; }
.bc-sep { margin: 0 6px; color: #bbb; }
.bc-current { color: #333; }

.article-list .list-item { display: flex; align-items: center; gap: 16px; padding: 18px 4px; border-bottom: 1px solid var(--border); }
.li-date { width: 74px; flex-shrink: 0; text-align: center; background: #eef2f0; padding: 10px 4px; }
.ld-md { display: block; font-size: 20px; color: #444; font-weight: 600; }
.ld-y { display: block; font-size: 14px; color: #888; }
.li-body { flex: 1; min-width: 0; }
.li-title { font-size: 16px; font-weight: 600; margin-bottom: 6px; }
.li-summary { color: #777; font-size: 13px; }
.li-more { flex-shrink: 0; padding: 7px 16px; }
.li-thumb { flex-shrink: 0; width: 120px; }
.li-thumb img { width: 120px; height: 80px; object-fit: cover; border-radius: 6px; display: block; }
.empty-box { text-align: center; color: #999; padding: 50px 0; }

/* 分页 */
.pagination { text-align: center; padding: 26px 0 10px; }
.pagination a, .pagination span {
  display: inline-block; min-width: 38px; padding: 7px 12px; margin: 0 3px;
  border: 1px solid var(--border); color: #555;
}
.pagination a:hover { border-color: var(--green); color: var(--green); }
.pagination .current { background: var(--green); border-color: var(--green); color: #fff; }
.pagination .dots { border: 0; }

/* ---------- 详情页 ---------- */
.article-box { padding: 6px 4px; }
.article-title { font-size: 26px; text-align: center; line-height: 1.5; padding: 10px 0; }
.article-meta { text-align: center; color: #888; font-size: 13px; padding: 10px 0 18px; border-bottom: 1px solid var(--border); }
.article-meta em { font-style: normal; color: var(--green); }
.meta-sep { margin: 0 10px; color: #ddd; }
.article-body { padding: 22px 4px; font-size: 15px; color: #333; }
.article-body p { margin-bottom: 16px; line-height: 1.9; }
.article-body h2 { font-size: 19px; margin: 24px 0 14px; padding-left: 12px; border-left: 4px solid var(--green); }
.article-body h3 { font-size: 17px; margin: 20px 0 12px; }
.article-topimg { text-align: center; margin-bottom: 20px; }
.article-topimg img { max-width: 100%; }
.article-thumb { text-align: center; margin-bottom: 20px; }
.article-thumb img { max-width: 100%; max-height: 460px; width: auto; height: auto; object-fit: contain; border-radius: 8px; display: block; margin: 0 auto; }
.article-body img { max-width: 100%; max-height: 720px; height: auto; object-fit: contain; }
.article-tags { padding: 16px 4px; border-top: 1px solid var(--border); }
.tags-label { color: #888; }
.article-tags a { display: inline-block; background: #f0f6f3; color: var(--green); padding: 3px 12px; margin: 3px; font-size: 13px; border-radius: 3px; }
.prev-next { margin-top: 18px; background: #f7f9f8; padding: 14px 18px; }
.prev-next p { padding: 4px 0; color: #666; }

.recommend-box { margin-top: 24px; }
.rb-title { background: var(--green); color: #fff; padding: 10px 16px; font-size: 15px; }
.rb-list { border: 1px solid var(--border); border-top: 0; }
.rb-list li { display: flex; align-items: center; gap: 8px; padding: 10px 16px; border-bottom: 1px solid #f0f0f0; }
.rb-dot { color: var(--green); }
.rb-list li a { flex: 1; font-size: 14px; }
.rb-date { color: #999; font-size: 12px; flex-shrink: 0; }

/* 简单页面 */
.page-head { text-align: center; padding: 24px 0; }
.page-title { font-size: 28px; color: var(--green); }
.page-sub { color: #777; margin-top: 8px; }
.advantage-grid.full { grid-template-columns: repeat(2,1fr); }
.about-page { display: flex; gap: 24px; padding: 10px 0; align-items: flex-start; }
.ap-img { flex-shrink: 0; }
.ap-text p { color: #444; margin-bottom: 14px; text-indent: 2em; }

.contact-cards { display: grid; grid-template-columns: repeat(2,1fr); gap: 14px; margin-bottom: 26px; }
.contact-cards li { background: #f6fbf8; border: 1px solid #e0efe8; padding: 18px; }
.contact-cards b { display: block; color: var(--green); font-size: 15px; margin-bottom: 6px; }
.contact-cards span { color: #444; word-break: break-all; }
.search-form { display: flex; gap: 10px; }
.search-form input { flex: 1; padding: 11px 14px; border: 1px solid var(--border); font-size: 14px; }
.search-form button { background: var(--green); color: #fff; border: 0; padding: 0 30px; cursor: pointer; font-size: 15px; }
.search-form button:hover { background: var(--green-dark); }
.mb { margin-bottom: 20px; }
.search-result-tip { padding: 8px 0 16px; color: #555; }

/* 404 */
.error-page { background: var(--bg); }
.error-box { text-align: center; padding: 60px 20px; background: #fff; }
.error-code { font-size: 90px; color: var(--green); font-weight: 800; line-height: 1; }
.error-title { font-size: 22px; margin: 18px 0 10px; }
.error-desc { color: #888; }
.error-actions { margin-top: 26px; display: flex; gap: 14px; justify-content: center; }

/* ---------- 页脚 ---------- */
.footer-nav { background: var(--green); }
.footer-nav .container { display: flex; }
.footer-nav a { flex: 1; text-align: center; color: #fff; padding: 16px 0; font-size: 15px; }
.footer-nav a:hover { background: var(--green-light); color: #fff; }
.footer { background: #e6e6e6; padding: 34px 0; }
.footer-inner { display: flex; gap: 30px; align-items: center; justify-content: space-between; }
.footer-logo { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.footer-logo-img { height: 40px; width: auto; display: block; }
.footer-logo .logo-text { font-size: 30px; }
.footer-info { color: #555; font-size: 13px; }
.footer-info p { padding: 2px 0; }
.copyright { color: #333; margin-bottom: 6px; }
.icp a { color: #555; }
.qr-box { width: 110px; height: 110px; background: #fff; border: 6px solid #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 8px rgba(0,0,0,.15); }
.qr-placeholder { color: #aaa; font-size: 13px; }

.friend-links { background: #f7f7f7; padding: 14px 0; border-top: 1px solid var(--border); font-size: 13px; }
.fl-label { color: #777; }
.friend-links a { color: #666; margin: 0 8px; }
.friend-links a:hover { color: var(--green); }

/* =====================================================================
   响应式
   ===================================================================== */
@media (max-width: 992px) {
  .product-grid { grid-template-columns: repeat(2,1fr); }
  .advantage-grid { grid-template-columns: repeat(2,1fr); }
  .home-news-tabs { grid-template-columns: 1fr; }
  .header-slogan { display: none; }
}
@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .nav-menu { display: none; flex-direction: column; }
  .nav-menu.open { display: flex; }
  .nav-menu li + li::before { display: none; }
  .content-wrap { flex-direction: column; }
  .sidebar { width: 100%; }
  .about-strip-body, .about-page { flex-direction: column; }
  .footer-inner { flex-direction: column; text-align: center; }
  .header-inner { flex-wrap: wrap; }
  .header-contact { text-align: left; }
  .contact-cards { grid-template-columns: 1fr; }
  .article-list .list-item { flex-wrap: wrap; }
  .li-more { display: none; }
}
@media (max-width: 520px) {
  .product-grid, .advantage-grid, .advantage-grid.full { grid-template-columns: 1fr; }
  .logo-text { font-size: 28px; }
  .cta-title { font-size: 24px; }
  .cta-sub { font-size: 16px; }
  .article-title { font-size: 21px; }
}

/* ===== 文章目录 TOC ===== */
.toc-wrap { margin: 0 0 18px; }
.article-toc { background: #f6f9f7; border: 1px solid #e2ede7; border-left: 4px solid #2ea06f; border-radius: 6px; padding: 14px 18px; }
.article-toc .toc-title { font-weight: 700; color: #1f7a52; margin-bottom: 8px; }
.article-toc ol { margin: 0; padding-left: 20px; }
.article-toc li { margin: 4px 0; line-height: 1.5; }
.article-toc li.toc-lv3 { padding-left: 18px; list-style: circle; }
.article-toc a { color: #335; }
.article-toc a:hover { color: #2ea06f; }
.article-body h2, .article-body h3 { scroll-margin-top: 80px; }
.internal-link { color: #1f7a52; border-bottom: 1px dashed #2ea06f; }
.article-topimg { margin: 0 0 18px; text-align: center; }
.article-topimg img { max-width: 100%; height: auto; border-radius: 6px; }
