/* ===== TempMail Pro 2.0 现代设计系统 (融入全色系、响应式与Master-Detail布局) ===== */

:root {
    --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    --font-mono: 'JetBrains Mono', SFMono-Regular, Menlo, Monaco, Consolas, monospace;

    /* 默认亮色基础明暗体系 */
    --bg-page: #f8fafc;
    --bg-card: #ffffff;
    --bg-card-subtle: #f1f5f9;
    --bg-hover: #f8fafc;
    --border: #e2e8f0;
    --border-subtle: #f1f5f9;
    --border-focus: var(--primary);

    --text-main: #0f172a;
    --text-muted: #64748b;
    --text-light: #94a3b8;

    /* 默认色系：Indigo 极客靛蓝 */
    --primary: #4f46e5;
    --primary-hover: #4338ca;
    --primary-soft: #eef2ff;
    --primary-glow: rgba(79, 70, 229, 0.16);
    --primary-gradient: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);

    --accent-green: #10b981;
    --accent-green-soft: #ecfdf5;
    --accent-red: #ef4444;
    --accent-red-soft: #fef2f2;

    /* 阴影体系 */
    --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.05);
    --shadow-sm: 0 2px 8px -2px rgba(15, 23, 42, 0.06), 0 1px 3px rgba(15, 23, 42, 0.03);
    --shadow-md: 0 8px 24px -6px rgba(15, 23, 42, 0.08), 0 4px 8px -2px rgba(15, 23, 42, 0.03);
    --shadow-lg: 0 20px 35px -10px rgba(15, 23, 42, 0.12), 0 8px 16px -4px rgba(15, 23, 42, 0.04);
    --shadow-glow: 0 0 35px -5px var(--primary-glow);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 22px;
    --radius-full: 9999px;
    --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* 1. Emerald 翡翠绿 (安全清新) */
[data-theme-color="emerald"] {
    --primary: #059669;
    --primary-hover: #047857;
    --primary-soft: #ecfdf5;
    --primary-glow: rgba(5, 150, 105, 0.2);
    --primary-gradient: linear-gradient(135deg, #059669 0%, #10b981 100%);
}
/* 2. Ocean 极光海蓝 (明亮科技) */
[data-theme-color="ocean"] {
    --primary: #0284c7;
    --primary-hover: #0369a1;
    --primary-soft: #f0f9ff;
    --primary-glow: rgba(2, 132, 199, 0.2);
    --primary-gradient: linear-gradient(135deg, #0284c7 0%, #06b6d4 100%);
}
/* 3. Sunset 暖阳落日 (温暖活力) */
[data-theme-color="sunset"] {
    --primary: #ea580c;
    --primary-hover: #c2410c;
    --primary-soft: #fff7ed;
    --primary-glow: rgba(234, 88, 12, 0.2);
    --primary-gradient: linear-gradient(135deg, #ea580c 0%, #f97316 100%);
}
/* 4. Violet 赛博霓紫 (前卫极客) */
[data-theme-color="violet"] {
    --primary: #7c3aed;
    --primary-hover: #6d28d9;
    --primary-soft: #f5f3ff;
    --primary-glow: rgba(124, 58, 237, 0.2);
    --primary-gradient: linear-gradient(135deg, #7c3aed 0%, #d946ef 100%);
}
/* 5. Minimalist 极简灰阶黑白 (Linear / Apple 极致风) */
[data-theme-color="mono"] {
    --primary: #0f172a;
    --primary-hover: #1e293b;
    --primary-soft: #f1f5f9;
    --primary-glow: rgba(15, 23, 42, 0.15);
    --primary-gradient: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
}

/* 暗黑模式 */
[data-theme="dark"] {
    --bg-page: #0b0f19;
    --bg-card: #111827;
    --bg-card-subtle: #1e293b;
    --bg-hover: #1e293b;
    --border: #1f293d;
    --border-subtle: #151e2e;

    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --text-light: #64748b;

    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 12px 28px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 24px 48px rgba(0, 0, 0, 0.6);
}
[data-theme="dark"][data-theme-color="mono"] {
    --primary: #f8fafc;
    --primary-hover: #e2e8f0;
    --primary-soft: rgba(248, 250, 252, 0.12);
    --primary-glow: rgba(248, 250, 252, 0.2);
    --primary-gradient: linear-gradient(135deg, #f8fafc 0%, #cbd5e1 100%);
}

/* 全局基底 */
body.page-home {
    font-family: var(--font-sans);
    background-color: var(--bg-page);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    position: relative;
    transition: background-color var(--transition-fast), color var(--transition-fast);
    -webkit-font-smoothing: antialiased;
}

.ambient-glow {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 1000px;
    height: 480px;
    background: radial-gradient(circle at 50% 0%, var(--primary-glow), transparent 70%);
    pointer-events: none;
    z-index: 0;
    transition: background var(--transition-fast);
}

/* ===== 顶部导航 Navbar ===== */
.page-home .navbar {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    height: 64px;
    padding: 0;
}
[data-theme="dark"] .page-home .navbar {
    background: rgba(17, 24, 39, 0.88);
}

.page-home .nav-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 20px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.page-home .nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: inherit;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.page-home .brand-icon {
    width: 36px;
    height: 36px;
    padding: 8px;
    border-radius: var(--radius-md);
    background: var(--primary-gradient);
    color: white;
    box-shadow: 0 4px 12px -2px var(--primary-glow);
    transition: background var(--transition-fast);
}

.page-home .badge-pro {
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: var(--radius-full);
    background: var(--primary);
    color: white;
    text-transform: uppercase;
}

.service-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    background: var(--accent-green-soft);
    color: #059669;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid rgba(16, 185, 129, 0.2);
    margin-left: 12px;
}

.status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.15); }
}

.page-home .nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.page-home .nav-link,
.page-home .nav-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 11px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    text-decoration: none;
    border: 1px solid transparent;
    transition: all var(--transition-fast);
    cursor: pointer;
    background: transparent;
}
.page-home .nav-link:hover,
.page-home .nav-action-btn:hover {
    color: var(--text-main);
    background: var(--bg-hover);
    border-color: var(--border);
}

