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

body {
    font-family: 'Microsoft YaHei', 'PingFang SC', sans-serif;
    line-height: 1.6;
    color: #333;
}

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

/* 导航栏 */
.navbar {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar .logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.navbar .logo-img {
    height: 45px;
    width: auto;
}

.navbar .logo h1 {
    color: white;
    font-size: 1.8rem;
    margin: 0;
}

.navbar .logo i {
    margin-right: 10px;
    color: #4ecdc4;
}

.footer-logo {
    height: 60px;
    width: auto;
    margin-bottom: 10px;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 2rem;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
    color: #4ecdc4;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: white;
    margin: 3px 0;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, #4ecdc4 0%, #44a08d 100%);
    color: white;
    border: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(78, 205, 196, 0.4);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: #1e3c72;
}

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

.btn-outline:hover {
    background: #1e3c72;
    color: white;
}

/* 首页横幅 */
.hero {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 50%, #1e3c72 100%);
    padding: 150px 0 100px;
    display: flex;
    align-items: center;
    gap: 50px;
    margin-top: 70px;
}

.hero-content {
    flex: 1;
    color: white;
    padding-left: 20px;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

.hero-image {
    flex: 1;
    text-align: center;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* 核心优势 */
.features {
    padding: 80px 0;
    background: #f8f9fa;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
    color: #1e3c72;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card {
    background: white;
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.feature-card i {
    font-size: 3rem;
    color: #4ecdc4;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #1e3c72;
}

.feature-card p {
    color: #666;
}

/* 产品展示 */
.products-preview {
    padding: 80px 0;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

/* 20个产品网格布局 */
.products-grid-20 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.product-item {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    text-align: center;
}

.product-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.product-item img {
    width: 100%;
    height: auto;
    max-height: 300px;
    object-fit: contain;
}

.product-item h3 {
    margin: 20px 0 10px;
    font-size: 1.25rem;
    color: #333;
}

.product-item p {
    padding: 0 20px;
    color: #666;
    font-size: 0.9rem;
    line-height: 1.6;
}

.product-item .btn {
    margin: 20px 0;
}

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 0;
    border-radius: 12px;
    width: 90%;
    max-width: 900px;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    padding: 20px 25px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 12px 12px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
}

.close-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    padding: 5px 15px;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.modal-body {
    padding: 10px;
}

.modal-full-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.modal-info {
    display: flex;
    flex-direction: column;
}

.product-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    overflow: hidden;
}

.product-table th {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px;
    text-align: center;
    font-size: 1.1rem;
}

.product-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #e9ecef;
}

.product-table tr:nth-child(even) {
    background: #fff;
}

.product-table tr:hover {
    background: #e8f4fd;
}

.product-table td:first-child {
    font-weight: 600;
    color: #495057;
}

.product-table td {
    text-align: center;
    vertical-align: middle;
}

.modal-desc {
    margin-bottom: 20px;
}

.modal-desc h4 {
    margin: 0 0 10px;
    color: #333;
    font-size: 1.1rem;
}

.modal-desc p {
    margin: 0;
    color: #666;
    line-height: 1.7;
}

.modal-info .btn {
    align-self: flex-start;
}

/* 响应式模态框 */
@media (max-width: 768px) {
    .modal-body {
        grid-template-columns: 1fr;
    }
    
    .modal-header h2 {
        font-size: 1.2rem;
    }
}

.product-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.product-card img {
    width: 100%;
    height: auto;
    max-height: 300px;
    object-fit: contain;
}

.product-info {
    padding: 25px;
}

.product-info h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #1e3c72;
}

.product-info p {
    color: #666;
    margin-bottom: 20px;
}

.view-all {
    text-align: center;
}

/* 新闻动态 */
.news {
    padding: 80px 0;
    background: #f8f9fa;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.news-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s;
}

.news-card:hover {
    transform: translateY(-5px);
}

.news-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.news-card h3 {
    padding: 20px 25px 10px;
    font-size: 1.1rem;
    color: #1e3c72;
}

.news-card p {
    padding: 0 25px 15px;
    color: #666;
    font-size: 0.9rem;
}

.news-card .date {
    display: block;
    padding: 0 25px 20px;
    color: #999;
    font-size: 0.8rem;
}

/* 页脚 */
.footer {
    background: #1e3c72;
    color: white;
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.footer-section h3 i {
    color: #4ecdc4;
    margin-right: 10px;
}

.footer-section p {
    opacity: 0.8;
    line-height: 1.8;
}

.footer-section h4 {
    margin-bottom: 15px;
    color: #4ecdc4;
}

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

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

.footer-section ul li a {
    color: white;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.footer-section ul li a:hover {
    opacity: 1;
}

.footer-section p i {
    margin-right: 10px;
    color: #4ecdc4;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.6;
}

/* 产品页面 */
.products-page {
    padding: 120px 0 80px;
}

.products-page .section-title {
    margin-bottom: 30px;
}

.products-page .sub-title {
    text-align: center;
    color: #666;
    margin-bottom: 60px;
}

.product-detail-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
}

.product-detail-card:nth-child(even) img {
    order: 2;
}

.product-detail-card:nth-child(even) .product-detail-info {
    order: 1;
}

.product-detail-card img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    border-radius: 15px;
}

.product-detail-info h3 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #1e3c72;
}

