/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: #f5f5f5;
}

/* 导航栏样式 */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: relative;
    z-index: 100;
}

.logo-text {
    font-size: 24px;
    font-weight: bold;
    /* color: #333333; */
	color: #007AFF;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-link {
    text-decoration: none;
    color: #666666;
    font-size: 16px;
    padding: 10px 0;
    position: relative;
    transition: color 0.3s;
}

.nav-link.active {
    color: #007AFF;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #007AFF;
    border-radius: 1px;
}

.nav-link:hover {
    color: #007AFF;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: #333;
    cursor: pointer;
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    width: 250px;
    height: 100vh;
    background-color: white;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding-top: 80px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.mobile-menu.active {
    transform: translateX(0);
}

.mobile-nav-link {
    display: block;
    padding: 15px 30px;
    text-decoration: none;
    color: #666666;
    font-size: 18px;
    border-bottom: 1px solid #f0f0f0;
}

.mobile-nav-link.active {
    color: #007AFF;
    background-color: #f5f9ff;
}

/* 首页样式 */
.main-content {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.image-container {
    max-width: 1200px;
    width: 100%;
    text-align: center;
}

.company-image {
    max-width: 100%;
    max-height: calc(100vh - 180px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.company-image:hover {
    transform: scale(1.02);
}

image-gallery {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.gallery-item {
    margin-bottom: 40px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s;
}

.gallery-item:hover {
    transform: translateY(-5px);
}

/* 关键样式：确保所有图片大小相同 */
.gallery-image {
    width: 100%;
    height: 400px; /* 固定高度，确保所有图片高度一致 */
    object-fit: cover; /* 保持比例并填充容器，可能裁剪部分图片 */
    display: block;
}

.gallery-caption {
    padding: 20px;
    background-color: #fff;
}

.gallery-caption h2 {
    margin-bottom: 10px;
    color: #2c3e50;
    font-size: 22px;
}

.gallery-caption p {
    color: #666;
    font-size: 16px;
}

/* 关于我们页面样式 */
.about-content {
    flex: 1;
    padding: 40px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.about-section, .values-section, .team-section {
    margin-bottom: 60px;
}

.about-content h2 {
    font-size: 28px;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #007AFF;
    display: inline-block;
}

.about-content p {
    font-size: 16px;
    line-height: 1.8;
    color: #666;
    margin-bottom: 15px;
}

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

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

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

.value-card i {
    font-size: 40px;
    color: #007AFF;
    margin-bottom: 20px;
}

.value-card h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #333;
}

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

.team-member {
    text-align: center;
}

.team-member img {
    width: 100%;
    max-width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 15px;
    border: 5px solid white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.team-member h3 {
    font-size: 18px;
    color: #333;
    margin-bottom: 5px;
}

.team-member p {
    color: #666;
    font-size: 14px;
}

/* 产品介绍页面样式 */
.products-content {
    flex: 1;
    padding: 40px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.products-content h1 {
    font-size: 32px;
    color: #333;
    margin-bottom: 20px;
    text-align: center;
}

.products-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
    color: #666;
    line-height: 1.8;
}

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

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

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

.product-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.product-info {
    padding: 25px;
}

.product-name {
    font-size: 20px;
    color: #333;
    margin-bottom: 10px;
}

.product-description {
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

.product-price {
    font-size: 18px;
    color: #007AFF;
    font-weight: bold;
    margin-bottom: 20px;
}

.product-btn {
    display: inline-block;
    background-color: #007AFF;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

.product-btn:hover {
    background-color: #0066cc;
}

/* 联系我们页面样式 */
.contact-content {
    flex: 1;
    padding: 40px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.contact-content h1 {
    font-size: 32px;
    color: #333;
    margin-bottom: 20px;
    text-align: center;
}

.contact-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
    color: #666;
    line-height: 1.8;
}

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

.contact-info {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.contact-info h2 {
    font-size: 24px;
    color: #333;
    margin-bottom: 30px;
    padding-bottom: 10px;
    border-bottom: 2px solid #007AFF;
    display: inline-block;
}

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

.contact-item i {
    font-size: 24px;
    color: #007AFF;
    margin-right: 15px;
    margin-top: 5px;
    min-width: 24px;
}

.contact-item h3 {
    font-size: 18px;
    color: #333;
    margin-bottom: 5px;
}

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

.social-links {
    margin-top: 30px;
}

.social-links h3 {
    font-size: 18px;
    color: #333;
    margin-bottom: 15px;
}

.social-link {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    background-color: #f0f5ff;
    color: #007AFF;
    border-radius: 50%;
    margin-right: 10px;
    transition: background-color 0.3s, color 0.3s;
}

.social-link:hover {
    background-color: #007AFF;
    color: white;
}

.contact-form-container {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.contact-form-container h2 {
    font-size: 24px;
    color: #333;
    margin-bottom: 30px;
    padding-bottom: 10px;
    border-bottom: 2px solid #007AFF;
    display: inline-block;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.form-group textarea {
    resize: vertical;
}

.submit-btn {
    background-color: #007AFF;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

.submit-btn:hover {
    background-color: #0066cc;
}

/* 弹窗样式 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    position: relative;
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 24px;
    cursor: pointer;
    color: #666;
}

.contact-btn {
    background-color: #007AFF;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    margin-top: 20px;
    transition: background-color 0.3s;
}

.contact-btn:hover {
    background-color: #0066cc;
}

/* 页脚样式 */
.footer {
    padding: 20px 0;
    background-color: #333333;
    color: #ffffff;
    text-align: center;
    margin-top: auto;
}

.copyright {
    font-size: 14px;
    opacity: 0.8;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .navbar {
        padding: 15px 20px;
    }
    
    .nav-links {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .mobile-menu {
        display: block;
    }
    
    .about-content,
    .products-content,
    .contact-content {
        padding: 20px;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
    }
    
    .company-image {
        max-height: calc(100vh - 150px);
    }
}