/* 色系选择器 (Color Swatches) */
.theme-swatch-picker {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 3px 6px;
    background: var(--bg-card-subtle);
    border-radius: var(--radius-full);
    border: 1px solid var(--border);
}
.color-dot-btn {
    width: 17px;
    height: 17px;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform var(--transition-bounce), border-color var(--transition-fast);
}
.color-dot-btn:hover {
    transform: scale(1.2);
}
.color-dot-btn.active {
    border-color: #ffffff;
    box-shadow: 0 0 0 2px var(--text-main);
    transform: scale(1.15);
}

/* ===== 主容器 ===== */
.page-home .container {
    position: relative;
    z-index: 1;
    flex: 1;
    max-width: 1440px;
    width: 100%;
    margin: 0 auto;
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

/* ===== 核心控制台 (Spotlight Card) ===== */
.spotlight-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md), var(--shadow-glow);
    padding: 22px 26px;
    position: relative;
}

.mailbox-control-bar {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}

.mailbox-control-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.control-top-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.mailbox-control-actions {
    flex-shrink: 0;
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 8px;
}

.active-pills-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap; /* 自动向下多行折叠排列，绝不遮盖，绝不截断 */
    width: 100%;
}

.mailbox-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 12px;
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 600;
    font-family: var(--font-mono);
    background: var(--bg-card-subtle);
    color: var(--text-muted);
    border: 1px solid var(--border);
    cursor: pointer;
    transition: all var(--transition-fast);
    max-width: 240px;
}
.mailbox-pill:hover {
    border-color: var(--border-focus);
    color: var(--text-main);
}
.mailbox-pill.active {
    background: var(--primary-soft);
    color: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 0 0 1px var(--primary);
}
.tab-close-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: var(--text-light);
    cursor: pointer;
    margin-left: 2px;
    font-size: 13px;
    line-height: 1;
    transition: all var(--transition-fast);
}
.tab-close-btn:hover {
    background: rgba(239, 68, 68, 0.15);
    color: var(--accent-red);
}
.pill-address-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pill-badge {
    font-size: 11px;
    padding: 1px 6px;
    border-radius: var(--radius-full);
    background: rgba(0, 0, 0, 0.08);
    color: var(--text-main);
    font-weight: 700;
}
.mailbox-pill.active .pill-badge {
    background: var(--primary);
    color: white;
}

.btn-mailbox-manage {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: var(--radius-full);
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
}
.btn-mailbox-manage:hover {
    border-color: var(--text-light);
    color: var(--text-main);
}

