/* ============================================================
   UlziX 落地页设计系统 + 首页样式
   静态资源，经 {{ 'css/landing.css' | asset_url }} 直接加载，无需 webpack 编译。
   仅在首页/仪表盘模板中引入（mod_index_dashboard.html.twig）。
   ============================================================ */

/* ── 统一设计 tokens（CSS 变量）──
   设计方向：温柔、技术感、公益温度
   - 主色：从冷蓝调整为更柔和的现代蓝
   - 强调色：避免纯黑，改用温暖深灰
   - 背景：温和的暖白底色 */
:root {
    --bx-primary: #3b82f6;
    --bx-primary-hover: #60a5fa;
    --bx-primary-active: #2563eb;
    --bx-primary-soft: rgba(59, 130, 246, .08);
    --bx-primary-softer: rgba(59, 130, 246, .05);
    --bx-danger: #f87171;
    --bx-danger-bg: #fef2f2;
    --bx-success: #34d399;
    --bx-warning: #fbbf24;
    --bx-bg: #f8fafc;
    --bx-bg-elevated: #ffffff;
    --bx-card: #ffffff;
    --bx-text: #1e293b;
    --bx-text-muted: #64748b;
    --bx-text-subtle: #94a3b8;
    --bx-border: #e2e8f0;
    --bx-border-soft: rgba(226, 232, 240, .6);
    --bx-radius: 10px;
    --bx-radius-lg: 14px;
    --bx-shadow: 0 1px 3px rgba(15, 23, 42, .04), 0 1px 2px rgba(15, 23, 42, .03);
    --bx-shadow-hover: 0 8px 24px rgba(15, 23, 42, .08), 0 2px 6px rgba(15, 23, 42, .04);
    --bx-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
    --bx-ease: cubic-bezier(.2, .8, .2, 1);
}

body.dashboard {
    background: var(--bx-bg);
}

/* ── 未登录落地页：内容占满容器宽度（与全局 .container 统一为 1320px）── */
body.ux-landing .container {
    max-width: 1320px;
}
body.ux-landing .col-md-9 {
    flex: 0 0 100%;
    max-width: 100%;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* 未登录落地页：柔和环境光背景，让各板块在底色上自然衔接
   使用 background-attachment: fixed 让背景视口固定，滚动时不会出现"分割" */
body.ux-landing {
    background:
        radial-gradient(1100px 560px at 50% -6%, rgba(22, 119, 255, .07), transparent 62%),
        radial-gradient(820px 480px at 92% 16%, rgba(122, 162, 247, .06), transparent 55%),
        radial-gradient(720px 420px at 6% 30%, rgba(120, 210, 255, .05), transparent 55%),
        var(--bx-bg);
    background-attachment: fixed;
}
body.ux-landing .ux-section {
    margin-bottom: 3.75rem;
}

/* 登录仪表盘：放宽内容区，避免「中间细条」（与 quiet.css 全局 .container 统一为 1320px） */
body.dashboard .container {
    max-width: 1320px;
}

/* ── 通用动效原语 ── */
.ux-reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity .7s var(--bx-ease), transform .7s var(--bx-ease);
    will-change: opacity, transform;
}
body.ux-ready .ux-reveal {
    opacity: 1;
    transform: none;
}
.ux-card-rise {
    transition: transform .28s var(--bx-ease), box-shadow .28s var(--bx-ease);
}
.ux-card-rise:hover {
    transform: translateY(-2px);
    box-shadow: var(--bx-shadow-hover);
}

/* ══════════════════════ Hero ══════════════════════
   设计：浅色 Hero，使用品牌蓝的柔和渐变，背景干净，留白克制 */
