﻿/* ===================================================================
   topupsecure 鈥?Home Page Styles
   =================================================================== */

/* ===== SIDE NAV (Floating) ===== */
.side-nav {
    position: fixed; right: 24px; top: 54%; transform: translateY(-50%);
    z-index: 999; display: flex; flex-direction: column; gap: 6px;
    opacity: 0; transition: opacity 0.6s var(--ease);
}
.side-nav.visible { opacity: 1; }
.side-nav-item {
    position: relative; width: 12px; height: 12px; border-radius: 50%;
    background: var(--border); transition: all 0.3s var(--ease); cursor: pointer;
}
.side-nav-item:hover { background: var(--text-tertiary); transform: scale(1.3); }
.side-nav-item.active {
    background: var(--accent);
    box-shadow: 0 0 0 4px rgba(0,113,227,0.15);
    transform: scale(1.2);
}
.side-nav-tooltip {
    position: absolute; right: 24px; top: 50%; transform: translateY(-50%);
    background: var(--text-primary); color: #fff;
    padding: 5px 12px; border-radius: 8px;
    font-size: 12px; font-weight: 600; white-space: nowrap;
    opacity: 0; pointer-events: none; transition: all 0.2s var(--ease);
}
.side-nav-item:hover .side-nav-tooltip { opacity: 1; right: 28px; }
.side-nav-tooltip::after {
    content: ''; position: absolute; left: 100%; top: 50%; transform: translateY(-50%);
    border: 5px solid transparent; border-left-color: var(--text-primary);
}

/* ===== HERO ===== */
.hero {
    position: relative; min-height: calc(100vh - 24px);
    display: flex; align-items: center; justify-content: center;
    padding: 118px 24px 88px; overflow: hidden; background: #fafafa;
}
.hero-mesh {
    position: absolute; inset: 0; z-index: 0; overflow: hidden;
}
.hero-mesh::before {
    content: ''; position: absolute;
    width: 140%; height: 140%; top: -20%; left: -20%;
    background:
        radial-gradient(ellipse 600px 500px at 20% 30%, rgba(0,113,227,0.07) 0%, transparent 70%),
        radial-gradient(ellipse 500px 600px at 75% 20%, rgba(110,92,230,0.06) 0%, transparent 70%),
        radial-gradient(ellipse 400px 400px at 60% 80%, rgba(52,199,89,0.04) 0%, transparent 70%),
        radial-gradient(ellipse 600px 300px at 30% 70%, rgba(255,55,95,0.04) 0%, transparent 70%);
    animation: meshMove 20s ease-in-out infinite;
}
@keyframes meshMove {
    0%, 100% { transform: translate(0,0) rotate(0deg); }
    25% { transform: translate(2%,-1%) rotate(0.5deg); }
    50% { transform: translate(-1%,2%) rotate(-0.5deg); }
    75% { transform: translate(1%,1%) rotate(0.3deg); }
}
.hero-grid-pattern {
    position: absolute; inset: 0; z-index: 0;
    background-image:
        linear-gradient(rgba(0,0,0,0.018) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,0,0,0.018) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 30%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 30%, transparent 100%);
}
.hero-inner {
    position: relative; z-index: 1;
    display: flex; align-items: center; gap: 80px;
    max-width: 1280px; width: 100%;
}
.hero-left { flex: 1; max-width: 560px; }
.hero-eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 5px 14px 5px 6px;
    background: #fff; border: 1px solid var(--border);
    border-radius: 980px; font-size: 13px; font-weight: 500;
    color: var(--text-secondary); box-shadow: var(--shadow-sm);
    margin-bottom: 28px; animation: fadeUp 0.8s var(--ease) 0.1s both;
}
.eyebrow-dot {
    width: 22px; height: 22px; border-radius: 50%;
    background: linear-gradient(135deg, #34c759, #30d158);
    display: flex; align-items: center; justify-content: center;
    font-size: 10px; color: #fff;
}
.hero-title {
    font-size: clamp(42px, 5.5vw, 72px);
    font-weight: 900; line-height: 1.06;
    letter-spacing: -0.035em; margin-bottom: 24px;
    animation: fadeUp 0.8s var(--ease) 0.2s both;
}
.hero-title .line2 {
    background: linear-gradient(135deg, #0071e3 0%, #6e5ce6 40%, #bf5af2 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero-desc {
    font-size: 18px; line-height: 1.6; color: var(--text-secondary);
    max-width: 440px; margin-bottom: 36px;
    animation: fadeUp 0.8s var(--ease) 0.3s both;
}
.hero-actions {
    display: flex; align-items: center; gap: 14px;
    margin-bottom: 34px; animation: fadeUp 0.8s var(--ease) 0.4s both;
}
.hero-actions .btn-primary,
.hero-actions .btn-secondary {
    min-height: 52px;
    padding-inline: 26px;
}
.hero-actions .btn-primary {
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.18);
}
.hero-actions .btn-secondary {
    background: rgba(255,255,255,0.82);
    backdrop-filter: blur(10px);
}
.hero-trust {
    display: flex; align-items: center; gap: 12px;
    flex-wrap: wrap;
    animation: fadeUp 0.8s var(--ease) 0.5s both;
}
.hero-trust-item {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 14px;
    border: 1px solid rgba(255,255,255,0.75);
    border-radius: 999px;
    background: rgba(255,255,255,0.7);
    backdrop-filter: blur(12px);
    font-size: 13px; color: var(--text-secondary); font-weight: 600;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}
.hero-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    width: min(100%, 520px);
    margin-top: 20px;
    animation: fadeUp 0.8s var(--ease) 0.6s both;
}
.hero-metric {
    padding: 16px 18px;
    border-radius: 18px;
    background: rgba(255,255,255,0.82);
    border: 1px solid rgba(255,255,255,0.78);
    backdrop-filter: blur(12px);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}
