/* ============================================
   售后服务页面样式表 - fuwu.css
   命名规范：BEM (Block Element Modifier)
   设计风格：与网站主色调保持一致（橙色渐变）
   ============================================ */

/* CSS变量 - 继承自主样式并扩展 */
:root {
    /* 主色调 - 橙色渐变 */
    --fuwu-primary: #F5A623;
    --fuwu-primary-dark: #E8941F;
    --fuwu-primary-light: #FFB84D;
    --fuwu-secondary: #FF8C42;

    /* 背景色 */
    --fuwu-bg-light: #fafafa;
    --fuwu-bg-white: #ffffff;
    --fuwu-bg-gradient: linear-gradient(135deg, #F5A623 0%, #FF8C42 50%, #E85D04 100%);

    /* 文字颜色 */
    --fuwu-text-dark: #333333;
    --fuwu-text-medium: #666666;
    --fuwu-text-light: #999999;
    --fuwu-text-white: #ffffff;

    /* 边框和阴影 */
    --fuwu-border-light: rgba(0, 0, 0, 0.08);
    --fuwu-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --fuwu-shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
    --fuwu-shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.12);
    --fuwu-shadow-hover: 0 12px 40px rgba(245, 166, 35, 0.2);

    /* 间距 */
    --fuwu-spacing-xs: 0.5rem;
    --fuwu-spacing-sm: 1rem;
    --fuwu-spacing-md: 1.5rem;
    --fuwu-spacing-lg: 2rem;
    --fuwu-spacing-xl: 3rem;
    --fuwu-spacing-xxl: 4rem;

    /* 过渡动画 */
    --fuwu-transition-fast: 0.2s ease;
    --fuwu-transition-normal: 0.3s ease;
    --fuwu-transition-slow: 0.5s ease;

    /* 圆角 */
    --fuwu-radius-sm: 8px;
    --fuwu-radius-md: 12px;
    --fuwu-radius-lg: 16px;
    --fuwu-radius-xl: 24px;
}

/* ============================================
   售后服务区块主容器
   ============================================ */
.fuwu {
    width: 100%;
    padding: 80px 40px;
    background: var(--fuwu-bg-light);
    position: relative;
    overflow: hidden;
}

/* 背景装饰元素 */
.fuwu::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(245, 166, 35, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.fuwu::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 140, 66, 0.04) 0%, transparent 70%);
    pointer-events: none;
}

/* 内容容器 */
.fuwu__container {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* ============================================
   区块头部
   ============================================ */
.fuwu__header {
    text-align: center;
    margin-bottom: 60px;
}

.fuwu__title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--fuwu-text-dark);
    margin-bottom: 16px;
    position: relative;
    display: inline-block;
}

/* 标题装饰线 */
.fuwu__title::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--fuwu-primary) 0%, var(--fuwu-secondary) 100%);
    border-radius: 2px;
}

/* 标题动画效果 - 初始状态 */
.fuwu__title {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fuwu__title.fuwu__title--visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   服务列表
   ============================================ */
.fuwu__list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

/* ============================================
   服务项卡片
   ============================================ */
.fuwu__item {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    padding: 32px;
    background: var(--fuwu-bg-white);
    border-radius: var(--fuwu-radius-lg);
    box-shadow: var(--fuwu-shadow-md);
    transition: transform var(--fuwu-transition-normal),
        box-shadow var(--fuwu-transition-normal);
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(40px);
}

/* 卡片入场动画 */
.fuwu__item.fuwu__item--visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease,
        box-shadow var(--fuwu-transition-normal);
}

/* 卡片悬停效果 */
.fuwu__item:hover {
    transform: translateY(-8px);
    box-shadow: var(--fuwu-shadow-hover);
}

/* 卡片左侧装饰条 */
.fuwu__item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--fuwu-primary) 0%, var(--fuwu-secondary) 100%);
    opacity: 0;
    transition: opacity var(--fuwu-transition-normal);
}

.fuwu__item:hover::before {
    opacity: 1;
}

/* 序号标记 */
.fuwu__item::after {
    content: attr(data-index);
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 4rem;
    font-weight: 700;
    color: rgba(245, 166, 35, 0.08);
    line-height: 1;
    font-family: 'Verdana', sans-serif;
    transition: color var(--fuwu-transition-normal);
}

.fuwu__item:hover::after {
    color: rgba(245, 166, 35, 0.15);
}

/* ============================================
   图标区域
   ============================================ */
