/* ==========================================================================
   专属私有媒体工作站 - 高质感暗色科技毛玻璃视觉系统
   ========================================================================== */

:root {
    --bg-main: #090d16;
    --bg-card: rgba(18, 24, 38, 0.85);
    --bg-card-hover: rgba(26, 35, 54, 0.95);
    --bg-input: rgba(13, 17, 28, 0.9);
    
    --border-subtle: rgba(255, 255, 255, 0.09);
    --border-focus: rgba(139, 92, 246, 0.6);
    --border-glow: rgba(99, 102, 241, 0.3);

    --primary-gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #d946ef 100%);
    --theme-accent: #8b5cf6;
    --glow-color-1: #6366f1;
    --glow-color-2: #d946ef;
    --glow-color-3: #06b6d4;

    --accent-cyan: #06b6d4;
    --accent-emerald: #10b981;
    --accent-rose: #f43f5e;
    --accent-amber: #f59e0b;

    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;

    --font-heading: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
    --font-body: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;

    --shadow-card: 0 20px 50px rgba(0, 0, 0, 0.55), 0 0 1px rgba(255, 255, 255, 0.12);
    --shadow-glow: 0 0 35px rgba(99, 102, 241, 0.25);
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 4套专属科技色彩主题 */
body[data-theme="purple"], :root {
    --primary-gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #d946ef 100%);
    --border-focus: rgba(139, 92, 246, 0.6);
    --border-glow: rgba(99, 102, 241, 0.35);
    --theme-accent: #8b5cf6;
    --glow-color-1: #6366f1;
    --glow-color-2: #d946ef;
    --glow-color-3: #06b6d4;
}

body[data-theme="gold"] {
    --primary-gradient: linear-gradient(135deg, #d97706 0%, #f59e0b 50%, #fbbf24 100%);
    --border-focus: rgba(245, 158, 11, 0.7);
    --border-glow: rgba(217, 119, 6, 0.45);
    --theme-accent: #f59e0b;
    --glow-color-1: #d97706;
    --glow-color-2: #b45309;
    --glow-color-3: #f59e0b;
}

body[data-theme="blue"] {
    --primary-gradient: linear-gradient(135deg, #0284c7 0%, #06b6d4 50%, #38bdf8 100%);
    --border-focus: rgba(6, 182, 212, 0.7);
    --border-glow: rgba(2, 132, 199, 0.45);
    --theme-accent: #06b6d4;
    --glow-color-1: #0284c7;
    --glow-color-2: #0369a1;
    --glow-color-3: #38bdf8;
}

body[data-theme="green"] {
    --primary-gradient: linear-gradient(135deg, #059669 0%, #10b981 50%, #34d399 100%);
    --border-focus: rgba(16, 185, 129, 0.7);
    --border-glow: rgba(5, 150, 105, 0.45);
    --theme-accent: #10b981;
    --glow-color-1: #059669;
    --glow-color-2: #047857;
    --glow-color-3: #10b981;
}

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

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
    transition: background-color var(--transition-normal);
}

/* ==========================================================================
   环境流光动画与背景效果
   ========================================================================== */

.ambient-glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    pointer-events: none;
    z-index: 0;
    opacity: 0.45;
    transition: background 0.8s ease;
}

.glow-1 {
    width: 550px;
    height: 550px;
    background: radial-gradient(circle, var(--glow-color-1) 0%, transparent 70%);
    top: -150px;
    left: -100px;
    animation: floatGlow1 18s ease-in-out infinite alternate;
}

.glow-2 {
    width: 650px;
    height: 650px;
    background: radial-gradient(circle, var(--glow-color-2) 0%, transparent 70%);
    bottom: -150px;
    right: -100px;
    animation: floatGlow2 22s ease-in-out infinite alternate;
}

.glow-3 {
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, var(--glow-color-3) 0%, transparent 70%);
    top: 40%;
    left: 60%;
    animation: floatGlow3 20s ease-in-out infinite alternate;
}

@keyframes floatGlow1 {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(120px, 80px) scale(1.15); }
}

@keyframes floatGlow2 {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-100px, -60px) scale(1.2); }
}

@keyframes floatGlow3 {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-80px, 90px) scale(0.9); }
}

/* ==========================================================================
   页面主框架与专属顶栏
   ========================================================================== */

.app-container {
    position: relative;
    z-index: 1;
    max-width: 1420px;
    margin: 0 auto;
    padding: 16px 20px 80px 20px;
    transition: max-width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.app-container.mode-wechat-active {
    max-width: 1420px;
}

.glass-panel {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-card);
    transition: var(--transition-normal);
}

/* 专属私有工作台顶栏 */
.studio-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 18px;
    background: rgba(18, 24, 38, 0.82);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-subtle);
    border-radius: 999px;
    margin-bottom: 20px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}

.topbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.studio-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 9px;
    background: var(--primary-gradient);
    font-size: 1.1rem;
    box-shadow: 0 0 12px rgba(139, 92, 246, 0.35);
}

.studio-brand-text {
    display: flex;
    align-items: center;
    gap: 10px;
}

.studio-title {
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--text-primary);
    letter-spacing: 0.3px;
}

.studio-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    transition: all 0.3s ease;
    user-select: none;
    cursor: default;
}

/* 绿色：服务可用正常（雅致低调，不显眼） */
.studio-badge.status-online {
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.32);
    color: #6ee7b7;
}

.studio-badge.status-online .status-indicator-dot {
    background-color: #10b981;
    box-shadow: 0 0 6px rgba(16, 185, 129, 0.5);
}

/* 红色：服务异常或断开（温和暗红，不刺眼） */
.studio-badge.status-offline {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.35);
    color: #fca5a5;
}

.studio-badge.status-offline .status-indicator-dot {
    background-color: #ef4444;
    box-shadow: 0 0 6px rgba(239, 68, 68, 0.5);
}

.status-indicator-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

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

.theme-quick-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(13, 17, 28, 0.75);
    padding: 3px 8px;
    border-radius: 999px;
    border: 1px solid var(--border-subtle);
}

.theme-text {
    display: none;
}

.theme-btn {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform 0.2s, border-color 0.2s;
}

.theme-btn:hover {
    transform: scale(1.2);
}

.theme-btn.active {
    border-color: #ffffff;
    transform: scale(1.15);
    box-shadow: 0 0 10px currentColor;
}

.theme-btn-purple { background: #8b5cf6; color: #8b5cf6; }
.theme-btn-gold { background: #f59e0b; color: #f59e0b; }
.theme-btn-blue { background: #06b6d4; color: #06b6d4; }
.theme-btn-green { background: #10b981; color: #10b981; }

.btn-custom-brand {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    border-radius: 999px;
    color: var(--text-primary);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
}

.btn-custom-brand:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--border-focus);
    box-shadow: 0 0 15px var(--border-glow);
    transform: translateY(-1px);
}

/* ==========================================================================
   头部与品牌标识
   ========================================================================== */

.app-header {
    text-align: center;
    margin-bottom: 18px;
}

.brand-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 12px;
    background: rgba(99, 102, 241, 0.12);
    border: 1px solid rgba(99, 102, 241, 0.35);
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    color: #c7d2fe;
    margin-bottom: 8px;
    letter-spacing: 0.4px;
}

.pulse-dot {
    width: 7px;
    height: 7px;
    background-color: #34d399;
    border-radius: 50%;
    box-shadow: 0 0 8px #34d399;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(52, 211, 153, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

.main-title {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: -0.3px;
    margin-bottom: 6px;
}

.gradient-text {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    color: var(--text-secondary);
    font-size: 0.92rem;
    max-width: 680px;
    margin: 0 auto 12px auto;
}

.subtitle strong {
    color: #f1f5f9;
    font-weight: 600;
}

/* ==========================================================================
   平台分类强关联选择器 (11 大平台专属高亮)
   ========================================================================== */

.category-selector-wrapper {
    margin: 8px auto 0 auto;
    max-width: 960px;
}

.category-tips {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    font-size: 0.78rem;
    color: #94a3b8;
    margin-bottom: 8px;
}

.tip-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #8b5cf6;
}

.category-tips strong {
    color: #e2e8f0;
}

.platform-categories-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
}

.category-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-subtle);
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
    user-select: none;
}

.category-item:hover {
    background: rgba(255, 255, 255, 0.09);
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
    transform: translateY(-2px);
}

.category-item .cat-icon {
    font-size: 0.95rem;
    line-height: 1;
}

/* 11 个平台的专属高亮与呼吸发光效果 */
.category-item.active {
    color: #ffffff;
    font-weight: 600;
    transform: translateY(-2px) scale(1.04);
}

/* 抖音 / 火山 */
.category-item[data-platform="douyin"].active {
    background: linear-gradient(135deg, rgba(0, 242, 254, 0.25) 0%, rgba(254, 9, 121, 0.3) 100%);
    border-color: #fe0979;
    box-shadow: 0 0 20px rgba(254, 9, 121, 0.45);
}

/* 快手 */
.category-item[data-platform="kuaishou"].active {
    background: linear-gradient(135deg, rgba(255, 102, 0, 0.3) 0%, rgba(255, 136, 0, 0.35) 100%);
    border-color: #ff6600;
    box-shadow: 0 0 20px rgba(255, 102, 0, 0.45);
}

/* 小红书 */
.category-item[data-platform="redbook"].active {
    background: linear-gradient(135deg, rgba(255, 36, 66, 0.3) 0%, rgba(255, 82, 119, 0.35) 100%);
    border-color: #ff2442;
    box-shadow: 0 0 20px rgba(255, 36, 66, 0.45);
}

/* 哔哩哔哩 */
.category-item[data-platform="bilibili"].active {
    background: linear-gradient(135deg, rgba(0, 174, 236, 0.3) 0%, rgba(251, 114, 153, 0.3) 100%);
    border-color: #00aeec;
    box-shadow: 0 0 20px rgba(0, 174, 236, 0.45);
}

/* YouTube */
.category-item[data-platform="youtube"].active {
    background: linear-gradient(135deg, rgba(255, 0, 0, 0.35) 0%, rgba(204, 0, 0, 0.4) 100%);
    border-color: #ff0000;
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.5);
}

/* TikTok */
.category-item[data-platform="tiktok"].active {
    background: linear-gradient(135deg, rgba(37, 244, 238, 0.25) 0%, rgba(254, 44, 85, 0.35) 100%);
    border-color: #fe2c55;
    box-shadow: 0 0 20px rgba(254, 44, 85, 0.45);
}

/* Telegram */
.category-item[data-platform="telegram"].active {
    background: linear-gradient(135deg, rgba(34, 158, 217, 0.3) 0%, rgba(0, 136, 204, 0.35) 100%);
    border-color: #229ed9;
    box-shadow: 0 0 20px rgba(34, 158, 217, 0.45);
}

/* 腾讯视频 */
.category-item[data-platform="tencent"].active {
    background: linear-gradient(135deg, rgba(0, 120, 255, 0.3) 0%, rgba(255, 114, 0, 0.3) 100%);
    border-color: #0078ff;
    box-shadow: 0 0 20px rgba(0, 120, 255, 0.45);
}

/* 爱奇艺 */
.category-item[data-platform="iqiyi"].active {
    background: linear-gradient(135deg, rgba(0, 204, 54, 0.3) 0%, rgba(16, 185, 129, 0.35) 100%);
    border-color: #00cc36;
    box-shadow: 0 0 20px rgba(0, 204, 54, 0.45);
}

/* 优酷视频 */
.category-item[data-platform="youku"].active {
    background: linear-gradient(135deg, rgba(0, 132, 255, 0.3) 0%, rgba(24, 144, 255, 0.35) 100%);
    border-color: #0084ff;
    box-shadow: 0 0 20px rgba(0, 132, 255, 0.45);
}

/* 皮皮虾 */
.category-item[data-platform="pipixia"].active {
    background: linear-gradient(135deg, rgba(255, 79, 94, 0.3) 0%, rgba(255, 120, 73, 0.35) 100%);
    border-color: #ff4f5e;
    box-shadow: 0 0 20px rgba(255, 79, 94, 0.45);
}

/* ==========================================================================
   主输入卡片
   ========================================================================== */

.main-card {
    padding: 24px;
    margin-bottom: 25px;
}

.input-wrapper {
    position: relative;
    background: var(--bg-input);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 16px;
    transition: var(--transition-normal);
}

.input-wrapper:focus-within {
    border-color: var(--border-focus);
    box-shadow: 0 0 25px rgba(139, 92, 246, 0.25);
}

.main-textarea {
    width: 100%;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 1rem;
    resize: none;
    line-height: 1.6;
}

.main-textarea::placeholder {
    color: var(--text-muted);
}

.input-actions-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.action-left {
    display: flex;
    gap: 10px;
}

/* 按钮基础样式 */
.btn-tool {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-primary);
    border: 1px solid var(--border-subtle);
    padding: 8px 16px;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition-fast);
}

