/* 轮播图 */
.carousel-img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}
/* 网站公告模块 */
.notice-wrap {
    background-color: #f7f9fc;
    padding: 16px 0;
    border-radius: 4px;
    margin-top: 12px;
}
.notice-row {
    display: flex;
    align-items: flex-start;
    gap: 18px;
}
.notice-left-tag {
    background-color: #c81020;
    color: #fff;
    font-size: 20px;
    font-weight: bold;
    line-height: 1.25;
    padding: 10px 15px;
    text-align: center;
    flex-shrink: 0;
    border-radius: 2px;
    min-width: 60px;
    white-space: pre-line;
}
.notice-list-box {
    flex: 1;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 20px;
}
.notice-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 7px 0;
    border-bottom: 1px solid #e4ebf3;
}
.notice-item a {
    color: #222;
    font-size: 14px;
    text-decoration: none;
    margin-right: 10px;
    /* 应用文字省略 */
.text-ellipsis;
}
.notice-item a:hover {
    color: #0052aa;
}
.notice-date {
    color: #666;
    font-size: 13px;
    flex-shrink: 0;
}
.notice-more {
    grid-column: 1 / -1;
    text-align: right;
    margin-top: 8px;
}
.notice-more a {
    color: #0052aa;
    font-size: 14px;
    text-decoration: none;
}
.notice-more a:hover {
    text-decoration: underline;
}

/* ========== 主体内容 设备 ========== */
.main-content {
    background: #fff;
    padding: 20px 0;
    margin-top: 7px;
}
.device-notice-card {
    border: 1px solid #e5e7eb;
    border-radius: 2px;
    overflow: hidden;
    height: 100%;
}
/* 修改：padding:10px 10px 0 */
.device-tab-header {
    display: flex;
    align-items: center;
    background: #f2f2f2 !important;
    padding: 10px 10px 0;
}
.tab-title {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    gap: 10px;
    flex-shrink: 0;
}
.title-bar {
    display: inline-block;
    width: 4px;
    height: 22px;
    background: #0052aa;
    border-radius: 2px;
}
.tab-title h3 {
    margin: 0;
    font-size: 20px;
    font-weight: bold;
    color: #222;
}
.tab-nav {
    display: flex;
    flex: 1;
    scrollbar-width: none;
    background: #ffffff;
}
.tab-nav::-webkit-scrollbar {
    display: none;
}
/* Tab按钮 修复晃动关键：固定边框、盒模型 */
.tab-btn {
    background: transparent;
    padding: 12px 11px;
    font-size: 15px;
    color: #333;
    cursor: pointer;
    white-space: nowrap;
    box-sizing: border-box;
    border-right: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
    border-top: 2px solid #e0e0e0;
    border-left: none;
    transition: color 0.2s ease; /* 只过渡文字颜色，不过渡边框 */
}
.tab-btn:first-child {
    border-left: 1px solid #e0e0e0;
}
/* 默认激活样式：仅顶部蓝条，无下边框 */
.tab-btn.active {
    border-top: 2px solid #0955c6;
    color: #0955c6;
    font-weight: bold;
    border-bottom: none;
}
/* 悬浮只变色，不修改底部边框，彻底消除晃动 */
.tab-btn:hover {
    border-top: 2px solid #0955c6;
    color: #0955c6;
}
.tab-more {
    flex-shrink: 0;
    padding: 0 20px;
}
.tab-more a {
    color: #333;
    text-decoration: none;
    font-size: 16px;
}
.tab-more a:hover {
    color: #0052aa;
}
/* 筛选栏 */
.filter-bar {
    padding: 12px 20px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    gap: 20px;
}
.filter-item {
    cursor: pointer;
    font-size: 14px;
    color: #333;
    padding: 2px 8px;
    transition: all 0.2s;
}
.filter-item.active {
    background: #0052aa;
    color: #fff;
}
.filter-item:hover {
    background: #0052aa;
    color: #fff;
}
/* 公告列表 */
.device-notice-list {
    padding: 10px 20px 20px;
}
.device-notice-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px dashed #e5e7eb;
}
.device-notice-item:last-child {
    border-bottom: none;
}
.device-notice-item a {
    color: #666;
    font-size: 14px;
    text-decoration: none;
    margin-right: 15px;
    transition: color 0.2s;
    /* 超长省略 */
.text-ellipsis;
}
.device-notice-item:hover a, .device-notice-item:hover span{
    color: #0052aa;
}
.device-notice-item .notice-date {
    color: #b3b3b3;
    font-size: 13px;
    flex-shrink: 0;
    cursor: pointer;
}

/* 右侧快捷入口 */
.quick-entry-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}
.quick-entry-item {
    background: #f8f9fa;
    border: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px 0;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s;
}
.quick-entry-item:hover {
    border-color: #0052aa;
    background: #f0f5fb;
}
.quick-entry-item i {
    font-size: 36px;
    color: #0052aa;
}
.quick-entry-item span {
    font-size: 14px;
    color: #333;
    padding: 15px;
}

