/* 作者：json */

/* CSS变量定义 */
:root {
    --primary-color: #007bff;
    --primary-color-rgb: 0, 123, 255;
    --secondary-color: #6c757d;
    --accent-color: #0d47a1; /* 强调蓝色 - 与首页保持一致 */
    --text-dark: #333;
    --text-light: #666;
    --light-color: #fff;
    --light-blue: #f8f9fa;
    --border-color: #dee2e6;
}

/* 头部样式 - 与其他页面相同 */
.header {
    background-color: var(--light-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo a {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 1px;
}

/* 导航菜单样式 - 与其他页面相同 */
.main-nav ul {
    display: flex;
}

.main-nav li {
    margin-left: 1.5rem;
}

.main-nav a {
    color: var(--text-dark);
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

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

.main-nav a.active {
    color: var(--primary-color);
}

/* 移动端菜单按钮 - 与其他页面相同 */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    margin-bottom: 5px;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* 横幅样式 */
.banner-container {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    margin-bottom: 30px;
    margin-top: 2rem;
}

.banner {
    position: relative;
    width: 100%;
    height: 100%;
}

.banner-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/轮播3.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    filter: brightness(0.8);
}

.banner-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: var(--light-color);
    z-index: 1;
    width: 80%;
    max-width: 1000px;
    padding: 20px;
}

.banner-content h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    color: var(--light-color);
}

.banner-content p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    opacity: 0.9;
}

/* 服务内容区域样式 */
.services-content {
    padding: 3rem 2rem;
    background-color: var(--light-color);
    border-radius: 8px;
    margin-top: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.services-content h2 {
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 15px;
}

.services-content h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--primary-color);
}

/* 平台特色部分 */
.features-description, 
.applications-description, 
.service-center-description {
    text-align: center;
    margin-bottom: 2rem;
}

.features-description p, 
.applications-description p, 
.service-center-description p {
    font-size: 1.1rem;
    color: var(--text-dark);
    max-width: 800px;
    margin: 0 auto;
}

.feature-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 2rem;
}

.feature-card {
    background-color: var(--light-blue);
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

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

.feature-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background-color: rgba(var(--primary-color-rgb), 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon i {
    font-size: 30px;
    color: var(--primary-color);
}

.feature-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--text-dark);
    margin-bottom: 0;
    font-size: 0.95rem;
}

/* 丰富应用部分 */
.application-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 2rem;
}

.application-category {
    background-color: var(--light-blue);
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.application-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.application-category h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    text-align: center;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(var(--primary-color-rgb), 0.2);
}

.application-list {
    padding-left: 20px;
    margin-bottom: 0;
}

.application-list li {
    margin-bottom: 10px;
    color: var(--text-dark);
    position: relative;
}

.application-list li:last-child {
    margin-bottom: 0;
}

.application-list li::before {
    content: '✓';
    color: var(--primary-color);
    position: absolute;
    left: -20px;
}

/* 服务中心部分 */
.service-items {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-top: 2rem;
}

.service-item {
    display: flex;
    background-color: var(--light-blue);
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-item:hover {
    transform: translateX(5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.service-icon {
    flex: 0 0 80px;
    height: 80px;
    background-color: rgba(var(--primary-color-rgb), 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
}

.service-icon i {
    font-size: 35px;
    color: var(--primary-color);
}

.service-details {
    flex: 1;
}

.service-details h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.service-details p {
    color: var(--text-dark);
    margin: 0;
    font-size: 0.95rem;
}

/* 页脚样式 - 与其他页面相同 */
.footer {
    background-color: var(--accent-color);
    color: var(--light-color);
    padding: 2rem 0;
}

.footer-content {
    text-align: center;
}

.copyright p {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .banner-container {
        height: 350px;
    }
    
    .banner-content h1 {
        font-size: 2.5rem;
    }
    
    .banner-content p {
        font-size: 1.1rem;
    }
    
    .feature-cards,
    .application-categories {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
        padding: 1rem 0;
    }

    .logo {
        margin-bottom: 1rem;
    }

    .main-nav {
        width: 100%;
        display: none;
    }

    .main-nav.active {
        display: block;
    }

    .main-nav ul {
        flex-direction: column;
        text-align: center;
    }

    .main-nav li {
        margin: 0;
        padding: 0.8rem 0;
        border-bottom: 1px solid var(--border-color);
    }

    .mobile-menu-toggle {
        display: flex;
        position: absolute;
        top: 1.5rem;
        right: 1.5rem;
    }

    .banner-container {
        height: 300px;
    }
    
    .banner-content h1 {
        font-size: 2rem;
    }
    
    .banner-content p {
        font-size: 1rem;
    }
    
    .services-content {
        padding: 2rem 1.5rem;
    }
    
    .services-content h2 {
        font-size: 1.8rem;
    }
    
    .feature-cards,
    .application-categories {
        grid-template-columns: 1fr;
    }
    
    .service-item {
        flex-direction: column;
    }
    
    .service-icon {
        margin: 0 auto 20px;
    }
    
    .service-details {
        text-align: center;
    }
}

@media (max-width: 576px) {
    .banner-container {
        height: 250px;
    }
    
    .banner-content {
        width: 90%;
        padding: 15px;
    }
    
    .banner-content h1 {
        font-size: 1.8rem;
        margin-bottom: 10px;
    }
    
    .banner-content p {
        font-size: 0.9rem;
    }
    
    .services-content {
        padding: 1.5rem 1rem;
    }
    
    .services-content h2 {
        font-size: 1.5rem;
    }
    
    .feature-card,
    .application-category,
    .service-item {
        padding: 1.5rem;
    }
    
    .feature-icon,
    .service-icon {
        width: 60px;
        height: 60px;
    }
    
    .feature-icon i,
    .service-icon i {
        font-size: 25px;
    }
}