/* ============================================================
   造化手游 · 品牌信任区 v2.0.0
   深色底部品牌区：4张毛玻璃卡片 + 网格背景 + 安全卡片 + 量词
   ============================================================ */

.trust-section {
    --accent: #4f8cff;
    --accent-rgb: 79,140,255;
    --green: #34d399;
    position: relative;
    overflow: hidden;
    width: 100%;
    padding: 72px 48px 56px;
    text-align: center;
    background: #060912;
    border-radius: 28px;
    color: #f1f5f9;
}

/* ── 背景：网格纹理 ── */
.trust-section::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    opacity: 0.03;
    background-image:
        linear-gradient(rgba(255,255,255,0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
}

/* ── 背景：顶部光晕 ── */
.trust-section::after {
    content: '';
    position: absolute;
    z-index: 0;
    pointer-events: none;
    width: 700px;
    height: 500px;
    top: -20%;
    left: 50%;
    transform: translateX(-50%);
    background: radial-gradient(
        ellipse at center,
        rgba(var(--accent-rgb), 0.08) 0%,
        rgba(var(--accent-rgb), 0.02) 40%,
        transparent 70%
    );
}

/* ============================================================
   顶部
   ============================================================ */
.trust-top-line {
    position: relative;
    z-index: 1;
    width: 60px;
    height: 2px;
    margin: 0 auto 28px;
    background: var(--accent);
    border-radius: 2px;
    opacity: 0.5;
}

.trust-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    position: relative;
    z-index: 1;
    margin-bottom: 24px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 4px;
    color: var(--accent);
}

.trust-tag::before,
.trust-tag::after {
    content: '';
    width: 20px;
    height: 1px;
    background: rgba(var(--accent-rgb), 0.3);
}

.trust-headline {
    position: relative;
    z-index: 1;
    margin: 0 auto 16px;
    max-width: 600px;
    font-size: 30px;
    font-weight: 800;
    line-height: 1.35;
    letter-spacing: 0.01em;
    color: #f8fafc;
}

.trust-headline em {
    font-style: normal;
    background: linear-gradient(135deg, var(--accent), #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.trust-subtitle {
    position: relative;
    z-index: 1;
    margin: 0 auto 8px;
    max-width: 500px;
    font-size: 15px;
    line-height: 1.7;
    color: #b0bec5;
    font-weight: 400;
}

.trust-highlight {
    position: relative;
    z-index: 1;
    margin: 0 auto 44px;
    font-size: 14px;
    color: var(--accent);
    font-weight: 500;
    opacity: 0.8;
}

/* ============================================================
   卡片网格
   ============================================================ */
.trust-cards {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    max-width: 860px;
    margin: 0 auto 40px;
}

/* ── 单卡 ── */
.trust-card {
    position: relative;
    background: rgba(12, 16, 30, 0.75);
    border-radius: 18px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.06);
    padding: 28px 16px 22px;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: default;
    overflow: hidden;
    z-index: 1;
}

/* 顶部光条 */
.trust-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
    transition: all 0.4s ease;
}

/* 悬浮底光 */
.trust-card::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: 18px;
    background: radial-gradient(ellipse at 50% 0%, var(--card-glow, rgba(var(--accent-rgb), 0.15)), transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.trust-card:hover {
    transform: translateY(-6px);
    border-color: rgba(255,255,255,0.12);
    box-shadow:
        0 4px 0 rgba(var(--accent-rgb), 0.3),
        0 12px 40px rgba(0,0,0,0.4),
        inset 0 1px 0 rgba(255,255,255,0.04);
}

.trust-card:hover::before {
    width: 80%;
    background: linear-gradient(90deg, transparent, var(--card-glow, rgba(var(--accent-rgb), 0.4)), transparent);
}

.trust-card:hover::after {
    opacity: 1;
}

/* ── 图标 ── */
.trust-card-icon {
    font-size: 26px;
    line-height: 1;
    margin-bottom: 16px;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: inline-block;
}

.trust-card:hover .trust-card-icon {
    transform: scale(1.15) translateY(-2px);
}

/* ── 数字 + 量词 ── */
.trust-card-value {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 2px;
    margin-bottom: 10px;
}

.trust-card-num {
    font-size: 34px;
    font-weight: 800;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.02em;
    color: #f8fafc;
    transition: color 0.3s ease;
}

.trust-card-unit {
    font-size: 16px;
    font-weight: 600;
    line-height: 1;
    color: #6b7280;
    transition: color 0.3s ease;
    align-self: flex-end;
}

.trust-card:hover .trust-card-num {
    color: var(--accent);
}

.trust-card:hover .trust-card-unit {
    color: rgba(var(--accent-rgb), 0.6);
}

/* ── 标签 ── */
.trust-card-label {
    font-size: 13px;
    font-weight: 600;
    color: #b0bec5;
    margin-bottom: 4px;
    letter-spacing: 0.01em;
}

/* ── 副描述 ── */
.trust-card-desc {
    font-size: 11px;
    color: #6b7280;
    line-height: 1.5;
}

/* ── 安全卡片特殊样式 ── */
.trust-card--security {
    --card-glow: rgba(52,211,153, 0.2);
}

.trust-card--security .trust-card-num {
    color: var(--green);
}

.trust-card--security .trust-card-unit {
    color: rgba(52,211,153, 0.6);
}

.trust-card--security:hover .trust-card-num {
    color: var(--green);
}

.trust-card--security:hover .trust-card-unit {
    color: rgba(52,211,153, 0.8);
}

.trust-card-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    margin-top: 10px;
    background: rgba(52,211,153,0.08);
    border: 1px solid rgba(52,211,153,0.2);
    border-radius: 100px;
    font-size: 10px;
    font-weight: 700;
    color: var(--green);
    letter-spacing: 0.02em;
}