.btn-tool:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-1px);
}

.btn-tool .icon {
    width: 16px;
    height: 16px;
}

.btn-text-secondary {
    color: var(--text-secondary);
}

.btn-text-secondary:hover {
    color: var(--accent-rose);
}

.btn-highlight {
    background: rgba(139, 92, 246, 0.18);
    border-color: rgba(139, 92, 246, 0.45);
    color: #c4b5fd;
}

.btn-highlight:hover {
    background: rgba(139, 92, 246, 0.35);
    color: #fff;
}

.btn-primary-gradient {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary-gradient);
    color: #ffffff;
    border: none;
    padding: 10px 26px;
    border-radius: var(--radius-md);
    font-size: 0.98rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 18px rgba(139, 92, 246, 0.35);
    transition: var(--transition-normal);
}

.btn-primary-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.5);
    filter: brightness(1.1);
}

.btn-primary-gradient:active {
    transform: translateY(0);
}

.example-chips {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
    padding: 0 4px;
}

.example-label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.chip-btn {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: var(--transition-fast);
}

.chip-btn:hover {
    background: rgba(99, 102, 241, 0.15);
    border-color: rgba(99, 102, 241, 0.35);
    color: #a5b4fc;
}

/* ==========================================================================
   动态解析进度条与剩余时间 (需求 2)
   ========================================================================== */

.loading-container {
    padding: 22px 24px;
    margin-bottom: 25px;
    border-left: 4px solid #8b5cf6;
    animation: fadeInScale 0.3s ease-out;
}

.loading-top-row {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 16px;
}

.spinner-orbital {
    position: relative;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
}

.orbital-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 3px solid transparent;
    border-top-color: #8b5cf6;
    border-right-color: #ec4899;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.orbital-core {
    position: absolute;
    width: 14px;
    height: 14px;
    background: #6366f1;
    border-radius: 50%;
    top: 15px;
    left: 15px;
    box-shadow: 0 0 12px #6366f1;
    animation: corePulse 1.5s ease-in-out infinite alternate;
}

@keyframes spin {
    100% { transform: rotate(360deg); }
}

@keyframes corePulse {
    0% { transform: scale(0.8); opacity: 0.6; }
    100% { transform: scale(1.2); opacity: 1; }
}

.loading-meta {
    flex: 1;
}

.loading-title {
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--text-primary);
    margin-bottom: 3px;
}

.loading-sub {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.loading-countdown {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.35);
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #c7d2fe;
}

.parse-progress-wrapper {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.parse-progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 999px;
    overflow: hidden;
    position: relative;
}

.parse-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #6366f1, #8b5cf6, #ec4899);
    border-radius: 999px;
    box-shadow: 0 0 12px rgba(139, 92, 246, 0.8);
    transition: width 0.35s ease;
}

.parse-progress-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.82rem;
    color: var(--text-muted);
}

#parsePercentText {
    color: #a5b4fc;
    font-weight: 600;
}

/* ==========================================================================
   平台分类不匹配告警组件 (需求 4)
   ========================================================================== */

.mismatch-banner {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 22px;
    margin-bottom: 25px;
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.4);
    border-radius: var(--radius-md);
    box-shadow: 0 0 25px rgba(245, 158, 11, 0.15);
    animation: fadeInScale 0.3s ease-out;
}

.mismatch-icon {
    font-size: 1.8rem;
    flex-shrink: 0;
}

.mismatch-content {
    flex: 1;
}

.mismatch-title {
    font-weight: 700;
    font-size: 1rem;
    color: #fbbf24;
    margin-bottom: 4px;
}

.mismatch-msg {
    font-size: 0.92rem;
    color: #fef3c7;
}

.btn-switch-parse {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #fff;
    border: none;
    padding: 10px 18px;
    border-radius: var(--radius-md);
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.4);
    transition: var(--transition-fast);
    white-space: nowrap;
}

.btn-switch-parse:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
}

/* ==========================================================================
   错误警报提示
   ========================================================================== */

.error-banner {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    margin-bottom: 25px;
    background: rgba(244, 63, 94, 0.12);
    border: 1px solid rgba(244, 63, 94, 0.3);
    border-radius: var(--radius-md);
    color: #fca5a5;
    animation: fadeInScale 0.3s ease-out;
}

.error-icon {
    font-size: 1.3rem;
}

.error-message {
    flex: 1;
    font-size: 0.95rem;
}

.btn-close {
    background: transparent;
    border: none;
    color: #fca5a5;
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
}

/* ==========================================================================
   结果呈现卡片与核心元素强化 (需求 3)
   ========================================================================== */

.result-container {
    padding: 28px;
    margin-bottom: 35px;
    animation: fadeInScale 0.4s ease-out;
}

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

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    margin-bottom: 20px;
}

.author-box {
    display: flex;
    align-items: center;
    gap: 14px;
}

.author-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border-focus);
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.2);
    background-color: rgba(255, 255, 255, 0.05);
}

.author-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.author-name-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.author-name {
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--text-primary);
}

.platform-badge {
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    background: rgba(99, 102, 241, 0.18);
    color: #a5b4fc;
    border: 1px solid rgba(99, 102, 241, 0.4);
}

.type-badge {
    font-size: 0.8rem;
    color: var(--accent-cyan);
}

.header-quality-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.35);
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #34d399;
}

.badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #34d399;
}

/* 视频名字强化卡片 (需求 3) */
.result-title-card {
    background: rgba(0, 0, 0, 0.3);
    border-radius: var(--radius-md);
    padding: 18px 20px;
    margin-bottom: 22px;
    border-left: 4px solid #8b5cf6;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.title-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.title-label {
    font-size: 0.88rem;
    font-weight: 600;
    color: #a5b4fc;
}

.title-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.word-count-badge {
    font-size: 0.75rem;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.05);
    padding: 3px 8px;
    border-radius: 4px;
}

.work-title {
    color: #f1f5f9;
    font-size: 1.05rem;
    font-weight: 500;
    line-height: 1.6;
    white-space: pre-wrap;
    word-break: break-word;
}

/* 超清封面独立展示专区 (需求 3) */
.cover-showcase-card {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 18px 20px;
    margin-bottom: 24px;
}

.cover-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 14px;
}

.cover-title-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cover-label {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text-primary);
}

.cover-tag {
    font-size: 0.75rem;
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.3);
    padding: 2px 8px;
    border-radius: 4px;
}

.cover-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.cover-preview-wrapper {
    width: 100%;
    max-height: 380px;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.cover-img-display {
    max-width: 100%;
    max-height: 380px;
    object-fit: contain;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.cover-img-display:hover {
    transform: scale(1.02);
}

/* 🎬 原画分辨率与画质选择专区 (4K/8K 零压缩) */
.quality-selector-card {
    background: rgba(15, 23, 42, 0.65);
    border: 1px solid rgba(56, 189, 248, 0.25);
    border-radius: var(--radius-lg);
    padding: 16px 20px;
    margin-bottom: 20px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(12px);
}

.quality-selector-card.hidden {
    display: none !important;
}

.quality-selector-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 12px;
}

.quality-title-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.quality-label {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.quality-notice-badge {
    font-size: 0.72rem;
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.3);
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 600;
}

.quality-tip {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.quality-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.quality-pill-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: rgba(30, 41, 59, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    color: #cbd5e1;
    font-size: 0.84rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.quality-pill-btn:hover {
    background: rgba(56, 189, 248, 0.15);
    border-color: rgba(56, 189, 248, 0.4);
    color: #fff;
    transform: translateY(-1px);
}

.quality-pill-btn.active {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.3) 0%, rgba(37, 99, 235, 0.35) 100%);
    border-color: #38bdf8;
    color: #38bdf8;
    box-shadow: 0 0 16px rgba(56, 189, 248, 0.25);
    font-weight: 700;
}

.quality-pill-btn .pill-res-tag {
    font-size: 0.72rem;
    padding: 1px 6px;
    background: rgba(0, 0, 0, 0.35);
    border-radius: 4px;
    opacity: 0.85;
}

/* 视频播放器与双模式支持 */
.player-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding: 0 4px;
}

.player-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    font-weight: 600;
    color: #cbd5e1;
}

.player-dot {
    width: 8px;
    height: 8px;
    background-color: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 8px #10b981;
}

.btn-xs {
    padding: 4px 10px;
    font-size: 0.78rem;
    border-radius: var(--radius-sm);
}

.player-wrapper {
    position: relative;
    width: 100%;
    max-width: 760px;
    margin: 0 auto 20px auto;
    background: #000;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
}

/* 播放器平台水印智能遮罩 */
.player-watermark-mask {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 130px;
    height: 48px;
    background: rgba(10, 15, 29, 0.92);
    border: 1px dashed rgba(255, 255, 255, 0.25);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 15;
    pointer-events: none;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    transition: opacity 0.25s ease;
}

.player-watermark-mask.hidden {
    display: none !important;
}

.player-watermark-mask .mask-text {
    font-size: 11px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.75);
    letter-spacing: 0.5px;
}

.styled-video {
    width: 100%;
    max-height: 520px;
    display: block;
    outline: none;
}

.iframe-player-box {
    position: relative;
    width: 100%;
    max-width: 760px;
    margin: 0 auto 20px auto;
    aspect-ratio: 16/9;
    background: #000;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.styled-iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

.workers-badge {
    display: inline-block;
    padding: 2px 8px;
    background: rgba(16, 185, 129, 0.2);
    border: 1px solid rgba(16, 185, 129, 0.5);
    border-radius: 4px;
    font-size: 0.75rem;
    color: #34d399;
    margin-left: 8px;
}

/* 图集画廊 */
.gallery-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
    padding: 12px 18px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-md);
}

.gallery-count-tag {
    font-size: 0.95rem;
    font-weight: 600;
    color: #38bdf8;
}

.gallery-btns {
    display: flex;
    gap: 10px;
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 18px;
}

.image-card {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-subtle);
    aspect-ratio: 3/4;
    transition: var(--transition-normal);
}

.image-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}

.image-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.4s ease;
}

.image-card:hover img {
    transform: scale(1.05);
}

.image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 10px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, transparent 100%);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.btn-img-action {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: none;
    color: #fff;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition-fast);
}

.btn-img-action:hover {
    background: #8b5cf6;
}

.live-badge {
    background: rgba(16, 185, 129, 0.85);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
}

/* 音乐组件 */
.music-block {
    margin-top: 20px;
    margin-bottom: 20px;
}

.music-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-subtle);
    padding: 14px 20px;
    border-radius: var(--radius-md);
}

.music-icon {
    font-size: 1.8rem;
}

.music-info {
    flex: 1;
}

.music-title {
    font-size: 0.92rem;
    font-weight: 500;
    margin-bottom: 6px;
    color: #f1f5f9;
}

.styled-audio {
    width: 100%;
    height: 34px;
}

/* ==========================================================================
   高速不限速下载与本地存放位置面板 (需求 6 & 7)
   ========================================================================== */

.download-settings-card {
    background: rgba(10, 15, 28, 0.75);
    border: 1px solid rgba(139, 92, 246, 0.35);
    border-radius: var(--radius-lg);
    padding: 22px 24px;
    margin-top: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.download-card-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.dl-title-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.dl-icon {
    font-size: 1.3rem;
}

.dl-main-title {
    font-weight: 700;
    font-size: 1.05rem;
    color: #f8fafc;
}

.dl-speed-badge {
    padding: 3px 10px;
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.4);
    border-radius: 999px;
    font-size: 0.75rem;
    color: #c7d2fe;
    font-weight: 600;
}

.folder-path-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.folder-label {
    font-size: 0.88rem;
    font-weight: 600;
    color: #cbd5e1;
    white-space: nowrap;
}

.folder-input-group {
    display: flex;
    gap: 8px;
    flex: 1;
    min-width: 260px;
}

.folder-input {
    flex: 1;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 8px 14px;
    color: #f1f5f9;
    font-family: monospace, var(--font-body);
    font-size: 0.88rem;
    outline: none;
    transition: var(--transition-fast);
}

.folder-input:focus {
    border-color: var(--border-focus);
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.3);
}

.btn-paste-folder {
    background: rgba(139, 92, 246, 0.15);
    border: 1px solid rgba(139, 92, 246, 0.4);
    color: #c084fc;
    white-space: nowrap;
    transition: var(--transition-fast);
}

.btn-paste-folder:hover {
    background: rgba(139, 92, 246, 0.3);
    border-color: #a855f7;
    color: #fff;
    box-shadow: 0 0 12px rgba(168, 85, 247, 0.35);
}

.media-actions-bar {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 10px;
}

.btn-action-download {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    padding: 11px 22px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition-normal);
}

.btn-save-local {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    box-shadow: 0 4px 18px rgba(16, 185, 129, 0.4);
}

.btn-save-local:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.6);
    filter: brightness(1.1);
}

