/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 字体导入 */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@300;400;500;700&family=Helvetica+Neue:wght@300;400;500;700&display=swap');

/* 变量定义 */
:root {
    --primary: #1b489d;
    --secondary: #FF0000;
    --white: #FFFFFF;
    --light-gray: #F5F5F5;
    --dark: #000000;
    --text-dark: #636363;
    --transition: all 0.3s ease;
}
a { text-decoration: none; color: #222; }
a:hover { color: #218af1; text-decoration: none; }
body {
    font-family: 'Noto Sans SC', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-weight: 700;
}

/* 按钮基础样式 */
button {
    cursor: pointer;
    border: none;
    background: none;
    outline: none;
}

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

.btn {
    display: inline-block;
    padding: 6px 18px;
    color: var(--dark);
    text-decoration: none;
    border-radius: 0;
    font-weight: 500;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    border: 2px solid;
    border-radius: 6px;
}

.btn:hover {
    transform: translateY(-2px);
}

/* 头部导航 */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
}

.header-scrolled {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 20px 0;
}

.logo {
    font-family: 'Helvetica Neue', sans-serif;
    font-size: 26px;
    font-weight: 700;
    color: var(--secondary);
    text-decoration: none;
}

.logo img {
    display: flex;
    width:300px;
}

.nav-links {
    display: flex;
    gap: 30px;
    margin-left: auto;
}

.nav-links a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.header-scrolled .nav-links a {
    color: var(--text-dark);
}

.nav-links a:hover {
    color: var(--primary);
}

.category-item.has-submenu > a {
    position: relative;
    padding-right: 40px;
}

.submenu-toggle {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.3s ease;
    background-color: transparent;
}

.nav-info {
    display: flex;
    align-items: center;
    gap: 20px;
    color: var(--white);
}

.header-scrolled .nav-info {
    color: var(--text-dark);
}

.nav-info a {
    color: inherit;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
}

.lang-switch {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    border-left: 1px solid rgba(255, 255, 255, 0.3);
    padding-left: 15px;
    margin-left: 15px;
}

.header-scrolled .lang-switch {
    border-left-color: rgba(0, 0, 0, 0.3);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 24px;
    color: var(--white);
    margin-left: auto;
}

.header-scrolled .mobile-menu-btn {
    color: var(--text-dark);
}

/* 首屏大图区 */
.hero {
    height: 100vh;
    background-image: url('../img/banner.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    position: relative;
}

/* .hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgb(0 0 0 / 0%), rgb(0 0 0 / 12%));
} */



/* 关于我们 */
.about {
    padding: 100px 0;
    background-color: var(--white);
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    /*font-family: '黑体';*/
    font-size: 30px;
    margin-bottom: 10px;
}

/* 品牌名称特殊样式 */
.section-title .brand-name {
    font-weight: bold;
    color: var(--primary);
    position: relative;
}

.section-title .brand-name::after {
    content: '';
    position: absolute;
    bottom: -14px;
    right: -14px;
    width: 35px;
    height: 3px;
    background-color: var(--primary);
}

.section-title p {
    color: var(--text-dark);
    font-family: 'Arial';
    font-size: 24px;
    letter-spacing: 1px;
}

.stats {
    display: flex;
    justify-content: space-around;
    margin-bottom: 60px;
    flex-wrap: wrap;
    gap: 30px;
}

.stat-item {
    text-align: center;
    flex: 1;
    min-width: 200px;
    padding: 30px;
    transition: var(--transition);
}

.stat-item:nth-child(2) .stat-unit {
    /*right: -5px;*/
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.stat-number {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 10px;
    font-family: 'Arial';
    position: relative;
}

.stat-number b {
    font-family: system-ui;
}

.stat-unit {
    font-size: 15px;
    font-weight: normal;
    color: #999999;
    vertical-align: super;
    position: absolute;
    margin-left: 10px;
    bottom: 14px;
}

.stat-text {
    font-size: 15px;
    color: #989898;
    /*text-align: left;
    padding-left: 40px;*/
}

.about-content {
    display: flex;
    gap: 60px;
    align-items: center;
    flex-wrap: wrap;
}

.about-image {
    flex: 1;
    min-width: 300px;
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
}

.about-text {
    flex: 1;
    min-width: 300px;
}

.about-text h2 {
    font-size: 26px;
    margin-bottom: 15px;
    color: #2b2b2b;
    line-height: 1.4;
}

.about-text p {
    margin-bottom: 20px;
    font-size: 16px;
    line-height: 1.8;
    text-indent: 2rem;
}

/* 核心优势 */
.advantages {
    display: flex;
    align-items: center;
    height: 257px;
    background-image: url('../img/advantages.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

@keyframes glow {
    0% { opacity: 0.3; }
    100% { opacity: 0.8; }
}

.advantages-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: left;
    position: relative;
    z-index: 1;
    margin: 0 auto;
}

.advantages-text {
    width: 100%;
}

.advantages-text h2 {
    font-size: 36px;
    margin-bottom: 20px;
}
.highlight-brand {
    font-size: x-large;
    color: #e52e17;
    padding: 0 5px;
}
.advantages-text p {
    font-size: 24px;
    line-height: 1.8;
}


/* 产品中心 */
.products {
    padding: 100px 0;
    background-color: var(--white);
}

.product-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 5px 35px;
    background: #e4e4e4;
    /* border: 2px solid var(--primary); */
    border: 0;
    color: #636363;
    cursor: pointer;
    transition: var(--transition);
    font-size: 16px;
}

.tab-btn.active {
    background-color: #424649;
    color: var(--white);
}

.tab-btn:hover {
    background-color: #424649;
    color: var(--white);
}

.product-carousel-container {
    position: relative;
    margin-bottom: 40px;
}

.product-carousel {
    overflow: hidden;
}

.carousel-wrapper {
    display: flex;
    transition: transform 0.5s ease;
}

.product-item {
    flex: 0 0 25%;
    padding: 0 10px;
    text-align: center;
}

.product-item img {
    width: 100%;
    height: 200px;
    margin-bottom: 15px;
    -o-object-fit: contain;
    object-fit: contain;
}

.product-name {
    font-size: larger;
    font-weight: 600;
    color: var(--primary);
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    background-color: transparent;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-btn:hover {
    opacity: 0.8;
}

.carousel-btn svg {
    width: 60px;
    height: 60px;
}

.carousel-btn.prev {
    left: -80px;
}

.carousel-btn.next {
    right: -80px;
}

.products-more {
    text-align: center;
}

/* 新闻中心 */
.news {
    padding: 100px 0;
    background-color: var(--light-gray);
}

/* 两列新闻布局 */
.news-container {
    display: flex;
    gap: 40px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.news-column {
    flex: 1;
    min-width: 300px;
}

.news-column-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 25px;
    padding-bottom: 10px;
    /*border-bottom: 2px solid var(--primary);*/
    position: relative;
}

.news-column-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background-color: var(--dark);
}

/* 新闻列表样式 */
.news-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.news-item {
    background-color: var(--white);
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.news-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.news-item-header {
    margin-bottom: 12px;
}

.news-date {
    color: var(--primary);
    margin-bottom: 8px;
    font-size: 14px;
    display: block;
}

.news-title {
    font-size: 18px;
    margin-bottom: 12px;
    color: var(--text-dark);
    line-height: 1.4;
    font-weight: 700;
}

.news-excerpt {
    margin-bottom: 0;
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-dark);
}

.news-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 30px;
    margin-bottom: 40px;
}

.news-main {
    grid-column: 1 / 2;
    grid-row: 1 / 3;
    display: flex;
    gap: 20px;
    background-color: var(--white);
    padding: 20px;
}

.news-main-image {
    flex: 1;
    min-width: 200px;
}

.news-main-image img {
    width: 100%;
    height: auto;
}

.news-main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/*.news-date {*/
/*    color: var(--primary);*/
/*    margin-bottom: 10px;*/
/*    font-size: 14px;*/
/*}*/

/*.news-title {*/
/*    font-size: 20px;*/
/*    margin-bottom: 15px;*/
/*    color: var(--text-dark);*/
/*}*/

/*.news-excerpt {*/
/*    margin-bottom: 20px;*/
/*    flex: 1;*/
/*    font-size: 15px;*/
/*}*/

.news-highlight {
    background-color: rgba(0, 86, 199, 0.1);
    padding: 15px;
    margin-top: 10px;
}

.news-secondary {
    display: flex;
    gap: 20px;
    background-color: var(--white);
    padding: 20px;
}

.news-secondary-image {
    flex: 0 0 120px;
}

.news-secondary-image img {
    width: 100%;
    height: auto;
}

.news-secondary-content {
    flex: 1;
}

.news-more {
    text-align: center;
}

/* 联系我们 */
.contact {
    padding: 80px 0;
    background-image: url('../img/contact-content.jpg');
    background-size: cover;
    background-position: center;
    color: var(--white);
    position: relative;
    text-align: center;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7));
}

