@charset "UTF-8";

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

html, body {
    font-family: 'Microsoft YaHei', 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
    font-size: 15px;
    line-height: 1.6;
    color: #333333;
    background-color: #ffffff;
}

a {
    color: #333333;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #d7000f;
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
}

ul, ol {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    padding: 10px 25px;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-red {
    background-color: #d7000f;
    color: #fff;
}

.btn-red:hover {
    background-color: #d7000f;
    color: #fff;
}

.btn-outline {
    background-color: transparent;
    color: #d7000f;
    border: 1px solid #d7000f;
}

.btn-outline:hover {
    background-color: #d7000f;
    color: #fff;
}

.back-to-top {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 45px;
    height: 45px;
    background-color: #d7000f;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 9999;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: #d7000f;
}

.back-to-top img {
    width: 16px;
    height: 16px;
}

/* ============================================
    头部公共样式
 */

.header {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
}

.header-top {
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.header-top-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px 20px;
}

.logo img {
    height: 30px;
    width: auto;
}

.language-dropdown {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.language-dropdown img {
    width: 20px;
}

.mobile-nav-toggle {
    display: none;
}

.header-nav {
    background-color: #d7000f;
}

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

.header-nav .nav-list {
    display: flex;
    align-items: center;
    width: 100%;
}

.header-nav .nav-item {
    position: relative;
    flex: 1;
}

.header-nav .nav-item > a {
    display: block;
    padding: 18px 25px;
    color: #fff;
    text-align: center;
    transition: color 0.3s ease;
}

.header-nav .nav-item > a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background-color: #ffd52b;
    transition: width 0.35s ease;
}

.header-nav .nav-item.active > a,
.header-nav .nav-item > a:hover {
    color: #ffd52b;
}

.header-nav .nav-item.active > a::after,
.header-nav .nav-item > a:hover::after {
    width: 100%;
}

.header-nav .sub-nav {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.header-nav .nav-item.has-child:hover .sub-nav {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.header-nav .sub-nav li a {
    display: block;
    padding: 12px 20px;
    color: #333;
    font-size: 14px;
    transition: color 0.3s ease, background-color 0.3s ease;
}

.header-nav .sub-nav li a:hover,
.header-nav .sub-nav li.has-third.active > a {
    background-color: #f5f5f5;
    color: #d7000f;
}

.header-nav .sub-nav li.has-third {
    position: relative;
}

.header-nav .sub-nav li.has-third > a {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-nav .third-nav {
    position: absolute;
    top: 0;
    left: 100%;
    background-color: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.header-nav .sub-nav li.has-third:hover .third-nav {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.header-nav .third-nav li a {
    display: block;
    padding: 12px 20px;
    color: #333;
    font-size: 14px;
    transition: color 0.3s ease, background-color 0.3s ease;
}

.header-nav .third-nav li a:hover,
.header-nav .third-nav li.active > a {
    background-color: #f5f5f5;
    color: #d7000f;
}

.mobile-nav {
    display: none;
}

/* ============================================
   3. 页面通用布局样式
   ============================================ */

.content-wrapper,
.news-content,
.pic-content,
.cont-wrapper,
.details-content,
.display-content,
.just-content,
.top-content {
    padding: 40px 0;
    background-color: #fff;
}

.content-wrapper .container,
.news-content .container,
.pic-content .container,
.cont-wrapper .container,
.details-content .container,
.display-content .container,
.just-content .container,
.top-content .container {
    display: flex;
    gap: 30px;
}

.breadcrumb {
    font-size: 13px;
    color: #666;
}

.breadcrumb a {
    color: #666;
}

.breadcrumb a:hover {
    color: #d7000f;
}

.breadcrumb span {
    margin: 0 8px;
}

.content-main {
    flex: 1;
}

.content-sidebar {
    width: 280px;
    flex-shrink: 0;
    background-color: #fff;
    border: 1px solid #eee;
    overflow: hidden;
}

/* ============================================
   4. Banner公共样式
   ============================================ */
.other-banner {
    position: relative;
}

.other-banner img {
    width: 100%;
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-overlay h1 {
    font-size: 42px;
    font-weight: bold;
    color: #fff;
}

/* ============================================
   5. 侧边栏公共样式
   ============================================ */

.sidebar {
    width: 300px;
    display: flex;
    flex-direction: column;
}

.sidebar-section {
    background-color: #d7000f;
    padding: 0 20px;
}

.sidebar-section h3 {
    position: relative;
    padding: 20px 0;
    color: #fff;
    font-size: 22px;
}

.sidebar-section h3.has-child::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 44px;
    height: 4px;
    background-color: #fff;
}

.product-categories {
    margin-top: 20px;
    padding-bottom: 20px;
}

.sidebar-section .category-group {
    margin-bottom: 5px;
    padding-bottom: 5px;
}

.sidebar-section .category-group.active,
.sidebar-section .category-group:hover {
    position: relative;
    background-image: linear-gradient(90deg, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0));
}

.sidebar-section .category-group.active::after,
.sidebar-section .category-group:hover::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 5px;
    display: block;
    width: 0;
    border: 5px solid rgba(255, 255, 255, 0);
    border-top-width: 0;
    border-bottom-color: #d7000f;
    margin: auto;
}

.sidebar-section .category-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 40px;
    color: #fff;
    padding: 0 10px;
}

.sidebar-section .category-group.active .category-title,
.sidebar-section .category-group:hover .category-title {
    color: #d7000f;
}

.sidebar-section .category-title img {
    width: 20px;
    height: 20px;
}

.sidebar-section .category-list li {
    position: relative;
    height: 40px;
    line-height: 40px;
    padding: 0 20px;
}

.sidebar-section .category-group .category-list li.active {
    background-image: linear-gradient(90deg, #fde5e5, rgba(215, 0, 15, 0) 70%);
}

.sidebar-section .category-list li a {
    color: #FFFFFF;
}

.sidebar-section .category-list li a:hover {
    color: #d7000f;
}

.sidebar-section .category-group.active .category-list li::after,
.sidebar-section .category-group .category-list li:hover::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    width: 100px;
    height: 1px;
    background-image: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .5), rgba(255, 255, 255, 0));
}

.sidebar-section .category-group.active .category-list li a,
.sidebar-section .category-group:hover .category-list li a {
    color: #333333;
}

.sidebar-section .category-group.active .category-list li:hover a,
.sidebar-section .category-group:hover .category-list li:hover a,
.sidebar-section .category-group .category-list li.active a {
    color: #d7000f;
}

.sidebar-contact {
    padding: 0 20px;
    background-color: #EFEFEF;
    flex: 1;
    overflow: hidden;
}

.sidebar-contact .sidebar-title {
    display: flex;
    align-items: center;
    padding: 20px 0;
    gap: 15px;
}

.sidebar-contact .sidebar-title .icon {
    display: flex;
    gap: 3px;
}

.sidebar-contact .sidebar-title .icon div {
    width: 2px;
    height: 12px;
}

.sidebar-contact .sidebar-title .icon div:nth-child(1) {
    background-color: #d7000f;
}

.sidebar-contact .sidebar-title .icon div:nth-child(2) {
    background-color: #d7000f;
}

.sidebar-contact .sidebar-title .icon div:nth-child(3) {
    background-color: #ffa800;
}

.sidebar-contact p {
    line-height: 1.5em;
    padding-bottom: 10px;
}

.sidebar-contact .qr-code {
    display: flex;
    flex-direction: column;
    align-items: center;
    border-top: 1px dotted #DDDDDD;
    padding: 20px 0;
}

.sidebar-contact .qr-code img {
    width: 100px;
    margin-bottom: 20px;
}

/* ============================================
   6. 分页公共样式
   ============================================ */

.news-pagination,
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 40px;
}