.ux-hero {
    position: relative;
    overflow: hidden;
    color: var(--bx-text);
    border-radius: var(--bx-radius-lg);
    padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1.5rem, 5vw, 3.5rem);
    background:
        radial-gradient(ellipse 80% 60% at 90% 0%, rgba(96, 165, 250, .18), transparent 60%),
        radial-gradient(ellipse 60% 50% at 0% 100%, rgba(167, 139, 250, .12), transparent 60%),
        linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid var(--bx-border-soft);
    box-shadow: 0 4px 24px rgba(15, 23, 42, .04);
    margin-bottom: 2.5rem;
}
.ux-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(59, 130, 246, .04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(59, 130, 246, .04) 1px, transparent 1px);
    background-size: 56px 56px;
    -webkit-mask-image: radial-gradient(ellipse at 80% 0%, #000 0%, rgba(0, 0, 0, .5) 50%, transparent 78%);
    mask-image: radial-gradient(ellipse at 80% 0%, #000 0%, rgba(0, 0, 0, .5) 50%, transparent 78%);
    pointer-events: none;
}
.ux-hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: .5;
    pointer-events: none;
    will-change: transform;
    transform: translateY(var(--ux-parallax, 0));
    transition: transform .3s linear;
}
.ux-hero-orb--a {
    width: 280px;
    height: 280px;
    top: -90px;
    right: -60px;
    background: radial-gradient(circle, rgba(96, 165, 250, .55) 0%, transparent 70%);
    animation: ux-float 9s ease-in-out infinite;
}
.ux-hero-orb--b {
    width: 200px;
    height: 200px;
    bottom: -70px;
    left: 28%;
    background: radial-gradient(circle, rgba(167, 139, 250, .4) 0%, transparent 70%);
    animation: ux-float 11s ease-in-out infinite reverse;
}
@keyframes ux-float {
    0%, 100% { opacity: .4; }
    50% { opacity: .65; }
}

.ux-hero .ux-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 920px;
}
.ux-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .4rem .9rem;
    border-radius: 999px;
    background: var(--bx-primary-soft);
    border: 1px solid rgba(59, 130, 246, .18);
    font-size: .8rem;
    font-weight: 500;
    letter-spacing: .02em;
    color: var(--bx-primary-active);
    margin-bottom: 1.25rem;
}
.ux-hero-badge svg { width: 15px; height: 15px; }
.ux-hero h1 {
    font-size: clamp(1.7rem, 4.2vw, 2.6rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    letter-spacing: -.015em;
    color: var(--bx-text);
}
.ux-hero h1 .ux-grad {
    background: linear-gradient(120deg, #3b82f6, #8b5cf6);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.ux-hero p.ux-hero-sub {
    font-size: clamp(1rem, 2vw, 1.125rem);
    line-height: 1.7;
    color: var(--bx-text-muted);
    margin-bottom: 1.75rem;
    max-width: 760px;
}
.ux-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    margin-bottom: 2rem;
}
.ux-btn {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .72rem 1.35rem;
    border-radius: var(--bx-radius);
    font-weight: 600;
    font-size: .95rem;
    text-decoration: none;
    transition: all .2s var(--bx-ease);
    border: 1px solid transparent;
}
.ux-btn svg { width: 18px; height: 18px; }
.ux-btn--primary {
    background: var(--bx-primary);
    color: #fff;
    box-shadow: 0 4px 12px rgba(59, 130, 246, .25);
}
.ux-btn--primary:hover { background: var(--bx-primary-active); color: #fff; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(59, 130, 246, .3); }
.ux-btn--ghost {
    background: rgba(255, 255, 255, .6);
    color: var(--bx-text);
    border-color: var(--bx-border);
    backdrop-filter: blur(8px);
}
.ux-btn--ghost:hover { background: #fff; color: var(--bx-primary-active); border-color: var(--bx-primary); transform: translateY(-2px); }
.ux-btn--solid {
    background: var(--bx-primary);
    color: #fff;
}
.ux-btn--solid:hover { background: var(--bx-primary-active); color: #fff; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(59, 130, 246, .3); }
.ux-btn--outline {
    background: #fff;
    color: var(--bx-primary);
    border-color: var(--bx-primary);
}
.ux-btn--outline:hover { background: var(--bx-primary-soft); color: var(--bx-primary-active); transform: translateY(-2px); }

.ux-hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--bx-border);
}
.ux-hero-stat strong {
    display: block;
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.1;
    color: var(--bx-text);
}
.ux-hero-stat span {
    font-size: .82rem;
    color: var(--bx-text-muted);
}

/* ══════════════════════ 信任担保条 ══════════════════════ */
.ux-trust {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: .75rem;
    margin-bottom: 2.5rem;
}
@media (min-width: 992px) {
    .ux-trust { grid-template-columns: repeat(4, 1fr); }
}
.ux-trust-item {
    display: flex;
    align-items: center;
    gap: .75rem;
    background: var(--bx-card);
    border-radius: var(--bx-radius);
    box-shadow: var(--bx-shadow);
    padding: .9rem 1rem;
    transition: transform .28s var(--bx-ease), box-shadow .28s var(--bx-ease);
}
.ux-trust-item:hover { transform: translateY(-2px); box-shadow: var(--bx-shadow-hover); }
.ux-trust-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: var(--bx-radius);
    background: var(--bx-primary-soft);
    color: var(--bx-primary);
    display: flex;
    align-items: center;
    justify-content: center;
}
.ux-trust-icon svg { width: 22px; height: 22px; }
.ux-trust-item strong { display: block; font-size: .9rem; font-weight: 600; color: var(--bx-text); }
.ux-trust-item span { font-size: .78rem; color: var(--bx-text-muted); }

/* ══════════════════════ 公益云安静宣言 ══════════════════════ */
.ux-trust-note {
    display: flex;
    align-items: center;
    gap: 1.1rem;
    max-width: 980px;
    margin: 0 auto 2.75rem;
    padding: 0 .5rem;
}
.ux-trust-note p {
    margin: 0;
    font-size: .92rem;
    letter-spacing: .02em;
    color: var(--bx-text-muted);
    text-align: center;
    line-height: 1.7;
}
.ux-trust-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--bx-border) 30%, var(--bx-border) 70%, transparent);
}

