/* ========================================================================
   ITDR 网关 - 产品优势模块样式
   高端大气国际化设计 | 科技感 | 细节度优秀
   ======================================================================== */

/* ====================== 模块容器 ====================== */
.product-advantages-section {
    position: relative;
    padding: 120px 0;
    background: linear-gradient(180deg, #0a0a0a 0%, #010101 100%);
    overflow: hidden;
}

/* 视差背景 */
.advantages-parallax-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    background-image: url('../images/index/linebg.svg');
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    opacity: 0.08;
}

/* 装饰性渐变光晕 */
.advantages-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(54, 201, 88, 0.08) 0%, transparent 70%);
    pointer-events: none;
    z-index: 1;
}

/* ====================== 标题区域 ====================== */
.advantages-header {
    position: relative;
    z-index: 2;
    margin-bottom: 80px;
}

.advantages-header .section-caption-fancy {
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: 0.2em !important;
    text-transform: uppercase !important;
    padding: 6px 14px 6px 18px !important;
    color: rgba(54, 201, 88, 0.8) !important;
    background: linear-gradient(135deg, rgba(54, 201, 88, 0.1) 0%, rgba(54, 201, 88, 0.05) 100%) !important;
    border-left: 3px solid rgba(54, 201, 88, 0.7) !important;
    border-radius: 0 3px 3px 0 !important;
    box-shadow:
        0 2px 12px rgba(54, 201, 88, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    margin-bottom: 20px;
}

.advantages-header .section-caption-fancy:hover {
    background: linear-gradient(135deg, rgba(54, 201, 88, 0.15) 0%, rgba(54, 201, 88, 0.08) 100%) !important;
    border-left-color: rgba(54, 201, 88, 1) !important;
    transform: translateX(4px) !important;
    box-shadow:
        0 4px 20px rgba(54, 201, 88, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
}

.advantages-header .section-title {
    font-size: 48px;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 24px;
    background: linear-gradient(135deg, #ffffff 0%, rgba(255, 255, 255, 0.8) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.advantages-header .section-descr {
    font-size: 18px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.6);
    max-width: 900px;
}

/* ====================== 卡片网格 ====================== */
.advantages-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

/* ====================== 单个卡片 ====================== */
.advantage-card {
    position: relative;
    background: linear-gradient(135deg,
        rgba(23, 23, 23, 0.6) 0%,
        rgba(15, 15, 15, 0.8) 100%);
    border: 1px solid rgba(54, 201, 88, 0.1);
    border-radius: 2px;
    padding: 48px 36px;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(20px);
    cursor: pointer;
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* 卡片装饰性背景渐变 */
.advantage-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(54, 201, 88, 0.03) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    z-index: 0;
}

/* 顶部装饰线 */
.advantage-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #36c958 0%, transparent 100%);
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

/* Hover 效果 */
.advantage-card:hover {
    transform: translateY(-12px);
    border-color: rgba(54, 201, 88, 0.3);
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.5),
        0 0 80px rgba(54, 201, 88, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.advantage-card:hover::before {
    opacity: 1;
}

.advantage-card:hover::after {
    width: 100%;
}

/* ====================== 图标区域 ====================== */
.advantage-icon-wrapper {
    position: relative;
    z-index: 2;
    width: 72px;
    height: 72px;
    margin-bottom: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 2px;
    background: linear-gradient(135deg,
        rgba(54, 201, 88, 0.12) 0%,
        rgba(54, 201, 88, 0.05) 100%);
    border: 1px solid rgba(54, 201, 88, 0.2);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

/* 图标背景光晕 */
.advantage-icon-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(54, 201, 88, 0.2) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.advantage-card:hover .advantage-icon-bg {
    opacity: 1;
}

/* Lucide 图标样式 */
.advantage-icon {
    position: relative;
    z-index: 1;
    width: 36px !important;
    height: 36px !important;
    stroke: #36c958;
    stroke-width: 1.5;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.advantage-card:hover .advantage-icon {
    stroke: #36c958;
    filter: drop-shadow(0 0 12px rgba(54, 201, 88, 0.6));
    transform: scale(1.1) rotate(5deg);
}

.advantage-card:hover .advantage-icon-wrapper {
    background: linear-gradient(135deg,
        rgba(54, 201, 88, 0.2) 0%,
        rgba(54, 201, 88, 0.1) 100%);
    border-color: rgba(54, 201, 88, 0.4);
    box-shadow:
        0 4px 20px rgba(54, 201, 88, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* ====================== 内容区域 ====================== */
.advantage-content {
    position: relative;
    z-index: 2;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Emoji 装饰 */
.advantage-emoji {
    font-size: 32px;
    margin-bottom: 16px;
    display: inline-block;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.advantage-card:hover .advantage-emoji {
    transform: scale(1.15);
}

/* 主标题 */
.advantage-title {
    font-size: 22px;
    font-weight: 600;
    line-height: 1.4;
    color: #ffffff;
    margin-bottom: 12px;
    transition: color 0.3s ease;
}

.advantage-card:hover .advantage-title {
    color: #36c958;
}

/* 副标题 */
.advantage-subtitle {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* 功能列表 */
.advantage-features {
    list-style: none;
    padding: 0;
    margin: 0 0 24px 0;
    flex: 1;
}

.advantage-features li {
    position: relative;
    font-size: 15px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.7);
    padding-left: 24px;
    margin-bottom: 12px;
    transition: all 0.3s ease;
}

.advantage-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 6px;
    height: 6px;
    background: linear-gradient(135deg, #36c958 0%, #198754 100%);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.advantage-card:hover .advantage-features li {
    color: rgba(255, 255, 255, 0.85);
    transform: translateX(4px);
}

.advantage-card:hover .advantage-features li::before {
    transform: scale(1.3);
    box-shadow: 0 0 8px rgba(54, 201, 88, 0.6);
}

/* 底部引语 */
.advantage-quote {
    position: relative;
    font-size: 14px;
    font-style: italic;
    line-height: 1.6;
    color: rgba(54, 201, 88, 0.8);
    padding: 16px 20px;
    margin-top: auto;
    background: rgba(54, 201, 88, 0.05);
    border-left: 3px solid rgba(54, 201, 88, 0.5);
    border-radius: 0 2px 2px 0;
    transition: all 0.4s ease;
}

.advantage-card:hover .advantage-quote {
    background: rgba(54, 201, 88, 0.08);
    border-left-color: #36c958;
    box-shadow: 0 2px 12px rgba(54, 201, 88, 0.15);
}

/* ====================== 响应式设计 ====================== */

/* 平板 (768px - 1199px) */
@media (max-width: 1199px) {
    .advantages-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 28px;
    }

    .advantages-header .section-title {
        font-size: 40px;
    }

    .advantage-card {
        padding: 40px 32px;
    }
}

/* 移动端 (≤767px) */
@media (max-width: 767px) {
    .product-advantages-section {
        padding: 80px 0;
    }

    .advantages-parallax-bg {
        background-attachment: scroll;
        opacity: 0.05;
    }

    .advantages-header {
        margin-bottom: 48px;
    }

    .advantages-header .section-title {
        font-size: 32px;
        margin-bottom: 16px;
    }

    .advantages-header .section-descr {
        font-size: 16px;
    }

    .advantages-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .advantage-card {
        padding: 36px 28px;
    }

    .advantage-icon-wrapper {
        width: 64px;
        height: 64px;
        margin-bottom: 24px;
    }

    .advantage-icon {
        width: 32px !important;
        height: 32px !important;
    }

    .advantage-title {
        font-size: 20px;
    }

    .advantage-subtitle {
        font-size: 13px;
    }

    .advantage-features li {
        font-size: 14px;
    }

    .advantage-quote {
        font-size: 13px;
        padding: 14px 16px;
    }
}

/* ====================== 可访问性支持 ====================== */
@media (prefers-reduced-motion: reduce) {
    .advantage-card,
    .advantage-icon,
    .advantage-icon-wrapper,
    .advantage-emoji,
    .advantage-title,
    .advantage-features li,
    .advantage-quote {
        transition: none;
    }
}

/* Focus 状态（键盘导航） */
.advantage-card:focus-visible {
    outline: 2px solid rgba(54, 201, 88, 0.6);
    outline-offset: 4px;
}
