/* ================================== 基础重置 ================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: #333;
    min-height: 100vh;
    transition: background-color 0.3s ease;
}

/* 黑夜模式：body基础样式 */
[data-bs-theme="dark"] body {
    color: #eee;
    background-color: #121212;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    -webkit-tap-highlight-color: transparent;
}

a:hover {
    color: #00a8ee;
}

/* 黑夜模式：链接hover色 */
[data-bs-theme="dark"] a:hover {
    color: #40c4ff;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
    border: none;
    loading: lazy;
}

table {
    border-collapse: collapse;
    width: 100%;
}

/* ================================== 核心容器样式 ================================== */
/* 1. 全局背景（亮色模式） */
.page-global-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw !important;
    height: 100vh !important;
    background-color: #f5f5f5;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1 !important;
    margin: 0 !important;
    padding: 0 !important;
    transition: background-color 0.3s ease;
}

/* 黑夜模式：全局背景 */
[data-bs-theme="dark"] .page-global-bg {
    background-color: #1a1a1a;
}

/* 2. 顶部Banner（亮色模式） */
.publicHeader {
    position: relative !important;
    width: 100% !important;
    height: 380px !important;
    overflow: hidden;
    color: #fff;
    text-align: center;
    z-index: 2 !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Banner背景图 */
.publicHeader .headerBg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #191b1d;
    background-size: cover;
    background-position: center center !important;
    background-repeat: no-repeat;
    animation: 
        bannerFadeIn 1s ease forwards,
        bannerZoom 8s linear infinite alternate;
    z-index: 1;
    opacity: 0;
}

/* Banner背景遮罩 */
.publicHeader .headerBg::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    z-index: 1;
    transition: background-color 0.3s ease;
}

/* 黑夜模式：Banner背景遮罩 */
[data-bs-theme="dark"] .publicHeader .headerBg::after {
    background-color: rgba(0, 0, 0, 0.5);
}

/* 背景动画 */
@keyframes bannerFadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

@keyframes bannerZoom {
    0% { transform: scale(1); }
    100% { transform: scale(1.05); }
}

/* Banner文字内容 */
.publicHeader .text {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    padding: 0 20px;
    width: 100%;
    max-width: 1200px;
    margin: 0 !important;
    z-index: 2 !important;
    text-align: center;
}

.publicHeader .title {
    font-size: 32px;
    padding: 15px 0;
    margin-bottom: 10px;
    font-weight: 700;
    line-height: 1.2;
}

.publicHeader .infor {
    font-size: 18px;
    margin-bottom: 30px;
    line-height: 1.6;
    opacity: 0.9;
}

/* ================================== 在线沟通按钮 ================================== */
.publicHeader .img {
    display: inline-block;
    -webkit-tap-highlight-color: transparent;
}

.publicHeader .contact-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 22px;
    height: 38px;
    width: auto;
    background-color: #fff;
    color: #30a395;
    text-decoration: none;
    border-radius: 3px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* 黑夜模式：按钮样式 */
[data-bs-theme="dark"] .publicHeader .contact-btn {
    background-color: #2d2d2d;
    color: #80e2cc;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.publicHeader .contact-btn__icon {
    font-size: 16px;
}

.publicHeader .contact-btn:hover {
    background-color: #f0f0f0;
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    color: #30a395;
}

/* 黑夜模式：按钮hover */
[data-bs-theme="dark"] .publicHeader .contact-btn:hover {
    background-color: #3d3d3d;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    color: #a0f0e0;
}

.publicHeader .contact-btn:active {
    transform: translateY(0);
    box-shadow: none;
}

/* 3. 内容区容器 */
.page-content-bg {
    position: relative;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 40px 20px;
    background-color: #fff;
    border-radius: 26px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    z-index: 3 !important;
    margin-top: -50px;
    margin-bottom: 60px;
    transition: all 0.3s ease;
}

/* 黑夜模式：内容区 */
[data-bs-theme="dark"] .page-content-bg {
    background-color: #222222;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.2);
}

/* ================================== 联系我们标题 ================================== */
.contact {
    text-align: center;
    margin: 0 0 40px;
    padding-bottom: 10px;
    position: relative;
    display: block !important;
    height: auto !important;
}

.contact .title {
    font-size: 26px !important;
    color: #282828 !important;
    height: 60px;
    line-height: 60px;
    margin: 0;
    opacity: 1 !important;
    display: block !important;
}

/* 黑夜模式：标题 */
[data-bs-theme="dark"] .contact .title {
    color: #f0f0f0 !important;
}

.contact .title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 2px;
    background-color: #00a8ee;
    transition: background-color 0.3s ease;
}

/* 黑夜模式：标题下划线 */
[data-bs-theme="dark"] .contact .title::after {
    background-color: #40c4ff;
}

/* ================================== 表格模块样式 ================================== */
.table-content-wrapper {
    width: 100%;
    padding: 0 10px;
    overflow-x: auto;
}

.wsycms_information.div1 {
    width: auto;
    min-width: 100%;
    margin: 0 auto 30px;
    background-color: #fff;
    border-radius: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    overflow: hidden;
    transition: all 0.3s ease;
}

/* 黑夜模式：表格容器 */
[data-bs-theme="dark"] .wsycms_information.div1 {
    background-color: #282828;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.wsycms_information.div1 h1 {
    font-size: 22px;
    color: #f7f7f7;
    background-color: #191b1d;
    padding: 12px 0;
    text-align: center;
    margin: 0;
    font-weight: 500;
    letter-spacing: 1px;
    transition: background-color 0.3s ease;
}

