/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f0f8ff;
    background-image: url('../images/bg.jpg');
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 头部样式 */
.header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
    padding: 60px 20px;
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="water" patternUnits="userSpaceOnUse" width="10" height="10"><path d="M0,5 Q2.5,0 5,5 T10,5" fill="none" stroke="rgba(255,255,255,0.2)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23water)"/></svg>');
    opacity: 0.3;
}

.header-content {
    position: relative;
    z-index: 1;
}

.header h1 {
    font-size: 3rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* 主内容样式 */
.main-content {
    padding: 40px 0;
}

section {
    margin-bottom: 60px;
}

section h2 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 30px;
    font-size: 2rem;
    position: relative;
}

section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 1.5px;
}

/* 简介部分 */
.intro-section {
    background: rgba(255, 255, 255, 0.6);
    padding: 40px 0;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    margin: 20px;
}

.intro-content {
    display: flex;
    align-items: flex-start;
    gap: 30px;
}

.intro-image {
    flex: 0 0 300px;
}

.product-image {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.product-image:hover {
    transform: scale(1.02);
}

.intro-text {
    flex: 1;
}

.intro-section p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    text-align: justify;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .intro-content {
        flex-direction: column;
    }
    
    .intro-image {
        flex: 1;
        text-align: center;
    }
    
    .product-image {
        max-width: 300px;
        margin: 0 auto;
    }
}

/* 功效部分 */
.benefits-section {
    background: rgba(255, 255, 255, 0.6);
    padding: 40px 0;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    margin: 20px;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.benefit-item {
    background: rgba(248, 249, 250, 0.75);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 4px solid #667eea;
}

.benefit-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.benefit-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 auto 20px;
}

.benefit-item h3 {
    margin-bottom: 15px;
    color: #2c3e50;
    font-size: 1.3rem;
}

.benefit-item p {
    color: #666;
    line-height: 1.6;
}

/* 案例部分 */
.cases-section {
    background: rgba(255, 255, 255, 0.6);
    padding: 40px 0;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    margin: 20px;
}

.case-item {
    margin-bottom: 40px;
    padding: 20px;
    background: rgba(248, 249, 250, 0.75);
    border-radius: 10px;
    border-left: 4px solid #667eea;
}

.case-item h3 {
    margin-bottom: 15px;
    color: #2c3e50;
    font-size: 1.2rem;
}

.case-content p {
    margin-bottom: 10px;
    color: #555;
}

.case-content ul {
    margin-left: 20px;
    margin-top: 10px;
}

.case-content li {
    margin-bottom: 5px;
    color: #666;
}

/* 案例媒体展示 */
.case-media {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.case-media h4 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.media-item {
    text-align: center;
}

.case-image {
    width: 100%;
    height: 600px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.case-image:hover {
    transform: scale(1.02);
}

.case-video {
    width: 100%;
    height: 600px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.media-caption {
    margin-top: 15px;
    color: #666;
    font-size: 0.9rem;
    font-style: italic;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .media-grid {
        grid-template-columns: 1fr;
    }
    
    .case-image,
    .case-video {
        height: 250px;
    }
}

@media (max-width: 480px) {
    .case-image,
    .case-video {
        height: 200px;
    }
}

/* 公司信息模块 */
.company-section {
    background: rgba(255, 255, 255, 0.6);
    padding: 40px 0;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    margin: 20px;
}

.company-content {
    display: flex;
    align-items: center;
    gap: 40px;
    justify-content: center;
}

.company-info {
    flex: 1;
    text-align: center;
}

.company-info h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.company-info p {
    color: #555;
    font-size: 1.2rem;
}

.company-image {
    flex: 0 0 300px;
}

.company-img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.company-img:hover {
    transform: scale(1.02);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .company-content {
        flex-direction: column;
        text-align: center;
    }
    
    .company-image {
        flex: 1;
        margin-top: 20px;
    }
    
    .company-img {
        max-width: 300px;
        margin: 0 auto;
    }
}

/* 图片展示 */
.gallery-section {
    background: white;
    padding: 40px 0;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    margin: 20px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.gallery-grid img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    transition: transform 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.gallery-grid img:hover {
    transform: scale(1.05);
}

/* 底部样式 */
.footer {
    background: rgba(44, 62, 80, 0.9);
    color: white;
    text-align: center;
    padding: 30px 0;
    margin-top: 40px;
}

.footer p {
    opacity: 0.8;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header h1 {
        font-size: 2.5rem;
    }

    section h2 {
        font-size: 1.8rem;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .case-item {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 40px 20px;
    }

    .header h1 {
        font-size: 2rem;
    }

    .header p {
        font-size: 1rem;
    }

    section {
        margin-bottom: 40px;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .benefit-item {
        padding: 20px;
    }
}