/* 基础重置与变量定义 */
:root {
    --primary-color: #0066cc;
    --primary-dark: #0052a3;
    --secondary-color: #1a2b3c;
    --accent-color: #ff6b35;
    --light-color: #f8fafc;
    --gray-color: #64748b;
    --gray-light: #e2e8f0;
    --gray-dark: #334155;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    
    --font-main: 'Microsoft YaHei', 'Segoe UI', 'Roboto', sans-serif;
    --font-heading: 'Microsoft YaHei', 'Montserrat', sans-serif;
    
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.1);
    --shadow-xl: 0 20px 40px rgba(0,0,0,0.15);
    
    --border-radius: 8px;
    --border-radius-lg: 16px;
    --border-radius-xl: 24px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-main);
    color: var(--secondary-color);
    line-height: 1.6;
    overflow: hidden;
    background-color: #ffffff;
}

/* 主容器 */
.main-container {
    position: relative;
    width: 100%;
    height: 100vh;
}

/* 导航栏样式 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.logo i {
    font-size: 32px;
    color: var(--primary-color);
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-main {
    font-size: 24px;
    font-weight: 700;
    color: var(--secondary-color);
    line-height: 1.2;
}

.logo-sub {
    font-size: 12px;
    color: var(--gray-color);
    font-weight: 500;
    letter-spacing: 1px;
}

.nav-menu {
    display: flex;
    gap: 40px;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--gray-dark);
    font-weight: 500;
    font-size: 16px;
    padding: 8px 0;
    position: relative;
    transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.btn-contact {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: var(--border-radius);
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.btn-contact:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.language-selector {
    position: relative;
    cursor: pointer;
}

.lang-active {
    padding: 8px 12px;
    border-radius: var(--border-radius);
    background-color: var(--light-color);
    display: flex;
    align-items: center;
    gap: 8px;
}

.lang-active::after {
    content: '▼';
    font-size: 10px;
    margin-left: 5px;
}

.lang-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    padding: 10px 0;
    min-width: 120px;
    display: none;
}

.language-selector:hover .lang-dropdown {
    display: block;
}

.lang-dropdown a {
    display: block;
    padding: 8px 16px;
    text-decoration: none;
    color: var(--gray-dark);
    transition: background-color 0.3s;
}

.lang-dropdown a:hover {
    background-color: var(--light-color);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--secondary-color);
    cursor: pointer;
}

/* Swiper 容器 */
.swiper-container {
    width: 100%;
    height: 100vh;
    position: relative;
}

.swiper-wrapper {
    transition-timing-function: cubic-bezier(0.65, 0, 0.35, 1);
}

.swiper-slide {
    position: relative;
    overflow: hidden;
    background-color: #ffffff;
}

/* 首页样式 */
.page-home {
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), 
                url('https://images.unsplash.com/photo-1581094794329-c8112a89af12?ixlib=rb-4.0.3&auto=format&fit=crop&w=1600&q=80');
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    padding: 0 20px;
}

.home-content {
    max-width: 800px;
    z-index: 2;
}

.home-content h1 {
    font-size: 64px;
    font-weight: 700;
    margin-bottom: 24px;
    line-height: 1.2;
    font-family: var(--font-heading);
}

.home-content .subtitle {
    font-size: 22px;
    margin-bottom: 40px;
    opacity: 0.9;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.home-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 40px;
}

.btn {
    display: inline-block;
    padding: 16px 32px;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    font-size: 16px;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background-color: transparent;
    color: white;
    border-color: white;
}

.btn-outline:hover {
    background-color: white;
    color: var(--secondary-color);
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: white;
    opacity: 0.8;
    animation: bounce 2s infinite;
}

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid white;
    border-radius: 20px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 10px;
    background-color: white;
    border-radius: 2px;
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

/* 页面通用样式 */
.page-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 120px 40px 80px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 48px;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 16px;
    font-family: var(--font-heading);
}

