/* V10 — Alipay-inspired light theme
   Primary: Alipay Blue #1677FF / #108EE9
   Soft slate background · vivid cards · rich interaction
   Class names kept as .v8-* / --v8-* for template compatibility,
   but visual language is completely rebuilt.
*/

:root {
    /* === Alipay brand palette === */
    --v8-primary:        #1677FF;
    --v8-primary-light:  #4DABFF;
    --v8-primary-deep:   #0055CC;
    --v8-primary-dark:   #003E99;
    --v8-primary-ghost:  rgba(22, 119, 255, 0.08);
    --v8-primary-soft:   rgba(22, 119, 255, 0.14);
    --v8-cyan:           #00B4FF;
    --v8-cyan-deep:      #0095EE;

    --v8-glow:           0 6px 20px rgba(22, 119, 255, 0.22),
                         0 1px 0 rgba(22, 119, 255, 0.10);
    --v8-glow-strong:    0 12px 32px rgba(22, 119, 255, 0.34);

    /* === Surface (light Alipay-style) === */
    --v8-bg:             #F2F4F7;
    --v8-bg-grouped:     #EEF1F6;
    --v8-bg-elevated:    #FFFFFF;
    --v8-bg-elev-solid:  #FFFFFF;
    --v8-bg-subtle:      #F7F9FC;
    --v8-bg-hover:       rgba(22, 119, 255, 0.06);

    --v8-text:           #1D2129;
    --v8-text-secondary: #4E5969;
    --v8-text-tertiary:  #86909C;
    --v8-text-quaternary:#C9CDD4;

    --v8-separator:          rgba(29, 33, 41, 0.06);
    --v8-separator-opaque:   rgba(29, 33, 41, 0.10);
    --v8-border-glow:        rgba(22, 119, 255, 0.40);

    --v8-danger:  #F53F3F;
    --v8-warning: #FF7D00;
    --v8-info:    #1677FF;
    --v8-orange:  #FF7D00;
    --v8-yellow:  #FFB400;
    --v8-success: #00B42A;

    /* === Larger, friendlier radii (Alipay style) === */
    --v8-radius-sm:  10px;
    --v8-radius:     14px;
    --v8-radius-lg:  18px;
    --v8-radius-xl:  24px;
    --v8-radius-pill:999px;

    /* === Soft shadows for light surfaces === */
    --v8-shadow-sm:
        0 1px 2px rgba(29, 33, 41, 0.04),
        0 2px 6px rgba(29, 33, 41, 0.06);
    --v8-shadow:
        0 2px 4px rgba(29, 33, 41, 0.04),
        0 8px 24px rgba(29, 33, 41, 0.08);
    --v8-shadow-lg:
        0 4px 8px rgba(29, 33, 41, 0.05),
        0 20px 40px rgba(29, 33, 41, 0.10);
    --v8-inset:
        inset 0 1px 2px rgba(29, 33, 41, 0.06);

    --v8-font: -apple-system, BlinkMacSystemFont, 'PingFang SC',
               'Helvetica Neue', 'Segoe UI', 'Inter', Roboto, system-ui, sans-serif;

    --v8-safe-bottom: env(safe-area-inset-bottom, 0px);

    --v8-ease-out:   cubic-bezier(0.22, 1, 0.36, 1);
    --v8-ease-in:    cubic-bezier(0.55, 0, 0.66, 0.18);
    --v8-spring:     cubic-bezier(0.34, 1.56, 0.64, 1);
    --v8-bounce:     cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
    font-family: var(--v8-font);
    font-size: 15px;
    line-height: 1.5;
    color: var(--v8-text);
    background: var(--v8-bg);
    -webkit-font-smoothing: antialiased;
    -webkit-tap-highlight-color: transparent;
    overscroll-behavior-y: none;
}

