/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1e3a5f;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --text-color: #333;
    --light-text: #666;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --border-color: #e0e0e0;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 4px 12px rgba(0, 0, 0, 0.15);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航栏 */
.navbar {
    background-color: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    color: var(--primary-color);
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 1px;
}

.logo-img {
    height: 50px;
    width: auto;
    display: block;
    object-fit: contain;
}

/* LOGO加载失败时的备用样式 */
.logo img[src=""],
.logo img:not([src]),
.logo img[src="images/logo.png"]:error {
    display: none;
}

.logo:has(img.error) h1,
.logo img.error + h1 {
    display: block !important;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo h1 {
    color: var(--primary-color);
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 1px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-color);
    font-size: 16px;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--secondary-color);
}

.nav-menu a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--secondary-color);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    transition: all 0.3s ease;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 12px 32px;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--secondary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-secondary {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-secondary:hover {
    background-color: var(--white);
    color: var(--text-color);
}

.btn-link {
    display: inline-block;
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.btn-link:hover {
    color: #2980b9;
}

/* Hero区域 */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    padding: 120px 0;
    position: relative;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.2);
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.hero-content h2 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.hero-content p {
    font-size: 20px;
    margin-bottom: 40px;
    opacity: 0.95;
}

.hero-content .btn {
    margin: 0 10px;
}

/* 分区标题 */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 36px;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 700;
}

.section-header .divider {
    width: 60px;
    height: 4px;
    background-color: var(--secondary-color);
    margin: 0 auto 15px;
}

.section-header p {
    color: var(--light-text);
    font-size: 16px;
}

/* 关于预览 */
.about-preview {
    padding: 100px 0;
    background-color: var(--white);
}

