/* ================================================================
   积分商城 - 高级感渐变动效 UI 设计系统
   ================================================================ */

/* ---------- 基础变量 ---------- */
:root {
    --primary: #667eea;
    --primary-dark: #5a67d8;
    --secondary: #764ba2;
    --accent: #f093fb;
    --danger: #f5576c;
    --success: #11998e;
    --warning: #f59e0b;
    --bg: #f0f2f8;
    --card-bg: rgba(255,255,255,0.92);
    --text: #2d3748;
    --text-light: #718096;
    --radius: 16px;
    --shadow: 0 4px 24px rgba(102,126,234,0.12);
    --shadow-lg: 0 12px 48px rgba(102,126,234,0.18);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- 全局 ---------- */
* { margin:0; padding:0; box-sizing:border-box; }
html, body {
    height: 100%;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background: var(--bg);
    color: var(--text);
    font-size: 14px;
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    padding-bottom: 80px;
}
a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--secondary); }
img { max-width: 100%; }

/* ---------- 顶部导航 ---------- */
.nav-gradient {
    position: sticky; top:0; z-index:99;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    box-shadow: 0 4px 20px rgba(102,126,234,0.35);
    padding: 12px 16px;
    display: flex; align-items: center; gap: 12px;
    color: #fff;
    backdrop-filter: blur(10px);
}
.nav-gradient a { color: #fff; }
.nav-gradient .nav-title {
    min-width: 0;
    flex: 1;
    padding-right: 112px;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: 0.5px;
    overflow-wrap: anywhere;
}
.nav-gradient .nav-back { font-size: 20px; width: 28px; }

.install-app-btn {
    position: fixed;
    top: 10px;
    right: 20px;
    z-index: 9999;
    width: auto;
    max-width: 112px;
    max-height: 46px;
    padding: 6px 14px;
    overflow: hidden;
    color: #333;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    font-size: 13px;
    line-height: 16px;
    overflow-wrap: anywhere;
    white-space: normal;
    cursor: pointer;
}

/* ---------- 卡片 ---------- */
.card-glass {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--radius);
    padding: 16px;
    margin: 12px 14px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    z-index: 1;
    animation: fadeInUp 0.5s ease both;
}
.card-glass:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}
.card-glass:active { transform: scale(0.985); }

@keyframes fadeInUp {
    from { opacity:0; transform: translateY(24px); }
    to   { opacity:1; transform: translateY(0); }
}

/* 交错动画延迟 */
.card-glass:nth-child(1) { animation-delay: 0.05s; }
.card-glass:nth-child(2) { animation-delay: 0.10s; }
.card-glass:nth-child(3) { animation-delay: 0.15s; }
.card-glass:nth-child(4) { animation-delay: 0.20s; }
.card-glass:nth-child(5) { animation-delay: 0.25s; }
.card-glass:nth-child(6) { animation-delay: 0.30s; }

