/* ========== 全局重置 ========== */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    font-size: 15px;
    line-height: 1.6;
    color: #333;
    background: #fff;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ========== 页头 ========== */
.site-header {
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    position: sticky;
    top: 0;
    z-index: 100;
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}
.logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
}
.logo-area img {
    height: 40px;
    width: auto;
}
.logo-area .site-title {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    letter-spacing: 0.5px;
}

/* 导航 */
.main-nav > ul {
    display: flex;
    align-items: center;
    gap: 2px;
}
.main-nav > ul > li {
    position: relative;
}
.main-nav > ul > li > a {
    display: block;
    padding: 0 20px;
    line-height: 70px;
    font-size: 15px;
    font-weight: 500;
    color: #333;
    transition: color 0.2s;
    position: relative;
}
.main-nav > ul > li > a:hover,
.main-nav > ul > li.active > a {
    color: #2563eb;
}
.main-nav > ul > li > a.no-link {
    cursor: default;
}
.main-nav > ul > li > a.no-link:hover {
    color: #333;
}

/* 下拉菜单 */
.main-nav .sub-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    min-width: 180px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s ease;
    z-index: 200;
}
.main-nav > ul > li:hover .sub-menu {
    opacity: 1;
    visibility: visible;
    top: calc(100% + 2px);
}
.main-nav .sub-menu li a {
    display: block;
    padding: 10px 20px;
    font-size: 14px;
    color: #555;
    transition: all 0.2s;
    white-space: nowrap;
}
.main-nav .sub-menu li a:hover {
    background: #f0f7ff;
    color: #2563eb;
}

/* ========== Banner ========== */
.banner-section {
    position: relative;
    width: 100%;
    height: 480px;
    overflow: hidden;
}
.banner-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease;
    background-size: cover;
    background-position: center;
}
.banner-slide.active {
    opacity: 1;
}
.banner-slide::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.35);
}
.banner-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #fff;
}
.banner-content h1 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 16px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.banner-content p {
    font-size: 18px;
    margin-bottom: 28px;
    opacity: 0.9;
    max-width: 600px;
}
.banner-btn {
    display: inline-block;
    padding: 12px 36px;
    background: #2563eb;
    color: #fff;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    transition: background 0.3s;
    width: fit-content;
}
.banner-btn:hover {
    background: #1d4ed8;
}
.banner-dots {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    gap: 10px;
}
.banner-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all 0.3s;
}
.banner-dots span.active {
    background: #fff;
    width: 28px;
    border-radius: 5px;
}

/* ========== 通用区块 ========== */
.section {
    padding: 70px 0;
}
.section-title {
    text-align: center;
    margin-bottom: 50px;
}
.section-title h2 {
    font-size: 32px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 12px;
}
.section-title p {
    font-size: 15px;
    color: #888;
}
.section-title .line {
    width: 50px;
    height: 3px;
    background: #2563eb;
    margin: 16px auto 0;
    border-radius: 2px;
}

/* ========== 产品卡片网格 ========== */
.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}
.product-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    transition: all 0.3s;
}
.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}
.product-card .cover {
    width: 100%;
    height: 200px;
    background: #f0f0f0;
    overflow: hidden;
}
.product-card .cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}
.product-card:hover .cover img {
    transform: scale(1.05);
}
.product-card .info {
    padding: 20px;
}
.product-card .info h3 {
    font-size: 17px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 8px;
    line-height: 1.4;
}
.product-card .info p {
    font-size: 13px;
    color: #888;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ========== 新闻列表 ========== */
.news-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.news-item {
    display: flex;
    gap: 24px;
    padding: 20px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    transition: all 0.3s;
}
.news-item:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}
.news-item .cover {
    flex-shrink: 0;
    width: 200px;
    height: 130px;
    border-radius: 8px;
    overflow: hidden;
    background: #f0f0f0;
}
.news-item .cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.news-item .content {
    flex: 1;
    display: flex;
    flex-direction: column;
}
.news-item .content h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 10px;
    transition: color 0.2s;
}
.news-item:hover .content h3 {
    color: #2563eb;
}
.news-item .content .summary {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.news-item .content .meta {
    font-size: 13px;
    color: #999;
    margin-top: 10px;
}

/* ========== 分类页面 ========== */
.page-banner {
    height: 280px;
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
    display: flex;
    align-items: center;
    color: #fff;
}
.page-banner h1 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 10px;
}
.page-banner p {
    font-size: 16px;
    opacity: 0.85;
    max-width: 700px;
}

.breadcrumb {
    padding: 16px 0;
    font-size: 13px;
    color: #888;
    border-bottom: 1px solid #f0f0f0;
}
.breadcrumb a {
    color: #888;
    transition: color 0.2s;
}
.breadcrumb a:hover {
    color: #2563eb;
}
.breadcrumb .sep {
    margin: 0 8px;
    color: #ccc;
}