/* 一键清空所有邮箱按钮 */
.btn-clear-all-trigger {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    border-radius: var(--radius-full);
    background: var(--bg-card);
    border: 1px solid rgba(239, 68, 68, 0.25);
    color: var(--accent-red);
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
}
.btn-clear-all-trigger:hover {
    background: var(--accent-red-soft);
    border-color: #fca5a5;
    transform: translateY(-1px);
}

.btn-clear-all-confirm {
    padding: 9px 18px;
    background: #ef4444;
    color: white;
    border-radius: var(--radius-md);
    border: none;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition-fast);
}
.btn-clear-all-confirm:hover {
    background: #dc2626;
    transform: translateY(-1px);
}

/* 弹层内切换与删除按钮优雅样式 */
.btn-switch-mailbox {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 700;
    color: var(--primary);
    background: var(--primary-soft);
    border: 1px solid transparent;
    cursor: pointer;
    transition: all var(--transition-fast);
}
.btn-switch-mailbox:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-1px);
}

.btn-delete-row-icon {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
}
.btn-delete-row-icon:hover {
    background: var(--accent-red-soft);
    color: var(--accent-red);
    border-color: #fca5a5;
    transform: translateY(-1px);
}

/* 底部清空所有邮箱药丸按钮 */
.btn-danger-ghost {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: var(--radius-full);
    font-size: 12.5px;
    font-weight: 700;
    color: var(--accent-red);
    background: var(--accent-red-soft);
    border: 1px solid rgba(239, 68, 68, 0.25);
    cursor: pointer;
    transition: all var(--transition-fast);
}
.btn-danger-ghost:hover {
    background: var(--accent-red);
    color: white;
    border-color: var(--accent-red);
    transform: translateY(-1px);
}

.btn-create-mail-hero {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 700;
    background: var(--primary-gradient);
    color: white;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 12px -2px var(--primary-glow);
    transition: all var(--transition-fast);
}
.btn-create-mail-hero:hover {
    transform: translateY(-1px);
}
.btn-create-mail-hero:active {
    transform: scale(0.97);
}

/* 主地址展示条 (Spotlight Address Bar) */
.spotlight-main {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--bg-page);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 10px 14px 10px 16px;
    transition: all var(--transition-fast);
}
.spotlight-main:focus-within {
    border-color: var(--border-focus);
    box-shadow: 0 0 0 4px var(--primary-soft);
}

.spotlight-email-box {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.mail-icon-halo {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-md);
    background: var(--primary-soft);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all var(--transition-fast);
}

.email-display-text {
    font-family: var(--font-mono);
    font-size: 21px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-main);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    user-select: all;
}

.address-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.btn-copy-highlight {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 20px;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 700;
    background: var(--primary-gradient);
    color: white;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 14px -3px var(--primary-glow);
    transition: all var(--transition-bounce);
}
.btn-copy-highlight:hover {
    transform: translateY(-1px);
}
.btn-copy-highlight:active {
    transform: scale(0.97);
}
.btn-copy-highlight.copied {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
}

.btn-action-tool {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
}
.btn-action-tool:hover {
    background: var(--bg-card-subtle);
    color: var(--text-main);
    border-color: var(--text-light);
}
.btn-action-tool.danger:hover {
    background: var(--accent-red-soft);
    color: var(--accent-red);
    border-color: #fca5a5;
}

/* 状态与控制底栏 (Subbar) */
.spotlight-subbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--border-subtle);
    font-size: 13px;
    color: var(--text-muted);
    flex-wrap: wrap;
    gap: 12px;
}

.status-indicators {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.indicator-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.radar-pulse {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    animation: radar 1.8s infinite cubic-bezier(0.66, 0, 0, 1);
}
@keyframes radar {
    to { box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
}

.expires-chip {
    padding: 3px 8px;
    background: var(--bg-card-subtle);
    border-radius: var(--radius-sm);
    font-family: var(--font-mono);
    font-weight: 600;
    color: var(--text-main);
    border: 1px solid var(--border);
}

.generator-quick-pills {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.config-pill-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: var(--radius-md);
    background: var(--bg-card-subtle);
    border: 1px solid var(--border);
    color: var(--text-main);
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
}
.config-pill-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-soft);
}

/* ===== 核心左右分栏收件箱 (Master-Detail Split View - 宽阔舒适高对比布局) ===== */
.inbox-split-container {
    display: grid;
    grid-template-columns: 380px 1fr;
    min-height: 740px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    position: relative;
}

.mail-list-panel {
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    background: var(--bg-card);
    min-height: 740px;
}

