/* ============================================
   铁蛋电竞 - 安全保障 专属样式
   布局：盾牌Hero + 六卡网格 + 横向时间线 + 进度条统计 + 权益双栏
   ============================================ */

/* ===== Hero 盾牌背景 ===== */
.safety-hero {
    position: relative;
    padding: 80px 0 60px;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(124, 58, 237, 0.2) 0%, transparent 100%);
    text-align: center;
}

.safety-hero-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    height: 400px;
    pointer-events: none;
    opacity: 0.15;
}

.safety-hero-shield {
    font-size: 380px;
    line-height: 1;
    filter: drop-shadow(0 0 40px rgba(124, 58, 237, 0.6));
}

.safety-hero-inner {
    position: relative;
    z-index: 1;
}

.safety-hero-badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(16, 185, 129, 0.15);
    color: var(--success);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 20px;
}

.safety-hero h1 {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 16px;
    background: linear-gradient(90deg, #fff, var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.safety-hero-sub {
    font-size: 16px;
    color: var(--text-secondary);
    max-width: 640px;
    margin: 0 auto 32px;
    line-height: 1.7;
}

/* Hero 内联统计 */
.safety-hero-stats-inline {
    display: inline-flex;
    align-items: center;
    gap: 24px;
    padding: 16px 32px;
    background: rgba(15, 10, 30, 0.6);
    border: 1px solid var(--border);
    border-radius: 50px;
    backdrop-filter: blur(10px);
}

.safety-hsi-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.safety-hsi-item strong {
    font-size: 22px;
    color: var(--primary-light);
    font-weight: 800;
}

.safety-hsi-item span {
    font-size: 12px;
    color: var(--text-muted);
}

.safety-hsi-divider {
    width: 1px;
    height: 30px;
    background: var(--border-light);
}

/* ===== 通用 section 标题 ===== */
.safety-section-head {
    text-align: center;
    margin-bottom: 40px;
}

.safety-section-head h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.safety-section-head p {
    color: var(--text-secondary);
    font-size: 15px;
}

/* ===== 六大保障网格 ===== */
.safety-guarantee {
    padding: 60px 0;
}

.safety-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.safety-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    overflow: hidden;
    transition: all 0.3s;
}

.safety-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.safety-card:hover {
    transform: translateY(-6px);
    border-color: var(--primary);
    box-shadow: 0 12px 30px rgba(124, 58, 237, 0.25);
}

.safety-card:hover::before {
    opacity: 1;
}

.safety-card-num {
    position: absolute;
    top: 16px;
    right: 20px;
    font-size: 48px;
    font-weight: 900;
    color: rgba(124, 58, 237, 0.12);
    line-height: 1;
    font-style: italic;
}

.safety-card-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    border-radius: 14px;
    margin-bottom: 16px;
}

.safety-icon-blue   { background: rgba(59, 130, 246, 0.15);  }
.safety-icon-purple { background: rgba(124, 58, 237, 0.15); }
.safety-icon-green  { background: rgba(16, 185, 129, 0.15); }
.safety-icon-orange{ background: rgba(245, 158, 11, 0.15); }
.safety-icon-cyan  { background: rgba(6, 182, 212, 0.15);  }
.safety-icon-red    { background: rgba(239, 68, 68, 0.15);  }

.safety-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.safety-card > p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 14px;
}

.safety-card-list {
    list-style: none;
    padding: 0;
    border-top: 1px solid var(--border-light);
    padding-top: 14px;
}

.safety-card-list li {
    font-size: 13px;
    color: var(--text-muted);
    padding: 4px 0;
    padding-left: 18px;
    position: relative;
}

.safety-card-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: 700;
}

/* ===== 横向时间线 ===== */
.safety-flow {
    padding: 60px 0;
    background: rgba(124, 58, 237, 0.04);
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}

.safety-timeline {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
}

.timeline-step {
    flex: 1;
    max-width: 240px;
    text-align: center;
}