/* ---------- 渐变按钮 ---------- */
.btn-grad {
    display: inline-block; width:100%;
    padding: 12px 24px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff !important;
    border: none;
    border-radius: 50px;
    font-size: 15px; font-weight: 600;
    cursor: pointer;
    letter-spacing: 0.5px;
    transition: var(--transition);
    box-shadow: 0 4px 16px rgba(102,126,234,0.4);
    text-align: center;
    position: relative;
    overflow: hidden;
}
.btn-grad::after {
    content: '';
    position: absolute; top:0; left:-100%; width:100%; height:100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
    transition: left 0.5s;
}
.btn-grad:hover::after { left: 100%; }
.btn-grad:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(102,126,234,0.5); }
.btn-grad:active { transform: scale(0.96); }
.btn-grad:disabled { background: #cbd5e0; box-shadow: none; cursor: not-allowed; }

.btn-grad-sm {

    padding: 8px 18px;
    font-size: 13px;
    border-radius: 40px;
    width: auto;
}
.btn-danger-grad {
    background: linear-gradient(135deg, #f5576c, #f093fb);
    box-shadow: 0 4px 16px rgba(245,87,108,0.4);
}
.btn-success-grad {
    background: linear-gradient(135deg, #11998e, #38ef7d);
    box-shadow: 0 4px 16px rgba(17,153,142,0.4);
}
.btn-gold-grad {
    background: linear-gradient(135deg, #f59e0b, #fbbf24);
    color: #1a202c !important;
    box-shadow: 0 4px 16px rgba(245,158,11,0.4);
}

/* ---------- 渐变色文字/图标 ---------- */
.price-grad {
    background: linear-gradient(135deg, #f5576c, #f093fb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}
.points-grad {
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}
.vip-grad {
    background: linear-gradient(135deg, #f59e0b, #fbbf24, #f59e0b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
    animation: shimmer 2s ease-in-out infinite;
    background-size: 200% auto;
}
@keyframes shimmer {
    0%,100% { background-position: 0% center; }
    50%     { background-position: 200% center; }
}

/* ---------- 统计数字卡片 ---------- */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 4px 14px 0;
}
.stat-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 14px 10px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.5s ease both;
}
.stat-card::before {
    content: '';
    position: absolute; top:0; left:0; right:0; height:3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
}
.stat-card .stat-num {
    font-size: 24px; font-weight: 800; line-height: 1.2;
}
.stat-card .stat-label {
    font-size: 12px; color: var(--text-light); margin-top: 4px;
}
.stat-card:nth-child(2)::before { background: linear-gradient(90deg, #f5576c, #f093fb); }
.stat-card:nth-child(3)::before { background: linear-gradient(90deg, #11998e, #38ef7d); }
.stat-card:nth-child(4)::before { background: linear-gradient(90deg, #f59e0b, #fbbf24); }

/* ---------- 底部导航 ---------- */
.footer-nav {
    position: fixed; bottom:0; left:0; right:0; z-index:100;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    justify-content: space-around;
    padding: 6px 0 env(safe-area-inset-bottom, 8px);
    border-top: 1px solid rgba(0,0,0,0.06);
    box-shadow: 0 -4px 20px rgba(0,0,0,0.06);
}
.footer-nav a {
    display: flex; flex-direction: column; align-items: center;
    padding: 4px 0; font-size: 11px; color: var(--text-light);
    text-decoration: none; transition: var(--transition);
    min-width: 0;
    max-height: 58px;
    flex: 1 1 20%;
    overflow: hidden;
    line-height: 1.15;
    overflow-wrap: anywhere;
    text-align: center;
}
.footer-nav a .nav-icon {
    font-size: 22px; margin-bottom: 2px;
    transition: var(--transition);
}
.footer-nav a.active {
    color: var(--primary);
}
.footer-nav a.active .nav-icon {
    transform: translateY(-3px);
    filter: drop-shadow(0 2px 4px rgba(102,126,234,0.4));
}

/* ---------- 表单 ---------- */
.input-grad {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 14px;
    transition: var(--transition);
    background: #fff;
    outline: none;
    margin-bottom: 10px;
}
.input-grad:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(102,126,234,0.15);
}
.input-group-grad {
    display: flex; gap: 8px; margin-bottom: 10px;
}
.input-group-grad .input-grad { flex:1; margin-bottom: 0; }
.input-group-grad .btn-grad { width: auto; white-space: nowrap; }

/* ---------- 标签/徽章 ---------- */
.badge-grad {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px; font-weight: 600;
    letter-spacing: 0.3px;
}
.badge-primary { background: linear-gradient(135deg, #667eea, #764ba2); color:#fff; }
.badge-success { background: linear-gradient(135deg, #11998e, #38ef7d); color:#fff; }
.badge-danger  { background: linear-gradient(135deg, #f5576c, #f093fb); color:#fff; }
.badge-warning { background: linear-gradient(135deg, #f59e0b, #fbbf24); color:#1a202c; }

/* ---------- Tab 切换 ---------- */
.tab-grad {
    display: flex;
    background: #fff;
    border-radius: 12px;
    padding: 4px;
    margin: 0 14px 14px;
    box-shadow: var(--shadow);
    position: relative;
    z-index: 1;
}
.tab-grad a {
    flex:1; text-align:center; padding:10px 0;
    border-radius: 10px;
    font-size:13px; color: var(--text-light);
    transition: var(--transition);
    text-decoration: none;
    font-weight: 500;
}
.tab-grad a.active {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    font-weight: 600;
    box-shadow: 0 2px 12px rgba(102,126,234,0.3);
}

/* ---------- 功能入口(4宫格) ---------- */
.func-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    padding: 0 14px;
    margin-bottom: 14px;
}
.func-item {
    display: flex; flex-direction: column; align-items: center;
    padding: 16px 8px;
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
    text-decoration: none;
    color: var(--text);
    animation: fadeInUp 0.5s ease both;
}
.func-item:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.func-item .func-icon {
    width: 44px; height: 44px;
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 24px;
    margin-bottom: 8px;
    color: #fff;
}
.func-item:nth-child(1) .func-icon { background: linear-gradient(135deg, #667eea, #764ba2); }
.func-item:nth-child(2) .func-icon { background: linear-gradient(135deg, #f093fb, #f5576c); }
.func-item:nth-child(3) .func-icon { background: linear-gradient(135deg, #11998e, #38ef7d); }
.func-item:nth-child(4) .func-icon { background: linear-gradient(135deg, #f59e0b, #fbbf24); }

/* ---------- 轮播图 ---------- */
.carousel-wrap {
    margin: 14px; border-radius: var(--radius);
    overflow: hidden; box-shadow: var(--shadow-lg);
    position: relative; z-index: 1;
}
.carousel-wrap img {
    width:100%; height:180px; object-fit:cover; display:block;
}

/* ---------- 商品卡片 ---------- */
.product-card {
    display: flex; gap: 12px;
    cursor: pointer;
}
.product-card img {
    width: 100px; height: 100px;
    object-fit: cover; border-radius: 12px;
}
.product-card .prod-info { flex:1; display:flex; flex-direction: column; justify-content: space-between; }
.product-card .prod-name { font-size: 15px; font-weight: 600; }
.product-card .prod-desc { font-size: 12px; color: var(--text-light); }
.product-card .prod-price { font-size: 18px; font-weight: 800; }

/* ---------- 加载动画 ---------- */
.loading-spinner {
    width: 40px; height: 40px;
    border: 3px solid #e2e8f0;
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 40px auto;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- 空状态 ---------- */
.empty-state {
    text-align: center; padding: 50px 20px; color: var(--text-light);
    animation: fadeInUp 0.5s ease;
}
.empty-state .empty-icon { font-size: 56px; display:block; margin-bottom: 12px; opacity:0.5; }

/* ---------- 提示消息 ---------- */
.toast {
    position: fixed; top: 16px; left: 50%; transform: translateX(-50%); z-index: 9999;
    padding: 12px 24px;
    border-radius: 50px;
    color: #fff; font-weight: 600; font-size: 14px;
    box-shadow: var(--shadow-lg);
    animation: toastIn 0.4s ease;
    background: linear-gradient(135deg, #667eea, #764ba2);
}
.toast.error { background: linear-gradient(135deg, #f5576c, #f093fb); }
.toast.success { background: linear-gradient(135deg, #11998e, #38ef7d); }
@keyframes toastIn {
    from { opacity:0; transform: translateX(-50%) translateY(-20px); }
    to   { opacity:1; transform: translateX(-50%) translateY(0); }
}

/* ---------- 进度条 ---------- */
.progress-wrap {
    margin-top: 10px;
    background: #e2e8f0;
    border-radius: 20px;
    height: 8px;
    overflow: hidden;
    position: relative;
}
.progress-bar {
    height: 100%;
    border-radius: 20px;
    background: linear-gradient(90deg, #667eea, #764ba2, #f093fb);
    background-size: 200% 100%;
    animation: progressGlow 2s ease-in-out infinite;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}
.progress-bar::after {
    content: '';
    position: absolute; top:0; right:0; width:20px; height:100%;
    background: rgba(255,255,255,0.4);
    border-radius: 20px;
    animation: progressShine 1.5s ease-in-out infinite;
}
@keyframes progressGlow {
    0%,100% { background-position: 0% center; }
    50%     { background-position: 200% center; }
}
@keyframes progressShine {
    0%,100% { opacity: 0.3; }
    50%     { opacity: 1; }
}
.progress-text {
    font-size: 11px;
    color: var(--text-light);
    text-align: right;
    margin-top: 3px;
}

/* ---------- 脉冲动画 ---------- */
@keyframes pulse {
    0%,100% { box-shadow: 0 0 0 0 rgba(102,126,234,0.4); }
    50%     { box-shadow: 0 0 0 12px rgba(102,126,234,0); }
}
.pulse { animation: pulse 2s infinite; }

/* ---------- 晒图容器 ---------- */
.post-img-box {
    width: 100%;
    height: 200px;
    background: #e8eaed;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    cursor: pointer;
    position: relative;
}
.post-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.post-img-box::after {
    content: attr(data-view-larger);
    position: absolute;
    bottom: 6px;
    right: 8px;
    background: rgba(0,0,0,0.55);
    color: #fff;
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 10px;
    pointer-events: none;
}
.post-img-sm {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

/* ---------- 图片全屏查看 ---------- */
.img-viewer {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.92); z-index: 9999;
    display: flex; align-items: center; justify-content: center;
    overflow-y: auto; -webkit-overflow-scrolling: touch;
}
.img-viewer img {
    width: 100%; max-width: 100%; height: auto; display: block;
}
.img-viewer .close-btn {
    position: fixed; top: 12px; right: 12px;
    width: 36px; height: 36px;
    background: rgba(255,255,255,0.2); color: #fff;
    border-radius: 50%; display: flex; align-items: center;
    justify-content: center; font-size: 20px;
    cursor: pointer; z-index: 10000;
}

/* ---------- 响应式 ---------- */
@media (min-width: 768px) {
    .card-glass, .carousel-wrap { max-width: 600px; margin-left:auto; margin-right:auto; }
    .footer-nav { max-width: 600px; left:50%; transform:translateX(-50%); border-radius: 20px 20px 0 0; }
    body { padding-bottom: 80px; }
}


/* ================================================================
   优化2: 骨架屏加载
   ================================================================ */
.skeleton {
    background: linear-gradient(90deg, #e2e8f0 25%, #f0f2f8 50%, #e2e8f0 75%);
    background-size: 200% 100%;
    animation: skeletonShimmer 1.5s ease-in-out infinite;
    border-radius: 8px;
    margin-bottom: 8px;
}
.skeleton-card {
    height: 80px;
    margin: 12px 14px;
    border-radius: var(--radius);
}
.skeleton-line {
    height: 16px;
    width: 60%;
}
.skeleton-line.short { width: 35%; }
.skeleton-circle {
    width: 44px; height: 44px;
    border-radius: 50%;
}
.loading-spinner {
    width: 40px; height: 40px;
    border: 3px solid #e2e8f0;
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 40px auto;
}
@keyframes skeletonShimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}


/* ================================================================
   优化3: 下拉刷新指示器
   ================================================================ */
.pull-indicator {
    text-align: center;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: var(--text-light);
    font-size: 13px;
}
.pull-indicator.active {
    max-height: 50px;
    padding: 12px 0;
}
.pull-indicator .pull-icon {
    display: inline-block;
    transition: transform 0.3s ease;
}
.pull-indicator.flip .pull-icon {
    transform: rotate(180deg);
}


/* ================================================================
   优化5: 暗色模式
   ================================================================ */
body.dark {
    --bg: #1a1a2e;
    --card-bg: rgba(30, 30, 50, 0.92);
    --text: #e2e8f0;
    --text-light: #94a3b8;
    --shadow: 0 4px 24px rgba(0,0,0,0.3);
    --shadow-lg: 0 12px 48px rgba(0,0,0,0.4);
}
body.dark .card-glass {
    backdrop-filter: blur(20px);
}
body.dark .input-grad {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.12);
    color: #e2e8f0;
}
body.dark .input-grad:focus {
    border-color: var(--primary);
    background: rgba(255,255,255,0.12);
}
body.dark .tab-grad {
    background: rgba(255,255,255,0.08);
}
body.dark .tab-grad a {
    color: var(--text-light);
}
body.dark .footer-nav {
    background: rgba(26, 26, 46, 0.95);
    border-top-color: rgba(255,255,255,0.06);
}

/* ---------- 定期计划 ---------- */
.nav-gradient .nav-action {
    margin-left: auto;
    padding: 5px 10px;
    border: 1px solid rgba(255,255,255,0.4);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}
.investment-entry {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 14px 16px;
    padding: 14px 16px;
    color: var(--text);
    background: linear-gradient(135deg, rgba(102,126,234,0.12), rgba(118,75,162,0.08)), #fff;
    border: 1px solid rgba(102,126,234,0.14);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.investment-entry:hover { color: var(--text); transform: translateY(-2px); }
.investment-entry-icon {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    flex: 0 0 46px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
}
.investment-entry-icon svg,
.plan-image-placeholder svg {
    width: 25px;
    height: 25px;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
    color: #fff;
}
.investment-entry-copy { display: flex; flex-direction: column; min-width: 0; }
.investment-entry-copy strong { font-size: 15px; color: var(--text); }
.investment-entry-copy small { color: var(--text-light); line-height: 1.35; }
.investment-entry-arrow { margin-left: auto; font-size: 26px; color: var(--primary); }
.investment-hero,
.my-plan-summary {
    margin: 14px;
    padding: 22px 20px;
    color: #fff;
    background: linear-gradient(145deg, #27335f, #5a67d8 58%, #764ba2);
    border-radius: 22px;
    box-shadow: 0 14px 34px rgba(61,73,145,0.25);
}
.investment-hero h1,
.my-plan-summary h1 {
    margin: 5px 0 8px;
    font-size: 24px;
    line-height: 1.25;
}
.investment-hero p,
.my-plan-summary p { margin: 0; color: rgba(255,255,255,0.78); font-size: 13px; }
.my-plan-summary .portfolio-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 14px;
    padding: 7px 12px;
    color: #fff;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.22);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.my-plan-summary .portfolio-link:hover,
.my-plan-summary .portfolio-link:focus {
    color: #fff;
    background: rgba(255,255,255,0.2);
}
.investment-kicker {
    display: block;
    color: #a9f1d4;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.4px;
}
.fixed-plan-list,
.my-investment-list { padding-bottom: 10px; }
.fixed-plan-card,
.my-investment-card {
    margin: 12px 14px;
    overflow: hidden;
    background: var(--card-bg);
    border: 1px solid rgba(102,126,234,0.1);
    border-radius: 20px;
    box-shadow: var(--shadow);
}
.fixed-plan-card { cursor: pointer; }
.fixed-plan-image {
    position: relative;
    height: 150px;
    background: linear-gradient(145deg, #dfe5ff, #f1e8ff);
}
.fixed-plan-image img,
.plan-detail-image { width: 100%; height: 100%; object-fit: cover; }
.plan-image-placeholder { display: grid; place-items: center; width: 100%; height: 100%; }
.plan-image-placeholder svg { width: 48px; height: 48px; color: var(--primary); }
.plan-status {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    backdrop-filter: blur(8px);
}
.plan-status.active { color: #087f5b; background: rgba(226,252,239,0.94); }
.plan-status.presale { color: #9a5b00; background: rgba(255,244,214,0.95); }
.fixed-plan-body { padding: 16px; }
.fixed-plan-heading,
.plan-detail-summary,
.simulator-heading,
.my-investment-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}
.fixed-plan-heading h2,
.my-investment-head h2 { margin: 0; font-size: 17px; line-height: 1.35; }
.plan-rate { color: var(--primary); font-size: 18px; font-weight: 800; white-space: nowrap; }
.plan-rate small { display: block; color: var(--text-light); font-size: 9px; text-align: right; }
.plan-meta,
.plan-facts,
.my-investment-values,
.return-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}
.plan-meta { margin: 14px 0; }
.plan-meta span,
.plan-facts div,
.my-investment-values div,
.return-grid div {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.plan-meta small,
.plan-facts small,
.my-investment-values small,
.return-grid small,
.investment-timeline small { color: var(--text-light); font-size: 10px; text-transform: uppercase; letter-spacing: .5px; }
.plan-meta strong { font-size: 13px; }
.plan-link {
    width: 100%;
    padding: 10px 0 0;
    color: var(--primary);
    background: none;
    border: 0;
    border-top: 1px solid rgba(102,126,234,0.12);
    text-align: left;
    font-weight: 700;
}
.plan-link span { float: right; font-size: 18px; }
.plan-detail-cover { position: relative; height: 235px; background: linear-gradient(145deg,#dfe5ff,#f1e8ff); }
.plan-detail-summary { padding: 18px 16px 12px; background: #fff; }
.plan-detail-summary h1 { margin: 3px 0 0; font-size: 22px; }
.detail-rate { color: var(--primary); font-size: 27px; font-weight: 800; text-align: right; }
.detail-rate small { display: block; color: var(--text-light); font-size: 10px; }
.plan-facts,
.plan-description,
.return-simulator {
    margin: 12px 14px;
    padding: 16px;
    background: var(--card-bg);
    border-radius: 18px;
    box-shadow: var(--shadow);
}
.plan-facts strong { overflow-wrap: anywhere; font-size: 13px; }
.plan-description h2,
.return-simulator h2 { margin: 2px 0 10px; font-size: 17px; }
.plan-description p { margin: 0; white-space: pre-wrap; color: var(--text-light); }
.simulator-heading { align-items: flex-end; }
#amount-display { color: var(--primary); font-size: 24px; font-weight: 800; text-align: right; overflow-wrap: anywhere; }
.investment-amount-input {
    width: 100%;
    margin: 8px 0 10px;
    padding: 16px;
    color: var(--text);
    background: #f6f8ff;
    border: 1px solid #dfe4fa;
    border-radius: 14px;
    outline: none;
    font-size: 23px;
    font-weight: 700;
    text-align: center;
}
.investment-amount-input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(102,126,234,0.12); }
.quick-amounts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.quick-amounts button {
    min-height: 38px;
    padding: 7px 5px;
    color: var(--primary);
    background: #f3f5ff;
    border: 1px solid #dfe4fa;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 700;
}
.quick-amounts button:nth-last-child(-n+2) { grid-column: span 1; }
.amount-guidance,
.investment-note { margin: 10px 0; color: var(--text-light); font-size: 11px; }
.return-grid { margin-top: 12px; padding-top: 12px; border-top: 1px solid rgba(102,126,234,0.12); }
.return-grid strong { margin-top: 2px; font-size: 15px; overflow-wrap: anywhere; }
.return-grid .return-total { padding-top: 9px; border-top: 1px dashed #dfe4fa; }
.field-error { min-height: 20px; margin: 6px 0; color: var(--danger); font-size: 12px; }
.investment-submit { margin-top: 2px; }
.investment-empty {
    margin: 24px 14px;
    padding: 30px 18px;
    color: var(--text-light);
    background: var(--card-bg);
    border-radius: 18px;
    box-shadow: var(--shadow);
    text-align: center;
}
.my-investment-card { padding: 16px; }
.my-investment-head small { color: var(--text-light); font-size: 10px; }
.investment-state {
    max-width: 50%;
    padding: 4px 9px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.2;
    overflow-wrap: anywhere;
    text-align: center;
}
.investment-state.running { color: #3f51b5; background: #eef0ff; }
.investment-state.waiting { color: #9a5b00; background: #fff4d6; }
.investment-state.completed { color: #087f5b; background: #e2fcef; }
.my-investment-values { margin: 16px 0; }
.my-investment-values strong { font-size: 14px; overflow-wrap: anywhere; }
.my-investment-values .accent { color: var(--success); }
.investment-progress { height: 6px; overflow: hidden; background: #e8ebf5; border-radius: 99px; }
.investment-progress span { display: block; height: 100%; background: linear-gradient(90deg,var(--primary),var(--success)); border-radius: 99px; }
.investment-timeline { display: flex; justify-content: space-between; gap: 10px; margin-top: 12px; color: var(--text); font-size: 11px; }
.investment-timeline span { display: flex; flex-direction: column; }
.investment-timeline span:last-child { text-align: right; }
.remaining-time { margin-top: 12px; padding: 9px 10px; color: var(--primary); background: #f3f5ff; border-radius: 10px; text-align: center; font-size: 12px; font-weight: 700; }
body.dark .investment-entry,
body.dark .plan-detail-summary,
body.dark .investment-amount-input,
body.dark .quick-amounts button { background: #22243a; border-color: rgba(255,255,255,0.08); }

@media (max-width: 370px) {
    .nav-gradient .nav-title {
        padding-right: 100px;
        font-size: 15px;
    }
    .install-app-btn {
        right: 10px;
        max-width: 100px;
        padding-right: 10px;
        padding-left: 10px;
        font-size: 12px;
    }
    .investment-hero h1,
    .my-plan-summary h1 { font-size: 21px; }
    .plan-detail-summary { flex-direction: column; }
    .detail-rate { text-align: left; }
    .quick-amounts { grid-template-columns: repeat(2, 1fr); }
    .investment-timeline { flex-direction: column; }
    .investment-timeline span:last-child { text-align: left; }
}
body.dark .toast {
    box-shadow: 0 4px 24px rgba(0,0,0,0.5);
}
body.dark .skeleton {
    background: linear-gradient(90deg, rgba(255,255,255,0.06) 25%, rgba(255,255,255,0.1) 50%, rgba(255,255,255,0.06) 75%);
    background-size: 200% 100%;
}
body.dark .progress-wrap {
    background: rgba(255,255,255,0.1);
}
body.dark .post-img-box {
    background: rgba(255,255,255,0.06);
}

/* 暗色模式切换按钮 */
.dark-toggle {
    position: fixed;
    bottom: 100px;
    right: 16px;
    z-index: 200;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--card-bg);
    box-shadow: var(--shadow-lg);
    border: none;
    cursor: pointer;
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}
.dark-toggle:hover {
    transform: scale(1.1);
}
.dark-toggle:active {
    transform: scale(0.9);
}

/* ================================================================
   客服悬浮按钮 & 弹窗
   ================================================================ */
.cs-float-btn {
    position: fixed;
    bottom: 156px;
    right: 16px;
    z-index: 200;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    box-shadow: var(--shadow-lg);
    border: none;
    cursor: pointer;
    font-size: 22px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    animation: csPulse 2s ease-in-out infinite;
}
@keyframes csPulse {
    0%, 100% { box-shadow: 0 4px 20px rgba(102,126,234,0.3); }
    50% { box-shadow: 0 4px 32px rgba(102,126,234,0.6); }
}
.cs-float-btn:hover {
    transform: scale(1.1);
}
.cs-float-btn:active {
    transform: scale(0.9);
}

/* 客服弹窗 */
.cs-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(27, 12, 47, 0.48);
    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);
    animation: fadeIn 0.2s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.cs-popup {
    position: relative;
    width: 326px;
    max-width: calc(100vw - 24px);
    overflow: hidden;
    color: var(--ui-text, var(--text));
    background: linear-gradient(180deg, #fff 0%, #fdfaff 100%);
    border: 1px solid rgba(139, 92, 246, 0.14);
    border-radius: 28px;
    box-shadow: 0 28px 70px rgba(34, 10, 64, 0.32), inset 0 1px rgba(255, 255, 255, 0.8);
    text-align: left;
    animation: slideUp 0.25s ease;
}
@keyframes slideUp { from { transform: translateY(40px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

.cs-close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 4;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    padding: 0;
    color: #fff;
    background: rgba(41, 11, 79, 0.24);
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 12px;
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.15);
    cursor: pointer;
}
.cs-close svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.cs-popup-hero {
    position: relative;
    height: 108px;
    overflow: visible;
    background:
        radial-gradient(circle at 18% 18%, rgba(255, 221, 94, 0.4), transparent 22%),
        radial-gradient(circle at 84% 78%, rgba(255, 255, 255, 0.2), transparent 24%),
        linear-gradient(126deg, #48128f 0%, #8d27d3 54%, #ee43a8 100%);
}
.cs-popup-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(112deg, rgba(255, 255, 255, 0.13), transparent 42%);
    pointer-events: none;
}
.cs-hero-orbit {
    position: absolute;
    top: -52px;
    right: -24px;
    width: 140px;
    height: 150px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 50%;
    box-shadow: 0 0 0 24px rgba(255, 255, 255, 0.035), 0 0 0 48px rgba(255, 255, 255, 0.018);
}
.cs-support-mark {
    position: absolute;
    bottom: -22px;
    left: 34px;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    color: #fff;
    background: linear-gradient(145deg, #7035e8, #e63db5);
    border: 4px solid #fff;
    border-radius: 22px;
    box-shadow: 0 10px 24px rgba(94, 30, 164, 0.28);
}
.cs-support-mark::after {
    content: "";
    position: absolute;
    right: -2px;
    bottom: 5px;
    width: 13px;
    height: 13px;
    background: #21c995;
    border: 3px solid #fff;
    border-radius: 50%;
    box-shadow: 0 3px 8px rgba(22, 150, 110, 0.25);
}
.cs-support-mark svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.cs-greeting {
    position: absolute;
    top: 25px;
    left: 82px;
    z-index: 2;
    padding: 7px 13px;
    color: #30124f;
    background: linear-gradient(105deg, #baf9ff, #fff);
    border: 2px solid rgba(47, 14, 83, 0.82);
    border-radius: 14px 14px 14px 4px;
    box-shadow: 3px 4px 0 rgba(39, 11, 73, 0.28);
    font-size: 16px;
    font-weight: 950;
    letter-spacing: -0.02em;
    transform: rotate(-4deg);
}
.cs-signal { position: absolute; right: 58px; bottom: 21px; z-index: 2; display: flex; align-items: center; gap: 3px; height: 21px; }
.cs-signal i { display: block; width: 2px; height: 8px; background: rgba(255, 255, 255, 0.82); border-radius: 999px; }
.cs-signal i:nth-child(2), .cs-signal i:nth-child(4) { height: 16px; }
.cs-signal i:nth-child(3) { height: 21px; }
.cs-popup-copy { padding: 31px 18px 13px; }
.cs-status { display: inline-flex; align-items: center; gap: 6px; color: #7b55a7; font-size: 10px; font-weight: 850; letter-spacing: 0.08em; text-transform: uppercase; }
.cs-status i { width: 7px; height: 7px; background: #20bd86; border-radius: 50%; box-shadow: 0 0 0 4px rgba(32, 189, 134, 0.12); }
.cs-popup-copy h5 { margin: 7px 0 5px; color: #2f203e; font-size: 21px; font-weight: 950; line-height: 1.15; letter-spacing: -0.035em; }
.cs-popup-copy p { margin: 0; color: #80728d; font-size: 12px; line-height: 1.5; }
.cs-link-list { display: grid; gap: 9px; padding: 0 16px 17px; }
.cs-link-item {
    position: relative;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) 30px;
    align-items: center;
    gap: 10px;
    min-height: 62px;
    padding: 8px 10px;
    margin: 0;
    overflow: hidden;
    color: #30213f;
    background: linear-gradient(120deg, #faf7ff, #fff8fc);
    border: 1px solid rgba(139, 92, 246, 0.12);
    border-radius: 17px;
    box-shadow: 0 7px 18px rgba(77, 38, 118, 0.07);
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.cs-link-item:hover {
    transform: translateY(-1px);
    color: #30213f;
    border-color: rgba(139, 92, 246, 0.24);
    box-shadow: 0 10px 22px rgba(77, 38, 118, 0.12);
}
.cs-link-item:active { transform: scale(0.985); }
.cs-link-item .cs-icon { display: grid; place-items: center; width: 42px; height: 42px; color: #fff; background: linear-gradient(135deg, #744cf0, #cd3ee0); border: 1px solid rgba(255, 255, 255, 0.7); border-radius: 14px; box-shadow: 0 7px 15px rgba(119, 68, 226, 0.2); }
.cs-link-item:nth-child(2n) .cs-icon { background: linear-gradient(135deg, #ff9c38, #ed4b9b); }
.cs-link-item .cs-icon svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.cs-link-item .cs-name { min-width: 0; }
.cs-link-item .cs-name strong { display: block; overflow: hidden; color: #30213f; font-size: 14px; font-weight: 900; text-overflow: ellipsis; white-space: nowrap; }
.cs-link-item .cs-name small { display: block; margin-top: 3px; color: #8b7b99; font-size: 11px; font-weight: 700; }
.cs-link-arrow { display: grid; place-items: center; width: 30px; height: 30px; color: #7543d2; background: rgba(119, 68, 226, 0.08); border-radius: 10px; }
.cs-link-arrow svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.dark .cs-popup { color: #fff; background: linear-gradient(180deg, #241a31, #1d1627); border-color: rgba(255, 255, 255, 0.08); }
.dark .cs-support-mark, .dark .cs-support-mark::after { border-color: #241a31; }
.dark .cs-popup-copy h5, .dark .cs-link-item .cs-name strong { color: #fff; }
.dark .cs-popup-copy p, .dark .cs-link-item .cs-name small { color: rgba(255, 255, 255, 0.58); }
.dark .cs-status { color: #cbb3e9; }
.dark .cs-link-item { color: #fff; background: rgba(255, 255, 255, 0.055); border-color: rgba(255, 255, 255, 0.08); box-shadow: none; }
.dark .cs-link-item:hover { color: #fff; border-color: rgba(255, 255, 255, 0.16); }
.dark .cs-link-arrow { color: #d1b5ff; background: rgba(255, 255, 255, 0.07); }

/* 第三方客服窗口约束（Tawk.to等），避免遮挡底部导航 */
iframe[src*="tawk"],
iframe[id*="tawk"] {
    transform: scale(0.65) !important;
    transform-origin: right bottom !important;
    margin-bottom: 70px !important;
}

.profile-menu .card-glass {margin:3px 14px;}

/* ================================================================
   H5 UI V2 · 登录页与首页样板
   ================================================================ */
.utility-icon,
.dark-toggle svg,
.cs-close svg,
.cs-icon svg,
.pull-icon {
    width: 20px;
    height: 20px;
    flex: 0 0 auto;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.install-app-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.cs-float-btn .utility-label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.cs-close svg { width: 22px; height: 22px; }
.cs-icon {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    color: #fff;
    background: linear-gradient(135deg, #8b5cf6, #d946ef);
    border-radius: 12px;
}
.cs-icon svg { width: 19px; height: 19px; }
.pull-icon { vertical-align: -5px; }

body.ui-v2 {
    --ui-primary: #6d28d9;
    --ui-primary-2: #8b5cf6;
    --ui-magenta: #d946ef;
    --ui-pink: #ec4899;
    --ui-gold: #ffc83d;
    --ui-orange: #ff9d2e;
    --ui-bg: #f7f4fc;
    --ui-card: #fff;
    --ui-text: #241a31;
    --ui-muted: #786f85;
    --ui-line: #eee8f5;
    --ui-success: #159b76;
    --ui-danger: #e34d6f;
    --ui-shadow-sm: 0 4px 14px rgba(76, 35, 120, 0.08);
    --ui-shadow-md: 0 12px 30px rgba(76, 35, 120, 0.12);
    --ui-shadow-lg: 0 24px 54px rgba(76, 35, 120, 0.18);
    min-height: 100vh;
    margin: 0;
    padding-bottom: calc(94px + env(safe-area-inset-bottom, 0px));
    color: var(--ui-text);
    background: var(--ui-bg);
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    line-height: 1.45;
}
body.ui-v2-login { padding-bottom: 0; }
body.ui-v2-home { overflow-x: hidden; }
body.ui-v2.dark {
    --ui-bg: #15101e;
    --ui-card: #211a2d;
    --ui-text: #f7f1ff;
    --ui-muted: #b5a9c3;
    --ui-line: rgba(255, 255, 255, 0.09);
    --ui-shadow-sm: 0 4px 14px rgba(0, 0, 0, 0.2);
    --ui-shadow-md: 0 12px 30px rgba(0, 0, 0, 0.3);
    --ui-shadow-lg: 0 24px 54px rgba(0, 0, 0, 0.42);
    background: var(--ui-bg);
}
.ui-v2 a { color: inherit; }
.ui-v2 button,
.ui-v2 input { font: inherit; }
.ui-v2 button,
.ui-v2 a { -webkit-tap-highlight-color: transparent; }
.ui-v2 svg {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.ui-v2 :focus-visible {
    outline: 3px solid rgba(255, 200, 61, 0.9);
    outline-offset: 3px;
}
body.ui-v2.is-pointer-input :focus-visible,
.ui-v2-posts .post-upload-trigger:focus-visible {
    outline: none;
}

body.ui-v2.is-pointer-input
.post-upload-trigger:focus-visible .post-upload-orb {
    outline: none;
}
.ui-eyebrow,
.section-kicker {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 4px 9px;
    color: #fff;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.brand-lockup {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}
.brand-lockup > img {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    filter: drop-shadow(0 8px 18px rgba(51, 13, 98, 0.18));
}

/* 样板页顶部工具按钮 */
.ui-v2 .install-app-btn,
.ui-v2 .dark-toggle,
.ui-v2 .cs-float-btn {
    position: fixed;
    top: max(15px, env(safe-area-inset-top, 0px));
    bottom: auto;
    z-index: 500;
    width: 44px;
    height: 44px;
    min-width: 44px;
    max-width: none;
    max-height: none;
    padding: 0;
    color: #fff;
    background: rgba(36, 14, 69, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 14px;
    box-shadow: 0 8px 20px rgba(31, 8, 66, 0.18);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    animation: none;
    transition: transform 0.18s ease, background 0.18s ease;
}
.ui-v2 .install-app-btn { right: 12px; }
.ui-v2 .dark-toggle { right: 62px; }
.ui-v2 .cs-float-btn { right: 112px; }
body.ui-v2.install-app-hidden .dark-toggle {
    right: 12px;
}

body.ui-v2.install-app-hidden .cs-float-btn {
    right: 62px;
}
.ui-v2 .install-app-btn:hover,
.ui-v2 .dark-toggle:hover,
.ui-v2 .cs-float-btn:hover { transform: translateY(-1px); background: rgba(255, 255, 255, 0.22); }
.ui-v2 .install-app-btn:active,
.ui-v2 .dark-toggle:active,
.ui-v2 .cs-float-btn:active { transform: scale(0.94); }
.ui-v2 .install-app-btn .utility-label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.ui-v2 .dark-toggle svg { width: 21px; height: 21px; }
.ui-v2 .toast {
    top: max(68px, calc(env(safe-area-inset-top, 0px) + 54px));
    width: max-content;
    max-width: calc(100vw - 32px);
    padding: 11px 18px;
    color: #fff;
    background: #392650;
    border-radius: 14px;
    box-shadow: var(--ui-shadow-lg);
    font-size: 13px;
    line-height: 1.35;
    text-align: center;
}
.ui-v2 .toast.error { background: linear-gradient(135deg, #c7355d, var(--ui-pink)); }
.ui-v2 .toast.success { background: linear-gradient(135deg, #0f7f62, var(--ui-success)); }
.ui-v2 .cs-overlay { backdrop-filter: blur(7px); -webkit-backdrop-filter: blur(7px); }
.ui-v2 .cs-popup {
    color: var(--ui-text);
    background: linear-gradient(180deg, #fff 0%, #fdfaff 100%);
    border: 1px solid rgba(139, 92, 246, 0.14);
    border-radius: 28px;
    box-shadow: 0 28px 70px rgba(34, 10, 64, 0.32), inset 0 1px rgba(255, 255, 255, 0.8);
}
.ui-v2 .cs-link-item { color: var(--ui-text); background: linear-gradient(120deg, #faf7ff, #fff8fc); border-radius: 17px; }
.ui-v2 .cs-close { width: 40px; height: 40px; display: grid; place-items: center; }
.ui-v2 .cs-close:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.85);
    outline-offset: 2px;
}
.dark.ui-v2 .cs-popup { background: linear-gradient(180deg, #241a31, #1d1627); border-color: rgba(255, 255, 255, 0.08); }
.dark.ui-v2 .cs-link-item { background: rgba(255, 255, 255, 0.055); }

/* PWA manual install guide */
html.install-guide-open,
body.install-guide-open {
    overflow: hidden;
    overscroll-behavior: none;
}
.install-guide-overlay {
    position: fixed;
    inset: 0;
    z-index: 11000;
    display: grid;
    place-items: center;
    padding:
        max(16px, env(safe-area-inset-top, 0px))
        max(16px, env(safe-area-inset-right, 0px))
        max(16px, env(safe-area-inset-bottom, 0px))
        max(16px, env(safe-area-inset-left, 0px));
    overflow-y: auto;
    background: rgba(31, 14, 51, 0.58);
    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);
}
.install-guide-overlay[hidden],
.install-guide-panel[hidden],
.install-app-btn[hidden] { display: none !important; }
.install-guide-dialog {
    position: relative;
    width: min(344px, 100%);
    max-height: calc(100dvh - 32px);
    margin: auto;
    padding: 18px;
    overflow-y: auto;
    overscroll-behavior: contain;
    color: var(--ui-text, var(--text));
    background:
        radial-gradient(circle at 8% 0%, rgba(139,92,246,.1), transparent 28%),
        radial-gradient(circle at 92% 9%, rgba(236,72,153,.08), transparent 27%),
        linear-gradient(180deg, #fff, #fefbff);
    border: 1px solid rgba(139,92,246,.15);
    border-radius: 26px;
    box-shadow: 0 28px 72px rgba(34,10,64,.35), inset 0 1px rgba(255,255,255,.9);
    animation: install-guide-enter .18s ease-out both;
}
@keyframes install-guide-enter {
    from { opacity: 0; transform: translateY(12px) scale(.985); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.install-guide-header {
    display: grid;
    grid-template-columns: 52px minmax(0,1fr) 44px;
    gap: 11px;
    align-items: center;
    text-align: left;
}
.install-guide-header > img {
    width: 52px;
    height: 52px;
    object-fit: contain;
    filter: drop-shadow(0 8px 15px rgba(103,39,177,.18));
}
.install-guide-header h2 {
    margin: 0;
    color: var(--ui-text, var(--text));
    font-size: 20px;
    font-weight: 950;
    line-height: 1.15;
    letter-spacing: -.025em;
}
.install-guide-header p {
    margin: 5px 0 0;
    color: var(--ui-muted, var(--text-light));
    font-size: 12px;
    font-weight: 650;
    line-height: 1.35;
}
.install-guide-close {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    color: #7040c7;
    background: rgba(139,92,246,.075);
    border: 1px solid rgba(139,92,246,.11);
    border-radius: 14px;
    cursor: pointer;
    touch-action: manipulation;
}
.install-guide-close svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
}
.install-guide-tabs {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 4px;
    margin-top: 15px;
    padding: 3px;
    background: rgba(109,40,217,.065);
    border: 1px solid rgba(139,92,246,.07);
    border-radius: 15px;
}
.install-guide-tabs button {
    min-width: 0;
    min-height: 44px;
    padding: 8px 10px;
    color: #7444cf;
    background: transparent;
    border: 0;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 900;
    cursor: pointer;
    touch-action: manipulation;
}
.install-guide-tabs button.is-active {
    color: #fff;
    background: linear-gradient(115deg,#6d28d9,#b52ce2 58%,#ec4899);
    box-shadow: 0 7px 14px rgba(109,40,217,.2), inset 0 1px rgba(255,255,255,.25);
}
.install-guide-panel { margin-top: 13px; }
.install-guide-steps {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.install-guide-step {
    display: grid;
    grid-template-columns: 96px 24px minmax(0,1fr);
    gap: 9px;
    align-items: center;
    min-height: 74px;
    padding: 6px;
    background: rgba(139,92,246,.025);
    border: 1px solid rgba(139,92,246,.075);
    border-radius: 16px;
    text-align: left;
}
.install-step-visual {
    display: block;
    width: 96px;
    height: 62px;
    pointer-events: none;
}
.install-step-visual svg { display: block; width: 100%; height: 100%; }
.install-step-number {
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    color: #fff;
    background: linear-gradient(135deg,#7c3aed,#d946ef);
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(124,58,237,.2);
    font-size: 11px;
    font-weight: 900;
}
.install-guide-step strong {
    min-width: 0;
    overflow-wrap: anywhere;
    color: var(--ui-text, var(--text));
    font-size: 13px;
    font-weight: 850;
    line-height: 1.3;
}
.install-diagram-frame { fill: #fff; stroke: rgba(139,92,246,.2); stroke-width: 1.5; }
.install-diagram-surface,
.install-diagram-sheet { fill: #f8f4fd; stroke: rgba(139,92,246,.12); stroke-width: 1; }
.install-diagram-line { fill: rgba(86,61,112,.16); }
.install-diagram-line-strong { fill: none; stroke: #7040c7; stroke-width: 2; stroke-linecap: round; }
.install-diagram-highlight { fill: #fff; stroke: #ec4899; stroke-width: 1.8; }
.install-diagram-highlight-fill { fill: #fceefa; stroke: #ec4899; stroke-width: 1.4; }
.install-diagram-dot { fill: #7040c7; }
.install-diagram-icon { fill: none; stroke: #77658b; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.install-diagram-icon-strong { fill: none; stroke: #7040c7; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.install-diagram-icon-box { fill: none; stroke: #7040c7; stroke-width: 1.4; }
.install-diagram-app-image { filter: drop-shadow(0 2px 3px rgba(103,39,177,.18)); }
.install-diagram-check { fill: none; stroke: #7c3aed; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.install-guide-done {
    width: 100%;
    min-height: 50px;
    margin-top: 15px;
    padding: 10px 18px;
    color: #fff;
    background: linear-gradient(110deg,#6d28d9,#be2add 60%,#ec4899);
    border: 0;
    border-radius: 15px;
    box-shadow: 0 9px 18px rgba(109,40,217,.23), inset 0 1px rgba(255,255,255,.24);
    font-size: 14px;
    font-weight: 900;
    cursor: pointer;
    touch-action: manipulation;
}
.install-guide-close:active,
.install-guide-tabs button:active,
.install-guide-done:active { transform: scale(.97); }
.install-guide-close:focus-visible,
.install-guide-tabs button:focus-visible,
.install-guide-done:focus-visible {
    outline: 3px solid rgba(255,200,61,.9);
    outline-offset: 2px;
}
body.dark .install-guide-overlay { background: rgba(8,5,13,.74); }
body.dark .install-guide-dialog {
    color: #fff;
    background:
        radial-gradient(circle at 9% 0%,rgba(139,92,246,.16),transparent 28%),
        linear-gradient(180deg,#241a31,#1d1627);
    border-color: rgba(255,255,255,.09);
    box-shadow: 0 28px 72px rgba(0,0,0,.5);
}
body.dark .install-guide-header h2,
body.dark .install-guide-step strong { color: #fff; }
body.dark .install-guide-header p { color: rgba(255,255,255,.62); }
body.dark .install-guide-close {
    color: #f7f1ff;
    background: rgba(255,255,255,.075);
    border-color: rgba(255,255,255,.1);
}
body.dark .install-guide-tabs,
body.dark .install-guide-step { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.07); }
body.dark .install-guide-tabs button:not(.is-active) { color: #d3baf5; }
body.dark .install-diagram-frame { fill: #2a2036; stroke: rgba(255,255,255,.12); }
body.dark .install-diagram-surface,
body.dark .install-diagram-sheet { fill: #211929; stroke: rgba(255,255,255,.08); }
body.dark .install-diagram-line { fill: rgba(255,255,255,.17); }
body.dark .install-diagram-highlight { fill: #2a2036; }
body.dark .install-diagram-highlight-fill { fill: rgba(236,72,153,.13); }
body.dark .install-diagram-icon { stroke: #baaaca; }

@media (max-width: 340px) {
    .install-guide-overlay { padding: 10px; }
    .install-guide-dialog { max-height: calc(100dvh - 20px); padding: 14px; border-radius: 23px; }
    .install-guide-header { grid-template-columns: 48px minmax(0,1fr) 44px; gap: 9px; }
    .install-guide-header > img { width: 48px; height: 48px; }
    .install-guide-header h2 { font-size: 18px; }
    .install-guide-header p { font-size: 12px; }
    .install-guide-tabs { margin-top: 12px; }
    .install-guide-panel { margin-top: 10px; }
    .install-guide-steps { gap: 6px; }
    .install-guide-step { grid-template-columns: 84px 22px minmax(0,1fr); gap: 7px; min-height: 68px; padding: 5px; border-radius: 14px; }
    .install-step-visual { width: 84px; height: 56px; }
    .install-step-number { width: 22px; height: 22px; font-size: 10px; }
    .install-guide-step strong { font-size: 12px; }
    .install-guide-done { min-height: 48px; margin-top: 11px; }
}

@media (prefers-reduced-motion: reduce) {
    .install-guide-dialog { animation: none; }
    .install-guide-close,
    .install-guide-tabs button,
    .install-guide-done { transition: none; }
}

/* 登录样板 */
.auth-shell {
    position: relative;
    width: 100%;
    max-width: 520px;
    min-height: 100vh;
    margin: 0 auto;
    overflow: hidden;
    background: var(--ui-bg);
}
.auth-hero {
    position: relative;
    min-height: 358px;
    overflow: visible;
    isolation: isolate;
    color: #fff;
    background:
        linear-gradient(
            180deg,
            #6d28d9 0,
            rgba(109, 40, 217, 0.82) 30px,
            rgba(109, 40, 217, 0) 92px
        ),
        radial-gradient(circle at 79% 34%, rgba(236, 72, 153, 0.58) 0, rgba(169, 43, 221, 0.22) 25%, transparent 47%),
        radial-gradient(circle at 10% 64%, rgba(118, 64, 220, 0.72) 0, transparent 42%),
        linear-gradient(145deg, #21066d 0%, #5610b5 46%, #a326d1 78%, #d738b5 100%);
}
.auth-hero::before {
    content: "";
    position: absolute;
    top: 48px;
    right: -46px;
    width: 390px;
    height: 310px;
    z-index: 0;
    background: repeating-conic-gradient(from 214deg at 54% 70%, rgba(255, 255, 255, 0.17) 0 4deg, transparent 4deg 13deg);
    border-radius: 50%;
    opacity: 0.52;
    -webkit-mask-image: radial-gradient(ellipse at center, #000 0, rgba(0, 0, 0, 0.72) 54%, transparent 76%);
    mask-image: radial-gradient(ellipse at center, #000 0, rgba(0, 0, 0, 0.72) 54%, transparent 76%);
}
.auth-hero::after {
    content: "";
    position: absolute;
    right: -10%;
    bottom: -58px;
    left: -10%;
    height: 94px;
    z-index: 1;
    background: var(--ui-bg);
    border-radius: 50% 50% 0 0 / 100% 100% 0 0;
}
.auth-hero-art {
    position: absolute;
    right: -4%;
    bottom: 0;
    z-index: 2;
    width: 108%;
    height: auto;
    max-width: none;
    object-fit: contain;
    filter: brightness(1.04) saturate(1.03) drop-shadow(0 18px 22px rgba(35, 4, 72, 0.18));
    pointer-events: none;
}
.auth-hero-breakout {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    z-index: 6;
    height: 358px;
    overflow: hidden;
    clip-path: inset(calc(100% - 48px) 0 28px 0);
    pointer-events: none;
}
.auth-hero-breakout-art {
    position: absolute;
    right: -4%;
    bottom: 0;
    width: 108%;
    height: auto;
    max-width: none;
    filter: brightness(1.04) saturate(1.03);
}
.scene-line-art {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    color: rgba(255, 255, 255, 0.16);
    pointer-events: none;
}
.scene-line-art path,
.scene-line-art circle {
    vector-effect: non-scaling-stroke;
    stroke-width: 1.35;
}
.scene-line-art path:nth-child(2) { opacity: 0.58; }
.scene-line-art circle { fill: currentColor; stroke: none; }
.auth-brand {
    position: absolute;
    top: max(16px, env(safe-area-inset-top, 0px));
    left: 16px;
    z-index: 4;
    max-width: 140px;
    color: #fff;
    font-size: 17px;
    font-weight: 850;
    letter-spacing: 0.03em;
}
.auth-brand > img { width: 40px; height: 40px; flex-basis: 40px; }
.auth-hero-copy {
    position: absolute;
    left: 20px;
    bottom: 86px;
    z-index: 4;
    width: min(48%, 220px);
    isolation: isolate;
}
.auth-hero-copy::before {
    content: "";
    position: absolute;
    inset: -14px -30px -14px -16px;
    z-index: -1;
    background: radial-gradient(ellipse at 38% 56%, rgba(29, 4, 80, 0.62) 0%, rgba(39, 5, 94, 0.34) 48%, transparent 74%);
    filter: blur(4px);
    pointer-events: none;
}
.auth-hero-copy h1 {
    margin: 10px 0 7px;
    font-size: clamp(32px, 10vw, 44px);
    font-weight: 900;
    line-height: 0.98;
    letter-spacing: -0.04em;
    text-shadow: 0 10px 24px rgba(32, 5, 80, 0.26);
}
.auth-hero-copy p {
    margin: 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: 12px;
    line-height: 1.45;
    text-shadow: 0 2px 12px rgba(24, 3, 68, 0.78);
}
.auth-card {
    position: relative;
    z-index: 5;
    margin: -48px 0 0;
    padding: 24px clamp(20px, 6.5vw, 26px) max(22px, env(safe-area-inset-bottom, 0px));
    background: var(--ui-card);
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 32px 32px 0 0;
    box-shadow: 0 -16px 40px rgba(40, 9, 86, 0.13);
}
.ui-v2-login:not(.ui-v2-auth-secondary) .auth-shell {
    display: flex;
    flex-direction: column;
    min-height: 100dvh;
}

.ui-v2-login:not(.ui-v2-auth-secondary) .auth-hero {
    flex: 0 0 auto;
}

.ui-v2-login:not(.ui-v2-auth-secondary) .auth-card {
    flex: 1 0 auto;
}
.auth-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    width: min(44%, 190px);
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(168, 85, 247, 0.68), rgba(236, 72, 153, 0.72), transparent);
    border-radius: 999px;
    transform: translateX(-50%);
}
.dark.ui-v2 .auth-card { border-color: var(--ui-line); }
.auth-card-heading {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 17px;
}
.auth-card-mark {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    color: #fff;
    background: linear-gradient(135deg, var(--ui-primary-2), var(--ui-magenta));
    border-radius: 15px;
    box-shadow: 0 8px 18px rgba(139, 92, 246, 0.25);
}
.auth-card-mark svg { width: 23px; height: 23px; }
.auth-card-heading h2 { margin: 0 0 2px; font-size: 21px; line-height: 1.2; }
.auth-card-heading p { margin: 0; color: var(--ui-muted); font-size: 12px; }
.auth-form label {
    display: block;
    margin: 0 0 6px 3px;
    color: var(--ui-text);
    font-size: 12px;
    font-weight: 750;
}
.ui-input-shell {
    display: flex;
    align-items: center;
    min-height: 50px;
    margin-bottom: 12px;
    padding: 0 14px;
    color: var(--ui-primary);
    background: #faf8fd;
    border: 1.5px solid var(--ui-line);
    border-radius: 16px;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.ui-input-shell:focus-within {
    background: var(--ui-card);
    border-color: var(--ui-primary-2);
    box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.12);
}
.ui-input-shell.is-invalid {
    border-color: var(--ui-danger);
    box-shadow: 0 0 0 4px rgba(227, 77, 111, 0.1);
}
.ui-input-shell > svg { width: 21px; height: 21px; flex: 0 0 21px; }
.ui-input-shell input {
    width: 100%;
    min-width: 0;
    height: 48px;
    padding: 0 0 0 11px;
    color: var(--ui-text);
    background: transparent;
    border: 0;
    outline: 0;
    font-size: 16px;
}
.ui-v2 .ui-input-shell input:focus-visible { outline: none; }
.ui-input-shell input::placeholder { color: #a39aaa; }
.dark.ui-v2 .ui-input-shell { background: rgba(255, 255, 255, 0.08); }
.dark.ui-v2 .ui-input-shell:focus-within { background: rgba(255, 255, 255, 0.11); }
.dark.ui-v2 .ui-input-shell > svg { color: #b89cff; }
.dark.ui-v2 .ui-input-shell input::placeholder { color: #aaa0b6; }
.auth-error {
    min-height: 18px;
    margin: -2px 2px 8px;
    color: var(--ui-danger);
    font-size: 12px;
    line-height: 1.35;
}
.auth-error[hidden] { display: none; }
.primary-action,
.product-action,
.hero-action {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    color: #fff !important;
    background: linear-gradient(105deg, var(--ui-primary), var(--ui-magenta) 56%, var(--ui-pink));
    border: 0;
    border-radius: 16px;
    box-shadow: 0 10px 24px rgba(150, 54, 210, 0.28), inset 0 1px rgba(255, 255, 255, 0.28);
    font-weight: 800;
    text-decoration: none;
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}
.primary-action { width: 100%; margin-top: 2px; }
.ui-v2-login .primary-action {
    overflow: hidden;
    isolation: isolate;
    box-shadow:
        0 10px 24px rgba(150, 54, 210, 0.24),
        inset 0 1px rgba(255, 255, 255, 0.42),
        inset 0 -12px 22px rgba(94, 22, 174, 0.12);
}
.ui-v2-login .primary-action::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background:
        radial-gradient(circle at 13% 88%, rgba(255, 255, 255, 0.22) 0 16px, rgba(255, 255, 255, 0.08) 17px 23px, transparent 24px),
        radial-gradient(ellipse at 91% -15%, rgba(255, 255, 255, 0.38) 0, rgba(255, 255, 255, 0.08) 35%, transparent 58%),
        linear-gradient(108deg, rgba(255, 255, 255, 0.12) 0%, transparent 30%, transparent 69%, rgba(255, 255, 255, 0.08) 100%);
    pointer-events: none;
}
.ui-v2-login .primary-action::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 18%;
    z-index: 0;
    width: 11px;
    height: 11px;
    background: rgba(255, 255, 255, 0.9);
    clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%);
    filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.58));
    opacity: 0.76;
    transform: translateY(-50%);
    pointer-events: none;
}
.ui-v2-login .primary-action .button-label,
.ui-v2-login .primary-action .button-loader {
    position: relative;
    z-index: 1;
}
.ui-v2-login .primary-action:focus-visible {
    outline: none;
    box-shadow:
        0 0 0 3px rgba(168, 77, 238, 0.18),
        0 10px 24px rgba(150, 54, 210, 0.24),
        inset 0 1px rgba(255, 255, 255, 0.42),
        inset 0 -12px 22px rgba(94, 22, 174, 0.12);
}
.ui-v2-login .primary-action:disabled:not(.is-loading)::before,
.ui-v2-login .primary-action:disabled:not(.is-loading)::after { opacity: 0; }
.primary-action:hover,
.product-action:hover,
.hero-action:hover { color: #fff; filter: brightness(1.04); transform: translateY(-1px); }
.primary-action:active,
.product-action:active,
.hero-action:active { transform: scale(0.98); }
.primary-action:disabled {
    cursor: not-allowed;
    color: #7d7488 !important;
    background: #d8d2df;
    box-shadow: none;
}
.primary-action.is-loading:disabled {
    color: #fff !important;
    background: linear-gradient(105deg, var(--ui-primary), var(--ui-magenta) 56%, var(--ui-pink));
    box-shadow: 0 10px 24px rgba(150, 54, 210, 0.22);
}
.button-loader {
    display: none;
    width: 18px;
    height: 18px;
    margin-left: 9px;
    border: 2px solid rgba(255, 255, 255, 0.42);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}
.primary-action.is-loading .button-loader { display: block; }
.auth-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    margin-top: 13px;
}
.auth-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 46px;
    padding: 8px 9px;
    color: var(--ui-primary);
    background: rgba(109, 40, 217, 0.06);
    border: 1px solid rgba(109, 40, 217, 0.1);
    border-radius: 14px;
    font-size: 11px;
    font-weight: 750;
    line-height: 1.25;
    text-align: center;
}
.auth-links a svg { width: 18px; height: 18px; flex: 0 0 18px; }
.dark.ui-v2 .auth-links a { background: rgba(139, 92, 246, 0.12); border-color: rgba(255, 255, 255, 0.08); }
.dark.ui-v2 .auth-links a { color: #cbb7ff; }

/* 注册与短信登录：复用登录页视觉体系，压缩首屏为长表单留出空间 */
.auth-hero-secondary { min-height: 286px; }
.auth-hero-art-secondary {
    right: -3%;
    width: 92%;
}
.auth-hero-breakout-secondary { height: 286px; }
.auth-hero-breakout-art-secondary {
    right: -3%;
    width: 92%;
}
.auth-hero-copy-secondary {
    bottom: 58px;
    width: min(43%, 190px);
}
.auth-hero-copy-secondary h1 {
    margin-top: 8px;
    font-size: clamp(28px, 8vw, 36px);
}
.auth-card-secondary { min-height: calc(100vh - 238px); }
.auth-card-heading-compact { margin-bottom: 14px; }
.auth-form-stacked .ui-input-shell { margin-bottom: 0; }
.auth-field { margin-bottom: 12px; }
.auth-field > label { margin-bottom: 6px; }
.auth-phone-row,
.auth-code-row {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 8px;
    min-width: 0;
}
.auth-code-row { grid-template-columns: minmax(0, 1fr) 106px; }
.ui-select-shell {
    display: flex;
    align-items: center;
    min-width: 0;
    height: 50px;
    padding: 0 9px;
    color: var(--ui-primary);
    background: #faf8fd;
    border: 1.5px solid var(--ui-line);
    border-radius: 16px;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.ui-select-shell:focus-within {
    background: var(--ui-card);
    border-color: var(--ui-primary-2);
    box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.12);
}
.ui-select-shell svg {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
}
.ui-select-shell select {
    min-width: 0;
    width: 100%;
    height: 48px;
    padding: 0 16px 0 5px;
    color: var(--ui-text);
    background: transparent;
    border: 0;
    outline: 0;
    font-size: 12px;
    font-weight: 750;
}
.ui-v2 .ui-select-shell select:focus-visible { outline: none; }
.dark.ui-v2 .ui-select-shell { background: rgba(255, 255, 255, 0.08); }
.dark.ui-v2 .ui-select-shell:focus-within { background: rgba(255, 255, 255, 0.11); }
.auth-code-action {
    position: relative;
    min-width: 0;
    min-height: 50px;
    padding: 0 10px;
    overflow: hidden;
    color: var(--ui-primary);
    background:
        radial-gradient(circle at 82% 16%, rgba(255, 255, 255, 0.72), transparent 24%),
        linear-gradient(135deg, rgba(139, 92, 246, 0.14), rgba(236, 72, 153, 0.12));
    border: 1px solid rgba(139, 92, 246, 0.16);
    border-radius: 16px;
    font-size: 11px;
    font-weight: 850;
    line-height: 1.2;
}
.auth-code-action:disabled {
    color: var(--ui-muted);
    background: var(--ui-bg);
    border-color: var(--ui-line);
}
.auth-links-single { grid-template-columns: minmax(0, 1fr); }
.auth-links-single a { min-height: 44px; }
.auth-card-sms { padding-bottom: max(28px, env(safe-area-inset-bottom, 0px)); }

/* 首页样板 */
.home-shell {
    position: relative;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    padding-bottom: 8px;
}
html:has(body.ui-v2-home),
body.ui-v2-home {
    scrollbar-width: none;
    -ms-overflow-style: none;
}
html:has(body.ui-v2-home)::-webkit-scrollbar,
body.ui-v2-home::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}
.home-hero-scene {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    color: #fff;
    background:
        linear-gradient(
            180deg,
            #6d28d9 0,
            rgba(109, 40, 217, 0.82) 30px,
            rgba(109, 40, 217, 0) 92px
        ),
        radial-gradient(circle at 78% 38%, rgba(226, 54, 224, 0.5) 0, rgba(159, 43, 215, 0.18) 29%, transparent 50%),
        radial-gradient(circle at 5% 70%, rgba(93, 66, 212, 0.55) 0, transparent 42%),
        linear-gradient(145deg, #260679 0%, #5110b4 44%, #8e20cd 73%, #c52ab8 100%);
}
.home-hero-scene::before {
    content: "";
    position: absolute;
    top: 54px;
    right: -58px;
    width: 430px;
    height: 360px;
    z-index: 0;
    background: repeating-conic-gradient(from 216deg at 56% 72%, rgba(255, 255, 255, 0.15) 0 4deg, transparent 4deg 13deg);
    border-radius: 50%;
    opacity: 0.5;
    -webkit-mask-image: radial-gradient(ellipse at center, #000 0, rgba(0, 0, 0, 0.74) 56%, transparent 78%);
    mask-image: radial-gradient(ellipse at center, #000 0, rgba(0, 0, 0, 0.74) 56%, transparent 78%);
}
.home-hero-scene::after {
    content: "";
    position: absolute;
    right: -10%;
    bottom: -64px;
    left: -10%;
    height: 92px;
    z-index: 2;
    background: var(--ui-bg);
    border-radius: 50% 50% 0 0 / 100% 100% 0 0;
}
.home-topbar {
    position: relative;
    z-index: 5;
    display: flex;
    align-items: center;
    min-height: 70px;
    padding: max(14px, env(safe-area-inset-top, 0px)) 164px 10px 16px;
    color: #fff;
    background: transparent;
}
.home-topbar .brand-lockup { min-height: 44px; color: #fff; }
.home-topbar .brand-lockup > span { display: flex; flex-direction: column; min-width: 0; }
.home-topbar .brand-lockup strong { font-size: 18px; line-height: 1.1; letter-spacing: 0.04em; }
.home-topbar .brand-lockup small {
    max-width: 150px;
    margin-top: 2px;
    overflow: hidden;
    color: rgba(255, 255, 255, 0.7);
    font-size: 9px;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.home-reward-hero {
    position: relative;
    min-height: 246px;
    margin: 0;
    overflow: visible;
    color: #fff;
    background: transparent;
}
.home-hero-art {
    position: absolute;
    right: 0;
    bottom: 0;
    z-index: 3;
    width: 92%;
    height: auto;
    max-width: none;
    object-fit: contain;
    filter: brightness(1.04) saturate(1.03) drop-shadow(0 18px 22px rgba(30, 5, 70, 0.18));
    pointer-events: none;
}
.home-hero-breakout {
    position: absolute;
    top: 70px;
    right: 0;
    left: 0;
    z-index: 6;
    height: 246px;
    overflow: hidden;
    clip-path: inset(calc(100% - 30px) 0 0 0);
    pointer-events: none;
}
.home-hero-breakout-art {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 92%;
    height: auto;
    max-width: none;
    filter: brightness(1.04) saturate(1.03);
}
.home-scene-line-art { z-index: 1; color: rgba(255, 255, 255, 0.14); }
.home-hero-copy {
    position: relative;
    z-index: 4;
    width: 52%;
    max-width: 210px;
    margin-left: 16px;
    padding: 14px 8px 16px;
    isolation: isolate;
}
.home-hero-copy::before {
    content: "";
    position: absolute;
    inset: -18px -38px -18px -22px;
    z-index: -1;
    background: radial-gradient(ellipse at 38% 52%, rgba(27, 4, 78, 0.68) 0%, rgba(40, 6, 102, 0.36) 50%, transparent 76%);
    filter: blur(5px);
    pointer-events: none;
}
.home-hero-copy h1 {
    max-width: 100%;
    margin: 10px 0 12px;
    overflow: hidden;
    font-size: 23px;
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.03em;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.home-hero-copy > p { margin: 0 0 16px; color: rgba(255, 255, 255, 0.78); font-size: 12px; }
.hero-balance { display: flex; flex-direction: column; min-width: 0; }
.hero-balance span,
.hero-balance-secondary span { color: rgba(255, 255, 255, 0.72); font-size: 10px; }
.hero-balance strong {
    display: block;
    max-width: 100%;
    margin: 3px 0 5px;
    overflow-wrap: anywhere;
    font-size: clamp(23px, 7.2vw, 31px);
    font-weight: 900;
    line-height: 1.06;
    letter-spacing: -0.04em;
}
.hero-balance-secondary {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}
.hero-balance-secondary b { min-width: 0; overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.hero-action {
    min-height: 44px;
    margin-top: 8px;
    padding: 0 5px;
    background: linear-gradient(105deg, #fff, #ffeefb);
    color: var(--ui-primary) !important;
    box-shadow: 0 9px 20px rgba(28, 5, 68, 0.18);
    border-radius: 14px;
    font-size: 12px;
}
.hero-action:hover { color: var(--ui-primary) !important; }
.hero-action svg { width: 12px; height: 12px; margin-left: 2px; }
.home-carousel {
    position: relative;
    margin: 0 14px 6px;
    padding: 3px;
    overflow: hidden;
    background: linear-gradient(115deg, rgba(139, 92, 246, 0.38), rgba(236, 72, 153, 0.28), rgba(255, 200, 61, 0.34));
    border: 0;
    border-radius: 22px;
    box-shadow: 0 8px 22px rgba(76, 35, 120, 0.1);
}
.home-carousel::after {
    content: "";
    position: absolute;
    inset: 3px;
    z-index: 1;
    background:
        radial-gradient(circle at 90% 10%, rgba(255, 255, 255, 0.24), transparent 28%),
        linear-gradient(90deg, rgba(63, 16, 132, 0.22), transparent 48%, rgba(219, 39, 119, 0.08));
    border-radius: 19px;
    pointer-events: none;
}
.home-carousel .carousel-item[hidden] { display: none; }
.home-carousel img { display: block; width: 100%; height: 94px; object-fit: cover; border-radius: 19px; }
.carousel-dots {
    position: absolute;
    left: 50%;
    bottom: 10px;
    z-index: 2;
    display: flex;
    gap: 5px;
    transform: translateX(-50%);
}
.carousel-dots span { width: 5px; height: 5px; background: rgba(255, 255, 255, 0.58); border-radius: 999px; transition: width 0.2s ease; }
.carousel-dots span.active { width: 16px; background: #fff; }
.quick-actions {
    position: relative;
    z-index: 5;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2px;
    margin: -27px 12px 12px;
    padding: 9px 5px 8px;
    background: var(--ui-card);
    border: 1px solid var(--ui-line);
    border-radius: 24px;
    box-shadow: var(--ui-shadow-md);
}
.quick-actions a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-width: 0;
    min-height: 72px;
    padding: 5px 2px 4px;
    color: var(--ui-text);
    background: transparent;
    border: 0;
    border-radius: 16px;
    box-shadow: none;
    font-size: 11px;
    font-weight: 750;
    line-height: 1.15;
    text-align: center;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.quick-actions a:hover { color: var(--ui-text); background: rgba(109, 40, 217, 0.05); transform: translateY(-1px); box-shadow: none; }
.quick-actions a > span:last-child {
    display: -webkit-box;
    width: 100%;
    margin-top: 6px;
    overflow: hidden;
    overflow-wrap: anywhere;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}
.quick-icon {
    position: relative;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    overflow: hidden;
    isolation: isolate;
    color: #fff;
    background: linear-gradient(135deg, #8b5cf6, #d946ef);
    border: 1.5px solid rgba(255, 255, 255, 0.78);
    border-radius: 14px;
    box-shadow:
        0 8px 18px rgba(124, 58, 237, 0.34),
        0 0 0 3px rgba(139, 92, 246, 0.08),
        inset 0 1px rgba(255, 255, 255, 0.5);
}
.quick-icon::before {
    content: "";
    position: absolute;
    inset: 1px;
    z-index: 0;
    background:
        radial-gradient(circle at 78% 20%, rgba(255, 255, 255, 0.9) 0 2px, transparent 3px),
        linear-gradient(145deg, rgba(255, 255, 255, 0.28), transparent 42%);
    border-radius: 12px;
    pointer-events: none;
}
.quick-actions a:nth-child(2) .quick-icon {
    background: linear-gradient(135deg, #ee42d2, #ff3d8d);
    box-shadow: 0 8px 18px rgba(236, 72, 153, 0.34), 0 0 0 3px rgba(236, 72, 153, 0.08), inset 0 1px rgba(255, 255, 255, 0.5);
}
.quick-actions a:nth-child(3) .quick-icon {
    color: #3d1d00;
    background: linear-gradient(135deg, #ffd04a, #ff941f);
    box-shadow: 0 8px 18px rgba(255, 157, 46, 0.34), 0 0 0 3px rgba(255, 200, 61, 0.1), inset 0 1px rgba(255, 255, 255, 0.58);
}
.quick-actions a:nth-child(4) .quick-icon {
    background: linear-gradient(135deg, #635bff, #995cff);
    box-shadow: 0 8px 18px rgba(109, 92, 242, 0.34), 0 0 0 3px rgba(109, 92, 242, 0.08), inset 0 1px rgba(255, 255, 255, 0.5);
}
.quick-icon svg {
    position: relative;
    z-index: 1;
    width: 24px;
    height: 24px;
    stroke-width: 2.15;
    filter: drop-shadow(0 1px 1px rgba(38, 12, 67, 0.28));
}
.featured-plan-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 13px;
    min-height: 104px;
    margin: 0 14px 14px;
    padding: 15px 44px 15px 15px;
    overflow: hidden;
    color: var(--ui-text);
    background:
        radial-gradient(circle at 85% 18%, rgba(255, 200, 61, 0.26), transparent 23%),
        linear-gradient(130deg, rgba(139, 92, 246, 0.12), rgba(236, 72, 153, 0.08)),
        var(--ui-card);
    border: 1px solid rgba(139, 92, 246, 0.15);
    border-radius: 22px;
    box-shadow: var(--ui-shadow-md);
}
.featured-plan-card:hover { color: var(--ui-text); }
.featured-plan-icon {
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    flex: 0 0 64px;
    color: #fff4c4;
    background: linear-gradient(145deg, var(--ui-orange), var(--ui-gold));
    border: 5px solid #ffe99b;
    border-radius: 50%;
    box-shadow: 0 9px 20px rgba(255, 157, 46, 0.22), inset 0 -5px 9px rgba(181, 82, 0, 0.14);
}
.featured-plan-icon svg { width: 42px; height: 42px; }
.featured-plan-copy { display: flex; flex-direction: column; min-width: 0; }
.featured-plan-copy small { color: var(--ui-primary); font-size: 9px; font-weight: 850; letter-spacing: 0.08em; text-transform: uppercase; }
.featured-plan-copy strong { margin: 2px 0; font-size: 16px; line-height: 1.25; }
.featured-plan-copy > span { display: -webkit-box; overflow: hidden; color: var(--ui-muted); font-size: 10px; line-height: 1.35; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.featured-plan-arrow {
    position: absolute;
    right: 13px;
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    color: var(--ui-primary);
    background: rgba(109, 40, 217, 0.08);
    border-radius: 11px;
}
.featured-plan-arrow svg { width: 18px; height: 18px; }
.home-products { margin: 0 14px; }
.home-products .section-heading { align-items: center; }
.home-products .section-heading h2 { margin-top: 0; }
.section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 11px;
}
.section-heading .section-kicker {
    min-height: 20px;
    padding: 2px 7px;
    color: var(--ui-primary);
    background: rgba(109, 40, 217, 0.08);
    border-color: transparent;
    font-size: 8px;
}
.section-heading h2 { margin: 4px 0 0; font-size: 21px; line-height: 1.15; letter-spacing: -0.02em; }
.section-heading > a {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    min-height: 44px;
    padding: 0 4px 0 10px;
    color: var(--ui-primary);
    font-size: 11px;
    font-weight: 800;
}
.section-heading > a svg { width: 17px; height: 17px; }
.product-list-v2 { display: grid; gap: 12px; }
.product-card-v2 {
    padding: 13px;
    background: var(--ui-card);
    border: 1px solid var(--ui-line);
    border-radius: 22px;
    box-shadow: var(--ui-shadow-sm);
}
.product-main-link {
    display: flex;
    gap: 12px;
    min-width: 0;
    color: var(--ui-text);
}
.product-main-link:hover { color: var(--ui-text); }
.product-image-wrap {
    width: 106px;
    height: 106px;
    flex: 0 0 106px;
    overflow: hidden;
    background: linear-gradient(145deg, #f0e9ff, #ffe9f5);
    border-radius: 17px;
}
.product-image-wrap img { display: block; width: 100%; height: 100%; object-fit: cover; }
.product-info-v2 { display: flex; flex: 1; flex-direction: column; min-width: 0; padding: 2px 0; }
.product-info-v2 > strong {
    display: -webkit-box;
    overflow: hidden;
    font-size: 15px;
    line-height: 1.3;
    overflow-wrap: anywhere;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}
.product-description {
    display: -webkit-box;
    margin-top: 5px;
    overflow: hidden;
    color: var(--ui-muted);
    font-size: 12px;
    line-height: 1.4;
    overflow-wrap: anywhere;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}
.product-price {
    max-width: 100%;
    margin-top: auto;
    overflow-wrap: anywhere;
    color: var(--ui-primary);
    font-size: 20px;
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: -0.03em;
}
.return-badge {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-top: 10px;
    min-height: 50px;
    padding: 7px 11px;
    color: #513520;
    background:
        radial-gradient(circle at 92% 12%, rgba(255,255,255,0.78), transparent 32%),
        #fff6d9;
    border: 1px solid rgba(239, 188, 71, 0.13);
    border-radius: 13px;
}
.return-badge-icon {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    color: #8b43e7;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(139, 67, 231, 0.09);
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(102, 52, 155, 0.08);
}
.return-badge-icon svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.return-metric {
    display: flex;
    flex: 1 1 0;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    line-height: 1.1;
}
.return-metric-label {
    overflow: hidden;
    color: #8b745f;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.01em;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.return-metric strong {
    display: block;
    margin-top: 4px;
    overflow: hidden;
    color: #4b245f;
    font-size: 14px;
    font-weight: 900;
    letter-spacing: -0.015em;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.return-metric strong small {
    color: #78626f;
    font-size: 10px;
    font-weight: 750;
    letter-spacing: 0;
}
.return-metric-divider {
    width: 1px;
    height: 27px;
    flex: 0 0 1px;
    background: linear-gradient(180deg, transparent, rgba(204, 151, 50, 0.38), transparent);
}
.dark.ui-v2 .return-badge {
    color: #ffe3a1;
    background:
        radial-gradient(circle at 92% 12%, rgba(255, 255, 255, 0.06), transparent 32%),
        rgba(255, 200, 61, 0.1);
    border-color: rgba(255, 215, 122, 0.08);
}
.dark.ui-v2 .return-badge-icon {
    color: #d7b4ff;
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.07);
}
.dark.ui-v2 .return-metric-label { color: #c8ad8a; }
.dark.ui-v2 .return-metric strong { color: #ffe6ae; }
.dark.ui-v2 .return-metric strong small { color: #d0b995; }
.product-actions-v2 { display: flex; align-items: stretch; justify-content: flex-end; gap: 8px; margin-top: 10px; }
.product-action,
.secondary-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 16px;
    border-radius: 14px;
    font-size: 11px;
    font-weight: 850;
    text-align: center;
}
.product-action { min-width: 112px; }
.product-action svg { width: 17px; height: 17px; margin-left: 5px; }
.secondary-action { color: var(--ui-primary); background: rgba(109, 40, 217, 0.07); border: 1px solid rgba(109, 40, 217, 0.1); }
.secondary-action.is-gold { color: #6e3c00; background: linear-gradient(135deg, #ffe484, var(--ui-gold)); border-color: #ffd253; }
.secondary-action.is-disabled { color: #9b92a5; background: #efebf2; border-color: transparent; cursor: not-allowed; }
.dark.ui-v2 .secondary-action.is-disabled { color: #80758d; background: rgba(255, 255, 255, 0.05); }
.empty-state-v2 {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 190px;
    padding: 28px 18px;
    color: var(--ui-muted);
    background: var(--ui-card);
    border: 1px solid var(--ui-line);
    border-radius: 22px;
    box-shadow: var(--ui-shadow-sm);
    text-align: center;
}
.empty-state-v2 p { margin: 10px 0 0; }
.empty-state-icon { display: grid; place-items: center; width: 70px; height: 70px; color: var(--ui-primary-2); background: rgba(139, 92, 246, 0.09); border-radius: 24px; }
.empty-state-icon svg { width: 42px; height: 42px; }

/* 首页底部导航 */
.ui-v2 .footer-nav-v2 {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: max(8px, env(safe-area-inset-bottom, 0px));
    z-index: 400;
    display: flex;
    width: auto;
    max-width: 580px;
    min-height: 70px;
    margin: 0 auto;
    padding: 7px 5px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(80, 43, 112, 0.08);
    border-radius: 22px;
    box-shadow: 0 12px 32px rgba(57, 28, 88, 0.17);
    transform: none;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}
.dark.ui-v2 .footer-nav-v2 { background: rgba(33, 26, 45, 0.94); border-color: rgba(255, 255, 255, 0.08); }
.ui-v2 .footer-nav-v2 a {
    display: flex;
    flex: 1 1 20%;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 54px;
    max-height: none;
    padding: 5px 2px;
    overflow: hidden;
    color: var(--ui-muted);
    border-radius: 16px;
    font-size: 11px;
    font-weight: 750;
    line-height: 1.1;
    text-align: center;
}
.ui-v2 .footer-nav-v2 a > span:last-child {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.ui-v2 .footer-nav-v2 a .nav-icon {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    margin: 0 0 2px;
    color: inherit;
    background: transparent;
    border-radius: 11px;
    font-size: 0;
}
.ui-v2 .footer-nav-v2 .nav-icon svg { width: 21px; height: 21px; }
.ui-v2 .footer-nav-v2 a.active {
    color: var(--ui-primary);
    background: rgba(109, 40, 217, 0.08);
}
.ui-v2 .footer-nav-v2 a.active .nav-icon {
    color: #fff;
    background: linear-gradient(135deg, var(--ui-primary), var(--ui-magenta));
    box-shadow: 0 6px 13px rgba(109, 40, 217, 0.24);
    filter: none;
    transform: none;
}

@media (max-width: 370px) {
    .ui-v2 .install-app-btn { right: 8px; }
    .ui-v2 .dark-toggle { right: 58px; }
    .ui-v2 .cs-float-btn { right: 108px; }
    body.ui-v2.install-app-hidden .dark-toggle {
        right: 8px;
    }

    body.ui-v2.install-app-hidden .cs-float-btn {
        right: 58px;
    }
    .ui-v2 .install-app-btn,
    .ui-v2 .dark-toggle,
    .ui-v2 .cs-float-btn { width: 44px; height: 44px; min-width: 44px; border-radius: 14px; }
    .auth-hero { min-height: 334px; }
    .auth-brand { left: 13px; font-size: 15px; }
    .auth-brand > img { width: 36px; height: 36px; flex-basis: 36px; }
    .auth-hero-art { right: -3%; bottom: 0; width: 106%; }
    .auth-hero-breakout { height: 334px; }
    .auth-hero-breakout-art { right: -3%; width: 106%; }
    .auth-hero-copy { left: 16px; bottom: 80px; width: 48%; }
    .auth-hero-copy h1 { font-size: 32px; }
    .auth-hero-copy p { font-size: 11px; }
    .auth-card { margin-right: 0; margin-left: 0; padding: 21px clamp(20px, 6.5vw, 26px) 18px; border-radius: 28px 28px 0 0; }
    .auth-card-heading { margin-bottom: 14px; }
    .auth-card-heading h2 { font-size: 19px; }
    .auth-links { gap: 7px; }
    .auth-links a { padding-right: 6px; padding-left: 6px; font-size: 10px; }
    .auth-hero-secondary { min-height: 274px; }
    .auth-hero-art-secondary { right: -2%; width: 91%; }
    .auth-hero-breakout-secondary { height: 274px; }
    .auth-hero-breakout-art-secondary { right: -2%; width: 91%; }
    .auth-hero-copy-secondary { bottom: 54px; width: 44%; }
    .auth-hero-copy-secondary h1 { font-size: 28px; }
    .auth-card-secondary { min-height: calc(100vh - 226px); }
    .auth-phone-row { grid-template-columns: 88px minmax(0, 1fr); gap: 7px; }
    .auth-code-row { grid-template-columns: minmax(0, 1fr) 96px; gap: 7px; }
    .ui-select-shell { padding-right: 6px; padding-left: 7px; }
    .ui-select-shell select { padding-right: 12px; padding-left: 4px; font-size: 11px; }
    .auth-code-action { padding-right: 7px; padding-left: 7px; font-size: 10px; }
    .home-topbar { min-height: 66px; padding-right: 146px; padding-left: 12px; }
    .home-topbar .brand-lockup > img { width: 38px; height: 38px; flex-basis: 38px; }
    .home-topbar .brand-lockup small { display: none; }
    .home-reward-hero { min-height: 232px; }
    .home-hero-art { right: 0; bottom: 0; width: 94%; }
    .home-hero-breakout { top: 66px; height: 232px; }
    .home-hero-breakout-art { right: 0; width: 94%; }
    .home-hero-copy { width: 54%; margin-left: 12px; padding: 12px 6px 14px; }
    .home-hero-copy h1 { font-size: 21px; }
    .hero-balance strong { font-size: 24px; }
    .quick-actions { gap: 1px; margin-right: 9px; margin-left: 9px; padding-right: 4px; padding-left: 4px; }
    .quick-actions a { min-height: 70px; padding: 4px 2px; font-size: 11px; border-radius: 15px; }
    .quick-icon { width: 42px; height: 42px; border-radius: 14px; }
    .quick-icon svg { width: 23px; height: 23px; }
    .home-carousel,
    .featured-plan-card,
    .home-products { margin-right: 10px; margin-left: 10px; }
    .home-carousel { margin-bottom: 8px; }
    .home-carousel img { height: 86px; }
    .featured-plan-card { gap: 10px; padding-left: 12px; }
    .featured-plan-icon { width: 56px; height: 56px; flex-basis: 56px; }
    .featured-plan-copy strong { font-size: 14px; }
    .product-card-v2 { padding: 11px; border-radius: 20px; }
    .product-image-wrap { width: 88px; height: 88px; flex-basis: 88px; border-radius: 15px; }
    .product-info-v2 > strong { font-size: 14px; }
    .product-price { font-size: 18px; }
    .return-badge { gap: 7px; padding-right: 8px; padding-left: 8px; }
    .return-badge-icon { width: 28px; height: 28px; flex-basis: 28px; }
    .return-metric-label { font-size: 10px; }
    .return-metric strong { font-size: 13px; }
    .product-actions-v2 { flex-wrap: wrap; }
    .product-action,
    .secondary-action { flex: 1 1 auto; min-width: 0; padding-right: 12px; padding-left: 12px; }
    .ui-v2 .footer-nav-v2 { left: 7px; right: 7px; padding-right: 3px; padding-left: 3px; border-radius: 20px; }
    .ui-v2 .footer-nav-v2 a { font-size: 11px; }
}

@media (min-width: 601px) {
    .home-hero-scene { border-right: 1px solid rgba(109, 40, 217, 0.08); border-left: 1px solid rgba(109, 40, 217, 0.08); }
    .auth-shell { box-shadow: 0 0 80px rgba(71, 27, 117, 0.12); }
}

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

/* ================================================================
   H5 UI V2 - 全站业务页面
   ================================================================ */
body.ui-v2-page {
    --page-accent: #8b5cf6;
    --page-accent-2: #d946ef;
    --page-warm: #ff9d2e;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    overflow-x: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
    background:
        radial-gradient(circle at 92% 7%, rgba(217, 70, 239, 0.09), transparent 25%),
        radial-gradient(circle at 4% 34%, rgba(139, 92, 246, 0.08), transparent 23%),
        var(--ui-bg);
}
html:has(body.ui-v2-page) { scrollbar-width: none; }
html:has(body.ui-v2-page)::-webkit-scrollbar,
body.ui-v2-page::-webkit-scrollbar { display: none; width: 0; height: 0; }

.ui-v2-profile,
.ui-v2-posts { --page-accent: #d946ef; --page-accent-2: #8b5cf6; }
.ui-v2-team,
.ui-v2-transactions { --page-accent: #7357f5; --page-accent-2: #a855f7; }
.ui-v2-tasks,
.ui-v2-orders { --page-accent: #ec4899; --page-accent-2: #9b4de4; }
.ui-v2-recharge,
.ui-v2-withdraw { --page-accent: #ff9d2e; --page-accent-2: #d946ef; }
.ui-v2-product-list,
.ui-v2-product-detail { --page-accent: #8b5cf6; --page-accent-2: #ec4899; }
.ui-v2-invite { --page-accent: #a855f7; --page-accent-2: #ff8a36; }
.ui-v2-news-list,
.ui-v2-news-detail,
.ui-v2-rules { --page-accent: #7558ed; --page-accent-2: #d946ef; }
.ui-v2-fixed-list,
.ui-v2-fixed-detail,
.ui-v2-my-fixed { --page-accent: #7c3aed; --page-accent-2: #f59e0b; }

.ui-v2-page .nav-gradient {
    position: sticky;
    top: 0;
    z-index: 90;
    min-height: 82px;
    padding: max(16px, env(safe-area-inset-top, 0px)) 150px 18px 16px;
    overflow: hidden;
    color: #30213f;
    background:
        radial-gradient(circle at 78% 24%, rgba(139,92,246,.12), transparent 28%),
        radial-gradient(circle at 96% 86%, rgba(236,72,153,.12), transparent 32%),
        linear-gradient(135deg,#f3edff 0%,#efe6ff 50%,#ffe9f5 100%);
    border-radius: 0;
    box-shadow: none;
    backdrop-filter: none;
}
.ui-v2-page .nav-gradient::before,
.ui-v2-page .nav-gradient::after {
    content: "";
    position: absolute;
    pointer-events: none;
}
.ui-v2-page .nav-gradient::before {
    right: 74px;
    bottom: -76px;
    width: 160px;
    height: 160px;
    border: 1px solid rgba(139,92,246,.09);
    border-radius: 50%;
    box-shadow: 0 0 0 24px rgba(139,92,246,.025),0 0 0 50px rgba(236,72,153,.018);
}
.ui-v2-page .nav-gradient::after {
    display: none;
}
.ui-v2-page .nav-gradient .nav-title {
    position: relative;
    z-index: 1;
    flex: 1;
    min-width: 0;
    padding: 0;
    color: #30213f;
    font-size: 20px;
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: -0.02em;
}
.ui-v2-page .nav-gradient .nav-title::before {
    content: "SNAN";
    display: block;
    margin-bottom: 4px;
    color: #8151d7;
    font-size: 9px;
    font-weight: 850;
    line-height: 1;
    letter-spacing: 0.18em;
}
.ui-v2-page .nav-back {
    position: relative;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    overflow: hidden;
    color: transparent !important;
    background: rgba(255,255,255,.78);
    border: 1px solid rgba(139,92,246,.12);
    border-radius: 14px;
    font-size: 0 !important;
    box-shadow: 0 7px 17px rgba(75,39,119,.1);
}
.ui-v2-page .nav-back::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    background: #7040c7;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M19 12H5M11 18l-6-6 6-6' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M19 12H5M11 18l-6-6 6-6' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
    transform: translate(-50%, -50%) translateY(2px);
}

.ui-v2-page:not(.dark) .install-app-btn,
.ui-v2-page:not(.dark) .dark-toggle,
.ui-v2-page:not(.dark) .cs-float-btn {
    color: #7040c7;
    background: rgba(255,255,255,.78);
    border-color: rgba(139,92,246,.12);
    box-shadow: 0 7px 17px rgba(75,39,119,.1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.dark.ui-v2-page .nav-gradient {
    color: #fff;
    background:
        radial-gradient(circle at 82% 18%,rgba(139,92,246,.18),transparent 30%),
        radial-gradient(circle at 98% 88%,rgba(217,70,239,.13),transparent 32%),
        linear-gradient(135deg,#171020,#21142f 54%,#2d1739 100%);
}
.dark.ui-v2-page .nav-gradient::before { border-color: rgba(255,255,255,.06); box-shadow: 0 0 0 24px rgba(255,255,255,.018),0 0 0 50px rgba(255,255,255,.012); }
.dark.ui-v2-page .nav-gradient .nav-title { color: #fff; }
.dark.ui-v2-page .nav-gradient .nav-title::before { color: rgba(255,255,255,.58); }
.dark.ui-v2-page .nav-back { background: rgba(255,255,255,.09); border-color: rgba(255,255,255,.14); box-shadow: none; }
.dark.ui-v2-page .nav-back::before { background: #fff; }

.ui-v2-page > .footer-nav:not(.footer-nav-v2) { display: none; }
.ui-v2-page .footer-nav-v2 { max-width: 576px; }

.ui-v2-page #content,
.ui-v2-page #list,
.ui-v2-page #plan-detail,
.ui-v2-page #fixed-plan-list,
.ui-v2-page #my-investment-list { position: relative; z-index: 1; }

.ui-v2-page .card-glass {
    margin: 11px 12px;
    padding: 15px;
    overflow: hidden;
    color: var(--ui-text);
    background:
        radial-gradient(circle at 92% 8%, rgba(255, 255, 255, 0.8), transparent 22%),
        var(--ui-card);
    border: 1px solid var(--ui-line);
    border-radius: 22px;
    box-shadow: var(--ui-shadow-sm);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    animation: pageCardIn 0.35s ease both;
}
.ui-v2-page .card-glass:hover { transform: none; box-shadow: var(--ui-shadow-md); }
.ui-v2-page .card-glass:active { transform: none; }
.dark.ui-v2-page .card-glass { background: var(--ui-card); }
@keyframes pageCardIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}
.ui-v2-page .card-glass h4,
.ui-v2-page .card-glass h5 { color: var(--ui-text); }
.ui-v2-page .card-glass small,
.ui-v2-page .card-glass p { color: var(--ui-muted); }

.ui-v2-page .stat-grid {
    gap: 9px;
    padding: 0 12px;
}
.ui-v2-page .stat-card {
    min-width: 0;
    padding: 14px 9px;
    color: var(--ui-text);
    background: var(--ui-card);
    border: 1px solid var(--ui-line);
    border-radius: 19px;
    box-shadow: var(--ui-shadow-sm);
    animation: none;
}
.ui-v2-page .stat-card::before {
    right: auto;
    bottom: 0;
    width: 5px;
    height: auto;
    background: linear-gradient(180deg, var(--page-accent), var(--page-accent-2));
}
.ui-v2-page .stat-card .stat-num { font-size: clamp(18px, 5vw, 24px); font-weight: 900; overflow-wrap: anywhere; }
.ui-v2-page .stat-card .stat-label { color: var(--ui-muted); font-size: 10px; }

.ui-v2-page .input-grad,
.ui-v2-page select.input-grad {
    min-height: 50px;
    margin-bottom: 10px;
    padding: 12px 14px;
    color: var(--ui-text);
    background: #faf8fd;
    border: 1px solid #e8e0f2;
    border-radius: 15px;
    outline: none;
    box-shadow: inset 0 1px 2px rgba(76, 35, 120, 0.025);
}
.ui-v2-page .input-grad:focus,
.ui-v2-page select.input-grad:focus {
    border-color: rgba(139, 92, 246, 0.72);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.12);
}
.dark.ui-v2-page .input-grad,
.dark.ui-v2-page select.input-grad { color: var(--ui-text); background: rgba(255, 255, 255, 0.06); border-color: var(--ui-line); }

.ui-v2-page .btn-grad,
.ui-v2-page .btn-gold-grad {
    min-height: 46px;
    padding: 11px 20px;
    overflow: hidden;
    color: #fff !important;
    background: linear-gradient(105deg, #7629e8 0%, #c436e5 54%, #ef3f9f 100%);
    border: 0;
    border-radius: 15px;
    box-shadow: 0 9px 22px rgba(150, 54, 210, 0.22), inset 0 1px rgba(255, 255, 255, 0.38);
    font-size: 13px;
    font-weight: 800;
}
.ui-v2-page .btn-grad::before,
.ui-v2-page .btn-gold-grad::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 14% 85%, rgba(255, 255, 255, 0.2) 0 14px, transparent 15px),
        radial-gradient(circle at 88% 18%, rgba(255, 255, 255, 0.8) 0 2px, transparent 3px),
        linear-gradient(140deg, rgba(255, 255, 255, 0.16), transparent 45%);
    pointer-events: none;
}
.ui-v2-page .btn-grad::after,
.ui-v2-page .btn-gold-grad::after { display: none; }
.ui-v2-page .btn-grad-sm { width: auto; min-height: 44px; padding: 8px 14px; border-radius: 13px; font-size: 11px; }
.ui-v2-page .btn-gold-grad { color: #3d1d00 !important; background: linear-gradient(105deg, #ffd34f, #ff9d2e 62%, #ff7c35); box-shadow: 0 9px 22px rgba(255, 157, 46, 0.23), inset 0 1px rgba(255, 255, 255, 0.5); }
.ui-v2-page .btn-danger-grad { color: #fff !important; background: linear-gradient(105deg, #e54469, #ef3f9f); }
.ui-v2-page .btn-grad:disabled,
.ui-v2-page .btn-gold-grad:disabled { color: var(--ui-muted) !important; background: #e7e1eb !important; box-shadow: none; }
.dark.ui-v2-page .btn-grad:disabled,
.dark.ui-v2-page .btn-gold-grad:disabled { background: rgba(255, 255, 255, 0.1) !important; }

.ui-v2-page .tab-grad {
    position: sticky;
    top: 92px;
    z-index: 12;
    gap: 3px;
    margin: 10px 12px 12px;
    padding: 5px;
    background: var(--ui-card);
    border: 1px solid var(--ui-line);
    border-radius: 17px;
    box-shadow: var(--ui-shadow-sm);
}
.ui-v2-page .tab-grad a {
    min-height: 40px;
    padding: 10px 7px;
    color: var(--ui-muted);
    border-radius: 13px;
    font-size: 11px;
    font-weight: 750;
}
.ui-v2-page .tab-grad a.active {
    color: #fff;
    background: linear-gradient(110deg, var(--page-accent), var(--page-accent-2));
    box-shadow: 0 6px 15px rgba(124, 58, 237, 0.2), inset 0 1px rgba(255, 255, 255, 0.36);
}

.ui-v2-page .badge-grad {
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.32);
}
.ui-v2-page .badge-primary { background: linear-gradient(110deg, #7954ed, #b346e7); }
.ui-v2-page .badge-danger { background: linear-gradient(110deg, #e94d79, #ef3f9f); }
.ui-v2-page .badge-warning { color: #3d1d00; background: linear-gradient(110deg, #ffd34f, #ff9d2e); }
.ui-v2-page .badge-success { background: linear-gradient(110deg, #16a47a, #34c796); }

.ui-v2-page .progress-wrap { height: 7px; background: #eee8f5; border-radius: 999px; }
.ui-v2-page .progress-bar { background: linear-gradient(90deg, var(--page-accent), var(--page-accent-2), #ff9d2e); }
.dark.ui-v2-page .progress-wrap { background: rgba(255, 255, 255, 0.09); }

.ui-v2-page .loading-spinner {
    width: 38px;
    height: 38px;
    margin: 46px auto;
    border: 3px solid rgba(139, 92, 246, 0.12);
    border-top-color: var(--page-accent);
    box-shadow: 0 5px 18px rgba(139, 92, 246, 0.12);
}
.ui-v2-page .empty-state,
.ui-v2-page .investment-empty {
    margin: 18px 12px;
    padding: 38px 18px;
    color: var(--ui-muted);
    background: var(--ui-card);
    border: 1px solid var(--ui-line);
    border-radius: 22px;
    box-shadow: var(--ui-shadow-sm);
}
.ui-v2-page .empty-icon {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    margin: 0 auto 13px;
    color: transparent;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.16), rgba(236, 72, 153, 0.12));
    border: 1px solid rgba(139, 92, 246, 0.14);
    border-radius: 19px;
    font-size: 0;
    opacity: 1;
}
.ui-v2-page .empty-icon::before {
    content: "";
    width: 22px;
    height: 18px;
    border: 2px solid var(--page-accent);
    border-radius: 6px;
    box-shadow: 0 -6px 0 -4px var(--page-accent);
}

.ui-v2-page .price-grad,
.ui-v2-page .points-grad {
    color: var(--page-accent);
    background: linear-gradient(120deg, var(--page-accent), var(--page-accent-2));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.ui-v2-page .skeleton {
    background: linear-gradient(90deg, rgba(139, 92, 246, 0.08) 25%, rgba(217, 70, 239, 0.12) 50%, rgba(139, 92, 246, 0.08) 75%);
    background-size: 200% 100%;
}

@media (max-width: 370px) {
    .ui-v2-page .nav-gradient { min-height: 78px; padding: 14px 152px 16px 12px; border-radius: 0; }
    .ui-v2-page .nav-gradient .nav-title { font-size: 18px; }
    .ui-v2-page .nav-back { width: 44px; height: 44px; flex-basis: 44px; border-radius: 13px; }
    .ui-v2-page .card-glass { margin-right: 9px; margin-left: 9px; padding: 13px; border-radius: 19px; }
    .ui-v2-page .stat-grid { gap: 7px; padding-right: 9px; padding-left: 9px; }
    .ui-v2-page .tab-grad { top: 86px; margin-right: 9px; margin-left: 9px; }
    .ui-v2-page .footer-nav-v2 { max-width: calc(100% - 14px); }
}

/* 个人中心 */
.profile-page-shell { padding-bottom: 8px; }
.profile-identity-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 13px;
    min-height: 132px;
    margin: 12px;
    padding: 20px 18px;
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(circle at 88% 18%, rgba(255, 200, 61, 0.28), transparent 24%),
        linear-gradient(130deg, #3a087f, #7927da 52%, #df3ebd);
    border-radius: 25px;
    box-shadow: 0 16px 34px rgba(92, 27, 156, 0.25);
}
.profile-identity-card::after {
    content: "";
    position: absolute;
    right: -28px;
    bottom: -54px;
    width: 150px;
    height: 150px;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 50%;
    box-shadow: 0 0 0 22px rgba(255,255,255,.035), 0 0 0 46px rgba(255,255,255,.025);
}
.profile-avatar {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    flex: 0 0 64px;
    color: #fff;
    background: linear-gradient(135deg, #b34cf2, #f14aa6);
    border: 2px solid rgba(255,255,255,.7);
    border-radius: 21px;
    box-shadow: 0 10px 22px rgba(35, 5, 80, .25), inset 0 1px rgba(255,255,255,.45);
}
.profile-avatar svg { width: 30px; height: 30px; stroke-width: 2.1; }
.profile-identity-copy { position: relative; z-index: 1; min-width: 0; flex: 1; }
.profile-identity-copy .ui-eyebrow { min-height: 20px; padding: 3px 8px; color: #fff; background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.2); font-size: 8px; }
.profile-identity-copy h1 { margin: 7px 0 3px; overflow: hidden; font-size: 22px; font-weight: 900; text-overflow: ellipsis; white-space: nowrap; }
.profile-identity-copy p { margin: 0; color: rgba(255,255,255,.7); font-size: 11px; }
.profile-vip {
    position: absolute;
    right: 13px;
    bottom: 12px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    max-width: 38%;
    padding: 5px 8px;
    color: #4a2500;
    background: linear-gradient(120deg, #ffe064, #ff9d2e);
    border: 1px solid rgba(255,255,255,.45);
    border-radius: 999px;
    font-size: 9px;
    font-weight: 850;
}
.profile-vip svg { width: 13px; height: 13px; flex: 0 0 13px; }
.profile-assets-card {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 1px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    min-height: 112px;
    margin: 12px;
    padding: 16px 14px;
    overflow: hidden;
    color: var(--ui-text);
    background:
        radial-gradient(circle at 10% 10%, rgba(139, 92, 246, .12), transparent 34%),
        radial-gradient(circle at 92% 90%, rgba(255, 157, 46, .1), transparent 34%),
        var(--ui-card);
    border: 1px solid rgba(139, 92, 246, .12);
    border-radius: 24px;
    box-shadow: 0 12px 30px rgba(73, 39, 116, .1);
}
.profile-asset-item {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    min-width: 0;
    padding: 4px 2px;
}
.profile-asset-icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .72);
    border-radius: 14px;
    box-shadow: 0 7px 16px rgba(83, 44, 145, .18), inset 0 1px rgba(255, 255, 255, .38);
}
.profile-asset-icon-deposit { background: linear-gradient(135deg, #7655ed, #b348ea); }
.profile-asset-icon-balance { background: linear-gradient(135deg, #ffbd3d, #ff7b38); }
.profile-asset-icon svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.profile-asset-copy { min-width: 0; }
.profile-asset-copy span { display: block; margin-bottom: 4px; color: var(--ui-muted); font-size: 9px; font-weight: 750; }
.profile-asset-copy strong { display: block; overflow-wrap: anywhere; color: var(--ui-text); font-size: clamp(16px, 4.5vw, 21px); font-weight: 950; line-height: 1.1; letter-spacing: -.02em; }
.profile-asset-item:last-of-type .profile-asset-copy strong { color: #8b46e8; }
.profile-assets-divider { width: 1px; height: 52px; background: linear-gradient(180deg, transparent, rgba(139, 92, 246, .22), transparent); }
.profile-stat-secondary { display: none !important; }
.dark .profile-assets-card {
    background:
        radial-gradient(circle at 10% 10%, rgba(139, 92, 246, .13), transparent 34%),
        radial-gradient(circle at 92% 90%, rgba(255, 157, 46, .08), transparent 34%),
        var(--ui-card);
    border-color: rgba(255, 255, 255, .08);
    box-shadow: 0 12px 28px rgba(0, 0, 0, .22);
}
.profile-menu {
    display: grid;
    gap: 2px;
    margin: 12px;
    padding: 6px;
    background: var(--ui-card);
    border: 1px solid var(--ui-line);
    border-radius: 23px;
    box-shadow: var(--ui-shadow-sm);
}
.profile-menu-item {
    display: grid;
    grid-template-columns: 42px minmax(0,1fr) 20px;
    align-items: center;
    gap: 10px;
    min-height: 56px;
    padding: 7px 10px;
    color: var(--ui-text) !important;
    background: transparent;
    border: 0;
    border-bottom: 1px solid var(--ui-line);
    border-radius: 15px;
    font-weight: 750;
    text-align: left;
}
.profile-menu-item:hover { background: rgba(139,92,246,.055); }
.profile-menu-icon { display: grid; place-items: center; width: 40px; height: 40px; color: #fff; background: linear-gradient(135deg, #8b5cf6, #d946ef); border: 1px solid rgba(255,255,255,.6); border-radius: 14px; box-shadow: 0 6px 14px rgba(139,92,246,.2); }
.profile-menu-item:nth-child(2) .profile-menu-icon,
.profile-menu-item:nth-child(6) .profile-menu-icon { background: linear-gradient(135deg, #635bff, #9b5cff); }
.profile-menu-item:nth-child(3) .profile-menu-icon { background: linear-gradient(135deg, #ffbc3d, #ff8a2e); }
.profile-menu-icon svg { width: 20px; height: 20px; stroke-width: 2; }
.profile-menu-arrow { width: 18px; height: 18px; color: var(--ui-muted); }
.profile-logout { min-height: 48px; color: var(--ui-danger); background: rgba(227,77,111,.07); border: 0; border-radius: 15px; font-weight: 850; }
#bank-cards-area .card-glass { margin: 4px 0 8px; background: var(--ui-bg); box-shadow: none; }

/* Profile structure redesign */
.profile-page-shell { padding-bottom: 12px; }
.profile-identity-card {
    display: block;
    min-height: 174px;
    padding: 18px;
    color: var(--ui-text);
    background:
        radial-gradient(circle at 94% 4%, rgba(236,72,153,.18), transparent 31%),
        radial-gradient(circle at 2% 96%, rgba(139,92,246,.15), transparent 32%),
        var(--ui-card);
    border: 1px solid rgba(139,92,246,.14);
    border-radius: 28px;
    box-shadow: 0 16px 36px rgba(69,38,108,.13);
}
.profile-identity-card::before,
.profile-identity-card::after {
    content: "";
    position: absolute;
    pointer-events: none;
    border: 1px solid rgba(139,92,246,.09);
    border-radius: 50%;
}
.profile-identity-card::before { top: -72px; right: -52px; width: 170px; height: 170px; box-shadow: 0 0 0 24px rgba(139,92,246,.025); }
.profile-identity-card::after { right: 32px; bottom: -96px; width: 150px; height: 150px; box-shadow: 0 0 0 18px rgba(236,72,153,.025); }
.profile-identity-main {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 72px minmax(0,1fr) 42px;
    align-items: center;
    gap: 13px;
}
.profile-avatar {
    width: 72px;
    height: 72px;
    flex-basis: auto;
    color: #fff;
    background: linear-gradient(145deg,#7139df,#d946ef 64%,#ff8a3d);
    border: 5px solid rgba(255,255,255,.86);
    border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(139,92,246,.28), 0 12px 25px rgba(97,43,157,.23), inset 0 1px rgba(255,255,255,.45);
}
.profile-avatar svg { width: 31px; height: 31px; fill: none; stroke: currentColor; stroke-width: 2.05; stroke-linecap: round; }
.profile-identity-copy { min-width: 0; }
.profile-identity-copy .ui-eyebrow { min-height: 19px; padding: 3px 8px; color: #7941d9; background: rgba(139,92,246,.09); border-color: rgba(139,92,246,.13); font-size: 8px; }
.profile-identity-copy h1 { margin: 7px 0 3px; color: var(--ui-text); font-size: 23px; font-weight: 950; letter-spacing: -.02em; }
.profile-identity-copy p { overflow: hidden; color: var(--ui-muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.profile-settings-link {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    color: #7c4ad8;
    background: rgba(255,255,255,.7);
    border: 1px solid rgba(139,92,246,.14);
    border-radius: 50%;
    box-shadow: 0 7px 16px rgba(83,44,145,.1);
}
.profile-settings-link svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.profile-membership-band {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 42px minmax(0,1fr) auto;
    align-items: center;
    gap: 10px;
    min-height: 52px;
    margin-top: 17px;
    padding: 7px 13px 7px 8px;
    overflow: hidden;
    color: #fff;
    background: linear-gradient(105deg,#6430c9,#a43de1 58%,#e94bb9);
    border: 1px solid rgba(255,255,255,.55);
    border-radius: 18px;
    box-shadow: 0 10px 21px rgba(106,45,169,.2), inset 0 1px rgba(255,255,255,.25);
}
.profile-membership-crown { display: grid; place-items: center; width: 38px; height: 38px; color: #6f3600; background: linear-gradient(145deg,#ffe979,#ffad2e); border: 1px solid rgba(255,255,255,.65); border-radius: 13px; box-shadow: 0 6px 14px rgba(255,151,29,.24); }
.profile-membership-crown svg { width: 20px; height: 20px; fill: currentColor; stroke: currentColor; stroke-width: 1.2; }
.profile-membership-brand { position: relative; z-index: 1; font-size: 10px; font-weight: 900; letter-spacing: .16em; }
.profile-membership-band strong { position: relative; z-index: 1; max-width: 132px; padding: 6px 10px; overflow: hidden; color: #5c2d00; background: linear-gradient(120deg,#fff278,#ffb332); border-radius: 999px; font-size: 11px; font-weight: 950; text-overflow: ellipsis; white-space: nowrap; }
.profile-membership-shine { position: absolute; top: -22px; right: 76px; width: 105px; height: 95px; background: radial-gradient(circle,rgba(255,255,255,.28),transparent 64%); transform: rotate(-16deg); }
.profile-membership-band.is-regular { background: linear-gradient(105deg,#6f6879,#898094 58%,#a097a6); box-shadow: 0 10px 21px rgba(73,65,83,.16), inset 0 1px rgba(255,255,255,.22); }
.profile-membership-band.is-regular .profile-membership-crown { color: #61576a; background: linear-gradient(145deg,#f4eff7,#dcd3e1); box-shadow: 0 6px 14px rgba(80,68,91,.14); }
.profile-membership-band.is-regular strong { color: #554c5e; background: rgba(255,255,255,.86); }

.profile-balance-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; margin: 12px; }
.profile-balance-card {
    position: relative;
    display: flex;
    min-width: 0;
    min-height: 132px;
    padding: 17px 14px 13px;
    overflow: hidden;
    color: #302340 !important;
    border: 1px solid rgba(255,255,255,.75);
    border-radius: 25px;
    box-shadow: 0 13px 28px rgba(81,47,119,.12), inset 0 1px rgba(255,255,255,.55);
    flex-direction: column;
    align-items: flex-start;
}
.profile-balance-card::after { content: ""; position: absolute; right: -34px; bottom: -50px; width: 110px; height: 110px; border: 1px solid rgba(255,255,255,.38); border-radius: 50%; box-shadow: 0 0 0 16px rgba(255,255,255,.09); }
.profile-balance-deposit { background: linear-gradient(145deg,#eee7ff,#d9c6ff 58%,#c6a9ff); }
.profile-balance-points { background: linear-gradient(145deg,#fff3c4,#ffe182 56%,#ffc85c); }
.profile-balance-label { position: relative; z-index: 1; max-width: 100%; color: rgba(48,35,64,.66); font-size: 10px; font-weight: 850; }
.profile-balance-card strong { position: relative; z-index: 1; display: block; max-width: 100%; margin-top: 8px; overflow-wrap: anywhere; font-size: clamp(19px,5.2vw,24px); font-weight: 950; line-height: 1.05; letter-spacing: -.03em; }
.profile-balance-action { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 3px; min-height: 27px; margin-top: auto; padding: 5px 8px 5px 10px; color: #5f338d; background: rgba(255,255,255,.58); border: 1px solid rgba(255,255,255,.72); border-radius: 999px; box-shadow: 0 5px 12px rgba(79,38,113,.09); font-size: 9px; font-weight: 900; }
.profile-balance-points .profile-balance-action { color: #653600; background: rgba(255,255,255,.62); }
.profile-balance-action svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.profile-stat-secondary { display: none !important; }

.profile-shortcuts {
    display: grid;
    grid-template-columns: repeat(4,minmax(0,1fr));
    gap: 4px;
    margin: 12px;
    padding: 15px 7px 13px;
    background: var(--ui-card);
    border: 1px solid rgba(139,92,246,.11);
    border-radius: 27px;
    box-shadow: 0 14px 32px rgba(69,38,108,.1);
}
.profile-shortcut { display: flex; min-width: 0; min-height: 82px; padding: 0 2px; color: var(--ui-text) !important; background: transparent; border: 0; flex-direction: column; align-items: center; justify-content: flex-start; text-align: center; }
.profile-shortcut-icon { display: grid; place-items: center; width: 49px; height: 49px; margin-bottom: 8px; color: #fff; border: 1px solid rgba(255,255,255,.72); border-radius: 17px; box-shadow: 0 8px 18px rgba(99,50,156,.2), inset 0 1px rgba(255,255,255,.36); transition: transform .16s ease; }
.ui-v2-profile .profile-bank-cards .input-grad {
    font-size: 16px;
}
.profile-shortcut:active .profile-shortcut-icon { transform: translateY(1px) scale(.97); }
.profile-shortcut-icon svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.profile-shortcut-orders .profile-shortcut-icon { background: linear-gradient(145deg,#7d4bf0,#c342ea); }
.profile-shortcut-transactions .profile-shortcut-icon { background: linear-gradient(145deg,#5a5bf7,#8e57ee); }
.profile-shortcut-bank .profile-shortcut-icon { background: linear-gradient(145deg,#ffb43b,#ff7d38); }
.profile-shortcut-rules .profile-shortcut-icon { background: linear-gradient(145deg,#df3db6,#f0649a); }
.profile-shortcut > span:last-child { display: block; width: 100%; overflow-wrap: anywhere; font-size: 11px; font-weight: 800; line-height: 1.18; }
.profile-bank-cards { margin: -3px 12px 12px; }
.profile-bank-cards .card-glass { margin: 0 !important; background: var(--ui-card); border: 1px solid rgba(139,92,246,.12); border-radius: 23px; box-shadow: 0 12px 28px rgba(69,38,108,.09); }

.profile-account-card { display: grid; gap: 8px; margin: 12px; padding: 7px; background: var(--ui-card); border: 1px solid var(--ui-line); border-radius: 24px; box-shadow: var(--ui-shadow-sm); }
.profile-account-link { display: grid; grid-template-columns: 42px minmax(0,1fr) 18px; align-items: center; gap: 10px; min-height: 56px; padding: 7px 10px; color: var(--ui-text) !important; border-radius: 17px; font-size: 12px; font-weight: 800; }
.profile-account-icon { display: grid; place-items: center; width: 40px; height: 40px; color: #fff; background: linear-gradient(145deg,#7357f5,#d946ef); border: 1px solid rgba(255,255,255,.68); border-radius: 14px; box-shadow: 0 7px 16px rgba(115,87,245,.2); }
.profile-account-icon svg,
.profile-account-arrow,
.profile-logout svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.profile-account-icon svg { width: 20px; height: 20px; }
.profile-account-arrow { width: 17px; height: 17px; color: var(--ui-muted); }
.profile-logout { display: flex; align-items: center; justify-content: center; gap: 7px; min-height: 48px; color: var(--ui-danger); background: rgba(227,77,111,.07); border: 1px solid rgba(227,77,111,.08); border-radius: 16px; font-weight: 850; }
.profile-logout > span { display: grid; place-items: center; width: 26px; height: 26px; color: #df4d6e; background: rgba(227,77,111,.1); border-radius: 9px; }
.profile-logout svg { width: 15px; height: 15px; }

.dark .profile-identity-card,
.dark .profile-shortcuts,
.dark .profile-account-card,
.dark .profile-bank-cards .card-glass { border-color: rgba(255,255,255,.08); box-shadow: 0 14px 30px rgba(0,0,0,.22); }
.dark .profile-identity-card { background: radial-gradient(circle at 92% 7%,rgba(217,70,239,.14),transparent 31%),radial-gradient(circle at 0 100%,rgba(139,92,246,.13),transparent 34%),var(--ui-card); }
.dark .profile-settings-link { color: #c6a7ff; background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.09); }
.dark .profile-balance-deposit { background: linear-gradient(145deg,#312449,#49306a 58%,#5d397c); color: #fff !important; }
.dark .profile-balance-points { background: linear-gradient(145deg,#463821,#664b22 58%,#7d5924); color: #fff !important; }
.dark .profile-balance-label { color: rgba(255,255,255,.67); }
.dark .profile-balance-deposit .profile-balance-action { color: #eadcff; background: rgba(20,12,31,.28); border-color: rgba(255,255,255,.2); }
.dark .profile-balance-points .profile-balance-action { color: #ffe6a1; background: rgba(26,18,9,.32); }

/* Profile-only lightweight immersive header */
.ui-v2-profile .nav-gradient {
    min-height: 96px;
    padding: max(18px, env(safe-area-inset-top, 0px)) 162px 28px 16px;
    color: #30213f;
    background:
        radial-gradient(circle at 78% 24%, rgba(139,92,246,.12), transparent 28%),
        radial-gradient(circle at 96% 86%, rgba(236,72,153,.12), transparent 32%),
        linear-gradient(135deg,#f3edff 0%,#efe6ff 50%,#ffe9f5 100%);
    border-bottom: 0;
    border-radius: 0;
    box-shadow: none;
}
.ui-v2-profile .nav-gradient::before {
    right: 74px;
    bottom: -86px;
    width: 170px;
    height: 170px;
    border-color: rgba(139,92,246,.09);
    box-shadow: 0 0 0 24px rgba(139,92,246,.025),0 0 0 50px rgba(236,72,153,.018);
}
.ui-v2-profile .nav-gradient::after { display: none; }
.ui-v2-profile .nav-gradient .nav-title { color: #30213f; font-size: 20px; }
.ui-v2-profile .nav-gradient .nav-title::before { color: #8151d7; }
.ui-v2-profile .profile-identity-card { margin-top: 10px; }
.ui-v2-profile:not(.dark) .install-app-btn,
.ui-v2-profile:not(.dark) .dark-toggle,
.ui-v2-profile:not(.dark) .cs-float-btn {
    top: max(14px, env(safe-area-inset-top, 0px));
    width: 44px;
    height: 44px;
    min-width: 44px;
    color: #7040c7;
    background: rgba(255,255,255,.78);
    border-color: rgba(139,92,246,.12);
    border-radius: 13px;
    box-shadow: 0 7px 17px rgba(75,39,119,.1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.ui-v2-profile:not(.dark) .install-app-btn { right: 12px; }
.ui-v2-profile:not(.dark) .dark-toggle { right: 62px; }
.ui-v2-profile:not(.dark) .cs-float-btn { right: 112px; }
.ui-v2-profile .install-app-btn,
.ui-v2-profile .dark-toggle,
.ui-v2-profile .cs-float-btn { top: max(14px, env(safe-area-inset-top, 0px)); width: 44px; height: 44px; min-width: 44px; border-radius: 14px; }
.ui-v2-profile .install-app-btn { right: 12px; }
.ui-v2-profile .dark-toggle { right: 62px; }
.ui-v2-profile .cs-float-btn { right: 112px; }
.ui-v2-profile.dark .nav-gradient {
    color: #fff;
    background:
        radial-gradient(circle at 82% 18%,rgba(139,92,246,.18),transparent 30%),
        radial-gradient(circle at 98% 88%,rgba(217,70,239,.13),transparent 32%),
        linear-gradient(135deg,#171020,#21142f 54%,#2d1739 100%);
    border-bottom-color: rgba(255,255,255,.06);
}
.ui-v2-profile.dark .nav-gradient::before { border-color: rgba(255,255,255,.06); box-shadow: 0 0 0 24px rgba(255,255,255,.018),0 0 0 50px rgba(255,255,255,.012); }
.ui-v2-profile.dark .nav-gradient .nav-title { color: #fff; }
.ui-v2-profile.dark .nav-gradient .nav-title::before { color: rgba(255,255,255,.58); }

/* 修改密码 */
.settings-shell { padding-bottom: 28px; }
.settings-intro { display: flex; align-items: center; gap: 13px; margin: 14px 12px 8px; padding: 16px; color: var(--ui-text); background: linear-gradient(125deg, rgba(139,92,246,.13), rgba(236,72,153,.08)), var(--ui-card); border: 1px solid rgba(139,92,246,.14); border-radius: 22px; box-shadow: var(--ui-shadow-sm); }
.settings-lock { display: grid; place-items: center; width: 54px; height: 54px; flex: 0 0 54px; color: #fff; background: linear-gradient(135deg, #8b5cf6, #ec4899); border: 1px solid rgba(255,255,255,.7); border-radius: 18px; box-shadow: 0 8px 18px rgba(139,92,246,.24); }
.settings-lock svg { width: 26px; height: 26px; stroke-width: 2; }
.settings-intro h1 { margin: 4px 0 0; font-size: 19px; font-weight: 900; }
.settings-form { padding: 18px !important; }
.settings-form > label { display: block; margin: 12px 2px 6px; font-size: 11px; font-weight: 800; }
.settings-form > label:first-of-type { margin-top: 0; }
.settings-input { position: relative; }
.settings-input > svg { position: absolute; top: 15px; left: 14px; z-index: 2; width: 20px; height: 20px; color: var(--page-accent); }
.settings-input .input-grad { padding-left: 44px; }
.settings-form .btn-grad { margin-top: 8px; }

/* 邀请页面 */
.invite-code-card { position: relative; display: flex; align-items: center; gap: 14px; min-height: 142px; margin: 12px; padding: 20px 18px; overflow: hidden; color: #fff; background: radial-gradient(circle at 88% 18%, rgba(255,208,74,.3), transparent 25%), linear-gradient(130deg,#3a087f,#8d2bdb 53%,#e949a4); border-radius: 25px; box-shadow: 0 16px 34px rgba(92,27,156,.24); }
.invite-code-card::after { content: ""; position: absolute; right: -24px; bottom: -54px; width: 145px; height: 145px; border: 1px solid rgba(255,255,255,.16); border-radius: 50%; box-shadow: 0 0 0 22px rgba(255,255,255,.03), 0 0 0 44px rgba(255,255,255,.02); }
.invite-gift { position: relative; z-index: 1; display: grid; place-items: center; width: 66px; height: 66px; flex: 0 0 66px; color: #fff; background: linear-gradient(135deg,#f044cc,#ff8a36); border: 2px solid rgba(255,255,255,.68); border-radius: 22px; box-shadow: 0 10px 24px rgba(46,7,90,.25); }
.invite-gift svg { width: 32px; height: 32px; stroke-width: 2; }
.invite-code-card > div { position: relative; z-index: 1; min-width: 0; }
.invite-code-card .ui-eyebrow { min-height: 20px; padding: 3px 8px; color: #fff; background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.18); font-size: 8px; }
.invite-code-card strong { display: block; margin: 7px 0 4px; overflow-wrap: anywhere; font-size: 29px; font-weight: 950; letter-spacing: .13em; }
.invite-code-card p { margin: 0; color: rgba(255,255,255,.72); font-size: 10px; }
.page-card-heading { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.page-card-heading h2 { margin: 0; font-size: 16px; font-weight: 900; }
.page-card-icon { display: grid; place-items: center; width: 38px; height: 38px; color: #fff; background: linear-gradient(135deg,var(--page-accent),var(--page-accent-2)); border: 1px solid rgba(255,255,255,.65); border-radius: 13px; box-shadow: 0 6px 14px rgba(139,92,246,.2); }
.page-card-icon svg { width: 20px; height: 20px; stroke-width: 2; }
.invite-qr-card { text-align: center; }
.invite-qr-card .page-card-heading { justify-content: center; }
.invite-qr-frame { display: grid; place-items: center; width: 216px; height: 216px; margin: 5px auto 10px; padding: 8px; background: linear-gradient(135deg,rgba(139,92,246,.2),rgba(255,200,61,.18)); border: 1px solid rgba(139,92,246,.16); border-radius: 23px; }
.invite-qr-frame img { width: 198px; height: 198px; object-fit: cover; background: #fff; border-radius: 17px; }
.invite-qr-error { display: grid; place-items: center; width: 198px; height: 198px; color: var(--ui-muted); background: var(--ui-bg); border-radius: 17px; }
.invite-qr-card p,
.invite-link-card p { margin: 7px 0 0; color: var(--ui-muted); font-size: 11px; }
.invite-link-row { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 8px; }
.invite-link-row .input-grad { min-width: 0; margin: 0; font-size: 11px; }
.invite-team-stats { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 7px; }
.invite-team-stats > div { min-width: 0; padding: 12px 6px; text-align: center; background: linear-gradient(145deg,rgba(139,92,246,.08),rgba(236,72,153,.05)); border: 1px solid rgba(139,92,246,.1); border-radius: 16px; }
.invite-team-stats strong { display: block; overflow-wrap: anywhere; color: var(--page-accent); font-size: 18px; font-weight: 900; }
.invite-team-stats small { display: block; margin-top: 3px; color: var(--ui-muted); font-size: 9px; }

@media (max-width: 370px) {
    .ui-v2-profile .nav-gradient { min-height: 92px; padding: 16px 156px 25px 12px; }
    .ui-v2-profile .nav-gradient .nav-title { font-size: 18px; }
    .ui-v2-profile:not(.dark) .install-app-btn,
    .ui-v2-profile:not(.dark) .dark-toggle,
    .ui-v2-profile:not(.dark) .cs-float-btn { width: 44px; height: 44px; min-width: 44px; border-radius: 14px; }
    .ui-v2-profile:not(.dark) .install-app-btn { right: 8px; }
    .ui-v2-profile:not(.dark) .dark-toggle { right: 58px; }
    .ui-v2-profile:not(.dark) .cs-float-btn { right: 108px; }
    .ui-v2-profile .install-app-btn,
    .ui-v2-profile .dark-toggle,
    .ui-v2-profile .cs-float-btn { width: 44px; height: 44px; min-width: 44px; border-radius: 14px; }
    .ui-v2-profile .install-app-btn { right: 8px; }
    .ui-v2-profile .dark-toggle { right: 58px; }
    .ui-v2-profile .cs-float-btn { right: 108px; }
    .ui-v2-profile .profile-identity-card { margin-top: 9px; }
    .profile-identity-card,
    .invite-code-card { margin-right: 9px; margin-left: 9px; padding-right: 14px; padding-left: 14px; }
    .profile-avatar { width: 58px; height: 58px; flex-basis: 58px; }
    .profile-identity-main { grid-template-columns: 58px minmax(0,1fr) 44px; gap: 10px; }
    .profile-settings-link { width: 44px; height: 44px; }
    .profile-identity-copy h1 { font-size: 20px; }
    .profile-membership-band { grid-template-columns: 38px minmax(0,1fr) auto; padding-right: 9px; }
    .profile-membership-crown { width: 35px; height: 35px; }
    .profile-membership-band strong { padding-right: 8px; padding-left: 8px; font-size: 10px; }
    .profile-balance-grid,
    .profile-shortcuts,
    .profile-account-card { margin-right: 9px; margin-left: 9px; }
    .profile-balance-grid { gap: 7px; }
    .profile-balance-card { min-height: 126px; padding: 14px 11px 11px; border-radius: 22px; }
    .profile-balance-card strong { font-size: 17px; }
    .profile-shortcuts { padding-right: 4px; padding-left: 4px; }
    .profile-shortcut-icon { width: 44px; height: 44px; border-radius: 15px; }
    .profile-shortcut-icon svg { width: 21px; height: 21px; }
    .profile-shortcut > span:last-child { font-size: 10px; }
    .profile-bank-cards { margin-right: 9px; margin-left: 9px; }
    .profile-assets-card { margin-right: 9px; margin-left: 9px; padding-right: 10px; padding-left: 10px; gap: 7px; }
    .profile-asset-item { grid-template-columns: 36px minmax(0, 1fr); gap: 7px; }
    .profile-asset-icon { width: 36px; height: 36px; border-radius: 12px; }
    .profile-asset-icon svg { width: 18px; height: 18px; }
    .profile-asset-copy strong { font-size: 15px; }
    .profile-menu { margin-right: 9px; margin-left: 9px; }
    .invite-code-card strong { font-size: 25px; }
    .invite-qr-frame { width: 204px; height: 204px; }
    .invite-qr-frame img,
    .invite-qr-error { width: 186px; height: 186px; }
}

/* 团队中心：单一团队主视觉 + 连续业务内容面板 */
.ui-v2-team #content { padding: 0 0 92px; }
.team-overview {
    position: relative;
    min-height: 184px;
    margin: 12px;
    padding: 14px 16px;
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(circle at 85% 18%,rgba(255,209,91,.3),transparent 24%),
        linear-gradient(132deg,#451092,#7f2bd5 55%,#e13dab);
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 27px;
    box-shadow: 0 17px 36px rgba(75,24,139,.23);
}
.team-overview::before { content: ""; position: absolute; inset: 0; background: linear-gradient(118deg,rgba(255,255,255,.08),transparent 39%); pointer-events: none; }
.team-overview-orbit { position: absolute; right: -30px; top: -52px; width: 148px; height: 148px; border: 1px solid rgba(255,255,255,.17); border-radius: 50%; box-shadow: 0 0 0 24px rgba(255,255,255,.035),0 0 0 48px rgba(255,255,255,.018); }
.team-overview-head { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.team-brand { display: block; color: #ffe58d; font-size: 10px; font-weight: 900; letter-spacing: .18em; }
.team-sr-title { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.team-overview-icon { display: grid; place-items: center; width: 38px; height: 38px; flex: 0 0 38px; color: #fff; background: rgba(255,255,255,.13); border: 1px solid rgba(255,255,255,.24); border-radius: 14px; box-shadow: inset 0 1px 0 rgba(255,255,255,.14); }
.team-overview-icon svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.team-total { position: relative; z-index: 1; display: flex; align-items: baseline; gap: 8px; margin: 4px 0 9px; }
.team-total strong { font-size: 38px; font-weight: 950; line-height: .95; letter-spacing: -.04em; }
.team-total span { color: rgba(255,255,255,.75); font-size: 12px; font-weight: 700; }
.team-level-path { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; padding: 8px 10px 7px; background: rgba(31,4,76,.18); border: 1px solid rgba(255,255,255,.12); border-radius: 17px; backdrop-filter: blur(4px); }
.team-level-path::before { content: ""; position: absolute; top: 16px; right: 19%; left: 19%; height: 1px; background: linear-gradient(90deg,rgba(255,255,255,.24),rgba(255,220,111,.72),rgba(255,255,255,.24)); }
.team-level-path > div { position: relative; z-index: 1; min-width: 0; text-align: center; }
.team-level-path i { display: block; width: 10px; height: 10px; margin: 2px auto 4px; background: #d7b8ff; border: 3px solid rgba(74,15,143,.75); border-radius: 50%; box-shadow: 0 0 0 2px rgba(255,255,255,.24); }
.team-level-path > div:nth-child(2) i { background: #f18ae2; }
.team-level-path > div:nth-child(3) i { background: #ffd75f; }
.team-level-path strong { display: block; font-size: 18px; font-weight: 950; }
.team-level-path span { display: block; margin-top: 2px; overflow: hidden; color: rgba(255,255,255,.72); font-size: 10px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }

.team-workspace {
    margin: 12px;
    padding: 0 16px 10px;
    color: var(--ui-text);
    background:
        radial-gradient(circle at 100% 0,rgba(219,185,255,.18),transparent 20%),
        var(--ui-card);
    border: 1px solid var(--ui-line);
    border-radius: 27px;
    box-shadow: 0 13px 32px rgba(72,39,99,.11);
}
.team-invite-action { display: grid; grid-template-columns: 44px minmax(0,1fr) auto; align-items: center; gap: 10px; padding: 16px 0; }
.team-action-icon { display: grid; place-items: center; width: 44px; height: 44px; color: #fff; background: linear-gradient(135deg,#7750f4,#d73ee8); border: 1px solid rgba(255,255,255,.72); border-radius: 15px; box-shadow: 0 8px 18px rgba(125,67,229,.22); }
.team-action-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; }
.team-invite-copy { min-width: 0; }
.team-invite-copy strong { display: block; color: var(--ui-text); font-size: 14px; font-weight: 900; }
.team-invite-copy input { display: block; width: 100%; min-width: 0; margin-top: 4px; padding: 0; overflow: hidden; color: var(--ui-muted); background: transparent; border: 0; outline: 0; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.team-copy-button { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-width: 78px; min-height: 44px; padding: 0 12px; overflow: hidden; color: #fff; background: linear-gradient(110deg,#7934e3,#b83ae8 58%,#e93dab); border: 0; border-radius: 14px; box-shadow: 0 7px 17px rgba(144,50,218,.22); font-size: 11px; font-weight: 900; }
.team-copy-button::before { content: ""; position: absolute; left: 8px; top: 4px; width: 38px; height: 14px; background: rgba(255,255,255,.1); border-radius: 50%; transform: rotate(-10deg); }
.team-copy-button > * { position: relative; z-index: 1; }
.team-copy-button svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.team-copy-button:disabled { opacity: .45; box-shadow: none; }

.team-recharge-panel { padding: 17px 0 16px; border-top: 1px solid var(--ui-line); }
.team-section-heading { display: grid; grid-template-columns: 42px minmax(0,1fr); align-items: center; gap: 10px; }
.team-section-icon { display: grid; place-items: center; width: 42px; height: 42px; color: #fff; background: linear-gradient(135deg,#8551f5,#dc3ed7); border-radius: 14px; box-shadow: 0 7px 16px rgba(125,73,229,.2); }
.team-section-icon svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; }
.team-section-heading span:not(.team-section-icon) { display: block; color: var(--page-accent); font-size: 10px; font-weight: 900; letter-spacing: .13em; }
.team-section-heading h2 { margin: 3px 0 0; color: var(--ui-text); font-size: 16px; font-weight: 950; }
.team-recharge-total { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 14px 0 8px; padding: 13px 14px; background: linear-gradient(120deg,rgba(255,204,75,.17),rgba(217,70,239,.08)); border: 1px solid rgba(208,135,68,.12); border-radius: 17px; }
.team-recharge-total span { color: #7d5a27; font-size: 11px; font-weight: 800; }
.dark .team-recharge-total span { color: #f2c978; }
.team-recharge-total strong { min-width: 0; overflow: hidden; color: var(--page-accent); font-size: clamp(18px,5.5vw,25px); font-variant-numeric: tabular-nums; font-weight: 950; letter-spacing: -.025em; text-overflow: ellipsis; white-space: nowrap; }
.team-recharge-levels { padding: 0 3px; }
.team-recharge-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 42px; border-bottom: 1px solid var(--ui-line); }
.team-recharge-row:last-child { border-bottom: 0; }
.team-recharge-row > span { display: inline-flex; align-items: center; gap: 8px; color: var(--ui-muted); font-size: 11px; font-weight: 750; white-space: nowrap; }
.team-recharge-row i { width: 9px; height: 9px; background: #7951ee; border-radius: 50%; box-shadow: 0 0 0 4px rgba(121,81,238,.09); }
.team-recharge-row.level-two i { background: #cf46df; box-shadow: 0 0 0 4px rgba(207,70,223,.09); }
.team-recharge-row.level-three i { background: #f4ad31; box-shadow: 0 0 0 4px rgba(244,173,49,.11); }
.team-recharge-row strong { min-width: 0; overflow: hidden; color: var(--ui-text); font-size: clamp(12px,3.6vw,15px); font-variant-numeric: tabular-nums; font-weight: 900; text-align: right; text-overflow: ellipsis; white-space: nowrap; }

.team-members-section { padding: 15px 0 0; border-top: 1px solid var(--ui-line); }
.team-filter { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 3px; padding: 4px; background: var(--ui-bg); border: 1px solid var(--ui-line); border-radius: 15px; }
.team-filter button { min-width: 0; min-height: 44px; padding: 0 5px; overflow: hidden; color: var(--ui-muted); background: transparent; border: 0; border-radius: 11px; font-size: 11px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.team-filter button.active { color: #fff; background: linear-gradient(112deg,#8050ef,#c43ee2); box-shadow: 0 5px 13px rgba(123,66,221,.2); }
.team-member-list { min-height: 84px; padding: 4px 0 0; }
.team-member-row { display: grid; grid-template-columns: 42px minmax(0,1fr) minmax(86px,max-content); align-items: center; gap: 10px; min-height: 72px; padding: 12px 2px; border-bottom: 1px solid var(--ui-line); }
.team-member-row:last-child { border-bottom: 0; }
.team-member-row .member-avatar { display: grid; place-items: center; width: 42px; height: 42px; color: #fff; background: linear-gradient(135deg,#7551ef,#d83fdc); border: 1px solid rgba(255,255,255,.72); border-radius: 14px; box-shadow: 0 6px 14px rgba(116,76,222,.18); }
.team-member-row:nth-child(3n+2) .member-avatar { background: linear-gradient(135deg,#ff9e32,#ed4dab); }
.team-member-row:nth-child(3n) .member-avatar { background: linear-gradient(135deg,#655cff,#a64dde); }
.team-member-row .member-avatar svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.9; }
.team-member-row .member-copy { min-width: 0; }
.team-member-row .member-copy strong { display: block; overflow: hidden; color: var(--ui-text); font-size: 14px; font-weight: 900; text-overflow: ellipsis; white-space: nowrap; }
.team-member-row .member-copy small { display: block; margin-top: 4px; overflow: hidden; color: var(--ui-muted); font-size: 10px; line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; }
.team-member-row .member-value { grid-column: 3; min-width: 0; max-width: 122px; text-align: right; }
.team-member-row .member-value strong { display: block; overflow: hidden; color: var(--page-accent); font-size: clamp(11px,3.5vw,14px); font-variant-numeric: tabular-nums; font-weight: 950; text-overflow: ellipsis; white-space: nowrap; }
.team-list-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 116px; gap: 8px; color: var(--ui-muted); font-size: 12px; }
.team-list-empty > span { display: grid; place-items: center; width: 42px; height: 42px; color: #8750e9; background: rgba(135,80,233,.09); border-radius: 14px; }
.team-list-empty svg,
.team-empty .empty-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.dark.ui-v2-team .team-workspace { box-shadow: 0 12px 30px rgba(0,0,0,.22); }

/* 任务中心 */
.ui-v2-tasks #list { padding-top: 3px; padding-bottom: 86px; }
.task-card { overflow: hidden; }
.task-card-head { display: grid; grid-template-columns: 48px minmax(0,1fr) auto; align-items: center; gap: 11px; }
.task-card-head > .badge-grad {
    grid-column: 3;
    grid-row: 1;
    align-self: start;
    justify-self: end;
    margin-top: 2px;
    white-space: nowrap;
}
.task-card-icon { display: grid; place-items: center; width: 48px; height: 48px; color: #fff; background: linear-gradient(135deg,#8b5cf6,#ec4899); border: 1px solid rgba(255,255,255,.7); border-radius: 16px; box-shadow: 0 7px 16px rgba(139,92,246,.2); }
.task-card:nth-child(3n+2) .task-card-icon { background: linear-gradient(135deg,#ffad32,#ff6e45); }
.task-card:nth-child(3n) .task-card-icon { background: linear-gradient(135deg,#655cff,#9e4de1); }
.task-card-icon svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.task-card-copy { min-width: 0; }
.task-card-copy strong { display: block; overflow: hidden; font-size: 14px; font-weight: 900; text-overflow: ellipsis; white-space: nowrap; }
.task-card-copy p { display: -webkit-box; margin: 3px 0 0; overflow: hidden; font-size: 10px; line-height: 1.45; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.task-progress { margin-top: 14px; }
.task-card-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 10px; }
.progress-text { color: var(--ui-muted); font-size: 10px; font-weight: 700; }

/* 晒图 */
body.ui-v2-posts.post-panel-open { overflow: hidden; }
.ui-v2-posts .post-reward-hero {
    position: relative;
    z-index: 2;
    min-height: 154px;
    margin: 4px 10px 2px;
    overflow: visible;
    isolation: isolate;
}
.ui-v2-posts .post-reward-hero::before {
    content: "";
    position: absolute;
    inset: -7px 24px -8px -18px;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(circle at 52% 58%,rgba(236,72,153,.11),transparent 39%),
        radial-gradient(circle at 37% 50%,rgba(139,92,246,.1),transparent 43%),
        repeating-conic-gradient(from 252deg at 53% 91%,rgba(139,92,246,.04) 0 3deg,transparent 3deg 14deg);
    border-radius: 50%;
    opacity: .82;
}
.ui-v2-posts .post-reward-a11y {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}
.ui-v2-posts .post-reward-decor {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}
.ui-v2-posts .post-spark {
    position: absolute;
    display: block;
    clip-path: polygon(50% 0,61% 35%,98% 35%,68% 57%,79% 94%,50% 72%,21% 94%,32% 57%,2% 35%,39% 35%);
    filter: drop-shadow(0 2px 3px rgba(112,49,173,.18));
    transform: rotate(-9deg);
}
.ui-v2-posts .post-spark-gold { top: 5px; left: 7px; width: 16px; height: 16px; background: linear-gradient(145deg,#fff08b 5%,#ff9f1f 72%); }
.ui-v2-posts .post-spark-purple { top: 38px; left: -1px; width: 11px; height: 11px; background: linear-gradient(145deg,#e2a7ff,#7e39e3 78%); transform: rotate(13deg); }
.ui-v2-posts .post-spark-soft { bottom: 10px; left: 72px; width: 7px; height: 7px; background: linear-gradient(145deg,#fff,#e5b9ef); transform: rotate(20deg); }
.ui-v2-posts .post-reward-copy {
    position: absolute;
    top: 33px;
    left: 20px;
    z-index: 3;
    width: 158px;
    min-width: 0;
    pointer-events: none;
    transform: rotate(-6deg) scale(.94);
    transform-origin: left center;
}
.ui-v2-posts .post-reward-copy::before {
    content: none;
}
.ui-v2-posts .post-share-title {
    width: 154px;
    margin: 0;
    filter: drop-shadow(0 3px 0 rgba(209,188,249,.9)) drop-shadow(0 8px 10px rgba(101,41,171,.16));
    transform: skewX(-4deg);
    transform-origin: left center;
}
.ui-v2-posts .post-share-title span {
    position: relative;
    z-index: 0;
    display: block;
    width: max-content;
    font-family: "Arial Black","Segoe UI Black",Arial,sans-serif;
    font-style: normal;
    font-weight: 950;
    line-height: .86;
    letter-spacing: -.045em;
    isolation: isolate;
}
.ui-v2-posts .post-share-title span::before {
    content: attr(data-word);
    position: absolute;
    inset: 0;
    z-index: -1;
    color: #fff;
    -webkit-text-fill-color: #fff;
    -webkit-text-stroke: 6px #fff;
    paint-order: stroke fill;
    text-shadow: 0 4px 0 #d9c5f7;
}
.ui-v2-posts .post-share-word {
    color: #5f2dcc;
    -webkit-text-fill-color: #5f2dcc;
    font-size: 32px;
}
.ui-v2-posts .post-moments-word {
    margin-top: -2px;
    color: #eb1685;
    -webkit-text-fill-color: #eb1685;
    font-size: 30px;
    transform: scaleX(.89);
    transform-origin: left center;
}
.ui-v2-posts .post-reward-ribbon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 142px;
    height: 24px;
    margin: 5px 0 0 2px;
    padding: 0 7px;
    overflow: hidden;
    color: #fff;
    background: linear-gradient(100deg,#7d39df,#a54cec);
    border: 1px solid rgba(255,255,255,.72);
    border-radius: 10px;
    box-shadow: 0 5px 12px rgba(119,54,190,.18), inset 0 1px rgba(255,255,255,.26);
    font-size: 9.5px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -.02em;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.ui-v2-posts .post-reward-art-wrap {
    position: absolute;
    bottom: 0;
    left: 21px;
    z-index: 2;
    display: grid;
    place-items: end center;
    width: 310px;
    height: 141px;
    pointer-events: none;
}
.ui-v2-posts .post-reward-art {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center bottom;
    pointer-events: none;
    filter: drop-shadow(0 11px 13px rgba(81,35,126,.14));
}
.ui-v2-posts .post-upload-trigger {
    position: absolute;
    top: 120px;
    right: 10px;
    z-index: 4;
    display: grid;
    align-content: start;
    justify-items: center;
    gap: 7px;
    width: 96px;
    min-height: 84px;
    padding: 1px 0 4px;
    color: #7543d5;
    background: transparent;
    border: 0;
    cursor: pointer;
    text-align: center;
    -webkit-tap-highlight-color: transparent;
}
.ui-v2-posts .post-upload-orb {
    position: relative;
    left: 4px;
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    color: #fff;
    background:
        radial-gradient(circle at 35% 22%,rgba(255,255,255,.38),transparent 30%),
        linear-gradient(145deg,#9748f2 5%,#dd31ca 96%);
    border: 3px solid #fff;
    border-radius: 50%;
    box-shadow: 0 9px 20px rgba(149,56,220,.3), 0 2px 5px rgba(149,56,220,.18), inset 0 1px rgba(255,255,255,.4);
    transition: transform .16s ease, box-shadow .16s ease;
}
.ui-v2-posts .post-upload-trigger:active .post-upload-orb { transform: scale(.94); box-shadow: 0 5px 13px rgba(149,56,220,.25), inset 0 1px rgba(255,255,255,.34); }
.ui-v2-posts .post-upload-trigger:focus-visible .post-upload-orb { outline: 3px solid rgba(117,67,213,.26); outline-offset: 3px; }
.ui-v2-posts .post-upload-orb svg { width: 27px; height: 27px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.9; }
.ui-v2-posts .post-upload-orb i {
    position: absolute;
    top: -4px;
    right: -4px;
    display: grid;
    place-items: center;
    width: 18px;
    height: 18px;
    color: #fff;
    background: linear-gradient(145deg,#ce4bf0,#7d3ee7);
    border: 2px solid #fff;
    border-radius: 50%;
    box-shadow: 0 4px 9px rgba(117,62,219,.28);
    font-size: 14px;
    font-style: normal;
    font-weight: 900;
    line-height: 1;
}
.ui-v2-posts .post-upload-label {
    display: block;
    width: 96px;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -.025em;
    white-space: nowrap;
    transform: translateX(-4px);
}
.ui-v2-posts .post-feed { padding: 0 0 calc(92px + env(safe-area-inset-bottom,0px)); }
.ui-v2-posts .post-card {
    margin: 8px 0 24px;
    padding: 0;
    overflow: visible;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    transform: none;
    animation: none;
}
.ui-v2-posts .post-author-row { display: flex; align-items: center; gap: 10px; margin: 0 22px; }
.ui-v2-posts .post-card:first-child .post-author-row { padding-right: 102px; }
.ui-v2-posts .post-avatar {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    color: #fff;
    background: linear-gradient(135deg,#d946ef,#8b5cf6);
    border-radius: 13px;
    box-shadow: 0 6px 14px rgba(140,76,223,.2);
}
.ui-v2-posts .post-avatar svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2; }
.ui-v2-posts .post-author-copy { min-width: 0; }
.ui-v2-posts .post-author-copy strong { display: block; overflow: hidden; font-size: 14px; font-weight: 900; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; }
.ui-v2-posts .post-author-copy p {
    display: -webkit-box;
    margin: 3px 0 0;
    overflow: hidden;
    color: var(--ui-muted);
    font-size: 12.5px;
    line-height: 1.38;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}
.ui-v2-posts .post-media-matte {
    width: clamp(204px,calc(70vw - 20px),232px);
    margin: 12px auto 0;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}
.ui-v2-posts .post-card .post-img-box {
    width: 100%;
    height: clamp(112px,34vw,124px);
    margin: 0;
    overflow: hidden;
    background: #ece7f4;
    border: 0;
    border-radius: 14px;
    box-shadow: none;
    cursor: zoom-in;
}
.ui-v2-posts .post-img-box::after { display: none; }
.ui-v2-posts .post-img-box img { width: 100%; height: 100%; object-fit: cover; }
.ui-v2-posts .post-image-placeholder {
    width: 100%;
    height: 100%;
    min-height: 110px;
    background: radial-gradient(circle at 70% 25%,rgba(236,72,153,.18),transparent 30%), linear-gradient(135deg,rgba(139,92,246,.16),rgba(236,72,153,.07));
}
.ui-v2-posts .post-upload-overlay {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-top: max(38px,env(safe-area-inset-top,0px));
    background: rgba(36,19,53,.46);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.ui-v2-posts .post-upload-overlay[hidden] { display: none; }
.ui-v2-posts .post-upload-sheet {
    position: relative;
    display: flex;
    flex-direction: column;
    width: min(100%,600px);
    max-height: 90vh;
    max-height: 90dvh;
    overflow: hidden;
    color: var(--ui-text);
    background: var(--ui-bg);
    border: 1px solid rgba(139,92,246,.13);
    border-bottom: 0;
    border-radius: 28px 28px 0 0;
    box-shadow: 0 -18px 54px rgba(36,13,58,.28);
    animation: postSheetIn .24s ease both;
}
@keyframes postSheetIn { from { transform: translateY(28px); opacity: .7; } to { transform: translateY(0); opacity: 1; } }
.ui-v2-posts .post-sheet-grabber {
    position: absolute;
    top: 8px;
    left: 50%;
    z-index: 3;
    width: 38px;
    height: 4px;
    background: rgba(139,92,246,.2);
    border-radius: 999px;
    transform: translateX(-50%);
}
.ui-v2-posts .post-sheet-header {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 23px 17px 12px;
    background: var(--ui-bg);
    border-bottom: 1px solid var(--ui-line);
}
.ui-v2-posts .post-sheet-kicker { display: block; overflow: hidden; color: #8b5cf6; font-size: 9px; font-weight: 900; letter-spacing: .11em; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.ui-v2-posts .post-sheet-header h2 { margin: 4px 0 0; font-size: 20px; font-weight: 950; line-height: 1.1; }
.ui-v2-posts .post-sheet-close {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    color: #7040c7;
    background: var(--ui-card);
    border: 1px solid var(--ui-line);
    border-radius: 14px;
    box-shadow: var(--ui-shadow-sm);
}
.ui-v2-posts .post-sheet-close svg { width: 21px; height: 21px; stroke-width: 2; }
.ui-v2-posts .post-sheet-content {
    min-height: 180px;
    padding: 1px 12px calc(26px + env(safe-area-inset-bottom,0px));
    overflow-y: auto;
    overscroll-behavior: contain;
}
.ui-v2-posts .post-manage-panel { margin: 11px 0; padding: 15px; border-radius: 22px; }
.ui-v2-posts .post-upload-card .input-grad { margin: 10px 0; font-size: 14px; }
.ui-v2-posts .post-file-picker {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 112px;
    margin-top: 11px;
    overflow: hidden;
    color: var(--page-accent);
    background: linear-gradient(145deg,rgba(139,92,246,.085),rgba(236,72,153,.045));
    border: 1.5px dashed rgba(139,92,246,.3);
    border-radius: 18px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 900;
}
.ui-v2-posts .post-file-picker input { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.ui-v2-posts .post-file-picker-icon { display: grid; place-items: center; width: 44px; height: 44px; color: #fff; background: linear-gradient(145deg,#8b5cf6,#d946ef); border: 2px solid #fff; border-radius: 50%; box-shadow: 0 7px 16px rgba(139,92,246,.2); }
.ui-v2-posts .post-file-picker-icon svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.ui-v2-posts .post-file-picker strong { position: relative; z-index: 1; font-size: 14px; font-weight: 900; }
.ui-v2-posts .post-status-content { min-height: 68px; }
.ui-v2-posts .post-inline-loading { display: grid; min-height: 68px; place-items: center; }
.ui-v2-posts .post-inline-loading .loading-spinner { margin: 0; }
.ui-v2-posts .post-reward-card { margin-top: 13px; padding-top: 13px; border-top: 1px solid var(--ui-line); text-align: center; }
.ui-v2-posts .post-reward-card p { margin: 8px 0 0; color: var(--ui-muted); font-size: 12px; }
.ui-v2-posts .post-reward-card p.is-success { color: #14936f; }
.ui-v2-posts .post-pending-card { margin: 11px 0; }
.ui-v2-posts .post-pending-card > strong { display: block; margin: 2px 0 10px; font-size: 15px; }
.ui-v2-posts .post-pending-card .post-img-box { height: auto; aspect-ratio: 16 / 9; margin: 0; border-radius: 16px; }
.ui-v2-posts .post-pending-card p { margin: 9px 0 0; font-size: 12.5px; }
.ui-v2-posts .section-heading { margin: 18px 3px 8px; }
.ui-v2-posts .section-heading h2 { margin: 3px 0 0; color: var(--ui-text); font-size: 18px; font-weight: 900; }
.ui-v2-posts .post-history-card { display: grid; grid-template-columns: 76px minmax(0,1fr); gap: 11px; align-items: center; margin: 9px 0; }
.ui-v2-posts .post-history-card .post-img-sm { width: 76px; height: 70px; object-fit: cover; border-radius: 15px; }
.ui-v2-posts .post-history-card p { margin: 0 0 6px; font-size: 12.5px; }
.ui-v2-posts .post-history-card time { display: block; margin-top: 6px; color: var(--ui-muted); font-size: 11px; }
.ui-v2-posts.dark .post-reward-hero::before { opacity: .55; }
.ui-v2-posts.dark .post-share-title span::before { color: rgba(255,255,255,.9); -webkit-text-fill-color: rgba(255,255,255,.9); -webkit-text-stroke-color: rgba(255,255,255,.9); }
.ui-v2-posts.dark .post-sheet-kicker { color: #c9a8ff; }
.ui-v2-posts.dark .post-upload-trigger { color: #decaff; }
.ui-v2-posts.dark .post-upload-orb { border-color: rgba(255,255,255,.82); }
.ui-v2-posts.dark .post-card { background: transparent; }
.ui-v2-posts.dark .post-media-matte { background: transparent; border: 0; box-shadow: none; }
.ui-v2-posts.dark .post-file-picker { background: linear-gradient(145deg,rgba(139,92,246,.17),rgba(236,72,153,.08)); }
@media (max-width: 340px) {
    .ui-v2-posts .nav-gradient .nav-title { font-size: 16px; white-space: nowrap; }
    .ui-v2-posts .post-reward-hero { min-height: 151px; margin-right: 8px; margin-left: 8px; }
    .ui-v2-posts .post-reward-copy { top: 30px; left: 23px; width: 140px; }
    .ui-v2-posts .post-share-title { width: 138px; }
    .ui-v2-posts .post-share-word { font-size: 29px; }
    .ui-v2-posts .post-moments-word { font-size: 27.5px; transform: scaleX(.86); }
    .ui-v2-posts .post-reward-ribbon { width: 132px; height: 23px; margin-top: 4px; font-size: 9px; }
    .ui-v2-posts .post-reward-art-wrap { left: 11px; width: 278px; height: 126px; }
    .ui-v2-posts .post-upload-trigger { top: 116px; right: 2px; width: 96px; }
    .ui-v2-posts .post-upload-orb { width: 56px; height: 56px; }
    .ui-v2-posts .post-upload-label { width: 92px; font-size: 14px; transform: none; }
    .ui-v2-posts .post-author-row { margin-right: 18px; margin-left: 18px; }
    .ui-v2-posts .post-card:first-child .post-author-row { padding-right: 96px; }
    .ui-v2-posts .post-media-matte { width: clamp(204px,calc(70vw - 20px),232px); }
}
.img-viewer .close-btn { position: absolute; top: 18px; right: 18px; width: 44px; height: 44px; background: rgba(20,10,35,.68); border: 1px solid rgba(255,255,255,.3); border-radius: 15px; }
.img-viewer .close-btn::before,
.img-viewer .close-btn::after { content: ""; position: absolute; top: 20px; left: 12px; width: 20px; height: 2px; background: #fff; border-radius: 2px; transform: rotate(45deg); }
.img-viewer .close-btn::after { transform: rotate(-45deg); }

/* 新闻和规则 */
.ui-v2-news-list #list { padding-top: 2px; }
.news-card { display: grid; grid-template-columns: 98px minmax(0,1fr) 16px; align-items: center; gap: 12px; cursor: pointer; }
.news-thumb { width: 98px; height: 76px; overflow: hidden; background: linear-gradient(135deg,rgba(139,92,246,.14),rgba(236,72,153,.07)); border-radius: 16px; }
.news-thumb img { width: 100%; height: 100%; object-fit: cover; }
.news-thumb-placeholder { display: grid; place-items: center; width: 100%; height: 100%; color: var(--page-accent); }
.news-thumb-placeholder svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.news-copy { min-width: 0; }
.news-copy .ui-eyebrow { min-height: 18px; padding: 2px 6px; font-size: 7px; }
.news-copy h2 { display: -webkit-box; margin: 6px 0 4px; overflow: hidden; color: var(--ui-text); font-size: 13px; font-weight: 850; line-height: 1.35; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.news-copy time,
.news-article time { color: var(--ui-muted); font-size: 9px; }
.news-arrow { width: 9px; height: 9px; border-top: 2px solid var(--ui-muted); border-right: 2px solid var(--ui-muted); transform: rotate(45deg); }
.news-article { margin-top: 12px !important; padding: 19px !important; }
.news-article h1 { margin: 9px 0 5px; color: var(--ui-text); font-size: 23px; font-weight: 950; line-height: 1.2; }
.news-detail-cover { height: 195px; margin: 16px 0; overflow: hidden; border-radius: 19px; }
.news-detail-cover img { width: 100%; height: 100%; object-fit: cover; }
.news-article-content { color: var(--ui-text); font-size: 13px; line-height: 1.85; overflow-wrap: anywhere; }
.news-article-content img { max-width: 100%; height: auto; border-radius: 15px; }
.rule-card { padding: 17px !important; }
.rule-card .page-card-heading h2 { font-size: 16px; }
.rule-intro { margin: 0 0 10px; font-size: 11px; line-height: 1.55; }
.rule-table-wrap { overflow-x: auto; border: 1px solid var(--ui-line); border-radius: 15px; }
.ui-v2-rules .nav-gradient .nav-title::before { content: none; display: none; }
.rule-table { width: 100%; min-width: 328px; border-collapse: collapse; color: var(--ui-text); font-size: 10px; text-align: center; }
.rule-table th { padding: 10px 6px; color: var(--page-accent); background: rgba(117,88,237,.075); font-weight: 850; }
.rule-table td { padding: 10px 6px; border-top: 1px solid var(--ui-line); }
.reward-rule-list { display: grid; gap: 6px; }
.reward-rule-row { display: grid; grid-template-columns: minmax(0,1fr) auto minmax(78px,1fr); align-items: center; gap: 7px; padding: 9px 10px; background: rgba(117,88,237,.055); border-radius: 13px; }
.reward-rule-row strong { font-size: 11px; }
.reward-rule-row small { color: var(--ui-muted); font-size: 9px; text-align: right; }
.earning-rule-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; counter-reset: rules; }
.earning-rule-list li { position: relative; min-height: 38px; padding: 10px 10px 10px 43px; color: var(--ui-muted); background: rgba(117,88,237,.045); border-radius: 13px; font-size: 10px; line-height: 1.5; counter-increment: rules; }
.earning-rule-list li::before { content: counter(rules); position: absolute; top: 7px; left: 8px; display: grid; place-items: center; width: 25px; height: 25px; color: #fff; background: linear-gradient(135deg,var(--page-accent),var(--page-accent-2)); border-radius: 9px; font-size: 9px; font-weight: 900; }

/* 商品列表与详情 */
.ui-v2-product-list #list { padding-top: 3px; }
.shop-product-card { padding: 11px !important; }
.ui-v2-product-list .product-card { display: grid; grid-template-columns: 105px minmax(0,1fr); align-items: stretch; gap: 12px; cursor: pointer; }
.ui-v2-product-list .product-card > img { width: 105px; height: 105px; object-fit: cover; background: linear-gradient(135deg,#ede7fa,#fce9f4); border-radius: 18px; }
.ui-v2-product-list .prod-info { min-width: 0; padding: 5px 2px 1px 0; }
.ui-v2-product-list .prod-name { display: -webkit-box; overflow: hidden; color: var(--ui-text); font-size: 14px; font-weight: 900; line-height: 1.3; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.ui-v2-product-list .prod-desc { display: -webkit-box; margin-top: 4px; overflow: hidden; color: var(--ui-muted); font-size: 9px; line-height: 1.4; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.product-price { font-size: 18px; font-weight: 950; }
.product-return-note { margin: 9px 2px 0; padding: 8px 10px; color: #148d6d; background: rgba(20,141,109,.07); border-radius: 11px; font-size: 9px; }
.product-actions { display: flex; justify-content: flex-end; gap: 7px; margin-top: 9px; }
.ui-v2-product-detail #content { padding-bottom: 0; }
.product-detail-cover {
    height: 218px;
    margin: 10px 12px 0;
    overflow: hidden;
    background: linear-gradient(135deg,#ede7fa,#fce9f4);
    border-radius: 24px;
    box-shadow: 0 13px 30px rgba(68,31,107,.16);
}
.product-detail-cover img { width: 100%; height: 100%; object-fit: cover; }
.product-detail-sheet {
    position: relative;
    z-index: 2;
    margin: -32px 12px 18px;
    overflow: hidden;
    color: var(--ui-text);
    background:
        radial-gradient(circle at 92% 3%,rgba(236,72,153,.085),transparent 22%),
        radial-gradient(circle at 4% 42%,rgba(139,92,246,.05),transparent 26%),
        linear-gradient(165deg,#fff 0%,#fefcff 58%,#fffafd 100%);
    border: 1px solid rgba(255,255,255,.92);
    border-radius: 28px;
    box-shadow: 0 20px 46px rgba(59,25,103,.16),0 2px 8px rgba(92,45,139,.06),inset 0 1px rgba(255,255,255,.95);
}
.product-detail-sheet::before {
    content: "";
    position: absolute;
    top: -86px;
    right: -72px;
    width: 190px;
    height: 190px;
    pointer-events: none;
    border: 1px solid rgba(139,92,246,.09);
    border-radius: 50%;
    box-shadow: 0 0 0 24px rgba(139,92,246,.018),0 0 0 48px rgba(236,72,153,.012);
}
.product-detail-sheet > * { position: relative; z-index: 1; }
.dark .product-detail-sheet {
    background:
        radial-gradient(circle at 92% 3%,rgba(236,72,153,.12),transparent 24%),
        radial-gradient(circle at 4% 42%,rgba(139,92,246,.08),transparent 28%),
        var(--ui-card);
    border-color: rgba(255,255,255,.1);
    box-shadow: 0 20px 46px rgba(0,0,0,.3),inset 0 1px rgba(255,255,255,.04);
}
.product-summary-section { padding: 23px 19px 18px; }
.product-summary-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.product-summary-head .badge-grad { flex: 0 0 auto; }
.product-summary-section h1 { margin: 9px 0 0; overflow-wrap: anywhere; color: var(--ui-text); font-size: 20px; font-weight: 950; line-height: 1.25; letter-spacing: -.025em; }
.product-detail-price { margin: 11px 0 5px; font-size: 29px; font-weight: 950; letter-spacing: -.035em; }
.product-summary-section p { margin: 0; color: var(--ui-muted); font-size: 11px; line-height: 1.55; }
.product-sheet-section { padding: 17px 19px; border-top: 1px solid rgba(98,69,129,.09); }
.product-section-heading { display: flex; align-items: center; gap: 9px; margin-bottom: 11px; }
.product-section-heading > span {
    display: grid;
    place-items: center;
    width: 27px;
    height: 27px;
    flex: 0 0 27px;
    color: var(--page-accent);
    background: linear-gradient(145deg,rgba(139,92,246,.12),rgba(236,72,153,.055));
    border: 1px solid rgba(139,92,246,.08);
    border-radius: 8px;
}
.product-section-heading svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.product-section-heading h2 { margin: 0; color: var(--ui-text); font-size: 14px; font-weight: 900; }
.product-overview-block + .product-overview-block { margin-top: 15px; padding-top: 15px; border-top: 1px solid rgba(98,69,129,.085); }
.product-stat-grid {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 0;
    overflow: hidden;
    background: linear-gradient(115deg,rgba(139,92,246,.075),rgba(236,72,153,.045) 58%,rgba(245,158,11,.05));
    border: 1px solid rgba(139,92,246,.085);
    border-radius: 16px;
}
.ui-v2-product-detail .product-stat-grid .stat-card {
    position: relative;
    display: flex;
    min-width: 0;
    min-height: 67px;
    margin: 0;
    padding: 11px 5px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}
.ui-v2-product-detail .product-stat-grid .stat-card + .stat-card { border-left: 1px solid rgba(139,92,246,.11); }
.ui-v2-product-detail .product-stat-grid .stat-card::before { display: none; }
.ui-v2-product-detail .product-stat-grid .stat-num { max-width: 100%; font-size: clamp(10px,3.5vw,14px); line-height: 1.15; letter-spacing: -.025em; white-space: nowrap; }
.ui-v2-product-detail .product-stat-grid .stat-label { margin-top: 5px; font-size: 12px; line-height: 1.25; text-align: center; }
.product-stat-total { grid-column: auto; }
.product-reward-row { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 0; }
.product-reward-row .badge-grad {
    min-width: 0;
    padding: 5px 7px;
    color: var(--ui-text) !important;
    background: transparent !important;
    border-radius: 0;
    box-shadow: none;
    font-size: 13px;
    text-align: center;
}
.product-reward-row .badge-grad + .badge-grad { border-left: 1px solid rgba(139,92,246,.12); }
.product-rich-text { color: var(--ui-text); font-size: 12px; line-height: 1.7; overflow-wrap: anywhere; }
.product-rich-text img { max-width: 100%; height: auto; border-radius: 15px; }
.unlock-card { background: linear-gradient(105deg,rgba(245,158,11,.045),rgba(139,92,246,.02)); }
.unlock-row { display: flex; align-items: center; gap: 8px; min-height: 31px; color: var(--ui-muted); font-size: 14px; }
.unlock-row > span { display: grid; place-items: center; width: 19px; height: 19px; flex: 0 0 19px; border: 1.5px solid var(--ui-muted); border-radius: 6px; }
.unlock-row.is-met { color: #148d6d; }
.unlock-row.is-met > span { border-color: #19a77e; background: #19a77e; }
.unlock-row.is-met > span::before { content: ""; width: 8px; height: 4px; border-bottom: 2px solid #fff; border-left: 2px solid #fff; transform: rotate(-45deg) translateY(-1px); }
.unlock-card .progress-wrap { margin-top: 9px; }
.unlock-success { color: #148d6d; background: linear-gradient(105deg,rgba(25,167,126,.055),rgba(139,92,246,.015)); font-size: 11px; font-weight: 850; text-align: center; }
.payment-options { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.payment-card label { display: flex; align-items: center; gap: 8px; min-width: 0; min-height: 46px; margin: 0; padding: 9px 10px; color: var(--ui-text); background: rgba(139,92,246,.04); border: 1px solid var(--ui-line); border-radius: 13px; cursor: pointer; font-size: 10px; font-weight: 750; line-height: 1.25; }
.payment-card label:has(input:checked) { color: var(--page-accent); background: rgba(139,92,246,.075); border-color: rgba(139,92,246,.28); }
.payment-card input { width: 17px; height: 17px; flex: 0 0 17px; accent-color: var(--page-accent); }
.product-buy-actions {
    margin: 0;
    padding: 17px 19px max(22px,env(safe-area-inset-bottom,0px));
    background: transparent;
    border-top: 1px solid rgba(98,69,129,.09);
    border-radius: 0;
    box-shadow: none;
}
.dark .product-buy-actions { background: transparent; border-color: rgba(255,255,255,.08); }
.product-buy-actions .btn-grad,
.product-buy-actions .btn-gold-grad { min-height: 50px; }

@media (max-width: 370px) {
    .product-detail-cover { height: 208px; margin-right: 9px; margin-left: 9px; }
    .product-detail-sheet { margin-top: -30px; margin-right: 9px; margin-left: 9px; border-radius: 25px; }
    .product-summary-section { padding: 20px 15px 16px; }
    .product-summary-section h1 { font-size: 18px; }
    .product-detail-price { font-size: 26px; }
    .product-sheet-section { padding: 15px; }
    .ui-v2-product-detail .product-stat-grid .stat-card { min-height: 64px; padding-right: 3px; padding-left: 3px; }
    .ui-v2-product-detail .product-stat-grid .stat-num { font-size: clamp(10px,3.45vw,13px); }
    .payment-card label { padding-right: 8px; padding-left: 8px; font-size: 9px; }
    .product-buy-actions { padding-right: 15px; padding-left: 15px; }
}

/* 订单 */
.ui-v2-orders #list { padding-top: 3px; padding-bottom: 86px; }
.ui-v2-orders .progress-bar {
    background: linear-gradient(90deg,#8b5cf6,#d946ef,#ff9d2e);
    background-size: 100% 100%;
    animation: none;
    transition: none;
}
.ui-v2-orders .progress-bar::after { display: none; animation: none; }
.order-card-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.order-card-meta > span:first-child { overflow: hidden; color: var(--ui-muted) !important; font-family: ui-monospace,SFMono-Regular,Consolas,monospace; font-size: 9px !important; text-overflow: ellipsis; white-space: nowrap; }
.order-card-main { display: grid; grid-template-columns: 48px minmax(0,1fr); align-items: center; gap: 11px; }
.order-card-icon { display: grid; place-items: center; width: 48px; height: 48px; color: #fff; background: linear-gradient(135deg,#ec4899,#8b5cf6); border: 1px solid rgba(255,255,255,.7); border-radius: 16px; box-shadow: 0 7px 16px rgba(139,92,246,.2); }
.order-card-icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.order-card-copy { min-width: 0; }
.order-card-copy strong { display: block; overflow: hidden; color: var(--ui-text); font-size: 13px; font-weight: 900; text-overflow: ellipsis; white-space: nowrap; }
.order-card-copy .price-grad { margin: 3px 0; font-size: 17px; font-weight: 950; }
.order-card-copy small { color: var(--ui-muted) !important; font-size: 9px; }

/* 充值、取款 */
.money-page-shell { padding-bottom: 26px; }
.money-hero-card { position: relative; display: flex; align-items: center; gap: 15px; min-height: 142px; margin: 12px; padding: 20px 18px; overflow: hidden; color: #fff; background: radial-gradient(circle at 87% 20%,rgba(255,214,77,.35),transparent 25%),linear-gradient(130deg,#5220a2,#a02ed2 55%,#ed438f); border-radius: 25px; box-shadow: 0 16px 34px rgba(92,27,156,.23); }
.money-hero-card::after { content: ""; position: absolute; right: -30px; bottom: -58px; width: 150px; height: 150px; border: 1px solid rgba(255,255,255,.16); border-radius: 50%; box-shadow: 0 0 0 24px rgba(255,255,255,.03),0 0 0 48px rgba(255,255,255,.02); }
.money-hero-icon { position: relative; z-index: 1; display: grid; place-items: center; width: 62px; height: 62px; flex: 0 0 62px; color: #fff; background: linear-gradient(135deg,#ffb838,#ff7447); border: 2px solid rgba(255,255,255,.72); border-radius: 21px; box-shadow: 0 9px 20px rgba(53,7,88,.25); }
.money-hero-icon svg { width: 31px; height: 31px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.money-hero-card > div { position: relative; z-index: 1; min-width: 0; }
.money-hero-card .ui-eyebrow { min-height: 20px; padding: 3px 8px; color: #fff; background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.2); font-size: 8px; }
.money-hero-card h1 { margin: 7px 0 4px; font-size: 19px; font-weight: 950; }
.money-hero-card small { display: block; color: rgba(255,255,255,.7); font-size: 9px; }
.money-hero-card strong { display: block; margin-top: 2px; overflow-wrap: anywhere; font-size: 25px; font-weight: 950; }
.money-form-card { padding: 17px !important; }
.money-form-card .page-card-heading h2 { font-size: 15px; }
.money-form-card > label { display: block; margin: 11px 2px 6px; color: var(--ui-text); font-size: 10px; font-weight: 850; }
.money-form-card > label:first-child { margin-top: 0; }
.money-input-shell { position: relative; }
.money-input-shell > svg { position: absolute; top: 15px; left: 14px; z-index: 2; width: 20px; height: 20px; color: var(--page-accent); fill: none; stroke: currentColor; stroke-width: 1.8; }
.money-input-shell .input-grad { padding-left: 44px; }
/* 充值页支付方式：修正图标重叠和下拉框显示宽度 */
.ui-v2-recharge #payment-method {
    display: block;
    width: 100%;
    max-width: none;
    min-height: 50px;
    box-sizing: border-box;
    padding: 12px 44px;
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m7 10 5 5 5-5' fill='none' stroke='%23a78bfa' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 17px 17px;
    cursor: pointer;
}

.ui-v2-recharge #amount {
    font-size: 16px;
}

.ui-v2-recharge .money-input-shell > svg {
    top: 25px;
    transform: translateY(-50%);
    pointer-events: none;
}
.money-guidance { margin: -3px 2px 8px; color: var(--ui-muted); font-size: 9px; }
.money-form-card .input-grad { width: 100%; margin: 0 0 10px; }
.money-form-card .btn-grad { margin-top: 7px; }
.money-amount-input { font-size: 20px !important; font-weight: 850; text-align: center; }
.fee-preview { margin: 0 0 10px; padding: 11px; background: linear-gradient(135deg,rgba(245,158,11,.08),rgba(217,70,239,.05)); border: 1px solid rgba(245,158,11,.13); border-radius: 14px; font-size: 10px; }
.fee-preview > div { display: flex; justify-content: space-between; gap: 10px; padding: 4px 0; }
.fee-value { color: #e44c72; }
.actual-value { color: #148d6d; }
.money-notice-card { text-align: center; }
.money-notice-card p { margin: 0 0 10px; }

/* 取款主操作区：保留原有内容，只将三张卡视觉合并为一张 */
.ui-v2-withdraw #content > .money-hero-card {
    margin-bottom: 0;
    border-radius: 25px 25px 0 0;
    box-shadow: none;
}
.ui-v2-withdraw #content > .money-hero-card + .money-form-card {
    margin-top: 0;
    margin-bottom: 0;
    border-top: 0;
    border-bottom: 0;
    border-radius: 0;
    box-shadow: none;
    animation: none;
}
.ui-v2-withdraw #content > .money-form-card + .money-form-card {
    margin-top: 0;
    border-top: 0;
    border-radius: 0 0 22px 22px;
    box-shadow: 0 16px 34px rgba(92, 27, 156, 0.15);
}
.ui-v2-withdraw #content > .money-form-card:hover { box-shadow: none; }
.ui-v2-withdraw #content > .money-form-card + .money-form-card:hover {
    box-shadow: 0 16px 34px rgba(92, 27, 156, 0.15);
}
.withdraw-record { display: grid; grid-template-columns: 44px minmax(0,1fr); gap: 11px; }
.withdraw-record-icon { display: grid; place-items: center; width: 44px; height: 44px; color: #fff; background: linear-gradient(135deg,#ffac33,#e34cb4); border-radius: 15px; }
.withdraw-record-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.withdraw-record-main { min-width: 0; }
.withdraw-record-title { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; min-width: 0; }
.withdraw-record-title > strong { min-width: 0; font-size: 17px; font-weight: 900; overflow-wrap: anywhere; }
.withdraw-record-title > time { flex: 0 0 auto; color: var(--ui-muted); font-size: 10.5px; font-weight: 700; }
.withdraw-record-main > small { display: block; margin-top: 2px; color: var(--ui-muted); font-size: 10.5px; }
.withdraw-record-status { display: flex; gap: 8px; margin-top: 6px; font-size: 10.5px; font-weight: 700; }
.withdraw-record-breakdown { grid-column: 1/-1; display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 12px; color: var(--ui-muted); font-size: 10.5px; line-height: 1.4; }
.withdraw-record-breakdown > span:last-child { text-align: right; }
.withdraw-record-note { grid-column: 1/-1; color: var(--ui-muted); font-size: 10.5px; line-height: 1.4; }
.withdraw-record-note.is-alert { color: #e44c72; }

/* 交易流水 */
.ui-v2-transactions #list { padding-top: 2px; }
.transaction-card { display: grid; grid-template-columns: 44px minmax(0,1fr) auto; align-items: center; gap: 10px; }
.transaction-icon { display: grid; place-items: center; width: 44px; height: 44px; color: #fff; background: linear-gradient(135deg,#7357f5,#a855f7); border-radius: 15px; box-shadow: 0 6px 14px rgba(115,87,245,.18); }
.transaction-consume .transaction-icon,
.transaction-withdraw .transaction-icon,
.transaction-fixed_investment .transaction-icon { background: linear-gradient(135deg,#ec4899,#ff7650); }
.transaction-recharge .transaction-icon,
.transaction-fixed_principal .transaction-icon,
.transaction-fixed_profit .transaction-icon { background: linear-gradient(135deg,#f8aa2f,#ec4899); }
.transaction-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.transaction-copy { min-width: 0; }
.transaction-type { display: inline-flex; padding: 3px 7px; color: var(--page-accent); background: rgba(115,87,245,.08); border-radius: 8px; font-size: 12px; font-weight: 850; }
.transaction-copy p { margin: 4px 0 2px; color: var(--ui-text); font-size: 12px; }
.transaction-copy small,
.transaction-copy time { display: block; color: var(--ui-muted); font-size: 12px; line-height: 1.4; }
.transaction-amount { overflow-wrap: anywhere; font-size: 13px; font-weight: 900; text-align: right; }
.transaction-amount.is-positive { color: #148d6d; }
.transaction-amount.is-negative { color: #e44c72; }

/* 定期计划 */
.ui-v2-page .fixed-plan-list,
.ui-v2-page .my-investment-list { padding: 0 0 26px; }
.ui-v2-page .fixed-plan-card,
.ui-v2-page .my-investment-card {
    margin: 12px;
    overflow: hidden;
    color: var(--ui-text);
    background: var(--ui-card);
    border: 1px solid var(--ui-line);
    border-radius: 25px;
    box-shadow: 0 10px 28px rgba(77,39,111,.1);
}

/* 定期计划列表 */
.ui-v2-fixed-list .investment-hero {
    position: relative;
    min-height: 112px;
    margin: 12px;
    padding: 18px 19px;
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(circle at 84% 16%,rgba(255,204,93,.25),transparent 24%),
        linear-gradient(130deg,#49149c,#8a31dc 57%,#e33eb8);
    border: 0;
    border-radius: 25px;
    box-shadow: 0 15px 34px rgba(82,25,146,.2);
}
.ui-v2-fixed-list .investment-hero::after {
    content: "";
    position: absolute;
    right: -29px;
    top: -55px;
    width: 150px;
    height: 150px;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 50%;
    box-shadow: 0 0 0 25px rgba(255,255,255,.035),0 0 0 50px rgba(255,255,255,.018);
}
.ui-v2-fixed-list .investment-hero > * { position: relative; z-index: 1; }
.ui-v2-fixed-list .investment-kicker { color: #ffe783; }
.ui-v2-fixed-list .investment-hero h1 { margin: 5px 0 4px; font-size: 20px; font-weight: 950; }
.ui-v2-fixed-list .investment-hero p { max-width: 78%; margin: 0; color: rgba(255,255,255,.76); font-size: 10px; }
.ui-v2-page .fixed-plan-image {
    position: relative;
    height: 138px;
    margin: 9px 9px 0;
    overflow: hidden;
    background: linear-gradient(140deg,#f0e9ff,#e8ddff 58%,#ffe8f3);
    border-radius: 20px;
}
.ui-v2-page .fixed-plan-image::after {
    content: "";
    position: absolute;
    right: -22px;
    top: -40px;
    width: 132px;
    height: 132px;
    border: 1px solid rgba(130,72,218,.13);
    border-radius: 50%;
    box-shadow: 0 0 0 24px rgba(130,72,218,.035);
    pointer-events: none;
}
.ui-v2-page .fixed-plan-image img { width: 100%; height: 100%; object-fit: cover; }
.ui-v2-page .fixed-plan-image .plan-image-placeholder { position: relative; display: block; }
.ui-v2-page .fixed-plan-image .plan-image-placeholder > svg { position: absolute; inset: 0; width: 100%; height: 100%; color: #9251ed; }
.ui-v2-page .plan-chart-axis { stroke: rgba(103,55,181,.13); stroke-width: 1.2; }
.ui-v2-page .plan-chart-line { stroke: #8f4bea; stroke-width: 2.3; stroke-linecap: round; }
.ui-v2-page .plan-image-placeholder circle { fill: #fff; stroke: #9a52e8; stroke-width: 2; }
.ui-v2-page .plan-image-placeholder .plan-chart-end { fill: #ffc84f; stroke: #fff; }
.ui-v2-page .plan-visual-icon {
    position: absolute;
    left: 15px;
    top: 15px;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    color: #8847e8;
    background: rgba(255,255,255,.78);
    border: 1px solid rgba(139,82,224,.1);
    border-radius: 13px;
}
.ui-v2-page .plan-visual-icon svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.ui-v2-page .fixed-plan-body { padding: 14px 16px 16px; }
.ui-v2-page .fixed-plan-heading { display: grid; grid-template-columns: minmax(0,1fr) max-content; align-items: baseline; gap: 12px; }
.ui-v2-page .fixed-plan-heading h2 {
    min-width: 0;
    margin: 0;
    overflow: hidden;
    color: var(--ui-text);
    font-size: 15px;
    font-weight: 900;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.ui-v2-page .plan-rate { display: inline-flex; align-items: baseline; gap: 3px; max-width: none; color: var(--page-accent); text-align: right; white-space: nowrap; }
.ui-v2-page .plan-rate b { font-size: 20px; font-weight: 950; letter-spacing: -.03em; }
.ui-v2-page .plan-rate small { display: inline; color: var(--ui-muted); font-size: 11px; font-weight: 750; }
.ui-v2-page .fixed-plan-description {
    display: -webkit-box;
    margin: 5px 0 0;
    overflow: hidden;
    color: var(--ui-muted);
    font-size: 11px;
    line-height: 1.4;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
}
.ui-v2-page .plan-meta {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 0;
    margin: 14px 0 13px;
    padding: 12px 0;
    border-top: 1px solid var(--ui-line);
    border-bottom: 1px solid var(--ui-line);
}
.ui-v2-page .plan-meta span { padding: 0 10px; background: none; border: 0; border-right: 1px solid var(--ui-line); border-radius: 0; }
.ui-v2-page .plan-meta span:first-child { padding-left: 0; }
.ui-v2-page .plan-meta span:last-child { padding-right: 0; border-right: 0; }
.ui-v2-page .plan-meta small { min-height: 26px; overflow: visible; color: var(--ui-muted); font-size: 11px; font-weight: 700; line-height: 1.18; white-space: normal; }
.ui-v2-page .plan-meta strong { margin-top: 4px; overflow: hidden; color: var(--ui-text); font-size: 13px; font-weight: 850; text-overflow: ellipsis; white-space: nowrap; }
.ui-v2-page .plan-link {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 48px;
    padding: 0 16px;
    overflow: hidden;
    color: #fff;
    background: linear-gradient(110deg,#7633df,#b637e8 58%,#e83cab);
    border: 0;
    border-radius: 16px;
    box-shadow: 0 7px 17px rgba(140,49,218,.22);
    font-size: 11px;
    font-weight: 850;
    text-align: left;
}
.ui-v2-page .plan-link::before { content: ""; position: absolute; left: 16px; top: 5px; width: 70px; height: 16px; background: rgba(255,255,255,.08); border-radius: 50%; transform: rotate(-8deg); }
.ui-v2-page .plan-link > * { position: relative; z-index: 1; }
.ui-v2-page .plan-link svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* 定期计划详情：顶部主视觉 + 单一内容面板 */
.ui-v2-fixed-detail #plan-detail { padding-bottom: 26px; }
.ui-v2-fixed-detail .plan-detail-cover {
    position: relative;
    height: 222px;
    margin: 12px;
    overflow: hidden;
    color: var(--ui-text);
    background: var(--ui-card);
    border: 1px solid var(--ui-line);
    border-radius: 24px;
    box-shadow: 0 11px 28px rgba(77,39,111,.12);
}
.ui-v2-fixed-detail .plan-detail-cover::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 116px;
    z-index: 1;
    background: linear-gradient(180deg,rgba(255,255,255,0),var(--ui-card) 55%);
    pointer-events: none;
}
.ui-v2-fixed-detail .plan-detail-image { position: absolute; top: 0; right: 0; left: 0; width: 100%; height: 150px; object-fit: cover; }
.ui-v2-fixed-detail .plan-detail-image.plan-image-placeholder { background: linear-gradient(140deg,#f0e9ff,#e8ddff 58%,#ffe8f3); }
.ui-v2-fixed-detail .plan-detail-image.plan-image-placeholder > svg { width: 100%; height: 100%; color: #9251ed; }
.ui-v2-fixed-detail .plan-detail-image .plan-chart-axis { stroke: rgba(103,55,181,.13); stroke-width: 1.2; }
.ui-v2-fixed-detail .plan-detail-image .plan-chart-line { stroke: #8f4bea; stroke-width: 2.3; stroke-linecap: round; }
.ui-v2-fixed-detail .plan-detail-image circle { fill: #fff; stroke: #9a52e8; stroke-width: 2; }
.ui-v2-fixed-detail .plan-detail-image .plan-chart-end { fill: #ffd45c; }
.ui-v2-fixed-detail .plan-detail-cover .plan-status { z-index: 3; }
.ui-v2-fixed-detail .plan-detail-summary {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 14px;
    z-index: 2;
    display: block;
    padding: 0;
    color: var(--ui-text);
    background: none;
    border: 0;
    box-shadow: none;
}
.ui-v2-fixed-detail .plan-detail-summary .investment-kicker { color: #7d3ed8; font-size: 10px; }
.ui-v2-fixed-detail .plan-detail-title-row { display: grid; grid-template-columns: minmax(0,1fr) max-content; align-items: baseline; gap: 12px; margin-top: 4px; }
.ui-v2-fixed-detail .plan-detail-summary h1 { min-width: 0; margin: 0; overflow: hidden; color: var(--ui-text); font-size: 17px; font-weight: 950; line-height: 1.28; text-overflow: ellipsis; white-space: nowrap; }
.ui-v2-fixed-detail .detail-rate { position: static; display: inline-flex; align-items: baseline; gap: 4px; color: var(--page-accent); font-size: 24px; font-weight: 950; line-height: 1; text-align: right; white-space: nowrap; }
.ui-v2-fixed-detail .detail-rate small { display: inline; margin-left: 0; color: var(--ui-muted); font-size: 11px; font-weight: 750; }
.ui-v2-fixed-detail .plan-detail-sheet {
    position: relative;
    z-index: 3;
    margin: 10px 12px 0;
    padding: 18px 16px 16px;
    color: var(--ui-text);
    background:
        radial-gradient(circle at 98% 0,rgba(230,188,255,.2),transparent 24%),
        var(--ui-card);
    border: 1px solid var(--ui-line);
    border-radius: 27px;
    box-shadow: 0 13px 33px rgba(71,37,102,.12);
}
.ui-v2-fixed-detail .plan-facts {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 0;
    margin: 0;
    padding: 0 0 14px;
    background: none;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}
.ui-v2-fixed-detail .plan-facts > div { min-width: 0; padding: 0 10px; background: none; border: 0; border-right: 1px solid var(--ui-line); border-radius: 0; }
.ui-v2-fixed-detail .plan-facts > div:first-child { padding-left: 0; }
.ui-v2-fixed-detail .plan-facts > div:nth-child(3) { padding-right: 0; border-right: 0; }
.ui-v2-fixed-detail .plan-facts > .plan-range { grid-column: 1 / -1; margin-top: 13px; padding: 13px 0 0; border-top: 1px solid var(--ui-line); border-right: 0; }
.ui-v2-fixed-detail .plan-facts small { min-height: 13px; overflow: visible; color: var(--ui-muted); font-size: 11px; font-weight: 700; line-height: 1.18; white-space: normal; }
.ui-v2-fixed-detail .plan-facts strong { margin-top: 5px; overflow: hidden; color: var(--ui-text); font-size: 13px; font-weight: 850; text-overflow: ellipsis; white-space: nowrap; }
.ui-v2-fixed-detail .plan-facts .plan-range strong { white-space: normal; overflow-wrap: anywhere; }
.ui-v2-fixed-detail .plan-description {
    margin: 0;
    padding: 15px 0;
    background: none;
    border: 0;
    border-top: 1px solid var(--ui-line);
    border-radius: 0;
    box-shadow: none;
}
.ui-v2-fixed-detail .investment-section-heading { display: flex; align-items: center; gap: 9px; }
.ui-v2-fixed-detail .investment-section-icon { display: grid; place-items: center; width: 30px; height: 30px; color: #8b45e7; background: rgba(139,69,231,.1); border-radius: 10px; }
.ui-v2-fixed-detail .investment-section-icon svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.ui-v2-fixed-detail .plan-description h2 { margin: 0; color: var(--ui-text); font-size: 14px; font-weight: 900; }
.ui-v2-fixed-detail .plan-description p { margin: 10px 0 0; color: var(--ui-muted); font-size: 12px; line-height: 1.5; }
.ui-v2-fixed-detail .return-simulator {
    margin: 0;
    padding: 16px 14px 12px;
    color: var(--ui-text);
    background: linear-gradient(135deg,rgba(244,237,255,.92),rgba(255,246,240,.82));
    border: 1px solid rgba(139,92,246,.1);
    border-radius: 21px;
    box-shadow: none;
}
.dark.ui-v2-fixed-detail .return-simulator { background: linear-gradient(135deg,rgba(139,92,246,.12),rgba(236,72,153,.06)); }
.ui-v2-fixed-detail .simulator-heading {
    display: grid;
    grid-template-columns: minmax(0,1fr) max-content;
    align-items: center;
    gap: 5px 10px;
}
.ui-v2-fixed-detail .simulator-heading .investment-kicker { align-self: center; }
.ui-v2-fixed-detail .simulator-amount-label { color: var(--ui-muted); font-size: 11px; font-weight: 800; text-align: right; white-space: nowrap; }
.ui-v2-fixed-detail #amount-display {
    grid-column: 1 / -1;
    display: block;
    max-width: 100%;
    overflow: hidden;
    color: var(--page-accent);
    font-size: clamp(22px,7vw,28px);
    font-variant-numeric: tabular-nums;
    font-weight: 950;
    line-height: 1.08;
    text-align: left;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.ui-v2-fixed-detail .investment-amount-input { margin: 13px 0 10px; padding: 15px; color: var(--ui-text); background: var(--ui-card); border: 1.5px solid rgba(139,92,246,.16); border-radius: 16px; font-size: 15px; font-weight: 750; }
.ui-v2-fixed-detail .investment-amount-input:focus { border-color: #9b55ee; box-shadow: 0 0 0 3px rgba(139,92,246,.1); }
.ui-v2-fixed-detail .quick-amounts { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px; }
.ui-v2-fixed-detail .quick-amounts button { min-height: 39px; color: var(--page-accent); background: rgba(255,255,255,.62); border: 1px solid rgba(124,58,237,.14); border-radius: 12px; }
.dark.ui-v2-fixed-detail .quick-amounts button { background: rgba(255,255,255,.05); }
.ui-v2-fixed-detail .amount-guidance { margin: 10px 0 0; color: var(--ui-muted); font-size: 11px; }
.ui-v2-fixed-detail .return-grid {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 0;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(139,92,246,.12);
}
.ui-v2-fixed-detail .return-grid > div { min-width: 0; padding: 8px 10px; background: none !important; border: 0; border-right: 1px solid rgba(139,92,246,.12); border-bottom: 1px solid rgba(139,92,246,.12); border-radius: 0; }
.ui-v2-fixed-detail .return-grid > div:nth-child(2) { border-right: 0; }
.ui-v2-fixed-detail .return-grid small { color: var(--ui-muted); font-size: 10px; }
.ui-v2-fixed-detail .return-grid strong { margin-top: 4px; overflow: hidden; color: var(--ui-text); font-size: clamp(11px,3.5vw,14px); font-weight: 900; text-overflow: ellipsis; white-space: nowrap; }
.ui-v2-fixed-detail .return-grid .return-total strong { color: var(--page-accent); }
.ui-v2-fixed-detail .return-grid .return-total {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 10px;
    border-right: 0;
}
.ui-v2-fixed-detail .return-grid .return-total small { flex: 0 0 auto; }
.ui-v2-fixed-detail .return-grid .return-total strong { max-width: 64%; margin-top: 0; font-size: 14px; font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.ui-v2-fixed-detail .return-grid .estimated-maturity {
    padding-bottom: 5px;
    border-bottom: 0;
}
.ui-v2-fixed-detail .return-grid .estimated-maturity small { min-width: 0; }
.ui-v2-fixed-detail .return-grid .estimated-maturity strong { flex: 0 0 auto; max-width: none; margin-top: 0; overflow: visible; font-size: 12px; font-variant-numeric: tabular-nums; text-align: right; text-overflow: clip; white-space: nowrap; }
.ui-v2-fixed-detail .field-error { margin-bottom: 2px; }
.ui-v2-fixed-detail .investment-submit { min-height: 48px; margin-top: 3px; border-radius: 16px; box-shadow: 0 7px 18px rgba(139,49,220,.2); }
.ui-v2-fixed-detail .investment-note { margin: 9px 0 0; color: var(--ui-muted); font-size: 11px; text-align: center; }

/* 我的计划：紧凑资产记录 */
.ui-v2-my-fixed .my-plan-summary {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0,1fr) 46px;
    align-items: center;
    gap: 12px;
    min-height: 106px;
    margin: 12px;
    padding: 17px 18px;
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(circle at 87% 20%,rgba(255,204,64,.25),transparent 24%),
        linear-gradient(130deg,#49149c,#8a31dc 57%,#e33eb8);
    border: 0;
    border-radius: 25px;
    box-shadow: 0 15px 34px rgba(82,25,146,.2);
}
.ui-v2-my-fixed .my-plan-summary::after { content: ""; position: absolute; right: -31px; top: -52px; width: 148px; height: 148px; border: 1px solid rgba(255,255,255,.16); border-radius: 50%; box-shadow: 0 0 0 25px rgba(255,255,255,.035); }
.ui-v2-my-fixed .my-plan-summary > * { position: relative; z-index: 1; }
.ui-v2-my-fixed .my-plan-summary .investment-kicker { color: #ffe783; }
.ui-v2-my-fixed .my-plan-summary h1 { margin: 4px 0 3px; color: #fff; font-size: 20px; font-weight: 950; line-height: 1.25; }
.ui-v2-my-fixed .my-plan-summary p { margin: 0; overflow: hidden; color: rgba(255,255,255,.82); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.ui-v2-my-fixed .portfolio-link { display: grid; place-items: center; width: 44px; height: 44px; margin: 0; padding: 0; color: #fff; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.22); border-radius: 15px; }
.ui-v2-my-fixed .portfolio-link svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ui-v2-my-fixed .my-investment-card { padding: 15px; }
.ui-v2-my-fixed .my-investment-head { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: start; gap: 10px; }
.ui-v2-my-fixed .my-investment-head > div { min-width: 0; }
.ui-v2-my-fixed .my-investment-head small { display: block; overflow: hidden; color: var(--ui-muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.ui-v2-my-fixed .my-investment-head h2 { margin: 4px 0 0; overflow: hidden; color: var(--ui-text); font-size: 15px; font-weight: 900; line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; }
.ui-v2-my-fixed .investment-state { display: inline-flex; align-items: center; justify-content: center; max-width: 96px; min-height: 27px; padding: 4px 10px; font-size: 10px; font-weight: 800; }
.ui-v2-my-fixed .investment-money-flow {
    display: grid;
    grid-template-columns: minmax(0,1fr) 13px minmax(0,1fr) 13px minmax(0,1fr);
    align-items: center;
    gap: 5px;
    margin-top: 13px;
    padding: 12px 0;
    border-top: 1px solid var(--ui-line);
    border-bottom: 1px solid var(--ui-line);
}
.ui-v2-my-fixed .investment-money-flow > div { min-width: 0; }
.ui-v2-my-fixed .investment-money-flow > div:last-of-type { text-align: right; }
.ui-v2-my-fixed .investment-money-flow small { display: block; overflow: hidden; color: var(--ui-muted); font-size: 10px; font-weight: 700; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.ui-v2-my-fixed .investment-money-flow strong { display: block; margin-top: 5px; overflow: hidden; color: var(--ui-text); font-size: 13px; font-weight: 900; text-overflow: ellipsis; white-space: nowrap; }
.ui-v2-my-fixed .investment-money-flow .profit strong { color: #119777; }
.ui-v2-my-fixed .investment-money-flow > svg { width: 13px; height: 13px; color: #b7a9c2; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.ui-v2-my-fixed .investment-progress { height: 4px; margin-top: 12px; background: #eee8f3; }
.ui-v2-my-fixed .investment-progress span { background: linear-gradient(90deg,#7c3aed,#d946ef); }
.ui-v2-my-fixed .investment-timeline { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); align-items: center; gap: 10px; margin-top: 12px; color: var(--ui-text); font-size: 10px; }
.ui-v2-my-fixed .investment-timeline span { display: flex; flex-direction: row; align-items: center; gap: 4px; min-width: 0; white-space: nowrap; }
.ui-v2-my-fixed .investment-timeline span small { display: inline; flex: 0 0 auto; margin: 0; color: var(--ui-muted); font-size: 9px; font-weight: 700; }
.ui-v2-my-fixed .investment-timeline .timeline-start { grid-column: 1; justify-self: start; }
.ui-v2-my-fixed .investment-timeline .timeline-due { grid-column: 2; justify-self: end; justify-content: flex-end; text-align: right; }
.ui-v2-my-fixed .investment-live-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 12px;
    padding: 10px 11px;
    background: linear-gradient(110deg,rgba(124,58,237,.075),rgba(217,70,239,.045));
    border: 1px solid rgba(124,58,237,.08);
    border-radius: 13px;
}
.ui-v2-my-fixed .investment-live-row > span { display: flex; flex-direction: column; min-width: 0; }
.ui-v2-my-fixed .investment-live-row small { color: var(--ui-muted); font-size: 10px; font-weight: 700; text-transform: uppercase; }
.ui-v2-my-fixed .investment-live-row .accent { margin-top: 3px; color: #119777; font-size: 14px; font-weight: 900; }
.ui-v2-my-fixed .remaining-time { margin: 0; padding: 0; color: var(--page-accent); background: none; border-radius: 0; font-size: 12px; font-variant-numeric: tabular-nums; font-weight: 900; text-align: right; white-space: nowrap; }
.ui-v2-my-fixed .investment-settled { display: flex; align-items: center; gap: 9px; margin-top: 12px; padding-top: 11px; color: #0c8062; border-top: 1px solid var(--ui-line); font-size: 12px; }
.ui-v2-my-fixed .investment-settled-icon { display: grid; place-items: center; width: 26px; height: 26px; flex: 0 0 26px; color: #fff; background: #16a47f; border-radius: 9px; }
.ui-v2-my-fixed .investment-settled-icon svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.ui-v2-my-fixed .investment-settled strong { min-width: 0; overflow-wrap: anywhere; font-weight: 850; }
.dark.ui-v2-page .fixed-plan-card,
.dark.ui-v2-page .my-investment-card,
.dark.ui-v2-fixed-detail .plan-detail-sheet { box-shadow: 0 10px 28px rgba(0,0,0,.22); }
.dark.ui-v2-my-fixed .investment-progress { background: rgba(255,255,255,.09); }

@media (max-width: 370px) {
    .team-overview,
    .team-workspace { margin-right: 9px; margin-left: 9px; }
    .team-overview { min-height: 184px; padding: 14px; }
    .team-overview-icon { width: 38px; height: 38px; flex-basis: 38px; }
    .team-total { margin: 4px 0 9px; }
    .team-total strong { font-size: 38px; }
    .team-level-path { gap: 4px; padding-right: 6px; padding-left: 6px; }
    .team-workspace { padding-right: 12px; padding-left: 12px; }
    .team-invite-action { grid-template-columns: 40px minmax(0,1fr) auto; gap: 8px; }
    .team-action-icon { width: 40px; height: 40px; }
    .team-copy-button { min-width: 74px; padding-right: 9px; padding-left: 9px; font-size: 10px; }
    .team-member-row { grid-template-columns: 40px minmax(0,1fr) minmax(82px,max-content); gap: 8px; }
    .team-member-row .member-avatar { width: 40px; height: 40px; }
    .team-member-row .member-value { grid-column: 3; text-align: right; }
    .member-card { grid-template-columns: 42px minmax(0,1fr); }
    .member-value { grid-column: 2; text-align: left; }
    .task-card-head { grid-template-columns: 44px minmax(0,1fr) auto; gap: 8px; }
    .task-card-head > .badge-grad { grid-column: 3; grid-row: 1; align-self: start; justify-self: end; margin-top: 2px; white-space: nowrap; }
    .news-card { grid-template-columns: 86px minmax(0,1fr) 12px; gap: 9px; }
    .news-thumb { width: 86px; height: 70px; }
    .ui-v2-product-list .product-card { grid-template-columns: 92px minmax(0,1fr); gap: 10px; }
    .ui-v2-product-list .product-card > img { width: 92px; height: 98px; }
    .money-hero-card { margin-right: 9px; margin-left: 9px; padding-right: 14px; padding-left: 14px; }
    .money-hero-icon { width: 56px; height: 56px; flex-basis: 56px; }
    .money-hero-card strong { font-size: 21px; }
    .transaction-card { grid-template-columns: 40px minmax(0,1fr); }
    .transaction-icon { width: 40px; height: 40px; }
    .transaction-amount { grid-column: 2; text-align: left; }
    .ui-v2-page .fixed-plan-card,
    .ui-v2-page .my-investment-card,
    .ui-v2-fixed-list .investment-hero,
    .ui-v2-my-fixed .my-plan-summary,
    .ui-v2-fixed-detail .plan-detail-cover,
    .ui-v2-fixed-detail .plan-detail-summary,
    .ui-v2-fixed-detail .plan-facts,
    .ui-v2-fixed-detail .plan-description,
    .ui-v2-fixed-detail .return-simulator { margin-right: 9px; margin-left: 9px; }
    .ui-v2-fixed-list .investment-hero { min-height: 104px; padding: 16px; }
    .ui-v2-fixed-list .investment-hero h1 { font-size: 18px; }
    .ui-v2-page .fixed-plan-image { height: 126px; }
    .ui-v2-page .fixed-plan-body { padding-right: 13px; padding-left: 13px; }
    .ui-v2-page .fixed-plan-heading { gap: 8px; }
    .ui-v2-page .fixed-plan-heading h2 { font-size: 13px; }
    .ui-v2-page .plan-rate b { font-size: 18px; }
    .ui-v2-page .plan-meta span { padding-right: 7px; padding-left: 7px; }
    .ui-v2-page .plan-meta strong { font-size: 12.5px; }
    .ui-v2-fixed-detail .plan-detail-cover { height: 216px; }
    .ui-v2-fixed-detail .plan-detail-summary { right: 14px; left: 14px; }
    .ui-v2-fixed-detail .plan-detail-summary h1 { font-size: 16px; }
    .ui-v2-fixed-detail .plan-detail-title-row { gap: 8px; }
    .ui-v2-fixed-detail .detail-rate { font-size: 22px; }
    .ui-v2-fixed-detail .plan-detail-sheet { margin-right: 9px; margin-left: 9px; padding-right: 13px; padding-left: 13px; }
    .ui-v2-fixed-detail .plan-facts > div { padding-right: 6px; padding-left: 6px; }
    .ui-v2-fixed-detail .plan-facts strong { font-size: 12px; }
    .ui-v2-fixed-detail .return-grid .estimated-maturity { gap: 8px; padding-right: 8px; padding-left: 8px; }
    .ui-v2-fixed-detail .return-grid .estimated-maturity small { font-size: 9px; }
    .ui-v2-fixed-detail .return-grid .estimated-maturity strong { font-size: 11px; }
    .ui-v2-my-fixed .my-plan-summary { grid-template-columns: minmax(0,1fr) 42px; padding-right: 14px; padding-left: 14px; }
    .ui-v2-my-fixed .my-plan-summary h1 { font-size: 18px; }
    .ui-v2-my-fixed .portfolio-link { width: 40px; height: 40px; }
    .ui-v2-my-fixed .my-investment-card { padding-right: 12px; padding-left: 12px; }
    .ui-v2-my-fixed .my-investment-head h2 { font-size: 14px; }
    .ui-v2-my-fixed .investment-state { max-width: 86px; padding-right: 7px; padding-left: 7px; font-size: 10px; }
    .ui-v2-my-fixed .investment-money-flow { gap: 3px; grid-template-columns: minmax(0,1fr) 10px minmax(0,1fr) 10px minmax(0,1fr); }
    .ui-v2-my-fixed .investment-money-flow > svg { width: 10px; height: 10px; }
    .ui-v2-my-fixed .investment-money-flow small { font-size: 10px; }
    .ui-v2-my-fixed .investment-money-flow strong { font-size: 13px; }
    .ui-v2-my-fixed .investment-timeline { gap: 7px; font-size: 9.5px; }
    .ui-v2-my-fixed .investment-timeline span small { font-size: 9px; }
    .ui-v2-my-fixed .investment-live-row { gap: 6px; padding-right: 8px; padding-left: 8px; }
    .ui-v2-my-fixed .remaining-time { font-size: 12px; }
}