/* 黑夜模式：表格标题栏 */
[data-bs-theme="dark"] .wsycms_information.div1 h1 {
    background-color: #121212;
    color: #f0f0f0;
}

.information_table {
    text-align: center;
    table-layout: fixed;
}

.information_table th {
    background-color: #f8f8f8;
    height: 50px;
    color: #333;
    font-size: 16px;
    font-weight: 500;
    border-bottom: 1px solid #e0e0e0;
    padding: 0 15px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: all 0.3s ease;
}

/* 黑夜模式：表头 */
[data-bs-theme="dark"] .information_table th {
    background-color: #333333;
    color: #eee;
    border-bottom: 1px solid #444;
}

.information_table td {
    height: 60px;
    color: #666;
    font-size: 14px;
    border-bottom: 1px solid #f0f0f0;
    padding: 0 15px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: all 0.3s ease;
}

/* 黑夜模式：表格行 */
[data-bs-theme="dark"] .information_table td {
    background-color: #282828;
    color: #ccc;
    border-bottom: 1px solid #383838;
}

.information_table tr:last-child td {
    border-bottom: none;
}

.information_table tbody tr:hover td {
    background-color: #fafafa;
}

/* 黑夜模式：表格行hover */
[data-bs-theme="dark"] .information_table tbody tr:hover td {
    background-color: #353535;
    color: #eee;
}

.wsycms_information.div1 img {
    padding: 15px 0;
    margin: 0 auto;
    max-width: 90%;
    filter: brightness(1);
    transition: filter 0.3s ease;
}

/* 黑夜模式：图片 */
[data-bs-theme="dark"] .wsycms_information.div1 img {
    filter: brightness(0.9);
}

/* ================================== 容器宽度辅助类 ================================== */
.min_wrapper_1200 {
    min-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 15px;
    box-sizing: border-box;
}

.wrapper_1200 {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    box-sizing: border-box;
}

/* ================================== 模块控制工具类 ================================== */
.page-module {
    position: relative;
    box-sizing: border-box;
}

.module-mt-10 { margin-top: 10px; }
.module-mt-30 { margin-top: 30px; }
.module-mb-20 { margin-bottom: 20px; }
.module-mb-30 { margin-bottom: 30px; }

/* ================================== 页脚样式 ================================== */
footer, .site-footer {
    position: relative !important;
    z-index: 1 !important;
    clear: both !important;
    margin-top: 20px;
    padding: 20px 0;
    width: 100% !important;
    display: block !important;
    opacity: 1 !important;
    transition: background-color 0.3s ease;
}


/* ================================== 移动端适配（768px以下） ================================== */
@media (max-width: 768px) {
    /* 全局背景 */
    .page-global-bg {
        background-color: #f7f7f7;
    }
    [data-bs-theme="dark"] .page-global-bg {
        background-color: #121212;
    }

    /* 顶部Banner */
    .publicHeader {
        height: 250px !important;
    }

    .publicHeader .title {
        font-size: 26px;
        padding: 10px 0;
    }

    .publicHeader .infor {
        font-size: 16px;
        margin-bottom: 20px;
    }

    /* 移动端按钮 */
    .publicHeader .contact-btn {
        height: 36px;
        padding: 8px 18px;
        font-size: 13px;
    }
    .publicHeader .contact-btn__icon {
        font-size: 15px;
    }
    /* 黑夜模式：移动端按钮 */
    [data-bs-theme="dark"] .publicHeader .contact-btn {
        background-color: #2d2d2d;
    }

    /* 内容区 */
    .page-content-bg {
        width: calc(100% - 30px);
        padding: 5px 10px;
        margin-top: -20px;
        border-radius: 15px;
        box-shadow: none;
    }
    [data-bs-theme="dark"] .page-content-bg {
        background-color: #1e1e1e;
    }

    /* 联系标题 */
    .contact {
        margin-bottom: 30px;
    }
    .contact .title {
        font-size: 22px !important;
        height: 50px;
        line-height: 50px;
    }
    .contact .title::after {
        width: 60px;
    }

    /* 表格 */
    .wsycms_information.div1 h1 {
        font-size: 18px;
        padding: 10px 0;
    }
    [data-bs-theme="dark"] .wsycms_information.div1 {
        background-color: #252525;
    }

    .information_table th {
        height: 45px;
        font-size: 14px;
        padding: 0 8px;
    }
    .information_table td {
        height: 50px;
        font-size: 13px;
        padding: 0 8px;
    }
    [data-bs-theme="dark"] .information_table th {
        background-color: #2c2c2c;
    }
    [data-bs-theme="dark"] .information_table td {
        background-color: #252525;
    }

    /* 隐藏移动端非核心列 */
    .information_table th:nth-child(3),
    .information_table th:nth-child(5),
    .information_table td:nth-child(3),
    .information_table td:nth-child(5) {
        display: none;
    }

    /* 容器宽度 */
    .min_wrapper_1200 {
        min-width: auto !important;
    }

    /* 页脚适配 */
    footer, .site-footer {
        padding: 15px 0;
        font-size: 12px;
    }
    [data-bs-theme="dark"] footer,
    [data-bs-theme="dark"] .site-footer {
        background-color: #151515;
    }
}