.timeline-node {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.timeline-icon {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    background: var(--bg-card);
    border: 2px solid var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 0 6px rgba(124, 58, 237, 0.1);
    position: relative;
    z-index: 1;
}

.timeline-dot {
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 12px;
    height: 12px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--primary);
}

.timeline-label {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    color: var(--primary-light);
    background: var(--primary-bg);
    padding: 3px 10px;
    border-radius: 10px;
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.timeline-content h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--text-primary);
}

.timeline-content p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
    padding: 0 8px;
}

.timeline-arrow {
    font-size: 28px;
    color: var(--primary);
    margin-top: 32px;
    opacity: 0.5;
    flex-shrink: 0;
}

/* ===== 数据统计条 ===== */
.safety-stats {
    padding: 60px 0;
}

.stats-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
}

.stats-item {
    text-align: center;
}

.stats-num {
    font-size: 36px;
    font-weight: 900;
    background: linear-gradient(90deg, var(--primary-light), #fff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
    margin-bottom: 6px;
}

.stats-suffix {
    font-size: 22px;
}

.stats-label {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 14px;
}

.stats-bar-bg {
    height: 6px;
    background: var(--bg-dark);
    border-radius: 3px;
    overflow: hidden;
}

.stats-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    border-radius: 3px;
}

.fill-95   { width: 95%; }
.fill-99   { width: 99.6%; }
.fill-98   { width: 98%; }
.fill-100  { width: 100%; }

/* ===== 权益双栏 ===== */
.safety-rights {
    padding: 60px 0;
}

.rights-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
}

.rights-main-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 28px;
}

.rights-card-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-light);
}

.rights-card-badge {
    padding: 4px 12px;
    background: linear-gradient(135deg, #f59e0b, #f97316);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    border-radius: 6px;
    letter-spacing: 1px;
}

.rights-card-head h3 {
    font-size: 20px;
    color: var(--text-primary);
}

.rights-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.rights-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px;
    background: var(--bg-dark);
    border-radius: 10px;
    border: 1px solid transparent;
    transition: all 0.25s;
}

.rights-item:hover {
    border-color: var(--primary);
    background: var(--primary-bg);
}

.rights-item-icon {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    background: var(--bg-card);
    border-radius: 10px;
    flex-shrink: 0;
}

.rights-item-text {
    flex: 1;
}

.rights-item-text h4 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 3px;
}

.rights-item-text p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.rights-item-tag {
    flex-shrink: 0;
    padding: 4px 10px;
    background: rgba(16, 185, 129, 0.12);
    color: var(--success);
    font-size: 12px;
    font-weight: 600;
    border-radius: 6px;
}

/* 侧边卡片 */
.rights-side {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.rights-side-card {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.15), rgba(91, 33, 182, 0.1));
    border: 1px solid var(--primary);
    border-radius: var(--radius-lg);
    padding: 24px;
    text-align: center;
}

.rights-side-card-tint {
    background: var(--bg-card);
    border-color: var(--border-light);
}

.rights-side-icon {
    font-size: 36px;
    margin-bottom: 10px;
}

.rights-side-card h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.rights-side-card p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
}

/* ===== 响应式 ===== */
@media (max-width: 1100px) {
    .safety-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-bar { grid-template-columns: repeat(2, 1fr); }
    .rights-layout { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
    .safety-timeline {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    .timeline-step { max-width: 100%; width: 100%; }
    .timeline-arrow {
        transform: rotate(90deg);
        margin: 0;
    }
}

@media (max-width: 768px) {
    .safety-hero h1 { font-size: 32px; }
    .safety-hero-stats-inline { gap: 14px; padding: 12px 20px; }
    .safety-grid { grid-template-columns: 1fr; }
    .stats-bar { grid-template-columns: 1fr; }
    .safety-hero-bg { width: 280px; height: 280px; }
    .safety-hero-shield { font-size: 260px; }
}
