:root {
    /* 主色：与 themes.css 各主题 data-theme 协同；默认对齐海蓝天蓝 */
    --accent: #38bdf8;
    --accent-strong: #0ea5e9;
    --accent-muted: rgba(56, 189, 248, 0.14);
    --accent-glow: rgba(56, 189, 248, 0.28);
    /* 状态色：成功绿 / 提醒蓝 / 警告橙 / 危险红 / 次要灰 */
    --success: #22c55e;
    --info: #3b82f6;
    --warning: #f59e0b;
    --danger: #ef4444;
    --surface: rgba(15, 23, 42, 0.58);
    --surface-elevated: rgba(21, 30, 45, 0.82);
    --border: rgba(148, 163, 184, 0.14);
    --text: #f1f5f9;
    --text-muted: #94a3b8;
    --radius: 10px;
    --radius-lg: 14px;
    --radius-xl: 18px;
    --radius-btn: 4px;
    --radius-menu: 8px;
    --brand-primary: #409EFF;
    --brand-primary-hover: #337ECC;
    --brand-primary-active: #2D6FCC;
    --ease: ease;
    --dur: 0.2s;

    --shadow: 0 10px 40px rgba(0, 0, 0, 0.28);
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.18);
    --blur: 18px;
    --blur-navbar: 16px;
    --blur-modal: 18px;
    --grid-size: 56px;
    --grid-line: rgba(148, 163, 184, 0.028);
    --navbar-bg: rgba(10, 14, 22, 0.78);
    --card-border-width: 1px;
    --card-border-style: solid;
    --card-shine-height: 0;
    --card-shine-color: transparent;
    --card-hover-outline-width: 0;
    --card-hover-outline-color: transparent;
    /* 扫光：间隔与扫过速度可独立配置 */
    --card-sheen-interval: 3s;
    --card-sheen-sweep-duration: 1.6s;
    --font: 'Inter Variable', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --gradient-hero: linear-gradient(160deg, #0c1222 0%, #152a45 48%, #0f172a 100%);
    --gradient-accent: linear-gradient(135deg, #38bdf8 0%, #0ea5e9 100%);
    --gradient-warm: linear-gradient(135deg, #fbbf24 0%, #d97706 100%);
}

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

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body.app-body {
    margin: 0;
    font-family: var(--font);
    color: var(--text);
    background: var(--gradient-hero);
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    text-rendering: geometricPrecision;
    padding-left: env(safe-area-inset-left, 0px);
    padding-right: env(safe-area-inset-right, 0px);
    padding-bottom: env(safe-area-inset-bottom, 0px);
}

body.app-body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: radial-gradient(ellipse 85% 55% at 50% -15%, rgba(64, 158, 255, 0.08), transparent 55%);
    pointer-events: none;
    z-index: -1;
}

body.app-body::after {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(var(--grid-line) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
    background-size: var(--grid-size) var(--grid-size);
    mask-image: radial-gradient(ellipse 72% 58% at 50% 28%, black, transparent);
    opacity: 0.65;
    pointer-events: none;
    z-index: -1;
}

.skip-link:not(:focus) {
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}

.skip-link:focus {
    position: fixed;
    z-index: 2000;
    clip: auto;
    width: auto;
    height: auto;
    margin: 0;
}

.main-container {
    position: relative;
    flex: 1 0 auto;
    min-height: 72vh;
}

body.app-body:not(.user-console) .main-container {
    padding-top: 0.5rem;
}

/* 顶栏压在会员主列、侧栏（Bootstrap offcanvas 多为 1045）之上，避免滚动时内容盖住导航 */
body.app-body .site-header {
    position: sticky;
    top: 0;
    z-index: 1046;
}

/* —— Nav —— */
.app-navbar {
    background: var(--navbar-bg);
    backdrop-filter: blur(var(--blur-navbar));
    -webkit-backdrop-filter: blur(var(--blur-navbar));
    border-bottom: 1px solid var(--border);
    padding: max(0.5rem, env(safe-area-inset-top, 0px)) 0 0.65rem;
}

.app-navbar .navbar-toggler {
    border: 1px solid var(--border);
}

@media (min-width: 992px) {
    .app-navbar .navbar-collapse {
        display: flex !important;
        flex-basis: 0;
        flex-grow: 1;
        align-items: center;
        justify-content: flex-end;
        min-width: 0;
    }
}

.brand-mark {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-lg);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-accent);
    color: #fff;
    font-size: 1.05rem;
    box-shadow: 0 2px 16px var(--accent-glow);
}

.brand-mark--sm {
    width: 32px;
    height: 32px;
    font-size: 0.9rem;
    border-radius: 10px;
}

/* 自定义站点图标：占满容器、不圆角裁切，保证 ICO/PNG 边缘完整可见 */
.brand-mark.brand-mark--img {
    padding: 0;
    background: transparent;
    box-shadow: none;
    overflow: visible;
    border-radius: 0;
}

.brand-mark.brand-mark--img img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 0;
}

.brand-mark--sm.brand-mark--img {
    padding: 0;
}

.brand-mark--sm.brand-mark--img img {
    border-radius: 0;
}

.brand-text {
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: -0.02em;
    color: var(--text);
}

.nav-pill {
    color: var(--text-muted) !important;
    font-weight: 500;
    padding: 0.45rem 0.9rem !important;
    border-radius: 999px;
    transition: color 0.2s, background 0.2s;
}

.nav-pill:hover {
    color: var(--text) !important;
    background: rgba(148, 163, 184, 0.08);
}

.nav-pill.active {
    color: #fff !important;
    background: var(--gradient-accent);
    box-shadow: 0 2px 14px var(--accent-glow);
}

