/* 主营产品页面样式 - 重新设计 */

/* 服务板块区域 */
.services-section {
    padding: 80px 40px;
    background: linear-gradient(180deg, #f8f9fa 0%, #fff 30%, #f0f9ff 100%);
}

.services-wrapper {
    display: flex;
    flex-direction: column;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
}

/* 第一行：法律咨询 + 律师联盟 */
.services-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

/* 服务块通用样式 */
.service-block {
    background: #fff;
    border-radius: 24px;
    padding: 50px;
    box-shadow: 0 8px 32px rgba(24, 144, 255, 0.08);
    border: 1px solid rgba(24, 144, 255, 0.06);
    transition: all 0.4s ease;
}

.service-block:hover {
    box-shadow: 0 16px 48px rgba(24, 144, 255, 0.12);
    transform: translateY(-4px);
}

.service-header {
    text-align: center;
    margin-bottom: 50px;
}

.service-header h3 {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 12px;
}

.service-subtitle {
    font-size: 16px;
    color: #666;
}

.service-subtitle .highlight {
    color: #1890ff;
    font-weight: 700;
    font-size: 24px;
}

.service-subtitle.highlight {
    color: #1890ff;
    font-weight: 600;
    font-size: 18px;
}

/* 左侧：企业常年法律顾问 - 六边形布局 */
.legal-advisor .service-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

/* 中心核心 */
.center-hub {
    position: relative;
    width: 160px;
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hub-core {
    position: relative;
    z-index: 3;
    width: 140px;
    height: 140px;
    background: linear-gradient(135deg, #1890ff 0%, #40a9ff 100%);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 600;
    font-size: 18px;
    box-shadow: 0 8px 32px rgba(24, 144, 255, 0.35);
}

.hub-core span {
    line-height: 1.5;
}

.hub-ring {
    position: absolute;
    width: 180px;
    height: 180px;
    border: 2px solid rgba(24, 144, 255, 0.15);
    border-radius: 50%;
    animation: rotate 25s linear infinite;
}

.hub-ring::before {
    content: '';
    position: absolute;
    top: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 10px;
    height: 10px;
    background: #1890ff;
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(24, 144, 255, 0.5);
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* 服务项网格布局 */
.service-items-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    width: 100%;
}

.service-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 24px 16px;
    background: linear-gradient(135deg, #fafafa 0%, #fff 100%);
    border-radius: 16px;
    border: 1px solid rgba(24, 144, 255, 0.08);
    cursor: pointer;
    transition: all 0.3s ease;
}

.service-item:hover {
    background: linear-gradient(135deg, #e6f7ff 0%, #f0f9ff 100%);
    border-color: rgba(24, 144, 255, 0.2);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(24, 144, 255, 0.15);
}

.item-icon {
    width: 52px;
    height: 52px;
    background: #fff;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.service-item:hover .item-icon {
    background: linear-gradient(135deg, #1890ff 0%, #40a9ff 100%);
    box-shadow: 0 6px 16px rgba(24, 144, 255, 0.3);
}

.item-icon svg {
    width: 24px;
    height: 24px;
    color: #1890ff;
    transition: color 0.3s ease;
}

.service-item:hover .item-icon svg {
    color: #fff;
}

.service-item span {
    font-size: 15px;
    color: #333;
    font-weight: 500;
}

/* 右侧：找律师打官司 */
.lawyer-service .service-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.lawyer-features {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 28px;
    background: linear-gradient(135deg, #f8fafc 0%, #fff 100%);
    border-radius: 16px;
    border: 1px solid rgba(24, 144, 255, 0.08);
    transition: all 0.3s ease;
}

.feature-item:hover {
    background: linear-gradient(135deg, #e6f7ff 0%, #f0f9ff 100%);
    border-color: rgba(24, 144, 255, 0.15);
    transform: translateX(6px);
}

.feature-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #1890ff 0%, #40a9ff 100%);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(24, 144, 255, 0.25);
}

.feature-icon svg {
    width: 26px;
    height: 26px;
    color: #fff;
}

.feature-content {
    flex: 1;
}

.feature-content span {
    font-size: 16px;
    color: #333;
    line-height: 1.6;
    font-weight: 500;
}

.lawyer-desc {
    padding: 28px;
    background: linear-gradient(135deg, #fff9f0 0%, #fff 100%);
    border-radius: 16px;
    border: 1px solid rgba(255, 179, 71, 0.15);
    position: relative;
}

.lawyer-desc::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #ffb347 0%, #ffcc33 100%);
    border-radius: 2px 0 0 2px;
}

.lawyer-desc p {
    font-size: 15px;
    color: #666;
    line-height: 1.8;
}

/* 第二行：需求分布 */
.demand-section {
    background: #fff;
    border-radius: 24px;
    padding: 50px;
    box-shadow: 0 8px 32px rgba(24, 144, 255, 0.08);
    border: 1px solid rgba(24, 144, 255, 0.06);
}

.demand-header {
    text-align: center;
    margin-bottom: 40px;
}

.demand-header h3 {
    font-size: 22px;
    font-weight: 600;
    color: #333;
}

.distribution-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 80px;
}

/* 圆形图表 */
.distribution-chart {
    position: relative;
    width: 200px;
    height: 200px;
}

.chart-circle {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: conic-gradient(
        #1890ff 0deg 342deg,
        #ff6b6b 342deg 360deg
    );
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.chart-inner {
    width: 140px;
    height: 140px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.chart-inner span:first-child {
    font-size: 14px;
    color: #999;
    margin-bottom: 4px;
}

.chart-inner span:last-child {
    font-size: 28px;
    font-weight: 700;
    color: #1890ff;
}

/* 图例 */
.distribution-legend {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 16px;
}

.legend-dot {
    width: 16px;
    height: 16px;
    border-radius: 4px;
}

.legend-dot.blue {
    background: linear-gradient(135deg, #1890ff 0%, #40a9ff 100%);
}

.legend-dot.red {
    background: linear-gradient(135deg, #ff6b6b 0%, #ff8787 100%);
}

.legend-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.legend-label {
    font-size: 15px;
    color: #666;
}

.legend-value {
    font-size: 24px;
    font-weight: 700;
    color: #333;
}

.legend-item:first-child .legend-value {
    color: #1890ff;
}

.legend-item:last-child .legend-value {
    color: #ff6b6b;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .services-row {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .distribution-wrapper {
        flex-direction: column;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .services-section {
        padding: 50px 20px;
    }

    .service-block {
        padding: 32px 24px;
    }

    .service-header h3 {
        font-size: 22px;
    }

    .service-items-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .service-item {
        padding: 20px 12px;
    }

    .item-icon {
        width: 44px;
        height: 44px;
    }

    .service-item span {
        font-size: 13px;
    }

    .feature-item {
        padding: 20px;
    }

    .feature-icon {
        width: 48px;
        height: 48px;
    }

    .feature-content span {
        font-size: 14px;
    }

    .demand-section {
        padding: 32px 24px;
    }

    .distribution-chart {
        width: 160px;
        height: 160px;
    }

    .chart-inner {
        width: 110px;
        height: 110px;
    }

    .chart-inner span:last-child {
        font-size: 22px;
    }
}

@media (max-width: 480px) {
    .service-items-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hub-core {
        width: 120px;
        height: 120px;
        font-size: 16px;
    }

    .hub-ring {
        width: 150px;
        height: 150px;
    }
}

/* 基础服务内容 */
.basic-services-section {
    padding: 100px 40px;
    background: linear-gradient(180deg, #f0f9ff 0%, #fff 50%, #f8f9fa 100%);
}

.basic-services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.basic-service-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: all 0.4s ease;
    position: relative;
}

.basic-service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 48px rgba(24, 144, 255, 0.12);
}

.basic-service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #1890ff, #40a9ff);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.basic-service-card:hover::before {
    transform: scaleX(1);
}

/* 卡片头部 */
.card-header {
    padding: 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.card-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
}

.card-header.labor {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.card-header.contract {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.card-header.collection {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.card-header.consultation {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.card-header.litigation {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.card-header.matching {
    background: linear-gradient(135deg, #30cfd0 0%, #330867 100%);
}

.card-icon {
    width: 64px;
    height: 64px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.card-icon svg {
    width: 32px;
    height: 32px;
    color: #fff;
}

.card-header h3 {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    margin: 0;
}

/* 卡片内容 */
.card-body {
    padding: 28px;
}

.service-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px dashed rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

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

.service-list li:hover {
    padding-left: 8px;
}

.check-icon {
    width: 22px;
    height: 22px;
    background: linear-gradient(135deg, #1890ff 0%, #40a9ff 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 12px;
    font-weight: bold;
    flex-shrink: 0;
    margin-top: 2px;
}

.service-list li span:last-child {
    font-size: 15px;
    color: #555;
    line-height: 1.6;
}

.service-list li:hover span:last-child {
    color: #1890ff;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .basic-services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
}

@media (max-width: 768px) {
    .basic-services-section {
        padding: 60px 20px;
    }

    .basic-services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .card-header {
        padding: 24px;
    }

    .card-icon {
        width: 56px;
        height: 56px;
    }

    .card-icon svg {
        width: 28px;
        height: 28px;
    }

    .card-header h3 {
        font-size: 20px;
    }

    .card-body {
        padding: 20px;
    }

    .service-list li {
        padding: 12px 0;
    }

    .service-list li span:last-child {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .card-header {
        padding: 20px;
    }

    .card-icon {
        width: 48px;
        height: 48px;
    }

    .card-header h3 {
        font-size: 18px;
    }
}