.list-header {
    padding: 14px 18px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.list-title-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.list-title {
    font-size: 15.5px;
    font-weight: 700;
    color: var(--text-main);
}

.list-badge {
    font-size: 12px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: var(--radius-full);
    background: var(--primary-soft);
    color: var(--primary);
}

.icon-btn-round {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
}
.icon-btn-round:hover {
    color: var(--primary);
    border-color: var(--primary);
    background: var(--primary-soft);
}
.icon-btn-round.spinning svg {
    animation: spin 0.8s linear infinite;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}

.list-filter-bar {
    padding: 10px 18px;
    background: var(--bg-page);
    border-bottom: 1px solid var(--border);
    display: flex;
    gap: 8px;
}

.search-mail-input {
    width: 100%;
    height: 34px;
    padding: 0 10px 0 32px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    font-size: 13px;
    outline: none;
    color: var(--text-main);
}
.search-wrapper {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
}
.search-icon-pos {
    position: absolute;
    left: 10px;
    color: var(--text-light);
    pointer-events: none;
}

.mail-items-scroll {
    flex: 1;
    overflow-y: auto;
}

.mail-item-card {
    padding: 14px 18px;
    border-bottom: 1px solid var(--border-subtle);
    cursor: pointer;
    transition: all var(--transition-fast);
    display: flex;
    flex-direction: column;
    gap: 7px;
}
.mail-item-card:hover {
    background: var(--bg-hover);
}
.mail-item-card.active {
    background: var(--primary-soft);
    border-left: 3px solid var(--primary);
}

.mail-item-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.sender-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-main);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sender-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--primary-gradient);
    color: white;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.mail-time {
    font-size: 12px;
    color: var(--text-light);
    white-space: nowrap;
}

.mail-item-subject {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-main);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mail-item-preview {
    font-size: 12.5px;
    color: var(--text-muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.45;
}

.otp-pill-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    padding: 3px 9px;
    border-radius: var(--radius-sm);
    color: #065f46;
    font-size: 12px;
    font-weight: 700;
    font-family: var(--font-mono);
    width: fit-content;
    margin-top: 2px;
    transition: all var(--transition-fast);
}
.otp-pill-tag:hover {
    background: #d1fae5;
}

.list-empty-state {
    padding: 50px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}
.empty-icon-wrap {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--bg-card-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    color: var(--text-light);
}

.mobile-back-bar {
    display: none;
    padding: 12px 18px;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--primary);
    cursor: pointer;
}

/* 右侧阅读器 (Mail Reader Detail - 舒展大开间阅读布局) */
.mail-detail-panel {
    display: flex;
    flex-direction: column;
    background: var(--bg-card);
    min-height: 740px;
}

#mailDetailContentWrap {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 740px;
}

.reader-header {
    padding: 18px 24px 14px;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
    background: var(--bg-card);
}

.reader-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 10px;
}

.reader-subject {
    font-size: 18px;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1.35;
}

.reader-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12.5px;
    color: var(--text-muted);
    flex-wrap: wrap;
    gap: 8px;
}

.sender-info-box {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sender-detail-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--primary-gradient);
    color: white;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.otp-hero-banner {
    margin: 12px 22px 0;
    background: linear-gradient(135deg, var(--primary-soft), rgba(245, 243, 255, 0.95));
    border: 1.5px solid var(--primary);
    border-radius: var(--radius-lg);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 4px 14px var(--primary-glow);
    flex-wrap: wrap;
    gap: 10px;
    flex-shrink: 0;
}

.otp-banner-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.otp-icon-seal {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-md);
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

.otp-tag-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--primary);
}

.otp-huge-number {
    font-family: var(--font-mono);
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: var(--text-main);
}

.btn-copy-otp-huge {
    padding: 8px 15px;
    background: var(--primary);
    color: white;
    border-radius: var(--radius-md);
    border: none;
    font-weight: 700;
    font-size: 12.5px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all var(--transition-fast);
}
.btn-copy-otp-huge:hover {
    transform: translateY(-1px);
}

.reader-content-body {
    flex: 1;
    min-height: 0;
    padding: 14px 22px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.reader-controls-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-subtle);
    flex-wrap: wrap;
    gap: 8px;
    flex-shrink: 0;
}

.view-mode-tabs {
    display: flex;
    background: var(--bg-card-subtle);
    padding: 3px;
    border-radius: var(--radius-sm);
    gap: 2px;
}