.btn-accent {
    background: var(--gradient-accent);
    border: none;
    color: #fff !important;
    font-weight: 600;
    border-radius: var(--radius-lg);
    box-shadow: 0 2px 16px var(--accent-glow);
    min-height: 40px;
    padding-left: 1.15rem;
    padding-right: 1.15rem;
}

.btn-accent:hover {
    filter: brightness(1.05);
    transform: translateY(-1px);
    color: #fff !important;
}

/* 顶栏「控制台」按钮：B 端矩形规范（非模块化 UI 的兜底覆盖） */
.btn-console.btn-sm {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    min-height: 40px;
    padding: 10px 24px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    font-family: 'Microsoft YaHei', 'Noto Sans SC', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #fff !important;
    background: #409EFF;
    border: 1px solid transparent;
    box-shadow: 0 2px 8px rgba(64, 158, 255, 0.3);
    cursor: pointer;
    transition:
        background-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease,
        opacity 0.2s ease,
        color 0.2s ease;
}

.btn-console.btn-sm:hover {
    background: #337ECC;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(64, 158, 255, 0.4);
}

.btn-console.btn-sm:active {
    background: #2D6FCC;
    transform: translateY(1px);
    box-shadow: 0 2px 8px rgba(64, 158, 255, 0.25);
}

.btn-console.btn-sm:disabled,
.btn-console.btn-sm[aria-disabled='true'] {
    background: #C0C4CC;
    color: #909399 !important;
    opacity: 1;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

@media (prefers-color-scheme: light) {
    .btn-console.btn-sm {
        background: transparent;
        border-color: #409EFF;
        color: #409EFF !important;
        box-shadow: none;
    }

    .btn-console.btn-sm:hover {
        background: #337ECC;
        border-color: #337ECC;
        color: #fff !important;
        box-shadow: 0 4px 12px rgba(64, 158, 255, 0.25);
    }

    .btn-console.btn-sm:active {
        background: #2D6FCC;
        border-color: #2D6FCC;
        box-shadow: 0 2px 8px rgba(64, 158, 255, 0.18);
    }
}

@media (max-width: 575.98px) {
    .btn-console.btn-sm {
        height: 36px;
        min-height: 36px;
        padding: 8px 18px;
    }
}

.btn-nav-exit:hover {
    background: rgba(248, 113, 113, 0.12);
    border-color: rgba(248, 113, 113, 0.45);
    color: #fecaca !important;
}

/* —— Cards —— */
.glass-card {
    position: relative;
    overflow: hidden;
    background: var(--surface);
    backdrop-filter: blur(var(--blur));
    -webkit-backdrop-filter: blur(var(--blur));
    border-width: var(--card-border-width);
    border-style: var(--card-border-style);
    border-color: var(--border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-soft);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.glass-card::before {
    content: '';
    position: absolute;
    inset: 0 0 auto 0;
    height: var(--card-shine-height);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    background: linear-gradient(90deg, transparent, var(--card-shine-color), transparent);
    pointer-events: none;
}

/* 全站卡片扫光特效 */
.glass-card::after,
.account-card::after,
.stat-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -145%;
    width: 120%;
    height: 100%;
    pointer-events: none;
    background: linear-gradient(
        110deg,
        transparent 0%,
        rgba(255, 255, 255, 0.04) 42%,
        rgba(255, 255, 255, 0.24) 50%,
        rgba(255, 255, 255, 0.04) 58%,
        transparent 100%
    );
    transform: skewX(-20deg);
    animation: card-sheen-sweep var(--card-sheen-interval) ease-in-out infinite;
}

.account-card,
.stat-card {
    position: relative;
    overflow: hidden;
}

@keyframes card-sheen-sweep {
    0%,
    16% {
        left: -145%;
        opacity: 0;
    }
    22% {
        opacity: 0.9;
    }
    46% {
        left: 145%;
        opacity: 0.9;
    }
    54%,
    100% {
        left: 145%;
        opacity: 0;
    }
}

.glass-card:hover {
    border-color: rgba(148, 163, 184, 0.22);
    box-shadow: var(--shadow-soft), 0 0 0 1px var(--accent-muted);
    transform: translateY(-1px);
}

.modal-content.glass-card:hover {
    transform: none;
    border-color: var(--border);
    box-shadow: var(--shadow-soft);
}

.card-header {
    background: transparent;
    border-bottom: 1px solid var(--border);
    font-weight: 600;
    color: var(--text);
    padding: 1.25rem 1.5rem;
}

.card-body {
    padding: 1.5rem;
}

/* —— Hero & home —— */
.hero-section {
    padding-top: 1rem;
    padding-bottom: 2.75rem;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent);
    background: var(--accent-muted);
    border: 1px solid var(--accent-muted);
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
}