.pagination {
    gap: 10px;
}

.page-btn {
    padding: 8px 16px;
    background-color: #f5f5f5;
    color: #666;
    font-size: 14px;
    transition: all 0.3s ease;
}

.page-btn:hover {
    background-color: #d7000f;
    color: #fff;
}

.page-current {
    padding: 8px 14px;
    background-color: #d7000f;
    color: #fff;
    font-size: 14px;
}

.page-num {
    padding: 8px 14px;
    background-color: #fff;
    color: #666;
    font-size: 14px;
    border: 1px solid #ddd;
    transition: all 0.3s ease;
}

.page-num:hover {
    border-color: #d7000f;
    color: #d7000f;
}

.page-dots {
    padding: 0 5px;
    color: #999;
    font-size: 14px;
}

/* ===========================================
    底部公共样式
*/

.footer {
    background-color: #f4f4f4;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    padding: 50px 0;
}

.footer-content h4 {
    color: #999999;
    font-size: 18px;
    padding-bottom: 20px;
}

.footer-links ul {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-right: 20px;
}

.footer-links ul li {
    width: calc(33.3333% - 7px);
    height: 45px;
}

.footer-links li a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    font-size: 14px;
    color: #666;
    transition: all 0.3s ease;
    text-align: center;
    background-color: #FFFFFF;
}

.footer-links li a:hover {
    color: #FFFFFF;
    background-color: #d7000f;
}

.footer-details {
    width: 500px;
}

.footer-qr {
    width: 300px;
    text-align: center;
}

.footer-qr img {
    width: 120px;
    height: 120px;
    margin-bottom: 10px;
}

.footer-qr p {
    font-size: 13px;
}


.footer-copyright {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    background-color: #181919;
    color: #fff;
    padding: 10px 40px;
    font-size: 13px;
    text-align: center;
}