.about-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text h3 {
    font-size: 28px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.about-text p {
    color: var(--light-text);
    line-height: 1.8;
    margin-bottom: 20px;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.stat-item {
    text-align: center;
    padding: 30px 20px;
    background-color: var(--bg-light);
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
}

.stat-number {
    font-size: 48px;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.stat-label {
    color: var(--light-text);
    font-size: 14px;
}

/* 产品预览 */
.products-preview {
    padding: 100px 0;
    background-color: var(--bg-light);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.product-card {
    background-color: var(--white);
    padding: 40px 30px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    text-align: center;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.product-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    color: var(--secondary-color);
}

.product-card h3 {
    font-size: 20px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.product-card p {
    color: var(--light-text);
    line-height: 1.6;
}

.text-center {
    text-align: center;
}

/* 优势展示 */
.features {
    padding: 100px 0;
    background-color: var(--white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-item {
    text-align: center;
    padding: 40px 20px;
}

.feature-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    color: var(--secondary-color);
}

.feature-item h3 {
    font-size: 20px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.feature-item p {
    color: var(--light-text);
    line-height: 1.6;
}

/* 页面标题 */
.page-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    padding: 80px 0;
    text-align: center;
}

.page-header h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.page-header p {
    font-size: 18px;
    opacity: 0.9;
    letter-spacing: 4px;
}

/* 关于页面 */
.about-section {
    padding: 100px 0;
    background-color: var(--white);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image {
    background-color: var(--bg-light);
    border-radius: 8px;
    overflow: hidden;
}

.placeholder-image {
    width: 100%;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light-text);
}

.about-info h2 {
    font-size: 36px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.about-info .divider {
    width: 60px;
    height: 4px;
    background-color: var(--secondary-color);
    margin-bottom: 30px;
}

.about-info p {
    color: var(--light-text);
    line-height: 1.8;
    margin-bottom: 15px;
}

/* 企业文化 */
.culture-section {
    padding: 100px 0;
    background-color: var(--bg-light);
}

.culture-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.culture-item {
    background-color: var(--white);
    padding: 50px 40px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: all 0.3s ease;
}

.culture-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.culture-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    color: var(--secondary-color);
}

.culture-item h3 {
    font-size: 22px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.culture-item p {
    color: var(--light-text);
    line-height: 1.6;
}

/* 发展历程 */
.timeline-section {
    padding: 100px 0;
    background-color: var(--white);
}

.timeline {
    max-width: 800px;
    margin: 0 auto;
}

.timeline-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 2px solid var(--bg-light);
}

.timeline-item:last-child {
    border-bottom: none;
}

.timeline-year {
    width: 100px;
    font-size: 28px;
    font-weight: 700;
    color: var(--secondary-color);
    flex-shrink: 0;
}

.timeline-content {
    flex: 1;
    padding-left: 30px;
}

.timeline-content h3 {
    font-size: 20px;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.timeline-content p {
    color: var(--light-text);
    line-height: 1.6;
}

/* 团队优势 */
.team-section {
    padding: 100px 0;
    background-color: var(--bg-light);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.team-item {
    background-color: var(--white);
    padding: 50px 40px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: all 0.3s ease;
}

.team-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.team-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    color: var(--secondary-color);
}

.team-item h3 {
    font-size: 22px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.team-item p {
    color: var(--light-text);
    line-height: 1.6;
}

/* 产品页面 */
.products-section {
    padding: 100px 0;
    background-color: var(--white);
}

.product-card.large {
    padding: 50px 40px;
}

.product-desc {
    color: var(--light-text);
    line-height: 1.8;
    margin-bottom: 20px;
    font-size: 15px;
}

.product-features {
    list-style: none;
    margin-bottom: 25px;
    padding: 0;
}

.product-features li {
    color: var(--light-text);
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
}

.product-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: bold;
}

/* 服务项目 */
.services-section {
    padding: 100px 0;
    background-color: var(--bg-light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.service-item {
    background-color: var(--white);
    padding: 50px 40px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.service-number {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 48px;
    font-weight: 700;
    color: rgba(52, 152, 219, 0.1);
}

.service-item h3 {
    font-size: 22px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.service-item p {
    color: var(--light-text);
    line-height: 1.6;
}

/* 品质保证 */
.quality-section {
    padding: 100px 0;
    background-color: var(--white);
}

.quality-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.quality-text h2 {
    font-size: 36px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.quality-text .divider {
    width: 60px;
    height: 4px;
    background-color: var(--secondary-color);
    margin-bottom: 30px;
}

.quality-text p {
    color: var(--light-text);
    line-height: 1.8;
    margin-bottom: 15px;
}

.quality-features {
    display: grid;
    gap: 20px;
}

.quality-feature {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background-color: var(--bg-light);
    border-radius: 8px;
}

.quality-feature svg {
    width: 30px;
    height: 30px;
    color: var(--secondary-color);
    flex-shrink: 0;
}

.quality-feature span {
    font-size: 18px;
    color: var(--primary-color);
    font-weight: 500;
}

/* CTA区域 */
.cta-section {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    text-align: center;
}

.cta-section h2 {
    font-size: 36px;
    margin-bottom: 15px;
}

.cta-section p {
    font-size: 18px;
    margin-bottom: 40px;
    opacity: 0.95;
}

/* 联系页面 */
.contact-section {
    padding: 100px 0;
    background-color: var(--white);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 40px;
}

.contact-icon {
    width: 50px;
    height: 50px;
    color: var(--secondary-color);
    flex-shrink: 0;
}

.contact-text h3 {
    font-size: 18px;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.contact-text p {
    color: var(--light-text);
    line-height: 1.6;
}

.contact-form-section {
    background-color: var(--bg-light);
    padding: 50px 40px;
    border-radius: 8px;
}

.contact-form-section h3 {
    font-size: 28px;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.contact-form-section > p {
    color: var(--light-text);
    margin-bottom: 30px;
}

.contact-form {
    display: grid;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-color);
    margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
}

.form-group textarea {
    resize: vertical;
}

/* 地图区域 */
.map-section {
    padding: 100px 0;
    background-color: var(--bg-light);
}

.map-placeholder {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

/* FAQ */
.faq-section {
    padding: 100px 0;
    background-color: var(--white);
}

.faq-grid {
    display: grid;
    gap: 30px;
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background-color: var(--bg-light);
    padding: 30px 40px;
    border-radius: 8px;
    border-left: 4px solid var(--secondary-color);
}

.faq-item h3 {
    font-size: 18px;
    color: var(--primary-color);
    margin-bottom: 12px;
}

.faq-item p {
    color: var(--light-text);
    line-height: 1.6;
}

/* 页脚 */
.footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    font-size: 20px;
    margin-bottom: 20px;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
    margin-bottom: 10px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul a:hover {
    color: var(--white);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
}

/* 响应式设计 */
@media (max-width: 968px) {
    .about-grid {
        grid-template-columns: 1fr;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .quality-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 20px 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .hero-content h2 {
        font-size: 32px;
    }

    .hero-content p {
        font-size: 16px;
    }

    .hero-content .btn {
        display: block;
        margin: 10px 0;
    }

    .about-stats {
        grid-template-columns: 1fr;
    }

    .section-header h2,
    .page-header h1 {
        font-size: 28px;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .product-card.large {
        padding: 30px 20px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .logo h1 {
        font-size: 20px;
    }

    .hero {
        padding: 80px 0;
    }

    .about-preview,
    .products-preview,
    .features,
    .about-section,
    .culture-section,
    .timeline-section,
    .team-section,
    .products-section,
    .services-section,
    .quality-section,
    .cta-section,
    .contact-section,
    .map-section,
    .faq-section {
        padding: 60px 0;
    }
}