.hero-title {
    font-size: clamp(2rem, 4vw, 3.25rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin: 1rem 0 1.25rem;
    color: var(--text);
}

.hero-title .highlight {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-lead {
    font-size: clamp(0.95rem, 2.8vw, 1.05rem);
    line-height: 1.75;
    color: var(--text-muted);
    max-width: 34rem;
}

.hero-tags .badge {
    background: rgba(15, 23, 42, 0.72) !important;
    color: #dbeafe !important;
    border-color: rgba(148, 163, 184, 0.3) !important;
    font-weight: 600;
}

.stat-chip {
    text-align: center;
    padding: 0.75rem;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
}

.stat-chip strong {
    display: block;
    font-size: 1.35rem;
    font-weight: 800;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-chip span {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.demo-panel .demo-badge {
    top: 1rem;
    right: 1rem;
}

.manual-step-notes {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.55rem;
}

.manual-note-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    min-height: 2.15rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.24);
    background: rgba(255, 255, 255, 0.03);
    color: #cbd5e1;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    text-align: center;
    padding: 0.3rem 0.45rem;
}

.manual-note-item i {
    color: var(--accent);
}

.step-presets {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.55rem;
}

.btn-step-preset {
    border: 1px solid rgba(64, 158, 255, 0.38);
    border-radius: 999px;
    background: rgba(64, 158, 255, 0.1);
    color: #dbeafe;
    font-size: 0.78rem;
    font-weight: 700;
    min-height: 2.15rem;
    padding: 0.2rem 0.35rem;
}

.btn-step-preset:hover {
    background: rgba(64, 158, 255, 0.18);
    border-color: rgba(64, 158, 255, 0.6);
    color: #eff6ff;
}

.btn-step-preset.is-active {
    background: linear-gradient(135deg, rgba(64, 158, 255, 0.85), rgba(56, 189, 248, 0.85));
    border-color: rgba(191, 219, 254, 0.85);
    color: #fff;
    box-shadow: 0 4px 16px rgba(64, 158, 255, 0.24);
}

.btn-step-random {
    border-color: rgba(250, 204, 21, 0.5);
    background: rgba(250, 204, 21, 0.12);
    color: #fde68a;
}

.btn-step-random:hover {
    border-color: rgba(250, 204, 21, 0.72);
    background: rgba(250, 204, 21, 0.2);
    color: #fef3c7;
}

.btn-step-random.is-active {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.88), rgba(250, 204, 21, 0.88));
    border-color: rgba(254, 240, 138, 0.9);
    color: #fff;
    box-shadow: 0 4px 16px rgba(245, 158, 11, 0.26);
}

.quick-metrics .mini-stat {
    border-radius: 10px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.45rem 0.3rem;
    letter-spacing: 0.03em;
}

.feature-bento .feature-card {
    height: 100%;
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    transition: transform 0.25s, border-color 0.25s, background 0.25s;
}

.feature-bento .feature-card:hover {
    transform: translateY(-2px);
    border-color: rgba(148, 163, 184, 0.22);
    background: rgba(255, 255, 255, 0.04);
}

.feature-bento .feature-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    margin-bottom: 1.1rem;
}

.feature-icon.teal {
    background: var(--accent-muted);
    color: var(--accent);
}

.feature-icon.sky {
    background: rgba(56, 189, 248, 0.12);
    color: var(--info);
}

.feature-icon.amber {
    background: rgba(251, 191, 36, 0.12);
    color: var(--warning);
}

.cta-panel {
    border-radius: var(--radius-xl);
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(56, 189, 248, 0.14);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.22);
}

.cta-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, var(--accent-muted), transparent 45%);
    pointer-events: none;
}

/* Legacy feature-card (intersection observer) */
.feature-card {
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: all 0.35s ease;
}

.feature-card .feature-icon.primary {
    background: var(--accent-muted);
    color: var(--accent);
}

.feature-card .feature-icon.success {
    background: rgba(52, 211, 153, 0.12);
    color: var(--success);
}

.feature-card .feature-icon.warning {
    background: rgba(251, 191, 36, 0.12);
    color: var(--warning);
}

.feature-card .feature-icon.info {
    background: rgba(56, 189, 248, 0.12);
    color: var(--info);
}

/* —— Auth —— */
.auth-shell {
    min-height: calc(72vh - 2rem);
    align-items: stretch;
}

.auth-side {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    background: linear-gradient(145deg, var(--accent-muted) 0%, rgba(15, 23, 42, 0.6) 55%);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-side::before {
    content: "";
    position: absolute;
    inset: -35% auto auto -30%;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.28) 0%, rgba(56, 189, 248, 0) 70%);
    pointer-events: none;
}

.auth-side::after {
    content: "";
    position: absolute;
    right: -120px;
    bottom: -140px;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.22) 0%, rgba(59, 130, 246, 0) 72%);
    pointer-events: none;
}

.auth-side h2 {
    position: relative;
    z-index: 1;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 0.75rem;
}

.auth-side p {
    position: relative;
    z-index: 1;
    color: var(--text-muted);
    margin-bottom: 0;
    max-width: 26rem;
}

.auth-side-feature-list {
    position: relative;
    z-index: 1;
    margin: 1.35rem 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0.7rem;
}

.auth-side-feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    color: rgba(226, 232, 240, 0.92);
    font-size: 0.9rem;
    line-height: 1.55;
}

.auth-side-feature-list i {
    margin-top: 0.18rem;
    color: rgba(56, 189, 248, 0.95);
}

.auth-side-tip {
    position: relative;
    z-index: 1;
    margin-top: 1.25rem;
    border: 1px solid rgba(148, 163, 184, 0.2);
    background: rgba(15, 23, 42, 0.38);
    border-radius: var(--radius);
    padding: 0.85rem 0.95rem;
    color: rgba(226, 232, 240, 0.9);
    font-size: 0.82rem;
    line-height: 1.6;
}

.auth-qr-login {
    border-top: 1px dashed rgba(148, 163, 184, 0.26);
}

.auth-qr-title {
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--text);
}

.auth-qr-box {
    width: 100%;
    max-width: 220px;
    padding: 0.55rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.04);
}

.auth-qr-box img {
    width: 100%;
    display: block;
    border-radius: calc(var(--radius) - 2px);
    background: #fff;
}

.auth-card {
    max-width: 440px;
    margin: 0 auto;
}

.auth-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.65rem;
    margin: 0 auto 1.25rem;
}

.hover-white:hover {
    color: var(--text) !important;
}

.section-title {
    font-weight: 800;
    letter-spacing: -0.025em;
    color: var(--text);
    font-size: clamp(1.4rem, 3.2vw, 1.9rem);
    line-height: 1.2;
}