.footer-copyright a {
    color: #d7000f;
}

.pc-banner {
    display: block;
}

.pc-pager {
    display: flex;
}

.mobile-banner,
.mobile-pager {
    display: none;
}

.mobile-img {
    display: none;
}

.pc-img {
    display: block;
    width: 100%;
}

/* ============================================
   7. 响应式公共样式
   ============================================ */

@media (max-width: 1024px) {

    .logo img {
        height: 40px;
    }

    .language-dropdown {
        display: none;
    }

    .mobile-nav-toggle {
        display: block;
    }

    .mobile-nav-toggle img {
        width: 30px;
        height: 30px;
    }

    .header-nav {
        display: none;
    }

    .mobile-menu.active {
        display: block;
    }

    .mobile-nav-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.4);
        z-index: 9998;
    }

    .mobile-nav-overlay.show {
        display: block;
    }

    .mobile-nav {
        position: fixed;
        top: 0;
        right: 0;
        z-index: 9999;
        display: none;
        width: 90%;
        max-width: 360px;
        height: 100vh;
        overflow-y: auto;
        background-color: #FFFFFF;
        padding-bottom: 50px;
    }

    .mobile-nav.toggle {
        display: block;
    }

    .mobile-nav .mobile-menu-close {
        display: flex;
        justify-content: flex-end;
        padding: 16px;
    }

    .mobile-nav .mobile-menu-close img {
        width: 20px;
    }

    .mobile-nav li {
        min-height: 42px;
        border-bottom: 1px solid #EFEFEF;
        padding: 0 20px;
    }

    .mobile-nav .nav-list > li:first-of-type,
    .mobile-nav .sub-nav > li:last-of-type,
    .mobile-nav .third-nav > li:last-of-type {
        border-bottom: none;
    }

    .mobile-nav li a {
        display: block;
        font-size: 15px;
        line-height: 42px;
    }

    .mobile-nav li.has-child > a,
    .mobile-nav li.has-third > a {
        display: inline-block;
        max-width: calc(100% - 40px);
        vertical-align: middle;
    }

    .mobile-nav .nav-arrow {
        display: inline-block;
        width: 34px;
        height: 42px;
        vertical-align: middle;
        cursor: pointer;
        position: relative;
    }

    .mobile-nav .nav-arrow::after {
        content: '';
        position: absolute;
        right: 12px;
        top: 50%;
        margin-top: -4px;
        width: 8px;
        height: 8px;
        border-right: 1.5px solid #bbb;
        border-bottom: 1.5px solid #bbb;
        transform: rotate(45deg);
        transition: transform 0.3s ease, border-color 0.3s ease;
    }

    .mobile-nav .active > .nav-arrow::after {
        transform: rotate(-135deg);
        border-color: #d7000f;
    }

    .mobile-nav .active > a {
        color: #d7000f;
    }

    .mobile-nav .sub-nav,
    .mobile-nav .third-nav {
        display: none;
    }

    .mobile-nav li.active > .sub-nav,
    .mobile-nav li.active > .third-nav {
        display: block;
    }

    .container {
        padding: 0 15px;
    }

    .banner-overlay h1 {
        font-size: 28px;
    }

    .content-wrapper,
    .news-content,
    .pic-content,
    .cont-wrapper,
    .details-content,
    .display-content,
    .just-content,
    .top-content {
        padding: 20px 0;
    }

    .content-wrapper .container,
    .news-content .container,
    .pic-content .container,
    .cont-wrapper .container,
    .details-content .container,
    .display-content .container,
    .just-content .container,
    .top-content .container {
        padding: 0;
        flex-direction: column;
    }

    .content-main {
        flex: 1;
        padding: 0 15px;
    }

    .section-header {
        margin-bottom: 20px;
        padding-bottom: 10px;
    }

    .section-header h2 {
        font-size: 20px;
    }

    .sidebar {
        width: 100%;
    }

    .btn {
        padding: 8px 20px;
        font-size: 13px;
    }


    .footer {
        padding-top: 30px;
    }

    .footer-content {
        flex-direction: column;
        gap: 30px;
    }

    .footer-content h4 {
        font-size: 22px;
    }

    .footer-links ul {
        margin-right: 0;
    }

    .footer-links ul li {
        width: calc(50% - 5px);
    }

    .footer .footer-details {
        width: 100%;
    }

    .footer .footer-details p {
        font-size: 18px;
    }

    .footer .footer-qr {
        display: none;
    }

    .pc-banner,
    .pc-pager {
        display: none;
    }

    .mobile-banner {
        display: block;
    }

    .mobile-pager {
        display: flex;
    }

    .mobile-img {
        display: block;
        width: 100%;
    }

    .pc-img {
        display: none;
    }
}