/* 子分类导航 */
.sub-nav {
    padding: 20px 0;
    border-bottom: 1px solid #f0f0f0;
}
.sub-nav ul {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.sub-nav li a {
    display: block;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 14px;
    color: #555;
    background: #f5f5f5;
    transition: all 0.2s;
}
.sub-nav li a:hover,
.sub-nav li.active a {
    background: #2563eb;
    color: #fff;
}

/* ========== 产品详情页 ========== */
.product-detail {
    padding: 50px 0;
}
.product-detail-header {
    display: flex;
    gap: 40px;
    margin-bottom: 50px;
}
.product-detail-images {
    flex: 1;
}
.product-main-image {
    width: 100%;
    height: 400px;
    border-radius: 12px;
    overflow: hidden;
    background: #f5f5f5;
    margin-bottom: 16px;
}
.product-main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.product-detail-info {
    flex: 1;
}
.product-detail-info h1 {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 16px;
}
.product-detail-info .summary {
    font-size: 15px;
    color: #666;
    line-height: 1.8;
    margin-bottom: 24px;
}
.product-detail-info .price {
    font-size: 24px;
    font-weight: 700;
    color: #e11d48;
    margin-bottom: 24px;
}
.product-detail-content {
    line-height: 1.8;
    color: #444;
}
.product-detail-content h2 {
    font-size: 22px;
    margin: 30px 0 16px;
    color: #1a1a1a;
}
.product-detail-content img {
    max-width: 100%;
    border-radius: 8px;
    margin: 16px 0;
}

/* ========== 新闻详情页 ========== */
.news-detail {
    max-width: 800px;
    margin: 0 auto;
    padding: 50px 0;
}
.news-detail h1 {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 16px;
    line-height: 1.4;
}
.news-detail .meta {
    font-size: 13px;
    color: #999;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 30px;
}
.news-detail .meta span {
    margin-right: 20px;
}
.news-detail .content {
    line-height: 1.8;
    color: #444;
    font-size: 16px;
}
.news-detail .content h2 {
    font-size: 22px;
    margin: 30px 0 16px;
    color: #1a1a1a;
}
.news-detail .content img {
    max-width: 100%;
    border-radius: 8px;
    margin: 16px 0;
}
.news-detail .content p {
    margin-bottom: 16px;
}

/* ========== 关于我们 ========== */
.about-section {
    padding: 60px 0;
}
.about-content {
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.8;
    color: #444;
    font-size: 16px;
}
.about-content h1 {
    font-size: 32px;
    color: #1a1a1a;
    margin-bottom: 30px;
    text-align: center;
}
.about-content h2 {
    font-size: 24px;
    color: #1a1a1a;
    margin: 40px 0 20px;
}
.about-content p {
    margin-bottom: 16px;
}
.about-content img {
    max-width: 100%;
    border-radius: 8px;
    margin: 20px 0;
}

/* ========== 分页 ========== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-top: 40px;
}
.pagination a,
.pagination .current,
.pagination .dots {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    border-radius: 6px;
    font-size: 14px;
    color: #555;
    background: #f5f5f5;
    transition: all 0.2s;
}
.pagination a:hover {
    background: #2563eb;
    color: #fff;
}
.pagination .current {
    background: #2563eb;
    color: #fff;
    font-weight: 600;
}
.pagination .dots {
    background: transparent;
    color: #999;
}

/* ========== 页脚 ========== */
.site-footer {
    background: #1a1a2e;
    color: rgba(255,255,255,0.7);
    padding: 50px 0 0;
    margin-top: 60px;
}
.footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
}
.footer-col h4 {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 20px;
}
.footer-col p,
.footer-col li {
    font-size: 14px;
    line-height: 2;
    color: rgba(255,255,255,0.6);
}
.footer-col ul li a {
    transition: color 0.2s;
}
.footer-col ul li a:hover {
    color: #fff;
}
.footer-col .qrcode {
    width: 100px;
    height: 100px;
    background: #fff;
    border-radius: 6px;
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 12px;
}
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 20px 0;
    text-align: center;
    font-size: 13px;
    color: rgba(255,255,255,0.5);
}
.footer-bottom a {
    color: rgba(255,255,255,0.5);
    transition: color 0.2s;
}
.footer-bottom a:hover {
    color: #fff;
}

/* ========== 响应式 ========== */
@media (max-width: 768px) {
    .product-grid {
        grid-template-columns: 1fr;
    }
    .footer-inner {
        grid-template-columns: 1fr 1fr;
    }
    .banner-section {
        height: 320px;
    }
    .banner-content h1 {
        font-size: 28px;
    }
    .banner-content p {
        font-size: 15px;
    }
    .news-item {
        flex-direction: column;
    }
    .news-item .cover {
        width: 100%;
        height: 180px;
    }
    .product-detail-header {
        flex-direction: column;
    }
}
