/* ===== 全站公共样式 - 维启网络 ===== */
:root {
    --primary: #0052d9;
    --primary-dark: #003fb3;
    --accent: #00a4ff;
    --dark: #1a1a2e;
    --gray: #f5f7fa;
    --text: #333;
    --text-light: #666;
    --white: #fff;
    --shadow: 0 4px 20px rgba(0,0,0,.08);
    --radius: 12px;
    --container: 1200px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { width: 100%; overflow-x: hidden; overflow-y: auto; }
html { scroll-behavior: smooth; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
    color: var(--text); line-height: 1.7; background: var(--white);
}
a { text-decoration: none; color: inherit; transition: .3s; }
ul { list-style: none; }
img { max-width: 100%; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }

/* ===== 顶部条 ===== */
.topbar {
    background: #1a1a2e; color: #ccc; font-size: 13px;
    padding: 8px 0; border-bottom: 1px solid #2a2a40;
}
.topbar .container {
    display: flex; justify-content: space-between; align-items: center;
}
.topbar-right { display: flex; align-items: center; gap: 18px; }
.topbar a { color: #ccc; }
.topbar a:hover { color: var(--accent); }
.topbar-phone { color: var(--accent) !important; font-weight: 600; }

/* ===== 主导航 ===== */
.nav-bar {
    position: sticky; top: 0; z-index: 1000;
    background: #fff; border-bottom: 1px solid #eee;
    height: 60px; display: flex; align-items: center;
    box-shadow: 0 1px 4px rgba(0,0,0,.03);
}
.nav-inner {
    max-width: var(--container); margin: 0 auto; padding: 0 20px;
    display: flex; align-items: center; justify-content: space-between; width: 100%;
}
.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.nl-icon { width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; }
.nl-text { font-size: 20px; font-weight: 700; color: var(--dark); line-height: 1.2; }
.nl-text em { color: var(--primary); font-style: normal; }

.nav-list { display: flex; list-style: none; align-items: center; gap: 0; }
.nav-item { position: relative; }
.nav-item > a {
    display: flex; align-items: center; gap: 4px;
    padding: 10px 16px; font-size: 15px; font-weight: 500;
    color: #555; text-decoration: none; border-radius: 6px; transition: .2s;
}
.nav-item > a .arrow { font-size: 10px; color: #bbb; transition: .2s; display: inline-block; }
.nav-item:hover > a .arrow { transform: rotate(180deg); color: var(--primary); }
.nav-item > a:hover, .nav-item > a.active { color: var(--primary); background: #e8f1ff; }

.nav-cta {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 9px 18px; background: var(--primary); color: #fff;
    border-radius: 6px; font-size: 14px; font-weight: 600;
    text-decoration: none; transition: .2s; margin-left: 10px; flex-shrink: 0;
}
.nav-cta:hover { background: var(--primary-dark); color: #fff; }

/* 下拉菜单 */
.mega-drop {
    position: absolute; top: 100%; left: 50%; transform: translateX(-50%) translateY(10px);
    background: #fff; border: 1px solid #eee; border-radius: 10px;
    padding: 8px; min-width: 640px;
    opacity: 0; visibility: hidden; pointer-events: none;
    transition: .2s ease; box-shadow: 0 8px 28px rgba(0,0,0,.08);
    z-index: 100;
}
.nav-item:hover .mega-drop { opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(-50%) translateY(0); }
.mega-grid { display: grid; grid-template-columns: repeat(5,1fr); gap: 4px; }
.mega-col { display: flex; flex-direction: column; padding: 4px; }
.mega-col .mg-title { font-size: 11px; font-weight: 700; color: #bbb; letter-spacing: 1px; padding: 8px 10px 6px; border-bottom: 1px solid #f5f5f5; margin-bottom: 4px; }
.mega-col a { display: block; padding: 8px 10px; font-size: 13px; color: #555; text-decoration: none; border-radius: 6px; transition: .15s; }
.mega-col a:hover { background: #e8f1ff; color: var(--primary); }

/* ===== Footer ===== */
footer { background: #0d0d1e; color: #888; padding: 60px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.2fr; gap: 40px; margin-bottom: 40px; }
.footer-brand .footer-logo { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 700; color: #fff; margin-bottom: 14px; }
.footer-brand p { font-size: 13px; line-height: 1.8; color: #666; }
.footer-col h4 { color: #fff; font-size: 15px; font-weight: 700; margin-bottom: 18px; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { font-size: 13px; color: #666; transition: .3s; }
.footer-col ul li a:hover { color: var(--accent); }
.footer-contact li { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; margin-bottom: 14px; color: #666; }
.footer-contact li .fc-icon { font-size: 16px; flex-shrink: 0; margin-top: 2px; }
.footer-tel { color: var(--accent) !important; font-weight: 600; font-size: 15px !important; }
.footer-bottom {
    border-top: 1px solid #1a1a2e; padding: 20px 0;
    display: flex; justify-content: space-between; align-items: center;
    font-size: 12px; color: #444; flex-wrap: wrap; gap: 10px;
}
.footer-bottom a { color: #444; }
.footer-bottom a:hover { color: var(--accent); }

/* ===== 浮动客服 ===== */
.sticky-cta { position: fixed; top: 50%; right: 20px; transform: translateY(-50%); z-index: 99; display: flex; flex-direction: column; gap: 10px; }
.sticky-cta a { width: 54px; height: 54px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; box-shadow: 0 4px 15px rgba(0,0,0,.2); transition: .3s; }
.sticky-cta .sc-online { background: var(--primary); }
.sticky-cta .sc-wechat { background: #07c160; }
.sticky-cta .sc-tel { background: #ff5722; }
.sticky-cta .sc-top { background: #1a1a2e; opacity: 0; pointer-events: none; transition: .3s; }
.sticky-cta a:hover { transform: scale(1.1); color: #fff; }

/* ===== Modal ===== */
.phone-modal, .wechat-modal {
    display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,.6); z-index: 9999;
    align-items: center; justify-content: center;
}
.phone-modal-box, .wechat-modal-box {
    background: #fff; border-radius: 16px; padding: 32px;
    text-align: center; position: relative; max-width: 360px; width: 90%;
    box-shadow: 0 20px 60px rgba(0,0,0,.3); animation: modalIn .25s ease;
}
@keyframes modalIn { from { opacity: 0; transform: scale(.9); } to { opacity: 1; transform: scale(1); } }
.phone-modal-box h3 { font-size: 18px; color: #333; margin-bottom: 20px; font-weight: 600; }
.ph-line { display: flex; align-items: center; justify-content: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid #eee; }
.ph-line:last-of-type { border-bottom: none; }
.ph-icon { width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 18px; color: #fff; flex-shrink: 0; }
.ph-icon.tel { background: linear-gradient(135deg,#ff5722,#e64a19); }
.ph-icon.mobile { background: linear-gradient(135deg,#07c160,#05903a); }
.ph-info { text-align: left; }
.ph-label { font-size: 12px; color: #999; margin-bottom: 2px; }
.ph-num { font-size: 20px; font-weight: 700; color: #333; }
.ph-num a { color: #333; text-decoration: none; }
.ph-close, .wechat-modal-close {
    position: absolute; top: 12px; right: 16px; background: none; border: none;
    font-size: 28px; cursor: pointer; color: #999; line-height: 1;
}
.ph-close:hover, .wechat-modal-close:hover { color: #333; }
.ph-close-btn { display: inline-block; margin-top: 20px; padding: 10px 32px; background: #f0f0f0; border-radius: 25px; color: #666; font-size: 14px; cursor: pointer; border: none; }
.ph-close-btn:hover { background: #e0e0e0; }

/* ===== 移动端菜单 ===== */
.hamburger { display: none; flex-direction: column; justify-content: space-between; width: 28px; height: 20px; background: none; border: none; cursor: pointer; padding: 0; flex-shrink: 0; }
.hamburger span { display: block; width: 100%; height: 3px; background: #555; border-radius: 2px; transition: .3s; }
.hamburger.is-active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.is-active span:nth-child(2) { opacity: 0; }
.hamburger.is-active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
.mob-overlay { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,.5); z-index: 999; opacity: 0; transition: opacity .3s; }
.mob-overlay.active { display: block; opacity: 1; }
.mob-drawer { display: none; position: fixed; top: 0; right: -280px; width: 280px; height: 100%; background: #fff; z-index: 1000; overflow-y: auto; transition: right .3s ease; box-shadow: -2px 0 10px rgba(0,0,0,.1); }
.mob-drawer.active { display: block; right: 0; }
.mob-drawer .md-close { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; position: absolute; top: 14px; right: 14px; background: #f0f0f0; border-radius: 50%; font-size: 18px; color: #666; cursor: pointer; }
.mob-drawer ul { padding: 60px 0 20px; list-style: none; }
.mob-drawer ul li { border-bottom: 1px solid #f0f0f0; }
.mob-drawer ul li > a { display: flex; justify-content: space-between; align-items: center; padding: 14px 20px; font-size: 15px; color: #333; text-decoration: none; }
.mob-drawer .mob-sub a { display: block; padding: 10px 20px 10px 36px; font-size: 14px; color: #666; background: #fafafa; border-bottom: 1px solid #f0f0f0; text-decoration: none; }
.mob-drawer .mob-sub a:last-child { border-bottom: none; }
.mob-cta { display: block; margin: 20px; padding: 12px; background: var(--primary); color: #fff; text-align: center; border-radius: 8px; font-size: 15px; font-weight: 600; text-decoration: none; }
.mob-cta:hover { background: var(--primary-dark); color: #fff; }

/* ===== 通用区块 ===== */
.section { padding: 70px 0; }
.section.bg-gray { background: var(--gray); }
.section-header { text-align: center; margin-bottom: 50px; }
.section-header .section-tag { display: inline-block; background: linear-gradient(135deg,#e8f1ff,#fff); border: 1px solid #c2d6f5; color: var(--primary); padding: 5px 16px; border-radius: 50px; font-size: 13px; font-weight: 600; margin-bottom: 14px; }
.section-header h2 { font-size: 32px; font-weight: 800; color: var(--dark); margin-bottom: 10px; }
.section-header h2 em { color: var(--primary); font-style: normal; }
.section-header p { font-size: 16px; color: var(--text-light); max-width: 600px; margin: 0 auto; }

/* 表单按钮（共用） */
.form-submit { width: 100%; padding: 13px; background: linear-gradient(135deg,var(--primary),var(--accent)); color: #fff; border: none; border-radius: 8px; font-size: 16px; font-weight: 700; cursor: pointer; transition: .3s; font-family: inherit; }
.form-submit:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(0,82,217,.3); }

/* ===== 响应式 ===== */
@media (max-width: 992px) {
    .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 30px; }
    .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 768px) {
    .topbar { font-size: 12px; }
    .topbar > .container > span { display: none; }
    .topbar-right { gap: 12px; }
    .hamburger { display: flex; }
    .nav-list, .nav-cta { display: none; }
    .nav-bar { height: 56px; }
    .section { padding: 40px 0; }
    .section-header { margin-bottom: 30px; }
    .section-header h2 { font-size: 24px; }
    .footer-grid { grid-template-columns: 1fr; gap: 25px; }
    .footer-brand { grid-column: auto; }
    .footer-bottom { flex-direction: column; text-align: center; gap: 8px; }
    .sticky-cta { right: 12px; gap: 8px; }
    .sticky-cta a { width: 46px; height: 46px; }
    .mega-drop { display: none !important; }
}

/* 详情按钮 */
.btn-detail{display:inline-block;padding:8px 18px;background:#fff;color:#0052d9;border:1px solid #0052d9;border-radius:6px;text-decoration:none;font-size:13px;font-weight:600;transition:.2s}
.btn-detail:hover{background:#0052d9;color:#fff}
.footer-row .btn-detail{margin-right:6px}