/* Soft Alipay-style page surface with floating blue gradient blob */
body {
    min-height: 100vh;
    padding-bottom: calc(94px + var(--v8-safe-bottom));
    position: relative;
    background:
        radial-gradient(ellipse 100% 60% at 50% 0%, rgba(22, 119, 255, 0.12) 0%, transparent 70%),
        linear-gradient(180deg, #EEF3FB 0%, #F2F4F7 28%, #F2F4F7 100%);
    background-attachment: fixed;
}
/* Floating animated soft blue blobs in background */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(circle 280px at 12% 18%, rgba(22, 119, 255, 0.10) 0%, transparent 70%),
        radial-gradient(circle 240px at 88% 36%, rgba(0, 180, 255, 0.10) 0%, transparent 70%),
        radial-gradient(circle 320px at 50% 92%, rgba(22, 119, 255, 0.07) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
    animation: v8-blob-float 18s ease-in-out infinite alternate;
}
body > * { position: relative; z-index: 1; }
body.v8-no-footer { padding-bottom: 0; }
body.v8-auth { padding-bottom: 0; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
input, button, textarea, select { font-family: inherit; font-size: inherit; color: inherit; }

/* ============================
   Keyframes (rich Alipay-style motion)
   ============================ */
@keyframes v8-rise        { from { opacity: 0; transform: translate3d(0, 18px, 0); } to { opacity: 1; transform: none; } }
@keyframes v8-fade-in     { from { opacity: 0; } to { opacity: 1; } }
@keyframes v8-pop-in      { 0% { opacity: 0; transform: scale(0.85); } 60% { opacity: 1; transform: scale(1.04); } 100% { opacity: 1; transform: scale(1); } }
@keyframes v8-float       { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes v8-pulse-glow  { 0%, 100% { box-shadow: 0 0 0 0 rgba(22, 119, 255, 0.34); } 50% { box-shadow: 0 0 0 14px rgba(22, 119, 255, 0); } }
@keyframes v8-shimmer     { 0% { transform: translateX(-160%) skewX(-22deg); opacity: 0; } 18% { opacity: 0.7; } 80% { opacity: 0.7; } 100% { transform: translateX(360%) skewX(-22deg); opacity: 0; } }
@keyframes v8-orbit       { from { transform: rotate(0); } to { transform: rotate(360deg); } }
@keyframes v8-sheen       { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
@keyframes v8-slide-down  { from { opacity: 0; transform: translate3d(0, -14px, 0); } to { opacity: 1; transform: none; } }
@keyframes v8-slide-up    { from { opacity: 0; transform: translate3d(0, 18px, 0); } to { opacity: 1; transform: none; } }
@keyframes v8-slide-left  { from { opacity: 0; transform: translate3d(-22px, 0, 0); } to { opacity: 1; transform: none; } }
@keyframes v8-slide-right { from { opacity: 0; transform: translate3d(22px, 0, 0); } to { opacity: 1; transform: none; } }
@keyframes v8-zoom-in     { from { opacity: 0; transform: scale(0.92); } to { opacity: 1; transform: scale(1); } }
@keyframes v8-bounce-in   { 0% { opacity: 0; transform: scale(0.5); } 50% { opacity: 1; transform: scale(1.08); } 80% { transform: scale(0.96); } 100% { transform: scale(1); } }
@keyframes v8-breathe     { 0%, 100% { transform: scale(1); opacity: 0.85; } 50% { transform: scale(1.08); opacity: 1; } }
@keyframes v8-border-flow { 0% { background-position: 0% 50%; } 100% { background-position: 200% 50%; } }
@keyframes v8-blink       { 0%, 100% { opacity: 0.4; transform: scale(1); } 50% { opacity: 1; transform: scale(1.3); } }
@keyframes v8-ring        { 0% { transform: scale(0.6); opacity: 0.75; } 100% { transform: scale(2.4); opacity: 0; } }
@keyframes v8-tilt        { 0% { transform: rotate(-2deg); } 50% { transform: rotate(2deg); } 100% { transform: rotate(-2deg); } }
@keyframes v8-shake       { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-3px); } 75% { transform: translateX(3px); } }
@keyframes v8-blob-float  { 0% { transform: translate3d(0, 0, 0) scale(1); } 100% { transform: translate3d(20px, -10px, 0) scale(1.05); } }
@keyframes v8-coin-flip   { 0% { transform: rotateY(0deg); } 50% { transform: rotateY(180deg); } 100% { transform: rotateY(360deg); } }
@keyframes v8-progress-stripe { 0% { background-position: 0 0; } 100% { background-position: 40px 0; } }
@keyframes v8-marquee     { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes v8-wave        { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(1.4); } }

@media (prefers-reduced-motion: no-preference) {
    .v8-navbar { animation: v8-slide-down 0.5s var(--v8-ease-out) both; }
    .v8-tabbar { animation: v8-slide-up 0.5s 0.1s var(--v8-spring) both; }
    .v8-hero   { animation: v8-rise 0.55s var(--v8-ease-out) both; }

    .v8-card, .v8-field, .v8-list, .v8-quickgrid,
    .v8-activity-grid, .v8-list-header, .v8-section-title,
    .v8-section-sub, .v8-plist {
        animation: v8-rise 0.55s var(--v8-ease-out) both;
    }
    .v8-list-header   { animation-delay: 0.05s; }
    .v8-section-title { animation-delay: 0.06s; }
    .v8-section-sub   { animation-delay: 0.08s; }
    .v8-list          { animation-delay: 0.10s; }
    .v8-field         { animation-delay: 0.10s; }
    .v8-quickgrid     { animation-delay: 0.10s; }
    .v8-activity-grid { animation-delay: 0.12s; }

    .v8-card:nth-of-type(1) { animation-delay: 0.09s; }
    .v8-card:nth-of-type(2) { animation-delay: 0.15s; }
    .v8-card:nth-of-type(3) { animation-delay: 0.21s; }
    .v8-card:nth-of-type(4) { animation-delay: 0.27s; }
    .v8-card:nth-of-type(5) { animation-delay: 0.33s; }
    .v8-card:nth-of-type(6) { animation-delay: 0.39s; }

    .v8-quickgrid .q-item { animation: v8-bounce-in 0.55s var(--v8-spring) both; }
    .v8-quickgrid .q-item:nth-child(1) { animation-delay: 0.14s; }
    .v8-quickgrid .q-item:nth-child(2) { animation-delay: 0.18s; }
    .v8-quickgrid .q-item:nth-child(3) { animation-delay: 0.22s; }
    .v8-quickgrid .q-item:nth-child(4) { animation-delay: 0.26s; }
    .v8-quickgrid .q-item:nth-child(5) { animation-delay: 0.30s; }
    .v8-quickgrid .q-item:nth-child(6) { animation-delay: 0.34s; }
    .v8-quickgrid .q-item:nth-child(7) { animation-delay: 0.38s; }
    .v8-quickgrid .q-item:nth-child(8) { animation-delay: 0.42s; }

    .v8-list .v8-list-row { animation: v8-slide-right 0.4s var(--v8-ease-out) both; }
    .v8-list .v8-list-row:nth-child(1) { animation-delay: 0.14s; }
    .v8-list .v8-list-row:nth-child(2) { animation-delay: 0.18s; }
    .v8-list .v8-list-row:nth-child(3) { animation-delay: 0.22s; }
    .v8-list .v8-list-row:nth-child(4) { animation-delay: 0.26s; }
    .v8-list .v8-list-row:nth-child(5) { animation-delay: 0.30s; }
    .v8-list .v8-list-row:nth-child(6) { animation-delay: 0.34s; }
    .v8-list .v8-list-row:nth-child(7) { animation-delay: 0.38s; }

    .v8-field .field-row { animation: v8-fade-in 0.4s var(--v8-ease-out) both; }
    .v8-field .field-row:nth-child(1) { animation-delay: 0.14s; }
    .v8-field .field-row:nth-child(2) { animation-delay: 0.18s; }
    .v8-field .field-row:nth-child(3) { animation-delay: 0.22s; }
    .v8-field .field-row:nth-child(4) { animation-delay: 0.26s; }

    .v8-rec-card, .v8-wd-card, .v8-order-card, .v8-task,
    .v8-vip-card, .v8-team-card, .v8-blog-card, .v8-fb-card,
    .v8-mail-card, .v8-ntc-card, .v8-pcard, .v8-bal-item,
    .v8-rw-item, .v8-mem-item {
        animation: v8-rise 0.55s var(--v8-ease-out) both;
    }
    .v8-rec-card:nth-of-type(1), .v8-wd-card:nth-of-type(1), .v8-order-card:nth-of-type(1),
    .v8-task:nth-of-type(1), .v8-vip-card:nth-of-type(1), .v8-team-card:nth-of-type(1),
    .v8-blog-card:nth-of-type(1), .v8-fb-card:nth-of-type(1), .v8-mail-card:nth-of-type(1),
    .v8-ntc-card:nth-of-type(1), .v8-pcard:nth-of-type(1) { animation-delay: 0.09s; }
    .v8-rec-card:nth-of-type(2), .v8-wd-card:nth-of-type(2), .v8-order-card:nth-of-type(2),
    .v8-task:nth-of-type(2), .v8-vip-card:nth-of-type(2), .v8-team-card:nth-of-type(2),
    .v8-blog-card:nth-of-type(2), .v8-fb-card:nth-of-type(2), .v8-mail-card:nth-of-type(2),
    .v8-ntc-card:nth-of-type(2), .v8-pcard:nth-of-type(2) { animation-delay: 0.15s; }
    .v8-rec-card:nth-of-type(3), .v8-wd-card:nth-of-type(3), .v8-order-card:nth-of-type(3),
    .v8-task:nth-of-type(3), .v8-vip-card:nth-of-type(3), .v8-team-card:nth-of-type(3),
    .v8-blog-card:nth-of-type(3), .v8-fb-card:nth-of-type(3), .v8-mail-card:nth-of-type(3),
    .v8-ntc-card:nth-of-type(3), .v8-pcard:nth-of-type(3) { animation-delay: 0.21s; }
    .v8-rec-card:nth-of-type(4), .v8-wd-card:nth-of-type(4), .v8-order-card:nth-of-type(4),
    .v8-task:nth-of-type(4), .v8-vip-card:nth-of-type(4), .v8-team-card:nth-of-type(4),
    .v8-blog-card:nth-of-type(4), .v8-fb-card:nth-of-type(4), .v8-mail-card:nth-of-type(4),
    .v8-ntc-card:nth-of-type(4), .v8-pcard:nth-of-type(4) { animation-delay: 0.27s; }

    .v8-bal-item:nth-child(1), .v8-rw-item:nth-child(1), .v8-mem-item:nth-child(1) { animation-delay: 0.09s; }
    .v8-bal-item:nth-child(2), .v8-rw-item:nth-child(2), .v8-mem-item:nth-child(2) { animation-delay: 0.13s; }
    .v8-bal-item:nth-child(3), .v8-rw-item:nth-child(3), .v8-mem-item:nth-child(3) { animation-delay: 0.17s; }
    .v8-bal-item:nth-child(4), .v8-rw-item:nth-child(4), .v8-mem-item:nth-child(4) { animation-delay: 0.21s; }
    .v8-bal-item:nth-child(5), .v8-rw-item:nth-child(5), .v8-mem-item:nth-child(5) { animation-delay: 0.25s; }

    .v8-avatar { animation: v8-float 6s ease-in-out 1.4s infinite; }
}

/* ============================
   Navbar — Alipay translucent
   ============================ */
.v8-navbar {
    position: sticky;
    top: 0;
    z-index: 50;
    height: 52px;
    padding: 0 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: saturate(180%) blur(22px);
    -webkit-backdrop-filter: saturate(180%) blur(22px);
    border-bottom: 1px solid var(--v8-separator);
}
.v8-navbar::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: -1px;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, rgba(22, 119, 255, 0.55) 50%, transparent 100%);
    background-size: 200% 100%;
    animation: v8-sheen 5s ease-in-out infinite;
}
.v8-navbar .nav-title {
    font-size: 17px; font-weight: 600;
    color: var(--v8-text);
    flex: 1; text-align: center; letter-spacing: 0.2px;
}
.v8-navbar .nav-btn {
    display: flex; align-items: center; justify-content: center;
    width: 38px; height: 38px;
    color: var(--v8-text);
    background: transparent;
    border-radius: 50%;
    border: 1px solid transparent;
    transition: background 0.22s var(--v8-ease-out), transform 0.14s var(--v8-ease-out);
}
.v8-navbar .nav-btn:hover { background: var(--v8-primary-ghost); }
.v8-navbar .nav-btn:active { transform: scale(0.88); background: var(--v8-primary-soft); }
.v8-navbar .nav-btn .layui-icon { font-size: 20px; color: var(--v8-text); }
.v8-navbar .nav-spacer { width: 38px; }

