/* 重置与基础 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body {
    background-color: #f8fafc;
    color: #1e2b37;
    line-height: 1.6;
}

/* 容器：控制内容宽度并居中 */
.container {
    max-width: 1400px;      /* 稍微放宽最大宽度 */
    margin: 0 auto;
    padding: 0 60px;        /* 左右内边距从 24px 增加到 60px */
}

/* 头部导航 (与之前保持一致，颜色略调) */
header {
    background: #ffffff;
    box-shadow: 0 4px 20px rgba(0,20,40,0.08);
    position: sticky;
    top: 0;
    z-index: 100;
}
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
}
.logo h1 {
    font-size: 1.8rem;
    font-weight: 600;
    color: #d71920; /* 红色主色 */
    letter-spacing: -0.02em;
}
.logo span {
    font-weight: 300;
    font-size: 1rem;
    color: #4a6f8e;
    display: block;
    line-height: 1.2;
}
.nav-links {
    display: flex;
    gap: 2.5rem;
}
.nav-links a {
    text-decoration: none;
    font-weight: 500;
    color: #1e3a5f;
    font-size: 1.1rem;
    transition: 0.2s;
    padding-bottom: 4px;
    border-bottom: 2px solid transparent;
}
.nav-links a:hover,
.nav-links a.active {
    border-bottom-color: #d71920;
    color: #d71920;
}

/* 按钮 */
.btn {
    display: inline-block;
    padding: 12px 32px;
    border-radius: 40px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    border: 2px solid transparent;
    cursor: pointer;
}
.btn-primary {
    background-color: #d71920;
    color: white;
}
.btn-primary:hover {
    background-color: #b0141a;
}
.btn-outline {
    background: transparent;
    border-color: #d71920;
    color: #d71920;
}
.btn-outline:hover {
    background: #d71920;
    color: white;
}
.btn-secondary {
    background: white;
    color: #1e2b37;
    border: 2px solid white;
}
.btn-secondary:hover {
    background: transparent;
    color: white;
    border-color: white;
}

/* 通用标题 */
.section-title {
    font-size: 2.4rem;
    font-weight: 600;
    color: #0a2647;
    text-align: center;
    margin-bottom: 0.5rem;
}
.section-subtitle {
    text-align: center;
    color: #4a6f8e;
    max-width: 800px;
    margin: 0 auto 3rem;
    font-size: 1.1rem;
}

/* 分隔线 */
.divider {
    width: 100px;
    height: 4px;
    background-color: #d71920;
    margin: 20px 0;
}

/* Hero Slider */
.hero-slider {
    height: 600px;
    position: relative;
    color: white;
    margin-bottom: 60px;
}
.slide {
    height: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    position: relative;
}
.slide-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
}
.slide-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
}
.slide-content h2 {
    font-size: 3.2rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
}
.slide-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

/* 统计数字 */
.stats-section {
    margin: 80px auto;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}
.stat-item i {
    font-size: 3rem;
    color: #d71920;
    margin-bottom: 15px;
}
.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #0a2647;
}
.stat-label {
    font-size: 1.1rem;
    color: #4a6f8e;
    font-weight: 500;
}

/* 产品分类网格 (动态生成卡片样式) */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 40px;
}
.category-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.05);
    padding: 30px 20px;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
    color: inherit;
    border: 1px solid #eaeef5;
}
.category-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}
.category-icon {
    width: 80px;
    height: 80px;
    background: #f0f4fa;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2.5rem;
    color: #d71920;
}
.category-card h3 {
    font-size: 1.3rem;
    margin-bottom: 8px;
    color: #0a2647;
}
.category-card p {
    font-size: 0.95rem;
    color: #4f6f8f;
    margin: 0;
}

/* 博客、新闻卡片 */
.blog-grid,
.news-grid,
.resources-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 30px;
}
.blog-card,
.news-card,
.resource-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0,0,0,0.04);
    transition: 0.2s;
}
.blog-card:hover,
.news-card:hover {
    box-shadow: 0 12px 30px rgba(0,0,0,0.1);
}
.blog-card img,
.news-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}
.blog-content,
.news-content {
    padding: 24px;
}
.blog-category,
.news-category {
    display: inline-block;
    background: #eef2f6;
    color: #1f4973;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 30px;
    margin-bottom: 12px;
    letter-spacing: 0.3px;
}
.news-category.events {
    background: #d71920;
    color: white;
}
.news-category.news {
    background: #0a2647;
    color: white;
}
.blog-card h3,
.news-card h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}
.blog-card h3 a,
.news-card h3 a {
    text-decoration: none;
    color: #0a2647;
}
.blog-excerpt {
    color: #4f6f8f;
    margin-bottom: 15px;
}
.read-more {
    text-decoration: none;
    color: #d71920;
    font-weight: 600;
    font-size: 0.95rem;
}

/* 资源卡片 */
.resource-card {
    position: relative;
    height: 300px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    padding: 30px;
    color: white;
}
.resource-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.7), rgba(0,0,0,0.2));
    z-index: 1;
}
.resource-content {
    position: relative;
    z-index: 2;
}
.resource-content h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

