@charset "utf-8";

/* ========== 样式文件一：仅头部、Logo、搜索、菜单、底部 ========== */
/* 包含：全局重置、顶部区域、导航菜单、移动端侧滑菜单、底部区域及必要的响应式调整 */

/* ---------- 1. 全局重置与基础 ---------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
a{    text-decoration: none;
}
body {
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    line-height: 1.5;
    color: #2c2c2c;
    background-color: #ffffff;
    overflow-x: hidden;
}

/* 全宽背景辅助类 */
.full-width-bg {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* ---------- 2. 顶部区域（红底风格 + Logo + 搜索 + 桌面导航） ---------- */
.full-header-bg {
    background-image:url(../images/index_01.png);
    background-size: cover;
    background-position: center 30%;
}

.header-top {
    max-width: 1400px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.logo img {
    max-height: 70px;
    width: auto;
    display: block;
}

.search-area {
    display: flex;
    gap: 0;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 32px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.6);
}

.search-area input {
    border: none;
    padding: 10px 16px;
   /* width: 220px;*/
    font-size: 14px;
    outline: none;
    color: #fff;
    background: none;
}

.search-area input::placeholder {
    color: #ffefed;
}

.search-area button {
    border: none;
    padding: 0 18px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
    color: #a2211e;
    background: none;
}

.search-area button img {
    width: 80%;
    vertical-align: middle;
}

.search-area button:hover {
    background: #a2211e;
    color: white;
}

/* ========== 桌面导航 (纯div+css二级菜单，完全静态) ========== */
.hamburger {
    display: none;
    font-size: 28px;
    background: rgba(0, 0, 0, 0.3);
    border: none;
    cursor: pointer;
    color: white;
    width: 46px;
    height: 46px;
    border-radius: 8px;
    align-items: center;
    justify-content: center;
}
/*修改*/
.nav-menu {
    padding: 0 12px;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 100;
}

.menu-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    list-style: none;
    gap:59px;
}

.menu-list > li {
    position: relative;
    padding: 14px 16px;
    font-size: 18px;
    cursor: pointer;
    color: #333;
    transition: 0.2s;
    white-space: nowrap;
}

.menu-list > li > a {
    text-decoration: none;
    color: inherit;
    display: block; color:#333;
}
.menu-list li a:hover{ color:#a5150c}
.menu-list li:hover{ color:#a5150c}
/* 二级菜单容器 - 纯css下拉效果 */
.menu-list > li .submenu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 180px;
    background: #ffffff;
    box-shadow: 0 16px 28px rgba(0, 0, 0, 0.12);
    border-radius: 0 0 16px 16px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    transition: all 0.25s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    z-index: 200;
    list-style: none;
    padding: 10px 0;
    margin: 0;
    border-top: 3px solid #c71e14;
    pointer-events: none;
}

.menu-list > li:hover .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0px);
    pointer-events: auto;
}

.submenu li {
    padding: 10px 24px;
    font-size: 16px;
    font-weight: 500;
    white-space: nowrap;
    color: #2c3e4e;
    transition: all 0.2s;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
}
.submenu li a{ color: #2c3e4e;}
.submenu li:last-child {
    border-bottom: none;
}

.submenu li:hover {
    background: #fef4f2;
    color: #a5150c;
    padding-left: 30px;
}

/* 无二级菜单项不需要特殊处理 */
.menu-list > li:not(:hover) .submenu {
    visibility: hidden;
}

/* ========== 移动端侧滑菜单 (静态HTML + 手风琴折叠，js控制展开) ========== */
.mobile-menu-panel {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.96);
    z-index: 2000;
    padding: 60px 28px 40px;
    overflow-y: auto;
    backdrop-filter: blur(12px);
}

.mobile-menu-panel.active {
    display: block;
}

.panel-close {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 36px;
    color: white;
    cursor: pointer;
    background: none;
    border: none;
}

.mobile-menu-list {
    list-style: none;
    margin-top: 30px;
}

/* 移动端父级项（带二级） */
.mobile-parent-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    font-size: 18px;
    font-weight: 500;
    color: white;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
}

.mobile-parent-item .toggle-icon {
    font-size: 20px;
    transition: transform 0.25s ease;
    margin-left: 12px;
}

.toggle-icon.rotated {
    transform: rotate(180deg);
}