.product-detail-info p {
    margin-bottom: 20px;
    color: #666;
}

.product-specs {
    margin-bottom: 30px;
}

.product-specs h4 {
    margin-bottom: 15px;
    color: #1e3c72;
}

.product-specs ul {
    list-style: none;
}

.product-specs li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
}

.product-specs li span:first-child {
    color: #666;
}

.product-specs li span:last-child {
    font-weight: 600;
    color: #1e3c72;
}

/* 关于我们页面 */
.about-page {
    padding: 120px 0 80px;
}

.about-page .section-title {
    margin-bottom: 30px;
}

.about-intro {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    padding: 60px;
    border-radius: 20px;
    margin-bottom: 60px;
}

.about-intro h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.about-intro p {
    opacity: 0.9;
    line-height: 1.8;
    margin-bottom: 15px;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.about-card {
    text-align: center;
    padding: 40px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.about-card .number {
    font-size: 3rem;
    font-weight: bold;
    color: #4ecdc4;
    margin-bottom: 15px;
}

.about-card h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #1e3c72;
}

.about-card p {
    color: #666;
}

/* 联系我们页面 */
.contact-page {
    padding: 120px 0 80px;
}

.contact-page .section-title {
    margin-bottom: 30px;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contact-info {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.contact-info h3 {
    font-size: 1.5rem;
    margin-bottom: 30px;
    color: #1e3c72;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
}

.contact-item i {
    font-size: 1.5rem;
    color: #4ecdc4;
    margin-right: 20px;
    width: 30px;
}

.contact-item h4 {
    margin-bottom: 5px;
    color: #1e3c72;
}

.contact-item p {
    color: #666;
}

.contact-form {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.contact-form h3 {
    font-size: 1.5rem;
    margin-bottom: 30px;
    color: #1e3c72;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #4ecdc4;
}

.contact-form textarea {
    height: 150px;
    resize: none;
}

/* 时间线样式 */
.timeline {
    position: relative;
    padding-left: 60px;
    margin-bottom: 60px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #4ecdc4;
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
}

.timeline-year {
    position: absolute;
    left: -50px;
    top: 5px;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #4ecdc4 0%, #44a08d 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9rem;
}

.timeline-content {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.timeline-content h4 {
    margin-bottom: 10px;
    color: #1e3c72;
}

.timeline-content p {
    color: #666;
}

/* 荣誉资质 */
.certifications {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
}

.cert-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.cert-card i {
    font-size: 2.5rem;
    color: #4ecdc4;
    margin-bottom: 15px;
}

.cert-card h4 {
    color: #1e3c72;
    font-size: 1rem;
}

/* 销售网络 */
.sales-network {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.network-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.network-card h4 {
    color: #1e3c72;
    margin-bottom: 15px;
}

.network-card p {
    color: #666;
    margin-bottom: 8px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: #1e3c72;
        flex-direction: column;
        padding: 20px;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        margin: 10px 0;
    }

    .hamburger {
        display: flex;
    }

    .hero {
        flex-direction: column;
        text-align: center;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .product-detail-card {
        grid-template-columns: 1fr;
    }

    .product-detail-card:nth-child(even) img,
    .product-detail-card:nth-child(even) .product-detail-info {
        order: initial;
    }

    .contact-container {
        grid-template-columns: 1fr;
    }

    .about-intro {
        padding: 40px 20px;
    }

    .timeline {
        padding-left: 30px;
    }

    .timeline::before {
        left: 10px;
    }

    .timeline-year {
        left: -30px;
        width: 35px;
        height: 35px;
        font-size: 0.8rem;
    }
}