.mode-tab-btn {
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 6px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    transition: all var(--transition-fast);
}
.mode-tab-btn.active {
    background: var(--bg-card);
    color: var(--text-main);
    box-shadow: var(--shadow-xs);
}

.email-rendered-frame {
    width: 100%;
    flex: 1;
    min-height: 580px;
    border-radius: var(--radius-md);
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border);
    overflow: hidden;
}

.email-rendered-frame iframe {
    width: 100%;
    min-height: 580px;
    border: none;
    background: #ffffff;
    display: block;
}

.reader-empty-view {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    color: var(--text-muted);
    text-align: center;
}

/* ===== 模态遮罩与弹层 ===== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.18s ease-out;
}
.modal-overlay.show {
    display: flex;
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.domain-modal-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 960px;
    height: 82vh;
    max-height: 720px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: scaleUp 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes scaleUp {
    from { transform: scale(0.96); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.modal-header-bar {
    padding: 16px 22px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}
.modal-title {
    font-size: 17px;
    font-weight: 800;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 10px;
}
.modal-close-btn {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    border: none;
    background: var(--bg-card-subtle);
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}
.modal-close-btn:hover {
    background: rgba(239, 68, 68, 0.15);
    color: var(--accent-red);
}

.domain-modal-body {
    flex: 1;
    display: grid;
    grid-template-columns: 260px 1fr;
    min-height: 0;
    height: calc(100% - 65px);
    overflow: hidden;
}

.domain-modal-body > * {
    min-height: 0;
    height: 100%;
}

.domain-groups-sidebar {
    background: var(--bg-card-subtle);
    border-right: 1px solid var(--border);
    padding: 12px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 6px;
    height: 100%;
}

.group-nav-item {
    padding: 10px 12px;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-muted);
    border: 1px solid transparent;
}
.group-nav-item:hover {
    background: var(--bg-hover);
    color: var(--text-main);
}
.group-nav-item.active {
    background: var(--bg-card);
    color: var(--primary);
    border-color: var(--border);
    box-shadow: var(--shadow-xs);
}
.group-count-badge {
    font-size: 11px;
    padding: 2px 7px;
    border-radius: var(--radius-full);
    background: rgba(0, 0, 0, 0.05);
    font-family: var(--font-mono);
}
.group-nav-item.active .group-count-badge {
    background: var(--primary-soft);
    color: var(--primary);
}

.domain-group-content {
    padding: 18px 22px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    overflow-y: auto;
    height: 100%;
    min-height: 0;
    scroll-behavior: smooth;
}

.group-sticky-header {
    position: sticky;
    top: -18px;
    z-index: 20;
    background: var(--bg-card);
    padding: 18px 0 10px 0;
    margin-top: -18px;
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.domain-load-more-status {
    padding: 14px;
    text-align: center;
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.group-select-banner {
    padding: 14px 18px;
    background: var(--primary-soft);
    border: 1.5px dashed var(--primary);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}
.banner-info-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 2px;
}
.banner-info-desc {
    font-size: 12px;
    color: var(--text-muted);
}
.btn-use-whole-group {
    padding: 8px 14px;
    background: var(--primary);
    color: white;
    border-radius: var(--radius-md);
    border: none;
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: all var(--transition-fast);
}
.btn-use-whole-group:hover {
    transform: translateY(-1px);
}

.domain-search-box {
    position: relative;
    display: flex;
    align-items: center;
}
.domain-search-input {
    width: 100%;
    height: 38px;
    padding: 0 12px 0 36px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--bg-card);
    font-size: 13.5px;
    outline: none;
    color: var(--text-main);
}
.domain-search-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-soft);
}

.domain-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 8px;
}

.domain-card-item {
    padding: 11px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--bg-card);
    cursor: pointer;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.domain-card-item:hover {
    border-color: var(--primary);
    background: var(--primary-soft);
    transform: translateY(-1px);
}
.domain-card-name {
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-main);
}
.domain-pill-tag {
    font-size: 10.5px;
    padding: 2px 6px;
    border-radius: 4px;
    background: var(--bg-card-subtle);
    color: var(--text-muted);
    font-weight: 600;
}

/* 规则弹层 (Rules Modal - 精简紧凑双列与分类) */
.rules-modal-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 880px;
    height: 82vh;
    max-height: 700px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: scaleUp 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.rules-modal-header {
    padding: 14px 20px 10px;
    border-bottom: 1px solid var(--border);
    background: var(--bg-card);
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex-shrink: 0;
}

