/* ========== 全局基础样式 ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #333;
    background-color: #f8f9fa;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
.container {
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 24px;
}
a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}
ul {
    list-style: none;
}
/* 通用标签 */
.tag {
    position: absolute;
    top: 4px;
    right: 4px;
    padding: 1px 3px;
    border-radius: 2px;
    font-size: 9px;
    color: #fff;
    line-height: 1.3;
    z-index: 2;
    font-weight: 500;
}
.tag-ad {
    background: #ff7d00;
}

/* ========== 顶部导航 ========== */
.header {
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    position: sticky;
    top: 0;
    z-index: 100;
}
.nav-wrap {
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    position: relative;
}
.logo {
    font-size: 24px;
    font-weight: 700;
    color: #165DFF;
    margin-right: 60px;
    flex-shrink: 0;
}
.logo a {
    color: inherit;
}
.nav-toggle {
    display: none;
}
.nav-toggle-label {
    display: none;
    cursor: pointer;
    font-size: 22px;
    color: #333;
    position: absolute;
    left: 24px;
    top: 50%;
    transform: translateY(-50%);
    padding: 8px;
    border-radius: 4px;
    transition: background 0.3s ease;
    z-index: 101;
}
.nav-toggle-label:hover {
    background: #f5f7fa;
}
.main-nav {
    display: flex;
    gap: 36px;
    flex: 1;
}
.main-nav a {
    font-size: 16px;
    color: #333;
    position: relative;
}
.main-nav a:hover {
    color: #165DFF;
}
.main-nav a.active {
    color: #165DFF;
    font-weight: 500;
}
.nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.consult-btn {
    background: #165DFF;
    color: #fff;
    padding: 9px 24px;
    border-radius: 5px;
    font-size: 15px;
    font-weight: 500;
    transition: background 0.3s ease;
    flex-shrink: 0;
}
.consult-btn:hover {
    background: #0e4bcc;
    color: #fff;
}

/* ========== 垂直滚动资讯栏 ========== */
.news-scroll-section {
    margin-top: 16px;
}
.news-scroll-box {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 14px rgba(0,0,0,0.05);
    height: 60px;
    overflow: hidden;
}
.news-scroll-wrap {
    height: 100%;
    animation: verticalScroll 18s infinite ease-in-out;
}
.news-item {
    height: 60px;
    line-height: 60px;
    padding: 0 28px;
    display: flex;
    align-items: center;
    gap: 24px;
}
.news-item a {
    flex: 1;
    color: #165DFF;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.news-item a:hover {
    color: #0e4bcc;
}
.news-item a::before {
    content: "📄";
    font-size: 14px;
    flex-shrink: 0;
}
@keyframes verticalScroll {
    0% { transform: translateY(0); }
    30% { transform: translateY(0); }
    35% { transform: translateY(-60px); }
    63% { transform: translateY(-60px); }
    68% { transform: translateY(-120px); }
    97% { transform: translateY(-120px); }
    100% { transform: translateY(0); }
}

/* ========== 两栏布局（分类页/内容页公共） ========== */
.main-layout {
    margin-top: 16px;
    display: flex;
    gap: 28px;
    align-items: flex-start;
}
.main-content {
    flex: 1;
    min-width: 0;
}
.sidebar {
    width: 340px;
    flex-shrink: 0;
}