.btn-proxy-save {
    background: var(--primary-gradient);
    box-shadow: 0 4px 18px rgba(139, 92, 246, 0.4);
}

.btn-proxy-save:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.6);
    filter: brightness(1.1);
}

.btn-action-download .icon {
    width: 18px;
    height: 18px;
}

/* 本地落盘实时监控卡片 */
.local-task-card {
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(16, 185, 129, 0.35);
    border-radius: var(--radius-md);
    padding: 16px 18px;
    margin-top: 16px;
    animation: fadeInScale 0.3s ease-out;
}

.task-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.task-status-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.92rem;
    font-weight: 600;
    color: #e2e8f0;
}

.task-speed-badge {
    padding: 3px 12px;
    background: rgba(16, 185, 129, 0.2);
    border: 1px solid #10b981;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 700;
    color: #34d399;
}

.task-progress-bar-wrap {
    margin-bottom: 10px;
}

.task-progress-track {
    width: 100%;
    height: 10px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    overflow: hidden;
}

.task-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #10b981, #06b6d4);
    border-radius: 999px;
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.8);
    transition: width 0.25s linear;
}

.task-meta-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.82rem;
    color: var(--text-muted);
}

.task-complete-row {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.complete-tip {
    font-size: 0.88rem;
    color: #34d399;
}

.complete-tip code {
    display: inline-block;
    color: #e2e8f0;
    background: rgba(255, 255, 255, 0.06);
    padding: 2px 6px;
    border-radius: 4px;
    max-width: 400px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: middle;
}

/* 任务状态指示灯变体 */
.pulse-dot.pulse-dot-paused {
    background-color: #f59e0b;
    box-shadow: 0 0 8px #f59e0b;
    animation: pulseAmber 2s infinite;
}

.pulse-dot.pulse-dot-error {
    background-color: #f43f5e;
    box-shadow: 0 0 8px #f43f5e;
    animation: pulseRose 2s infinite;
}

.pulse-dot.pulse-dot-cancelled {
    background-color: #94a3b8;
    box-shadow: 0 0 8px #94a3b8;
    animation: none;
}

@keyframes pulseAmber {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(245, 158, 11, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); }
}

@keyframes pulseRose {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(244, 63, 94, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(244, 63, 94, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(244, 63, 94, 0); }
}

/* 任务控制栏与网络状态提示 */
.task-control-row {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.task-net-hint {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    background: rgba(245, 158, 11, 0.08);
    border: 1px dashed rgba(245, 158, 11, 0.3);
    border-radius: var(--radius-sm);
    padding: 8px 12px;
    font-size: 0.8rem;
    line-height: 1.5;
    color: #fcd34d;
}

.task-net-hint .hint-icon {
    font-size: 1rem;
    line-height: 1.2;
    flex-shrink: 0;
}

.task-action-buttons {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-task-action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.84rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    outline: none;
}

.btn-task-action:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-task-pause {
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.45);
    color: #fbbf24;
}

.btn-task-pause:hover:not(:disabled) {
    background: rgba(245, 158, 11, 0.28);
    border-color: #f59e0b;
    box-shadow: 0 0 12px rgba(245, 158, 11, 0.35);
    transform: translateY(-1px);
}

.btn-task-resume {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.25), rgba(6, 182, 212, 0.25));
    border: 1px solid rgba(16, 185, 129, 0.6);
    color: #34d399;
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.25);
    animation: pulseSubtle 2s infinite;
}

.btn-task-resume:hover:not(:disabled) {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.4), rgba(6, 182, 212, 0.4));
    border-color: #10b981;
    box-shadow: 0 0 16px rgba(16, 185, 129, 0.5);
    transform: translateY(-1px);
}

.btn-task-cancel {
    background: rgba(244, 63, 94, 0.12);
    border: 1px solid rgba(244, 63, 94, 0.35);
    color: #fda4af;
}

.btn-task-cancel:hover:not(:disabled) {
    background: rgba(244, 63, 94, 0.25);
    border-color: #f43f5e;
    box-shadow: 0 0 12px rgba(244, 63, 94, 0.3);
    transform: translateY(-1px);
}

@keyframes pulseSubtle {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}


/* ==========================================================================
   解析历史记录抽屉 / 列表
   ========================================================================== */

.history-section {
    padding: 24px;
    margin-bottom: 40px;
}

.history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    flex-wrap: wrap;
    gap: 12px;
}

.history-title-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.history-icon {
    font-size: 1.2rem;
}

.history-title {
    font-weight: 600;
    font-size: 1.05rem;
}

.history-badge {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 0.75rem;
}

.history-scroll-hint {
    font-size: 0.72rem;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 2px 8px;
    border-radius: 999px;
    font-weight: 400;
}

.history-actions-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

/* 一键导出高亮专属按钮 (亮眼翡翠绿流光，极其醒目) */
.btn-export-gradient {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 16px;
    border: none;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, #059669 0%, #10b981 50%, #34d399 100%);
    color: #ffffff;
    font-size: 0.84rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 0 16px rgba(16, 185, 129, 0.4);
    transition: var(--transition-fast);
}

.btn-export-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 24px rgba(16, 185, 129, 0.7);
    filter: brightness(1.1);
}

.btn-export-gradient:active {
    transform: translateY(0);
}

/* 历史列表快捷上下微动滑动按钮组 */
.history-scroll-btns {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(255, 255, 255, 0.05);
    padding: 3px 6px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-subtle);
}

.btn-scroll-nav {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #f1f5f9;
    font-size: 0.76rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition-fast);
}

.btn-scroll-nav:hover {
    background: var(--primary-gradient);
    color: #ffffff;
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.5);
    transform: scale(1.05);
}

/* 一键导出全量记录实时进度与时间展板 */
.export-progress-banner,
.wx-export-progress-banner {
    margin-bottom: 18px;
    padding: 16px 20px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.12) 0%, rgba(6, 182, 212, 0.08) 50%, rgba(99, 102, 241, 0.1) 100%);
    border: 1px solid rgba(16, 185, 129, 0.35);
    border-radius: var(--radius-md);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25), 0 0 15px rgba(16, 185, 129, 0.2);
    animation: fadeIn 0.3s ease;
    backdrop-filter: blur(16px);
}

.export-progress-banner.hidden,
.wx-export-progress-banner.hidden {
    display: none;
}

.export-banner-top,
.wx-export-banner-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    flex-wrap: wrap;
    gap: 8px;
}

.export-banner-title,
.wx-export-banner-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.94rem;
    font-weight: 700;
    color: #34d399;
}

.export-banner-stats,
.wx-export-banner-stats {
    display: flex;
    align-items: center;
    gap: 10px;
}

.export-time-badge,
.wx-export-time-badge {
    font-size: 0.78rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-weight: 600;
    color: #67e8f9;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(6, 182, 212, 0.3);
    padding: 3px 10px;
    border-radius: 999px;
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.15);
}

.export-banner-count,
.wx-export-banner-count {
    font-size: 0.82rem;
    font-weight: 700;
    color: #f1f5f9;
    background: rgba(16, 185, 129, 0.25);
    border: 1px solid rgba(16, 185, 129, 0.4);
    padding: 3px 10px;
    border-radius: var(--radius-sm);
}

.export-progress-track,
.wx-export-progress-track {
    width: 100%;
    height: 8px;
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 8px;
    position: relative;
}

.export-progress-bar,
.wx-export-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #10b981 0%, #06b6d4 50%, #6366f1 100%);
    border-radius: 999px;
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.6);
    transition: width 0.15s ease-out;
}

.export-banner-bottom,
.wx-export-banner-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.export-percent-text,
.wx-export-percent-text {
    font-weight: 700;
    font-size: 0.85rem;
    color: #10b981;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

/* 批量下载进度通知条 */
.batch-progress-banner {
    margin-bottom: 16px;
    padding: 14px 18px;
    background: rgba(99, 102, 241, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.25);
    border-radius: var(--radius-md);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    animation: fadeIn 0.3s ease;
}

.batch-progress-banner.hidden {
    display: none;
}

.batch-banner-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.batch-banner-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #818cf8;
}

.batch-banner-count {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-secondary);
    background: rgba(0, 0, 0, 0.25);
    padding: 2px 8px;
    border-radius: var(--radius-sm);
}

.batch-progress-track {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 8px;
}

.batch-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #6366f1, #a855f7, #ec4899);
    border-radius: 999px;
    transition: width 0.25s ease;
}

.batch-banner-info {
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* 现代化上下平滑滑动视口容器 (全设备自适应：鼠标滚轮 + 抓取拖拽滑动 + 触控滑动 + 显式高亮滚动条) */
.history-scroll-wrapper {
    max-height: 380px;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 8px 10px 8px 4px;
    scroll-behavior: smooth;
    overscroll-behavior: contain;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
    background: rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    position: relative;
}

.history-scroll-wrapper.is-dragging {
    cursor: grabbing !important;
    scroll-behavior: auto !important;
}

.history-scroll-wrapper::-webkit-scrollbar {
    width: 8px;
}

.history-scroll-wrapper::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.04);
    border-radius: 6px;
}

.history-scroll-wrapper::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #6366f1 0%, #8b5cf6 50%, #d946ef 100%);
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.5);
    transition: background 0.2s ease, box-shadow 0.2s ease;
}

.history-scroll-wrapper::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #818cf8 0%, #a855f7 50%, #f43f5e 100%);
    box-shadow: 0 0 16px rgba(217, 70, 239, 0.8);
}

.history-scroll-wrapper {
    scrollbar-width: thin;
    scrollbar-color: #8b5cf6 rgba(255, 255, 255, 0.04);
}

.history-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.history-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition-fast);
}

.history-item:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateX(4px);
}

.history-item-left {
    display: flex;
    align-items: center;
    gap: 12px;
    overflow: hidden;
    flex: 1;
    min-width: 0;
}

.history-thumb {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    background: #111;
    flex-shrink: 0;
}

.history-item-meta {
    overflow: hidden;
    flex: 1;
    min-width: 0;
}

.history-item-title {
    font-size: 0.9rem;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.history-item-sub {
    font-size: 0.78rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 2px;
}

.history-platform-tag {
    color: #818cf8;
    font-weight: 500;
}

.history-item-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    margin-left: 12px;
}

.empty-history-tip {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    padding: 24px 0;
}

/* ==========================================================================
   全屏灯箱模态框
   ========================================================================== */

.lightbox-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(15px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.lightbox-close {
    position: absolute;
    top: 25px;
    right: 35px;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 3rem;
    cursor: pointer;
    line-height: 1;
    z-index: 1001;
    transition: var(--transition-fast);
}

.lightbox-close:hover {
    color: var(--accent-rose);
    transform: scale(1.1);
}

.lightbox-content {
    max-width: 90vw;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

#lightboxImg {
    max-width: 100%;
    max-height: 75vh;
    object-fit: contain;
    border-radius: var(--radius-md);
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.8);
}

/* ==========================================================================
   轻提示 (Toast)
   ========================================================================== */

.toast {
    position: fixed;
    bottom: 35px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(30, 41, 59, 0.95);
    border: 1px solid var(--border-focus);
    color: #fff;
    padding: 12px 24px;
    border-radius: 999px;
    font-size: 0.92rem;
    font-weight: 500;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 2000;
    animation: toastIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes toastIn {
    from { opacity: 0; transform: translate(-50%, 20px); }
    to { opacity: 1; transform: translate(-50%, 0); }
}

/* ==========================================================================
   页脚与辅助类
   ========================================================================== */

.app-footer {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.82rem;
    margin-top: 30px;
}

.hidden {
    display: none !important;
}

/* ==========================================================================
   专属品牌定制模态框与底部私有标识
   ========================================================================== */

.footer-badges {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 14px;
}

.footer-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-subtle);
    border-radius: 999px;
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* 品牌定制模态框 */
.brand-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.brand-modal.hidden {
    display: none !important;
}

.brand-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(5, 8, 16, 0.82);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.brand-modal-card {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 580px;
    max-height: 90vh;
    overflow-y: auto;
    background: rgba(18, 24, 38, 0.95);
    border: 1px solid var(--border-focus);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7), 0 0 35px var(--border-glow);
    border-radius: var(--radius-lg);
    padding: 26px;
    animation: modalScaleIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalScaleIn {
    from {
        opacity: 0;
        transform: scale(0.94) translateY(12px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.brand-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-subtle);
}

.brand-modal-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

.brand-modal-desc {
    font-size: 0.86rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 20px;
    background: rgba(255, 255, 255, 0.03);
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--theme-accent);
}

.brand-modal-body .form-group {
    margin-bottom: 16px;
}

.brand-modal-body label {
    display: block;
    font-size: 0.86rem;
    font-weight: 600;
    color: #e2e8f0;
    margin-bottom: 8px;
}

.brand-input {
    width: 100%;
    padding: 11px 15px;
    background: var(--bg-input);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.92rem;
    transition: all var(--transition-fast);
}

