/* 全局设计令牌 */
:root {
  --primary-color: #2563eb;
  --accent-color: #f97316;
  --secondary-color: #f5f7fa;
  --text-primary: #1a1a1a;
  --text-secondary: #666;
  --text-light: #999;
  --border-color: #e5e7eb;
  --container-width: 1200px;
  --border-radius: 8px;
  --font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
}

/* 全局重置 */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-family); color: var(--text-primary); background: #fff; line-height: 1.6; font-size: 15px; }
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
img { max-width: 100%; display: block; }
input, textarea, button, select { font-family: inherit; font-size: inherit; outline: none; }
.container { max-width: var(--container-width); margin: 0 auto; padding: 0 20px; }

/* 通用按钮样式 */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 10px 24px; border-radius: var(--border-radius); font-size: 15px; font-weight: 500; cursor: pointer; border: none; transition: all 0.3s ease; text-align: center; }
.btn-primary { background: var(--primary-color); color: #fff; }
.btn-primary:hover { background: #1d4ed8; }
.btn-accent { background: var(--accent-color); color: #fff; }
.btn-accent:hover { background: #ea580c; }
.btn-outline { border: 1px solid var(--primary-color); color: var(--primary-color); background: transparent; }
.btn-outline:hover { background: var(--primary-color); color: #fff; }

/* Header 样式 */
.site-header { background: #1e3a8a; color: #fff; position: sticky; top: 0; z-index: 999; transition: all 0.3s ease; }
.site-header.scrolled { box-shadow: 0 4px 16px rgba(0,0,0,0.15); background: #1a337a; }
.site-header .header-inner { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.site-header .logo img { height: 48px; width: auto; }
.main-nav .nav-list { display: flex; align-items: center; gap: 20px; flex-wrap: nowrap; }
.nav-item { position: relative; }
.nav-link { display: block; padding: 26px 0; color: #fff; font-size: 15px; font-weight: 500; transition: color 0.2s ease; white-space: nowrap; }
.nav-link:hover, .nav-link.active { color: var(--accent-color); }
.dropdown-arrow { font-size: 10px; margin-left: 4px; display: inline-block; transition: transform 0.3s ease; }
.quick-actions { display: flex; align-items: center; gap: 16px; }
.quick-phone { color: #fff; font-size: 14px; display: flex; align-items: center; gap: 6px; transition: color 0.2s ease; }
.quick-phone:hover { color: var(--accent-color); }
.quick-apply { padding: 8px 20px !important; font-size: 14px !important; }
.mobile-toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 10px; background: transparent; border: none; z-index: 1001; }
.mobile-toggle span { width: 24px; height: 2px; background: #fff; transition: all 0.3s ease; }
.mobile-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.mobile-toggle.open span:nth-child(2) { opacity: 0; }
.mobile-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* 移动端菜单遮罩 */
.nav-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 998; }
.nav-overlay.active { display: block; }

/* 多级下拉菜单样式 （严格遵循规范） */
.dropdown-menu { display:none; position:absolute; top:100%; left:0; background:#fff; box-shadow:0 4px 12px rgba(0,0,0,0.1); z-index:100; min-width: 180px; border-radius: var(--border-radius); overflow: hidden; }
.nav-item:hover>.dropdown-menu { display:block; }
.dropdown-menu li a { display: block; padding: 12px 20px; color: #333; font-size: 15px; transition: all 0.2s ease; border-bottom: 1px solid #f5f7fa; }
.dropdown-menu li:last-child a { border-bottom: none; }
.dropdown-menu li a:hover, .dropdown-menu li a.active { background: var(--secondary-color); color: var(--primary-color); padding-left: 24px; }
.submenu { display:none; position:absolute; left:100%; top:0; background:#fff; box-shadow:0 4px 12px rgba(0,0,0,0.1); z-index:101; min-width: 180px; border-radius: var(--border-radius); overflow: hidden; }
.has-submenu:hover>.submenu { display:block; }

/* 面包屑导航 */
.breadcrumb { background: var(--secondary-color); padding: 12px 0; font-size: 14px; color: var(--text-secondary); }
.breadcrumb a { color: var(--text-secondary); transition: color 0.2s ease; }
.breadcrumb a:hover { color: var(--primary-color); }
.breadcrumb .separator { margin: 0 8px; color: #ccc; }
.breadcrumb .current { color: var(--text-primary); }

/* Banner 通用样式 */
.page-banner { background: linear-gradient(135deg, #1e40af 0%, #2563eb 100%); color: #fff; padding: 60px 0; text-align: center; position: relative; overflow: hidden; }
.page-banner h1 { font-size: 36px; font-weight: 700; margin-bottom: 12px; }
.page-banner p { font-size: 16px; opacity: 0.9; }
.home-banner { position: relative; height: 500px; overflow: hidden; }
.home-banner .slide { position: absolute; inset: 0; opacity: 0; transition: opacity 0.8s ease; }
.home-banner .slide.active { opacity: 1; }
.home-banner .slide img { width: 100%; height: 100%; object-fit: cover; }
.home-banner .slide-content { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); text-align: center; color: #fff; z-index: 2; max-width: 800px; width: 90%; }
.home-banner .slide-content h2 { font-size: 42px; font-weight: 700; margin-bottom: 16px; text-shadow: 0 2px 10px rgba(0,0,0,0.2); }
.home-banner .slide-content p { font-size: 18px; margin-bottom: 24px; opacity: 0.95; }
.home-banner .banner-controls { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; z-index: 3; }
.home-banner .banner-dot { width: 12px; height: 12px; border-radius: 50%; background: rgba(255,255,255,0.5); cursor: pointer; transition: all 0.3s ease; border: none; }
.home-banner .banner-dot.active { background: #fff; width: 30px; border-radius: 6px; }
.home-banner .banner-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%; background: rgba(255,255,255,0.2); color: #fff; border: none; cursor: pointer; font-size: 20px; display: flex; align-items: center; justify-content: center; z-index: 3; transition: all 0.3s ease; }
.home-banner .banner-arrow:hover { background: rgba(255,255,255,0.3); }
.home-banner .banner-arrow.prev { left: 20px; }
.home-banner .banner-arrow.next { right: 20px; }

/* 文章详情页统一样式 （严格遵循规范） */
.article-detail { max-width:800px; margin:0 auto; padding:40px 20px; }
.article-detail .article-header { margin-bottom:30px; }
.article-detail .article-title { font-size:28px; font-weight:700; color:#1a1a1a; line-height:1.4; margin-bottom:16px; }
.article-detail .article-meta { display:flex; align-items:center; gap:16px; color:#999; font-size:14px; padding-bottom:20px; border-bottom:1px solid #eee; flex-wrap: wrap; }
.article-detail .article-author, .article-detail .article-date { font-size:14px; }
.article-detail .article-cover { margin-bottom:30px; }
.article-detail .article-cover img { width:100%; height:auto; max-height:500px; object-fit:cover; border-radius:8px; display:block; }
.article-detail .article-summary { background:#f8f9fa; padding:16px 20px; border-left:3px solid var(--primary-color); margin-bottom:30px; font-size:15px; color:#555; line-height:1.7; border-radius:0 6px 6px 0; }
.article-detail .article-body { font-size:16px; color:#333; line-height:1.9; }
.article-detail .article-body h2 { font-size:22px; font-weight:600; margin:32px 0 16px; color:#1a1a1a; }
.article-detail .article-body h3 { font-size:18px; font-weight:600; margin:24px 0 12px; color:#333; }
.article-detail .article-body p { margin-bottom:16px; }
.article-detail .article-body img { max-width:100%; height:auto; border-radius:6px; margin:16px 0; display:block; }
.article-detail .article-body ul, .article-detail .article-body ol { margin:16px 0; padding-left:24px; }
.article-detail .article-body ul { list-style: disc; }
.article-detail .article-body ol { list-style: decimal; }
.article-detail .article-body li { margin-bottom:8px; }
.article-detail .article-body blockquote { border-left:3px solid #ddd; padding:8px 16px; margin:16px 0; color:#666; background:#fafafa; border-radius: 0 4px 4px 0; }
.article-detail .article-actions { margin-top:40px; padding-top:20px; border-top:1px solid #eee; }
.article-detail .btn-back { display:inline-block; padding:8px 24px; border-radius:6px; border:1px solid var(--primary-color); color:var(--primary-color); text-decoration:none; transition:all .3s; }
.article-detail .btn-back:hover { background:var(--primary-color); color:#fff; }

/* 文章列表页统一样式 （严格遵循规范） */
.article-card { display:flex; gap:20px; background:#fff; border-radius:10px; overflow:hidden; box-shadow:0 2px 12px rgba(0,0,0,0.08); transition:all .3s ease; margin-bottom:24px; border: 1px solid var(--border-color); }
.article-card:hover { transform:translateY(-4px); box-shadow:0 8px 24px rgba(0,0,0,0.12); }
.article-card .card-thumb { flex-shrink:0; width:280px; height:200px; overflow:hidden; display:block; }
.article-card .card-thumb img { width:100%; height:100%; object-fit:cover; display:block; transition:transform .4s ease; }
.article-card:hover .card-thumb img { transform:scale(1.05); }
.article-card .card-body { flex:1; padding:20px; min-width:0; display:flex; flex-direction:column; }
.article-card .card-body h3 { font-size:18px; font-weight:600; margin-bottom:10px; line-height:1.4; }
.article-card .card-body h3 a { color:#1a1a1a; text-decoration:none; transition:color .2s; }
.article-card .card-body h3 a:hover { color:var(--primary-color); }
.article-card .card-body p { color:#666; font-size:14px; line-height:1.6; margin-bottom:12px; flex:1; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.article-card .card-body .date { color:#999; font-size:13px; margin-top:auto; }
.category-filter { display:flex; flex-wrap:wrap; gap:10px; margin-bottom:28px; }
.category-btn { display:inline-block; padding:8px 22px; border-radius:24px; font-size:14px; font-weight:500; color:#666; background:#fff; border:1px solid #ddd; text-decoration:none; transition:all .3s ease; }
.category-btn:hover, .category-btn.active { background:var(--primary-color); color:#fff; border-color:var(--primary-color); }
.pagination { display:flex; justify-content:center; align-items:center; gap:8px; margin-top:40px; flex-wrap: wrap; }
.page-btn { display:inline-flex; align-items:center; justify-content:center; min-width:40px; height:40px; padding:0 12px; border-radius:6px; font-size:14px; color:#333; background:#fff; border:1px solid #ddd; text-decoration:none; transition:all .2s; }
.page-btn:hover { border-color:var(--primary-color); color:var(--primary-color); }
.page-btn.active { background:var(--primary-color); color:#fff; border-color:var(--primary-color); }
.page-btn.disabled { color:#ccc; pointer-events:none; }

/* 通用弹窗样式 */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 1000; display: none; align-items: center; justify-content: center; padding: 20px; }
.modal-overlay.active { display: flex; }
.modal-content { background: #fff; border-radius: var(--border-radius); max-width: 500px; width: 100%; padding: 30px; position: relative; max-height: 90vh; overflow-y: auto; animation: modalFade 0.3s ease; }
.modal-close { position: absolute; top: 16px; right: 16px; width: 30px; height: 30px; border-radius: 50%; border: none; background: #f5f7fa; cursor: pointer; font-size: 18px; display: flex; align-items: center; justify-content: center; transition: all 0.2s ease; }
.modal-close:hover { background: #e5e7eb; }
@keyframes modalFade { from { opacity: 0; transform: scale(0.95); } to { opacity: 1; transform: scale(1); } }

/* Toast 提示样式 */
.toast { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); background: rgba(0,0,0,0.8); color: #fff; padding: 12px 24px; border-radius: var(--border-radius); font-size: 14px; z-index: 2000; opacity: 0; visibility: hidden; transition: all 0.3s ease; pointer-events: none; }
.toast.show { opacity: 1; visibility: visible; }

/* 表单通用样式 */
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 500; color: #333; }
.form-group input, .form-group textarea { width: 100%; padding: 12px 16px; border: 1px solid var(--border-color); border-radius: var(--border-radius); transition: border-color 0.2s ease; background: #fff; }
.form-group input:focus, .form-group textarea:focus { border-color: var(--primary-color); box-shadow: 0 0 0 3px rgba(37,99,235,0.1); }
.form-group textarea { min-height: 100px; resize: vertical; }
.captcha-wrap { display: flex; gap: 12px; align-items: center; }
.captcha-container { flex-shrink: 0; width: 110px; height: 42px; background: linear-gradient(135deg, #f0f4ff 0%, #e6edff 100%); border-radius: 4px; display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 20px; font-weight: bold; letter-spacing: 4px; color: var(--primary-color); font-style: italic; user-select: none; position: relative; overflow: hidden; }
.captcha-container::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(45deg, transparent 48%, rgba(37,99,235,0.1) 49%, rgba(37,99,235,0.1) 51%, transparent 52%); background-size: 8px 8px; }
.captcha-code { position: relative; z-index: 1; }
.captcha-input { flex: 1; }

/* 折叠面板（FAQ）样式 */
.fold-list { margin-bottom: 30px; }
.fold-item { background: #fff; border: 1px solid var(--border-color); border-radius: var(--border-radius); margin-bottom: 12px; overflow: hidden; transition: box-shadow 0.2s ease; }
.fold-item.open { box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.fold-title { padding: 16px 20px; background: #fff; cursor: pointer; display: flex; justify-content: space-between; align-items: center; font-weight: 500; font-size: 16px; transition: all 0.2s ease; }
.fold-title:hover { background: var(--secondary-color); }
.fold-title::after { content: '+'; font-size: 20px; color: var(--primary-color); transition: transform 0.3s ease; font-weight: 400; }
.fold-item.open .fold-title::after { transform: rotate(45deg); }
.fold-content { max-height: 0; overflow: hidden; transition: max-height 0.3s ease, padding 0.3s ease; padding: 0 20px; color: var(--text-secondary); line-height: 1.8; }
.fold-item.open .fold-content { max-height: 1000px; padding: 0 20px 20px; }

/* 固定侧边栏 */
.fixed-consult { position: fixed; right: 0; top: 50%; transform: translateY(-50%); z-index: 997; display: flex; flex-direction: column; gap: 1px; border-radius: 8px 0 0 8px; overflow: hidden; box-shadow: -2px 0 8px rgba(0,0,0,0.1); }
.fixed-consult a { display: flex; align-items: center; justify-content: center; width: 60px; height: 60px; background: var(--primary-color); color: #fff; font-size: 12px; text-align: center; padding: 8px; line-height: 1.4; transition: all 0.3s ease; }
.fixed-consult a:hover { background: var(--accent-color); }
.back-to-top { position: fixed; right: 20px; bottom: 80px; width: 48px; height: 48px; border-radius: 50%; background: var(--primary-color); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; opacity: 0; visibility: hidden; transition: all 0.3s ease; z-index: 998; box-shadow: 0 4px 12px rgba(37,99,235,0.3); border: none; font-size: 20px; }
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { background: #1d4ed8; transform: translateY(-2px); }

/* 悬浮咨询弹窗 */
.consult-popup { position: fixed; right: 20px; bottom: 20px; width: 280px; background: #fff; border-radius: var(--border-radius); box-shadow: 0 8px 24px rgba(0,0,0,0.15); z-index: 996; padding: 20px; padding-top: 30px; display: none; }
.consult-popup.active { display: block; animation: popupFade 0.3s ease; }
.consult-popup .popup-close { position: absolute; top: 10px; right: 10px; width: 24px; height: 24px; border: none; background: transparent; font-size: 20px; cursor: pointer; color: #999; line-height: 1; transition: color 0.2s ease; }
.consult-popup .popup-close:hover { color: #333; }
.consult-popup h4 { font-size: 16px; color: var(--primary-color); margin-bottom: 8px; }
.consult-popup p { font-size: 14px; color: #666; margin-bottom: 8px; }
.consult-popup .btn { width: 100%; margin-top: 12px; }
@keyframes popupFade { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* Footer 样式 */
.site-footer { background: #16294d; color: #c9d1e0; padding-top: 60px; margin-top: 60px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; }
.footer-col h4 { color: #fff; font-size: 16px; font-weight: 600; margin-bottom: 20px; position: relative; padding-bottom: 10px; }
.footer-col h4::after { content: ''; position: absolute; left: 0; bottom: 0; width: 30px; height: 2px; background: var(--accent-color); }
.footer-logo img { height: 48px; margin-bottom: 20px; width: auto; }
.company-desc { font-size: 14px; line-height: 1.8; margin-bottom: 20px; color: #9fb0cc; }
.footer-contact-info p { font-size: 14px; margin-bottom: 10px; display: flex; align-items: flex-start; gap: 8px; }
.footer-nav ul, .footer-service ul { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.footer-nav ul li a, .footer-service ul li a { color: #c9d1e0; font-size: 14px; transition: all 0.2s ease; }
.footer-nav ul li a:hover, .footer-service ul li a:hover { color: var(--accent-color); padding-left: 4px; }
.footer-qrcode .qrcode-wrap { width: 120px; height: 120px; background: #fff; padding: 6px; border-radius: 6px; margin-bottom: 12px; margin-left: auto; margin-right: auto; }
.footer-qrcode .qrcode-wrap img { width: 100%; height: 100%; object-fit: cover; }
.footer-qrcode p { font-size: 14px; margin-bottom: 8px; text-align: center; }
.footer-qrcode .wechat-info, .footer-qrcode .qq-info { color: #9fb0cc; font-size: 13px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); margin-top: 40px; padding: 20px 0; text-align: center; font-size: 13px; color: #7f8ead; }
.footer-bottom p { margin-bottom: 6px; }
.footer-bottom a { color: #7f8ead; transition: color 0.2s ease; }
.footer-bottom a:hover { color: var(--accent-color); }
.footer-bottom .disclaimer { font-size: 12px; opacity: 0.8; max-width: 800px; margin: 0 auto; }

/* 响应式断点 */
@media (max-width: 1024px) {
  .container { max-width: 100%; }
  .main-nav .nav-list { gap: 14px; }
  .nav-link { font-size: 14px; }
  .article-card .card-thumb { width: 220px; height: 180px; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 30px; }
  .home-banner { height: 400px; }
  .home-banner .slide-content h2 { font-size: 32px; }
  .page-banner { padding: 40px 0; }
  .page-banner h1 { font-size: 28px; }
}

@media (max-width: 768px) {
  .quick-actions .quick-phone { display: none; }
  .mobile-toggle { display: flex; }
  .main-nav { position: fixed; top: 70px; left: -100%; width: 80%; max-width: 320px; height: calc(100vh - 70px); background: #fff; box-shadow: 2px 0 12px rgba(0,0,0,0.1); transition: left 0.3s ease; overflow-y: auto; z-index: 999; }
  .main-nav.active { left: 0; }
  .nav-list { flex-direction: column; gap: 0 !important; }
  .nav-item { width: 100%; border-bottom: 1px solid #f5f7fa; }
  .nav-link { padding: 16px 20px !important; color: #333 !important; display: flex; justify-content: space-between; align-items: center; width: 100%; }
  .nav-link.active { color: var(--primary-color) !important; }
  .dropdown-menu { position: static; box-shadow: none; display: none; min-width: 100%; border-radius: 0; background: #f8f9fa; }
  .nav-item.has-dropdown.open > .dropdown-menu { display: block; }
  .nav-item.has-dropdown.open .dropdown-arrow { transform: rotate(180deg); }
  .dropdown-menu li a { padding: 12px 20px 12px 40px; border-bottom: 1px solid #eee; }
  .submenu { position: static; box-shadow: none; display: none; background: #f0f2f5; }
  .has-submenu.open > .submenu { display: block; }
  .submenu li a { padding-left: 60px !important; }
  .home-banner { height: 280px; }
  .home-banner .slide-content h2 { font-size: 22px; margin-bottom: 10px; }
  .home-banner .slide-content p { font-size: 14px; margin-bottom: 16px; }
  .home-banner .banner-arrow { display: none; }
  .page-banner { padding: 30px 0; }
  .page-banner h1 { font-size: 22px; }
  .article-card { flex-direction: column; }
  .article-card .card-thumb { width: 100%; height: 200px; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; text-align: center; }
  .footer-col h4::after { left: 50%; transform: translateX(-50%); }
  .footer-contact-info p { justify-content: center; }
  .footer-nav ul, .footer-service ul { grid-template-columns: 1fr; max-width: 200px; margin: 0 auto; text-align: center; }
  .footer-top { padding: 40px 0; }
  .fixed-consult a { width: 50px; height: 50px; font-size: 11px; }
  .back-to-top { width: 42px; height: 42px; right: 10px; bottom: 70px; }
  .article-detail { padding: 20px 16px; }
  .article-detail .article-title { font-size: 22px; }
  .consult-popup { width: calc(100% - 20px); right: 10px; bottom: 10px; }
  .btn { padding: 10px 18px; font-size: 14px; }
  .captcha-container { width: 100px; height: 40px; font-size: 18px; }
}