/* ========== 面包屑 ========== */
.breadcrumb-card {
    background: #fcfcfd;
    border: 1px solid #eef0f3;
    border-radius: 8px 8px 0 0;
    padding: 10px 20px;
}
.breadcrumb {
    font-size: 13px;
    color: #8892a0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}
.breadcrumb a {
    color: #8892a0;
}
.breadcrumb a:hover {
    color: #165DFF;
}
.breadcrumb span {
    margin: 0 6px;
    color: #cbd5e1;
}
.breadcrumb .current {
    color: #4b5563;
    font-weight: 500;
}

/* ========== 广告列表 ========== */
.ad-list-section {
    margin: 16px 0;
}
.ad-table-list {
    display: grid;
    /*grid-template-columns: repeat(2, 1fr);*/
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 0;
    row-gap: 0;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 14px rgba(0,0,0,0.05);
    overflow: hidden;
    border: 1px solid #eef0f3;
}
.ad-row {
    position: relative;
    border-right: 1px solid #eef0f3;
    border-bottom: 1px solid #eef0f3;
}
.ad-row:nth-child(2n) {
    border-right: none;
}
.ad-row:nth-last-child(-n+2):nth-last-child(-n+1) {
    border-bottom: none;
}
.ad-row a {
    display: block;
    padding: 13px 36px 13px 20px;
    font-size: 14px;
    color: #333;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.ad-row a:hover {
    color: #165DFF;
    background: #f8faff;
}

/* ========== 文章卡片 ========== */
.article-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 32px;
}
.section-title {
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 16px;
}
.article-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 14px rgba(0,0,0,0.05);
    padding: 22px 20px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}