.brand-input:focus {
    outline: none;
    border-color: var(--border-focus);
    box-shadow: 0 0 14px var(--border-glow);
}

.logo-selector-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-input {
    width: 80px;
    text-align: center;
    font-size: 1.4rem;
    padding: 8px;
}

.logo-presets {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.logo-preset-btn {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.logo-preset-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--border-focus);
    transform: scale(1.15);
}

/* 主题单选卡片网格 */
.theme-select-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.theme-radio-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s ease;
}

.theme-radio-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

.theme-radio-card input[type="radio"] {
    accent-color: var(--theme-accent);
}

.theme-swatch {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    box-shadow: 0 0 8px currentColor;
}

.theme-swatch-purple { background: #8b5cf6; color: #8b5cf6; }
.theme-swatch-gold { background: #f59e0b; color: #f59e0b; }
.theme-swatch-blue { background: #06b6d4; color: #06b6d4; }
.theme-swatch-green { background: #10b981; color: #10b981; }

.theme-name {
    font-size: 0.84rem;
    color: var(--text-primary);
}

.brand-modal-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 24px;
    padding-top: 14px;
    border-top: 1px solid var(--border-subtle);
}

/* ==========================================================================
   平台专属指南卡片与 11 平台教程模态框
   ========================================================================== */

.platform-guide-card {
    background: rgba(18, 24, 38, 0.78);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 16px 20px;
    margin-bottom: 22px;
    transition: all var(--transition-normal);
}

.platform-guide-card:hover {
    border-color: rgba(255, 255, 255, 0.16);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.guide-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.guide-title-box {
    display: flex;
    align-items: center;
    gap: 8px;
}

.guide-icon {
    font-size: 1.25rem;
}

.guide-platform-name {
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-primary);
}

.guide-badge {
    font-size: 0.72rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid var(--border-glow);
    color: #c7d2fe;
}

.guide-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-xs {
    padding: 4px 10px !important;
    font-size: 0.78rem !important;
}

.guide-content-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: rgba(10, 14, 24, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
}

.guide-item {
    display: flex;
    align-items: baseline;
    gap: 8px;
    font-size: 0.86rem;
    line-height: 1.5;
}

.guide-item-label {
    font-weight: 600;
    color: var(--text-secondary);
    white-space: nowrap;
}

.guide-item-text {
    color: var(--text-primary);
}

.guide-item-text code {
    background: rgba(255, 255, 255, 0.08);
    padding: 2px 6px;
    border-radius: 4px;
    color: var(--accent-cyan);
    font-family: monospace;
    font-size: 0.82rem;
}

/* 11 平台完全教程模态框 */
.tutorial-modal {
    position: fixed;
    inset: 0;
    z-index: 1050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.tutorial-modal.hidden {
    display: none !important;
}

.tutorial-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(5, 8, 16, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.tutorial-modal-card {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 860px;
    max-height: 90vh;
    overflow-y: auto;
    background: rgba(18, 24, 38, 0.96);
    border: 1px solid var(--border-focus);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7), 0 0 35px var(--border-glow);
    border-radius: var(--radius-lg);
    padding: 26px;
    animation: modalScaleIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.tutorial-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-subtle);
}

.tutorial-modal-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

.tutorial-tabs-bar {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 12px;
    margin-bottom: 18px;
    border-bottom: 1px solid var(--border-subtle);
    scrollbar-width: thin;
}

.tut-tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    font-size: 0.84rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.tut-tab-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    color: var(--text-primary);
}

.tut-tab-btn.active {
    background: var(--primary-gradient);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 0 14px var(--border-glow);
}

.tutorial-content-box {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.tut-platform-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-sm);
    border-left: 4px solid var(--theme-accent);
}

.tut-platform-intro {
    font-size: 0.92rem;
    color: var(--text-primary);
}

.tut-section-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #e2e8f0;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tut-steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.tut-step-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 14px;
}

.tut-step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--primary-gradient);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.tut-step-text {
    font-size: 0.85rem;
    color: var(--text-primary);
    line-height: 1.5;
}

.tut-example-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tut-example-item {
    background: rgba(10, 14, 24, 0.7);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.tut-example-code {
    font-family: monospace;
    font-size: 0.84rem;
    color: var(--accent-cyan);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tut-outputs-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tut-output-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 6px;
    font-size: 0.8rem;
    color: #6ee7b7;
    font-weight: 500;
}

.tutorial-modal-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 20px;
    padding-top: 14px;
    border-top: 1px solid var(--border-subtle);
}

.tutorial-footer-tip {
    font-size: 0.82rem;
    color: var(--text-secondary);
    max-width: 65%;
}

/* 响应式微调 (Mobile Optimization) */
@media (max-width: 768px) {
    .tut-steps-grid {
        grid-template-columns: 1fr;
    }

    .tutorial-modal-footer {
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
    }

    .tutorial-footer-tip {
        max-width: 100%;
    }
    .studio-topbar {
        flex-direction: column;
        gap: 12px;
        padding: 12px 16px;
        border-radius: var(--radius-lg);
    }

    .topbar-controls {
        width: 100%;
        justify-content: space-between;
    }

    .theme-select-grid {
        grid-template-columns: 1fr;
    }

    .main-title {
        font-size: 2.1rem;
    }

    .main-card {
        padding: 16px;
    }

    .category-item {
        padding: 6px 12px;
        font-size: 0.82rem;
    }

    .input-actions-bar {
        flex-direction: column-reverse;
        gap: 12px;
        align-items: stretch;
    }

    .action-left {
        justify-content: space-between;
    }

    .btn-primary-gradient {
        justify-content: center;
        width: 100%;
    }

    .image-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .history-item-title {
        max-width: 220px;
    }

    .folder-path-row {
        flex-direction: column;
        align-items: stretch;
    }

    .media-actions-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-action-download {
        justify-content: center;
    }
}

/* ==========================================================================
   Telegram 禁转受限群组特权授权组件 (100% 本地沙箱隐私隔离)
   ========================================================================== */

.tg-auth-nav-btn {
    border: 1px solid rgba(56, 189, 248, 0.35) !important;
    background: rgba(56, 189, 248, 0.08) !important;
    color: #38bdf8 !important;
}

.tg-auth-nav-btn:hover {
    background: rgba(56, 189, 248, 0.18) !important;
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.3) !important;
}

.tg-auth-nav-btn.authorized {
    border-color: rgba(16, 185, 129, 0.4) !important;
    background: rgba(16, 185, 129, 0.1) !important;
    color: #6ee7b7 !important;
}

.tg-auth-modal .tg-auth-card {
    max-width: 640px;
    width: 95%;
}

.tg-security-banner {
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.25);
    border-radius: var(--radius-md);
    padding: 12px 16px;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.tg-security-banner .sec-badge {
    font-size: 0.88rem;
    font-weight: 700;
    color: #34d399;
    display: flex;
    align-items: center;
    gap: 6px;
}

.tg-security-banner .sec-desc {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.5;
}

.tg-tabs {
    display: flex;
    gap: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 20px;
    overflow-x: auto;
}

.tg-tab-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    padding: 10px 14px;
    font-size: 0.86rem;
    font-weight: 600;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.tg-tab-btn:hover {
    color: var(--text-main);
}

.tg-tab-btn.active {
    color: #38bdf8;
    border-bottom-color: #38bdf8;
}

.tg-tab-pane {
    display: none;
    animation: fadeIn 0.25s ease;
}

.tg-tab-pane.active {
    display: block;
}

.tg-qr-wrapper {
    display: flex;
    gap: 24px;
    align-items: center;
    padding: 16px 0;
}

.tg-qr-box {
    width: 170px;
    height: 170px;
    flex-shrink: 0;
    background: #ffffff;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    position: relative;
}

.tg-qr-placeholder {
    color: #64748b;
    font-size: 0.75rem;
    text-align: center;
    padding: 10px;
}

.tg-qr-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.tg-qr-tips {
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 0.82rem;
    line-height: 1.5;
}

.qr-step {
    color: rgba(255, 255, 255, 0.88);
}

.qr-status-text {
    font-size: 0.8rem;
    color: #38bdf8;
    font-weight: 600;
    margin-top: 6px;
}

.tg-phone-form, .tg-proxy-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.tg-status-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: var(--radius-md);
    margin-bottom: 20px;
}

.tg-user-profile {
    display: flex;
    align-items: center;
    gap: 14px;
}

.tg-avatar-circle {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0284c7, #38bdf8);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

.tg-user-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: #f8fafc;
}

.tg-user-sub {
    font-size: 0.78rem;
    color: #34d399;
    margin-top: 2px;
}

.btn-danger-text {
    color: #f87171 !important;
    border-color: rgba(239, 68, 68, 0.3) !important;
    background: rgba(239, 68, 68, 0.1) !important;
}

.btn-danger-text:hover {
    background: rgba(239, 68, 68, 0.25) !important;
}

.tg-tab-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 20px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* 教程模态框内 Telegram 专属特权高亮卡片 */
.tut-tg-highlight-card {
    background: linear-gradient(135deg, rgba(2, 132, 199, 0.12), rgba(99, 102, 241, 0.08));
    border: 1px solid rgba(56, 189, 248, 0.35);
    border-radius: var(--radius-lg);
    padding: 18px 22px;
    margin-bottom: 24px;
    box-shadow: 0 8px 24px rgba(2, 132, 199, 0.15);
    backdrop-filter: blur(12px);
}

.tut-tg-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 10px;
}

.tut-tg-icon {
    font-size: 1.6rem;
    filter: drop-shadow(0 0 8px rgba(56, 189, 248, 0.4));
}

.tut-tg-title-wrap {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.tut-tg-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #e0f2fe;
    letter-spacing: 0.3px;
}

.tut-tg-sub {
    font-size: 0.82rem;
    color: #38bdf8;
}

.tut-tg-desc {
    font-size: 0.88rem;
    color: #cbd5e1;
    line-height: 1.6;
    margin-bottom: 14px;
}

.tut-tg-desc code {
    background: rgba(0, 0, 0, 0.35);
    color: #7dd3fc;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: monospace;
}

.tut-tg-btn-row {
    display: flex;
    justify-content: flex-start;
}

/* ========================================================================= */
/* 模式切换胶囊导航 (全网媒体解析 vs 微信记录留痕) */
/* ========================================================================= */
.topbar-mode-switcher {
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-full);
    padding: 3px;
    gap: 3px;
    flex-shrink: 0;
}

.mode-switch-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: var(--radius-full);
    color: #94a3b8;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.mode-switch-btn:hover {
    color: #f1f5f9;
    background: rgba(255, 255, 255, 0.06);
}

.mode-switch-btn.active {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.45), rgba(168, 85, 247, 0.35));
    border: 1px solid rgba(168, 85, 247, 0.5);
    color: #ffffff;
    box-shadow: 0 0 16px rgba(168, 85, 247, 0.25);
}

.mode-badge-new {
    background: linear-gradient(135deg, #10b981, #059669);
    color: #ffffff;
    font-size: 0.62rem;
    font-weight: 800;
    padding: 1px 5px;
    border-radius: 6px;
    letter-spacing: 0.4px;
}

/* ========================================================================= */
/* WeChatMsg (微信记录留痕) 工作台视图 */
/* ========================================================================= */
.wechat-workstation-view {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 6px;
    animation: fadeIn 0.3s ease;
}

/* 顶部账号控制与安全条 */
.wx-topbar-panel {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 18px;
    border-radius: var(--radius-lg);
    flex-wrap: wrap;
    gap: 10px;
}

.wx-account-selector-box {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.wx-brand-pill {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(7, 193, 96, 0.12);
    border: 1px solid rgba(7, 193, 96, 0.3);
    padding: 4px 10px;
    border-radius: var(--radius-full);
}

.wx-brand-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: #10b981;
}

.wx-version-pill {
    font-size: 0.68rem;
    background: #059669;
    color: #fff;
    padding: 1px 5px;
    border-radius: 8px;
    font-weight: 700;
}

.wx-account-select-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
}

.wx-select-label {
    font-size: 0.82rem;
    color: #94a3b8;
    white-space: nowrap;
}

.wx-account-dropdown {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 5px 10px;
    color: #f1f5f9;
    font-size: 0.82rem;
    outline: none;
    min-width: 220px;
    transition: var(--transition-fast);
}

.wx-account-dropdown:focus {
    border-color: #10b981;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.3);
}

.wx-topbar-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.wx-sec-badge {
    display: flex;
    align-items: center;
    gap: 5px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.25);
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 0.76rem;
    color: #34d399;
    font-weight: 600;
}

/* 主聊天工作区 (分栏) */
.wx-chat-workspace {
    display: grid;
    grid-template-columns: 320px 1fr;
    height: 720px;
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid var(--border-subtle);
    min-height: 0;
    position: relative;
}