.section-subtitle {
    font-size: 18px;
    color: var(--gray-color);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* 公司介绍页 */
.page-about {
    background-color: var(--light-color);
}

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

.about-text {
    flex: 1;
}

.about-text h3 {
    font-size: 28px;
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.about-text p {
    margin-bottom: 30px;
    color: var(--gray-color);
    line-height: 1.8;
    font-size: 17px;
}

.about-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.feature {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.feature:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.feature i {
    font-size: 24px;
    color: var(--primary-color);
}

.feature span {
    font-weight: 600;
    color: var(--secondary-color);
}

.about-image {
    flex: 1;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.about-image:hover img {
    transform: scale(1.05);
}

/* 产品展示页 */
.page-products {
    background-color: white;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 20px;
}

.product-card {
    background-color: white;
    padding: 40px 30px;
    border-radius: var(--border-radius-lg);
    text-align: center;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-light);
    transition: all 0.3s ease;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

.product-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background: linear-gradient(135deg, #f0f7ff, #e6f0ff);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-icon i {
    font-size: 36px;
    color: var(--primary-color);
}

.product-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.product-card p {
    color: var(--gray-color);
    line-height: 1.7;
    font-size: 15px;
}

/* 生产实力页 */
.page-capability {
    background-color: var(--light-color);
}

.stats-section {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 60px;
}

.stat-item {
    background-color: white;
    padding: 40px 20px;
    border-radius: var(--border-radius-lg);
    text-align: center;
    box-shadow: var(--shadow-md);
}

.stat-number {
    font-size: 48px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-family: var(--font-heading);
}

.stat-label {
    font-size: 16px;
    color: var(--gray-color);
    font-weight: 500;
}

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

.capability-image {
    flex: 1;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

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

.capability-features {
    flex: 1;
}

.capability-features h3 {
    font-size: 28px;
    margin-bottom: 30px;
    color: var(--secondary-color);
}

.capability-features ul {
    list-style: none;
    margin-bottom: 40px;
}

.capability-features li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--gray-color);
    font-size: 16px;
}

.capability-features li i {
    color: var(--success-color);
}

.certificates h4 {
    font-size: 20px;
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.cert-logos {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.cert-logo {
    background-color: white;
    padding: 12px 24px;
    border-radius: var(--border-radius);
    font-weight: 600;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

/* 新闻中心页 */
.page-news {
    background-color: white;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 20px;
}

.news-card {
    background-color: white;
    border-radius: var(--border-radius-lg);
    padding: 30px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-light);
    transition: all 0.3s ease;
    position: relative;
}

.news-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

.news-date {
    position: absolute;
    top: -20px;
    left: 30px;
    background-color: var(--primary-color);
    color: white;
    padding: 12px 20px;
    border-radius: var(--border-radius);
    text-align: center;
    line-height: 1;
}

.date-day {
    font-size: 28px;
    font-weight: 700;
    display: block;
    font-family: var(--font-heading);
}

.date-month {
    font-size: 14px;
    font-weight: 500;
    opacity: 0.9;
}

.news-card h3 {
    font-size: 20px;
    margin: 30px 0 15px;
    color: var(--secondary-color);
    line-height: 1.4;
}

.news-card p {
    color: var(--gray-color);
    margin-bottom: 20px;
    line-height: 1.7;
}

.news-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: gap 0.3s ease;
}

.news-link:hover {
    gap: 12px;
}

/* 联系我们页 */
.page-contact {
    background-color: var(--light-color);
}

.contact-content {
    display: flex;
    gap: 60px;
    margin-top: 20px;
}

.contact-info {
    flex: 1;
}

.contact-info h3 {
    font-size: 24px;
    margin-bottom: 30px;
    color: var(--secondary-color);
}

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

.contact-item i {
    font-size: 20px;
    color: var(--primary-color);
    margin-top: 4px;
}

.contact-item strong {
    display: block;
    margin-bottom: 5px;
    color: var(--secondary-color);
}

.contact-item p {
    color: var(--gray-color);
    line-height: 1.6;
}

.contact-form {
    flex: 1;
    background-color: white;
    padding: 40px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
}

.contact-form h3 {
    font-size: 24px;
    margin-bottom: 30px;
    color: var(--secondary-color);
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 16px;
    border: 1px solid var(--gray-light);
    border-radius: var(--border-radius);
    font-family: var(--font-main);
    font-size: 16px;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form .btn {
    width: 100%;
    padding: 18px;
    font-size: 18px;
    font-weight: 600;
}

.footer {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid var(--gray-light);
    text-align: center;
}

.footer p {
    color: var(--gray-color);
    margin-bottom: 20px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
}

.footer-links a {
    color: var(--gray-color);
    text-decoration: none;
    transition: color 0.3s;
}

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

/* Swiper 分页器样式 */
.swiper-pagination {
    position: fixed !important;
    right: 40px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: auto !important;
    left: auto !important;
    display: flex;
    flex-direction: column;
    gap: 20px;
    z-index: 10;
}

.swiper-pagination-bullet {
    width: 12px !important;
    height: 12px !important;
    background-color: var(--gray-light) !important;
    opacity: 1 !important;
    margin: 0 !important;
    display: block;
    border-radius: 50% !important;
    transition: all 0.3s ease !important;
    position: relative;
}

.swiper-pagination-bullet-active {
    background-color: var(--primary-color) !important;
    transform: scale(1.2) !important;
}

.swiper-pagination-bullet::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid transparent;
    transition: border-color 0.3s ease;
}

.swiper-pagination-bullet-active::after {
    border-color: var(--primary-color);
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .home-content h1 {
        font-size: 56px;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stats-section {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .nav-menu,
    .nav-actions {
        display: none;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .nav-container {
        padding: 0 20px;
    }
    
    .home-content h1 {
        font-size: 48px;
    }
    
    .home-content .subtitle {
        font-size: 20px;
    }
    
    .about-content,
    .capability-content,
    .contact-content {
        flex-direction: column;
        gap: 40px;
    }
    
    .section-title {
        font-size: 40px;
    }
    
    .page-container {
        padding: 100px 20px 60px;
    }
    
    .swiper-pagination {
        right: 20px !important;
    }
}

@media (max-width: 768px) {
    .home-content h1 {
        font-size: 36px;
    }
    
    .home-content .subtitle {
        font-size: 18px;
    }
    
    .home-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .products-grid,
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-section {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .about-features {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 32px;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 15px;
    }
}

@media (max-width: 576px) {
    .nav-container {
        padding: 0 15px;
    }
    
    .home-content h1 {
        font-size: 28px;
    }
    
    .home-content .subtitle {
        font-size: 16px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .page-container {
        padding: 80px 15px 40px;
    }
    
    .contact-form {
        padding: 20px;
    }
}