.rules-category-tabs {
    display: flex;
    align-items: center;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 2px;
}

.rules-cat-tab {
    padding: 5px 11px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    background: var(--bg-card-subtle);
    border: 1px solid var(--border);
    cursor: pointer;
    white-space: nowrap;
    transition: all var(--transition-fast);
}
.rules-cat-tab:hover {
    color: var(--text-main);
    border-color: var(--text-light);
}
.rules-cat-tab.active {
    background: var(--primary-soft);
    color: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 0 0 1px var(--primary);
}

.rules-modal-body {
    padding: 16px 20px;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.rules-compact-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.rule-compact-card {
    padding: 9px 12px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--bg-card);
    cursor: pointer;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-height: 44px;
}
.rule-compact-card:hover {
    border-color: var(--primary);
    background: var(--bg-hover);
    transform: translateY(-1px);
}
.rule-compact-card.selected {
    border-color: var(--primary);
    background: var(--primary-soft);
    box-shadow: 0 0 0 1px var(--primary);
}

.rule-compact-left {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.rule-compact-name {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-main);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rule-compact-code {
    font-size: 11px;
    font-family: var(--font-mono);
    color: var(--text-light);
}

.rule-compact-badge {
    font-family: var(--font-mono);
    font-size: 11.5px;
    padding: 3px 8px;
    border-radius: var(--radius-sm);
    background: var(--bg-card-subtle);
    border: 1px solid var(--border);
    color: var(--primary);
    font-weight: 700;
    white-space: nowrap;
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-shrink: 0;
}

/* 自定义前缀独立输入卡片（彻底解决重叠与挤压兼容问题） */
.custom-rule-card {
    background: var(--bg-card);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 14px 16px;
    margin-bottom: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    box-shadow: var(--shadow-xs);
    transition: all var(--transition-fast);
}
.custom-rule-card:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-soft);
}

.custom-rule-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.custom-rule-title {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 6px;
}
.custom-rule-hint {
    font-size: 12px;
    color: var(--text-light);
}

.custom-input-box-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
}
.custom-prefix-input {
    flex: 1;
    height: 40px;
    padding: 0 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--bg-page);
    font-family: var(--font-mono);
    font-size: 13.5px;
    outline: none;
    color: var(--text-main);
    transition: all var(--transition-fast);
}
.custom-prefix-input:focus {
    border-color: var(--primary);
    background: var(--bg-card);
}

.btn-apply-custom-prefix {
    height: 40px;
    padding: 0 18px;
    border-radius: var(--radius-md);
    background: var(--primary);
    color: white;
    font-weight: 700;
    font-size: 13px;
    border: none;
    cursor: pointer;
    white-space: nowrap;
    transition: all var(--transition-fast);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.btn-apply-custom-prefix:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
}

/* 邮箱管理清单弹层 (Mailbox Manager Popover) */
.mailbox-manager-modal {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 540px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: scaleUp 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.mailbox-item-row {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    transition: background var(--transition-fast);
}
.mailbox-item-row:hover {
    background: var(--bg-hover);
}
.mailbox-item-row.current-active {
    background: var(--primary-soft);
}
.row-addr-text {
    font-family: var(--font-mono);
    font-size: 13.5px;
    font-weight: 700;
    color: var(--text-main);
}
.row-meta-text {
    font-size: 11.5px;
    color: var(--text-muted);
    margin-top: 2px;
}

/* API Monitor 控制台 Dock */
.api-monitor-dock {
    margin-top: 10px;
    background: #0f172a;
    border-radius: var(--radius-lg);
    border: 1px solid #1e293b;
    color: #f8fafc;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.monitor-dock-header {
    padding: 12px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #111e38;
    cursor: pointer;
    user-select: none;
}

.dock-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 600;
}

.dock-tag {
    font-size: 10.5px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 4px;
    background: #2563eb;
    color: white;
    font-family: var(--font-mono);
}

.dock-body {
    padding: 14px 18px;
    max-height: 240px;
    overflow-y: auto;
    font-family: var(--font-mono);
    font-size: 12.5px;
    display: none;
}
.dock-body.show {
    display: block;
}