/* 左侧联系人列表 */
.wx-contacts-sidebar {
    background: rgba(15, 23, 42, 0.7);
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
    max-height: 100%;
    overflow: hidden;
    position: relative;
}

.wx-sidebar-header {
    padding: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex-shrink: 0;
}

.wx-search-box {
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    padding: 6px 10px;
    gap: 8px;
}

.wx-search-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #f1f5f9;
    font-size: 0.84rem;
}

.wx-filter-tabs {
    display: flex;
    gap: 6px;
}

.wx-filter-tab {
    flex: 1;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-sm);
    padding: 4px 0;
    color: #94a3b8;
    font-size: 0.78rem;
    cursor: pointer;
    transition: var(--transition-fast);
}

.wx-filter-tab.active {
    background: rgba(255, 255, 255, 0.1);
    color: #f1f5f9;
    border-color: rgba(255, 255, 255, 0.2);
    font-weight: 600;
}

.wx-contacts-list {
    flex: 1 1 0%;
    min-height: 0;
    height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    overscroll-behavior: contain;
    position: relative;
}

/* 微信联系人侧边上下滑动条 (高质感翡翠微光) */
.wx-contacts-list::-webkit-scrollbar {
    width: 6px;
}

.wx-contacts-list::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.25);
    border-radius: 4px;
}

.wx-contacts-list::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #10b981 0%, #059669 100%);
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.4);
    transition: background 0.2s ease, box-shadow 0.2s ease;
}

.wx-contacts-list::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #34d399 0%, #10b981 100%);
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.7);
}

.wx-contacts-list {
    scrollbar-width: thin;
    scrollbar-color: #10b981 rgba(0, 0, 0, 0.25);
}

.wx-contacts-list.is-dragging,
.wx-messages-flow.is-dragging {
    cursor: grabbing !important;
    scroll-behavior: auto !important;
    user-select: none;
}

/* 微信联系人浮动快捷回到顶部按钮 */
.btn-wx-scroll-top {
    position: absolute;
    bottom: 16px;
    right: 14px;
    background: rgba(16, 185, 129, 0.9);
    backdrop-filter: blur(8px);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: var(--radius-full);
    padding: 4px 11px;
    font-size: 0.74rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45), 0 0 10px rgba(16, 185, 129, 0.4);
    transition: var(--transition-fast);
    z-index: 20;
    display: flex;
    align-items: center;
    gap: 4px;
}

.btn-wx-scroll-top:hover {
    background: #10b981;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.55), 0 0 14px rgba(16, 185, 129, 0.65);
}

.btn-wx-scroll-top.hidden {
    display: none !important;
}

.wx-contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    cursor: pointer;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    transition: var(--transition-fast);
    content-visibility: auto;
    contain-intrinsic-size: 0 68px;
}

.wx-contact-item:hover {
    background: rgba(255, 255, 255, 0.04);
}

.wx-contact-item.active {
    background: linear-gradient(90deg, rgba(7, 193, 96, 0.15), rgba(7, 193, 96, 0.04));
    border-left: 3px solid #10b981;
}

.wx-contact-avatar {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    background: #1e293b;
    object-fit: cover;
    flex-shrink: 0;
}

.wx-contact-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.wx-contact-top {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.wx-contact-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: #f1f5f9;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wx-contact-time {
    font-size: 0.72rem;
    color: #64748b;
    white-space: nowrap;
}

.wx-contact-msg {
    font-size: 0.8rem;
    color: #94a3b8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 右侧主聊天面板 */
.wx-chat-main {
    display: flex;
    flex-direction: column;
    background: rgba(15, 23, 42, 0.4);
    height: 100%;
    min-height: 0;
    max-height: 100%;
    overflow: hidden;
    position: relative;
}

.wx-chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 24px;
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
}

.wx-current-contact {
    display: flex;
    align-items: center;
    gap: 12px;
}

.wx-chat-avatar {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    background: #1e293b;
    object-fit: cover;
}

.wx-header-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: #f8fafc;
}

.wx-header-sub {
    font-size: 0.78rem;
    color: #94a3b8;
    margin-top: 2px;
}

.wx-chat-tools {
    display: flex;
    align-items: center;
    gap: 12px;
}

.wx-msg-search-input {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    padding: 6px 12px;
    color: #f1f5f9;
    font-size: 0.82rem;
    outline: none;
    width: 180px;
    transition: var(--transition-fast);
}

.wx-msg-search-input:focus {
    width: 240px;
    border-color: #10b981;
}

/* 消息对话流 */
.wx-messages-flow {
    flex: 1 1 0%;
    min-height: 0;
    height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    overscroll-behavior: contain;
    position: relative;
}

/* 微信聊天消息流侧边上下滑动条 (高质感翡翠微光) */
.wx-messages-flow::-webkit-scrollbar {
    width: 6px;
}

.wx-messages-flow::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.25);
    border-radius: 4px;
}

.wx-messages-flow::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #10b981 0%, #059669 100%);
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.4);
    transition: background 0.2s ease, box-shadow 0.2s ease;
}

.wx-messages-flow::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #34d399 0%, #10b981 100%);
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.7);
}

.wx-messages-flow {
    scrollbar-width: thin;
    scrollbar-color: #10b981 rgba(0, 0, 0, 0.25);
}

.wx-empty-chat-placeholder {
    margin: auto;
    text-align: center;
    color: #64748b;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.placeholder-icon {
    font-size: 3rem;
    opacity: 0.6;
}

.placeholder-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #cbd5e1;
}

.placeholder-desc {
    font-size: 0.85rem;
    color: #64748b;
}

/* 消息行 */
.wx-msg-row {
    display: flex;
    gap: 12px;
    max-width: 82%;
    animation: fadeIn 0.2s ease;
}

.wx-msg-other {
    align-self: flex-start;
}

.wx-msg-self {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.wx-msg-avatar {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    flex-shrink: 0;
    background: #1e293b;
    object-fit: cover;
}

.wx-msg-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.wx-msg-self .wx-msg-body {
    align-items: flex-end;
}

.wx-msg-meta {
    font-size: 0.72rem;
    color: #64748b;
    display: flex;
    gap: 8px;
}

.wx-msg-bubble {
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 0.92rem;
    line-height: 1.5;
    word-break: break-word;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.wx-msg-other .wx-msg-bubble {
    background: rgba(30, 41, 59, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #f1f5f9;
    border-top-left-radius: 2px;
}

.wx-msg-self .wx-msg-bubble {
    background: linear-gradient(135deg, #059669, #10b981);
    color: #ffffff;
    border-top-right-radius: 2px;
}

.wx-msg-img img {
    max-width: 280px;
    max-height: 320px;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition-fast);
}

.wx-msg-img img:hover {
    transform: scale(1.02);
}

.wx-voice-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.wx-red-packet {
    background: linear-gradient(135deg, #ef4444, #dc2626) !important;
    color: #fff !important;
    display: flex;
    align-items: center;
    gap: 10px;
}

.wx-system-row {
    align-self: center;
    margin: 6px 0;
}

.wx-system-badge {
    background: rgba(255, 255, 255, 0.06);
    color: #94a3b8;
    font-size: 0.75rem;
    padding: 4px 12px;
    border-radius: 12px;
}

/* 底部操作条 */
.wx-chat-bottom-bar {
    padding: 12px 24px;
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.wx-bottom-info {
    font-size: 0.78rem;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 6px;
}

.wx-bottom-export-shortcuts {
    display: flex;
    gap: 8px;
}

/* 大数据报表模态框 */
.analytics-metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 20px;
}

.metric-card {
    padding: 16px;
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.metric-icon {
    font-size: 1.8rem;
    margin-bottom: 6px;
}

.metric-val {
    font-size: 1.6rem;
    font-weight: 800;
    color: #f8fafc;
}

.metric-label {
    font-size: 0.78rem;
    color: #94a3b8;
    margin-top: 4px;
}

.hourly-bar-chart {
    display: flex;
    align-items: flex-end;
    gap: 6px;
    height: 160px;
    padding: 20px 10px 10px;
}

.hourly-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    height: 100%;
    justify-content: flex-end;
}

.hourly-bar-fill {
    width: 100%;
    background: linear-gradient(180deg, #10b981, rgba(16, 185, 129, 0.3));
    border-radius: 4px 4px 0 0;
    transition: height 0.5s ease;
    min-height: 4px;
}

.hourly-label {
    font-size: 0.65rem;
    color: #64748b;
}

.analytics-split-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 16px;
}

.top-contacts-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.top-contact-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--radius-md);
    font-size: 0.86rem;
}

.keywords-cloud-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 8px 0;
}

.keyword-tag {
    padding: 4px 10px;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.25);
    border-radius: var(--radius-full);
    color: #34d399;
    font-size: 0.82rem;
    font-weight: 600;
}

/* 微信气泡超链接与头像高亮交互 */
.wx-msg-avatar {
    cursor: pointer;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}
.wx-msg-avatar:hover {
    transform: scale(1.08);
    box-shadow: 0 0 0 2px var(--color-success);
}
.wx-contact-avatar {
    cursor: pointer;
    transition: transform var(--transition-fast);
}
.wx-contact-avatar:hover {
    transform: scale(1.06);
}
.wx-chat-avatar {
    cursor: pointer;
    transition: transform var(--transition-fast);
}
.wx-chat-avatar:hover {
    transform: scale(1.06);
}
.chat-link {
    color: #38bdf8;
    text-decoration: underline;
    text-underline-offset: 3px;
    word-break: break-all;
    transition: color var(--transition-fast);
}
.chat-link:hover {
    color: #7dd3fc;
}
.link-icon {
    font-size: 0.72rem;
    margin-left: 2px;
}

/* 微信联系人详细名片弹窗 */
.wx-profile-card {
    max-width: 440px;
    width: 90%;
    padding: 0;
    overflow: hidden;
    border-radius: var(--radius-xl);
    animation: zoomIn 0.2s ease;
}
.wx-profile-banner {
    height: 100px;
    background: linear-gradient(135deg, #059669, #0284c7, #6366f1);
    position: relative;
}
.wx-profile-body {
    padding: 0 24px 24px;
}
.wx-profile-avatar-row {
    display: flex;
    align-items: flex-end;
    gap: 16px;
    margin-top: -45px;
    margin-bottom: 16px;
}
.wx-profile-big-avatar {
    width: 82px;
    height: 82px;
    border-radius: var(--radius-lg);
    border: 3px solid #1e293b;
    object-fit: cover;
    background: #334155;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}
.wx-profile-name-meta {
    padding-bottom: 4px;
}
.wx-profile-title-row {
    display: flex;
    align-items: center;
    gap: 8px;
}
.wx-profile-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
}
.wx-profile-gender {
    font-size: 0.72rem;
    padding: 2px 6px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
}
.wx-profile-remark {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 2px;
}
.wx-profile-details-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-md);
    padding: 14px;
    margin-bottom: 16px;
}
.wx-profile-detail-item {
    display: flex;
    font-size: 0.82rem;
    align-items: baseline;
}
.wx-profile-detail-item .detail-label {
    width: 85px;
    color: #64748b;
    flex-shrink: 0;
}
.wx-profile-detail-item .detail-val {
    color: #f1f5f9;
    flex: 1;
    word-break: break-all;
}
.detail-value-box {
    display: flex;
    align-items: center;
    gap: 8px;
}
.btn-copy-tag {
    background: rgba(7, 193, 96, 0.15);
    border: 1px solid rgba(7, 193, 96, 0.35);
    color: #10b981;
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition-fast);
}
.btn-copy-tag:hover {
    background: #10b981;
    color: #fff;
}
.wx-profile-stats-card {
    background: rgba(7, 193, 96, 0.06);
    border: 1px solid rgba(7, 193, 96, 0.2);
    border-radius: var(--radius-md);
    padding: 12px;
    margin-bottom: 18px;
}
.stats-card-head {
    font-size: 0.75rem;
    font-weight: 700;
    color: #10b981;
    margin-bottom: 8px;
}
.stats-card-grid {
    display: flex;
    justify-content: space-around;
    text-align: center;
}
.stats-card-col .col-num {
    font-size: 1.15rem;
    font-weight: 800;
}
.stats-card-col .col-lbl {
    font-size: 0.7rem;
    color: #94a3b8;
    margin-top: 2px;
}
.wx-profile-modal-actions {
    display: flex;
    gap: 12px;
}
.wx-profile-modal-actions .btn-primary-gradient {
    flex: 1;
}