.fuwu__icon {
    flex-shrink: 0;
    width: 108px;
    height: 108px;
    border-radius: var(--fuwu-radius-md);
    overflow: hidden;
    background: linear-gradient(135deg, rgba(245, 166, 35, 0.1) 0%, rgba(255, 140, 66, 0.1) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform var(--fuwu-transition-normal),
        background var(--fuwu-transition-normal);
}

.fuwu__item:hover .fuwu__icon {
    transform: scale(1.05);
    background: linear-gradient(135deg, rgba(245, 166, 35, 0.15) 0%, rgba(255, 140, 66, 0.15) 100%);
}

.fuwu__icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--fuwu-transition-slow);
}

.fuwu__item:hover .fuwu__icon img {
    transform: scale(1.1);
}

/* ============================================
   内容区域
   ============================================ */
.fuwu__content {
    flex: 1;
    min-width: 0;
}

.fuwu__item-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--fuwu-text-dark);
    margin-bottom: 20px;
    transition: color var(--fuwu-transition-fast);
    position: relative;
    display: inline-block;
}

.fuwu__item:hover .fuwu__item-title {
    color: var(--fuwu-primary);
}

/* 标题下划线动画 */
.fuwu__item-title::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--fuwu-primary) 0%, var(--fuwu-secondary) 100%);
    transition: width var(--fuwu-transition-normal);
}

.fuwu__item:hover .fuwu__item-title::after {
    width: 40px;
}

.fuwu__desc {
    font-size: 0.95rem;
    color: var(--fuwu-text-medium);
    line-height: 1.8;
    transition: color var(--fuwu-transition-fast);
}

.fuwu__item:hover .fuwu__desc {
    color: var(--fuwu-text-dark);
}

/* ============================================
   响应式设计 - 平板端 (768px - 1199px)
   ============================================ */
@media screen and (max-width: 1199px) {
    .fuwu {
        padding: 60px 30px;
    }

    .fuwu__header {
        margin-bottom: 48px;
    }

    .fuwu__title {
        font-size: 2rem;
    }

    .fuwu__list {
        gap: 24px;
    }

    .fuwu__item {
        padding: 28px;
        gap: 20px;
    }

    .fuwu__icon {
        width: 70px;
        height: 70px;
    }

    .fuwu__item-title {
        font-size: 1.15rem;
    }

    .fuwu__desc {
        font-size: 0.9rem;
    }

    .fuwu__item::after {
        font-size: 3rem;
        top: 16px;
        right: 16px;
    }
}

/* ============================================
   响应式设计 - 移动端 (< 768px)
   ============================================ */
@media screen and (max-width: 767px) {
    .fuwu {
        padding: 50px 20px;
    }

    .fuwu__header {
        margin-bottom: 40px;
    }

    .fuwu__title {
        font-size: 1.6rem;
    }

    .fuwu__title::after {
        width: 50px;
        height: 3px;
    }

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

    .fuwu__item {
        padding: 24px;
        gap: 16px;
        flex-direction: row;
        align-items: flex-start;
    }

    .fuwu__icon {
        width: 60px;
        height: 60px;
    }

    .fuwu__item-title {
        font-size: 1.1rem;
        margin-bottom: 10px;
    }

    .fuwu__desc {
        font-size: 0.85rem;
        line-height: 1.7;
    }

    .fuwu__item::after {
        font-size: 2.5rem;
        top: 12px;
        right: 12px;
    }
}

/* ============================================
   响应式设计 - 小屏移动端 (< 480px)
   ============================================ */
@media screen and (max-width: 479px) {
    .fuwu {
        padding: 40px 15px;
    }

    .fuwu__header {
        margin-bottom: 32px;
    }

    .fuwu__title {
        font-size: 1.4rem;
    }

    .fuwu__item {
        padding: 20px;
    }

    .fuwu__icon {
        width: 80px;
        height: 80px;
    }

    .fuwu__item-title {
        font-size: 1rem;
    }

    .fuwu__desc {
        font-size: 0.8rem;
        line-height: 1.6;
    }

    .fuwu__item::after {
        font-size: 2rem;
    }
}

/* ============================================
   动画关键帧
   ============================================ */

/* 淡入上移动画 */
@keyframes fuwuFadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 脉冲动画 - 用于图标 */
@keyframes fuwuPulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

/* 闪烁动画 - 用于装饰 */
@keyframes fuwuShimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

/* ============================================
   性能优化
   ============================================ */

/* 减少动画对性能的影响 */
@media (prefers-reduced-motion: reduce) {

    .fuwu__item,
    .fuwu__title,
    .fuwu__icon,
    .fuwu__item-title,
    .fuwu__desc {
        transition: none !important;
        animation: none !important;
    }

    .fuwu__item {
        opacity: 1;
        transform: none;
    }
}

/* 图片懒加载占位 */
.fuwu__icon img[data-src] {
    opacity: 0;
    transition: opacity 0.4s ease;
}

.fuwu__icon img.lazy-loaded {
    opacity: 1;
}