.hero-metric strong {
    display: block;
    font-size: 20px;
    line-height: 1;
    letter-spacing: -0.03em;
}
.hero-metric span {
    display: block;
    margin-top: 8px;
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 700;
}

/* Hero Right 鈥?Card Carousel */
.hero-right {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: min(100%, 520px);
    min-height: 520px;
    padding: 24px 36px 40px;
    animation: fadeUp 1s var(--ease) 0.4s both;
    isolation: isolate;
}

.hero-right.hero-right-static {
    width: min(100%, 640px);
    min-height: 420px;
    padding: 0;
    display: grid;
    grid-template-columns: minmax(0, 360px) minmax(220px, 260px);
    gap: 18px;
    align-items: stretch;
}

.hero-showcase {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100%;
    width: 100%;
}

.hero-right.hero-right-static .hero-showcase {
    min-height: 420px;
    padding: 24px 20px 28px;
    border-radius: 28px;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.96) 0%, rgba(248,250,252,0.92) 100%);
    border: 1px solid rgba(255,255,255,0.82);
    box-shadow: 0 28px 70px rgba(15, 23, 42, 0.12);
}

.hero-right.hero-right-static .hero-badge-cluster {
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    align-content: center;
    gap: 14px;
    width: 100%;
    margin-top: 0;
    padding: 22px 18px 18px;
    border-radius: 24px;
    background: rgba(255,255,255,0.9);
    border: 1px solid rgba(255,255,255,0.84);
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.1);
}

.hero-right.hero-right-static .hero-badge-cluster::before {
    content: "骞冲彴浜偣";
    display: block;
    margin-bottom: 4px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
}

.hero-right.hero-right-static .hero-badge-cluster::after {
    content: "先说明支付、订单追踪和客服提醒，让用户下单前就清楚流程。";
    display: block;
    margin-bottom: 10px;
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.65;
}

.hero-card-stack {
    position: relative;
    width: 320px;
    height: 360px;
    perspective: 1200px;
}

.hero-right.hero-right-static .hero-card-stack {
    width: 100%;
    max-width: 360px;
    height: auto;
    perspective: none;
}

.hero-card {
    position: absolute;
    width: 300px;
    background: #fff;
    border-radius: 20px;
    padding: 28px;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-lg);
    cursor: pointer;
    overflow: hidden;
    /* 鎵€鏈夊崱鐗囬粯璁ょ姸鎬侊細鍦ㄥ悗闈㈢缉灏?*/
    opacity: 0;
    transform: scale(0.88) translateY(20px) rotateY(-8deg);
    transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1;
    pointer-events: none;
}
.hero-card:hover {
    box-shadow: 0 26px 60px rgba(15, 23, 42, 0.18);
}

.hero-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255,255,255,0) 50%, rgba(0,0,0,0.015) 100%);
    pointer-events: none;
}

/* ---- 褰撳墠婵€娲荤殑鍗＄墖 ---- */
.hero-card.active {
    opacity: 1;
    transform: scale(1) translateY(0) rotateY(0deg);
    z-index: 5;
    pointer-events: auto;
    animation: cardActiveFloat 4s ease-in-out infinite;
}

.hero-right.hero-right-static .hero-card {
    position: relative;
    width: 100%;
    opacity: 1;
    transform: none;
    animation: none;
    pointer-events: auto;
    min-height: 100%;
    padding: 30px 28px;
    border-radius: 24px;
    border-color: rgba(15, 23, 42, 0.06);
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.12);
}

/* ---- 涓嬩竴寮犲崱鐗囷紙棰勮鍦ㄥ彸鍚庢柟锛?---- */
.hero-card.next {
    opacity: 0.6;
    transform: scale(0.92) translateX(40px) translateY(10px) rotateY(-5deg);
    z-index: 3;
    pointer-events: none;
}

/* ---- 涓婁竴寮犲崱鐗囷紙棰勮鍦ㄥ乏鍚庢柟锛?---- */
.hero-card.prev {
    opacity: 0.35;
    transform: scale(0.85) translateX(-30px) translateY(18px) rotateY(5deg);
    z-index: 2;
    pointer-events: none;
}

/* 婵€娲诲崱鐗囩殑鎮诞鍔ㄧ敾 */
@keyframes cardActiveFloat {
    0%, 100% { transform: scale(1) translateY(0) rotateY(0deg); }
    50% { transform: scale(1) translateY(-10px) rotateY(0deg); }
}

