:root {
    --primary-color: #1a5490;
    --secondary-color: #2d7bc7;
    --accent-color: #ff6b35;
    --text-dark: #1a1a1a;
    --text-light: #666;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --border-color: #e2e8f0;
    --success-color: #10b981;
    --gradient-1: linear-gradient(135deg, #1a5490 0%, #2d7bc7 100%);
    --gradient-2: linear-gradient(135deg, #ff6b35 0%, #ff8c61 100%);
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.12);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.16);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "PingFang SC", sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--bg-light);
    overflow-x: hidden;
}

/* --- 顶部导航栏 --- */
.header {
    background: var(--bg-white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 2px solid var(--primary-color);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    white-space: nowrap;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 30px;
    list-style: none;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 16px;
    transition: all 0.3s ease;
    position: relative;
    white-space: nowrap;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-1);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after, .nav-menu a.active::after { width: 100%; }
.nav-menu a:hover, .nav-menu a.active { color: var(--primary-color); }

/* --- 搜索框 --- */
.search-box {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-light);
    padding: 8px 16px;
    border-radius: 24px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.search-box:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(26,84,144,0.1);
}

.search-box input {
    border: none;
    background: transparent;
    outline: none;
    width: 200px;
    font-size: 14px;
}

.search-box button {
    background: var(--gradient-1);
    color: white;
    border: none;
    padding: 6px 16px;
    border-radius: 18px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.search-box button:hover { transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.mobile-menu-btn { display: none; background: none; border: none; font-size: 24px; cursor: pointer; color: var(--text-dark); }

/* --- 首页：轮播图 --- */
.slider-container {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px;
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
}

.slider { position: relative; height: 401px; }
.slide { position: absolute; width: 100%; height: 100%; opacity: 0; transition: opacity 0.8s ease-in-out; }
.slide.active { opacity: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; }

.slider-dots {
    position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%);
    display: flex; gap: 10px; z-index: 10;
}
.dot {
    width: 12px; height: 12px; border-radius: 50%; background: rgba(255,255,255,0.5);
    cursor: pointer; transition: all 0.3s ease; border: 2px solid white;
}
.dot.active { background: white; transform: scale(1.2); }

.slider-arrow {
    position: absolute; top: 50%; transform: translateY(-50%);
    background: rgba(255,255,255,0.9); border: none; width: 50px; height: 50px;
    border-radius: 50%; cursor: pointer; font-size: 20px; color: var(--primary-color);
    transition: all 0.3s ease; z-index: 10; box-shadow: var(--shadow-sm);
}
.slider-arrow:hover { background: white; transform: translateY(-50%) scale(1.1); }
.slider-arrow.prev { left: 20px; }
.slider-arrow.next { right: 20px; }

/* --- 首页：通用板块 --- */
.section-title { text-align: center; margin-bottom: 50px; }
.section-title h2 {
    font-size: 36px; font-weight: 700; background: var(--gradient-1);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text; margin-bottom: 10px;
}
.section-title p { color: var(--text-light); font-size: 16px; }

/* --- 首页：优势模块 --- */
.why-choose, .articles-section { max-width: 1200px; margin: 60px auto; padding: 0 20px; }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; }

.feature-card {
    background: var(--bg-white); padding: 40px 30px; border-radius: 16px;
    box-shadow: var(--shadow-sm); transition: all 0.4s ease; border: 2px solid transparent;
    position: relative; overflow: hidden;
}
.feature-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: var(--primary-color); }
.feature-icon {
    width: 70px; height: 70px; background: var(--gradient-1); border-radius: 50%;
    display: flex; align-items: center; justify-content: center; font-size: 32px;
    color: white; margin-bottom: 20px;
}
.feature-card h3 { font-size: 22px; margin-bottom: 12px; color: var(--text-dark); }
.feature-card p { color: var(--text-light); line-height: 1.8; }

