﻿/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f8f8;
}

a {
    text-decoration: none;
    color: #0066a1;
    transition: color 0.3s ease;
}

a:hover {
    color: #004a7a;
}

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

/* 头部样式 */
header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

/* Logo样式 - 使用固定宽度方案 */
.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    width: 154px; /* 631/161=3.92比例，40*3.92≈154 */
    height: auto;
    margin-right: 15px;
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: 500;
    color: #333;
}

nav ul {
    display: flex;
    list-style: none;
}

nav li {
    margin-left: 30px;
}

nav a {
    font-size: 1rem;
    color: #333;
    position: relative;
    padding-bottom: 5px;
}

nav a.active {
    color: #0066a1;
}

nav a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #0066a1;
    transition: width 0.3s ease;
}

nav a:hover:after, nav a.active:after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.mobile-menu-btn span {
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 3px 0;
    transition: 0.3s;
}

/* 主视觉区域 */
.hero {
    padding: 60px 0;
    background-color: #fff;
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 40px;
}

.hero-text {
    flex: 1;
}

.hero-text h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
    color: #333;
    font-weight: 500;
}

.hero-text p {
    margin-bottom: 20px;
    text-align: justify;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: #0066a1;
    color: white;
}

.btn-primary:hover {
    background-color: #004a7a;
    color: white;
}

.btn-secondary {
    background-color: transparent;
    color: #0066a1;
    border: 1px solid #0066a1;
}

.btn-secondary:hover {
    background-color: #f0f7ff;
}

.hero-image {
    flex: 1;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

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

/* 公司特色区域 */
.features {
    padding: 80px 0;
    background-color: #f8f8f8;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2rem;
    font-weight: 500;
    color: #333;
    position: relative;
}

.section-title:after {
    content: '';
    display: block;
    width: 60px;
    height: 2px;
    background-color: #0066a1;
    margin: 10px auto 0;
}

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

.feature-card {
    background-color: #fff;
    padding: 30px 25px;
    border-radius: 5px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background-color: #0066a1;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.8rem;
}

.feature-card h3 {
    margin-bottom: 15px;
    font-size: 1.3rem;
    font-weight: 500;
}

/* 产品与服务 */
.products {
    padding: 80px 0;
    background-color: #fff;
}

.products-content {
    display: flex;
    gap: 40px;
}

.product-list, .service-list {
    flex: 1;
}

.products-content h3 {
    margin-bottom: 20px;
    font-size: 1.5rem;
    font-weight: 500;
    color: #333;
    position: relative;
    padding-bottom: 10px;
}

.products-content h3:after {
    content: '';
    position: absolute;
    width: 40px;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #0066a1;
}

.products-content ul {
    list-style: none;
}

.products-content li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    position: relative;
    padding-left: 20px;
}

.products-content li:before {
    content: '•';
    color: #0066a1;
    position: absolute;
    left: 0;
}

/* 技术与设备 */
.technology {
    padding: 80px 0;
    background-color: #f8f8f8;
}

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

.tech-item {
    background-color: #fff;
    padding: 30px;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.tech-item h3 {
    margin-bottom: 15px;
    font-size: 1.3rem;
    font-weight: 500;
    color: #333;
}

/* 页脚样式 */
footer {
    background-color: #333;
    color: #fff;
    padding: 60px 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.footer-section {
    flex: 1;
    min-width: 250px;
    margin-bottom: 30px;
}

.footer-section h3 {
    margin-bottom: 20px;
    font-size: 1.3rem;
    font-weight: 500;
    position: relative;
    padding-bottom: 10px;
}

.footer-section h3:after {
    content: '';
    position: absolute;
    width: 40px;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #0066a1;
}

.footer-section p, .footer-section a {
    color: #ccc;
    margin-bottom: 10px;
    display: block;
}

.footer-section a:hover {
    color: #fff;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #444;
    color: #999;
    font-size: 0.9rem;
}

.copyright a {
    color: #999;
}

.copyright a:hover {
    color: #ccc;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .logo-img {
        width: 135px;
    }
    
    .logo h1 {
        font-size: 1.3rem;
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    nav ul {
        margin-top: 15px;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    nav li {
        margin: 0 10px;
    }
    
    .hero-content {
        flex-direction: column;
    }
    
    .hero-text, .hero-image {
        width: 100%;
    }
    
    .hero-text h2 {
        font-size: 1.8rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .products-content {
        flex-direction: column;
    }
    
    .footer-content {
        flex-direction: column;
    }
    
    .logo-img {
        width: 115px;
    }
    
    .logo h1 {
        font-size: 1.1rem;
    }
    
    .mobile-menu-btn {
        display: flex;
        position: absolute;
        right: 20px;
        top: 20px;
    }
    
    nav ul {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 70px;
        left: 0;
        background-color: white;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        z-index: 99;
    }
    
    nav ul.active {
        display: flex;
    }
    
    nav li {
        margin: 0;
        width: 100%;
        text-align: center;
    }
    
    nav a {
        display: block;
        padding: 15px;
        border-bottom: 1px solid #eee;
    }
}

@media (max-width: 600px) {
    .logo-img {
        width: 95px;
    }
    
    .logo h1 {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .logo {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .logo-img {
        width: 85px;
        margin-right: 0;
        margin-bottom: 5px;
    }
    
    .logo h1 {
        font-size: 0.8rem;
        line-height: 1.2;
    }
}