/* ========================================
   design_glacier - 冰川蓝·清爽科技
   ======================================== */
:root {
  --primary: #0891b2;
  --secondary: #e0f2fe;
  --accent: #06b6d4;
  --bg: #ecfeff;
  --text: #164e63;
  --text-light: #64748b;
  --border: #cffafe;
  --radius: 8px;
  --transition: 0.3s ease;
  --shadow: 0 1px 4px rgba(8,145,178,0.08);
  --shadow-lg: 0 8px 30px rgba(8,145,178,0.15);
  --max-width: 1200px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", sans-serif;
  color: var(--text); background: #fff; line-height: 1.6; font-size: 16px;
}
a { color: var(--accent); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary); }
img { max-width: 100%; height: auto; }
ul, ol { list-style: none; }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 16px; }
.section { padding: 64px 0; }
.section-title { font-size: 28px; font-weight: 700; color: var(--primary); margin-bottom: 8px; text-align: center; }
.section-subtitle { font-size: 16px; color: var(--text-light); margin-bottom: 40px; text-align: center; }
.breadcrumb { padding: 12px 0; font-size: 14px; color: var(--text-light); }
.breadcrumb a { color: var(--text-light); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .sep { margin: 0 8px; color: var(--border); }
.page-header { padding: 48px 0 32px; text-align: center; }
.page-header h1 { font-size: 32px; color: var(--primary); }
.content-with-sidebar { display: flex; gap: 32px; }
.main-content { flex: 1; min-width: 0; }
.sidebar { width: 320px; flex-shrink: 0; }
.side-nav { background: var(--bg); border-radius: var(--radius); padding: 24px; }
.side-nav h4 { font-size: 18px; color: var(--primary); margin-bottom: 12px; }
.side-nav a { display: block; padding: 8px 0; color: var(--text-light); font-size: 15px; border-bottom: 1px solid var(--border); }
.side-nav a:last-child { border-bottom: none; }
.side-nav a:hover { color: var(--accent); }
.widget { background: var(--bg); border-radius: var(--radius); padding: 24px; margin-bottom: 24px; }
.widget h4 { font-size: 18px; color: var(--primary); margin-bottom: 16px; padding-bottom: 8px; border-bottom: 2px solid var(--accent); }
.hot-list li { padding: 10px 0; border-bottom: 1px solid var(--border); }
.hot-list li:last-child { border-bottom: none; }
.hot-list a { font-size: 15px; color: var(--text); }
.hot-list a:hover { color: var(--accent); }
.hot-list .hot-num { display: inline-block; width: 20px; height: 20px; line-height: 20px; text-align: center; background: var(--border); color: var(--text-light); border-radius: 4px; font-size: 12px; margin-right: 8px; }
.hot-list li:nth-child(1) .hot-num, .hot-list li:nth-child(2) .hot-num, .hot-list li:nth-child(3) .hot-num { background: var(--accent); color: #fff; }
.article-list { display: flex; flex-direction: column; gap: 20px; }
.article-item { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: var(--transition); }
.article-item:hover { border-color: var(--accent); box-shadow: var(--shadow-lg); }
.article-item-img { width: 100%; height: 200px; background: linear-gradient(135deg, var(--secondary), var(--bg)); display: flex; align-items: center; justify-content: center; }
.article-item-img svg { width: 48px; height: 48px; fill: var(--text-light); opacity: 0.4; }
.article-item-body { padding: 24px; }
.article-item .cat-tag { display: inline-block; font-size: 13px; color: var(--accent); background: rgba(6,182,212,0.08); padding: 2px 10px; border-radius: 4px; margin-bottom: 8px; }
.article-item h3 { font-size: 20px; margin-bottom: 8px; }
.article-item h3 a { color: var(--text); }
.article-item h3 a:hover { color: var(--accent); }
.article-item .summary { color: var(--text-light); font-size: 14px; margin-bottom: 12px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.article-item .meta { font-size: 13px; color: var(--text-light); display: flex; flex-wrap: wrap; gap: 16px; }
.article-item .meta span { display: flex; align-items: center; gap: 4px; }
.meta { font-size: 14px; color: var(--text-light); }
.meta span { margin-right: 16px; }
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 32px; }
.pagination a, .pagination span { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 12px; border: 1px solid var(--border); border-radius: var(--radius); font-size: 14px; color: var(--text); transition: var(--transition); }
.pagination a:hover { border-color: var(--accent); color: var(--accent); }
.pagination span.active { background: var(--accent); color: #fff; border-color: var(--accent); }
.empty { text-align: center; padding: 64px 0; color: var(--text-light); font-size: 16px; }

/* ========== Header ========== */
.header { background: #fff; border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 100; }
.header-inner { display: flex; align-items: center; justify-content: space-between; max-width: var(--max-width); margin: 0 auto; padding: 0 16px; height: 64px; }
.logo { font-size: 22px; font-weight: 700; color: var(--primary); }
.logo a { color: var(--primary); }
.logo a:hover { color: var(--accent); }
.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a { display: block; padding: 8px 16px; font-size: 15px; color: var(--text); border-radius: var(--radius); transition: var(--transition); white-space: nowrap; }
.main-nav a:hover { color: var(--accent); background: var(--bg); }
.main-nav a.active { color: var(--accent); font-weight: 600; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--primary); border-radius: 2px; transition: var(--transition); }

/* ========== Hero轮播3屏 - 方案C ========== */
.hero { position: relative; min-height: 480px; overflow: hidden; }
.carousel-slide { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; text-align: center; color: #fff; opacity: 0; transition: opacity 0.8s ease; }
.carousel-slide.active { opacity: 1; z-index: 1; }
.carousel-slide:nth-child(1) { background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 50%, #22d3ee 100%); }
.carousel-slide:nth-child(2) { background: linear-gradient(135deg, #0e7490 0%, var(--primary) 50%, var(--accent) 100%); }
.carousel-slide:nth-child(3) { background: linear-gradient(135deg, var(--accent) 0%, #22d3ee 50%, #67e8f9 100%); }
.carousel-slide .slide-content { max-width: 600px; padding: 0 16px; }
.carousel-slide h2 { font-size: 38px; font-weight: 800; margin-bottom: 12px; text-shadow: 0 2px 8px rgba(0,0,0,0.15); }
.carousel-slide p { font-size: 18px; opacity: 0.9; margin-bottom: 28px; }
.carousel-slide .slide-btn { display: inline-block; padding: 12px 32px; background: #fff; color: var(--primary); border-radius: var(--radius); font-size: 16px; font-weight: 600; transition: var(--transition); }
.carousel-slide .slide-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.2); }
.carousel-dots { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; z-index: 2; }
.carousel-dot { width: 12px; height: 12px; border-radius: 50%; background: rgba(255,255,255,0.4); border: none; cursor: pointer; transition: var(--transition); }
.carousel-dot.active { background: #fff; transform: scale(1.2); }
.carousel-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,0.2); border: none; color: #fff; font-size: 20px; cursor: pointer; transition: var(--transition); display: flex; align-items: center; justify-content: center; }
.carousel-arrow:hover { background: rgba(255,255,255,0.35); }
.carousel-prev { left: 24px; }
.carousel-next { right: 24px; }

/* ========== 业务优势 - 双列6项含进度条式数据可视化 ========== */
.advantages { background: linear-gradient(180deg, #fff 0%, var(--bg) 100%); }
.adv-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; max-width: 900px; margin: 0 auto; }
.adv-card { display: flex; gap: 20px; padding: 28px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); transition: var(--transition); }
.adv-card:hover { border-color: var(--accent); box-shadow: var(--shadow-lg); }
.adv-icon { width: 56px; height: 56px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), var(--accent)); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.adv-icon svg { width: 26px; height: 26px; fill: #fff; }
.adv-info { flex: 1; }
.adv-info h3 { font-size: 18px; color: var(--text); margin-bottom: 4px; }
.adv-info p { font-size: 14px; color: var(--text-light); margin-bottom: 12px; }
.adv-bar { height: 6px; background: var(--border); border-radius: 3px; overflow: hidden; }
.adv-bar-fill { height: 100%; border-radius: 3px; transition: width 1s ease; }
.adv-card:nth-child(1) .adv-bar-fill { background: var(--accent); width: 95%; }
.adv-card:nth-child(2) .adv-bar-fill { background: #22d3ee; width: 90%; }
.adv-card:nth-child(3) .adv-bar-fill { background: var(--primary); width: 88%; }
.adv-card:nth-child(4) .adv-bar-fill { background: var(--accent); width: 92%; }
.adv-card:nth-child(5) .adv-bar-fill { background: #22d3ee; width: 85%; }
.adv-card:nth-child(6) .adv-bar-fill { background: var(--primary); width: 93%; }

/* ========== 服务分类 - 3列卡片hover浮起+阴影 ========== */
.service-cats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service-cat-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 32px 24px; text-align: center; transition: transform 0.35s ease, box-shadow 0.35s ease; }
.service-cat-card:hover { transform: translateY(-8px); box-shadow: 0 16px 40px rgba(8,145,178,0.2); border-color: var(--accent); }
.service-cat-card .cat-icon { width: 64px; height: 64px; margin: 0 auto 20px; border-radius: 50%; background: linear-gradient(135deg, var(--secondary), var(--bg)); display: flex; align-items: center; justify-content: center; }
.service-cat-card .cat-icon svg { width: 32px; height: 32px; fill: var(--accent); }
.service-cat-card .cat-name { font-size: 20px; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.service-cat-card .cat-name a { color: var(--text); }
.service-cat-card .cat-name a:hover { color: var(--accent); }
.service-cat-card .cat-desc { font-size: 14px; color: var(--text-light); margin-bottom: 20px; }
.service-cat-card .cat-articles { border-top: 1px solid var(--border); padding-top: 16px; text-align: left; }
.service-cat-card .cat-articles li { padding: 4px 0; font-size: 13px; }
.service-cat-card .cat-articles li::before { content: '▸'; color: var(--accent); margin-right: 6px; }
.service-cat-card .cat-articles a { color: var(--text-light); }
.service-cat-card .cat-articles a:hover { color: var(--accent); }

/* ========== 最新资讯 - 2大+1小混合网格 ========== */
.news-masonry { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 24px; }
.news-masonry .news-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: var(--transition); }
.news-masonry .news-card:hover { border-color: var(--accent); box-shadow: var(--shadow-lg); }
.news-masonry .news-card:nth-child(1),
.news-masonry .news-card:nth-child(2) { grid-row: span 1; }
.news-card-img { height: 180px; background: linear-gradient(135deg, var(--secondary), var(--bg)); display: flex; align-items: center; justify-content: center; }
.news-card-img svg { width: 44px; height: 44px; fill: var(--text-light); opacity: 0.4; }
.news-card-body { padding: 20px; }
.news-card .cat-tag { font-size: 12px; color: var(--accent); margin-bottom: 6px; display: block; }
.news-card h3 { font-size: 17px; margin-bottom: 8px; line-height: 1.4; }
.news-card h3 a { color: var(--text); }
.news-card h3 a:hover { color: var(--accent); }
.news-card p { font-size: 13px; color: var(--text-light); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-card .time { font-size: 12px; color: var(--text-light); margin-top: 10px; }
.news-masonry .news-card:nth-child(3) .news-card-img { height: 120px; }
.news-masonry .news-card:nth-child(n+4) .news-card-img { height: 120px; }

/* ========== CTA - 青蓝渐变 ========== */
.cta { background: linear-gradient(135deg, var(--primary), var(--accent), #22d3ee); text-align: center; padding: 72px 0; }
.cta h2 { font-size: 32px; color: #fff; margin-bottom: 12px; }
.cta p { font-size: 16px; color: rgba(255,255,255,0.85); margin-bottom: 28px; }
.cta-buttons { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }
.cta-btn { display: inline-block; padding: 14px 36px; border-radius: var(--radius); font-size: 16px; font-weight: 600; transition: var(--transition); }
.cta-btn-primary { background: #fff; color: var(--primary); }
.cta-btn-primary:hover { background: var(--bg); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.15); }
.cta-btn-outline { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,0.5); }
.cta-btn-outline:hover { border-color: #fff; }

/* ========== Footer ========== */
.footer { background: var(--primary); color: rgba(255,255,255,0.7); padding-top: 56px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; max-width: var(--max-width); margin: 0 auto; padding: 0 16px 40px; }
.footer-col h4 { color: #fff; font-size: 18px; margin-bottom: 16px; }
.footer-col p { font-size: 14px; line-height: 1.8; }
.footer-col ul li { padding: 6px 0; }
.footer-col ul a { color: rgba(255,255,255,0.6); font-size: 14px; }
.footer-col ul a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); text-align: center; padding: 24px 16px; font-size: 13px; }
.footer-bottom a { color: rgba(255,255,255,0.6); }
.footer-bottom a:hover { color: var(--accent); }
.float-top { position: fixed; bottom: 32px; right: 32px; width: 44px; height: 44px; background: var(--accent); color: #fff; border: none; border-radius: 50%; cursor: pointer; display: none; align-items: center; justify-content: center; font-size: 20px; box-shadow: 0 4px 12px rgba(6,182,212,0.3); transition: var(--transition); z-index: 99; }
.float-top:hover { background: var(--primary); transform: translateY(-2px); }

/* ========== 列表页 - 变体C：3列网格式 ========== */
.article-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.article-grid-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: var(--transition); }
.article-grid-card:hover { border-color: var(--accent); box-shadow: var(--shadow-lg); }
.article-grid-card .agc-img { height: 160px; background: linear-gradient(135deg, var(--secondary), var(--bg)); display: flex; align-items: center; justify-content: center; }
.article-grid-card .agc-img svg { width: 36px; height: 36px; fill: var(--text-light); opacity: 0.4; }
.article-grid-card .agc-body { padding: 20px; }
.article-grid-card .cat-tag { font-size: 12px; color: var(--accent); margin-bottom: 6px; display: block; }
.article-grid-card h3 { font-size: 16px; margin-bottom: 8px; line-height: 1.4; }
.article-grid-card h3 a { color: var(--text); }
.article-grid-card h3 a:hover { color: var(--accent); }
.article-grid-card p { font-size: 13px; color: var(--text-light); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.article-grid-card .time { font-size: 12px; color: var(--text-light); margin-top: 10px; }
.sidebar .tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.sidebar .tag-cloud a { display: inline-block; padding: 4px 12px; background: #fff; border: 1px solid var(--border); border-radius: 20px; font-size: 13px; color: var(--text-light); transition: var(--transition); }
.sidebar .tag-cloud a:hover { border-color: var(--accent); color: var(--accent); }

/* ========== 详情页 - 变体C：顶部大图式 ========== */
.detail-hero { background: linear-gradient(180deg, var(--primary), var(--accent)); padding: 64px 0; text-align: center; color: #fff; margin-bottom: 32px; }
.detail-hero .cat-tag { display: inline-block; margin-bottom: 12px; font-size: 13px; color: rgba(255,255,255,0.9); background: rgba(255,255,255,0.15); padding: 4px 14px; border-radius: 20px; }
.detail-hero h1 { font-size: 34px; font-weight: 800; margin-bottom: 16px; max-width: 800px; margin-left: auto; margin-right: auto; }
.detail-hero .meta { justify-content: center; color: rgba(255,255,255,0.8); font-size: 14px; }
.detail-hero .meta span { display: inline-flex; align-items: center; gap: 4px; }
.detail-layout { display: flex; gap: 32px; }
.detail-main { flex: 1; min-width: 0; }
.detail-sidebar { width: 320px; flex-shrink: 0; }
.article-body { font-size: 16px; line-height: 1.8; color: var(--text); }
.article-body h2 { font-size: 24px; color: var(--primary); margin: 32px 0 16px; }
.article-body h3 { font-size: 20px; color: var(--primary); margin: 24px 0 12px; }
.article-body p { margin-bottom: 16px; }
.article-body img { border-radius: var(--radius); margin: 16px 0; }
.article-body ol, .article-body ul { padding-left: 24px; margin-bottom: 16px; }
.article-body ol { list-style: decimal; }
.article-body ul { list-style: disc; }
.article-body li { margin-bottom: 8px; }
.article-tags { margin-top: 32px; padding: 24px 0; border-top: 1px solid var(--border); }
.article-tags span { font-weight: 600; color: var(--primary); margin-right: 8px; }
.article-tags a { display: inline-block; padding: 4px 14px; background: var(--bg); color: var(--accent); border-radius: 20px; font-size: 13px; margin: 4px; }
.article-tags a:hover { background: var(--accent); color: #fff; }
.article-nav { display: flex; justify-content: space-between; gap: 24px; margin-top: 32px; padding: 24px 0; border-top: 1px solid var(--border); }
.article-nav .prev, .article-nav .next { flex: 1; }
.article-nav span { display: block; font-size: 13px; color: var(--text-light); margin-bottom: 4px; }
.article-nav a { font-size: 15px; color: var(--text); }
.article-nav a:hover { color: var(--accent); }
.article-nav .next { text-align: right; }

/* ========== 联系页 ========== */
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.contact-item { display: flex; gap: 16px; padding: 24px; background: var(--bg); border-radius: var(--radius); margin-bottom: 16px; }
.contact-item .ci-icon { width: 48px; height: 48px; border-radius: 50%; background: var(--accent); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-item .ci-icon svg { width: 22px; height: 22px; fill: #fff; }
.contact-item h4 { font-size: 16px; color: var(--primary); margin-bottom: 4px; }
.contact-item p { font-size: 14px; color: var(--text-light); }
.contact-form { background: var(--bg); border-radius: var(--radius); padding: 32px; }
.contact-form h3 { font-size: 20px; color: var(--primary); margin-bottom: 24px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 14px; color: var(--primary); margin-bottom: 6px; font-weight: 600; }
.form-group input, .form-group textarea { width: 100%; padding: 12px 16px; border: 1px solid var(--border); border-radius: var(--radius); font-size: 15px; outline: none; transition: var(--transition); }
.form-group input:focus, .form-group textarea:focus { border-color: var(--accent); }
.form-group textarea { min-height: 120px; resize: vertical; }
.form-submit { padding: 12px 32px; background: var(--accent); color: #fff; border: none; border-radius: var(--radius); font-size: 16px; font-weight: 600; cursor: pointer; transition: var(--transition); }
.form-submit:hover { background: var(--primary); }

/* ========== 搜索页 ========== */
.search-form { display: flex; max-width: 500px; margin: 0 auto 32px; }
.search-form input { flex: 1; padding: 12px 16px; border: 1px solid var(--border); border-radius: var(--radius) 0 0 var(--radius); font-size: 15px; outline: none; }
.search-form input:focus { border-color: var(--accent); }
.search-form button { padding: 12px 24px; background: var(--accent); color: #fff; border: none; border-radius: 0 var(--radius) var(--radius) 0; font-size: 15px; cursor: pointer; }
.search-total { text-align: center; color: var(--text-light); margin-bottom: 24px; font-size: 14px; }

/* ========== 关于页/单页 ========== */
.page-content { max-width: 800px; margin: 0 auto; font-size: 16px; line-height: 1.8; }
.page-content h2 { font-size: 24px; color: var(--primary); margin: 32px 0 16px; }
.page-content h3 { font-size: 20px; color: var(--primary); margin: 24px 0 12px; }
.page-content p { margin-bottom: 16px; }
.page-content ol, .page-content ul { padding-left: 24px; margin-bottom: 16px; }
.page-content ol { list-style: decimal; }
.page-content ul { list-style: disc; }
.page-content li { margin-bottom: 8px; }
.page-content img { border-radius: var(--radius); margin: 16px 0; }

/* ========== 网站地图 ========== */
.sitemap-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.sitemap-col h3 { font-size: 18px; color: var(--primary); margin-bottom: 12px; padding-bottom: 8px; border-bottom: 2px solid var(--accent); }
.sitemap-col h3 a { color: var(--primary); }
.sitemap-col ul li { padding: 4px 0; }
.sitemap-col ul a { font-size: 14px; color: var(--text-light); }
.sitemap-col ul a:hover { color: var(--accent); }
.sitemap-articles h3 { font-size: 20px; color: var(--primary); margin: 40px 0 16px; }
.sitemap-articles ul { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 32px; }
.sitemap-articles ul li { padding: 6px 0; }
.sitemap-articles ul a { font-size: 14px; color: var(--text-light); }
.sitemap-articles ul a:hover { color: var(--accent); }

/* ========== 区县页 / 标签页 ========== */
.county-header { text-align: center; padding: 48px 0 32px; background: var(--bg); border-radius: var(--radius); margin-bottom: 32px; }
.county-header h1 { font-size: 28px; color: var(--primary); margin-bottom: 8px; }
.county-header p { color: var(--text-light); }
.tag-header { text-align: center; padding: 48px 0 32px; }
.tag-header h1 { font-size: 28px; color: var(--primary); }
.tag-cloud-page { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-bottom: 32px; }
.tag-cloud-page a { display: inline-block; padding: 8px 20px; border: 1px solid var(--border); border-radius: 20px; font-size: 14px; color: var(--text-light); transition: var(--transition); }
.tag-cloud-page a:hover, .tag-cloud-page a.current { border-color: var(--accent); color: var(--accent); background: var(--bg); }

/* ========== 响应式 ========== */
@media (max-width: 992px) {
  .container { padding: 0 20px; }
  .adv-grid { grid-template-columns: 1fr; }
  .service-cats-grid { grid-template-columns: repeat(2, 1fr); }
  .news-masonry { grid-template-columns: repeat(2, 1fr); }
  .article-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-layout { grid-template-columns: 1fr; }
  .sitemap-grid { grid-template-columns: repeat(2, 1fr); }
  .detail-layout { flex-direction: column; }
  .detail-sidebar { width: 100%; }
  .detail-hero h1 { font-size: 26px; }
}
@media (max-width: 768px) {
  .carousel-slide h2 { font-size: 28px; }
  .service-cats-grid { grid-template-columns: 1fr; }
  .news-masonry { grid-template-columns: 1fr; }
  .article-grid-3 { grid-template-columns: 1fr; }
  .section { padding: 48px 0; }
  .section-title { font-size: 24px; }
  .main-nav { display: none; position: absolute; top: 64px; left: 0; right: 0; background: #fff; flex-direction: column; padding: 16px; box-shadow: var(--shadow-lg); }
  .main-nav.active { display: flex; }
  .nav-toggle { display: flex; }
  .footer-grid { grid-template-columns: 1fr; }
  .carousel-arrow { width: 36px; height: 36px; font-size: 16px; }
  .detail-hero { padding: 48px 0; }
  .detail-hero h1 { font-size: 22px; }
  .article-nav { flex-direction: column; }
  .article-nav .next { text-align: left; }
  .page-content { font-size: 15px; }
  .sitemap-grid { grid-template-columns: 1fr; }
  .sitemap-articles ul { grid-template-columns: 1fr; }
}
@media (max-width: 576px) {
  .carousel-slide h2 { font-size: 24px; }
  .carousel-slide p { font-size: 15px; }
  .cta { padding: 48px 0; }
  .cta h2 { font-size: 24px; }
  .article-item-body { padding: 16px; }
  .contact-form { padding: 20px; }
}

/* === AUTO-ADDED for missing classes === */
.detail-article{background:var(--bg-white);padding:32px;border-radius:var(--radius);border:1px solid var(--border)}


/* === footer-col-* semantic variants (auto-added) === */
.footer-col-services,
.footer-col-about,
.footer-col-links,
.footer-col-contact { /* inherits .footer-col base style */ }


/* ========== 内容区样式补丁 (auto-added) ========== */

/* 段落间距 */
.article-content p,
.article-text p,
.article-body p,
.detail-body p,
.article-detail .content p,
.page-content p {
  margin-bottom: 16px;
  line-height: 1.8;
}

/* 标题样式 */
.article-content h2,
.article-text h2,
.article-body h2,
.detail-body h2,
.article-detail .content h2,
.page-content h2 {
  font-size: 22px;
  font-weight: 700;
  margin: 28px 0 14px;
  line-height: 1.4;
}

.article-content h3,
.article-text h3,
.article-body h3,
.detail-body h3,
.article-detail .content h3,
.page-content h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 20px 0 10px;
  line-height: 1.4;
}

/* 列表样式 */
.article-content ul,
.article-text ul,
.article-body ul,
.detail-body ul,
.article-detail .content ul,
.page-content ul {
  list-style: disc;
  margin: 0 0 16px 24px;
}

.article-content ol,
.article-text ol,
.article-body ol,
.detail-body ol,
.article-detail .content ol,
.page-content ol {
  list-style: decimal;
  margin: 0 0 16px 24px;
}

.article-content li,
.article-text li,
.article-body li,
.detail-body li,
.article-detail .content li,
.page-content li {
  margin-bottom: 6px;
  line-height: 1.7;
}

/* 图片样式 */
.article-content img,
.article-text img,
.article-body img,
.detail-body img,
.article-detail .content img,
.page-content img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  margin: 16px 0;
}

/* 引用块 */
.article-content blockquote,
.article-text blockquote,
.article-body blockquote,
.detail-body blockquote,
.article-detail .content blockquote,
.page-content blockquote {
  border-left: 4px solid var(--primary, #2563eb);
  padding: 12px 20px;
  margin: 16px 0;
  background: var(--bg, #f9fafb);
  font-style: italic;
}

/* 代码块 */
.article-content code,
.article-text code,
.article-body code,
.detail-body code,
.article-detail .content code,
.page-content code {
  background: var(--bg, #f3f4f6);
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 0.9em;
}

.article-content pre,
.article-text pre,
.article-body pre,
.detail-body pre,
.article-detail .content pre,
.page-content pre {
  background: #1f2937;
  color: #f9fafb;
  padding: 16px;
  border-radius: 6px;
  overflow-x: auto;
  margin: 16px 0;
}

/* 表格样式 */
.article-content table,
.article-text table,
.article-body table,
.detail-body table,
.article-detail .content table,
.page-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
}

.article-content th,
.article-text th,
.article-body th,
.detail-body th,
.article-detail .content th,
.page-content th {
  background: var(--bg, #f3f4f6);
  padding: 10px 12px;
  text-align: left;
  font-weight: 600;
  border: 1px solid var(--border, #e5e7eb);
}

.article-content td,
.article-text td,
.article-body td,
.detail-body td,
.article-detail .content td,
.page-content td {
  padding: 10px 12px;
  border: 1px solid var(--border, #e5e7eb);
}

/* ========== 品牌标语防溢出 ========== */
.brand-tagline,
[class*="brand-tagline"] {
  max-width: 300px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 12px;
  color: var(--text-light, #6b7280);
  letter-spacing: 0.5px;
}

@media (max-width: 768px) {
  .brand-tagline,
  [class*="brand-tagline"] {
    max-width: 200px;
    font-size: 11px;
  }
}



/* 一级栏目 - 醒目样式 */
.sidebar-cats > li > a,
.side-nav > li > a,
.sidebar-widget .side-nav > li > a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  font-size: 15px;
  font-weight: 600;
  color: #1f2937;
  background: #f9fafb;
  border-radius: 6px;
  margin-bottom: 8px;
  border-left: 3px solid var(--primary, #2563eb);
  transition: all 0.2s;
}

.sidebar-cats > li > a:hover,
.side-nav > li > a:hover,
.sidebar-widget .side-nav > li > a:hover {
  background: var(--primary, #2563eb);
  color: #fff;
  padding-left: 18px;
}

/* 二级栏目 - 三列网格 */
.sidebar-cats > li > ul,
.sidebar-cats > li > .sidebar-subcats,
.side-nav > li > ul,
.sidebar-widget .side-nav > li > ul {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px 8px;
  padding: 8px 10px;
  margin: 0 0 8px 0;
  list-style: none;
}

.sidebar-cats > li > ul > li,
.sidebar-cats > li > .sidebar-subcats > li,
.side-nav > li > ul > li,
.sidebar-widget .side-nav > li > ul > li {
  margin: 0;
}

.sidebar-cats > li > ul > li > a,
.sidebar-cats > li > .sidebar-subcats > li > a,
.side-nav > li > ul > li > a,
.sidebar-widget .side-nav > li > ul > li > a {
  display: block;
  padding: 5px 8px;
  font-size: 13px;
  color: #6b7280;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  border-radius: 4px;
  transition: all 0.2s;
}

.sidebar-cats > li > ul > li > a:hover,
.sidebar-cats > li > .sidebar-subcats > li > a:hover,
.side-nav > li > ul > li > a:hover,
.sidebar-widget .side-nav > li > ul > li > a:hover {
  color: var(--primary, #2563eb);
  background: #eff6ff;
}

/* 响应式：小屏幕改为两列 */
@media (max-width: 992px) {
  .sidebar-cats > li > ul,
  .sidebar-cats > li > .sidebar-subcats,
  .side-nav > li > ul,
  .sidebar-widget .side-nav > li > ul {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .sidebar-cats > li > ul,
  .sidebar-cats > li > .sidebar-subcats,
  .side-nav > li > ul,
  .sidebar-widget .side-nav > li > ul {
    grid-template-columns: 1fr;
  }
}

/* ========== 侧栏分类优化 (auto-added) ========== */

/* 一级栏目 - 醒目样式，颜色跟随主题 */
.sidebar-cats > li > a,
.side-nav > li > a,
.sidebar-widget .side-nav > li > a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text, #1f2937);
  background: var(--bg, #f9fafb);
  border-radius: 6px;
  margin-bottom: 6px;
  border-left: 3px solid var(--primary, #2563eb);
  transition: all 0.2s;
}

.sidebar-cats > li > a:hover,
.side-nav > li > a:hover,
.sidebar-widget .side-nav > li > a:hover {
  background: var(--primary, #2563eb);
  color: #fff;
  padding-left: 16px;
}

/* 二级栏目 - 自适应布局，处理长名称 */
.sidebar-cats > li > ul,
.sidebar-cats > li > .sidebar-subcats,
.side-nav > li > ul,
.sidebar-widget .side-nav > li > ul {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px 10px;
  margin: 0 0 6px 0;
  list-style: none;
}

.sidebar-cats > li > ul > li,
.sidebar-cats > li > .sidebar-subcats > li,
.side-nav > li > ul > li,
.sidebar-widget .side-nav > li > ul > li {
  margin: 0;
  flex: 0 1 auto;
  min-width: 0;
}

.sidebar-cats > li > ul > li > a,
.sidebar-cats > li > .sidebar-subcats > li > a,
.side-nav > li > ul > li > a,
.sidebar-widget .side-nav > li > ul > li > a {
  display: block;
  padding: 4px 10px;
  font-size: 13px;
  color: var(--text-light, #6b7280);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 120px;
  border-radius: 4px;
  border: 1px solid var(--border, #e5e7eb);
  transition: all 0.2s;
}

.sidebar-cats > li > ul > li > a:hover,
.sidebar-cats > li > .sidebar-subcats > li > a:hover,
.side-nav > li > ul > li > a:hover,
.sidebar-widget .side-nav > li > ul > li > a:hover {
  color: var(--primary, #2563eb);
  border-color: var(--primary, #2563eb);
  background: rgba(37, 99, 235, 0.05);
}

/* 响应式 */
@media (max-width: 768px) {
  .sidebar-cats > li > ul > li > a,
  .sidebar-cats > li > .sidebar-subcats > li > a,
  .side-nav > li > ul > li > a,
  .sidebar-widget .side-nav > li > ul > li > a {
    max-width: 100px;
    font-size: 12px;
  }
}