.section-sub {
    color: var(--text-muted);
    font-size: clamp(0.9rem, 2.2vw, 1.02rem);
    line-height: 1.68;
    max-width: 36rem;
    margin-left: auto;
    margin-right: auto;
}

/* —— Dashboard —— */
.dash-head {
    margin-bottom: 1.5rem;
}

.dash-title {
    font-weight: 800;
    font-size: 1.65rem;
    letter-spacing: -0.03em;
    margin: 0;
}

.dash-sub {
    color: var(--text-muted);
    margin: 0.35rem 0 0;
    font-size: 0.95rem;
}

/* —— 会员中心：子导航（手机横滑 / 平板换行 / 桌面一排） —— */
.user-hub-wrap {
    position: relative;
}

.user-hub-nav {
    border-radius: var(--radius-lg);
    background: rgba(8, 12, 18, 0.45);
    border: 1px solid var(--border);
    padding: 0.5rem 0.65rem;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.user-hub-nav-list {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.4rem;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    padding: 0.1rem 0;
}

.user-hub-nav-list::-webkit-scrollbar {
    height: 4px;
}

.user-hub-nav-list::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.35);
    border-radius: 999px;
}

.user-hub-pill {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    padding: 0.45rem 0.95rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    text-decoration: none;
    border: 1px solid transparent;
    transition:
        color 0.2s,
        background 0.2s,
        border-color 0.2s,
        transform 0.2s;
}

.user-hub-pill:hover {
    color: var(--text);
    background: rgba(148, 163, 184, 0.1);
    text-decoration: none;
}

.user-hub-pill.active {
    color: #fff;
    background: var(--gradient-accent);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 2px 14px var(--accent-glow);
}

@media (min-width: 992px) {
    .user-hub-nav-list {
        flex-wrap: wrap;
        overflow-x: visible;
    }
}

/* 总览快照与入口卡片 */
.user-snapshot-card .user-snapshot-icon {
    width: 2.5rem;
    height: 2.5rem;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-lg);
    font-size: 1.1rem;
    background: var(--accent-muted);
    color: var(--accent);
}

.user-snapshot-icon--warning {
    background: rgba(245, 158, 11, 0.14) !important;
    color: var(--warning) !important;
}

/* VIP 区域强化：更明确的品牌识别和层次 */
.vip-highlight-card {
    border-color: rgba(251, 191, 36, 0.45) !important;
    box-shadow:
        0 8px 28px rgba(0, 0, 0, 0.28),
        0 0 0 1px rgba(251, 191, 36, 0.2),
        0 0 26px rgba(251, 191, 36, 0.12) !important;
}

.vip-highlight-card::before {
    height: 2px;
    background: linear-gradient(90deg, rgba(251, 191, 36, 0.08), rgba(251, 191, 36, 0.9), rgba(251, 191, 36, 0.08));
}

.vip-highlight-card .stat-value,
.vip-highlight-card .text-gradient {
    color: #fcd34d !important;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.user-snapshot-icon--info {
    background: rgba(59, 130, 246, 0.14) !important;
    color: var(--info) !important;
}

.user-snapshot-icon--success {
    background: rgba(34, 197, 94, 0.14) !important;
    color: var(--success) !important;
}

.user-snapshot-icon--muted {
    background: rgba(148, 163, 184, 0.1) !important;
    color: var(--text-muted) !important;
}

.hub-tile {
    display: block;
    color: inherit;
    border-radius: var(--radius-xl);
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.hub-tile:hover {
    color: inherit;
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
}

.hub-tile:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

.hub-tile-inner {
    padding: 1.25rem 1.35rem;
    height: 100%;
    border-radius: inherit;
    transition: border-color 0.2s, background 0.2s;
}

.hub-tile:hover .hub-tile-inner {
    border-color: rgba(148, 163, 184, 0.2);
    background: rgba(255, 255, 255, 0.035);
}

.hub-tile-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    margin-bottom: 0.75rem;
    background: var(--accent-muted);
    color: var(--accent);
}

.hub-tile-title {
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text);
    margin-bottom: 0.35rem;
    line-height: 1.35;
}

.hub-tile-desc {
    font-size: 0.8125rem;
    line-height: 1.55;
    color: var(--text-muted);
    margin-bottom: 0;
}

@media (max-width: 575.98px) {
    .hub-tile-inner {
        padding: 1.05rem 1.15rem;
    }

    .hub-tile-icon {
        width: 40px;
        height: 40px;
        font-size: 1.05rem;
    }
}

.user-avatar {
    width: 92px;
    height: 92px;
    border-radius: 50%;
    background: var(--gradient-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.1rem;
    color: #fff;
    margin: 0 auto 1rem;
    box-shadow: 0 8px 28px var(--accent-glow);
}

.stat-card {
    background: rgba(255, 255, 255, 0.04);
    border-radius: var(--radius);
    padding: 1rem;
    text-align: center;
    border: 1px solid var(--border);
}

.stat-value {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.35;
}

.snapshot-grid .stat-value {
    font-size: clamp(1rem, 2.8vw, 1.15rem);
}

.stat-label {
    font-size: 0.8125rem;
    color: var(--text-muted);
    text-transform: none;
    letter-spacing: 0.01em;
    font-weight: 500;
    margin-top: 0.25rem;
}

.account-card {
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.03);
    padding: 1.25rem 1.35rem;
    margin-bottom: 0.75rem;
    transition: border-color 0.2s, background 0.2s;
}

.account-card:last-child {
    margin-bottom: 0;
}

.account-card:hover {
    border-color: rgba(56, 189, 248, 0.22);
    background: var(--accent-muted);
}

.account-card .acc-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* 控制台「立即同步」：悬停反馈 + 同步中旋转与脉冲光晕 */
.btn-sync-once {
    position: relative;
    transition:
        transform 0.22s ease,
        box-shadow 0.28s ease,
        border-color 0.22s ease,
        background-color 0.22s ease,
        color 0.22s ease;
}