/* ============================
   Hero — Alipay blue gradient
   ============================ */
.v8-hero {
    position: relative;
    padding: 28px 22px 56px;
    color: #fff;
    overflow: hidden;
    background:
        radial-gradient(120% 90% at 100% 0%, rgba(255, 255, 255, 0.30) 0%, transparent 50%),
        radial-gradient(80% 70% at 0% 100%, rgba(0, 180, 255, 0.55) 0%, transparent 60%),
        linear-gradient(135deg, #1677FF 0%, #1296DB 45%, #00B4FF 100%);
    background-size: 100% 100%, 100% 100%, 220% 220%;
    animation: v8-hero-flow 12s ease-in-out infinite;
    border-radius: 0 0 28px 28px;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.30),
        0 14px 38px rgba(22, 119, 255, 0.32);
    margin-bottom: 4px;
}
@keyframes v8-hero-flow {
    0%, 100% { background-position: 100% 0%, 0% 100%, 0% 50%; }
    50%      { background-position: 100% 0%, 0% 100%, 100% 50%; }
}
.v8-hero::before {
    content: '';
    position: absolute;
    inset: -25%;
    background:
        radial-gradient(circle at 16% 22%, rgba(255, 255, 255, 0.35) 0%, transparent 28%),
        radial-gradient(circle at 86% 78%, rgba(255, 255, 255, 0.22) 0%, transparent 30%),
        radial-gradient(circle at 60% 30%, rgba(178, 226, 255, 0.30) 0%, transparent 24%);
    filter: blur(30px);
    animation: v8-float 9s ease-in-out infinite;
    pointer-events: none;
}
.v8-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle 1px at 20px 30px, rgba(255, 255, 255, 0.25) 1px, transparent 2px),
        radial-gradient(circle 1px at 60px 80px, rgba(255, 255, 255, 0.18) 1px, transparent 2px),
        radial-gradient(circle 1px at 100px 50px, rgba(255, 255, 255, 0.22) 1px, transparent 2px);
    background-size: 140px 140px;
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 35%, transparent 100%);
            mask-image: linear-gradient(180deg, transparent 0%, #000 35%, transparent 100%);
    pointer-events: none;
}
.v8-hero > * { position: relative; z-index: 2; }

.v8-hero + .v8-card,
.v8-hero + .v8-quickgrid,
.v8-hero + .v8-list,
.v8-hero + .v8-field { margin-top: -20px; position: relative; z-index: 3; }

.v8-hero-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.v8-hero-user { display: flex; align-items: center; gap: 14px; }

.v8-avatar {
    width: 56px; height: 56px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.22);
    display: flex; align-items: center; justify-content: center;
    font-size: 22px; font-weight: 700; color: #fff;
    overflow: hidden; flex-shrink: 0;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.30), 0 6px 18px rgba(0, 0, 0, 0.18);
}
.v8-avatar img { width: 100%; height: 100%; object-fit: cover; }
.v8-hero-name { font-size: 19px; font-weight: 700; letter-spacing: 0.1px; }
.v8-hero-sub { font-size: 13px; opacity: 0.92; margin-top: 3px; }
.v8-hero-title {
    font-size: 30px; font-weight: 800;
    letter-spacing: -0.4px; line-height: 1.12;
    margin-bottom: 8px; color: #fff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
    animation: v8-pop-in 0.7s var(--v8-spring) both;
}
.v8-hero-subtitle { font-size: 14px; opacity: 0.94; animation: v8-fade-in 0.8s 0.1s both; }

.v8-hero-chip {
    display: inline-flex; align-items: center; gap: 5px;
    height: 34px; padding: 0 14px;
    border-radius: var(--v8-radius-pill);
    background: rgba(255, 255, 255, 0.20);
    border: 1px solid rgba(255, 255, 255, 0.32);
    color: #fff; font-size: 13px; font-weight: 600;
    -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
    transition: background 0.2s var(--v8-ease-out), transform 0.1s var(--v8-ease-out);
}
.v8-hero-chip:active { transform: scale(0.94); background: rgba(255, 255, 255, 0.30); }
.v8-hero-cta {
    display: inline-flex; align-items: center; gap: 6px;
    height: 42px; padding: 0 22px; margin-top: 18px;
    border-radius: var(--v8-radius-pill);
    background: #fff; color: var(--v8-primary-deep);
    font-size: 14px; font-weight: 700;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.20);
    transition: transform 0.12s var(--v8-ease-out), box-shadow 0.18s var(--v8-ease-out);
}
.v8-hero-cta:hover { box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24); transform: translateY(-1px); }
.v8-hero-cta:active { transform: scale(0.96); }

/* ============================
   Glass module
   ============================ */
.v8-glass {
    position: relative;
    background: #FFFFFF;
    border: 1px solid var(--v8-separator);
    box-shadow: var(--v8-shadow);
    overflow: hidden;
    border-radius: var(--v8-radius-lg);
}
.v8-glass::after {
    content: '';
    position: absolute; inset: 0;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(22, 119, 255, 0.04) 0%, transparent 38%, transparent 62%, rgba(0, 180, 255, 0.04) 100%);
    pointer-events: none;
}

/* ============================
   Stat strip — overlap hero
   ============================ */