/* ══════════════════════ 区块标题 ══════════════════════ */
.ux-section {
    margin-bottom: 2rem;
}
.ux-section-head {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 1.5rem;
}
.ux-section-head .ux-kicker {
    display: inline-block;
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .08em;
    color: var(--bx-primary);
    text-transform: uppercase;
    margin-bottom: .375rem;
}
.ux-section-head h2 {
    font-size: clamp(1.25rem, 2.5vw, 1.625rem);
    font-weight: 700;
    color: var(--bx-text);
    margin-bottom: .5rem;
    letter-spacing: -.01em;
}
.ux-section-head p {
    color: var(--bx-text-muted);
    line-height: 1.6;
    margin: 0;
    font-size: .875rem;
}

/* ══════════════════════ 产品/套餐卡片（与订购页同款 product-card）══════════════════════ */
/* 分类标题样式 - 品牌蓝装饰 */
.ux-cat-section {
    margin-bottom: 1.75rem;
}
.ux-cat-section:last-of-type {
    margin-bottom: 1rem;
}
.ux-cat-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--bx-text);
    margin-bottom: 0.75rem;
    padding-bottom: 0;
    border-bottom: none;
    letter-spacing: -0.005em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.ux-cat-title::before {
    content: '';
    width: 4px;
    height: 1em;
    background: linear-gradient(180deg, var(--bx-primary), var(--bx-primary-hover));
    border-radius: 1px;
}
.ux-cat-desc {
    font-size: 0.8125rem;
    color: var(--bx-text-muted);
    margin-bottom: 0.875rem;
    line-height: 1.5;
}
.ux-cat-desc p {
    margin: 0;
}

/* 产品网格 - 紧凑型布局 */
.ux-product-grid {
    display: grid;
    /* 每个分组按产品数动态取列数：1个=1列，2个=2列，3个=3列，4个=4列（最大），更多时也最多4列换行。
       这样即使容器宽 1280px，3 个产品也只占 3 列宽，剩余空间整组左对齐、不留空列。 */
    grid-template-columns: repeat(min(var(--count, 4), 4), minmax(0, 1fr));
    gap: 1rem;
    justify-content: stretch;
    justify-items: stretch;
}
@media (max-width: 768px) {
    .ux-product-grid {
        grid-template-columns: 1fr;
        gap: 0.875rem;
    }
}
@media (min-width: 769px) and (max-width: 1024px) {
    .ux-product-grid {
        /* 中等屏：3个产品→2列 + 1列（避免过窄），4个→2列×2行 */
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

/* 产品卡片 - 极简设计，去除渐变和装饰线 */
.ux-section .product-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--bx-border);
    border-radius: 10px;
    padding: 1rem 1.125rem;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
    position: relative;
    overflow: hidden;
    text-decoration: none !important;
}
.ux-section .product-card,
.ux-section .product-card:hover,
.ux-section .product-card:focus,
.ux-section .product-card:active {
    text-decoration: none !important;
    text-underline-offset: 0 !important;
}
/* 完全去除顶部装饰线 */
.ux-section .product-card::before {
    display: none;
}
.ux-section .product-card:hover {
    transform: translateY(-2px);
    border-color: var(--bx-primary);
    box-shadow: 0 4px 16px rgba(59, 130, 246, .12);
}