.terminal-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px 0;
    border-bottom: 1px solid #1e293b;
}
.terminal-method {
    font-weight: 700;
    color: #38bdf8;
    font-size: 11px;
}
.terminal-url {
    color: #94a3b8;
    flex: 1;
}
.terminal-status-ok {
    color: #4ade80;
}
.terminal-ms {
    color: #64748b;
    font-size: 11px;
}

/* 页脚 */
.site-footer {
    margin-top: 30px;
    padding: 20px 0 10px;
    border-top: 1px solid var(--border);
    text-align: center;
    font-size: 12.5px;
    color: var(--text-muted);
}
.footer-links {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin-bottom: 6px;
}
.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color var(--transition-fast);
}
.footer-links a:hover {
    color: var(--primary);
}

/* Toast */
.toast-notification {
    position: fixed;
    bottom: 24px;
    right: 24px;
    padding: 12px 18px;
    border-radius: var(--radius-md);
    background: #0f172a;
    color: white;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: var(--shadow-lg);
    z-index: 2000;
    transform: translateY(100px);
    opacity: 0;
    transition: all var(--transition-bounce);
}
.toast-notification.show {
    transform: translateY(0);
    opacity: 1;
}

/* ============================================================== */
/* ===== 移动端终极深度优化兼容规范 (Mobile First Experience) ===== */
/* ============================================================== */
@media (max-width: 768px) {
    .page-home .navbar {
        height: 56px;
    }
    .page-home .nav-container {
        padding: 0 14px;
    }
    .page-home .brand-name span {
        display: none;
    }
    .service-status-pill {
        display: none;
    }
    .page-home .nav-link span {
        display: none;
    }

    .page-home .container {
        padding: 14px;
        gap: 14px;
    }

    .spotlight-card {
        padding: 16px 14px;
        border-radius: var(--radius-lg);
    }

    .spotlight-main {
        flex-direction: column;
        align-items: stretch;
        padding: 12px;
        gap: 12px;
    }
    .email-display-text {
        font-size: 16.5px;
    }
    .address-actions {
        width: 100%;
        justify-content: space-between;
    }
    .btn-copy-highlight {
        flex: 1;
        justify-content: center;
    }

    .mailbox-control-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
    .active-pills-row {
        width: 100%;
    }
    .mailbox-pill {
        max-width: 100%;
        flex: 1;
    }

    .spotlight-subbar {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    .generator-quick-pills {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }
    .config-pill-btn {
        justify-content: center;
        padding: 8px 6px;
        font-size: 11.5px;
    }

    /* 移动端收件箱双栏切单屏 */
    .inbox-split-container {
        grid-template-columns: 1fr;
        border-radius: var(--radius-lg);
        min-height: 480px;
    }

    .mail-list-panel.mobile-hidden {
        display: none;
    }
    .mail-detail-panel {
        display: none;
        min-height: 480px;
    }
    .mail-detail-panel.mobile-show {
        display: flex;
    }
    .mobile-back-bar {
        display: flex;
    }

    .reader-header {
        padding: 14px 16px;
    }
    .reader-subject {
        font-size: 16.5px;
    }
    .otp-hero-banner {
        margin: 12px 14px 0;
        padding: 12px 14px;
    }
    .otp-huge-number {
        font-size: 20px;
    }
    .btn-copy-otp-huge {
        width: 100%;
        justify-content: center;
    }
    .reader-content-body {
        padding: 16px 14px;
    }

    /* 模态弹层在移动端转为底部抽屉式 (Bottom Sheet) */
    .modal-overlay {
        padding: 0;
        align-items: flex-end;
    }
    .domain-modal-card,
    .rules-modal-card,
    .mailbox-manager-modal {
        border-radius: 20px 20px 0 0;
        max-height: 85vh;
        height: 85vh;
        animation: slideUpMobile 0.24s cubic-bezier(0.16, 1, 0.3, 1);
    }
    @keyframes slideUpMobile {
        from { transform: translateY(100%); }
        to { transform: translateY(0); }
    }

    .domain-modal-body {
        grid-template-columns: 1fr;
    }
    .domain-groups-sidebar {
        flex-direction: row;
        overflow-x: auto;
        border-right: none;
        border-bottom: 1px solid var(--border);
        padding: 8px 12px;
        gap: 6px;
    }
    .group-nav-item {
        white-space: nowrap;
        padding: 6px 10px;
        font-size: 12px;
    }
    .group-count-badge {
        display: none;
    }
    .domain-group-content {
        padding: 14px;
    }
    .group-select-banner {
        flex-direction: column;
        align-items: stretch;
    }
    .btn-use-whole-group {
        width: 100%;
    }
    .domain-cards-grid {
        grid-template-columns: 1fr;
    }
    .toast-notification {
        left: 14px;
        right: 14px;
        bottom: 20px;
        justify-content: center;
    }
}

/* ===== 验证码与链接面板（覆盖 mail-verification.js 默认样式，仅首页生效） ===== */
.page-home .mv-panel {
    position: relative;
    margin: 0 0 4px;
    padding: 16px 18px 12px 22px;
    border: 1px solid color-mix(in srgb, var(--primary) 28%, transparent);
    border-radius: var(--radius-lg);
    background:
        radial-gradient(420px 140px at 100% 0%, color-mix(in srgb, var(--primary) 14%, transparent), transparent 70%),
        linear-gradient(135deg, var(--primary-soft), var(--bg-card) 75%);
    box-shadow: 0 6px 20px -10px var(--primary-glow);
    color: var(--text-main);
    font-family: var(--font-sans);
    overflow: hidden;
}

/* 左侧主题色强调条，与下方白色正文卡片明显区分 */
.page-home .mv-panel::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--primary-gradient);
}

