/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Header */
.header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    flex-shrink: 0;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-cn {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    letter-spacing: 2px;
}

.logo-en {
    font-size: 10px;
    color: #999;
    letter-spacing: 1px;
}

.nav-list {
    display: flex;
    gap: 40px;
}

.nav-item a {
    font-size: 16px;
    color: #333;
    padding: 10px 0;
    position: relative;
    transition: color 0.3s;
}

.nav-item a:hover,
.nav-item.active a {
    color: #0088cc;
}

.nav-item.active a::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: #0088cc;
}

/* Banner */
.banner {
    position: relative;
    height: 400px;
    overflow: hidden;
}

.banner-slider {
    width: 100%;
    height: 100%;
}

.banner-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.banner-slide.active {
    opacity: 1;
}

.banner-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #fff;
    background: rgba(0, 0, 0, 0.3);
    padding: 40px 80px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.banner-content h1 {
    font-size: 36px;
    font-weight: 400;
    letter-spacing: 8px;
    margin-bottom: 15px;
}

.banner-content p {
    font-size: 16px;
    letter-spacing: 2px;
    opacity: 0.9;
}

.banner-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.banner-arrow:hover {
    background: rgba(255, 255, 255, 0.2);
}

.banner-prev {
    left: 20px;
}

.banner-next {
    right: 20px;
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-title {
    font-size: 28px;
    color: #333;
    font-weight: 400;
    margin-bottom: 5px;
}

.section-subtitle {
    font-size: 14px;
    color: #0088cc;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.section-more {
    margin-top: 20px;
}

.section-more a {
    display: inline-block;
    padding: 8px 30px;
    border: 1px solid #ddd;
    color: #666;
    font-size: 12px;
    transition: all 0.3s;
    position: relative;
}

.section-more a::before,
.section-more a::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 80px;
    height: 1px;
    background: linear-gradient(to right, #0088cc, #ddd);
}

.section-more a::before {
    right: 100%;
    margin-right: 10px;
}

.section-more a::after {
    left: 100%;
    margin-left: 10px;
    background: linear-gradient(to left, #0088cc, #ddd);
}

.section-more a:hover {
    border-color: #0088cc;
    color: #0088cc;
}

/* Products */
.products {
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.product-card {
    text-align: center;
}

.product-image {
    position: relative;
    background: #f9f9f9;
    padding: 20px;
    margin-bottom: 15px;
    border: 1px solid #eee;
}

.product-image img {
    width: 100%;
    height: 200px;
    object-fit: contain;
}

.product-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: #666;
}

.product-title {
    font-size: 16px;
    color: #0088cc;
    font-weight: 400;
    margin-bottom: 8px;
}

.product-desc {
    font-size: 13px;
    color: #999;
    line-height: 1.5;
}

.products-more {
    text-align: center;
}

.btn-outline {
    display: inline-block;
    padding: 12px 40px;
    border: 1px solid #0088cc;
    color: #0088cc;
    font-size: 14px;
    transition: all 0.3s;
}

.btn-outline:hover {
    background: #0088cc;
    color: #fff;
}

/* About */
.about {
    background: url('../images/about-bg.jpg') no-repeat center center;
    background-size: cover;
    padding: 60px 20px;
    color: #fff;
    position: relative;
}

.about::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 0;
}

.about-container {
    position: relative;
    z-index: 1;
    max-width: 1000px;
    margin: 0 auto;
}

.about-header {
    margin-bottom: 30px;
}

.about-title {
    font-size: 24px;
    font-weight: 400;
    margin-bottom: 8px;
    position: relative;
    display: inline-block;
}

.about-title::before {
    content: "";
    position: absolute;
    left: -20px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 24px;
    background: #0088cc;
}

.about-subtitle {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    margin-left: 0;
}

.about-content {
    line-height: 2;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.85);
    text-align: justify;
}

.about-content p {
    margin-bottom: 15px;
    text-indent: 2em;
}

.about-more {
    margin-top: 30px;
    text-align: right;
}

.btn-primary {
    display: inline-block;
    padding: 12px 40px;
    background: transparent;
    border: 1px solid #fff;
    color: #fff;
    font-size: 14px;
    transition: all 0.3s;
}

.btn-primary:hover {
    background: #0088cc;
    border-color: #0088cc;
}

/* News */
.news {
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.news-container {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 30px;
}

.news-slider {
    position: relative;
}

.news-image-wrapper {
    position: relative;
    overflow: hidden;
    height: 280px;
}

.news-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.news-slide.active {
    opacity: 1;
}

.news-slide img {
    width: 100%;
    height: 280px;
    object-fit: cover;
}

.news-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.news-arrow:hover {
    background: rgba(0, 0, 0, 0.7);
}

.news-prev {
    left: 10px;
}

.news-next {
    right: 10px;
}

.news-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.news-dots .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background 0.3s;
}

.news-dots .dot.active {
    background: #0088cc;
}

.news-list {
    display: flex;
    flex-direction: column;
}

.news-item {
    padding: 20px 0;
    border-bottom: 1px solid #eee;
}

.news-item:first-child {
    padding-top: 0;
}

.news-title {
    font-size: 16px;
    color: #333;
    font-weight: 400;
    margin-bottom: 8px;
    cursor: pointer;
    transition: color 0.3s;
}

.news-title:hover {
    color: #0088cc;
}

.news-desc {
    font-size: 13px;
    color: #999;
    line-height: 1.6;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 12px;
    color: #bbb;
}

.news-views {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #ff6b35;
}

/* Footer */
.footer {
    background: #0088cc;
    color: #fff;
    text-align: center;
    padding: 20px;
}

.footer-main {
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-main p {
    font-size: 14px;
}

.footer-info {
    padding-top: 15px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
}

.footer-info a {
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.3s;
}

.footer-info a:hover {
    color: #fff;
}

.footer-info .divider {
    margin: 0 10px;
    opacity: 0.5;
}

.footer-links {
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 5px;
}

.police-icon,
.aliyun-icon {
    display: inline-flex;
    align-items: center;
    margin-right: 5px;
}

.ipv6-badge {
    display: inline-block;
    padding: 2px 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    font-size: 10px;
    margin: 0 5px;
}

/* Responsive */
@media (max-width: 992px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .news-container {
        grid-template-columns: 1fr;
    }

    .news-image img {
        height: 250px;
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 15px;
    }

    .nav-list {
        gap: 20px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .banner {
        height: 300px;
    }

    .banner-content {
        padding: 20px 30px;
    }

    .banner-content h1 {
        font-size: 24px;
        letter-spacing: 4px;
    }

    .banner-content p {
        font-size: 12px;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .section-more a::before,
    .section-more a::after {
        width: 40px;
    }

    .about-title::before {
        display: none;
    }

    .footer-links {
        flex-direction: column;
        gap: 10px;
    }
}


/* Page Banner */
.page-banner {
    position: relative;
    height: 300px;
    overflow: hidden;
}

.banner-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: no-repeat center center;
    background-size: cover;
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-content {
    text-align: center;
    color: #fff;
}

.banner-content h1 {
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 15px;
}

.breadcrumb {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumb a:hover {
    color: #fff;
}

.breadcrumb span {
    margin: 0 8px;
}
