/* =============================================================================
 * V14 Home — "Crimson Luxe 暗夜红金"
 * Banner-first, image-rich, products on home. Disciplined red + single gold accent.
 * Scoped under .v14-* class names (assumes theme.css loaded). NO bounce — refined ease-out.
 * ===========================================================================*/

/* -------- Crimson Luxe palette (single source of truth) ------------------- */
:root {
    --v14h-brand-1:  #E11D48;   /* crimson — primary action */
    --v14h-brand-2:  #BE123C;   /* deep crimson */
    --v14h-brand-3:  #7F1D1D;   /* maroon / dark red */
    --v14h-brand-deep:#5B0F18;  /* darkest red */
    --v14h-rose:     #FB7185;   /* light rose highlight */
    --v14h-gold:     #D4AF37;   /* luxury gold — the only accent */
    --v14h-gold-2:   #F5D585;   /* light gold */
    --v14h-up:       #D4AF37;   /* gains/positive = gold (luxury) */

    /* legacy names kept for un-reskinned pages — repointed to red/gold discipline */
    --v14h-teal:     #BE123C;
    --v14h-lime:     #C9A227;

    --v14h-bg:        #160708;   /* warm near-black (red-tinted, not purple) */
    --v14h-surface:   #24090C;   /* warm dark surface */
    --v14h-surface-1: #2E0C10;   /* raised surface */
    --v14h-line:      rgba(212,175,55,0.14);  /* gold-tinted hairline */
    --v14h-line-2:    rgba(212,175,55,0.26);

    --v14h-txt:   #F8EDED;       /* warm white */
    --v14h-txt-2: #C9A9AC;       /* warm muted */
    --v14h-txt-3: #8A6B6E;

    --v14h-ease:   cubic-bezier(0.22, 1, 0.36, 1);  /* refined ease-out */
    --v14h-spring: cubic-bezier(0.22, 1, 0.36, 1);  /* deliberately NO overshoot (vs V13) */
}

/* Apply ambient backdrop for home */
body.v14-home {
    background:
        radial-gradient(ellipse 80% 50% at 20% 0%, rgba(225,29,72,0.22) 0%, transparent 60%),
        radial-gradient(ellipse 70% 50% at 100% 18%, rgba(127,29,29,0.30) 0%, transparent 60%),
        radial-gradient(ellipse 95% 70% at 50% 110%, rgba(212,175,55,0.08) 0%, transparent 60%),
        var(--v14h-bg) !important;
    background-attachment: fixed;
    color: var(--v14h-txt);
    padding-bottom: 96px !important;
}
body.v14-home::before { display: none; }