/* 评价 */
.testimonials-section {
    background: #f1f5f9;
    padding: 60px 0;
    margin: 60px 0;
}
.testimonials-slider {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    padding: 20px 0;
    scroll-snap-type: x mandatory;
}
.testimonial {
    min-width: 350px;
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.04);
    scroll-snap-align: start;
}
.testimonial i {
    font-size: 2.5rem;
    color: #d71920;
    opacity: 0.3;
    margin-bottom: 20px;
}
.testimonial p {
    font-size: 1.1rem;
    font-style: italic;
    margin-bottom: 20px;
}
.author {
    font-weight: 600;
    color: #0a2647;
}

/* 底部 */
footer {
    background: #0a1a2b;
    color: #aac3d4;
    padding: 40px 0;
    margin-top: 60px;
}
.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
}
.footer-copyright {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #1f3a4e;
    font-size: 0.9rem;
}

/* 响应式 */
@media (max-width: 1024px) {
    .stats-grid,
    .categories-grid,
    .blog-grid,
    .news-grid,
    .resources-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 640px) {
    .navbar {
        flex-direction: column;
        gap: 20px;
    }
    .stats-grid,
    .categories-grid,
    .blog-grid,
    .news-grid,
    .resources-grid {
        grid-template-columns: 1fr;
    }
    .hero-slider {
        height: 400px;
    }
    .slide-content h2 {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 30px;    /* 平板或手机端减少到 30px */
    }
}
@media (max-width: 480px) {
    .container {
        padding: 0 20px;    /* 小屏手机使用 20px */
    }
}

/* 原有样式保持不变，添加以下新样式 */

/* 右侧悬浮栏 */
.floating-bar {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 999;
}
.floating-item {
    width: 50px;
    height: 50px;
    background-color: #d71920;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: background 0.2s, transform 0.2s;
}
.floating-item:hover {
    background-color: #b0141a;
    transform: scale(1.1);
}

/* Logo 区域调整 */
.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}
.logo-img {
    height: 50px;
    width: auto;
}
.logo-text h1 {
    font-size: 1.8rem;
    font-weight: 600;
    color: #d71920;
    margin: 0;
    line-height: 1.2;
}
.logo-text span {
    font-size: 0.9rem;
    color: #4a6f8e;
}

/* 导航下拉菜单 */
.dropdown {
    position: relative;
    display: inline-block;
}
.dropbtn {
    text-decoration: none;
    font-weight: 500;
    color: #1e3a5f;
    font-size: 1.1rem;
    padding-bottom: 4px;
    border-bottom: 2px solid transparent;
    transition: 0.2s;
}
.dropdown:hover .dropbtn {
    border-bottom-color: #d71920;
    color: #d71920;
}
.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    min-width: 280px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    border-radius: 8px;
    padding: 12px 0;
    z-index: 10;
    max-height: 400px;
    overflow-y: auto;
}
.dropdown:hover .dropdown-content {
    display: block;
}
.dropdown-content a {
    color: #1e3a5f;
    padding: 8px 20px;
    text-decoration: none;
    display: block;
    font-size: 0.95rem;
    transition: background 0.2s;
}
.dropdown-content a:hover {
    background-color: #f5f5f5;
    color: #d71920;
}

/* 轮播样式增强 */
.hero-slider {
    position: relative;
    height: 600px;
    overflow: hidden;
}
.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease;
    display: flex;
    align-items: center;
}
.slide.active {
    opacity: 1;
    z-index: 1;
}
.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 2;
}
.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: background 0.2s;
}
.dot.active {
    background-color: #d71920;
}

/* 产品卡片缩略图 */
.category-card img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 15px;
}
/* 兼容无图情况 */
.category-card .category-icon {
    width: 80px;
    height: 80px;
    background: #f0f4fa;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2.5rem;
    color: #d71920;
}

/* 移除不需要的区域 */
.testimonials-section,
.resources-section,
.blog-section {
    display: none;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 40px;
}
.advantage-item {
    background: white;
    border-radius: 20px;
    padding: 30px 20px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.04);
    border: 1px solid #eaeef5;
}
.advantage-item i {
    font-size: 2.5rem;
    color: #d71920;
    margin-bottom: 20px;
}
.advantage-item h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: #0a2647;
}
.advantage-item ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.advantage-item li {
    padding-left: 1.2rem;
    position: relative;
    margin-bottom: 10px;
    color: #4f6f8f;
    font-size: 0.95rem;
    line-height: 1.5;
}
.advantage-item li::before {
    content: "•";
    color: #d71920;
    font-weight: bold;
    position: absolute;
    left: 0;
}
@media (max-width: 1024px) {
    .advantages-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 640px) {
    .advantages-grid {
        grid-template-columns: 1fr;
    }
}

.news-category.live {
    background: #28a745; /* 绿色表示实时 */
    color: white;
}

.footer-main {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 30px;
}
.footer-brand {
    font-size: 1.2rem;
    white-space: nowrap;
    color: #aac3d4;
}
.footer-brand strong {
    color: white;
}
.footer-contacts {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
}
.contact-person {
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.person-name {
    font-weight: bold;
    font-size: 1.1rem;
    color: white;
    margin-bottom: 4px;
}
.contact-phone,
.contact-email {
    color: #aac3d4;
    text-decoration: none;
    transition: color 0.2s;
}
.contact-phone:hover,
.contact-email:hover {
    color: white;
}
.footer-copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #1f3a4e;
    font-size: 0.9rem;
    color: #6d8ba0;
}