/* ===== 主题变量 ===== */

/* 黑夜模式（极简夜）：炭黑底 + 暖橙聚光，更克制留白 */
[data-theme="dark"] {
    --theme-primary: #FF7A3D;
    --theme-primary-light: #FF9A6B;
    --theme-primary-gradient: linear-gradient(135deg, #FF8A4C 0%, #FF6B35 100%);
    --theme-primary-hover: #F06A2E;
    --theme-secondary-gradient: linear-gradient(135deg, #FF6B35 0%, #FF4D6D 100%);
    --theme-tertiary-gradient: linear-gradient(135deg, #232834 0%, #181C25 100%);
    --theme-background: #0D0F13;
    --theme-surface: #161920;
    --theme-card: #1B1F27;
    --theme-card-gradient: linear-gradient(180deg, #161920 0%, #1B1F27 100%);
    --theme-text: #ECECEF;
    --theme-text-secondary: #8B909C;
    --theme-border: #272C36;
    --theme-border-strong: #3A414F;
    --theme-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
    --theme-radius: 16px;
    --theme-radius-sm: 10px;
}

/* 白天模式（极简日 · pansou 风）：云白底 + 暖橙强调 */
[data-theme="light"] {
    --theme-primary: #FF6B35;
    --theme-primary-light: #FF8A4C;
    --theme-primary-gradient: linear-gradient(135deg, #FF8A4C 0%, #FF6B35 100%);
    --theme-primary-hover: #F05A28;
    --theme-secondary-gradient: linear-gradient(135deg, #FF6B35 0%, #FF4D6D 100%);
    --theme-tertiary-gradient: linear-gradient(135deg, #FFFFFF 0%, #F3F4F6 100%);
    --theme-background: #F5F6F8;
    --theme-surface: #FFFFFF;
    --theme-card: #FFFFFF;
    --theme-card-gradient: linear-gradient(180deg, #FFFFFF 0%, #FCFCFD 100%);
    --theme-text: #181B22;
    --theme-text-secondary: #6B7280;
    --theme-border: #EBEDF0;
    --theme-border-strong: #DBDEE4;
    --theme-shadow: 0 12px 40px rgba(20, 24, 38, 0.08);
    --theme-radius: 16px;
    --theme-radius-sm: 10px;
}

/* ===== 全局基础样式 ===== */

html,
body {
    color: var(--theme-text);
    background-color: var(--theme-background) !important;
    transition: background-color 0.3s ease, color 0.3s ease;
    font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}

body {
    letter-spacing: 0.01em;
    text-rendering: optimizeLegibility;
}

a {
    transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

::selection {
    color: #0E1620;
    background: var(--theme-primary);
}

/* ===== 字体规则 ===== */

/* 中文衬线 display 字体（标题/海报名） */
.search-title,
.logo-name,
.hot-category-card-title,
.home-banner-name,
.latest-title,
.ranking-title {
    font-family: "Noto Serif SC", "Noto Sans SC", serif;
}

/* 等宽字体（数据/标签/编号） */
.logo-version,
.stat-value,
.hot-category-card-count,
.hot-category-rank,
.search-kicker,
.info-card-title,
.pan-type-label {
    font-family: "JetBrains Mono", "Courier New", monospace;
}

@media (max-width: 768px) {
    #app > .top-nav .top-nav-logo .logo-version {
        display: none !important;
    }
}

/* ===== Element Plus 对话框覆盖 ===== */

.el-dialog {
    border-radius: 20px !important;
    overflow: hidden;
    border: 1px solid var(--theme-border);
    box-shadow: 0 28px 80px rgba(18, 24, 38, 0.18) !important;
}

.el-overlay {
    backdrop-filter: blur(6px);
    background: rgba(16, 21, 29, 0.28) !important;
}