.article-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.07);
    transform: translateY(-2px);
    border-color: #e8f1ff;
}
.article-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 20px;
    margin-bottom: 10px;
}
.article-title {
    flex: 1;
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
    line-height: 1.5;
    transition: color 0.3s ease;
}
.article-card:hover .article-title {
    color: #165DFF;
}
.article-date {
    flex-shrink: 0;
    font-size: 13px;
    color: #9ca3af;
}
.article-desc {
    font-size: 15px;
    color: #4b5563;
    line-height: 1.7;
    margin-bottom: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.tag-mini {
    font-size: 12px;
    padding: 4px 10px;
    background: #f5f7fa;
    color: #6b7280;
    border-radius: 4px;
    transition: all 0.3s ease;
}
.tag-mini:hover {
    background: #165DFF;
    color: #fff;
}

/* ========== 边栏通用卡片 ========== */
.sidebar-widget {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 14px rgba(0,0,0,0.05);
    padding: 20px;
    margin-bottom: 20px;
}
.widget-title {
    font-size: 17px;
    font-weight: 600;
    color: #1f2937;
    padding-left: 12px;
    border-left: 3px solid #165DFF;
    margin-bottom: 14px;
}
.widget-list li {
    padding: 9px 0;
    border-bottom: 1px dashed #f0f1f3;
    display: flex;
    align-items: center;
    gap: 10px;
}
.widget-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.widget-list li:first-child {
    padding-top: 0;
}
.widget-list a {
    flex: 1;
    font-size: 15px;
    color: #4b5563;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color 0.3s ease;
}
.widget-list a:hover {
    color: #165DFF;
}
.widget-list li::before {
    content: "•";
    color: #165DFF;
    font-size: 16px;
    flex-shrink: 0;
}

/* ========== 边栏广告轮播 ========== */
.sidebar-ad {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    height: 140px;
}
.sidebar-ad-wrap {
    display: flex;
    width: 300%;
    height: 100%;
    animation: adSlide 9s infinite ease-in-out;
}
.sidebar-ad-item {
    width: calc(100% / 3);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    text-decoration: none; /* 去掉a下划线 */
}
.sidebar-ad-item:nth-child(1) {
    background: linear-gradient(135deg, #165DFF, #0e4bcc);
}
.sidebar-ad-item:nth-child(2) {
    background: linear-gradient(135deg, #ff7d00, #e55a00);
}
.sidebar-ad-item:nth-child(3) {
    background: linear-gradient(135deg, #10b981, #059669);
}
@keyframes adSlide {
    0% { transform: translateX(0); }
    28% { transform: translateX(0); }
    33% { transform: translateX(calc(-100% / 3 * 1)); }
    61% { transform: translateX(calc(-100% / 3 * 1)); }
    66% { transform: translateX(calc(-100% / 3 * 2)); }
    94% { transform: translateX(calc(-100% / 3 * 2)); }
    100% { transform: translateX(0); }
}

/* ========== 页脚 ========== */
.footer {
    margin-top: 56px;
    background: #1f2937;
    color: #9ca3af;
    padding: 28px 0;
    font-size: 14px;
}
/*
.footer-links {
    text-align: center;
    margin-bottom: 10px;
}
.footer-links a {
    margin: 0 14px;
    transition: color 0.3s ease;
}
.footer-links a:hover {
    color: #fff;
}*/
.footer-copyright {
    text-align: center;
    font-size: 13px;
}
/*=================联系方式弹窗==============*/
/* 遮罩层，默认隐藏 */
.popup-mask {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 999;
    align-items: center;
    justify-content: center;
}
/* 弹窗盒子 */
.popup-box {
    background: #fff;
    width: 320px;
    padding: 24px;
    border-radius: 10px;
    position: relative;
}
/* 关闭按钮：放大字号，加大点击区域 */
.popup-close {
    position: absolute;
    right: 10px;
    top: 6px;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
    color: #666;
    /* 扩大点击范围 */
    padding: 6px 10px;
}
.popup-close:hover{
    color:#f00;
}
.contact-item{
    margin:16px 0;
    font-size:16px;
}
/* ========== 公共响应式适配 ========== */
@media (max-width: 1200px) {
    .container {
        max-width: 100%;
    }
    .sidebar {
        width: 300px;
    }
}
@media (max-width: 991px) {
    .main-layout {
        flex-direction: column;
    }
    .sidebar {
        width: 100%;
    }
    .news-scroll-box,
    .news-item {
        height: 120px;
        line-height: 60px;
    }
    .news-item {
        flex-wrap: wrap;
        row-gap: 0;
    }
    .news-item a {
        flex: 0 0 calc(50% - 12px);
    }
    .ad-table-list {
        /*grid-template-columns: 1fr;*/
        grid-template-columns: minmax(0,1fr);
    }
    .ad-row {
        border-right: none;
    }
    .ad-row:last-child {
        border-bottom: none;
    }
    /* 中屏滚动动画 */
    @keyframes verticalScroll {
        0% { transform: translateY(0); }
        30% { transform: translateY(0); }
        35% { transform: translateY(-120px); }
        63% { transform: translateY(-120px); }
        68% { transform: translateY(-240px); }
        97% { transform: translateY(-240px); }
        100% { transform: translateY(0); }
    }
}
@media (max-width: 768px) {
    .nav-wrap {
        height: 56px;
        justify-content: center;
    }
    .logo {
        margin-right: 0;
        font-size: 20px;
    }
    .nav-toggle-label {
        display: block;
        left: 16px;
    }
    .consult-btn {
        display: none;
    }
    .main-nav {
        position: fixed;
        left: -280px;
        top: 0;
        width: 280px;
        height: 100vh;
        background: #fff;
        border-right: 1px solid #e5e7eb;
        flex-direction: column;
        gap: 0;
        padding: 24px 0;
        transition: left 0.3s ease;
        z-index: 1000;
        overflow-y: auto;
    }
    .nav-toggle:checked ~ .main-nav {
        left: 0;
    }
    .nav-toggle:checked ~ .nav-overlay {
        opacity: 1;
        visibility: visible;
    }
    .main-nav a {
        font-size: 15px;
        color: #333;
        padding: 14px 24px;
        border-bottom: 1px solid #f0f1f3;
    }
    .main-nav a:hover {
        color: #165DFF;
        background: #f8f9fa;
    }
    .breadcrumb-card {
        padding: 10px 16px;
    }
    .news-scroll-box,
    .news-item {
        height: 200px;
        line-height: 50px;
    }
    .news-item a {
        flex: 0 0 100%;
        font-size: 13px;
    }
    /* 小屏滚动动画 */
    @keyframes verticalScroll {
        0% { transform: translateY(0); }
        30% { transform: translateY(0); }
        35% { transform: translateY(-200px); }
        63% { transform: translateY(-200px); }
        68% { transform: translateY(-400px); }
        97% { transform: translateY(-400px); }
        100% { transform: translateY(0); }
    }
}
@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    .news-item {
        padding: 0 20px;
    }
    .article-card {
        padding: 18px 16px;
    }
    .article-title {
        font-size: 17px;
    }
    .ad-row a {
        padding: 12px 32px 12px 16px;
        font-size: 13px;
    }
    .article-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
}