.contact-content {
    position: relative;
    z-index: 1;
    max-width: 600px;
    margin: 0 auto;
}

.contact h2 {
    font-size: 36px;
    margin-bottom: 20px;
}

.contact p {
    font-size: 18px;
    margin-bottom: 40px;
}

.contact .btn-contact {
    background-color: #1b489d;
    border: 0;
    color: #fff;
    border-radius: unset;
    width: 230px;
    height: 50px;
    line-height: 50px;
    padding: 0;
    font-size: larger;
    letter-spacing: 1px;
}

/* 页脚 */
footer {
    background-color: var(--dark);
    color: var(--white);
    /*padding: 80px 0 40px;*/
    padding: 20px 0 20px;
}

.footer-content {
    display: flex;
    gap: 60px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.footer-logo {
    flex: 1;
    min-width: 250px;
}

.footer-logo a {
    font-family: 'Helvetica Neue', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: var(--secondary);
    text-decoration: none;
    display: block;
    margin-bottom: 20px;
}

.footer-logo p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 20px;
}

/* 社交媒体图标样式 */
.footer-social {
    flex: 1;
    min-width: 200px;
}

.footer-social h3 {
    font-size: 18px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
    color: var(--white);
}

.footer-social h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--primary);
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: var(--transition);
    text-decoration: none;
    overflow: hidden;
}