/* 已售罄卡片特殊样式 */
.ux-section .product-card.sold-out {
    opacity: 0.6;
    background: #fafbfc;
    border-color: var(--bx-border);
}
.ux-section .product-card.sold-out:hover {
    transform: none;
    border-color: var(--bx-border);
    box-shadow: none;
}
.ux-section .product-card.sold-out .product-card-btn {
    background: transparent;
    color: #8c8c8c;
    border: 1px solid #d9d9d9;
    cursor: not-allowed;
}
.ux-section .product-card.sold-out:hover .product-card-btn {
    background: transparent;
    color: var(--bx-text-subtle);
}

/* 产品卡片标题 - 使用温暖深灰代替纯黑 */
.ux-section .product-card-title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--bx-text);
    margin-bottom: 0.625rem;
    line-height: 1.4;
    text-decoration: none !important;
    padding-right: 3.5rem;
}
.ux-section .product-card-title:hover,
.ux-section .product-card-title:focus {
    text-decoration: none !important;
}

/* 产品卡片标签 - 极简风 */
.ux-section .product-card-stripe {
    position: absolute;
    top: 0.875rem;
    right: 0.875rem;
    padding: 0.125rem 0.5rem;
    border-radius: 3px;
    font-size: 0.6875rem;
    font-weight: 500;
    line-height: 1.4;
    z-index: 1;
}
.ux-section .product-card-stripe.sold-out {
    background: transparent;
    color: var(--bx-text-subtle);
    border: 1px solid var(--bx-border);
}
.ux-section .product-card-stripe.promo {
    background: transparent;
    color: var(--bx-primary-active);
    border: 1px solid var(--bx-primary);
}

/* 产品卡片价格 - 品牌色 */
.ux-section .product-card-price {
    display: flex;
    align-items: baseline;
    gap: 0.375rem;
    margin-top: auto;
    margin-bottom: 0.75rem;
}
.ux-section .product-card-price .price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--bx-primary-active);
    line-height: 1;
    font-feature-settings: "tnum";
}
.ux-section .product-card-price .period {
    font-size: 0.8125rem;
    color: var(--bx-text-muted);
    font-weight: 400;
}
.ux-section .product-card-price .original {
    font-size: 0.8125rem;
    color: var(--bx-text-subtle);
    text-decoration: line-through;
    font-weight: 400;
}

/* 产品卡片按钮 - 品牌蓝渐变，去除纯黑 */
.ux-section .product-card-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    padding: 0.5rem 1rem;
    background: var(--bx-primary);
    color: #fff;
    border-radius: 6px;
    font-size: 0.8125rem;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    transition: background 0.2s ease;
}
.ux-section .product-card-btn::after {
    content: '→';
    font-size: 0.875rem;
    transition: transform 0.2s ease;
}
.ux-section .product-card:hover .product-card-btn {
    background: var(--bx-primary-active);
}
.ux-section .product-card:hover .product-card-btn::after {
    transform: translateX(2px);
}

/* 查看更多按钮 - 品牌蓝边框 */
.ux-section .text-center {
    margin-top: 2rem;
}
.ux-section .ux-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.5rem;
    background: #fff;
    color: var(--bx-primary);
    border: 1px solid var(--bx-primary);
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}
.ux-section .ux-btn svg {
    width: 14px;
    height: 14px;
    transition: transform 0.2s ease;
}
.ux-section .ux-btn:hover {
    background: var(--bx-primary);
    color: #fff;
}
.ux-section .ux-btn:hover svg {
    transform: translateX(3px);
}

/* 首页产品卡片描述区域 - 规格列表式排版 */
.ux-section .product-card-desc {
    flex: 1;
    margin-bottom: 0.75rem;
    font-size: 0.75rem;
    line-height: 1.6;
    color: #595959;
    overflow: hidden;
    white-space: normal;
}
.ux-section .product-card-desc *,
.ux-section .product-card-desc p,
.ux-section .product-card-desc span,
.ux-section .product-card-desc strong,
.ux-section .product-card-desc em,
.ux-section .product-card-desc a {
    text-decoration: none !important;
    border-bottom: none !important;
    font-style: normal;
    color: inherit;
}
.ux-section .product-card-desc p {
    margin: 0;
    padding: 0;
    font-size: 0.75rem;
    color: #595959;
    line-height: 1.6;
}
.ux-section .product-card-desc p + p {
    margin-top: 0.25rem;
}