/* -------- Keyframes -------------------------------------------------------- */
@keyframes v14h-float    { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@keyframes v14h-rise     { from { opacity: 0; transform: translate3d(0, 14px, 0); } to { opacity: 1; transform: none; } }
@keyframes v14h-shimmer  { 0% { transform: translateX(-140%) skewX(-20deg); opacity: 0; } 20% { opacity: 0.6; } 100% { transform: translateX(280%) skewX(-20deg); opacity: 0; } }
@keyframes v14h-marquee  { from { transform: translateX(0); } to { transform: translateX(-50%); } }
/* Gold hairline sheen — Crimson Luxe signature reveal */
@keyframes v14h-sheen    { 0% { background-position: -150% 0; } 100% { background-position: 250% 0; } }

/* ===== TOP STATUS BAR (overlays banner) ==================================== */
.v14-stbar {
    position: absolute; top: 0; left: 0; right: 0; z-index: 30;
    display: flex; align-items: center; gap: 10px;
    padding: 14px 16px 0;
}
.v14-stbar .avatar {
    width: 38px; height: 38px;
    border-radius: 50%;
    background: rgba(0,0,0,0.28);
    -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
    border: 1.5px solid rgba(212,175,55,0.55);
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-weight: 700; font-size: 15px;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.35);
    overflow: hidden;
}
.v14-stbar .avatar img { width: 100%; height: 100%; object-fit: cover; }
.v14-stbar .who { flex: 1; min-width: 0; color: #fff; }
.v14-stbar .who .hi {
    font-size: 11px;
    color: rgba(255,255,255,0.78);
    letter-spacing: 0.4px;
}
.v14-stbar .who .name {
    font-size: 14px; font-weight: 800; margin-top: 1px;
    display: flex; align-items: center; gap: 6px;
    text-shadow: 0 1px 6px rgba(0,0,0,0.35);
    overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
    letter-spacing: 0.2px;
}
.v14-stbar .tier {
    display: inline-flex; align-items: center;
    padding: 1px 8px;
    border-radius: 4px;
    font-size: 9px;
    font-weight: 800;
    color: #2A1602;
    background: linear-gradient(135deg, var(--v14h-gold-2), var(--v14h-gold));
    letter-spacing: 0.6px;
    flex-shrink: 0;
    text-transform: uppercase;
}
.v14-stbar .icon-btn {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: rgba(0,0,0,0.28);
    -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
    border: 1.5px solid rgba(212,175,55,0.35);
    display: flex; align-items: center; justify-content: center;
    color: #fff;
    position: relative;
    text-decoration: none;
}
.v14-stbar .icon-btn:active { background: rgba(0,0,0,0.42); }
.v14-stbar .icon-btn i.layui-icon { font-size: 17px; }
.v14-stbar .icon-btn .dot {
    position: absolute; top: 6px; right: 7px;
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--v14h-brand-1);
    box-shadow: 0 0 0 2px rgba(0,0,0,0.40);
}