.btn-sync-once:not(:disabled):hover {
    transform: translateY(-1px);
    box-shadow:
        0 4px 16px rgba(52, 211, 153, 0.22),
        0 0 0 1px rgba(52, 211, 153, 0.2);
}

.btn-sync-once:not(:disabled):hover .fa-sync-alt:not(.fa-spin) {
    animation: btn-sync-icon-wiggle 0.55s ease;
}

.btn-sync-once:not(:disabled):active {
    transform: translateY(0);
    transition-duration: 0.08s;
}

.btn-sync-once.is-syncing {
    box-shadow:
        0 0 0 2px rgba(52, 211, 153, 0.35),
        0 6px 22px rgba(52, 211, 153, 0.2);
    animation: btn-sync-glow-pulse 1.15s ease-in-out infinite;
}

@keyframes btn-sync-icon-wiggle {
    0%,
    100% {
        transform: rotate(0deg);
    }
    30% {
        transform: rotate(-22deg);
    }
    60% {
        transform: rotate(22deg);
    }
}

@keyframes btn-sync-glow-pulse {
    0%,
    100% {
        box-shadow:
            0 0 0 2px rgba(52, 211, 153, 0.28),
            0 4px 18px rgba(52, 211, 153, 0.18);
    }
    50% {
        box-shadow:
            0 0 0 3px rgba(52, 211, 153, 0.45),
            0 6px 26px rgba(52, 211, 153, 0.28);
    }
}

.badge-soft {
    background: rgba(148, 163, 184, 0.12) !important;
    color: var(--text-muted) !important;
    border: 1px solid var(--border);
    font-weight: 600;
    font-size: 0.75rem;
    border-radius: var(--radius);
}

/* —— Forms —— */
.form-control,
.form-select {
    background: rgba(8, 12, 18, 0.65);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    padding: 0.85rem 1rem;
}

.form-control:focus,
.form-select:focus {
    background: rgba(8, 12, 18, 0.85);
    border-color: var(--accent-strong);
    box-shadow: 0 0 0 3px var(--accent-muted);
    color: var(--text);
}

/* 原生下拉展开层常为浅色底，option 勿继承页面浅色字 */
.form-select option,
select.form-select option {
    color: #0f172a;
    background-color: #f1f5f9;
}

.swal2-container select.swal2-select option,
.swal2-container .swal2-popup select option {
    color: #0f172a;
    background-color: #f1f5f9;
}

.swal2-container .swal2-popup select.swal2-select,
.swal2-container .swal2-popup select {
    background-color: rgba(15, 23, 34, 0.96);
    color: #e8f1f8;
    border: 1px solid rgba(148, 163, 184, 0.35);
    border-radius: 8px;
}

.swal2-container .swal2-popup select:focus {
    outline: none;
    border-color: rgba(45, 212, 191, 0.65);
    box-shadow: 0 0 0 2px rgba(45, 212, 191, 0.2);
}

.form-control::placeholder {
    color: rgba(148, 163, 184, 0.45);
}

.form-floating > label {
    color: var(--text-muted);
}

.form-floating > .form-control::placeholder {
    color: transparent !important;
}

.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label {
    color: var(--accent);
}

.auth-form-shell .form-floating > label {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.auth-form-shell .input-group > .form-floating {
    min-width: 0;
}

/* Geetest v4 组件可能会在 #captcha-box 内部使用绝对定位。
 * 为避免其计算坐标时“脱离”容器导致覆盖到上方/下方按钮，这里给容器建立定位上下文。
 */
#captcha-box {
    position: relative;
    z-index: 1;
}

/* —— Buttons —— */
.btn {
    font-weight: 500;
    border-radius: var(--radius-btn);
    transition:
        transform var(--dur) var(--ease),
        box-shadow var(--dur) var(--ease),
        background-color var(--dur) var(--ease),
        border-color var(--dur) var(--ease),
        color var(--dur) var(--ease),
        opacity var(--dur) var(--ease);
}

.btn-primary {
    background: var(--brand-primary);
    border: 1px solid transparent;
    color: #FFFFFF !important;
    box-shadow: 0 2px 8px rgba(64, 158, 255, 0.3);
}

.btn-primary:hover {
    background: var(--brand-primary-hover);
    box-shadow: 0 4px 12px rgba(64, 158, 255, 0.4);
    transform: translateY(-1px);
    color: #FFFFFF !important;
}

.btn-primary:active {
    background: var(--brand-primary-active);
    box-shadow: 0 2px 8px rgba(64, 158, 255, 0.25);
    transform: translateY(1px);
}

.btn-primary:disabled,
.btn-primary.disabled,
.btn-primary[aria-disabled='true'] {
    background: #C0C4CC;
    border-color: transparent;
    color: #909399 !important;
    box-shadow: none;
    transform: none;
    opacity: 1;
    cursor: not-allowed;
}

.btn-success {
    background: var(--success);
    border: 1px solid transparent;
    color: #FFFFFF !important;
}

.btn-outline-secondary {
    border: 1px solid var(--border);
    color: var(--text-muted);
    background: transparent;
}

.btn-outline-secondary:hover {
    background: rgba(148, 163, 184, 0.1);
    border-color: rgba(148, 163, 184, 0.35);
    color: var(--text);
}

.btn-outline-primary {
    border: 1px solid var(--brand-primary);
    color: var(--brand-primary);
    background: transparent;
}

.btn-outline-primary:hover {
    background: rgba(64, 158, 255, 0.12);
    border-color: var(--brand-primary-hover);
    color: var(--brand-primary-hover);
    transform: translateY(-1px);
}