/* 占位产品 */
.ux-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: .5rem;
    min-height: 220px;
    background: var(--bx-card);
    border: 1px dashed var(--bx-border);
    border-radius: var(--bx-radius-lg);
    color: var(--bx-text-muted);
    padding: 1.5rem;
}
.ux-placeholder svg { width: 40px; height: 40px; opacity: .5; }

/* ══════════════════════ 特性/能力 ══════════════════════ */
.ux-features {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1px;
    background: var(--bx-border);
    border: 1px solid var(--bx-border);
    border-radius: var(--bx-radius-lg);
    overflow: hidden;
}
@media (min-width: 768px) {
    .ux-features { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1200px) {
    .ux-features { grid-template-columns: repeat(4, 1fr); }
}
.ux-feature {
    background: #fff;
    padding: 1.75rem 1.5rem;
    transition: background-color .28s var(--bx-ease);
}
.ux-feature:hover { transform: none; box-shadow: none; background: var(--bx-primary-softer); }
.ux-feature-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--bx-radius);
    background: var(--bx-primary-soft);
    color: var(--bx-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}
.ux-feature-icon svg { width: 24px; height: 24px; }
.ux-feature h3 { font-size: 1rem; font-weight: 600; margin-bottom: .4rem; color: var(--bx-text); }
.ux-feature p { font-size: .84rem; color: var(--bx-text-muted); line-height: 1.6; margin: 0; }

/* ══════════════════════ FAQ ══════════════════════ */
.ux-faq {
    max-width: 860px;
    margin: 0 auto;
    border: 1px solid var(--bx-border);
    border-radius: var(--bx-radius-lg);
    overflow: hidden;
    background: #fff;
}
.ux-faq-item {
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    margin-bottom: 0;
    border-bottom: 1px solid var(--bx-border);
    overflow: hidden;
}
.ux-faq-item:last-child { border-bottom: none; }
.ux-faq-item:hover { background: var(--bx-primary-softer); }
.ux-faq-q {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    width: 100%;
    padding: 1rem 1.25rem;
    background: none;
    border: none;
    text-align: left;
    font-size: .95rem;
    font-weight: 600;
    color: var(--bx-text);
    cursor: pointer;
    transition: color .2s ease;
}
.ux-faq-q:hover { color: var(--bx-primary-active); }
.ux-faq-q svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: var(--bx-primary);
    transition: transform .25s var(--bx-ease);
}
.ux-faq-item.open .ux-faq-q svg { transform: rotate(180deg); }
.ux-faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height .28s var(--bx-ease);
}
.ux-faq-a-inner {
    padding: 0 1.25rem 1.1rem;
    font-size: .88rem;
    color: var(--bx-text-muted);
    line-height: 1.7;
}

/* ══════════════════════ 底部 CTA ══════════════════════
   设计：浅色 CTA，温暖简洁，与整体设计一致 */
.ux-final-cta {
    position: relative;
    overflow: hidden;
    text-align: center;
    color: var(--bx-text);
    border-radius: var(--bx-radius-lg);
    padding: clamp(2.5rem, 5vw, 3.5rem) clamp(1.5rem, 4vw, 3rem);
    background:
        radial-gradient(ellipse 70% 50% at 50% 0%, rgba(96, 165, 250, .14), transparent 70%),
        linear-gradient(180deg, #ffffff 0%, #f1f5f9 100%);
    border: 1px solid var(--bx-border);
    box-shadow: 0 4px 24px rgba(15, 23, 42, .04);
    margin-bottom: 2rem;
}
.ux-final-cta::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 80% 20%, rgba(167, 139, 250, .1) 0%, transparent 50%),
        radial-gradient(circle at 20% 90%, rgba(59, 130, 246, .08) 0%, transparent 50%);
    pointer-events: none;
}
.ux-final-cta .ux-final-inner { position: relative; z-index: 1; }
.ux-final-cta h2 {
    font-size: clamp(1.4rem, 3vw, 1.9rem);
    font-weight: 700;
    margin-bottom: .6rem;
    color: var(--bx-text);
}
.ux-final-cta p {
    font-size: 1rem;
    color: var(--bx-text-muted);
    margin: 0 auto 1.5rem;
    max-width: 680px;
    line-height: 1.7;
}
.ux-final-cta .ux-btn {
    background: var(--bx-primary);
    color: #fff;
    border: 1px solid var(--bx-primary);
    box-shadow: 0 4px 12px rgba(59, 130, 246, .25);
}
.ux-final-cta .ux-btn:hover { background: var(--bx-primary-active); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(59, 130, 246, .3); }
.ux-final-support {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.25rem;
    margin-top: 1.5rem;
    font-size: .85rem;
}
.ux-final-support a {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    color: var(--bx-text-muted);
    text-decoration: none;
    transition: color .2s ease;
}
.ux-final-support a:hover { color: var(--bx-primary); }
.ux-final-support svg { width: 16px; height: 16px; }