/* 联系我们卡片 */
.contact-card {
    border: 1px solid #e5e7eb;
    border-radius: 2px;
    overflow: hidden;
    margin-top: 20px;
}
.contact-title {
    display: flex;
    align-items: center;
    padding: 18px 20px;
    gap: 10px;
    background: #f2f2f2;
    border-bottom: 1px solid #e5e7eb;
}
.contact-title h3 {
    margin: 0;
    font-size: 20px;
    font-weight: bold;
    color: #222;
}
.contact-list {
    padding: 15px 20px;
}
.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 5px 0;
}
.contact-item i {
    font-size: 40px;
    color: #0052aa;
    flex-shrink: 0;
}
.contact-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.contact-label, .contact-value {
    color: #c81020;
    font-size: 16px;
}
.contact-value {
    font-weight: 500;
}
/* 下载中心模块 替换原有占位 */
.download-card {
    border: 1px solid #e5e7eb;
    border-radius: 2px;
    overflow: hidden;
}
.download-title {
    display: flex;
    align-items: center;
    padding: 18px 20px;
    gap: 10px;
    background: #f2f2f2 ;
    border-bottom: 1px solid #e5e7eb;
}
.download-title h3 {
    margin: 0;
    font-size: 20px;
    font-weight: bold;
    color: #222;
}
.download-list {
    padding: 15px 20px;
}
.download-item {
    padding: 6px 0;
    border-bottom: 1px dashed #eee;
    display: flex;
    justify-content: space-between;
}
.download-item a i {
    color: #999;
    padding-right: 10px;
    font-size: 12px;
}
.download-item:last-child {
    border-bottom: none;
}
.download-item a {
    color: #333;
    font-size: 14px;
    text-decoration: none;
.text-ellipsis;
}
.download-item a:hover {
    color: #0052aa;
}

/* ========== 滚动模块 ========== */
.scroll-list {
    height: 207px;
    overflow: hidden;
    padding: 15px 20px;
    position: relative;
}
/* 滚动内层容器，复制两份列表实现无缝 */
.scroll-wrap {
    animation: scrollUp 30s linear infinite;
}
/* 鼠标悬停暂停滚动 */
.scroll-list:hover .scroll-wrap {
    animation-play-state: paused;
}
.scroll-div {
    padding: 6px 0;
    border-bottom: 1px dashed #eee;
    display: flex;
    justify-content: space-between;
}
.scroll-div span:first-child {
    font-size: 14px;
    color: #333;
    padding-left: 10px;
    /* 名录名称超长自动省略 */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 75%;
}
.scroll-div .scroll-date{
    color: #999;
    flex-shrink: 0;
    font-size: 14px;
}
/* 滚动动画：计算完整列表高度实现无缝循环 */
@keyframes scrollUp {
    0% {
        transform: translateY(0);
    }
    100% {
        /* 单份列表高度，滚动完一份刚好衔接副本 */
        transform: translateY(-100%);
    }
}

@media (min-width: 768px) {
    .col-lg-8 {
        width: 70% !important;
    }
    .col-lg-4 {
        width: 30% !important;
    }
}
/* 移动端适配 */
@media (max-width: 768px) {
    .carousel-img {
        height: 200px;
    }
    .notice-row {
        flex-direction: column;
        gap: 10px;
    }
    .notice-left-tag {
        width: 100%;
        font-size: 18px;
        padding: 6px;
        white-space: nowrap;
        letter-spacing: 1em;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    .notice-list-box {
        grid-template-columns: 1fr;
    }
    .notice-item {
        flex-direction: row !important;
        align-items: center;
        gap: 0;
        padding: 6px 0;
    }
    .notice-wrap {
        padding: 12px 0;
    }
    .main-content {
        padding: 15px 0;
    }
    .device-tab-header {
        flex-wrap: wrap;
    }
    .tab-title {
        width: 100%;
        padding: 10px 15px;
    }
    .tab-more {
        display: none;
    }
    .tab-btn {
        padding: 12px 12px;
        font-size: 14px;
    }
    .filter-bar {
        padding: 10px 15px;
        gap: 12px;
    }
    .device-notice-list {
        padding: 10px 15px 15px;
    }
    .device-notice-item {
        padding: 8px 0;
    }
    .device-notice-item a {
        font-size: 13px;
    }
    .quick-entry-grid {
        gap: 10px;
        margin-top: 20px;
    }
    .quick-entry-item {
        padding: 15px 8px;
    }
    .quick-entry-item i {
        font-size: 28px;
    }
    .quick-entry-item span {
        font-size: 13px;
    }
    .contact-list {
        padding: 10px 15px;
    }
    .tab-title h3, .contact-title h3 {
        font-size: 18px;
    }
}