.btn-outline-danger {
    border: 1px solid rgba(248, 113, 113, 0.45);
    color: var(--danger);
    background: transparent;
}

.btn-outline-danger:hover {
    background: rgba(248, 113, 113, 0.12);
    color: #fecaca;
}

.btn-glass {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    color: var(--text);
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.09);
    color: var(--text);
}

/* —— List group (fallback) —— */
.list-group-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    color: var(--text);
    margin-bottom: 0.5rem;
    border-radius: var(--radius) !important;
}

.list-group-item:hover {
    border-color: rgba(56, 189, 248, 0.22);
}

/* —— Badge —— */
.badge {
    font-weight: 600;
    border-radius: var(--radius);
    padding: 0.3rem 0.55rem;
    font-size: 0.75rem;
}

.badge.bg-primary {
    background: var(--gradient-accent) !important;
    color: #fff !important;
}

.badge.bg-success {
    background: rgba(34, 197, 94, 0.2) !important;
    color: #86efac !important;
}

.badge.bg-warning {
    background: rgba(245, 158, 11, 0.2) !important;
    color: #fcd34d !important;
}

.badge.bg-danger {
    background: rgba(239, 68, 68, 0.2) !important;
    color: #fca5a5 !important;
}

/* —— Alert —— */
.alert {
    border: none;
    border-radius: var(--radius);
}

.alert-info {
    background: rgba(56, 189, 248, 0.12);
    color: #7dd3fc;
    border-left: 3px solid var(--info);
}

.alert-success {
    background: rgba(52, 211, 153, 0.12);
    color: #6ee7b7;
}

.alert-danger {
    background: rgba(248, 113, 113, 0.12);
    color: #fecaca;
}

/* —— Modal —— */
.modal-backdrop {
    display: none !important;
}

.modal-content {
    background: var(--surface-elevated);
    backdrop-filter: blur(var(--blur-modal));
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
}

.modal-header {
    border-bottom-color: var(--border);
}

.modal-footer {
    border-top-color: var(--border);
}

.modal-title {
    color: var(--text);
}

/* —— 首页公告弹窗（全主题共用） —— */
.home-site-announce-modal .modal-dialog {
    max-width: min(32rem, calc(100vw - 1.75rem));
    margin: 1rem auto;
}

.home-site-announce-modal__sheet {
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    background: rgba(10, 14, 22, 0.94);
    backdrop-filter: blur(var(--blur-modal));
    -webkit-backdrop-filter: blur(var(--blur-modal));
    box-shadow:
        0 4px 0 rgba(56, 189, 248, 0.12),
        0 28px 80px rgba(0, 0, 0, 0.55);
    overflow: hidden;
}

.home-site-announce-modal__head {
    padding: 1.25rem 1.35rem 0.5rem;
}

.home-site-announce-modal__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 14px;
    background: var(--accent-muted);
    color: var(--accent);
    font-size: 1.05rem;
}

.home-site-announce-modal__title {
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text);
}

.home-site-announce-modal__body {
    padding: 0.75rem 1.35rem 1.25rem;
    max-height: min(52vh, 22rem);
}

.home-site-announce-modal__prose {
    font-size: 0.9375rem;
    line-height: 1.65;
    color: rgba(232, 241, 248, 0.92);
    word-break: break-word;
}

.home-site-announce-modal__prose p:last-child {
    margin-bottom: 0;
}

.home-site-announce-modal__foot {
    padding: 1rem 1.35rem 1.25rem;
    background: rgba(0, 0, 0, 0.2);
    gap: 0.5rem;
}

.home-site-announce-modal__foot .btn-outline-light {
    border-color: rgba(148, 163, 184, 0.35);
    color: rgba(226, 232, 240, 0.9);
}

.home-site-announce-modal__foot .btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(148, 163, 184, 0.5);
    color: #fff;
}

.btn-close {
    filter: invert(1) brightness(0.85);
}

/* —— Table —— */
.table {
    color: var(--text);
}

.table thead th {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border: none;
    padding: 1rem;
}

.table tbody tr {
    background: rgba(255, 255, 255, 0.02);
}

.table tbody tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.035);
}

.table tbody tr:hover {
    background: var(--accent-muted);
}

.table td {
    border: none;
    padding: 1rem;
    vertical-align: middle;
}

/* —— Empty state (全站统一) —— */
.ui-empty {
    text-align: center;
    padding: 2.5rem 1.25rem;
    color: var(--text-muted);
    background: transparent;
}

.ui-empty__icon {
    font-size: 2.75rem;
    opacity: 0.22;
    margin-bottom: 0.75rem;
    color: var(--text-muted);
}

.ui-empty__title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.35rem;
}

.ui-empty__desc {
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--text-muted);
    margin: 0 auto;
    max-width: 32rem;
}

/* —— Footer —— */
.app-footer {
    flex-shrink: 0;
    background: rgba(5, 8, 12, 0.88);
    border-top: 1px solid var(--border);
}

.site-footer .footer-lead {
    max-width: 30rem;
    line-height: 1.72;
}

.site-footer .footer-note {
    max-width: 22rem;
    line-height: 1.65;
}

.footer-brand {
    font-weight: 700;
    font-size: 1.1rem;
}

.footer-heading {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    display: inline-block;
    padding: 0.2rem 0;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--accent);
}

.footer-lead,
.footer-note {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.65;
    max-width: 26rem;
}

.footer-bottom {
    border-top: 1px solid var(--border);
}

.footer-copy,
.footer-meta {
    font-size: 0.82rem;
    color: var(--text-muted);
}

/* —— Utilities —— */
.text-gradient {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.animate-pulse-glow {
    animation: pulse-glow 2.4s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 0 0 var(--accent-glow); }
    50% { box-shadow: 0 0 28px 6px rgba(45, 212, 191, 0.22); }
}

