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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
    overflow-x: hidden; /* 防止侧边栏出现水平滚动条 */
}

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

/* 头部样式 */
.header {
    background-color: #fff;
    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: 20px 0;
}

.logo h1 {
    font-size: 1.5rem;
    color: #007bff;
    font-weight: 700;
    text-align: center;
    flex-grow: 1;
}

/* 手机端返回按钮 */
.mobile-back {
    display: none;
}

.back-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

/* 手机端导航图标 */
.mobile-nav-toggle {
    display: none;
}

.nav-toggle-btn {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 25px; /* 稍微变小 */
    height: 18px; /* 稍微变小 */
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1002; /* 确保在侧边栏之上 */
}

.nav-toggle-btn span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: #007bff;
    border-radius: 2px;
    transition: all 0.3s;
}

/* 桌面端导航 */
.nav.desktop-nav ul {
    display: flex;
    list-style: none;
}

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

.nav.desktop-nav ul li a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s;
    padding: 5px 10px;
    border-radius: 4px;
}

.nav.desktop-nav ul li a:hover,
.nav.desktop-nav ul li a.active {
    color: #007bff;
    background-color: #f1f4ff;
}

/* 手机端侧边栏导航 */
.mobile-sidebar {
    position: fixed;
    top: 0;
    left: -300px;
    width: 280px;
    height: 100%;
    background-color: #fff;
    box-shadow: 0 0 15px rgba(0,0,0,0.1);
    z-index: 1001;
    transition: left 0.3s ease;
    overflow-y: auto;
}

.mobile-sidebar.active {
    left: 0;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.sidebar-header h2 {
    margin: 0;
    color: #007bff;
    font-size: 1.3rem;
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: #999;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-btn:hover {
    color: #333;
}

.sidebar-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-nav ul li a {
    display: block;
    padding: 15px 20px;
    text-decoration: none;
    color: #333;
    border-bottom: 1px solid #eee;
    transition: all 0.3s;
}

.sidebar-nav ul li a:hover,
.sidebar-nav ul li a.active {
    background-color: #f1f4ff;
    color: #007bff;
}

/* 侧边栏遮罩层 */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    text-align: center;
}

.btn-primary {
    background-color: #007bff;
    color: white;
}

.btn-primary:hover {
    background-color: #0069d9;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,123,255,0.3);
}

.btn-secondary {
    background-color: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background-color: #5a6268;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(108,117,125,0.3);
}

.btn-tertiary {
    background-color: #28a745;
    color: white;
}

.btn-tertiary:hover {
    background-color: #218838;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40,167,69,0.3);
}

.btn-link {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
}

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

/* 首页英雄区域 */
.hero-section {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    padding: 80px 0;
    text-align: center;
}

.hero-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

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

/* 服务区域 */
.services-section {
    padding: 80px 0;
    background-color: #fff;
}

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

.section-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background-color: #007bff;
    margin: 15px auto;
}

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

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

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

.service-icon img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #333;
}

.service-card p {
    margin-bottom: 20px;
    color: #666;
}

/* 关于我们区域 */
.about-section {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-image img {
    width: 100%;
    max-width: 500px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.about-text h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #333;
}

.about-text p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: #666;
}

/* 业务平台区域 */
.platforms-section {
    padding: 80px 0;
    background-color: #fff;
}

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

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

.platform-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.platform-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #333;
}

.platform-card p {
    margin-bottom: 20px;
    color: #666;
}

/* 页面头部 */
.page-header {
    background: linear-gradient(135deg, #6c757d, #495057);
    color: white;
    padding: 60px 0;
    text-align: center;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.page-header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* 详细服务区域 */
.services-detailed {
    padding: 80px 0;
    background-color: #fff;
}

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

.service-detailed-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-bottom: 30px;
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.service-image {
    height: 200px;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-content {
    padding: 25px;
}

.service-content h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #333;
}

.service-content p {
    margin-bottom: 15px;
    color: #666;
    line-height: 1.6;
}

.service-content ul {
    list-style: none;
    margin-bottom: 20px;
}

.service-content ul li {
    padding: 5px 0;
    position: relative;
    padding-left: 20px;
}

.service-content ul li::before {
    content: '✓';
    color: #28a745;
    position: absolute;
    left: 0;
}

/* 特点区域 */
.features-section {
    padding: 80px 0;
    background-color: #f8f9fa;
}

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

.feature-card {
    background: white;
    border-radius: 8px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

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

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #333;
}

.feature-card p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* 关于我们页面样式 */
.card {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.card-body {
    padding: 1.5rem;
}

.card-title {
    margin-bottom: 1rem;
    font-size: 1.25rem;
    font-weight: 600;
    color: #333;
}

.card-text {
    color: #666;
    line-height: 1.6;
}

.list-group-item {
    border: none;
    padding: 0.5rem 0;
    background-color: transparent;
    color: #666;
}

/* 页脚样式 */
.footer {
    background-color: #343a40;
    color: white;
    padding: 50px 0 20px;
}

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

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

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

.footer-section p {
    margin-bottom: 10px;
    opacity: 0.8;
    text-align: left;
}

/* 友情链接样式 */
.footer-links {
    margin: 30px 0;
    padding: 20px 0;
    border-top: 1px solid rgba(255,255,255,0.1);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-links h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 10px;
}

.footer-links h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: #007bff;
}

.footer-links ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-links ul li {
    margin-right: 10px;
}

.footer-links ul li a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links ul li a:hover {
    color: #007bff;
    text-decoration: underline;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    opacity: 0.8;
}

.footer-bottom p {
    margin: 5px 0;
}

.footer-bottom a {
    color: #ccc;
    text-decoration: none;
}

.footer-bottom a:hover {
    text-decoration: underline;
}

/* 响应式设计 */
@media (max-width: 991px) {
    .header-content {
        flex-direction: row;
        align-items: center;
    }
    
    .mobile-nav-toggle {
        display: block;
    }
    
    .mobile-back {
        display: block;
    }
    
    .desktop-nav {
        display: none;
    }
    
    .logo h1 {
        text-align: center;
        flex-grow: 1;
        margin: 0 10px;
        font-size: 1.3rem;
    }
    
    .nav.desktop-nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .nav.desktop-nav ul li {
        margin: 5px 10px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .about-content {
        flex-direction: column;
    }
    
    .service-image {
        height: 180px;
    }
    
    .service-content {
        padding: 20px;
    }
    
    .feature-card {
        padding: 20px;
    }
    
    .footer-links ul {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .service-image {
        height: 150px;
    }
    
    .service-content {
        padding: 15px;
    }
    
    .feature-card {
        padding: 15px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .footer-links ul {
        flex-direction: column;
        gap: 10px;
    }
    
    .footer-links ul li {
        margin-right: 0;
    }
    
    /* 手机端时公司名称字体变小 */
    .logo h1 {
        font-size: 1.2rem;
    }
    
    .nav-toggle-btn {
        width: 22px;
        height: 16px;
    }
}

@media (max-width: 576px) {
    .logo h1 {
        font-size: 1rem;
    }
    
    .header-content {
        padding: 10px 0;
    }
    
    .nav.desktop-nav ul li {
        margin: 3px 5px;
    }
    
    .nav.desktop-nav ul li a {
        padding: 3px 8px;
        font-size: 0.9rem;
    }
    
    .nav-toggle-btn {
        width: 20px;
        height: 15px;
    }
    
    .nav-toggle-btn span {
        height: 2px;
    }
}