.page-home .mv-panel h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-size: 14px;
    font-weight: 800;
    color: var(--text-main);
}

.page-home .mv-panel h3::before {
    content: '';
    width: 26px;
    height: 26px;
    flex-shrink: 0;
    border-radius: 8px;
    background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='11' width='18' height='11' rx='2'/%3E%3Cpath d='M7 11V7a5 5 0 0 1 10 0v4'/%3E%3C/svg%3E") center / 14px no-repeat,
        var(--primary-gradient);
    box-shadow: 0 4px 10px -3px var(--primary-glow);
}

/* 第二个标题（链接候选）间距 */
.page-home .mv-panel h3 + .mv-row,
.page-home .mv-panel .mv-row + h3 {
    margin-top: 10px;
}

.page-home .mv-panel .mv-note {
    margin: 4px 0 10px 34px;
    font-size: 11.5px;
    color: var(--text-light);
}

.page-home .mv-row {
    gap: 12px;
    padding: 10px 0;
    border-top: 1px dashed color-mix(in srgb, var(--primary) 22%, var(--border));
}

/* 验证码行：独立高亮卡片 */
.page-home .mv-row:has(.mv-code) {
    margin: 6px 0 8px;
    padding: 12px 14px;
    border: 1px solid color-mix(in srgb, var(--primary) 30%, var(--border));
    border-radius: var(--radius-md);
    background: var(--bg-card);
    box-shadow: var(--shadow-xs);
}

.page-home .mv-code {
    font: 800 28px/1.2 var(--font-mono);
    letter-spacing: 0.22em;
    color: var(--primary);
}

.page-home .mv-url {
    font: 12px/1.6 var(--font-mono);
    color: var(--text-main);
}

.page-home .mv-status {
    display: inline-block;
    margin-top: 4px;
    font-size: 11.5px;
    color: var(--text-muted);
}

.page-home .mv-copy {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 72px;
    height: 34px;
    padding: 0 16px;
    border: none;
    border-radius: var(--radius-full);
    background: var(--primary-gradient);
    color: #fff;
    font-size: 12.5px;
    font-weight: 700;
    box-shadow: 0 4px 12px -4px var(--primary-glow);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}
.page-home .mv-copy:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px -4px var(--primary-glow);
}

/* 链接类复制按钮用次级样式，避免满屏主色 */
.page-home .mv-row:not(:has(.mv-code)) .mv-copy,
.page-home .mv-panel details > .mv-copy {
    background: var(--bg-card);
    color: var(--primary);
    border: 1px solid color-mix(in srgb, var(--primary) 35%, var(--border));
    box-shadow: none;
}

.page-home .mv-panel details {
    margin-top: 6px;
    border-top: 1px dashed color-mix(in srgb, var(--primary) 22%, var(--border));
}
.page-home .mv-panel summary {
    padding: 10px 0 6px;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--primary);
}
.page-home .mv-panel details > .mv-copy {
    height: 30px;
    margin-bottom: 6px;
}

@media (max-width: 768px) {
    .page-home .mv-panel { padding: 14px 14px 10px 18px; }
    .page-home .mv-code { font-size: 24px; letter-spacing: 0.16em; }
    .page-home .mv-panel .mv-note { margin-left: 0; }
}
