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

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
}

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

/* 导航栏 */
.navbar {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

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

.logo h1 {
    color: #c0392b;
    font-size: 32px;
    font-family: "KaiTi", "楷体", serif;
    font-weight: bolder;
}

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

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    color: #333;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s ease;
    font-weight: 500;
}

.nav-links a:hover {
    color: #e74c3c;
}

/* Hero区域 */
.hero {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: #fff;
    padding: 120px 0 40px;
    text-align: center;
}

.hero-content h2 {
    font-size: 86px;
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
    font-family: "KaiTi", "楷体", serif;
}

.hero-content p {
    font-size: 20px;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.95;
}

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

/* 按钮样式 */
.btn-primary {
    background-color: #fff;
    color: #e74c3c;
    padding: 16px 32px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 17px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary:hover {
    background-color: #f1f1f1;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: #fff;
    padding: 16px 32px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 17px;
    transition: all 0.3s ease;
    border: 2px solid #fff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-secondary:hover {
    background-color: #fff;
    color: #e74c3c;
    transform: translateY(-2px);
}

.btn-link {
    color: #e74c3c;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.btn-link:hover {
    color: #c0392b;
    text-decoration: underline;
}

/* 页面标题 */
.page-header {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: #fff;
    padding: 100px 0 60px;
    text-align: center;
    margin-top: 70px;
}

.page-header h2 {
    font-size: 36px;
    margin-bottom: 10px;
}

.page-header p {
    font-size: 18px;
    opacity: 0.8;
}

/* 区块标题 */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2,
.section-header h3 {
    color: #2c3e50;
    font-size: 32px;
    margin-bottom: 10px;
}

.section-header h3 {
    font-size: 28px;
}

.divider {
    width: 40px;
    height: 3px;
    background-color: #e74c3c;
    margin: 0 auto;
}

/* 公司简介 */
.about-section {
    padding: 40px 0;
    background-color: #f9f9f9;
}

/* 平滑滚动效果 */
html {
    scroll-behavior: smooth;
}

/* 锚点滚动偏移，避免导航栏遮挡内容 */
section {
    scroll-margin-top: 40px;
}

.about-content {
    display: flex;
    justify-content: center;
}

.about-text {
    flex: 1;
}

.about-text p {
    margin-bottom: 20px;
    font-size: 16px;
    line-height: 1.8;
}

.about-image {
    flex: 1;
}

/* 图片占位符 */
.image-placeholder {
    width: 100%;
    height: 300px;
    background-color: #ecf0f1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    font-size: 24px;
    color: #7f8c8d;
    font-weight: bold;
}

/* 核心业务 */
.services-section {
    padding: 40px 0;
    background-color: #f9f9f9;
}

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

.service-card {
    background-color: #fff;
    padding: 40px 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.service-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.service-card h3 {
    color: #2c3e50;
    font-size: 24px;
    margin-bottom: 15px;
}

.service-card p {
    color: #666;
    margin-bottom: 25px;
    font-size: 16px;
}

/* 公司简介详情页 */
.company-profile,
.vision,
.team {
    padding: 40px 0;
    background-color: #fff;
}

.vision {
    background-color: #f9f9f9;
}

.profile-content p {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 20px;
    font-size: 16px;
    line-height: 1.8;
}

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

.vision-item {
    text-align: center;
    padding: 35px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease;
}

.vision-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.vision-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.vision-item h4 {
    color: #2c3e50;
    font-size: 20px;
    margin-bottom: 10px;
}

.vision-item p {
    color: #666;
    font-size: 16px;
}

.team-member {
    display: flex;
    gap: 30px;
    align-items: center;
    max-width: 600px;
    margin: 0 auto;
}

.member-image {
    width: 200px;
    height: 200px;
}

.member-image .image-placeholder {
    border-radius: 50%;
    height: 200px;
    width: 200px;
}

.member-info h4 {
    color: #2c3e50;
    font-size: 24px;
    margin-bottom: 5px;
}

.member-info p {
    color: #666;
    margin-bottom: 15px;
}

/* 产品服务详情页 */


/* 联系信息 */
.contact-info {
    padding: 70px 0;
    background-color: #fff;
}

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

.contact-details {
    flex: 1;
}

.contact-item {
    display: flex;
    gap: 25px;
    margin-bottom: 32px;
    align-items: flex-start;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.contact-item:hover {
    transform: translateX(10px);
}

/* Contact row layout */
.contact-row {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.contact-row .contact-item {
    flex: 1;
    min-width: 250px;
}

.contact-icon {
    font-size: 28px;
    color: #e74c3c;
    margin-top: 5px;
    flex-shrink: 0;
}

.contact-text h4 {
    color: #2c3e50;
    font-size: 18px;
    margin-bottom: 8px;
    font-weight: 600;
}

.contact-text p {
    color: #444;
    font-size: 16px;
    line-height: 1.6;
}



/* 页脚 */
.footer {
    background-color: #2c3e50;
    color: #fff;
    padding: 20px 0;
}

.footer-bottom {
    text-align: center;
    opacity: 0.8;
    color: #ecf0f1;
    font-size: 15px;
    font-weight: 400;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .about-content,
    .service-content,
    .contact-content {
        flex-direction: column;
    }
    
    .about-text,
    .about-image,
    .service-text,
    .service-image,
    .contact-details {
        flex: 1 1 100%;
    }
    
    /* 紧凑布局 - 减少各区域间距 */
    .hero-section {
        padding: 40px 0 40px;
    }
    
    .about-section,
    .services-section,
    .vision,
    .contact-section,
    .company-profile,
    .team {
        padding: 40px 0;
    }
}

@media (max-width: 768px) {
    /* 优化移动端logo */
    .logo h1 {
        font-size: 24px;
    }
    
    .nav-links {
        display: none;
    }

    /* 移动端导航菜单按钮 */
    .menu-toggle {
        display: block;
        width: 40px;
        height: 40px;
        background-color: #e74c3c;
        color: #fff;
        border-radius: 5px;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        font-size: 20px;
    }
    
    /* 紧凑布局 - Hero区域 */
    .hero-section {
        padding: 60px 0 30px;
    }
    
    .hero-content h2 {
        /* 在移动模式下隐藏原始标题 */
        font-size: 40px;
        margin-bottom: 15px;
        height: 86px;
        position: relative;
    }
    
    .hero-content p {
        font-size: 17px;
        margin-bottom: 25px;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .hero-buttons a {
        width: 140px;
        text-align: center;
        padding: 10px 20px;
    }
    
    /* 紧凑布局 - 各section间距 */
    .about-section,
    .services-section,
    .vision,
    .contact-section,
    .company-profile,
    .team {
        padding: 40px 0;
    }
    
    /* 内容容器宽度优化 */
    .container {
        padding: 0 15px;
        width: 100%;
    }
    
    /* 紧凑布局 - 内容排列 */
    .about-content,
    .service-content,
    .team-member,
    .contact-content {
        flex-direction: column;
        gap: 25px;
    }
    
    .about-text,
    .service-text {
        order: -1;
    }
    
    /* 服务卡片间距优化 */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .vision-content {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    /* 减少内边距 */
    .service-card {
        padding: 20px;
    }
    
    .form-container {
        padding: 20px;
    }
}

@media (max-width: 440px) {
    /* 进一步优化小屏设备 */
    .logo h1 {
        font-size: 22px;
    }
    
    .hero-content h2 {
        /* 在移动模式下隐藏原始标题 */
        margin-bottom: 12px;
        height: 86px;
        position: relative;
        font-size: 40px;
    }
    
    .hero-content p {
        font-size: 16px;
        margin-bottom: 20px;
    }
    
    .page-header h2 {
        font-size: 24px;
    }
    
    .section-header h2,
    .section-header h3 {
        font-size: 22px;
        margin-bottom: 15px;
    }
    
    /* 进一步减少各section间距 */
    .hero-section {
        padding: 50px 0 25px;
    }
    
    .about-section,
    .services-section,
    .vision,
    .contact-section,
    .company-profile,
    .team {
        padding: 35px 0;
    }
    
    /* 优化文本行高 */
    p {
        line-height: 1.5;
    }
}