/* 移动端二级菜单 */
.mobile-sub-list {
    list-style: none;
    padding-left: 20px;
    margin: 0 0 12px 0;
    display: none;
    background: rgba(255,255,255,0.08);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.2s;
}

.mobile-sub-list.open {
    display: block;
}

.mobile-sub-list li {
    padding: 12px 0 12px 20px;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.85);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    cursor: pointer;
    transition: 0.2s;
}

.mobile-sub-list li:last-child {
    border-bottom: none;
}

.mobile-sub-list li:hover {
    color: #ffb5ad;
    padding-left: 26px;
    background: rgba(255,255,255,0.05);
}

/* 移动端无二级的直接项 */
.mobile-menu-list > li:not(.has-sub-wrapper) {
    padding: 14px 0;
    font-size: 18px;
    font-weight: 500;
    color: white;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
}
.mobile-menu-list li a{color:#fff;}
.mobile-search {
    margin: 20px 0 25px;
    display: flex;
    gap: 12px;
}

.mobile-search input {
    flex: 1;
    padding: 12px 18px;
    border-radius: 40px;
    border: none;
    font-size: 18px;
    background: rgba(255, 255, 255, 0.9);
}

.mobile-search button {
    background: #a2211e;
    border: none;
    padding: 0 24px;
    border-radius: 40px;
    color: white;
    font-weight: bold;
    cursor: pointer;
}

/* ---------- 4. 底部区域（重叠背景 + 三栏信息） ---------- */
.footer-overlap {
    margin-top: -70px;
    position: relative;
    z-index: 1;
    background-image:url(../images/fotter_28.png);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-blend-mode: overlay;
    color: white;
    padding: 60px 24px 30px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    width: 100%;
}

.footer-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.footer-left {
    width: 396px;
    max-width: 100%;
}

.footer-left a {
    display: block;
}

.footer-left img {
    width: 100%;
    padding: 6px;
}

.footer-middle {
    text-align: left;
    line-height: 1.8;
    font-size: 15px;
}

.footer-right img {
    max-width: 110px;
    width: 100%;
    padding: 5px;
}

/* ---------- 响应式（仅影响头部与底部） ---------- */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    .search-area {
        display: none;
    }
    .nav-menu {
        display: none;
    }
    .news-main {
        flex-direction: column;
    }
    .news-main .left-menu {
        flex: auto;
        width: 100%;
    }
    .news-title {
        white-space: normal;
        word-break: break-word;
    }
    .news-item a {
        flex-direction: column;
        gap: 6px;
    }
    .footer-overlap {
        margin-top: -40px;
        padding: 50px 16px 25px;
    }
    .footer-inner {
        flex-direction: column;
        text-align: center;
    }
    .footer-middle {
        text-align: center;
        font-size: 14px;
    }
    .footer-left {
        width: 220px;
        margin: 0 auto;
    }
    .footer-right img {
        max-width: 90px;
    }
}

@media (max-width: 480px) {
    .header-top {
        padding: 10px 12px;
    }
    .logo img {
        max-height: 45px;
    }
    .hamburger {
        width: 38px;
        height: 38px;
    }
    .hamburger span {
        font-size: 24px;
    }
    .footer-middle {
        font-size: 13px;
    }
    .footer-left {
        width: 180px;
    }
}

@media (min-width: 769px) {
    .mobile-menu-panel {
        display: none !important;
    }
}
/*新增
.container,
.header-top,
.footer-inner {
    max-width: 1500px;
    margin-left: auto;
    margin-right: auto;
}*/
/* 导航栏全宽吸顶容器 */
.nav-wrapper {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    background-color: #ffffff;
    transition: all 0.25s ease;
}
.nav-wrapper.nav-sticky {
    background-color: #a2211e !important;
    border-bottom-color: #8b1a16;
    box-shadow: 0 6px 14px rgba(0,0,0,0.15);
}
.nav-wrapper.nav-sticky .nav-menu .menu-list > li,
.nav-wrapper.nav-sticky .nav-menu .menu-list > li > a {
    color: #ffffff !important;
}
.nav-wrapper.nav-sticky .submenu {
    background: #ffffff;
    border-top: 3px solid #ca2117；
}
.nav-wrapper.nav-sticky .submenu li {
    color: #2c3e4e;
}
.nav-menu {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 12px;
}