.trust-card-badge-dot {
    width: 6px;
    height: 6px;
    background: var(--green);
    border-radius: 50%;
    animation: trustPulse 2s ease-in-out infinite;
}

@keyframes trustPulse {
    0%, 100% {
        opacity: 1;
        box-shadow: 0 0 0 0 rgba(52,211,153,0.4);
    }
    50% {
        opacity: 0.7;
        box-shadow: 0 0 0 6px rgba(52,211,153,0);
    }
}

/* ============================================================
   底部
   ============================================================ */
.trust-links {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 28px;
    font-size: 13px;
}

.trust-links a {
    color: #b0bec5;
    text-decoration: none;
    padding: 4px 10px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.trust-links a:hover {
    color: var(--accent);
    background: rgba(var(--accent-rgb), 0.06);
    text-decoration: none;
}

.trust-links-sep {
    color: #6b7280;
    pointer-events: none;
    user-select: none;
    align-self: center;
}

/* ── CTA ── */
.trust-cta-wrap {
    position: relative;
    z-index: 1;
}

.trust-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 36px;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, var(--accent) 0%, #6366f1 100%);
    border-radius: 100px;
    text-decoration: none !important;
    box-shadow: 0 4px 24px rgba(var(--accent-rgb), 0.35);
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.trust-cta::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 100px;
    background: linear-gradient(135deg,
        transparent 0%,
        rgba(255,255,255,0.12) 50%,
        transparent 100%
    );
    animation: shimmer 2.8s ease-in-out infinite;
    pointer-events: none;
}

@keyframes shimmer {
    0%, 100% { transform: translateX(-100%); }
    50% { transform: translateX(100%); }
}

.trust-cta:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 36px rgba(var(--accent-rgb), 0.5);
    color: #fff;
    text-decoration: none;
}

.trust-cta:active {
    transform: translateY(0) scale(0.98);
}

/* ── 底部线 ── */
.trust-bottom-line {
    position: relative;
    z-index: 0;
    width: 100px;
    height: 1px;
    margin: 36px auto 0;
    background: linear-gradient(90deg, transparent, rgba(var(--accent-rgb), 0.2), transparent);
    border-radius: 1px;
}

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 768px) {
    .trust-section {
        padding: 52px 20px 40px;
        border-radius: 20px;
    }
    .trust-headline { font-size: 23px; }
    .trust-subtitle { font-size: 13px; }
    .trust-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .trust-card-num { font-size: 28px; }
    .trust-card-unit { font-size: 14px; }
    .trust-card { padding: 22px 12px 18px; }
    .trust-card-icon { font-size: 22px; margin-bottom: 12px; }
}

@media (max-width: 480px) {
    .trust-section { padding: 40px 14px 32px; }
    .trust-headline { font-size: 20px; }
    .trust-subtitle { font-size: 12px; }
    .trust-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .trust-card-num { font-size: 24px; }
    .trust-card-unit { font-size: 13px; }
    .trust-card { padding: 18px 10px 14px; }
    .trust-card-icon { font-size: 20px; margin-bottom: 10px; }
    .trust-card-label { font-size: 12px; }
    .trust-card-desc { font-size: 10px; }
    .trust-links { font-size: 12px; }
    .trust-cta { padding: 11px 26px; font-size: 13px; }
}