.social-icon:hover {
    background-color: var(--primary);
    transform: translateY(-3px);
}

.social-icon img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    transition: var(--transition);
}

.footer-links {
    flex: 1;
    min-width: 200px;
}

.footer-links h3 {
    font-size: 18px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-links h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--primary);
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links ul li a:hover {
    color: var(--white);
    padding-left: 5px;
}

.footer-contact {
    flex: 1;
    min-width: 250px;
}

.footer-contact h3 {
    font-size: 18px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-contact h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--primary);
}

.contact-items {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.contact-row {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-item svg {
    flex: 0 0 24px;
}

.contact-item span {
    color: rgba(255, 255, 255, 0.7);
}

.qr-code {
    margin-top: 20px;
    width: 100px;
    height: 100px;
    background-color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

.qr-code img {
    width: 100%;
    height: auto;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .hero h1 {
        font-size: 40px;
    }
    
    .stat-item {
        min-width: 150px;
        padding: 20px;
    }
    
    .stat-number {
        font-size: 36px;
    }
}

@media (max-width: 992px) {
    .nav-links {
        position: fixed;
        top: 43px;
        left: -100%;
        width: 100%;
        height: 100vh;
        flex-direction: column;
        background-color: var(--white);
        align-items: center;
        justify-content: center;
        gap: 30px;
        transition: var(--transition);
        z-index: 999;
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .nav-links a {
        color: var(--text-dark);
        font-size: 20px;
    }
    
    .nav-info {
        /*display: none;*/
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .about-content {
        flex-direction: column;
    }
    
    .advantages-content {
        flex-direction: column;
    }
    
    .product-item {
        flex: 0 0 50%;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }
    
    .news-main {
        grid-column: 1;
        grid-row: 1;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .hero {
        height: 33vh;
        background-position: right;
    }
    .hero h1 {
        font-size: 32px;
    }
    
    .hero p {
        font-size: 18px;
    }
    
    .section-title h2 {
        font-size: 28px;
    }
    
    .stats {
        gap: 6px;
        margin-bottom: 30px;
    }
    
    .stat-item {
        min-width: 120px;
        padding: 10px;
    }
    
    .stat-number {
        font-size: 28px;
    }
    
    .advantages-text h2 {
        font-size: 26px;
    }
    
    .advantages-text p {
        font-size: 16px;
    }
    
    .news-main {
        flex-direction: column;
    }
    
    .news-secondary {
        flex-direction: column;
    }
    
    .news-secondary-image {
        flex: 0 0 auto;
    }
    .map-container {
        width: 100%!important;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 15px;
    }
    
    .hero h1 {
        font-size: 28px;
    }
    
    .hero p {
        font-size: 16px;
    }
    
    .about, .products, .news {
        padding: 60px 0;
    }
    
    .advantages {
        padding: 60px 0;
    }
    
    .contact {
        padding: 100px 0;
    }
    
    .contact h2 {
        font-size: 28px;
    }
    
    .product-item {
        flex: 0 0 100%;
    }
    
    .carousel-btn.prev {
        left: 10px;
    }
    
    .carousel-btn.next {
        right: 10px;
    }
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
}

.delay-4 {
    animation-delay: 0.8s;
}

/* 返回顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #9e9e9e;
    color: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

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

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

@media (max-width: 480px) {
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
    }
}

@media only screen and (max-width: 768px) {
    .stat-unit {
        font-size: 15px;
        /*right: 8px;*/
        bottom: 5px;
    }
    .stat-item:nth-child(2) .stat-unit {
        /*right: -16px;*/
    }
    .stat-text{
        font-size: 15px;
        /*padding-left: 30px;*/
    }
    .about-text h2 {
        font-size: 24px;
    }
    .contact .btn-contact {
        width: 200px;
        height: 50px;
        line-height: 50px;
        font-size: medium;
    }
}
.pagination{display:flex;justify-content:center;align-items:center;gap:5px;margin-top:40px;margin-bottom:30px}
.pagination-item{width:40px;height:40px;display:flex;justify-content:center;align-items:center;border:1px solid #eee;border-radius:5px;color:#666;cursor:pointer;transition:all .3s ease;text-decoration:none}
.pagination-item.active,.pagination-item:hover{background-color:#000;color:#fff;border-color:#000}
.pagination-next,.pagination-prev{padding:0 15px;width:auto}
/*diy*/
/* 产品栏目特有样式 */
.breadcrumb{padding:15px 0;border-bottom:1px solid #eee}
.breadcrumb a{color:#666;text-decoration:none;margin:0 5px}
.breadcrumb a:hover{color:#000}
.breadcrumb span{color:#999;margin:0 5px}
.page-header {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 340px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin-top: 83px!important;
    color: white;
    position: relative;
    overflow: hidden;
}

.page-header .banner-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
}
/*
.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
}
*/
.page-header > div {
    position: relative;
    z-index: 2;
}
/* 说是不要 */
.page-header h1 {
    display: none;
    font-size: 2rem;
    margin-bottom: 10px;
    color: white;
}

.page-header p {
    color: white;
    font-size: 1.1rem;
}
@media only screen and (max-width: 768px) {
    header {
        padding: 5px 0;
    }
    .logo img {
        width: 200px;
    }
    .page-header {
        margin-top: 43px!important;
        height: 150px!important;
    }
    .tab-btn {
        padding: 5px 15px;
    }
    .product-tabs {
        justify-content: unset;
    }
    .product-main-image {
        height: 300px!important;
    }
    .product-detail-row {
        gap: 10px!important;
    }
    .section-padding {
        padding: 20px 0!important;
    }
    .culture-section,#contact {
        padding: 30px 0!important;
    }
    .article-detail-container {
        gap: 20px!important;
        padding: 20px 0!important;
    }
    .related-articles,.sidebar-widget {
        margin-bottom: 10px!important;
    }
    .footer-logo p {
        margin-bottom: 0!important;
    }
}