/* ========================================
   单页服务页面样式 - danye.html专用
   ======================================== */

/* Banner区域样式 */
.service-banner {
    height: 350px;
    width: 100%;
    background: linear-gradient(135deg, #1e3a8a 0%, #4169E1 50%, #5A7FE8 100%);
    position: relative;
    overflow: hidden;
    margin-top: 240px;
}

.service-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.3;
}

.banner-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    height: 100%;
    position: relative;
    z-index: 1;
}

.banner-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    gap: 60px;
}

.banner-text {
    flex: 1;
    color: #fff;
}

.banner-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.3;
}

.banner-title .highlight {
    color: #FFD700;
    position: relative;
}

.banner-subtitle {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 30px;
    line-height: 1.6;
}

.banner-features {
    display: flex;
    gap: 40px;
    margin-bottom: 30px;
}

.banner-feature-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.feature-num {
    font-size: 28px;
    font-weight: 700;
    color: #FFD700;
}

.feature-label {
    font-size: 14px;
    opacity: 0.85;
    margin-top: 5px;
}

.banner-cta {
    display: inline-block;
    background: #FFD700;
    color: #1e3a8a;
    padding: 14px 40px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255,215,0,0.3);
}

.banner-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255,215,0,0.4);
}

.banner-image {
    flex-shrink: 0;
    width: 400px;
    height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-image img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

/* 单页内容区域样式 */
.service-page {
    padding: 20px 10px 1px 10px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    min-height: calc(100vh - 300px);
}

.service-page-container {
    display: flex;
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
    margin-top: 10px;
}

/* 左侧业务分类 */
.service-sidebar {
    width: 320px;
    flex-shrink: 0;
}

.sidebar-title {
    background: linear-gradient(135deg, #4169E1 0%, #5A7FE8 100%);
    color: #fff;
    padding: 20px;
    border-radius: 12px 12px 0 0;
    font-size: 20px;
    font-weight: 700;
    text-align: center;
}

.sidebar-content {
    background: #fff;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    overflow: hidden;
}

.service-category {
    border-bottom: 1px solid #f0f0f0;
}

.service-category:last-child {
    border-bottom: none;
}

.category-header {
    display: flex;
    align-items: center;
    padding: 18px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #fff;
}

.category-header:hover,
.category-header.active {
    background: linear-gradient(135deg, #f8f9ff 0%, #eef1ff 100%);
}

.category-header.active {
    border-left: 0px solid #4169E1;
}

.category-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #4169E1 0%, #5A7FE8 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    color: #fff;
    font-size: 18px;
}

.category-title {
    flex: 1;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.category-arrow {
    color: #999;
    transition: transform 0.3s ease;
    font-size: 12px;
}

.category-header.active .category-arrow {
    transform: rotate(90deg);
    color: #4169E1;
}

.category-items {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: #fafbfc;
}

.category-items.show {
    max-height: 300px;
}

.category-item {
    padding: 14px 20px 14px 75px;
    font-size: 14px;
    color: #666;
    cursor: pointer;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.category-item:hover,
.category-item.active {
    background: #fff;
    color: #4169E1;
    border-left-color: #4169E1;
    padding-left: 78px;
}
.category-item a{
    font-size: 14px;
    color: #000000;
    text-decoration: none;
}


/* 右侧内容区域 */
.service-main {
    flex: 1;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    padding: 40px;
}

.service-main-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.service-main-title {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
}

.service-main-subtitle {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
}

.service-content {
    line-height: 1.8;
    color: #555;
}

.service-content h3 {
    font-size: 20px;
    color: #333;
    margin: 30px 0 15px;
    padding-left: 15px;
    border-left: 4px solid #4169E1;
}

.service-content p {
    margin-bottom: 15px;
    text-indent: 2em;
}

.service-content ul {
    margin: 15px 0;
    padding-left: 30px;
}

.service-content li {
    margin-bottom: 10px;
    position: relative;
}

.service-content li::before {
    content: '✓';
    position: absolute;
    left: -20px;
    color: #4169E1;
    font-weight: bold;
}

/* 服务特色卡片 */
.service-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.feature-card {
    background: linear-gradient(135deg, #f8f9ff 0%, #fff 100%);
    border-radius: 10px;
    padding: 30px 25px;
    border: 1px solid #e8eaff;
    transition: all 0.3s ease;
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(65,105,225,0.15);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #4169E1 0%, #5A7FE8 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    color: #fff;
    font-size: 28px;
}

.feature-title {
    font-size: 17px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
}

.feature-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.7;
}

/* CTA区域 */
.service-cta {
    background: linear-gradient(135deg, #4169E1 0%, #5A7FE8 100%);
    border-radius: 12px;
    padding: 30px;
    margin-top: 40px;
    text-align: center;
    color: #fff;
}

.service-cta h3 {
    font-size: 22px;
    margin-bottom: 10px;
    border: none;
    padding: 0;
    color: #fff;
}

.service-cta p {
    margin-bottom: 20px;
    opacity: 0.9;
    text-indent: 0;
}

.cta-button {
    display: inline-block;
    background: #FFD700;
    color: #333;
    padding: 14px 35px;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(255,215,0,0.4);
}

/* ========================================
   移动端适配
   ======================================== */
@media (max-width: 1024px) {
    .service-page-container {
        flex-direction: column;
    }
    
    .service-sidebar {
        width: 100%;
    }
    
    .service-features {
        grid-template-columns: 1fr;
    }
    
    .banner-content {
        gap: 30px;
    }
    
    .banner-image {
        width: 320px;
        height: 260px;
    }
}

@media (max-width: 768px) {
    .service-banner {
        height: auto;
        min-height: 300px;
        margin-top: 120px;
        padding: 40px 0;
    }
    
    .banner-content {
        flex-direction: column-reverse;
        text-align: center;
        gap: 30px;
    }
    
    .banner-title {
        font-size: 26px;
    }
    
    .banner-subtitle {
        font-size: 15px;
    }
    
    .banner-features {
        justify-content: center;
        gap: 25px;
    }
    
    .feature-num {
        font-size: 22px;
    }
    
    .banner-image {
        width: 90%;
        height: 200px;
        max-width: 350px;
    }
    
    .service-page {
        padding: 40px 0;
    }
    
    .service-page-container {
        padding: 0 20px;
    }
    
    .service-main {
        padding: 25px;
    }
    
    .service-main-title {
        font-size: 22px;
    }
    
    .category-header {
        padding: 15px;
    }
    
    .category-item {
        padding: 12px 15px 12px 70px;
    }
}