@media (max-width: 960px) {
    .wx-chat-workspace {
        grid-template-columns: 1fr;
        height: auto;
    }
    .analytics-metrics-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .analytics-split-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   真实微信账号状态看板与安全待解密专区 (不显示任何假数据)
   ========================================================================== */

/* 左侧栏未解密真实账号状态 */
.wx-contacts-real-empty {
    padding: 32px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.empty-icon-shield {
    font-size: 2.4rem;
    width: 58px;
    height: 58px;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.2);
    animation: floatShield 3s ease-in-out infinite;
}

@keyframes floatShield {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

.empty-real-title {
    font-size: 1rem;
    font-weight: 700;
    color: #f8fafc;
}

.empty-real-desc {
    font-size: 0.8rem;
    color: #94a3b8;
    line-height: 1.5;
}

.btn-sidebar-decrypt {
    margin-top: 6px;
    width: 100%;
    padding: 9px 16px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border: none;
    border-radius: var(--radius-md);
    color: #fff;
    font-weight: 600;
    font-size: 0.84rem;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
    transition: all 0.2s ease;
}

.btn-sidebar-decrypt:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(16, 185, 129, 0.45);
}

.empty-demo-switch-tip {
    margin-top: 14px;
    font-size: 0.76rem;
    color: #64748b;
    line-height: 1.5;
}

.empty-demo-switch-tip a {
    color: #38bdf8;
    text-decoration: none;
    font-weight: 600;
}

.empty-demo-switch-tip a:hover {
    text-decoration: underline;
}

/* 右侧主面板：真实账号待解密仪表盘 */
.wx-real-account-dashboard {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    overflow-y: auto;
    max-height: 100%;
}

.wx-dashboard-hero {
    padding: 22px 24px;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.8) 0%, rgba(30, 41, 59, 0.6) 100%);
    border: 1px solid rgba(16, 185, 129, 0.25);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    gap: 14px;
    position: relative;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.wx-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    font-weight: 600;
    color: #34d399;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.25);
    padding: 4px 12px;
    border-radius: var(--radius-full);
    width: fit-content;
}

.hero-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 8px #10b981;
}

.wx-hero-title-row {
    display: flex;
    align-items: center;
    gap: 16px;
}

.wx-hero-icon {
    font-size: 2.2rem;
    width: 56px;
    height: 56px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wx-hero-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: #f8fafc;
    letter-spacing: -0.01em;
}

.wx-hero-sub {
    margin-top: 4px;
    font-size: 0.85rem;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.wx-hero-sub code {
    background: rgba(0, 0, 0, 0.3);
    padding: 2px 6px;
    border-radius: 4px;
    color: #38bdf8;
    font-family: var(--font-mono);
}

.wx-dot-sep {
    color: #475569;
}

.wx-hero-path-box {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    padding: 8px 14px;
    font-size: 0.82rem;
}

.path-label {
    color: #64748b;
    white-space: nowrap;
    font-weight: 600;
}

.path-text {
    color: #cbd5e1;
    font-family: var(--font-mono);
    word-break: break-all;
    flex: 1;
}

.btn-copy-path {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    color: #94a3b8;
    padding: 3px 10px;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.btn-copy-path:hover {
    color: #f8fafc;
    background: rgba(255, 255, 255, 0.15);
}

/* 真实数据库网格卡片 */
.wx-dashboard-section {
    padding: 20px 22px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.section-header-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 8px;
}

.section-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #f1f5f9;
    display: flex;
    align-items: center;
    gap: 10px;
}

.badge-count {
    font-size: 0.75rem;
    background: rgba(56, 189, 248, 0.15);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.3);
    padding: 2px 8px;
    border-radius: var(--radius-full);
}

.section-desc {
    font-size: 0.8rem;
    color: #64748b;
}

.wx-db-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}

.wx-db-card {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-md);
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    transition: all 0.2s;
}

.wx-db-card:hover {
    border-color: rgba(16, 185, 129, 0.35);
    background: rgba(16, 185, 129, 0.04);
    transform: translateY(-2px);
}

.wx-db-top {
    display: flex;
    align-items: center;
    gap: 8px;
}

.wx-db-icon {
    font-size: 1.1rem;
}

.wx-db-name {
    font-size: 0.84rem;
    font-weight: 600;
    color: #e2e8f0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}

.wx-db-tag {
    font-size: 0.68rem;
    padding: 1px 6px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.06);
    color: #94a3b8;
    white-space: nowrap;
}

.wx-db-size {
    font-size: 0.78rem;
    font-family: var(--font-mono);
    color: #10b981;
    font-weight: 600;
    margin-left: 28px;
}

.wx-db-more {
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #64748b;
    font-size: 0.82rem;
    border-style: dashed;
}

/* 解密操作与表单 */
.wx-decrypt-action-card {
    border-color: rgba(16, 185, 129, 0.3);
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.06) 0%, rgba(15, 23, 42, 0.7) 100%);
}

.decrypt-action-header {
    display: flex;
    align-items: center;
    gap: 16px;
}

.decrypt-icon-ring {
    font-size: 1.8rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #10b981;
    flex-shrink: 0;
}

.decrypt-text-col h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #f8fafc;
}

.decrypt-text-col p {
    font-size: 0.82rem;
    color: #94a3b8;
    margin-top: 3px;
    line-height: 1.45;
}

.wx-inline-decrypt-form {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.inline-input-wrap {
    flex: 1;
    min-width: 280px;
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-md);
    padding: 2px 6px;
    transition: all 0.2s;
}

.inline-input-wrap:focus-within {
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

.wx-inline-key-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #f8fafc;
    padding: 10px 12px;
    font-size: 0.88rem;
    font-family: var(--font-mono);
}

.wx-inline-key-input::placeholder {
    color: #64748b;
    font-family: var(--font-sans);
}

.btn-decrypt-submit {
    padding: 11px 22px;
    font-size: 0.92rem;
    font-weight: 700;
    white-space: nowrap;
}

/* 引导步骤小卡片 */
.wx-inline-guide-card {
    background: rgba(0, 0, 0, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-md);
    padding: 16px;
}

.wx-inline-guide-card .guide-title {
    font-size: 0.88rem;
    font-weight: 700;
    color: #38bdf8;
    margin-bottom: 12px;
}

.guide-cols {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.guide-col {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.guide-step-num {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(56, 189, 248, 0.15);
    border: 1px solid rgba(56, 189, 248, 0.3);
    color: #38bdf8;
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}

.guide-step-text {
    font-size: 0.78rem;
    color: #94a3b8;
    line-height: 1.5;
}

.guide-step-text b {
    color: #e2e8f0;
}

@media (max-width: 768px) {
    .guide-cols {
        grid-template-columns: 1fr;
    }
    .wx-inline-decrypt-form {
        flex-direction: column;
        align-items: stretch;
    }
    .btn-decrypt-submit {
        width: 100%;
        justify-content: center;
    }
}

/* 微信进程状态徽章 (实时感知本地 64 位微信) */
.wx-proc-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.35);
    color: #6ee7b7;
    font-size: 0.78rem;
    font-weight: 600;
    transition: all 0.25s ease;
}

.wx-proc-badge.offline {
    background: rgba(100, 116, 139, 0.15);
    border-color: rgba(100, 116, 139, 0.3);
    color: #94a3b8;
}

.wx-proc-badge .proc-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 10px #10b981;
    animation: procPulse 2s infinite ease-in-out;
}

.wx-proc-badge.offline .proc-dot {
    background: #64748b;
    box-shadow: none;
    animation: none;
}

@keyframes procPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.3); opacity: 0.6; }
}

/* 64 位一键全自动解密主卡片与按钮 */
.wx-auto-hero-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.12) 0%, rgba(56, 189, 248, 0.08) 100%);
    border: 1px solid rgba(16, 185, 129, 0.35);
    border-radius: var(--radius-lg);
    padding: 18px 22px;
    margin-bottom: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    position: relative;
    overflow: hidden;
}

.wx-auto-hero-box::before {
    content: '';
    position: absolute;
    top: 0; left: -100%; width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    animation: shimmerPass 4s infinite linear;
}

@keyframes shimmerPass {
    0% { left: -100%; }
    100% { left: 200%; }
}

.wx-auto-hero-left {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.wx-auto-hero-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.15rem;
    font-weight: 800;
    color: #f8fafc;
}

.wx-tag-64bit {
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 4px;
    background: rgba(16, 185, 129, 0.2);
    border: 1px solid #10b981;
    color: #a7f3d0;
    font-weight: 700;
}

.wx-auto-hero-desc {
    font-size: 0.84rem;
    color: #94a3b8;
    line-height: 1.5;
}

.btn-auto-extract-large {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 28px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, #059669 0%, #10b981 50%, #06b6d4 100%);
    color: #ffffff;
    font-size: 0.98rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.4);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    white-space: nowrap;
}

.btn-auto-extract-large:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.6);
    filter: brightness(1.1);
}

.btn-auto-extract-large:active {
    transform: translateY(0);
}

.btn-auto-extract-large:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    filter: grayscale(0.5);
}

/* 折叠式手动密钥输入区 */
.wx-manual-key-accordion {
    margin-top: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    background: rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.wx-manual-key-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    font-size: 0.84rem;
    color: #94a3b8;
    cursor: pointer;
    transition: all 0.2s;
    user-select: none;
}

.wx-manual-key-header:hover {
    color: #e2e8f0;
    background: rgba(255, 255, 255, 0.03);
}

.wx-manual-key-body {
    padding: 14px 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* ==========================================================================
   35 大平台维度切换器 (Dimension Tabs)
   ========================================================================== */
.dimension-tabs-wrapper {
    display: flex;
    justify-content: center;
    margin: 18px 0 14px 0;
    width: 100%;
}

.dimension-tabs {
    display: inline-flex;
    align-items: center;
    background: rgba(13, 17, 28, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    padding: 5px;
    gap: 6px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.dimension-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 18px;
    border-radius: 999px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-size: 0.88rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
    user-select: none;
}

.dimension-tab:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-1px);
}

.dimension-tab.active {
    color: #ffffff;
    background: var(--primary-gradient);
    box-shadow: 0 4px 15px var(--border-glow);
    font-weight: 600;
}

.dimension-tab .dim-icon {
    font-size: 1rem;
    line-height: 1;
}

.dimension-tab .dim-count {
    display: inline-block;
    padding: 1px 7px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    background: rgba(0, 0, 0, 0.28);
    color: rgba(255, 255, 255, 0.9);
}

.dimension-tab.active .dim-count {
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff;
}

/* 隐藏不在当前激活维度的平台标签 */
.category-item.hidden-by-dim {
    display: none !important;
}

/* ==========================================================================
   新增平台高亮发光与品牌配色
   ========================================================================== */
/* Instagram */
.category-item[data-platform="instagram"].active {
    background: linear-gradient(135deg, rgba(131, 58, 180, 0.35) 0%, rgba(253, 29, 29, 0.4) 50%, rgba(252, 176, 69, 0.35) 100%);
    border-color: #e1306c;
    box-shadow: 0 0 20px rgba(225, 48, 108, 0.45);
}

/* X (Twitter) */
.category-item[data-platform="twitter"].active {
    background: linear-gradient(135deg, rgba(29, 161, 242, 0.35) 0%, rgba(0, 0, 0, 0.6) 100%);
    border-color: #1da1f2;
    box-shadow: 0 0 20px rgba(29, 161, 242, 0.45);
}

/* 小说平台 (番茄、起点、晋江、七猫、飞卢等) */
.category-novel.active {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.35) 0%, rgba(5, 150, 105, 0.4) 100%);
    border-color: #10b981;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.45);
}
.category-item[data-platform="fanqie"].active {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.35) 0%, rgba(245, 158, 11, 0.4) 100%);
    border-color: #ef4444;
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.45);
}
.category-item[data-platform="qidian"].active {
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.35) 0%, rgba(185, 28, 28, 0.4) 100%);
    border-color: #dc2626;
    box-shadow: 0 0 20px rgba(220, 38, 38, 0.45);
}
.category-item[data-platform="jinjiang"].active {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.35) 0%, rgba(219, 39, 119, 0.4) 100%);
    border-color: #ec4899;
    box-shadow: 0 0 20px rgba(236, 72, 153, 0.45);
}

/* 网盘平台 (百度、阿里、夸克、微云等) */
.category-netdisk.active {
    background: linear-gradient(135deg, rgba(2, 132, 199, 0.35) 0%, rgba(6, 182, 212, 0.4) 100%);
    border-color: #06b6d4;
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.45);
}
.category-item[data-platform="baidu_pan"].active {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.35) 0%, rgba(59, 130, 246, 0.4) 100%);
    border-color: #3b82f6;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.45);
}
.category-item[data-platform="ali_pan"].active {
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.35) 0%, rgba(234, 88, 12, 0.4) 100%);
    border-color: #f97316;
    box-shadow: 0 0 20px rgba(249, 115, 22, 0.45);
}
.category-item[data-platform="quark_pan"].active {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.35) 0%, rgba(99, 102, 241, 0.4) 100%);
    border-color: #0ea5e9;
    box-shadow: 0 0 20px rgba(14, 165, 233, 0.45);
}
.category-item[data-platform="lanzou_pan"].active {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.35) 0%, rgba(14, 165, 233, 0.4) 100%);
    border-color: #3b82f6;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.45);
}