/* 鍗＄墖鍐呴儴鏍峰紡 */
.hero-card-icon {
    width: 72px;
    height: 72px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    margin-bottom: 18px;
    flex-shrink: 0;
}
.hero-card-name { font-size: 18px; font-weight: 700; margin-bottom: 4px; }
.hero-card-desc { font-size: 13px; color: var(--text-tertiary); margin-bottom: 20px; }
.hero-right.hero-right-static .hero-card-name {
    font-size: 20px;
    line-height: 1.25;
}

.hero-right.hero-right-static .hero-card-desc {
    min-height: 44px;
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-secondary);
}
.hero-card-row {
    display: flex; align-items: center; justify-content: space-between;
    padding-top: 16px; border-top: 1px solid var(--border-light);
}
.hero-card-price { font-size: 24px; font-weight: 800; letter-spacing: -0.02em; }
.hero-card-price span { font-size: 13px; color: var(--text-tertiary); font-weight: 500; }
.hero-card-btn {
    padding: 8px 18px; border-radius: 980px; font-size: 13px;
    font-weight: 700; color: #fff; transition: all 0.2s; display: inline-block;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.2);
}
.hero-card-btn:hover { filter: brightness(1.1); transform: scale(1.04); }

/* ---- 鎸囩ず鍣ㄥ渾鐐?---- */
.hero-card-dots {
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid var(--border);
    background: transparent;
    cursor: pointer;
    transition: all 0.3s var(--ease);
    padding: 0;
}

.hero-dot:hover {
    border-color: var(--accent);
    transform: scale(1.2);
}

.hero-dot.active {
    background: var(--accent);
    border-color: var(--accent);
    transform: scale(1.15);
    box-shadow: 0 0 0 4px rgba(0,113,227,0.15);
}

/* ---- 宸﹀彸绠ご鎸夐挳 ---- */
.hero-card-arrow-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border-light);
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-secondary);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s var(--ease);
}

.hero-card-arrow-btn:hover {
    background: var(--text-primary);
    color: #fff;
    border-color: transparent;
    box-shadow: var(--shadow-md);
    transform: translateY(-50%) scale(1.08);
}

.hero-arrow-prev { left: -30px; }
.hero-arrow-next { right: -30px; }

/* ---- Floating badges ---- */
.hero-float-badge {
    position: absolute; z-index: 10;
    background: #fff; border: 1px solid var(--border-light);
    border-radius: 14px; padding: 10px 16px; box-shadow: var(--shadow-md);
    display: flex; align-items: center; gap: 8px;
    font-size: 13px; font-weight: 600; animation: badgeFloat 5s ease-in-out infinite;
    pointer-events: none;
}
.hero-right.hero-right-static .hero-float-badge {
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
    animation: none;
    padding: 14px 16px;
    min-height: 76px;
    border-radius: 18px;
    box-shadow: none;
}
.hero-float-badge.badge-1 { top: 28px; right: 4px; }
.hero-float-badge.badge-2 { bottom: 56px; left: 0; animation-delay: 1.5s; }
.hero-float-badge.badge-3 { bottom: 168px; right: -6px; animation-delay: 3s; }
@keyframes badgeFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.badge-icon { width: 28px; height: 28px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 14px; }

/* ---- 鍝嶅簲寮忚皟鏁?---- */
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }

/* ===== FEATURED PRODUCTS ===== */
.section-featured { background: #fff; }
.featured-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; grid-template-rows: auto auto; gap: 16px; }
.featured-grid.is-sparse { grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr); justify-content: center; align-items: stretch; }
.f-card {
    position: relative; border-radius: var(--radius-lg); padding: 36px 30px;
    border: 1px solid var(--border-light); background: #fff;
    display: flex; flex-direction: column; transition: all 0.4s var(--ease);
    cursor: pointer; overflow: hidden;
}
.f-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card-hover); border-color: transparent; }
.f-card-hero { grid-row: span 2; padding: 44px 36px; background: linear-gradient(160deg, #fafafa 0%, #f5f3ff 100%); }
.featured-grid.is-sparse .f-card-hero { grid-row: auto; min-height: 360px; }
.f-card-bg { position: absolute; top: -60px; right: -60px; width: 200px; height: 200px; border-radius: 50%; opacity: 0.08; transition: all 0.5s var(--ease); }
.f-card:hover .f-card-bg { opacity: 0.14; transform: scale(1.15); }
.f-card-icon { width: 50px; height: 50px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 24px; margin-bottom: 20px; }
.f-card-hero .f-card-icon { width: 64px; height: 64px; border-radius: 18px; font-size: 30px; margin-bottom: 28px; }
.f-card-tag { display: inline-block; padding: 3px 10px; border-radius: 6px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 10px; width: fit-content; }
.f-card-title { font-size: 20px; font-weight: 700; margin-bottom: 6px; letter-spacing: -0.01em; }
.f-card-title a { transition: color 0.2s; }
.f-card-title a:hover { color: var(--accent); }
.f-card-hero .f-card-title { font-size: 28px; letter-spacing: -0.02em; }
.f-card-desc { font-size: 14px; color: var(--text-secondary); line-height: 1.55; margin-bottom: 20px; }
.f-card-hero .f-card-desc { font-size: 15px; max-width: 320px; }
.f-card-bottom { margin-top: auto; display: flex; align-items: center; justify-content: space-between; }
.f-card-price .from { font-size: 12px; color: var(--text-tertiary); }
.f-card-price .amount { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; }
.f-card-hero .f-card-price .amount { font-size: 32px; }
.f-card-price .cur { font-size: 13px; color: var(--text-tertiary); font-weight: 500; margin-left: 2px; }
.f-card-arrow {
    width: 40px; height: 40px; border-radius: 50%;
    background: var(--bg-subtle); border: 1px solid var(--border-light);
    display: flex; align-items: center; justify-content: center;
    color: var(--text-tertiary); transition: all 0.3s var(--ease);
}
.f-card:hover .f-card-arrow { background: var(--text-primary); color: #fff; border-color: transparent; transform: rotate(-45deg); }
.featured-support-card {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 34px 30px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    background: linear-gradient(180deg, #fff, #f8fafc);
    box-shadow: var(--shadow-sm);
}
.featured-support-kicker {
    display: inline-flex;
    width: fit-content;
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--accent-light);
    color: var(--accent);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.featured-support-card h3 {
    margin: 0;
    font-size: 28px;
    line-height: 1.15;
    letter-spacing: -0.03em;
}
.featured-support-card p {
    color: var(--text-secondary);
    line-height: 1.7;
}
.featured-support-points {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.featured-support-points span {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0 14px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--border-light);
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 700;
}
.featured-support-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: auto;
}

/* ===== ALL PRODUCTS ===== */
.section-all { background: var(--bg-subtle); }
.cat-tabs { display: flex; justify-content: center; gap: 6px; margin-bottom: 44px; flex-wrap: wrap; }
.cat-tab {
    padding: 9px 20px; border-radius: 980px; font-size: 13px; font-weight: 600;
    color: var(--text-secondary); background: #fff; border: 1px solid var(--border-light);
    transition: all 0.2s var(--ease); cursor: pointer;
}
.cat-tab:hover { border-color: var(--border); color: var(--text-primary); }
.cat-tab.active { background: var(--text-primary); color: #fff; border-color: transparent; }
.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.products-grid.is-sparse { grid-template-columns: repeat(auto-fit, minmax(220px, 280px)); justify-content: center; }
.p-card {
    display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
    min-height: 248px;
    padding: 24px 16px 20px; background: #fff; border: 1px solid var(--border-light);
    border-radius: var(--radius-md); transition: all 0.3s var(--ease); cursor: pointer; text-align: center;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
}
.p-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: transparent; }
.p-icon { width: 48px; height: 48px; border-radius: 13px; display: flex; align-items: center; justify-content: center; font-size: 24px; margin-bottom: 12px; }
.p-category {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    background: var(--accent-light);
    color: var(--accent);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.04em;
    margin-bottom: 10px;
}
.p-name { font-size: 14px; font-weight: 700; line-height: 1.45; margin-bottom: 8px; min-height: 40px; }
.p-subtitle {
    color: var(--text-secondary);
    font-size: 12px;
    line-height: 1.55;
    min-height: 38px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.p-card-foot {
    margin-top: auto;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-top: 14px;
}
.p-price {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    background: var(--bg-subtle);
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 700;
}
.p-link {
    color: var(--text-primary);
    font-size: 12px;
    font-weight: 800;
}
.view-all-row { text-align: center; margin-top: 40px; }

/* ===== HOW IT WORKS ===== */
.section-how { background: #fff; }
.steps-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step-card {
    text-align: center; padding: 44px 28px;
    background: var(--bg-subtle); border-radius: var(--radius-lg);
    border: 1px solid var(--border-light); transition: all 0.4s var(--ease);
}
.step-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); background: #fff; }
.step-num { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; font-size: 15px; font-weight: 800; margin-bottom: 20px; }
.step-icon { font-size: 40px; margin-bottom: 16px; }
.step-title { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.step-desc { font-size: 14px; color: var(--text-secondary); line-height: 1.55; }

/* ===== STATS ===== */
.section-stats { background: var(--text-primary); padding: 80px 24px; }
.stats-grid { max-width: 960px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat-item {
    text-align: center;
    padding: 26px 18px;
    border-radius: 24px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}
.stat-num { font-size: clamp(32px, 4.5vw, 52px); font-weight: 900; letter-spacing: -0.03em; color: #fff; line-height: 1.1; margin-bottom: 4px; }
.stat-label { font-size: 14px; color: rgba(255,255,255,0.68); line-height: 1.5; }

/* ===== REVIEWS ===== */
.section-reviews { background: var(--bg-subtle); }
.reviews-note {
    margin: 16px auto 0;
    color: var(--text-tertiary);
    font-size: 13px;
    font-weight: 600;
}
.reviews-track {
    display: flex; gap: 16px;
    overflow-x: auto; scroll-snap-type: x mandatory;
    scrollbar-width: none; padding-bottom: 4px;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
}
.reviews-track::-webkit-scrollbar { display: none; }
.reviews-track.is-dragging {
    cursor: grabbing;
}
.r-card {
    flex: 0 0 360px; scroll-snap-align: start;
    padding: 32px; background: #fff; border: 1px solid var(--border-light);
    border-radius: var(--radius-lg); transition: all 0.3s var(--ease);
}
.reviews-track.is-dragging .r-card {
    pointer-events: none;
}
.r-card:hover { box-shadow: var(--shadow-md); border-color: transparent; }
.r-stars { color: #ffb300; font-size: 14px; margin-bottom: 16px; letter-spacing: 2px; }
.r-text { font-size: 15px; color: var(--text-secondary); line-height: 1.6; margin-bottom: 24px; border: none; padding: 0; }
.r-author { display: flex; align-items: center; gap: 12px; }
.r-avatar { width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; }
.r-name { font-size: 14px; font-weight: 600; font-style: normal; }
.r-meta { font-size: 12px; color: var(--text-tertiary); }

/* ===== CTA ===== */
.section-cta { position: relative; padding: 120px 24px; text-align: center; background: #fff; overflow: hidden; }
.cta-mesh { position: absolute; inset: 0; background: radial-gradient(ellipse 50% 50% at 50% 50%, rgba(0,113,227,0.04) 0%, transparent 70%); }
.cta-content {
    position: relative;
    z-index: 1;
    max-width: 860px;
    margin: 0 auto;
    padding: 46px 32px;
    border-radius: 32px;
    background: rgba(255,255,255,0.86);
    border: 1px solid rgba(255,255,255,0.92);
    box-shadow: 0 22px 60px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(12px);
}
.cta-title { font-size: clamp(34px, 4.5vw, 52px); font-weight: 900; letter-spacing: -0.03em; margin-bottom: 16px; }
.cta-desc { font-size: 17px; color: var(--text-secondary); max-width: 460px; margin: 0 auto 36px; }
.cta-points {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 0 auto 26px;
    max-width: 640px;
}
.cta-points span {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0 14px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--border-light);
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 700;
}
.cta-btns { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; }

/* ===== FAQ ===== */
.section-faq { background: #fff; }

.section-header {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 60px;
}

.faq-item {
    border-color: rgba(15, 23, 42, 0.06);
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.03);
}

.faq-item[open] {
    border-color: rgba(0, 113, 227, 0.12);
}

.faq-question h3 {
    font-weight: 700;
    line-height: 1.5;
}

/* ===== NEWS PREVIEW POLISH ===== */
.news-preview-grid {
    grid-template-columns: 1.15fr 1fr;
    align-items: stretch;
}

.news-card {
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
}

.news-card-featured {
    grid-row: span 2;
}

.news-card-featured a {
    display: grid;
    height: 100%;
}

.news-card-featured .news-card-img {
    min-height: 248px;
}

.news-card-featured .news-card-body {
    padding: 26px;
}

.news-card-featured .news-card-body h3 {
    font-size: 22px;
    line-height: 1.3;
    -webkit-line-clamp: 3;
}

.news-card-featured .news-card-body p {
    -webkit-line-clamp: 3;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .hero-inner { flex-direction: column; text-align: center; gap: 60px; }
    .hero-left { max-width: 100%; display: flex; flex-direction: column; align-items: center; }
    .hero-desc { margin-left: auto; margin-right: auto; }
    .hero-trust { justify-content: center; }
    .hero-actions { justify-content: center; }
    .hero-metrics { width: min(100%, 560px); }
    .featured-grid { grid-template-columns: 1fr 1fr; }
    .featured-grid.is-sparse { grid-template-columns: minmax(0, 1fr); }
    .f-card-hero { grid-row: span 1; }
    .news-preview-grid { grid-template-columns: 1fr; }
    .news-card-featured { grid-row: span 1; }
}
@media (max-width: 768px) {
    .side-nav { display: none; }
    .hero-right { min-height: 380px; width: 100%; padding: 12px 0 28px; }
    .hero-right.hero-right-static {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
        min-height: auto;
    }
    .hero-right.hero-right-static .hero-showcase {
        min-height: auto;
        padding-bottom: 0;
    }
    .hero-right.hero-right-static .hero-badge-cluster {
        grid-template-columns: 1fr;
    }
    .hero-card-stack { transform: scale(0.85); }
    .r-card { flex: 0 0 300px; }
    .featured-grid { grid-template-columns: 1fr; }
    .steps-row { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 28px; }
    .hero-trust { justify-content: center; }
    .hero-metrics { grid-template-columns: 1fr; }
    .cta-content { padding: 34px 22px; }
    .section-header { margin-bottom: 44px; }
    .hero { padding: 104px 20px 72px; }
}
@media (max-width: 480px) {
    .products-grid { grid-template-columns: repeat(2, 1fr); }
    .hero-card-stack { transform: scale(0.76); }
    .hero-right.hero-right-static .hero-card-stack {
        max-width: 100%;
    }
    .hero-actions { flex-direction: column; width: 100%; }
    .hero-actions .btn-primary, .hero-actions .btn-secondary { width: 100%; justify-content: center; }
    .hero-trust-item { width: 100%; justify-content: center; }
    .stats-grid { grid-template-columns: 1fr; }
    .hero { padding: 98px 16px 64px; min-height: auto; }
    .hero-title { font-size: clamp(34px, 11vw, 46px); }
    .hero-desc { font-size: 16px; margin-bottom: 26px; }
    .hero-metric { padding: 14px 16px; }
    .p-card { min-height: 236px; padding: 20px 14px 18px; }
    .p-card-foot { flex-direction: column; align-items: center; }
}

/* ===== HOME REFINEMENT FOR CHINESE COPY ===== */
.hero {
    min-height: 760px;
    padding: 108px 24px 72px;
}

.hero-inner {
    max-width: 1120px;
    gap: 56px;
}

.hero-left {
    max-width: 500px;
}

.hero-title {
    font-size: clamp(40px, 4.2vw, 58px);
    line-height: 1.12;
    letter-spacing: 0;
    margin-bottom: 18px;
}

.hero-desc {
    max-width: 430px;
    font-size: 16px;
    line-height: 1.75;
    margin-bottom: 26px;
}

.hero-eyebrow {
    margin-bottom: 22px;
}

.hero-actions {
    margin-bottom: 24px;
}

.hero-actions .btn-primary,
.hero-actions .btn-secondary {
    min-height: 46px;
    padding-inline: 22px;
}

.hero-trust-item {
    padding: 8px 12px;
}

.hero-metrics {
    width: min(100%, 430px);
    gap: 10px;
}

.hero-metrics > div,
.hero-metric {
    padding: 12px 14px;
    border-radius: 16px;
    background: rgba(255,255,255,0.78);
    border: 1px solid rgba(255,255,255,0.76);
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.05);
}

.hero-metrics strong {
    display: block;
    font-size: 17px;
    line-height: 1.1;
}

.hero-metrics span {
    display: block;
    margin-top: 6px;
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 700;
}

.hero-right.hero-right-static {
    width: min(100%, 540px);
    min-height: 340px;
    grid-template-columns: minmax(0, 310px) minmax(190px, 220px);
    gap: 14px;
}

.hero-right.hero-right-static .hero-showcase {
    min-height: 340px;
    padding: 18px;
    border-radius: 22px;
}

.hero-right.hero-right-static .hero-card {
    min-height: 300px;
    padding: 24px;
    border-radius: 20px;
}

.hero-card-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    margin-bottom: 16px;
}

.hero-right.hero-right-static .hero-card-name {
    font-size: 18px;
}

.hero-right.hero-right-static .hero-card-desc {
    min-height: 34px;
    font-size: 13px;
}

.hero-card-price {
    font-size: 22px;
}

.hero-card-btn {
    padding: 7px 14px;
}

.hero-right.hero-right-static .hero-badge-cluster {
    padding: 18px 16px;
    border-radius: 22px;
}

.hero-right.hero-right-static .hero-badge-cluster::before {
    content: "服务保障";
}

.hero-right.hero-right-static .hero-badge-cluster::after {
    content: "下单前先确认支付、订单追踪和客服提醒，减少用户决策成本。";
    font-size: 12px;
    line-height: 1.65;
}

.hero-right.hero-right-static .hero-float-badge {
    min-height: 58px;
    padding: 12px 14px;
    border-radius: 14px;
}

.section {
    padding: 72px 24px;
}

.section-header {
    max-width: 640px;
    margin-bottom: 38px;
}

.section-title {
    font-size: clamp(28px, 3vw, 40px);
    line-height: 1.22;
    letter-spacing: 0;
}

.section-desc {
    font-size: 15px;
    line-height: 1.75;
    max-width: 520px;
}

.featured-grid,
.featured-grid.is-sparse {
    grid-template-columns: repeat(auto-fit, minmax(260px, 360px));
    justify-content: center;
    gap: 16px;
}

.f-card,
.f-card-hero,
.featured-grid.is-sparse .f-card-hero {
    min-height: 260px;
    padding: 26px 24px;
    border-radius: 20px;
}

.f-card-hero .f-card-title,
.f-card-title {
    font-size: 20px;
    line-height: 1.35;
    letter-spacing: 0;
}

.f-card-desc,
.f-card-hero .f-card-desc {
    font-size: 13px;
    line-height: 1.65;
}

.f-card-price .amount,
.f-card-hero .f-card-price .amount {
    font-size: 24px;
}

.products-grid,
.products-grid.is-sparse {
    grid-template-columns: repeat(auto-fit, minmax(220px, 260px));
    justify-content: center;
    gap: 14px;
}

.p-card {
    min-height: 218px;
    padding: 22px 18px 18px;
}

.p-name {
    min-height: auto;
    font-size: 15px;
}

.p-subtitle {
    min-height: 36px;
}

.steps-row {
    gap: 14px;
}

.step-card {
    padding: 30px 24px;
    border-radius: 20px;
}

.step-card h3 {
    font-size: 17px;
    line-height: 1.35;
    margin-bottom: 8px;
}

.step-card p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.7;
}

.step-num {
    margin-bottom: 14px;
}

.news-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
}

.news-card {
    min-height: 0;
    border-radius: 20px;
}

.news-card-img {
    height: 86px;
    padding: 16px 18px;
    background: linear-gradient(135deg, #f8fafc, #eef4ff);
}

.news-card-body {
    padding: 20px;
}

.news-card-body h3,
.news-card-featured .news-card-body h3 {
    font-size: 16px;
    line-height: 1.45;
    letter-spacing: 0;
}

.news-card-body p {
    font-size: 13px;
    line-height: 1.65;
}

@media (max-width: 1024px) {
    .hero {
        min-height: auto;
        padding-top: 96px;
    }

    .hero-inner {
        gap: 42px;
    }

    .hero-right.hero-right-static {
        width: min(100%, 620px);
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: clamp(34px, 9vw, 46px);
    }

    .hero-desc {
        font-size: 15px;
    }

    .section {
        padding: 58px 18px;
    }

    .section-header {
        margin-bottom: 30px;
    }

    .hero-right.hero-right-static {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* ===== PREMIUM GLOBAL HOME LAYOUT ===== */
.hero {
    min-height: 720px;
    background:
        linear-gradient(135deg, rgba(250,252,255,0.96), rgba(246,248,252,0.98) 48%, rgba(255,255,255,0.98)),
        linear-gradient(90deg, rgba(0,113,227,0.05), rgba(15,23,42,0.03));
}

.hero::after {
    content: "";
    position: absolute;
    inset: 72px 4vw 48px;
    z-index: 0;
    border: 1px solid rgba(15, 23, 42, 0.05);
    border-radius: 34px;
    pointer-events: none;
}

.hero-mesh::before {
    opacity: 0.42;
    filter: saturate(0.78);
}

.hero-grid-pattern {
    background-size: 48px 48px;
    opacity: 0.65;
}

.hero-inner {
    max-width: 1180px;
    min-height: 520px;
    padding: 44px;
    border-radius: 32px;
    background: rgba(255,255,255,0.62);
    border: 1px solid rgba(255,255,255,0.78);
    box-shadow: 0 34px 90px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(18px);
}

.hero-title {
    max-width: 560px;
    color: #111827;
    text-wrap: balance;
}

.hero-title .line2 {
    background: linear-gradient(135deg, #0f172a 0%, #0071e3 48%, #0f766e 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-desc {
    color: #4b5563;
}

.hero-eyebrow,
.hero-trust-item,
.hero-metrics > div {
    border-color: rgba(15, 23, 42, 0.07);
}

.hero-actions .btn-primary {
    background: #111827;
    box-shadow: 0 18px 42px rgba(17, 24, 39, 0.18);
}

.hero-actions .btn-secondary {
    color: #111827;
    border-color: rgba(15, 23, 42, 0.09);
}

.hero-right.hero-right-static {
    grid-template-columns: minmax(0, 320px) minmax(196px, 224px);
}

.hero-right.hero-right-static .hero-showcase,
.hero-right.hero-right-static .hero-badge-cluster {
    background: rgba(255,255,255,0.92);
    border: 1px solid rgba(15, 23, 42, 0.06);
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.10);
}

.hero-right.hero-right-static .hero-card {
    background:
        linear-gradient(180deg, #fff 0%, #fbfcff 100%);
    border-color: rgba(15, 23, 42, 0.06);
    box-shadow: none;
}

.hero-panel-title {
    display: inline-flex;
    width: fit-content;
    margin-bottom: 4px;
    color: #111827;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-right.hero-right-static .hero-badge-cluster::before {
    content: "服务保障";
    color: #0071e3;
}

.hero-right.hero-right-static .hero-badge-cluster::after {
    color: #667085;
}

.hero-right.hero-right-static .hero-float-badge {
    justify-content: flex-start;
    color: #111827;
    border-color: rgba(15, 23, 42, 0.07);
    background: linear-gradient(180deg, #fff, #f8fafc);
}

.section > .section-header,
.section > .featured-grid,
.section > .products-grid,
.section > .steps-row,
.section > .news-preview-grid {
    max-width: 1180px;
    margin-left: auto;
    margin-right: auto;
}

.section {
    padding: 78px 24px;
}

.section-featured,
.section-how,
.section-news {
    background: #fff;
}

.section-all {
    background:
        linear-gradient(180deg, #f7f8fb 0%, #f3f5f8 100%);
}

.section-header {
    margin-bottom: 34px;
}

.section-kicker {
    display: inline-flex;
    margin-bottom: 8px;
    color: #0071e3;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.08em;
}

.section-title {
    color: #111827;
    font-weight: 900;
    text-wrap: balance;
}

.section-desc {
    margin-left: auto;
    margin-right: auto;
    color: #6b7280;
}

.featured-grid,
.featured-grid.is-sparse {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    align-items: stretch;
}

.f-card,
.f-card-hero,
.featured-grid.is-sparse .f-card-hero {
    min-height: 280px;
    background:
        linear-gradient(180deg, #fff 0%, #fbfcff 100%);
    border-color: rgba(15, 23, 42, 0.06);
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.05);
}

.f-card-hero {
    background:
        linear-gradient(145deg, #ffffff 0%, #f3f7ff 58%, #f8fbf8 100%);
}

.f-card:hover {
    box-shadow: 0 24px 58px rgba(15, 23, 42, 0.10);
}

.products-grid,
.products-grid.is-sparse {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
}

.home-product-card {
    min-height: 280px;
}

.p-card {
    align-items: flex-start;
    text-align: left;
    min-height: 220px;
    border-color: rgba(15, 23, 42, 0.06);
    box-shadow: 0 16px 38px rgba(15, 23, 42, 0.04);
}

.p-card:hover {
    box-shadow: 0 24px 56px rgba(15, 23, 42, 0.09);
}

.p-category {
    min-height: 24px;
    margin-bottom: 8px;
}

.p-name {
    width: 100%;
    font-size: 16px;
}

.p-subtitle {
    width: 100%;
}

.steps-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.step-card {
    text-align: left;
    background:
        linear-gradient(180deg, #f8fafc 0%, #fff 100%);
    border-color: rgba(15, 23, 42, 0.06);
}

.step-num {
    color: #0071e3;
    background: #eef4ff;
}

.news-preview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.news-card {
    border-color: rgba(15, 23, 42, 0.06);
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.05);
}

.news-card a {
    display: grid;
    grid-template-columns: 156px minmax(0, 1fr);
    min-height: 160px;
}

.news-card-img {
    width: 100%;
    height: 100%;
    min-height: 160px;
    align-items: flex-start;
}

.news-card-body {
    display: flex;
    min-width: 0;
    flex-direction: column;
    justify-content: center;
}

.home-section-action {
    max-width: 1180px;
    margin: 28px auto 0;
    display: flex;
    justify-content: center;
}

.home-section-action .btn-secondary {
    min-height: 42px;
    padding: 0 20px;
    border: 1px solid rgba(15, 23, 42, 0.10);
    border-radius: 999px;
    background: rgba(255,255,255,0.82);
    color: #111827;
    font-size: 14px;
    font-weight: 800;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

.home-products-panel {
    max-width: 1180px;
    margin: 0 auto;
}

.section-all > .products-grid {
    display: none;
}

.home-products-panel .cat-tabs {
    position: sticky;
    top: 72px;
    z-index: 8;
    justify-content: flex-start;
    gap: 10px;
    max-width: 100%;
    margin: 0 0 18px;
    padding: 10px;
    overflow-x: auto;
    flex-wrap: nowrap;
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-radius: 18px;
    background: rgba(255,255,255,0.86);
    box-shadow: 0 16px 42px rgba(15, 23, 42, 0.06);
    backdrop-filter: blur(14px);
    scrollbar-width: none;
}

.home-products-panel .cat-tabs::-webkit-scrollbar {
    display: none;
}

.home-products-panel .cat-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex: 0 0 auto;
    min-height: 42px;
    padding: 0 16px;
    border-radius: 12px;
    white-space: nowrap;
    background: #fff;
}

.home-products-panel .cat-tab small {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 7px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.06);
    color: inherit;
    font-size: 11px;
    font-weight: 800;
}

.home-products-panel .cat-tab.active {
    background: #111827;
    color: #fff;
}

.home-products-panel .cat-tab.active small {
    background: rgba(255,255,255,0.16);
}

.home-filter-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 18px;
    color: #667085;
    font-size: 13px;
    font-weight: 700;
}

.home-filter-summary strong {
    color: #111827;
}

@media (max-width: 1024px) {
    .hero-inner {
        padding: 36px;
    }

    .hero-right.hero-right-static {
        grid-template-columns: minmax(0, 1fr) minmax(190px, 230px);
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 88px 16px 46px;
    }

    .hero::after {
        inset: 64px 12px 28px;
        border-radius: 24px;
    }

    .hero-inner {
        padding: 26px 20px;
        border-radius: 24px;
    }

    .hero-title,
    .hero-desc {
        max-width: 100%;
    }

    .hero-right.hero-right-static {
        grid-template-columns: minmax(0, 1fr);
    }

    .steps-row,
    .news-preview-grid {
        grid-template-columns: 1fr;
    }

    .news-card a {
        grid-template-columns: 1fr;
    }

    .news-card-img {
        min-height: 96px;
    }
}

/* ===== HERO PRODUCT CARD STABILITY ===== */
.hero-card {
    display: flex;
    flex-direction: column;
}

.hero-card > * {
    position: relative;
    z-index: 1;
}

.hero-card::before {
    z-index: 0;
}

.hero-card-icon {
    overflow: hidden;
}

.hero-card-row {
    position: relative;
    z-index: 2;
    gap: 14px;
    margin-top: auto;
    min-width: 0;
}

.hero-card-price {
    flex: 1 1 auto;
    min-width: 0;
    white-space: nowrap;
    color: #111827;
}

.hero-card-btn {
    flex: 0 0 auto;
    background: #111827;
    color: #fff;
    white-space: nowrap;
}

.hero-right.hero-right-static .hero-card {
    overflow: hidden;
}
