/* ==========================================================================
   融合服务平台样式
   ========================================================================== */

/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

/* ==========================================================================
   Banner区域样式
   ========================================================================== */

.banner {
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, #3b82f6 0%, #3182ce 40%, #4299e1 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.banner-container {
    width: 100%;
    max-width: 1200px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.banner-text {
    width: 480px;
    height: 100px;
    margin-left: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    font-weight: bold;
    color: white;
    background-color: transparent;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.banner-image {
    width: 500px;
    height: 300px;
    margin-right: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.banner-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.banner-image:hover img {
    transform: scale(1.05);
}

/* Banner背景装饰 */
.banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="0.5" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
    z-index: 1;
}

/* ==========================================================================
   服务入口区域样式
   ========================================================================== */

.services-section {
    width: 100%;
    padding: 60px 20px;
    background-color: #f8f9fa;
}

.services-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

/* 服务项样式 */
.service-item {
    display: flex;
    align-items: center;
    background: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    position: relative;
    overflow: hidden;
}

.service-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.service-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.service-item:hover::before {
    transform: scaleX(1);
}

/* 服务图标样式 */
.service-icon {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    margin-right: 25px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

/* 特定修改就业创业服务图标 */
.service-icon.old_pointer {
    width: 80px;
    height: 80px;
}

.service-item:hover .service-icon {
    transform: scale(1.1);
}

/* 服务内容样式 */
.service-content {
    flex: 1;
}

.service-content h3 {
    font-size: 24px;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 8px;
    transition: color 0.3s ease;
}

.service-content p {
    font-size: 16px;
    color: #6c757d;
    margin: 0;
    line-height: 1.5;
}

.service-item:hover .service-content h3 {
    color: #667eea;
}

/* 服务项颜色变化 */
.service-item:nth-child(2)::before { background: linear-gradient(90deg, #3498db 0%, #2980b9 100%); }
.service-item:nth-child(5)::before { background: linear-gradient(90deg, #e74c3c 0%, #c0392b 100%); }
.service-item:nth-child(6)::before { background: linear-gradient(90deg, #eb600f 0%, #f3560d 100%); }
.service-item:nth-child(3)::before { background: linear-gradient(90deg, #f39c12 0%, #e67e22 100%); }
.service-item:nth-child(1)::before { background: linear-gradient(90deg, #e97648 0%, #d46f1b 100%); }
.service-item:nth-child(4)::before { background: linear-gradient(90deg, #27ae60 0%, #229954 100%); }
.service-item:nth-child(7)::before { background: linear-gradient(90deg, #e747b2 0%, #c2197b 100%); }

/* ==========================================================================
   响应式设计
   ========================================================================== */

/* 大屏幕适配 */
@media (min-width: 1200px) {
    .banner-text {
        font-size: 52px;
        width: 480px;
    }
    
    .banner-image {
        width: 550px;
        height: 320px;
    }
    
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* 平板适配 */
@media (max-width: 992px) {
    .banner {
        height: 350px;
    }
    
    .banner-container {
        flex-direction: column;
        text-align: center;
        padding: 0 30px;
    }
    
    .banner-text {
        width: 100%;
        height: auto;
        margin: 0 0 30px 0;
        font-size: 42px;
    }
    
    .banner-image {
        width: 400px;
        height: 250px;
        margin: 0;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .service-item {
        padding: 25px;
    }
    
    .service-icon {
        width: 70px;
        height: 70px;
        margin-right: 20px;
    }
    
    .service-content h3 {
        font-size: 22px;
    }
    
    .service-content p {
        font-size: 15px;
    }
}

/* 手机横屏适配 */
@media (max-width: 768px) {
    .banner {
        height: 300px;
    }
    
    .banner-text {
        font-size: 36px;
    }
    
    .banner-image {
        width: 350px;
        height: 220px;
    }
    
    .services-section {
        padding: 40px 15px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .service-item {
        padding: 20px;
        flex-direction: column;
        text-align: center;
    }
    
    .service-icon {
        width: 80px;
        height: 80px;
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .service-content h3 {
        font-size: 20px;
        margin-bottom: 6px;
    }
    
    .service-content p {
        font-size: 14px;
    }
}

/* 小屏手机适配 */
@media (max-width: 480px) {
    .banner {
        height: 250px;
    }
    
    .banner-text {
        font-size: 28px;
        height: 60px;
    }
    
    .banner-image {
        width: 300px;
        height: 180px;
        border-radius: 8px;
    }
    
    .services-section {
        padding: 30px 10px;
    }
    
    .service-item {
        padding: 15px;
        border-radius: 12px;
    }
    
    .service-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 12px;
    }
    
    .service-content h3 {
        font-size: 18px;
    }
    
    .service-content p {
        font-size: 13px;
    }
}

/* 超小屏幕适配 */
@media (max-width: 360px) {
    .banner-text {
        font-size: 24px;
    }
    
    .banner-image {
        width: 280px;
        height: 160px;
    }
    
    .service-item {
        padding: 12px;
    }
    
    .service-icon {
        width: 50px;
        height: 50px;
    }
    
    .service-content h3 {
        font-size: 16px;
    }
    
    .service-content p {
        font-size: 12px;
    }
}

/* 触摸设备优化 */
@media (hover: none) and (pointer: coarse) {
    .service-item {
        min-height: 44px;
        padding: 20px;
    }
    
    .service-item:active {
        transform: scale(0.98);
        opacity: 0.9;
    }
}

/* 高分辨率屏幕优化 */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .banner-image,
    .service-icon {
        border: 0.5px solid rgba(255, 255, 255, 0.1);
    }
}

/* 减少动画效果（针对有晕动症的用户） */
@media (prefers-reduced-motion: reduce) {
    .banner-image img,
    .service-icon,
    .service-item,
    .service-item::before {
        transition: none;
    }
}

/* 暗色模式支持 */
@media (prefers-color-scheme: dark) {
    body {
        background-color: #1a1a1a;
        color: #ffffff;
    }
    
    .services-section {
        background-color: #2d3748;
    }
    
    .service-item {
        background: #4a5568;
        color: white;
    }
    
    .service-content h3 {
        color: white;
    }
    
    .service-content p {
        color: #cbd5e0;
    }
}

/* 打印样式 */
@media print {
    .banner {
        background: none;
        height: auto;
    }
    
    .banner-container {
        flex-direction: column;
    }
    
    .service-item {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }
}