/* ==========================================================================
   📚 小说书库全本专属展示容器 (Novel Container)
   ========================================================================== */
.novel-block {
    margin-bottom: 24px;
}

.novel-card-layout {
    display: flex;
    gap: 22px;
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: 22px;
    backdrop-filter: blur(12px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

@media (max-width: 768px) {
    .novel-card-layout {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

.novel-cover-box {
    position: relative;
    width: 140px;
    min-width: 140px;
    height: 190px;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: #0f172a;
}

.novel-cover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.novel-cover-box:hover .novel-cover-img {
    transform: scale(1.05);
}

.novel-status-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    background: rgba(16, 185, 129, 0.9);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.novel-details-box {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.novel-book-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: #f8fafc;
    line-height: 1.3;
}

.novel-tags-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
}

.novel-tag {
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 0.76rem;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #94a3b8;
}

.author-tag {
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.1);
    border-color: rgba(56, 189, 248, 0.25);
}

.platform-tag {
    color: #f59e0b;
    background: rgba(245, 158, 11, 0.1);
    border-color: rgba(245, 158, 11, 0.25);
}

.word-tag {
    color: #a78bfa;
    background: rgba(167, 139, 250, 0.1);
    border-color: rgba(167, 139, 250, 0.25);
}

.novel-intro-card {
    background: rgba(0, 0, 0, 0.25);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    border-left: 3px solid var(--theme-accent);
}

.novel-intro-badge {
    font-size: 0.76rem;
    font-weight: 600;
    color: #94a3b8;
    margin-bottom: 4px;
    display: inline-block;
}

.novel-intro-p {
    font-size: 0.84rem;
    line-height: 1.6;
    color: #cbd5e1;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.novel-vip-solution-banner {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.25);
    font-size: 0.82rem;
    color: #6ee7b7;
}

.novel-vip-solution-banner strong {
    color: #ffffff;
    font-weight: 600;
}

.pulse-dot-green {
    width: 8px;
    height: 8px;
    background-color: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 10px #10b981;
    animation: pulseGlow 1.5s infinite;
    flex-shrink: 0;
}

@keyframes pulseGlow {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.85); }
}

.novel-actions-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 4px;
}

.btn-novel-txt {
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%) !important;
    border-color: #38bdf8 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 15px rgba(2, 132, 199, 0.35) !important;
}

.btn-novel-txt:hover {
    box-shadow: 0 6px 20px rgba(2, 132, 199, 0.5) !important;
    transform: translateY(-2px);
}

.btn-novel-epub {
    background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
    border-color: #34d399 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 15px rgba(5, 150, 105, 0.35) !important;
}

.btn-novel-epub:hover {
    box-shadow: 0 6px 20px rgba(5, 150, 105, 0.5) !important;
    transform: translateY(-2px);
}

/* 章节目录索引展示 */
.novel-chapters-card {
    margin-top: 16px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    padding: 16px 20px;
}

.chapters-head-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 14px;
}

.ch-head-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ch-icon {
    font-size: 1.1rem;
}

.ch-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #f1f5f9;
}

.ch-count-badge {
    font-size: 0.74rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(99, 102, 241, 0.2);
    color: #a5b4fc;
}

.ch-sub-hint {
    font-size: 0.78rem;
    color: #94a3b8;
}

.novel-chapter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 8px;
    max-height: 280px;
    overflow-y: auto;
    padding-right: 6px;
}

.novel-chapter-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 6px;
    font-size: 0.8rem;
    color: #cbd5e1;
    transition: all 0.2s ease;
}

.novel-chapter-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

.novel-chapter-title {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-right: 6px;
}

.novel-ch-badge {
    flex-shrink: 0;
    font-size: 0.68rem;
    padding: 1px 5px;
    border-radius: 4px;
}

.novel-ch-badge.vip {
    background: rgba(245, 158, 11, 0.2);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.novel-ch-badge.free {
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
}

/* ==========================================================================
   💾 高速网盘专属不限速展示容器 (Netdisk Container)
   ========================================================================== */
.netdisk-block {
    margin-bottom: 24px;
}

.netdisk-card-layout {
    display: flex;
    gap: 20px;
    background: rgba(15, 23, 42, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: 22px;
    backdrop-filter: blur(12px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

@media (max-width: 768px) {
    .netdisk-card-layout {
        flex-direction: column;
    }
}

.netdisk-visual-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 110px;
    min-width: 110px;
    height: 110px;
    background: linear-gradient(135deg, rgba(2, 132, 199, 0.2) 0%, rgba(99, 102, 241, 0.25) 100%);
    border: 1px solid rgba(56, 189, 248, 0.3);
    border-radius: var(--radius-md);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.netdisk-icon-symbol {
    font-size: 2.2rem;
    line-height: 1;
    margin-bottom: 6px;
}

.netdisk-brand-name {
    font-size: 0.78rem;
    font-weight: 600;
    color: #38bdf8;
}

.netdisk-content-wrap {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.netdisk-title-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}

.netdisk-file-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #f8fafc;
    word-break: break-all;
    line-height: 1.4;
}

.netdisk-size-pill {
    padding: 3px 12px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    background: rgba(14, 165, 233, 0.18);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.3);
    flex-shrink: 0;
}

.netdisk-meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 10px;
}

.netdisk-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 0.82rem;
}

.meta-label {
    color: #94a3b8;
}

.meta-pwd {
    color: #fbbf24;
    font-family: monospace;
    font-size: 0.95rem;
    letter-spacing: 1px;
}

.netdisk-speed-active {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #34d399;
    font-weight: 500;
}

.netdisk-speed-guide {
    background: rgba(14, 165, 233, 0.08);
    border-left: 3px solid #0284c7;
    border-radius: 4px;
    padding: 8px 12px;
    font-size: 0.8rem;
    color: #93c5fd;
    line-height: 1.5;
}

.netdisk-actions-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 4px;
}

.btn-netdisk-fast {
    background: linear-gradient(135deg, #0284c7 0%, #2563eb 100%) !important;
    border-color: #38bdf8 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 15px rgba(2, 132, 199, 0.4) !important;
}

.btn-netdisk-fast:hover {
    box-shadow: 0 6px 20px rgba(2, 132, 199, 0.6) !important;
    transform: translateY(-2px);
}

.btn-copy-direct {
    background: rgba(255, 255, 255, 0.06) !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
    color: #e2e8f0 !important;
}

.btn-copy-direct:hover {
    background: rgba(255, 255, 255, 0.12) !important;
    color: #ffffff !important;
}

.btn-open-origin {
    background: rgba(255, 255, 255, 0.04) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    color: #94a3b8 !important;
}

.btn-open-origin:hover {
    background: rgba(255, 255, 255, 0.08) !important;
    color: #e2e8f0 !important;
}

/* ========================================================================= */
/* 多媒体处理工具集 (纯在线模式) 专属轻奢暗黑科技 UI */
/* ========================================================================= */

.tools-workstation-view {
    display: flex;
    flex-direction: column;
    gap: 20px;
    animation: fadeIn 0.3s ease;
    margin-top: 10px;
    margin-bottom: 40px;
}

.tools-hero-banner {
    padding: 24px 28px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(30, 27, 75, 0.45) 0%, rgba(15, 23, 42, 0.65) 100%);
    border: 1px solid rgba(139, 92, 246, 0.25);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    position: relative;
    overflow: hidden;
}

.tools-hero-banner::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 320px;
    height: 100%;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.18) 0%, transparent 70%);
    pointer-events: none;
}

.tools-badge-wrap {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.3);
    padding: 4px 12px;
    border-radius: 9999px;
    font-size: 11px;
    color: #6ee7b7;
    font-weight: 500;
    margin-bottom: 12px;
}

.tools-main-title {
    font-size: 1.75rem;
    font-weight: 800;
    margin: 0 0 8px 0;
    display: flex;
    align-items: center;
    gap: 12px;
    letter-spacing: -0.02em;
}

.tools-badge-tag {
    font-size: 11px;
    background: linear-gradient(135deg, #ec4899, #8b5cf6);
    color: #ffffff;
    padding: 3px 10px;
    border-radius: 6px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tools-subtitle {
    color: #94a3b8;
    font-size: 13.5px;
    line-height: 1.7;
    margin: 0;
    max-width: 900px;
}

.tools-subtitle strong {
    color: #f1f5f9;
}

/* 工具集 5 大核心功能导航栏 */
.tools-nav-bar {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    padding: 8px;
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.tool-nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 12px 10px;
    border-radius: 10px;
    background: transparent;
    border: 1px solid transparent;
    color: #94a3b8;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    gap: 3px;
}

.tool-nav-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #f8fafc;
    transform: translateY(-1px);
}

.tool-nav-btn.active {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.25) 0%, rgba(236, 72, 153, 0.18) 100%);
    border-color: rgba(168, 85, 247, 0.4);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.25);
}

.tool-nav-btn .t-icon {
    font-size: 1.4rem;
    margin-bottom: 2px;
}

.tool-nav-btn .t-name {
    font-size: 13px;
    font-weight: 700;
}

.tool-nav-btn .t-desc {
    font-size: 10px;
    color: #64748b;
}

.tool-nav-btn.active .t-desc {
    color: #cbd5e1;
}

/* 工具面板布局 */
.tool-grid-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.tool-card {
    padding: 22px;
    border-radius: 14px;
    display: flex;
    flex-direction: column;
}

.card-title-box {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 700;
    color: #f8fafc;
    margin-bottom: 16px;
}

.card-title-box .card-icon {
    font-size: 1.2rem;
}

/* 拖拽上传框 */
.tool-drop-zone {
    border: 2px dashed rgba(255, 255, 255, 0.18);
    border-radius: 12px;
    padding: 28px 16px;
    text-align: center;
    cursor: pointer;
    background: rgba(15, 23, 42, 0.4);
    transition: all 0.25s ease;
    position: relative;
}

.tool-drop-zone:hover, .tool-drop-zone.drag-hover {
    border-color: #8b5cf6;
    background: rgba(139, 92, 246, 0.08);
    transform: scale(1.005);
}

.tool-file-hidden {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    width: 100%;
    height: 100%;
}

.drop-icon {
    font-size: 2.2rem;
    display: block;
    margin-bottom: 8px;
}

.drop-text {
    font-size: 14px;
    font-weight: 600;
    color: #f1f5f9;
    margin-bottom: 4px;
}

.drop-sub {
    font-size: 11px;
    color: #64748b;
}

.tool-video-preview {
    width: 100%;
    max-height: 240px;
    background: #000;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.tool-file-meta {
    font-size: 11px;
    color: #94a3b8;
    margin-top: 6px;
}

.tool-select, .brand-input {
    width: 100%;
    padding: 10px 12px;
    border-radius: 8px;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    font-size: 13px;
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.tool-select:focus, .brand-input:focus {
    border-color: #8b5cf6;
    box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.2);
}

.tool-slider {
    width: 100%;
    accent-color: #8b5cf6;
    cursor: pointer;
}

.trim-section {
    margin-top: 14px;
    background: rgba(0, 0, 0, 0.25);
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.trim-range-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
    font-size: 12px;
    color: #cbd5e1;
}

.trim-range-row span {
    min-width: 90px;
}

/* 进度条 */
.tool-progress-wrap {
    margin-top: 14px;
    animation: fadeIn 0.2s ease;
}

.tool-progress-bar-bg {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.tool-progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #10b981, #06b6d4, #8b5cf6);
    border-radius: 4px;
    transition: width 0.2s ease;
}

.tool-progress-text {
    font-size: 12px;
    color: #6ee7b7;
    margin-top: 6px;
    text-align: center;
}

.tool-result-wrap {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    animation: fadeIn 0.3s ease;
}

.tool-stats-banner {
    padding: 10px 14px;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.25);
    border-radius: 8px;
    font-size: 12.5px;
    color: #a7f3d0;
    margin-bottom: 12px;
    line-height: 1.5;
}

.tool-stats-banner strong {
    color: #ffffff;
}

.tool-result-video {
    width: 100%;
    max-height: 220px;
    background: #000;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

/* ------------------------------------------------------------------------- */
/* 字幕编辑器样式 */
/* ------------------------------------------------------------------------- */
.sub-table-container {
    max-height: 320px;
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
}

.sub-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12.5px;
}

.sub-table th, .sub-table td {
    padding: 8px 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    text-align: left;
}

.sub-table th {
    background: rgba(15, 23, 42, 0.85);
    color: #94a3b8;
    position: sticky;
    top: 0;
    z-index: 2;
}

.btn-sub-time {
    background: rgba(139, 92, 246, 0.15);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 4px;
    color: #c4b5fd;
    font-size: 11px;
    padding: 2px 6px;
    cursor: pointer;
    font-family: monospace;
}

.btn-sub-time:hover {
    background: rgba(139, 92, 246, 0.3);
    color: #fff;
}