/* ===== TOP BANNER (carousel) =============================================== */
.v14-banner {
    position: relative;
    width: 100%;
    height: 360px;
    overflow: hidden;
}
.v14-banner-track {
    display: flex;
    height: 100%;
    transition: transform 0.6s var(--v14h-ease);
}
.v14-banner-slide {
    flex-shrink: 0;
    width: 100%;
    height: 100%;
    position: relative;
    padding: 70px 24px 50px;
    color: #fff;
    overflow: hidden;
    display: flex; flex-direction: column; justify-content: center;
}
.v14-banner-slide.has-img { padding: 0; }
.v14-banner-slide.has-img img {
    width: 100%; height: 100%; object-fit: cover; display: block;
}
/* Fallback (no admin banner) — Crimson Luxe gradient slides */
.v14-banner-slide.s1 {
    background:
        radial-gradient(circle at 80% 25%, rgba(212,175,55,0.30), transparent 55%),
        radial-gradient(circle at 0% 100%, rgba(0,0,0,0.30), transparent 55%),
        linear-gradient(160deg, #E11D48 0%, #9F1239 45%, #5B0F18 100%);
}
.v14-banner-slide.s2 {
    background:
        radial-gradient(circle at 25% 30%, rgba(245,213,133,0.20), transparent 55%),
        linear-gradient(160deg, #7F1D1D 0%, #4A0E12 60%, #160708 100%);
}
.v14-banner-slide.s3 {
    background:
        radial-gradient(circle at 80% 70%, rgba(255,255,255,0.16), transparent 55%),
        linear-gradient(160deg, #BE123C 0%, #7F1D1D 60%, #3A0A0F 100%);
}
.v14-banner-slide.s4 {
    background:
        radial-gradient(circle at 30% 25%, rgba(255,255,255,0.28), transparent 55%),
        linear-gradient(160deg, #F5D585 0%, #D4AF37 50%, #9A7B1A 100%);
    color: #2A1602;
}
.v14-banner-deco {
    position: absolute;
    right: -10px; top: 50%; transform: translateY(-50%);
    width: 220px; height: 220px;
    pointer-events: none;
    z-index: 0;
    opacity: 0.92;
    filter: drop-shadow(0 8px 24px rgba(0,0,0,0.35));
    animation: v14h-float 4.5s ease-in-out infinite;
    color: rgba(255,255,255,0.85);
}
.v14-banner-slide.s4 .v14-banner-deco { color: #fff; }
.v14-banner-deco svg { width: 100%; height: 100%; }

.v14-banner-content { position: relative; z-index: 1; max-width: 250px; }
.v14-banner-tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 4px;
    background: rgba(0,0,0,0.30);
    border: 1px solid rgba(212,175,55,0.45);
    color: var(--v14h-gold-2);
    -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
    font-size: 10px; font-weight: 800;
    letter-spacing: 2px; text-transform: uppercase;
    margin-bottom: 14px;
}
.v14-banner-slide.s4 .v14-banner-tag { background: rgba(42,22,2,0.22); border-color: rgba(42,22,2,0.30); color: #2A1602; }
.v14-banner-title {
    font-size: 30px; font-weight: 900;
    letter-spacing: -0.6px; line-height: 1.1;
    text-shadow: 0 2px 16px rgba(0,0,0,0.35);
}
.v14-banner-slide.s4 .v14-banner-title { text-shadow: none; }
.v14-banner-sub {
    margin-top: 10px;
    font-size: 13px; line-height: 1.5;
    opacity: 0.90;
}
.v14-banner-cta {
    display: inline-flex; align-items: center; gap: 6px;
    margin-top: 18px;
    padding: 11px 20px;
    background: var(--v14h-gold);
    color: #2A1602;
    border-radius: 6px;
    font-size: 13px; font-weight: 800;
    letter-spacing: 0.4px;
    box-shadow: 0 8px 22px rgba(212,175,55,0.40);
    text-decoration: none;
}
.v14-banner-slide.s4 .v14-banner-cta { background: #2A1602; color: var(--v14h-gold-2); }
.v14-banner-cta i.layui-icon { font-size: 12px; }

.v14-banner-dots {
    position: absolute;
    left: 24px;
    bottom: 24px;
    z-index: 3;
    display: flex; gap: 6px;
}
.v14-banner-dots i {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: rgba(255,255,255,0.40);
    transition: all 0.3s var(--v14h-ease);
    cursor: pointer;
    display: inline-block;
}
.v14-banner-dots i.active {
    width: 22px;
    border-radius: 2px;
    background: var(--v14h-gold);
    box-shadow: 0 0 8px rgba(212,175,55,0.60);
}

/* ===== ASSET SUMMARY (rises from banner) =================================== */
.v14-asset {
    position: relative;
    z-index: 5;
    margin: -40px 16px 0;
    padding: 18px 18px 14px;
    border-radius: 14px;
    background:
        linear-gradient(160deg, rgba(212,175,55,0.06), rgba(212,175,55,0.01)),
        var(--v14h-surface);
    border: 1px solid var(--v14h-line-2);
    color: var(--v14h-txt);
    box-shadow: 0 14px 40px rgba(0,0,0,0.50);
    overflow: hidden;
}
/* gold top hairline */
.v14-asset::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(212,175,55,0.7) 30%, rgba(212,175,55,0.7) 70%, transparent);
}
.v14-asset-head {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 8px;
}
.v14-asset-label {
    font-size: 11px; color: var(--v14h-txt-2);
    display: inline-flex; align-items: center; gap: 6px;
    letter-spacing: 1px; text-transform: uppercase; font-weight: 700;
}
.v14-asset-eye {
    width: 22px; height: 22px;
    border-radius: 50%;
    background: rgba(212,175,55,0.08);
    display: flex; align-items: center; justify-content: center;
    color: var(--v14h-txt-2);
}
.v14-asset-eye i.layui-icon { font-size: 12px; }
.v14-asset-today {
    font-size: 11px; color: var(--v14h-gold);
    font-weight: 800;
    background: rgba(212,175,55,0.12);
    padding: 3px 9px;
    border-radius: 4px;
    border: 1px solid rgba(212,175,55,0.30);
    font-variant-numeric: tabular-nums;
}
.v14-asset-amount {
    display: flex; align-items: baseline; gap: 4px;
    color: var(--v14h-txt);
    font-variant-numeric: tabular-nums;
}
.v14-asset-amount .cur { font-size: 18px; font-weight: 700; color: var(--v14h-gold); opacity: 0.85; }
.v14-asset-amount .val { font-size: 34px; font-weight: 900; letter-spacing: -0.8px; line-height: 1; }
.v14-asset-row {
    margin-top: 14px;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1px;
    background: var(--v14h-line);
    border-radius: 8px;
    overflow: hidden;
}
.v14-asset-stat {
    background: var(--v14h-surface-1);
    padding: 10px 4px;
    text-align: center;
}
.v14-asset-stat .l { font-size: 10px; color: var(--v14h-txt-3); letter-spacing: 0.5px; text-transform: uppercase; }
.v14-asset-stat .v {
    margin-top: 3px;
    font-size: 14px; font-weight: 800; color: var(--v14h-txt);
    font-variant-numeric: tabular-nums;
}
.v14-asset-stat .v.up   { color: var(--v14h-up); }
.v14-asset-stat .v.gold { color: var(--v14h-gold); }
.v14-asset-cta {
    margin-top: 12px;
    display: grid; grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
}
.v14-asset-cta a {
    padding: 11px 8px;
    border-radius: 8px;
    border: 1px solid var(--v14h-line-2);
    color: var(--v14h-txt);
    font-size: 12px; font-weight: 700;
    display: flex; align-items: center; justify-content: center; gap: 5px;
    transition: transform 0.16s var(--v14h-ease), background 0.18s, border-color 0.18s;
    text-decoration: none;
    letter-spacing: 0.3px;
}
.v14-asset-cta a:active { transform: scale(0.97); }
.v14-asset-cta a:hover { border-color: rgba(212,175,55,0.45); background: rgba(212,175,55,0.05); }
.v14-asset-cta a.primary {
    background: linear-gradient(135deg, var(--v14h-brand-1), var(--v14h-brand-2));
    color: #fff;
    border-color: transparent;
    box-shadow: 0 6px 18px rgba(225,29,72,0.40);
}
.v14-asset-cta a.primary:hover { border-color: transparent; background: linear-gradient(135deg, #F02955, var(--v14h-brand-1)); }
.v14-asset-cta a i.layui-icon { font-size: 14px; }

/* ===== QUICK GRID ========================================================= */
.v14-quick {
    margin: 14px 12px 0;
    padding: 14px 8px;
    background: var(--v14h-surface);
    border: 1px solid var(--v14h-line);
    border-radius: 14px;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 4px;
}
.v14-quick a {
    display: flex; flex-direction: column; align-items: center; gap: 6px;
    padding: 6px 4px;
    border-radius: 10px;
    position: relative;
    transition: background 0.18s, transform 0.14s var(--v14h-ease);
    text-decoration: none;
}
.v14-quick a:active { background: rgba(212,175,55,0.05); transform: scale(0.96); }
.v14-quick .ic {
    width: 44px; height: 44px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    color: #fff;
    box-shadow: 0 6px 16px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.12);
    position: relative;
}
.v14-quick .ic::after {
    content: ''; position: absolute; inset: 0; border-radius: 12px;
    border: 1px solid rgba(212,175,55,0.30);
    pointer-events: none;
}
.v14-quick .ic i.layui-icon { font-size: 20px; }
/* disciplined red/gold gradients (no rainbow) */
.v14-quick .ic.c1 { background: linear-gradient(135deg, #E11D48, #9F1239); }
.v14-quick .ic.c2 { background: linear-gradient(135deg, #D4AF37, #9A7B1A); color: #2A1602; }
.v14-quick .ic.c3 { background: linear-gradient(135deg, #BE123C, #7F1D1D); }
.v14-quick .ic.c4 { background: linear-gradient(135deg, #FB7185, #BE123C); }
.v14-quick .ic.c5 { background: linear-gradient(135deg, #9F1239, #5B0F18); }
.v14-quick .lab { font-size: 11px; color: var(--v14h-txt-2); font-weight: 600; letter-spacing: 0.3px; }
.v14-quick a .badge {
    position: absolute; top: 2px; right: 4px;
    min-width: 16px; height: 16px;
    border-radius: 8px;
    background: var(--v14h-brand-1);
    color: #fff;
    font-size: 10px; font-weight: 700;
    padding: 0 5px;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 0 0 2px var(--v14h-surface);
}

/* ===== MARQUEE NEWS ======================================================= */
.v14-news {
    margin: 14px 12px 0;
    height: 40px;
    background: linear-gradient(90deg, rgba(212,175,55,0.14), rgba(212,175,55,0.03));
    border: 1px solid rgba(212,175,55,0.28);
    border-radius: 10px;
    display: flex; align-items: center; gap: 8px;
    padding: 0 12px;
    overflow: hidden;
}
.v14-news .horn {
    width: 20px; height: 20px;
    border-radius: 50%;
    background: var(--v14h-gold);
    color: #2A1602;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.v14-news .horn i.layui-icon { font-size: 11px; }
.v14-news .wrap {
    flex: 1; overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
            mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}
.v14-news .track {
    display: inline-flex; align-items: center; gap: 32px;
    white-space: nowrap;
    animation: v14h-marquee 28s linear infinite;
    font-size: 12px;
    color: var(--v14h-txt-2);
}
.v14-news .track b { color: var(--v14h-gold); font-weight: 700; }
.v14-news .more { font-size: 11px; color: var(--v14h-txt-3); flex-shrink: 0; }

/* ===== ACTIVITY ROW (3 equal image cards) ================================= */
.v14-acts {
    margin: 14px 16px 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    align-items: stretch;
}
.v14-act {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    padding: 12px;
    display: flex; flex-direction: column; justify-content: space-between;
    color: #fff;
    min-width: 0;
    text-decoration: none;
    border: 1px solid rgba(212,175,55,0.20);
}
.v14-act svg.deco {
    position: absolute;
    right: -10px; bottom: -10px;
    width: 80px; height: 80px;
    color: rgba(255,255,255,0.26);
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.30));
}
.v14-act.c1 { background: linear-gradient(140deg, #9F1239, #5B0F18); }
.v14-act.c2 { background: linear-gradient(140deg, #E11D48, #7F1D1D); }
.v14-act.c3 { background: linear-gradient(140deg, #D4AF37, #9A7B1A); color: #2A1602; }
.v14-act.c3 svg.deco { color: rgba(42,22,2,0.25); }
.v14-act .v-tag {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 3px;
    background: rgba(0,0,0,0.26);
    font-size: 9px; font-weight: 800;
    letter-spacing: 1px; text-transform: uppercase;
    align-self: flex-start;
    -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
    color: #fff;
}
.v14-act.c3 .v-tag { background: rgba(42,22,2,0.20); color: #2A1602; }
.v14-act .v-body { z-index: 1; }
.v14-act .v-title { font-size: 15px; font-weight: 800; letter-spacing: -0.2px; line-height: 1.2; }
.v14-act .v-sub { margin-top: 4px; font-size: 11px; opacity: 0.92; }

/* ===== SECTION HEADER (editorial) ========================================= */
.v14-sh {
    display: flex; align-items: center; justify-content: space-between;
    margin: 24px 16px 12px;
}
.v14-sh .left { display: flex; align-items: center; gap: 10px; }
.v14-sh .left::before {
    content: ''; width: 3px; height: 18px;
    background: linear-gradient(180deg, var(--v14h-gold), var(--v14h-brand-1));
    border-radius: 2px;
}
.v14-sh .left h2 { font-size: 19px; font-weight: 900; letter-spacing: 0.2px; color: var(--v14h-txt); margin: 0; }
.v14-sh .left .hot {
    display: inline-flex; align-items: center;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 10px; font-weight: 800; color: #fff;
    background: linear-gradient(135deg, var(--v14h-brand-1), var(--v14h-brand-3));
    letter-spacing: 0.8px; text-transform: uppercase;
}
.v14-sh .sub { font-size: 12px; color: var(--v14h-txt-3); margin-top: 2px; display: block; }
.v14-sh .more {
    font-size: 12px; color: var(--v14h-gold);
    display: inline-flex; align-items: center; gap: 2px;
    text-decoration: none;
    font-weight: 700; letter-spacing: 0.3px;
}
.v14-sh .more i.layui-icon { font-size: 12px; }

/* ===== PRODUCT TABS ======================================================= */
.v14-tabs {
    margin: 0 16px 12px;
    display: flex; gap: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.v14-tabs::-webkit-scrollbar { display: none; }
.v14-tabs .tab {
    padding: 8px 18px;
    border-radius: 6px;
    background: var(--v14h-surface);
    border: 1px solid var(--v14h-line);
    font-size: 13px; font-weight: 700;
    color: var(--v14h-txt-2);
    flex-shrink: 0;
    transition: all 0.18s var(--v14h-ease);
    cursor: pointer;
    letter-spacing: 0.3px;
}
.v14-tabs .tab.active {
    background: linear-gradient(135deg, var(--v14h-brand-1), var(--v14h-brand-2));
    color: #fff;
    border-color: rgba(212,175,55,0.40);
    box-shadow: 0 4px 14px rgba(225,29,72,0.40);
}

/* ===== PRODUCT CARDS (image-rich) ========================================= */
.v14-pwrap { margin: 0 16px; }
.v14-product {
    background: var(--v14h-surface);
    border: 1px solid var(--v14h-line);
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 14px;
    display: flex;
    transition: transform 0.18s var(--v14h-ease), border-color 0.22s, box-shadow 0.3s;
    box-shadow: 0 6px 20px rgba(0,0,0,0.30);
    text-decoration: none;
    position: relative;
}
.v14-product::before {
    content: ''; position: absolute; top: 0; bottom: 0; left: 0; width: 3px;
    background: linear-gradient(180deg, var(--v14h-gold), var(--v14h-brand-1));
    opacity: 0; transition: opacity 0.25s;
    z-index: 2;
}
.v14-product:hover { border-color: rgba(212,175,55,0.40); box-shadow: 0 12px 32px rgba(225,29,72,0.18); transform: translateY(-2px); }
.v14-product:hover::before { opacity: 1; }
.v14-product:active { transform: scale(0.992); }
.v14-product-img {
    width: 130px;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    background: linear-gradient(140deg, #9F1239, #5B0F18);
}
.v14-product-img img {
    width: 100%; height: 100%; object-fit: cover; display: block;
    transition: transform 0.6s var(--v14h-ease);
}
.v14-product:hover .v14-product-img img { transform: scale(1.07); }
/* Fallback gradients when no image — red/gold discipline */
.v14-product[data-gx="1"] .v14-product-img { background: linear-gradient(140deg, #E11D48, #7F1D1D); }
.v14-product[data-gx="2"] .v14-product-img { background: linear-gradient(140deg, #D4AF37, #9A7B1A); }
.v14-product[data-gx="3"] .v14-product-img { background: linear-gradient(140deg, #BE123C, #5B0F18); }
.v14-product[data-gx="4"] .v14-product-img { background: linear-gradient(140deg, #FB7185, #9F1239); }
.v14-product[data-gx="5"] .v14-product-img { background: linear-gradient(140deg, #9F1239, #2E0C10); }

.v14-product-img::after {
    content: ''; position: absolute; inset: 0;
    background:
        radial-gradient(circle 60px at 70% 30%, rgba(212,175,55,0.18), transparent 70%),
        linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.28));
    pointer-events: none;
}
.v14-product-img .badges {
    position: absolute; top: 8px; left: 8px;
    display: flex; flex-direction: column; gap: 4px;
    z-index: 1;
}
.v14-product-img .badge {
    display: inline-flex; align-items: center;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 10px; font-weight: 800;
    letter-spacing: 0.4px;
    -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.v14-product-img .badge.vip {
    background: linear-gradient(135deg, var(--v14h-gold-2), var(--v14h-gold));
    color: #2A1602;
    box-shadow: 0 2px 8px rgba(212,175,55,0.45);
}
.v14-product-img .badge.tenor { background: rgba(0,0,0,0.42); color: #fff; }
.v14-product-img .badge.hot { background: linear-gradient(135deg, var(--v14h-brand-1), var(--v14h-brand-3)); color: #fff; }

.v14-product-body {
    flex: 1; min-width: 0;
    padding: 14px;
    display: flex; flex-direction: column;
}
.v14-product-name {
    font-size: 15px; font-weight: 800;
    color: var(--v14h-txt);
    line-height: 1.3; margin-bottom: 8px;
    overflow: hidden;
    display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical;
    letter-spacing: 0.2px;
}
.v14-product-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 4px 10px;
    margin-bottom: 10px;
}
.v14-product-grid .cell { display: flex; justify-content: space-between; font-size: 11px; }
.v14-product-grid .l { color: var(--v14h-txt-3); }
.v14-product-grid .v { color: var(--v14h-txt); font-weight: 700; font-variant-numeric: tabular-nums; }
.v14-product-grid .v.gold { color: var(--v14h-gold); }
.v14-product-grid .v.lime { color: var(--v14h-up); }
.v14-product-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; }
.v14-product-price { display: flex; align-items: baseline; gap: 3px; }
.v14-product-price .cur { font-size: 12px; color: var(--v14h-gold); }
.v14-product-price .val { font-size: 19px; font-weight: 900; color: var(--v14h-txt); font-variant-numeric: tabular-nums; }
.v14-product-btn {
    padding: 8px 18px;
    border-radius: 6px;
    background: linear-gradient(135deg, var(--v14h-brand-1), var(--v14h-brand-2));
    color: #fff;
    font-size: 12px; font-weight: 800;
    box-shadow: 0 4px 14px rgba(225,29,72,0.40);
    letter-spacing: 0.5px; text-transform: uppercase;
    position: relative; overflow: hidden;
    border: 1px solid rgba(212,175,55,0.40);
    cursor: pointer;
}
.v14-product-btn::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(120deg, transparent 30%, rgba(245,213,133,0.45) 50%, transparent 70%);
    transform: translateX(-100%);
    animation: v14h-shimmer 3.8s ease-in-out infinite;
}
.v14-product-empty {
    padding: 50px 20px;
    text-align: center;
    color: var(--v14h-txt-3);
    background: var(--v14h-surface);
    border: 1px dashed var(--v14h-line-2);
    border-radius: 14px;
    margin-bottom: 14px;
}
.v14-product-empty i.layui-icon { font-size: 38px; color: var(--v14h-txt-3); display: block; margin-bottom: 8px; }

/* ===== INVITE BANNER ====================================================== */
.v14-invite {
    margin: 22px 16px 0;
    position: relative;
    padding: 18px 20px;
    border-radius: 14px;
    background:
        radial-gradient(circle at 90% 30%, rgba(255,255,255,0.16), transparent 60%),
        linear-gradient(135deg, var(--v14h-gold-2) 0%, var(--v14h-gold) 50%, #9A7B1A 100%);
    overflow: hidden;
    display: flex; align-items: center; gap: 14px;
    box-shadow: 0 10px 28px rgba(212,175,55,0.28);
    text-decoration: none;
    border: 1px solid rgba(255,255,255,0.20);
}
.v14-invite .deco {
    width: 72px; height: 72px;
    color: #fff;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.20));
    flex-shrink: 0;
    animation: v14h-float 4.5s ease-in-out infinite;
}
.v14-invite .deco svg { width: 100%; height: 100%; }
.v14-invite .body { flex: 1; min-width: 0; }
.v14-invite .tag {
    display: inline-block;
    padding: 2px 8px; border-radius: 3px;
    background: rgba(42,22,2,0.18);
    color: #2A1602;
    font-size: 9px; font-weight: 800;
    letter-spacing: 1px; text-transform: uppercase;
    margin-bottom: 4px;
}
.v14-invite .title { font-size: 17px; font-weight: 900; color: #2A1602; letter-spacing: -0.2px; }
.v14-invite .sub { font-size: 12px; color: #4A2D03; margin-top: 2px; line-height: 1.4; }
.v14-invite .sub b { color: #8B1A0A; font-weight: 800; font-size: 14px; }

/* ===== BOTTOM TABBAR — flat editorial dock (Crimson Luxe signature) ======= */
.v14-tabbar {
    position: fixed;
    left: 0; right: 0;
    bottom: 0;
    z-index: 60;
    height: calc(62px + env(safe-area-inset-bottom, 0px));
    padding-bottom: env(safe-area-inset-bottom, 0px);
    background: linear-gradient(180deg, rgba(36,9,12,0.92), rgba(22,7,8,0.98));
    -webkit-backdrop-filter: blur(24px) saturate(160%);
            backdrop-filter: blur(24px) saturate(160%);
    border-top: 1px solid rgba(212,175,55,0.30);
    box-shadow: 0 -8px 30px rgba(0,0,0,0.55);
    display: flex; align-items: stretch;
}
/* gold sheen hairline on the top edge */
.v14-tabbar::before {
    content: ''; position: absolute; top: -1px; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(245,213,133,0.9) 50%, transparent);
    background-size: 200% 100%;
    animation: v14h-sheen 6s linear infinite;
}
@media (min-width: 560px) {
    .v14-tabbar { width: 480px; left: calc(50vw - 240px); right: auto; }
}
.v14-tabbar a {
    flex: 1;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 4px;
    color: var(--v14h-txt-3);
    font-size: 10px; font-weight: 700;
    letter-spacing: 0.6px; text-transform: uppercase;
    position: relative;
    transition: color 0.2s var(--v14h-ease);
    text-decoration: none;
    padding-top: 2px;
}
.v14-tabbar a i.layui-icon {
    font-size: 21px;
    transition: transform 0.25s var(--v14h-ease);
}
.v14-tabbar a .lab { line-height: 1; }
.v14-tabbar a:active i.layui-icon { transform: scale(0.9); }
/* active: red text/icon + gold top underline indicator */
.v14-tabbar a.active {
    color: var(--v14h-brand-1);
}
.v14-tabbar a.active i.layui-icon {
    transform: translateY(-1px);
    filter: drop-shadow(0 0 10px rgba(225,29,72,0.55));
}
.v14-tabbar a.active::before {
    content: '';
    position: absolute; top: 0; left: 50%; transform: translateX(-50%);
    width: 30px; height: 3px;
    border-radius: 0 0 3px 3px;
    background: linear-gradient(90deg, var(--v14h-gold), var(--v14h-brand-1));
    box-shadow: 0 0 10px rgba(212,175,55,0.6);
}
.v14-tabbar a .nd {
    position: absolute; top: 8px; right: 50%; margin-right: -16px;
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--v14h-brand-1);
    box-shadow: 0 0 0 2px rgba(22,7,8,0.95), 0 0 8px var(--v14h-brand-1);
}
.v14-tabbar a.active .nd { display: none; }

/* Hide default v8-tabbar and floating service button on home (we have our own entries) */
body.v14-home .v8-tabbar { display: none !important; }
body.v14-home .v11-service { display: none !important; }