.v8-stat-strip {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
    margin: -34px 16px 4px;
    position: relative; z-index: 4;
    background: #FFFFFF;
    border: 1px solid var(--v8-separator);
    border-radius: var(--v8-radius-lg);
    box-shadow:
        0 4px 8px rgba(22, 119, 255, 0.06),
        0 18px 42px rgba(22, 119, 255, 0.14);
    overflow: hidden;
    animation: v8-rise 0.55s 0.12s var(--v8-ease-out) both;
}
.v8-stat-strip::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--v8-primary), var(--v8-cyan), var(--v8-primary), transparent);
    background-size: 200% 100%;
    animation: v8-border-flow 4s linear infinite;
}
.v8-stat-strip .ss-item {
    padding: 18px 10px;
    text-align: center;
    position: relative;
    transition: background 0.2s var(--v8-ease-out);
}
.v8-stat-strip .ss-item:active { background: var(--v8-primary-ghost); }
.v8-stat-strip .ss-item + .ss-item::before {
    content: '';
    position: absolute; left: 0; top: 22%; bottom: 22%;
    width: 1px; background: var(--v8-separator);
}
.v8-stat-strip .ss-val {
    font-size: 20px; font-weight: 800; letter-spacing: -0.3px;
    color: var(--v8-text); font-variant-numeric: tabular-nums;
    display: block;
    background: linear-gradient(135deg, var(--v8-text) 0%, var(--v8-text-secondary) 100%);
    -webkit-background-clip: text;
            background-clip: text;
    -webkit-text-fill-color: transparent;
}
.v8-stat-strip .ss-label {
    font-size: 12px; color: var(--v8-text-tertiary);
    margin-top: 5px; letter-spacing: 0.3px; font-weight: 500;
}
.v8-stat-strip .ss-item.accent .ss-val {
    background: linear-gradient(135deg, var(--v8-primary) 0%, var(--v8-cyan) 100%);
    -webkit-background-clip: text;
            background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ============================
   Card — Alipay flat with hover lift
   ============================ */
.v8-card {
    position: relative;
    background: #FFFFFF;
    border-radius: var(--v8-radius-lg);
    margin: 14px;
    padding: 18px;
    box-shadow: var(--v8-shadow-sm);
    border: 1px solid var(--v8-separator);
    transition: box-shadow 0.32s var(--v8-ease-out), transform 0.32s var(--v8-ease-out), border-color 0.32s var(--v8-ease-out);
}
.v8-card::before {
    content: '';
    position: absolute;
    left: 0; right: 0; top: 0;
    height: 3px;
    border-radius: var(--v8-radius-lg) var(--v8-radius-lg) 0 0;
    background: linear-gradient(90deg, var(--v8-primary), var(--v8-cyan), var(--v8-primary));
    background-size: 200% 100%;
    opacity: 0;
    transition: opacity 0.32s var(--v8-ease-out);
}
.v8-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--v8-shadow-lg), var(--v8-glow);
    border-color: var(--v8-border-glow);
}
.v8-card:hover::before { opacity: 1; animation: v8-border-flow 2.6s linear infinite; }
.v8-card:active { transform: translateY(-1px) scale(0.996); }

.v8-card.v8-card-primary {
    background:
        radial-gradient(120% 100% at 0% 0%, rgba(255, 255, 255, 0.30) 0%, transparent 45%),
        linear-gradient(135deg, #1677FF 0%, #0095EE 50%, #00B4FF 100%);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.40),
        0 14px 36px rgba(22, 119, 255, 0.34);
    overflow: hidden;
}
.v8-card.v8-card-primary::before { display: none; }
.v8-card.v8-card-primary::after {
    content: '';
    position: absolute;
    top: -55%; right: -25%;
    width: 220px; height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.32) 0%, transparent 60%);
    animation: v8-float 8s ease-in-out infinite;
    pointer-events: none;
}
.v8-card.v8-card-primary:hover { transform: translateY(-3px); box-shadow: 0 18px 44px rgba(22, 119, 255, 0.42); }

/* ============================
   Stats grid (on hero)
   ============================ */
.v8-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: rgba(255, 255, 255, 0.22);
    border-radius: var(--v8-radius);
    overflow: hidden;
}
.v8-stats .stat-item {
    background: rgba(255, 255, 255, 0.10);
    padding: 14px 4px; text-align: center;
    transition: background 0.2s var(--v8-ease-out);
}
.v8-stats .stat-item:hover { background: rgba(255, 255, 255, 0.22); }
.v8-stats .stat-value {
    font-size: 21px; font-weight: 700;
    letter-spacing: -0.2px;
    font-variant-numeric: tabular-nums;
    color: #fff;
    animation: v8-pop-in 0.6s var(--v8-spring) both;
}
.v8-stats .stat-label { font-size: 11px; opacity: 0.86; margin-top: 4px; }

/* ============================
   Quickgrid — Alipay 4-col app icons
   ============================ */