.sub-edit-input {
    width: 100%;
    background: transparent;
    border: 1px solid transparent;
    color: #f1f5f9;
    padding: 3px 6px;
    border-radius: 4px;
    font-size: 12.5px;
}

.sub-edit-input:focus {
    background: rgba(0, 0, 0, 0.3);
    border-color: #8b5cf6;
    outline: none;
}

/* ------------------------------------------------------------------------- */
/* 图片压缩 Before / After 滑动比对视窗 */
/* ------------------------------------------------------------------------- */
.image-compare-wrap {
    margin-bottom: 16px;
}

.image-compare-container {
    position: relative;
    width: 100%;
    height: 240px;
    overflow: hidden;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: #000;
    user-select: none;
}

.compare-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.compare-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    overflow: hidden;
    border-right: 2px solid #8b5cf6;
}

.compare-overlay .compare-img {
    width: 100%;
    max-width: none;
}

.compare-handle {
    position: absolute;
    top: 0;
    left: 50%;
    width: 28px;
    height: 100%;
    margin-left: -14px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: ew-resize;
    z-index: 10;
}

.handle-circle {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #8b5cf6;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.compare-labels {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: #94a3b8;
    margin-top: 6px;
}

.image-results-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 280px;
    overflow-y: auto;
}

.image-item-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    border-radius: 8px;
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.image-thumb {
    width: 44px;
    height: 44px;
    border-radius: 6px;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.image-info-box {
    flex: 1;
    min-width: 0;
}

.image-name {
    font-size: 12.5px;
    font-weight: 600;
    color: #f1f5f9;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.comp-metric-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11.5px;
    margin-top: 3px;
}

.metric-saved {
    background: rgba(16, 185, 129, 0.15);
    color: #6ee7b7;
    padding: 1px 6px;
    border-radius: 4px;
    font-weight: 700;
}

.metric-sizes {
    color: #94a3b8;
}

/* ------------------------------------------------------------------------- */
/* PDF 工具栏 */
/* ------------------------------------------------------------------------- */
.pdf-subtabs-row {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.pdf-subtab-btn {
    padding: 8px 16px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pdf-subtab-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.pdf-subtab-btn.active {
    background: linear-gradient(135deg, #0284c7, #06b6d4);
    border-color: #38bdf8;
    color: #fff;
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.3);
}

.pdf-file-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.pdf-file-item {
    padding: 8px 12px;
    border-radius: 6px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 12.5px;
    color: #e2e8f0;
}

/* ------------------------------------------------------------------------- */
/* 音乐与动漫结果卡片专属高保真样式 */
/* ------------------------------------------------------------------------- */
.music-player-card {
    display: flex;
    gap: 24px;
    padding: 24px;
    border-radius: 18px;
    background: radial-gradient(circle at top right, rgba(139, 92, 246, 0.15) 0%, rgba(15, 23, 42, 0.8) 100%);
    border: 1px solid rgba(168, 85, 247, 0.3);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
    margin-top: 16px;
    position: relative;
    overflow: hidden;
}

.vinyl-disc-wrap {
    position: relative;
    width: 140px;
    height: 140px;
    flex-shrink: 0;
}

.vinyl-disc {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle, #222 25%, #0d0d0d 30%, #1a1a1a 45%, #050505 70%);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6), inset 0 0 10px rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: rotateVinyl 12s linear infinite;
    animation-play-state: paused;
}

.music-playing .vinyl-disc {
    animation-play-state: running;
}

@keyframes rotateVinyl {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.vinyl-cover-img {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #111;
}

.music-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.music-title-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.music-song-name {
    font-size: 1.25rem;
    font-weight: 800;
    color: #ffffff;
}

.music-quality-pill {
    background: linear-gradient(135deg, #10b981, #06b6d4);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
}

.music-meta-line {
    font-size: 13px;
    color: #94a3b8;
    margin-top: 4px;
}

.music-meta-line strong {
    color: #e2e8f0;
}

.music-lyrics-preview {
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 12px;
    color: #cbd5e1;
    font-family: monospace;
    max-height: 85px;
    overflow-y: auto;
    white-space: pre-wrap;
    margin: 10px 0;
}

.music-actions-row {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

/* 动漫专属结果卡片 */
.anime-badge-row {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 8px;
}

.anime-badge-pill {
    background: rgba(236, 72, 153, 0.2);
    border: 1px solid rgba(236, 72, 153, 0.4);
    color: #f472b6;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
}

@media (max-width: 900px) {
    .tools-nav-bar {
        grid-template-columns: repeat(2, 1fr);
    }
    .tool-grid-2col {
        grid-template-columns: 1fr;
    }
    .music-player-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

/* ==========================================================================
   左右双栏现代工作台布局：左侧核心主操作区 + 右侧常驻吸顶直达侧边栏
   ========================================================================== */
.workstation-split-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 24px;
    align-items: stretch;
    width: 100%;
    margin-top: 14px;
    margin-bottom: 40px;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.workstation-primary-pane {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* 确保主面板最后一个卡片(解析历史记录)的底外边距为0，与右侧底边严丝合缝像素级齐平 */
.workstation-primary-pane .history-section {
    margin-bottom: 0 !important;
}

.workstation-side-dock {
    position: relative;
    height: 100%;
    min-height: 0;
    display: flex;
    flex-direction: column;
    z-index: 35;
    box-sizing: border-box;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* 侧边栏折叠收起状态 */
.workstation-split-layout.is-side-collapsed {
    grid-template-columns: minmax(0, 1fr) 48px;
}

.workstation-side-dock.is-collapsed {
    cursor: pointer;
}

.workstation-side-dock.is-collapsed .portal-badge-hint,
.workstation-side-dock.is-collapsed .portal-dim-filters,
.workstation-side-dock.is-collapsed .portal-avatar-grid,
.workstation-side-dock.is-collapsed .portal-main-title,
.workstation-side-dock.is-collapsed .portal-scroll-nav-btn {
    display: none !important;
}

.workstation-side-dock.is-collapsed .platform-jump-portal {
    padding: 12px 6px;
    min-width: 48px;
    max-width: 48px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.workstation-side-dock.is-collapsed .portal-top-bar {
    flex-direction: column;
    gap: 12px;
    margin-bottom: 0;
}

.workstation-side-dock.is-collapsed .portal-header-row {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
    justify-content: center;
}

/* 侧栏模式下全平台直达面板样式 */
.platform-jump-portal {
    padding: 16px 14px;
    border-radius: 18px;
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.82) 0%, rgba(30, 41, 59, 0.72) 100%);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 16px 40px -12px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
    box-sizing: border-box;
}

.platform-jump-portal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(168, 85, 247, 0.8), rgba(99, 102, 241, 0.8), transparent);
}

.portal-header-row {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
}

.portal-top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.portal-top-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.portal-scroll-nav-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 6px;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #94a3b8;
    font-size: 0.72rem;
    transition: all 0.2s ease;
}

.portal-scroll-nav-btn:hover {
    background: rgba(168, 85, 247, 0.35);
    border-color: #a855f7;
    color: #ffffff;
    transform: translateY(-1px);
}

.portal-left-title {
    display: flex;
    align-items: center;
    gap: 7px;
}

.portal-title-icon {
    font-size: 1.15rem;
    filter: drop-shadow(0 0 8px rgba(168, 85, 247, 0.6));
}

.portal-main-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #f8fafc;
    letter-spacing: 0.4px;
}

.portal-toggle-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #cbd5e1;
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

.portal-toggle-btn:hover {
    background: rgba(168, 85, 247, 0.3);
    border-color: #a855f7;
    color: #fff;
    transform: scale(1.06);
}

.portal-badge-hint {
    font-size: 0.72rem;
    color: #94a3b8;
    background: rgba(255, 255, 255, 0.05);
    padding: 3px 8px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
    line-height: 1.3;
}

.portal-dim-filters {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.portal-filter-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    padding: 2px 7px;
    color: #94a3b8;
    font-size: 0.72rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.portal-filter-btn:hover {
    background: rgba(255, 255, 255, 0.14);
    color: #f1f5f9;
}

.portal-filter-btn.active {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.6) 0%, rgba(99, 102, 241, 0.6) 100%);
    border-color: #a855f7;
    color: #ffffff;
    font-weight: 600;
    box-shadow: 0 0 10px rgba(168, 85, 247, 0.4);
}

.portal-avatar-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px 4px;
    align-content: start;
    align-items: start;
    grid-auto-rows: max-content;
    flex: 1 1 0;
    min-height: 0;
    height: 100%;
    max-height: none;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 4px 2px 10px 2px;
    scroll-behavior: smooth;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
    scrollbar-width: thin;
    scrollbar-color: rgba(168, 85, 247, 0.6) rgba(255, 255, 255, 0.04);
}

.portal-avatar-grid.is-dragging {
    cursor: grabbing !important;
    scroll-behavior: auto !important;
}

.portal-avatar-grid::-webkit-scrollbar {
    width: 6px;
}

.portal-avatar-grid::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 6px;
}

.portal-avatar-grid::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(168, 85, 247, 0.75) 0%, rgba(99, 102, 241, 0.75) 100%);
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.portal-avatar-grid::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, rgba(168, 85, 247, 1) 0%, rgba(99, 102, 241, 1) 100%);
}

/* 纯头像直达卡片：只显示头像与图标，绝对不显示链接地址 */
.jump-avatar-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    cursor: pointer;
    padding: 4px 2px;
    border-radius: 10px;
    transition: all 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    user-select: none;
}

.jump-avatar-item:hover {
    transform: translateY(-4px) scale(1.08);
}

.jump-avatar-circle {
    width: 46px;
    height: 46px;
    border-radius: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.03) 100%);
    border: 1.5px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: all 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    padding: 2px;
    box-sizing: border-box;
}

.jump-avatar-item:hover .jump-avatar-circle {
    border-color: var(--theme-primary, #a855f7);
    box-shadow: 0 0 16px var(--theme-glow, rgba(168, 85, 247, 0.6));
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.25) 0%, rgba(99, 102, 241, 0.25) 100%);
    transform: scale(1.06);
}

.jump-avatar-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.jump-avatar-circle::after {
    content: '↗';
    position: absolute;
    top: -3px;
    right: -3px;
    font-size: 8px;
    font-weight: 700;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: linear-gradient(135deg, #a855f7, #6366f1);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.6);
    transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 0 6px rgba(168, 85, 247, 0.8);
    z-index: 2;
}

.jump-avatar-item:hover .jump-avatar-circle::after {
    opacity: 1;
    transform: scale(1);
}

.jump-avatar-name {
    margin-top: 4px;
    font-size: 0.7rem;
    color: #cbd5e1;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 66px;
    transition: color 0.2s ease;
}

.jump-avatar-item:hover .jump-avatar-name {
    color: #ffffff;
    font-weight: 600;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.4);
}

.jump-avatar-item.hidden-by-filter {
    display: none !important;
}

/* 响应式移动端与中屏幕适配 */
@media (max-width: 1120px) {
    .workstation-split-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .workstation-side-dock {
        position: static;
        height: auto !important;
        max-height: none !important;
        order: 2;
    }
    .platform-jump-portal {
        height: auto !important;
        max-height: none !important;
    }
    .portal-avatar-grid {
        grid-template-columns: repeat(auto-fill, minmax(62px, 1fr));
        max-height: 280px;
        flex: none;
    }
    .workstation-split-layout.is-side-collapsed {
        grid-template-columns: 1fr;
    }
}

/* 分类按钮内正版矢量图标支持 */
.category-item .cat-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    margin-right: 5px;
    vertical-align: middle;
    pointer-events: none; /* 确保点击穿透至 category-item 按钮，保障分类切换 100% 灵敏响应 */
    position: relative;
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.2s ease;
}

.category-item .cat-name,
.category-item .cat-icon * {
    pointer-events: none; /* 确保点击文本与内部所有 SVG/图片均穿透直接触发按钮切换 */
}

/* 维度分类切换按钮穿透保障 */
.dimension-tab .dim-icon,
.dimension-tab .dim-label,
.dimension-tab .dim-count,
.dimension-tab * {
    pointer-events: none; /* 确保点击维度按钮的文字或数字药丸时直接触发父级 button 切换 */
}

.category-item .cat-icon svg {
    width: 100%;
    height: 100%;
    border-radius: 5px;
    display: block;
}

.category-item:hover .cat-icon {
    transform: scale(1.25);
    filter: drop-shadow(0 0 8px rgba(168, 85, 247, 0.9));
}

/* 指南卡片标题前正版图标展示 */
.guide-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    vertical-align: middle;
}

.guide-icon svg {
    width: 100%;
    height: 100%;
    border-radius: 6px;
    display: block;
}

/* 真实提取App图标图片适配 */
.jump-avatar-icon img,
.cat-icon img,
.guide-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    border-radius: 8px;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.35));
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}