/* --- 首页：文章网格 --- */
.articles-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(350px, 1fr)); gap: 30px; margin-top: 30px; }
.article-card {
    background: var(--bg-white); border-radius: 12px; overflow: hidden;
    box-shadow: var(--shadow-sm); transition: all 0.3s ease; border: 1px solid var(--border-color);
}
.article-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--primary-color); }
.article-tag {
    display: inline-block; background: var(--gradient-2); color: white;
    padding: 4px 12px; border-radius: 4px; font-size: 12px; font-weight: 500; margin: 20px 0 0 20px;
}
.article-content { padding: 20px; }
.article-card h3 {
    font-size: 18px; line-height: 1.5; margin-bottom: 12px; color: var(--text-dark);
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.article-card h3 a { text-decoration: none; color: inherit; transition: color 0.3s ease; }
.article-card h3 a:hover { color: var(--primary-color); }
.article-desc {
    color: var(--text-light); font-size: 14px; line-height: 1.6;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 15px;
}
.article-meta, .article-footer {
    display: flex; justify-content: space-between; align-items: center;
    padding-top: 15px; border-top: 1px solid var(--border-color); font-size: 13px; color: var(--text-light);
}
.read-more, .read-link {
    color: var(--primary-color); font-weight: 500; text-decoration: none;
    display: flex; align-items: center; gap: 5px; transition: gap 0.3s ease;
}
.read-more:hover, .read-link:hover { gap: 8px; }

/* --- 列表页/详情页：页面头部 --- */
.page-header { background: var(--gradient-1); color: white; padding: 60px 20px; text-align: center; }
.page-header h1 { font-size: 42px; margin-bottom: 15px; }
.page-header p { font-size: 18px; opacity: 0.9; }

/* --- 列表页/详情页：主体布局 --- */
.main-content, .main-wrapper { max-width: 1200px; margin: 40px auto; padding: 0 20px; }
.main-wrapper { display: grid; grid-template-columns: 1fr 320px; gap: 30px; }

/* --- 列表页：文章列表样式 --- */
.articles-list { display: grid; gap: 25px; }
.article-item {
    background: var(--bg-white); border-radius: 12px; padding: 30px;
    box-shadow: var(--shadow-sm); transition: all 0.3s ease; border-left: 4px solid transparent;
}
.article-item:hover {
    transform: translateX(5px); box-shadow: var(--shadow-md); border-left-color: var(--accent-color);
}
.article-number {
    display: inline-block; background: var(--gradient-2); color: white;
    width: 35px; height: 35px; border-radius: 50%; text-align: center;
    line-height: 35px; font-weight: 700; margin-bottom: 15px;
}
.article-item h2 { font-size: 22px; margin-bottom: 12px; line-height: 1.5; }
.article-item h2 a { text-decoration: none; color: var(--text-dark); transition: color 0.3s ease; }
.article-item h2 a:hover { color: var(--primary-color); }
.article-excerpt { color: var(--text-light); line-height: 1.8; margin-bottom: 15px; }

/* --- 详情页：内容容器 --- */
.article-container { background: var(--bg-white); padding: 40px; border-radius: 16px; box-shadow: var(--shadow-md); }
.article-header { border-bottom: 1px solid var(--border-color); margin-bottom: 30px; padding-bottom: 20px; }
.article-header h1 { font-size: 30px; color: var(--primary-color); line-height: 1.4; margin-bottom: 15px; }
.meta-info { color: var(--text-light); font-size: 14px; }

.content-body { font-size: 17px; color: #333; }
.content-body h2 { color: var(--primary-color); margin: 35px 0 15px; border-left: 5px solid var(--accent-color); padding-left: 15px; }
.content-body p { margin-bottom: 20px; text-indent: 2em; }
.highlight { color: #d32f2f; font-weight: bold; background: #fffde7; padding: 0 4px; }

/* --- 详情页：表格 --- */
.compare-table { width: 100%; border-collapse: collapse; margin: 25px 0; font-size: 15px; }
.compare-table th { background: var(--primary-color); color: white; padding: 12px; border: 1px solid var(--border-color); }
.compare-table td { padding: 12px; border: 1px solid var(--border-color); text-align: center; }
.compare-table tr:nth-child(even) { background: #f9fbff; }

/* --- 详情页：侧边栏 & 订阅 --- */
.sidebar-box { background: var(--bg-white); padding: 25px; border-radius: 12px; box-shadow: 0 4px 12px rgba(0,0,0,0.05); margin-bottom: 25px; }
.box-title { font-size: 18px; font-weight: 700; margin-bottom: 20px; padding-bottom: 10px; border-bottom: 2px solid var(--primary-color); }
.hot-list { list-style: none; }
.hot-list li { margin-bottom: 12px; padding-left: 15px; position: relative; }
.hot-list li::before { content: "•"; color: var(--accent-color); position: absolute; left: 0; font-weight: bold; }
.hot-list a { text-decoration: none; color: #444; font-size: 14px; }

.wechat-sub { text-align: center; background: #f0f7ff; border: 1px dashed var(--secondary-color); padding: 20px; border-radius: 10px; margin: 30px 0; }
.wechat-sub img { width: 180px; border-radius: 8px; margin: 15px 0; border: 5px solid #fff; }

.page-nav { display: flex; justify-content: space-between; margin-top: 50px; padding-top: 20px; border-top: 1px solid var(--border-color); }
.page-nav a { text-decoration: none; color: var(--primary-color); font-weight: 500; }

/* --- 悬浮组件 --- */
.side-float {
    position: fixed; right: 20px; top: 50%; transform: translateY(-50%);
    z-index: 999; display: flex; flex-direction: column; gap: 15px;
}
.float-item {
    background: var(--bg-white); width: 60px; height: 60px; border-radius: 12px;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    box-shadow: var(--shadow-md); cursor: pointer; transition: all 0.3s ease;
    border: 2px solid var(--border-color);
}
.float-item:hover { transform: scale(1.1); border-color: var(--primary-color); }
.float-item img { width: 30px; height: 30px; margin-bottom: 3px; }
.float-item span { font-size: 11px; color: var(--text-light); font-weight: 500; }
.float-phone {
    background: var(--gradient-2); color: white; text-decoration: none;
    font-size: 12px; padding: 10px; text-align: center; line-height: 1.3;
}
.float-phone span { color: white; }

.service-float {
    position: fixed; left: 20px; top: 50%; transform: translateY(-50%);
    z-index: 999; animation: float 3s ease-in-out infinite;
}
@keyframes float {
    0%, 100% { transform: translateY(-50%) translateX(0); }
    50% { transform: translateY(-50%) translateX(-10px); }
}
.service-btn {
    background: var(--gradient-1); color: white; width: 60px; height: 60px;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 28px; box-shadow: var(--shadow-lg); cursor: pointer;
    transition: all 0.3s ease; border: 3px solid white;
}
.service-btn:hover { transform: scale(1.1); }

/* --- 弹窗 --- */
.qr-modal {
    display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.7); z-index: 9999; align-items: center; justify-content: center;
    backdrop-filter: blur(5px);
}
.qr-modal.active { display: flex; }
.qr-content {
    background: white; padding: 30px; border-radius: 20px; text-align: center;
    position: relative; max-width: 90%; animation: modalZoom 0.3s ease;
}
@keyframes modalZoom {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}
.qr-content img { max-width: 300px; border-radius: 12px; }
.qr-close {
    position: absolute; top: 10px; right: 10px; background: var(--accent-color);
    color: white; border: none; width: 35px; height: 35px; border-radius: 50%;
    cursor: pointer; font-size: 20px; line-height: 1; transition: all 0.3s ease;
}
.qr-close:hover { transform: rotate(90deg); }

/* --- 底部 Footer --- */
.footer {
    background: var(--text-dark); color: #999; padding: 50px 20px 20px; margin-top: 80px;
    text-align: center; /* 统一 */
}
.footer-container { max-width: 1200px; margin: 0 auto; text-align: left; }
.footer-title { color: white; font-size: 18px; margin-bottom: 20px; font-weight: 600; }
.site-links {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px 30px; margin-bottom: 40px; padding-bottom: 30px; border-bottom: 1px solid #333;
}
.site-links a { color: #999; text-decoration: none; transition: all 0.3s ease; font-size: 14px; }
.site-links a:hover { color: var(--accent-color); padding-left: 5px; }
.footer-bottom { padding-top: 20px; border-top: 1px solid #333; font-size: 14px; text-align: center; }
.footer-bottom a { color: #999; text-decoration: none; margin: 0 15px; }
.footer-bottom a:hover { color: var(--accent-color); }

/* --- 移动端适配 --- */
.mobile-contact { display: none; }
.mobile-fixed-bar { display: none; }

@media (max-width: 768px) {
    body { padding-bottom: 60px; /* 为固定栏留空 */ }
    
    .nav-menu {
        display: none; position: absolute; top: 70px; left: 0; right: 0;
        background: var(--bg-white); flex-direction: column; padding: 20px;
        box-shadow: var(--shadow-md); gap: 15px;
    }
    .nav-menu.active { display: flex; }
    .mobile-menu-btn { display: block; }
    .search-box { display: none; }
    .logo { font-size: 20px; }
    
    /* 首页适配 */
    .slider { height: 250px; }
    .slider-arrow { width: 40px; height: 40px; font-size: 16px; }
    .articles-grid { grid-template-columns: 1fr; }
    
    /* 列表/详情适配 */
    .main-wrapper { grid-template-columns: 1fr; margin: 20px auto; }
    .sidebar { display: none; }
    .page-header h1 { font-size: 32px; }
    .article-container { padding: 20px; border-radius: 0; }
    .article-header h1 { font-size: 22px; }
    
    /* 隐藏悬浮球，显示底部联系 */
    .side-float { display: none; }
    .service-float { left: 10px; }
    .service-btn { width: 50px; height: 50px; font-size: 24px; }
    
    .mobile-contact {
        display: block; background: var(--bg-white); padding: 30px 20px;
        text-align: center; border-top: 3px solid var(--primary-color);
    }
    .mobile-contact h3 { font-size: 20px; margin-bottom: 20px; color: var(--text-dark); }
    .mobile-contact img { max-width: 200px; margin: 20px auto; display: block; border-radius: 12px; box-shadow: var(--shadow-md); }
    .mobile-contact p { font-size: 18px; color: var(--primary-color); font-weight: 600; margin-top: 15px; }

    /* 详情页底部固定栏 */
    .mobile-fixed-bar {
        display: grid; position: fixed; bottom: 0; left: 0; width: 100%; height: 60px;
        background: white; box-shadow: 0 -2px 10px rgba(0,0,0,0.1); z-index: 9999;
        grid-template-columns: 1fr 1fr;
    }
    .fixed-btn { display: flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; font-weight: bold; font-size: 16px; }
    .btn-wechat { background: #fff; color: #07c160; }
    .btn-phone { background: var(--gradient-2); color: white; }
}