/* ══════════════════════ 登录仪表盘（资产总览等）══════════════════════ */
.ux-icon { width: 20px; height: 20px; fill: currentColor; }
.ux-icon-sm { width: 16px; height: 16px; }

/* 通知条 */
.ux-alert-bar {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .8rem 1rem;
    border-radius: var(--bx-radius);
    font-size: .9rem;
}
.ux-alert-info { background: var(--bx-primary-soft); color: var(--bx-primary-active); border: 1px solid rgba(59, 130, 246, .18); }
.ux-alert-msg { flex-grow: 1; }
.ux-alert-close {
    background: none;
    border: none;
    color: inherit;
    opacity: .6;
    cursor: pointer;
    padding: .25rem;
    display: flex;
}
.ux-alert-close:hover { opacity: 1; }

/* 顶部统计卡 */
.ux-reveal-parent { display: flex; flex-wrap: wrap; }
.ux-reveal-item { opacity: 0; transform: translateY(12px); animation: ux-rise-in .6s var(--bx-ease) forwards; }
.ux-reveal-item:nth-child(1) { animation-delay: .05s; }
.ux-reveal-item:nth-child(2) { animation-delay: .12s; }
.ux-reveal-item:nth-child(3) { animation-delay: .19s; }
.ux-reveal-item:nth-child(4) { animation-delay: .26s; }
@keyframes ux-rise-in { to { opacity: 1; transform: none; } }

.ux-stat-card { transition: transform .28s var(--bx-ease), box-shadow .28s var(--bx-ease); }
.ux-stat-card:hover { transform: translateY(-2px); box-shadow: var(--bx-shadow-hover); }
.ux-stat-icon {
    width: 34px;
    height: 34px;
    border-radius: var(--bx-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.ux-stat-icon .ux-icon { width: 18px; height: 18px; }
.ux-stat-icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; }
.ux-stat-label { font-size: .8rem; color: var(--bx-text-muted); }
.ux-stat-value { font-size: 1.35rem; font-weight: 800; color: var(--bx-text); line-height: 1.2; }
.ux-stat-sub { font-size: .78rem; color: var(--bx-text-muted); }

.ux-card-hover { transition: transform .25s var(--bx-ease), box-shadow .25s var(--bx-ease); }
.ux-card-hover:hover { transform: translateY(-2px); box-shadow: var(--bx-shadow-hover); }

/* 到期徽标 */
.ux-due-badge {
    font-size: .75rem;
    font-weight: 600;
    padding: .25rem .6rem;
    border-radius: 999px;
    white-space: nowrap;
}
.ux-due-badge.normal { background: var(--bx-primary-soft); color: var(--bx-primary); }
.ux-due-badge.urgent { background: var(--bx-danger-bg); color: var(--bx-danger); }

/* 空状态 */
.ux-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: .4rem;
    padding: 2.5rem 1.5rem;
}
.ux-empty-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--bx-primary-soft);
    color: var(--bx-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: .25rem;
}
.ux-empty-icon.is-muted { background: rgba(110, 119, 129, .1); color: var(--bx-text-muted); }
.ux-empty-icon .ux-icon,
.ux-empty-icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2; }
.ux-empty-title { font-weight: 600; color: var(--bx-text); }
.ux-empty-desc { font-size: .85rem; color: var(--bx-text-muted); }
.ux-empty-cta { margin-top: .5rem; }

/* ── 专注态：露出焦点环 ── */
.ux-btn:focus-visible,
.ux-faq-q:focus-visible {
    outline: 2px solid var(--bx-primary-hover);
    outline-offset: 2px;
}

/* ── 减少动效偏好 ── */
@media (prefers-reduced-motion: reduce) {
    .ux-reveal { opacity: 1; transform: none; transition: none; }
    .ux-hero-orb { animation: none; }
    .ux-card-rise:hover, .ux-trust-item:hover,
    .product-card:hover, .ux-feature:hover { transform: none; }
}