.skeleton {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.04) 25%, rgba(255, 255, 255, 0.09) 50%, rgba(255, 255, 255, 0.04) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.3s infinite;
    border-radius: 6px;
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.skeleton-text { height: 0.9rem; margin-bottom: 0.45rem; }
.skeleton-title { height: 1.25rem; margin-bottom: 0.65rem; }

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
}

::-webkit-scrollbar-thumb {
    background: var(--accent-glow);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-glow);
}

/* Dropdown / nav-pills compatibility */
.dropdown-menu {
    background: var(--surface-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.dropdown-item {
    color: var(--text-muted);
}

.dropdown-item:hover {
    background: var(--accent-muted);
    color: var(--text);
}

.nav-pills .nav-link {
    color: var(--text-muted);
    border-radius: var(--radius);
}

.nav-pills .nav-link.active {
    background: var(--gradient-accent);
    color: #042f2e !important;
}

.progress {
    background: rgba(255, 255, 255, 0.06);
    border-radius: var(--radius);
    height: 0.45rem;
}

.progress-bar {
    background: var(--gradient-accent);
}

.divider::before,
.divider::after {
    border-bottom-color: var(--border);
}

.input-group .form-control {
    border-radius: var(--radius) 0 0 var(--radius);
}

.input-group .btn {
    border-radius: 0 var(--radius) var(--radius) 0;
}

.main-container .text-muted {
    color: var(--text-muted) !important;
}

/* ===== User Console B-end UI refresh ===== */
body.user-console {
    background: #121212;
    color: #E0E0E0;
}

body.user-console .surface-panel .glass-card,
body.user-console .account-card {
    border-radius: 8px;
    background: #1E1E1E;
    border: 1px solid #383838;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

body.user-console .account-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

body.user-console .account-card {
    margin-bottom: 0;
    padding: 20px;
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

body.user-console .account-card:hover {
    border-color: rgba(64, 158, 255, 0.45);
    background: #1E1E1E;
    transform: translateY(-1px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

body.user-console .acc-meta {
    color: #C0C4CC;
    font-size: 13px;
    line-height: 1.5;
}

.account-range-badge {
    border-radius: 999px !important;
    border: 1px solid #383838 !important;
    background: #272727 !important;
    color: #C0C4CC !important;
}

.account-status-badge {
    border-radius: 999px !important;
    padding: 0.2rem 0.6rem !important;
    font-size: 12px;
    font-weight: 600;
}

.account-status-badge--on {
    background: rgba(103, 194, 58, 0.2) !important;
    color: #67C23A !important;
    border: 1px solid rgba(103, 194, 58, 0.35) !important;
}

.account-status-badge--off {
    background: rgba(148, 163, 184, 0.18) !important;
    color: #C0C4CC !important;
    border: 1px solid rgba(148, 163, 184, 0.3) !important;
}

/* Buttons */
body.user-console .btn-account-add,
body.user-console .ui-btn,
body.user-console #accountList .btn {
    height: 36px;
    min-height: 36px;
    border-radius: 4px !important;
    padding: 0 20px;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
}

body.user-console .btn-account-add,
body.user-console .ui-btn-primary {
    background: #409EFF !important;
    border: 1px solid transparent !important;
    color: #fff !important;
    box-shadow: 0 4px 12px rgba(64, 158, 255, 0.25);
}

body.user-console .btn-account-add:hover,
body.user-console .ui-btn-primary:hover {
    background: #337ECC !important;
    color: #fff !important;
    transform: translateY(-1px);
}

body.user-console .btn-account-add:active,
body.user-console .ui-btn-primary:active {
    background: #2D6FCC !important;
    transform: translateY(0);
}

body.user-console .ui-btn-secondary {
    background: transparent !important;
    border: 1px solid #409EFF !important;
    color: #409EFF !important;
}

body.user-console .ui-btn-secondary:hover {
    background: rgba(64, 158, 255, 0.12) !important;
    border-color: #409EFF !important;
    color: #66b1ff !important;
}

body.user-console .ui-btn-success {
    border: 1px solid rgba(103, 194, 58, 0.5) !important;
    color: #67C23A !important;
    background: transparent !important;
}

body.user-console .ui-btn-success:hover {
    background: rgba(103, 194, 58, 0.12) !important;
    color: #95d475 !important;
}

body.user-console .ui-btn-danger {
    border: 1px solid rgba(245, 108, 108, 0.55) !important;
    color: #F56C6C !important;
    background: transparent !important;
}

body.user-console .ui-btn-danger:hover {
    background: rgba(245, 108, 108, 0.12) !important;
    color: #ff9e9e !important;
}

/* Modal */
.modal-backdrop {
    display: block !important;
    background-color: #000 !important;
    opacity: 0.58 !important;
}

.modal.fade .modal-dialog {
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.ui-modal {
    background: #1E1E1E !important;
    border: 1px solid #383838 !important;
    border-radius: 8px !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2) !important;
    backdrop-filter: none !important;
    overflow: hidden;
}

.ui-modal__head,
.ui-modal__body,
.ui-modal__foot {
    padding-left: 24px !important;
    padding-right: 24px !important;
}

.ui-modal__head {
    padding-top: 24px !important;
    padding-bottom: 0 !important;
}

.ui-modal__body {
    padding-top: 16px !important;
    padding-bottom: 16px !important;
}

.ui-modal__foot {
    padding-top: 8px !important;
    padding-bottom: 24px !important;
    display: flex;
    justify-content: flex-end;
    gap: 24px !important;
}

.ui-modal__close {
    opacity: 1;
    margin: 0 !important;
    width: 30px;
    height: 30px;
    border-radius: 4px;
    background-color: transparent;
    border: 1px solid transparent;
}

.ui-modal__close:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: #383838;
}

/* Modal forms */
body.user-console .ui-modal .form-floating {
    margin-bottom: 16px !important;
}

body.user-console .ui-modal .form-control,
body.user-console .ui-modal .form-select {
    height: 44px;
    border-radius: 4px !important;
    background: #272727;
    border: 1px solid #383838;
    color: #E0E0E0;
    font-size: 14px;
    line-height: 1.5;
    box-shadow: none;
}

body.user-console .ui-modal .form-control:focus,
body.user-console .ui-modal .form-select:focus {
    border-color: #409EFF;
    box-shadow: 0 0 0 2px rgba(64, 158, 255, 0.2);
    background: #272727;
    color: #E0E0E0;
}

body.user-console .ui-modal .form-floating > label {
    color: #C0C4CC;
    font-size: 14px;
    line-height: 1.5;
}

body.user-console .ui-modal .form-check-input {
    width: 2.2rem;
    height: 1.2rem;
    border-color: #4b5563;
    background-color: #272727;
    cursor: pointer;
}

body.user-console .ui-modal .form-check-input:checked {
    background-color: #409EFF;
    border-color: #409EFF;
}

.ui-switch-card {
    border-radius: 8px;
    border: 1px solid #383838;
    background: #242424;
    padding: 12px 14px;
}

/* SweetAlert 与站内弹窗视觉统一 */
.swal2-popup {
    border-radius: 8px !important;
    background: #1E1E1E !important;
    color: #E0E0E0 !important;
    border: 1px solid #383838 !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2) !important;
}

.swal2-styled {
    border-radius: 4px !important;
    height: 36px !important;
    min-height: 36px !important;
    padding: 0 20px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
}

.swal2-confirm {
    background: #409EFF !important;
}

.swal2-cancel {
    background: transparent !important;
    color: #409EFF !important;
    border: 1px solid #409EFF !important;
}

/* Mobile adapt */
@media (max-width: 767.98px) {
    .ui-modal__head,
    .ui-modal__body,
    .ui-modal__foot {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }

    .ui-modal__head {
        padding-top: 16px !important;
    }

    .ui-modal__foot {
        padding-bottom: 16px !important;
        gap: 12px !important;
    }

    .ui-modal__foot .btn {
        flex: 1 1 auto;
    }

    body.user-console .account-card {
        padding: 16px;
    }
}

/* —— 三端自适应：手机 / 平板 / 桌面 —— */
.account-list {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table-responsive,
.glass-card .table-responsive {
    -webkit-overflow-scrolling: touch;
}

@media (max-width: 991.98px) {
    .auth-side {
        min-height: auto;
        margin-bottom: 1.5rem;
        padding: 1.75rem 1.35rem;
    }

    .auth-side-feature-list {
        gap: 0.55rem;
        margin-top: 1rem;
    }

    .auth-shell {
        min-height: auto;
    }

    .dash-title {
        font-size: clamp(1.35rem, 4vw, 1.65rem);
    }

    .feature-bento .feature-card,
    .feature-card {
        padding: 1.35rem 1.2rem;
    }

    .card-header {
        padding: 1rem 1.15rem;
    }

    .card-body {
        padding: 1.15rem;
    }

    .hero-section {
        padding-bottom: 1.5rem;
    }
}

@media (max-width: 767.98px) {
    .brand-text {
        font-size: 1.05rem;
        max-width: min(11rem, 46vw);
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .demo-panel .demo-badge {
        top: 0.65rem;
        right: 0.65rem;
        font-size: 0.7rem;
    }

    .stat-chip {
        padding: 0.55rem 0.35rem;
    }

    .stat-chip strong {
        font-size: 1.15rem;
    }

    .quick-metrics .mini-stat {
        font-size: 0.72rem;
        padding: 0.4rem 0.2rem;
    }

    .manual-step-notes {
        grid-template-columns: 1fr;
    }

    .manual-note-item {
        justify-content: flex-start;
        padding-left: 0.75rem;
        min-height: 2rem;
        font-size: 0.75rem;
    }

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

    .account-card {
        padding: 1rem 1rem;
    }

    .table thead th,
    .table td {
        padding: 0.65rem 0.75rem;
        font-size: 0.875rem;
    }

    .modal-dialog {
        margin: 0.65rem auto;
        max-width: calc(100% - 1.3rem);
    }

    .app-footer .container {
        padding-top: 2.5rem;
        padding-bottom: max(2rem, env(safe-area-inset-bottom, 0px));
    }
}

@media (max-width: 575.98px) {
    .main-container {
        padding-bottom: 2.5rem !important;
    }

    .hero-title {
        font-size: clamp(1.55rem, 7vw, 2rem);
        margin-top: 0.75rem;
    }

    .hero-section .btn-lg {
        width: 100%;
        justify-content: center;
        min-height: 48px;
    }

    .hero-section .d-flex.flex-wrap.gap-3 {
        flex-direction: column;
    }

    .auth-card {
        max-width: none;
    }

    .auth-side {
        padding: 1.35rem 1rem;
    }

    .auth-icon {
        width: 64px;
        height: 64px;
        font-size: 1.45rem;
    }

    .btn:not(.btn-sm):not(.navbar-toggler) {
        min-height: 44px;
    }

    .form-control,
    .form-select {
        font-size: 16px;
    }

    .user-avatar {
        width: 80px;
        height: 80px;
        font-size: 1.75rem;
    }

    .glass-card {
        border-radius: var(--radius-lg);
    }

    .card-header {
        font-size: 0.95rem;
    }

    .navbar-toggler {
        min-height: 44px;
        min-width: 44px;
    }
}