.v8-quickgrid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    margin: 14px;
    padding: 20px 12px 16px;
    border-radius: var(--v8-radius-lg);
    background: #FFFFFF;
    border: 1px solid var(--v8-separator);
    box-shadow: var(--v8-shadow-sm);
    position: relative;
    overflow: hidden;
}
.v8-quickgrid::before {
    content: '';
    position: absolute;
    top: 12px; right: 14px;
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--v8-primary);
    box-shadow: 0 0 8px rgba(22, 119, 255, 0.55);
    animation: v8-breathe 2.2s ease-in-out infinite;
    z-index: 2;
}
.v8-quickgrid .q-item {
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    padding: 12px 4px;
    border-radius: var(--v8-radius);
    background: transparent;
    border: 1px solid transparent;
    transition: background 0.22s var(--v8-ease-out), transform 0.22s var(--v8-spring);
    position: relative; z-index: 1;
}
.v8-quickgrid .q-item:hover {
    background: var(--v8-primary-ghost);
    transform: translateY(-3px);
}
.v8-quickgrid .q-item:active { transform: translateY(0) scale(0.94); }
.v8-quickgrid .q-icon {
    width: 48px; height: 48px;
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 22px;
    color: #fff;
    background: linear-gradient(135deg, #1677FF 0%, #0095EE 70%, #00B4FF 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.35),
        0 6px 14px rgba(22, 119, 255, 0.32);
    transition: transform 0.28s var(--v8-spring), box-shadow 0.28s var(--v8-ease-out);
    position: relative; overflow: hidden;
}
.v8-quickgrid .q-item:hover .q-icon {
    transform: translateY(-2px) scale(1.06);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 10px 22px rgba(22, 119, 255, 0.42);
}
.v8-quickgrid .q-icon::after {
    content: '';
    position: absolute;
    top: 0; left: -120%;
    width: 60%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
    transform: skewX(-22deg);
}
.v8-quickgrid .q-item:hover .q-icon::after { animation: v8-shimmer 0.9s var(--v8-ease-out); }
.v8-quickgrid .q-icon img { width: 26px; height: 26px; object-fit: contain; transition: transform 0.25s var(--v8-spring); position: relative; z-index: 1; filter: brightness(0) invert(1); }
.v8-quickgrid .q-item:hover .q-icon img { transform: scale(1.1) rotate(-6deg); }
.v8-quickgrid .q-item:active .q-icon img { transform: scale(0.88); }
.v8-quickgrid .q-icon.icon-orange { background: linear-gradient(135deg, #FFA940 0%, #FF7D00 100%); box-shadow: inset 0 1px 0 rgba(255,255,255,0.35), 0 6px 14px rgba(255,125,0,0.32); }
.v8-quickgrid .q-icon.icon-blue   { background: linear-gradient(135deg, #4DABFF 0%, #1677FF 100%); }
.v8-quickgrid .q-icon.icon-red    { background: linear-gradient(135deg, #FF7875 0%, #F53F3F 100%); box-shadow: inset 0 1px 0 rgba(255,255,255,0.35), 0 6px 14px rgba(245,63,63,0.30); }
.v8-quickgrid .q-icon.icon-yellow { background: linear-gradient(135deg, #FFD666 0%, #FFB400 100%); box-shadow: inset 0 1px 0 rgba(255,255,255,0.35), 0 6px 14px rgba(255,180,0,0.30); }
.v8-quickgrid .q-icon.icon-green  { background: linear-gradient(135deg, #4CD964 0%, #00B42A 100%); }
.v8-quickgrid .q-label { font-size: 12px; color: var(--v8-text); font-weight: 500; position: relative; z-index: 1; }

/* ============================
   Activity cards
   ============================ */
.v8-activity-grid { display: grid; gap: 12px; margin: 0 14px 22px; }
.v8-act-card {
    display: flex; align-items: center; gap: 14px;
    padding: 16px;
    border-radius: var(--v8-radius);
    position: relative; overflow: hidden;
    background: #FFFFFF;
    border: 1px solid var(--v8-separator);
    box-shadow: var(--v8-shadow-sm);
    transition: box-shadow 0.32s var(--v8-ease-out), transform 0.32s var(--v8-ease-out), border-color 0.32s var(--v8-ease-out);
    color: var(--v8-text);
    animation: v8-rise 0.55s var(--v8-ease-out) both;
}
.v8-act-card::after {
    content: '';
    position: absolute;
    top: 0; bottom: 0; left: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--v8-primary), var(--v8-cyan));
    box-shadow: 0 0 10px rgba(22, 119, 255, 0.5);
    opacity: 0; transition: opacity 0.32s var(--v8-ease-out);
}
.v8-act-card:nth-child(1) { animation-delay: 0.04s; }
.v8-act-card:nth-child(2) { animation-delay: 0.08s; }
.v8-act-card:nth-child(3) { animation-delay: 0.12s; }
.v8-act-card:nth-child(4) { animation-delay: 0.16s; }
.v8-act-card:hover {
    box-shadow: var(--v8-shadow), var(--v8-glow);
    transform: translateY(-3px);
    border-color: var(--v8-border-glow);
}
.v8-act-card:hover::after { opacity: 1; }
.v8-act-card:active { transform: translateY(0) scale(0.99); }
.v8-act-card.act-orange { border-left: 3px solid var(--v8-orange); }
.v8-act-card.act-blue   { border-left: 3px solid var(--v8-info); }
.v8-act-card.act-red    { border-left: 3px solid var(--v8-danger); }
.v8-act-card.act-green  { border-left: 3px solid var(--v8-success); }
.v8-act-card .act-icon {
    width: 52px; height: 52px;
    border-radius: 14px;
    flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    position: relative; z-index: 2;
    background: linear-gradient(135deg, #1677FF 0%, #00B4FF 100%);
    color: #fff;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.40),
        0 6px 16px rgba(22, 119, 255, 0.30);
}
.v8-act-card.act-orange .act-icon { background: linear-gradient(135deg, #FFA940, #FF7D00); box-shadow: inset 0 1px 0 rgba(255,255,255,0.40), 0 6px 16px rgba(255,125,0,0.30); }
.v8-act-card.act-blue .act-icon   { background: linear-gradient(135deg, #4DABFF, #1677FF); }
.v8-act-card.act-red .act-icon    { background: linear-gradient(135deg, #FF7875, #F53F3F); box-shadow: inset 0 1px 0 rgba(255,255,255,0.40), 0 6px 16px rgba(245,63,63,0.30); }
.v8-act-card.act-green .act-icon  { background: linear-gradient(135deg, #4CD964, #00B42A); box-shadow: inset 0 1px 0 rgba(255,255,255,0.40), 0 6px 16px rgba(0,180,42,0.30); }
.v8-act-card .act-icon img { width: 30px; height: 30px; object-fit: contain; transition: transform 0.28s var(--v8-spring); filter: brightness(0) invert(1); }
.v8-act-card:hover .act-icon img { transform: scale(1.12) rotate(-6deg); }
.v8-act-card .act-body { flex: 1; min-width: 0; position: relative; z-index: 2; }
.v8-act-card .act-title { font-size: 16px; font-weight: 600; color: var(--v8-text); }
.v8-act-card .act-desc { font-size: 12px; color: var(--v8-text-tertiary); margin-top: 5px; line-height: 1.45; word-break: break-all; }
.v8-act-card .act-highlight { color: var(--v8-primary); font-weight: 700; }
.v8-act-card .act-action {
    padding: 8px 16px;
    border-radius: var(--v8-radius-pill);
    background: linear-gradient(135deg, var(--v8-primary), var(--v8-cyan));
    color: #fff; font-size: 12px; font-weight: 600;
    border: none; position: relative; z-index: 2; flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(22, 119, 255, 0.32);
    transition: transform 0.18s var(--v8-spring);
}
.v8-act-card .act-action:active { transform: scale(0.92); }
.v8-act-card .act-chevron {
    font-size: 16px; color: var(--v8-text-tertiary);
    position: relative; z-index: 2; flex-shrink: 0;
    transition: transform 0.28s var(--v8-spring), color 0.28s var(--v8-ease-out);
}
.v8-act-card:hover .act-chevron { transform: translateX(5px); color: var(--v8-primary); }

/* ============================
   Section titles
   ============================ */
.v8-section-title {
    font-size: 18px; font-weight: 700;
    padding: 22px 20px 10px;
    letter-spacing: -0.2px; color: var(--v8-text);
    display: flex; align-items: center; gap: 10px;
}
.v8-section-title::before {
    content: '';
    width: 4px; height: 18px;
    background: linear-gradient(180deg, var(--v8-primary), var(--v8-cyan));
    border-radius: 2px; flex-shrink: 0;
    box-shadow: 0 0 8px rgba(22, 119, 255, 0.4);
}
.v8-section-sub { font-size: 13px; color: var(--v8-text-tertiary); padding: 0 20px 8px; }
.v8-list-header {
    font-size: 12px; color: var(--v8-text-tertiary);
    text-transform: uppercase; letter-spacing: 0.6px;
    padding: 18px 24px 8px; font-weight: 600;
    display: flex; align-items: center; gap: 8px;
}
.v8-list-header::before {
    content: '';
    width: 3px; height: 12px;
    background: linear-gradient(180deg, var(--v8-primary), var(--v8-cyan));
    border-radius: 2px;
}

/* ============================
   List — grouped Alipay style
   ============================ */
.v8-list {
    position: relative;
    background: #FFFFFF;
    border-radius: var(--v8-radius-lg);
    margin: 14px;
    overflow: hidden;
    box-shadow: var(--v8-shadow-sm);
    border: 1px solid var(--v8-separator);
}
.v8-list-row {
    display: flex; align-items: center;
    padding: 14px 16px;
    min-height: 56px;
    position: relative;
    transition: background 0.2s var(--v8-ease-out), padding-left 0.2s var(--v8-ease-out);
    color: var(--v8-text);
}
.v8-list-row::before {
    content: '';
    position: absolute;
    left: 0; top: 14px; bottom: 14px;
    width: 3px;
    border-radius: 0 3px 3px 0;
    background: linear-gradient(180deg, var(--v8-primary), var(--v8-cyan));
    opacity: 0;
    transition: opacity 0.2s var(--v8-ease-out);
}
.v8-list-row:hover { background: var(--v8-bg-hover); padding-left: 22px; }
.v8-list-row:hover::before { opacity: 1; }
.v8-list-row:active { background: var(--v8-primary-soft); }
.v8-list-row + .v8-list-row::after {
    content: '';
    position: absolute;
    top: 0; left: 62px; right: 0;
    height: 1px;
    background: var(--v8-separator);
}
.v8-list-row .row-icon {
    width: 36px; height: 36px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 16px;
    margin-right: 14px; flex-shrink: 0;
    background: linear-gradient(135deg, #1677FF 0%, #0095EE 70%, #00B4FF 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.40),
        0 5px 12px rgba(22, 119, 255, 0.30);
}
.v8-list-row .row-icon.icon-orange { background: linear-gradient(135deg, #FFA940, #FF7D00); box-shadow: 0 5px 12px rgba(255,125,0,0.30); }
.v8-list-row .row-icon.icon-blue   { background: linear-gradient(135deg, #4DABFF, #1677FF); }
.v8-list-row .row-icon.icon-red    { background: linear-gradient(135deg, #FF7875, #F53F3F); box-shadow: 0 5px 12px rgba(245,63,63,0.28); }
.v8-list-row .row-icon.icon-yellow { background: linear-gradient(135deg, #FFD666, #FFB400); box-shadow: 0 5px 12px rgba(255,180,0,0.28); }
.v8-list-row .row-icon.icon-green  { background: linear-gradient(135deg, #4CD964, #00B42A); box-shadow: 0 5px 12px rgba(0,180,42,0.28); }
.v8-list-row .row-icon.icon-gray   { background: linear-gradient(135deg, #C9CDD4, #86909C); }
.v8-list-row .row-title { flex: 1; font-size: 15px; color: var(--v8-text); font-weight: 500; }
.v8-list-row .row-value { color: var(--v8-text-tertiary); font-size: 14px; margin-right: 6px; }
.v8-list-row .row-chevron { font-size: 14px; color: var(--v8-text-quaternary); margin-left: 4px; transition: transform 0.22s var(--v8-ease-out); }
.v8-list-row:hover .row-chevron { transform: translateX(4px); color: var(--v8-primary); }

/* ============================
   Tabbar — Alipay floating bottom bar
   ============================ */
.v8-tabbar {
    position: fixed;
    left: 14px; right: 14px;
    bottom: calc(14px + var(--v8-safe-bottom));
    height: 68px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: saturate(180%) blur(24px);
    -webkit-backdrop-filter: saturate(180%) blur(24px);
    border: 1px solid var(--v8-separator);
    border-radius: 24px;
    display: flex;
    z-index: 100;
    box-shadow:
        0 2px 6px rgba(22, 119, 255, 0.08),
        0 16px 38px rgba(22, 119, 255, 0.20);
}
.v8-tabbar::before {
    content: '';
    position: absolute;
    top: 6px; left: 16%; right: 16%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(22, 119, 255, 0.6) 50%, transparent);
    background-size: 200% 100%;
    animation: v8-sheen 5s ease-in-out infinite;
    pointer-events: none;
}
.v8-tabbar .tab {
    flex: 1;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 3px;
    color: var(--v8-text-tertiary);
    font-size: 10px; font-weight: 500;
    transition: color 0.22s var(--v8-ease-out);
    position: relative;
}
.v8-tabbar .tab .layui-icon { font-size: 22px; line-height: 1; transition: transform 0.28s var(--v8-spring); }
.v8-tabbar .tab:active .layui-icon { transform: scale(0.86); }
.v8-tabbar .tab.active { color: var(--v8-primary); }
.v8-tabbar .tab.active .layui-icon { transform: translateY(-1px) scale(1.14); }
.v8-tabbar .tab.active::before {
    content: '';
    position: absolute;
    top: 7px; left: 50%;
    transform: translateX(-50%);
    width: 24px; height: 3px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--v8-primary), var(--v8-cyan));
    box-shadow: 0 0 10px rgba(22, 119, 255, 0.7);
    animation: v8-pop-in 0.4s var(--v8-spring);
}
.v8-tabbar .tab.active::after {
    content: '';
    position: absolute;
    top: 8px; left: 50%;
    width: 22px; height: 22px;
    margin-left: -11px;
    border-radius: 50%;
    border: 2px solid rgba(22, 119, 255, 0.4);
    animation: v8-ring 1.8s var(--v8-ease-out) infinite;
}

.v8-tabbar .tab-center { overflow: visible; }
.v8-tabbar .tab-center.active::before,
.v8-tabbar .tab-center.active::after { content: none; display: none; }
.v8-tabbar .tab-center .tab-fab {
    width: 58px; height: 58px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin-top: -34px;
    background: linear-gradient(135deg, #4DABFF 0%, #1677FF 45%, #0095EE 100%);
    color: #fff;
    border: 5px solid #FFFFFF;
    box-shadow:
        inset 0 2px 3px rgba(255, 255, 255, 0.55),
        0 0 0 1px rgba(22, 119, 255, 0.55),
        0 12px 26px rgba(22, 119, 255, 0.50);
    transition: transform 0.28s var(--v8-spring), box-shadow 0.28s var(--v8-ease-out);
    position: relative;
}
.v8-tabbar .tab-center .tab-fab::after {
    content: '';
    position: absolute; inset: -6px;
    border-radius: 50%;
    border: 2px solid rgba(22, 119, 255, 0.32);
    animation: v8-ring 2.4s var(--v8-ease-out) infinite;
}
.v8-tabbar .tab-center .tab-fab .layui-icon {
    font-size: 26px; line-height: 1; color: #fff;
    transition: transform 0.28s var(--v8-spring);
}
.v8-tabbar .tab-center:active .tab-fab { transform: scale(0.92) rotate(-8deg); }
.v8-tabbar .tab-center.active .tab-fab,
.v8-tabbar .tab-center .tab-fab:hover {
    box-shadow: 0 12px 30px rgba(22, 119, 255, 0.55), 0 2px 6px rgba(0, 0, 0, 0.10);
}
.v8-tabbar .tab-center .tab-center-label {
    font-size: 10px; font-weight: 600;
    color: var(--v8-text-tertiary);
    margin-top: 4px;
}
.v8-tabbar .tab-center.active .tab-center-label { color: var(--v8-primary); }

/* ============================
   Buttons — Alipay primary
   ============================ */
.v8-btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 0 24px;
    height: 46px;
    border-radius: var(--v8-radius-pill);
    background: linear-gradient(135deg, #1677FF 0%, #0095EE 60%, #00B4FF 100%);
    color: #fff;
    font-size: 15px; font-weight: 600;
    border: 1px solid transparent;
    cursor: pointer;
    position: relative; overflow: hidden;
    letter-spacing: 0.2px;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.35),
        0 6px 16px rgba(22, 119, 255, 0.36);
    transition: box-shadow 0.22s var(--v8-ease-out), transform 0.12s var(--v8-ease-out), filter 0.18s var(--v8-ease-out);
}
.v8-btn::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 42%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
    transform: translateX(-160%) skewX(-22deg);
    pointer-events: none;
}
.v8-btn:not(.v8-btn-secondary):not(.v8-btn-ghost):not(.v8-btn-outline)::before {
    animation: v8-shimmer 3.2s 0.6s ease-in-out infinite;
}
.v8-btn:hover { filter: brightness(1.05); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 10px 22px rgba(22, 119, 255, 0.46); transform: translateY(-1px); }
.v8-btn:active { transform: translateY(1px) scale(0.985); box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.10), 0 1px 3px rgba(22, 119, 255, 0.25); }
.v8-btn.v8-btn-block { display: flex; width: 100%; }
.v8-btn.v8-btn-ghost {
    background: var(--v8-primary-ghost);
    color: var(--v8-primary);
    border: 1px solid rgba(22, 119, 255, 0.22);
    box-shadow: none;
}
.v8-btn.v8-btn-ghost:hover { background: var(--v8-primary-soft); filter: none; }
.v8-btn.v8-btn-outline {
    background: transparent;
    color: var(--v8-primary);
    border: 1.5px solid var(--v8-primary);
    box-shadow: none;
}
.v8-btn.v8-btn-outline:hover { background: var(--v8-primary-ghost); filter: none; }
.v8-btn.v8-btn-secondary {
    background: #F4F6F9;
    color: var(--v8-text);
    border: 1px solid var(--v8-separator-opaque);
    box-shadow: var(--v8-shadow-sm);
}
.v8-btn.v8-btn-secondary:hover { background: #ECEFF3; filter: none; }
.v8-btn.v8-btn-pill { border-radius: var(--v8-radius-pill); }
.v8-btn.v8-btn-sm { height: 34px; padding: 0 16px; font-size: 14px; }

/* layui overrides */
.layui-btn {
    background: linear-gradient(135deg, #1677FF 0%, #0095EE 60%, #00B4FF 100%);
    border-radius: var(--v8-radius-pill);
    font-weight: 600;
    height: 46px; line-height: 46px;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.35),
        0 6px 16px rgba(22, 119, 255, 0.36);
    border: none;
    transition: filter 0.18s var(--v8-ease-out), transform 0.12s;
}
.layui-btn:hover { filter: brightness(1.05); transform: translateY(-1px); }
.layui-btn:active { transform: translateY(1px) scale(0.985); }
.layui-btn-primary {
    background: #F4F6F9;
    color: var(--v8-text);
    border: 1px solid var(--v8-separator-opaque);
    box-shadow: none;
}
.layui-input, .layui-select, .layui-textarea {
    background: #FFFFFF;
    border: 1px solid var(--v8-separator-opaque);
    border-radius: var(--v8-radius-sm);
    color: var(--v8-text);
    transition: border-color 0.2s var(--v8-ease-out), box-shadow 0.2s var(--v8-ease-out);
}
.layui-input:focus, .layui-textarea:focus {
    border-color: var(--v8-primary);
    box-shadow: 0 0 0 3px var(--v8-primary-soft);
}

.v8-field:has(.layui-form-select) { z-index: 100; position: relative; }
.v8-field:has(.layui-form-selected) { z-index: 9999; }
.v8-field.v8-select-open { z-index: 9999; position: relative; }
.v8-select-open input.field-input { visibility: hidden; pointer-events: none; }

.v8-field .field-row .layui-form-select { flex: 1; min-width: 0; position: relative; }
.v8-field .field-row .layui-form-select .layui-select-title input {
    background: transparent !important;
    border: none !important;
    color: var(--v8-text) !important;
    height: 56px;
    padding: 0 26px 0 0;
    box-shadow: none !important;
    cursor: pointer;
}
.v8-field .field-row .layui-form-select .layui-select-title input::placeholder { color: var(--v8-text-quaternary); }
.v8-field .field-row .layui-form-select .layui-edge { border-top-color: var(--v8-text-tertiary); right: 6px; }
.v8-field .field-row .layui-form-selected .layui-edge { border-top-color: var(--v8-primary); }
.layui-form-select dl,
dl.v8-floating-dl {
    background: #FFFFFF !important;
    border: 1px solid var(--v8-separator-opaque) !important;
    border-radius: var(--v8-radius) !important;
    box-shadow: var(--v8-shadow-lg) !important;
    color: var(--v8-text) !important;
    z-index: 9999;
    margin-top: 6px;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    max-height: 280px !important;
    -webkit-overflow-scrolling: touch;
}
.layui-form-select dl::-webkit-scrollbar,
dl.v8-floating-dl::-webkit-scrollbar { width: 6px; }
.layui-form-select dl::-webkit-scrollbar-track,
dl.v8-floating-dl::-webkit-scrollbar-track { background: transparent; }
.layui-form-select dl::-webkit-scrollbar-thumb,
dl.v8-floating-dl::-webkit-scrollbar-thumb { background: rgba(22, 119, 255, 0.28); border-radius: 3px; }
.layui-form-select dl dd,
dl.v8-floating-dl dd {
    color: var(--v8-text) !important;
    padding: 0 14px;
    line-height: 38px;
    transition: background 0.15s var(--v8-ease-out);
}
.layui-form-select dl dd:hover,
dl.v8-floating-dl dd:hover {
    background: var(--v8-primary-ghost) !important;
    color: var(--v8-primary) !important;
}
.layui-form-select dl dd.layui-this,
dl.v8-floating-dl dd.layui-this {
    background: var(--v8-primary-soft) !important;
    color: var(--v8-primary) !important;
    font-weight: 600;
}
.layui-form-select dl dd.layui-select-tips,
dl.v8-floating-dl dd.layui-select-tips { color: var(--v8-text-tertiary) !important; }
.layui-form-select dl dd.layui-disabled,
dl.v8-floating-dl dd.layui-disabled { color: var(--v8-text-quaternary) !important; background: transparent !important; }

/* ============================
   Field rows (form group)
   ============================ */
.v8-field {
    position: relative;
    background: #FFFFFF;
    border-radius: var(--v8-radius-lg);
    margin: 14px;
    overflow: visible;
    box-shadow: var(--v8-shadow-sm);
    border: 1px solid var(--v8-separator);
    transition: box-shadow 0.28s var(--v8-ease-out), border-color 0.28s var(--v8-ease-out);
}
.v8-field:focus-within {
    box-shadow: var(--v8-shadow-sm), var(--v8-glow);
    border-color: var(--v8-border-glow);
}
.v8-field .field-row {
    display: flex; align-items: center;
    padding: 0 16px;
    min-height: 56px;
    position: relative;
}
.v8-field .field-row + .field-row::before {
    content: '';
    position: absolute;
    top: 0; left: 16px; right: 16px;
    height: 1px;
    background: var(--v8-separator);
}
.v8-field .field-label { width: 96px; color: var(--v8-text); font-size: 14px; font-weight: 500; flex-shrink: 0; }
.v8-field .field-input {
    flex: 1; border: none; outline: none; background: transparent;
    font-size: 16px; color: var(--v8-text);
    padding: 14px 0; min-width: 0;
    -webkit-appearance: none; position: relative; z-index: 1;
}
.v8-field .field-input::placeholder { color: var(--v8-text-quaternary); }
.v8-field:has(.layui-form-selected) .field-row:not(:has(.layui-form-selected)) .field-input,
.v8-field:has(.layui-form-selected) .field-row:not(:has(.layui-form-selected)) input,
.v8-field:has(.layui-form-selected) .field-row:not(:has(.layui-form-selected)) select {
    visibility: hidden;
}
.v8-field .field-input option { background: #FFFFFF; color: var(--v8-text); }
.v8-field .field-row:focus-within { background: var(--v8-primary-ghost); }
.v8-field .field-suffix {
    color: var(--v8-primary);
    font-size: 14px; font-weight: 600;
    padding: 5px 12px;
    border-radius: var(--v8-radius-pill);
    background: var(--v8-primary-ghost);
    white-space: nowrap; cursor: pointer;
    transition: background 0.2s var(--v8-ease-out), transform 0.1s var(--v8-ease-out);
}
.v8-field .field-suffix:active { transform: scale(0.94); }
.v8-field .field-suffix.disabled { color: var(--v8-text-tertiary); background: rgba(29,33,41,0.05); pointer-events: none; }

/* Standalone auth input */
.v8-auth-input {
    display: flex; align-items: center;
    height: 52px; padding: 0 16px;
    background: #FFFFFF;
    border-radius: var(--v8-radius-pill);
    margin-bottom: 14px;
    border: 1.5px solid var(--v8-separator-opaque);
    transition: border-color 0.2s var(--v8-ease-out), box-shadow 0.2s var(--v8-ease-out);
}
.v8-auth-input:focus-within {
    border-color: var(--v8-primary);
    box-shadow: 0 0 0 4px var(--v8-primary-ghost);
}
.v8-auth-input .layui-icon { color: var(--v8-text-tertiary); font-size: 18px; margin-right: 12px; transition: color 0.2s; }
.v8-auth-input:focus-within .layui-icon { color: var(--v8-primary); }
.v8-auth-input input { flex: 1; background: transparent; border: none; outline: none; font-size: 16px; color: var(--v8-text); min-width: 0; }
.v8-auth-input input::placeholder { color: var(--v8-text-quaternary); }
.v8-auth-input .suffix-btn {
    color: var(--v8-primary);
    font-size: 14px; font-weight: 600;
    padding: 7px 14px;
    border-radius: var(--v8-radius-pill);
    background: var(--v8-primary-ghost);
    border: 1px solid rgba(22, 119, 255, 0.18);
    cursor: pointer; white-space: nowrap;
    transition: background 0.2s var(--v8-ease-out), transform 0.1s var(--v8-ease-out);
}
.v8-auth-input .suffix-btn:active { transform: scale(0.94); }
.v8-auth-input .suffix-btn.disabled { color: var(--v8-text-tertiary); background: rgba(29,33,41,0.05); border-color: transparent; pointer-events: none; }

/* ============================
   Badges
   ============================ */
.v8-badge {
    display: inline-flex; align-items: center;
    padding: 4px 12px;
    border-radius: var(--v8-radius-pill);
    font-size: 11px; font-weight: 600;
    background: linear-gradient(135deg, rgba(22, 119, 255, 0.14), rgba(0, 180, 255, 0.10));
    color: var(--v8-primary);
    line-height: 1.4; letter-spacing: 0.3px;
    border: 1px solid rgba(22, 119, 255, 0.22);
    text-transform: uppercase;
}
.v8-badge.v8-badge-vip {
    background: linear-gradient(135deg, rgba(255, 180, 0, 0.16), rgba(255, 125, 0, 0.12));
    color: var(--v8-orange);
    border-color: rgba(255, 125, 0, 0.30);
}
.v8-badge.v8-badge-gray {
    background: rgba(29, 33, 41, 0.05);
    color: var(--v8-text-tertiary);
    border-color: var(--v8-separator-opaque);
}

/* ============================
   Progress
   ============================ */
.v8-progress {
    height: 9px;
    background: rgba(29, 33, 41, 0.06);
    border-radius: 5px;
    overflow: hidden;
    position: relative;
}
.v8-progress .bar {
    height: 100%;
    background: linear-gradient(90deg, var(--v8-primary), var(--v8-cyan), var(--v8-primary-light));
    border-radius: 5px;
    position: relative;
    box-shadow: 0 0 10px rgba(22, 119, 255, 0.5);
    transition: width 0.6s var(--v8-ease-out);
}
.v8-progress .bar::after {
    content: '';
    position: absolute; inset: 0;
    background:
        linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.55), transparent),
        repeating-linear-gradient(45deg, rgba(255,255,255,0.10) 0 10px, transparent 10px 20px);
    background-size: 200% 100%, 28px 28px;
    animation: v8-shimmer 2s infinite, v8-progress-stripe 1s linear infinite;
}
.v8-progress.on-dark { background: rgba(255, 255, 255, 0.28); }
.v8-progress.on-dark .bar { background: #fff; box-shadow: 0 0 10px rgba(255, 255, 255, 0.6); }

/* ============================
   layer (popup) theming
   ============================ */
.layui-layer {
    border-radius: var(--v8-radius-lg) !important;
    box-shadow: var(--v8-shadow-lg) !important;
    background: #FFFFFF !important;
    color: var(--v8-text) !important;
    border: 1px solid var(--v8-separator-opaque);
}
.layui-layer-msg { border-radius: var(--v8-radius-lg) !important; background: #FFFFFF !important; color: var(--v8-text) !important; border: 1px solid var(--v8-separator-opaque) !important; box-shadow: var(--v8-shadow-lg) !important; }
.layui-layer-title { background: transparent !important; color: var(--v8-text) !important; border-bottom: 1px solid var(--v8-separator) !important; font-weight: 600; }
.layui-layer .layui-layer-setwin { top: 12px; right: 12px; }
.layui-layer .layui-layer-setwin a { background-color: rgba(29, 33, 41, 0.05) !important; border-radius: 50%; width: 24px; height: 24px; }
.layui-layer .layui-layer-close2 { border: 1px solid var(--v8-separator-opaque) !important; background-color: #FFFFFF !important; }

/* ============================
   Text / utility
   ============================ */
.v8-text-primary   { color: var(--v8-primary); }
.v8-text-danger    { color: var(--v8-danger); }
.v8-text-secondary { color: var(--v8-text-secondary); }
.v8-text-tertiary  { color: var(--v8-text-tertiary); }
.v8-text-xl { font-size: 22px; font-weight: 700; letter-spacing: -0.2px; }
.v8-text-lg { font-size: 18px; font-weight: 600; }
.v8-text-md { font-size: 15px; }
.v8-text-sm { font-size: 13px; }
.v8-text-xs { font-size: 11px; }
.v8-bold  { font-weight: 700; }
.v8-hide  { display: none !important; }
.v8-center { text-align: center; }

.v8-stack { display: flex; flex-direction: column; }
.v8-row   { display: flex; align-items: center; }
.v8-row-between { display: flex; align-items: center; justify-content: space-between; }
.v8-gap-4  { gap: 4px; }
.v8-gap-8  { gap: 8px; }
.v8-gap-12 { gap: 12px; }
.v8-flex-1 { flex: 1; min-width: 0; }
.v8-mt-4  { margin-top: 4px; }
.v8-mt-8  { margin-top: 8px; }
.v8-mt-12 { margin-top: 12px; }
.v8-mt-16 { margin-top: 16px; }
.v8-mt-20 { margin-top: 20px; }

.v8-num { font-variant-numeric: tabular-nums; font-feature-settings: 'tnum'; }

/* ============================
   Scrollbar (webkit)
   ============================ */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(22, 119, 255, 0.28); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(22, 119, 255, 0.45); }

/* ============================
   Marquee notice strip (Alipay top news)
   ============================ */
.v10-marquee {
    display: flex; align-items: center;
    margin: 12px 16px 0;
    padding: 10px 14px;
    background: linear-gradient(135deg, rgba(22,119,255,0.06), rgba(0,180,255,0.04));
    border: 1px solid rgba(22,119,255,0.14);
    border-radius: var(--v8-radius-pill);
    overflow: hidden;
    position: relative;
}
.v10-marquee .mq-tag {
    flex-shrink: 0; padding: 3px 10px; margin-right: 12px;
    background: linear-gradient(135deg, var(--v8-primary), var(--v8-cyan));
    color: #fff; font-size: 11px; font-weight: 700;
    border-radius: var(--v8-radius-pill);
}
.v10-marquee .mq-track {
    display: flex; gap: 60px;
    white-space: nowrap;
    animation: v8-marquee 28s linear infinite;
}
.v10-marquee .mq-track span { color: var(--v8-text-secondary); font-size: 13px; }

/* ============================
   Floating action ripple — for taps
   ============================ */
.v10-ripple { position: relative; overflow: hidden; }
.v10-ripple::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    width: 16px; height: 16px;
    top: 50%; left: 50%;
    background: rgba(22, 119, 255, 0.4);
    transform: translate(-50%, -50%) scale(0); opacity: 1;
    transition: transform 0.6s var(--v8-ease-out), opacity 0.6s var(--v8-ease-out);
    pointer-events: none;
}
.v10-ripple:active::after { transform: translate(-50%, -50%) scale(20); opacity: 0; }

/* ============================
   Decorative wave divider
   ============================ */
.v10-wave-divider {
    width: 100%; height: 28px;
    background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 28' preserveAspectRatio='none'><path fill='%23ffffff' d='M0 18 Q300 0 600 18 T1200 18 L1200 28 L0 28 Z'/></svg>") no-repeat center;
    background-size: 100% 100%;
    margin-top: -1px;
}

/* ============================
   Responsive clamp
   ============================ */
@media (min-width: 560px) {
    body {
        max-width: 480px;
        margin: 0 auto;
        box-shadow: 0 0 60px rgba(22, 119, 255, 0.16);
    }
    .v8-tabbar {
        max-width: 452px;
        left: 50%;
        transform: translateX(-50%);
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
