/* ============================================================
   个性化导航网站 - 主样式
   ============================================================ */

:root {
    --sidebar-w: 76px;
    --content-max: 1180px;
    --radius: 18px;
    --tint-rgb: 255, 255, 255;  /* 玻璃/边框的 RGB 通道（浅色主题翻成黑色） */
    --text: #eaf0ff;
    --text-dim: rgba(234, 240, 255, .62);
    --text-faint: rgba(234, 240, 255, .38);
    --glass: rgba(var(--tint-rgb), .09);
    --glass-hi: rgba(var(--tint-rgb), .16);
    --glass-line: rgba(var(--tint-rgb), .16);
    --accent: #5b8ff9;
    --accent-bg: rgba(91, 143, 249, .15);   /* 强调色半透明底（如日历今日徽章） */
    --glass-strong: #1c2030;                /* 弹窗/抽屉等面板实底（与 .modal 一致；浅色主题翻白） */
    --danger: #ff6b6b;
    --success: #52c41a;
    --shadow: 0 12px 40px rgba(0, 0, 0, .28);
    --menu-bg: rgba(28, 32, 44, .96);
}

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

/* 隐藏属性兜底：.sidebar-btn/.user-menu-item 等 display:flex 会覆盖 UA 的
   [hidden]{display:none}，导致 hidden 形同虚设（v2.25 管理后台入口始终可见的根因） */
[hidden] { display: none !important; }

html, body {
    height: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC',
                 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background: #0f2027;
    color: var(--text);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ---------- 背景层（渐变 + 壁纸） ---------- */
.bg-layer {
    position: fixed;
    inset: 0;
    z-index: -2;
    background: linear-gradient(135deg, #0f2027 0%, #203a43 50%, #2c5364 100%);
}
.bg-layer.has-wallpaper {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.bg-layer::after {
    /* 壁纸上的暗色蒙版，保证文字可读 */
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(10, 16, 26, .38);
    backdrop-filter: brightness(.9);
    opacity: 0;
    transition: opacity .3s;
}
.bg-layer.has-wallpaper::after { opacity: 1; }

.bg-dots {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-image: radial-gradient(rgba(var(--tint-rgb),.09) 1px, transparent 1px);
    background-size: 26px 26px;
    animation: bgDrift 24s linear infinite;
}
@keyframes bgDrift {
    0%   { transform: translate(0, 0); }
    50%  { transform: translate(-13px, -13px); }
    100% { transform: translate(0, 0); }
}

/* ---------- 整体布局 ---------- */
.app { display: flex; min-height: 100vh; }

/* ---------- 左侧主导航 ---------- */
.sidebar {
    width: var(--sidebar-w);
    flex-shrink: 0;
    background: rgba(var(--tint-rgb), .07);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    border-right: 1px solid var(--glass-line);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 14px 0;
    position: fixed;
    left: 0; top: 0; bottom: 0;
    z-index: 60;
}

.sidebar-logo {
    width: 42px; height: 42px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 13px;
    display: flex; align-items: center; justify-content: center;
    font-size: 19px; font-weight: 700; color: #fff;
    margin-bottom: 16px;
    flex-shrink: 0;
    box-shadow: 0 6px 18px rgba(102, 126, 234, .38);
}

.nav-menu {
    list-style: none;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    overflow-y: auto;
    flex: 1;
    padding: 0 6px;
    scrollbar-width: thin;
    scrollbar-color: rgba(var(--tint-rgb),.2) transparent;
}
.nav-menu::-webkit-scrollbar { width: 4px; }
.nav-menu::-webkit-scrollbar-thumb { background: rgba(var(--tint-rgb),.2); border-radius: 2px; }

.nav-item { width: 100%; position: relative; }

/* 拖拽排序：侧栏分类可长按拖动调整顺序 */
.nav-item[draggable="true"] { cursor: grab; }
.nav-item.dragging { opacity: .4; }
.nav-item.drag-over .nav-link {
    background: var(--glass-hi);
    box-shadow: inset 0 -2px 0 var(--accent);
}
.nav-drag-handle {
    position: absolute;
    top: 2px; right: 3px;
    font-size: 9px;
    color: var(--text-faint);
    opacity: 0;
    transition: opacity .2s;
    pointer-events: none;
}
.nav-item:hover .nav-drag-handle { opacity: .75; }

.nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 9px 2px;
    border-radius: 13px;
    color: var(--text-dim);
    text-decoration: none;
    font-size: 11px;
    cursor: pointer;
    border: none;
    background: none;
    width: 100%;
    transition: all .22s;
    position: relative;
}
.nav-link:hover { background: var(--glass-hi); color: #fff; }
.nav-link.active { background: var(--glass-hi); color: #fff; }
.nav-link.active::before {
    content: '';
    position: absolute;
    left: -6px; top: 50%;
    transform: translateY(-50%);
    width: 3px; height: 18px;
    border-radius: 0 3px 3px 0;
    background: var(--accent);
}
.nav-link i { font-size: 17px; }
.nav-link span {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1.2;
}

.sidebar-bottom {
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    padding-top: 8px;
    border-top: 1px solid var(--glass-line);
    width: 80%;
}

.sidebar-btn {
    width: 34px; height: 34px;
    border-radius: 50%;
    background: rgba(var(--tint-rgb), .1);
    border: none;
    color: var(--text-dim);
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    font-size: 13px;
    transition: all .22s;
}
.sidebar-btn:hover { background: rgba(var(--tint-rgb),.22); color: #fff; }

/* 用户头像 */
.user-chip {
    width: 34px; height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    display: flex; align-items: center; justify-content: center;
    font-size: 13px; font-weight: 600; color: #fff;
    cursor: pointer;
    border: 2px solid rgba(var(--tint-rgb),.28);
    overflow: hidden;
    transition: all .22s;
    flex-shrink: 0;
}
.user-chip:hover { border-color: rgba(var(--tint-rgb),.6); transform: scale(1.06); }
.user-chip img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- 主内容区 ---------- */
.main {
    flex: 1;
    margin-left: var(--sidebar-w);
    min-width: 0;
}
.main-inner {
    max-width: var(--content-max);
    margin: 0 auto;              /* 内容居中 */
    padding: 36px 28px 80px;
}

/* ---------- 顶部搜索 ---------- */
.search-section {
    display: flex;
    justify-content: center;
    /* 上下留白各比原来加大一倍（上方 36→72，下方 30→60） */
    margin-top: 72px;
    margin-bottom: 60px;
}
.search-box { width: 620px; max-width: 100%; }

.search-input-wrapper {
    display: flex;
    align-items: center;
    background: var(--glass);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    border-radius: 16px;
    padding: 5px;
    border: 1px solid var(--glass-line);
    transition: all .25s;
}
.search-input-wrapper:focus-within {
    background: var(--glass-hi);
    border-color: rgba(var(--tint-rgb),.32);
    box-shadow: var(--shadow);
}

.search-engine-icon {
    width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    color: var(--text-dim);
    font-size: 17px;
    cursor: pointer;
    border-radius: 12px;
    transition: background .22s;
    flex-shrink: 0;
}
.search-engine-icon:hover { background: rgba(var(--tint-rgb),.12); color: #fff; }

.search-input {
    flex: 1;
    min-width: 0;
    border: none;
    background: transparent;
    color: #fff;
    font-size: 15px;
    padding: 9px 10px;
    outline: none;
}
.search-input::placeholder { color: var(--text-faint); }

.search-btn {
    width: 40px; height: 40px;
    border: none;
    background: rgba(var(--tint-rgb),.18);
    border-radius: 12px;
    color: #fff;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all .22s;
    flex-shrink: 0;
}
.search-btn:hover { background: rgba(var(--tint-rgb),.3); }

/* ---------- 组件区 ---------- */
.widget-area {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    grid-auto-rows: 108px;              /* 一行基准高度，配合 row span 调整组件高度 */
    gap: 14px;
    margin-bottom: 26px;
}
/* v2.4：非主页（其他分类页）隐藏组件区 */
.widget-area.is-empty { display: none; }

.glass-card {
    background: var(--glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--radius);
    border: 1px solid var(--glass-line);
    padding: 16px;
    transition: all .25s;
}
.glass-card:hover {
    background: var(--glass-hi);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.wg-card {
    cursor: pointer;
    position: relative;
    min-height: 108px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* 组件尺寸：由 data-size 控制（v2.7：1x1 小=2图标位 / 1x2 中=半宽双行 / 2x2 大=4图标位） */
.wg-card[data-size="1x1"] { grid-column: span 1; grid-row: span 1; }
.wg-card[data-size="1x2"] { grid-column: span 1; grid-row: span 2; }
.wg-card[data-size="2x2"] { grid-column: span 2; grid-row: span 2; }
.wg-card:not([data-size]) { grid-column: span 1; grid-row: span 1; }

/* 右下角拖拽缩放手柄 */
.wg-resize {
    position: absolute;
    right: 3px;
    bottom: 3px;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    color: var(--text-faint);
    cursor: nwse-resize;
    opacity: 0;
    border-radius: 6px;
    z-index: 4;
    transition: opacity .2s, background .2s;
}
.wg-card:hover .wg-resize { opacity: .7; }
.wg-resize:hover { opacity: 1; background: rgba(var(--tint-rgb),.2); color: #fff; }
.wg-card.resizing {
    opacity: .8;
    outline: 2px dashed var(--accent);
    outline-offset: -3px;
}
/* v2.15 组件拖拽排序：拖拽中半透明，目标位置虚线框 */
.wg-card[draggable="true"] { cursor: grab; }
.wg-card[draggable="true"]:active { cursor: grabbing; }
.wg-card.dragging { opacity: .45; }
.wg-card.drag-over {
    outline: 2px dashed var(--accent);
    outline-offset: -3px;
    background: var(--glass-hi);
}

.wg-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    gap: 8px;
}
.wg-title {
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 7px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.wg-title i { color: var(--danger); }
.wg-sub { font-size: 11px; color: var(--text-faint); flex-shrink: 0; }

.wg-body {
    flex: 1;
    min-height: 0;
    overflow: auto;
    scrollbar-width: thin;
}
.wg-body::-webkit-scrollbar { width: 4px; }
.wg-body::-webkit-scrollbar-thumb { background: rgba(var(--tint-rgb),.2); border-radius: 2px; }
.wg-body::-webkit-scrollbar-track { background: transparent; }

/* 热搜条目 */
.hot-list { list-style: none; }
.hot-item {
    display: flex;
    align-items: center;
    padding: 6px 4px;
    border-radius: 8px;
    font-size: 13px;
    transition: background .18s;
    cursor: pointer;
}
.hot-item:hover { background: rgba(var(--tint-rgb),.08); }
.hot-rank {
    width: 19px; height: 19px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 5px;
    font-size: 11px; font-weight: 700;
    margin-right: 9px;
    flex-shrink: 0;
    background: rgba(var(--tint-rgb),.12);
    color: var(--text-dim);
}
.hot-rank.top3 { background: linear-gradient(135deg, #ff6b6b, #ff8e8e); color: #fff; }
.hot-title {
    flex: 1;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.hot-heat { font-size: 11px; color: var(--text-faint); margin-left: 8px; flex-shrink: 0; }

/* 中号(1x2)热榜：条目紧凑 */
.wg-card[data-size="1x2"] .hot-item { padding: 4px 2px; font-size: 11px; }
.wg-card[data-size="1x2"] .hot-rank { width: 16px; height: 16px; font-size: 9px; margin-right: 6px; }
.wg-card[data-size="1x2"] .hot-heat { font-size: 9px; margin-left: 5px; }
.wg-card[data-size="1x2"] .hot-more { font-size: 10px; padding: 3px 2px; }

/* 天气 */
.wg-weather {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.wg-weather .temp { font-size: 38px; font-weight: 200; line-height: 1; }
.wg-weather .temp sup { font-size: 16px; font-weight: 400; }
.wg-weather .meta { text-align: right; font-size: 12px; color: var(--text-dim); line-height: 1.7; }

/* 小号天气（v2.7）：图标 + 温度大字 + 城市/描述 */
.wg-art.art-weather .art-title { font-size: 24px; font-weight: 300; color: var(--danger); line-height: 1.1; }
.wg-art.art-weather .art-sub { font-size: 11px; }

/* 中号(1x2 半宽双行)天气：竖排紧凑 */
.wg-card[data-size="1x2"] .wg-weather {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 6px;
}
.wg-card[data-size="1x2"] .wg-weather .temp { font-size: 32px; }
.wg-card[data-size="1x2"] .wg-weather .meta { text-align: left; font-size: 11px; line-height: 1.6; }

/* v2.15 天气详细（中/大号） v2.16：中号加 2 天横排预报，大号预报改横排 */
.wg-weather { width: 100%; }
.w-mid { display: flex; flex-direction: column; gap: 8px; height: 100%; min-height: 0; }
.w-mid .w-top { display: flex; align-items: center; gap: 16px; flex: 1; min-height: 0; }
.w-now { text-align: center; flex-shrink: 0; }
.w-now .temp { font-size: 42px; font-weight: 200; line-height: 1; color: var(--text); }
.w-now .temp sup { font-size: 17px; font-weight: 400; }
.w-city { font-size: 12px; color: var(--text-dim); margin-top: 5px; }
.w-meta { flex: 1; display: flex; flex-direction: column; gap: 5px; font-size: 11.5px; min-width: 0; }
.w-row { display: flex; justify-content: space-between; gap: 6px; color: var(--text-faint); }
.w-row b { color: var(--text); font-weight: 600; }
.w-full { display: flex; flex-direction: column; gap: 10px; height: 100%; justify-content: center; align-items: center; }
/* v2.17：大号天气内容整体居中（子项保持全宽，避免 align-items:center 收缩宽度） */
.w-full > .w-now,
.w-full > .w-days { width: 100%; }
.w-tags { display: flex; gap: 6px; margin-top: 7px; justify-content: center; flex-wrap: wrap; }
.w-tags span {
    font-size: 10.5px; padding: 2px 9px; border-radius: 10px;
    background: rgba(var(--tint-rgb),.08); color: var(--text-dim); white-space: nowrap;
}
/* 中号 2 天横排预报（v2.16） */
.w-days-mid { display: flex; gap: 6px; flex-shrink: 0; }
.w-days-mid .w-day-m {
    flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px;
    padding: 5px 2px; border-radius: 10px; background: rgba(var(--tint-rgb),.05);
    font-size: 11px; min-width: 0;
}
.w-days-mid .w-day-m i { color: var(--accent); font-size: 14px; }
/* 大号 5 天预报：横排（v2.16 由竖排改横排，每天一列） */
.w-days { display: flex; flex-direction: row; gap: 6px; flex: 1; min-height: 0; align-items: stretch; }
.w-day {
    flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px;
    font-size: 12px; padding: 8px 4px; border-radius: 10px;
    background: rgba(var(--tint-rgb),.05); min-width: 0; text-align: center;
}
.w-day:hover { background: rgba(var(--tint-rgb),.09); }
.w-dw { color: var(--text); font-weight: 600; white-space: nowrap; }
.w-day i { color: var(--accent); font-size: 16px; }
.w-dt { flex: none; color: var(--text-dim); font-size: 10.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.w-dt2 { color: var(--text); font-weight: 500; white-space: nowrap; font-size: 11px; }

/* v2.15 翻译卡片（中/大号内嵌面板） */
.wg-translate { display: flex; flex-direction: column; gap: 8px; height: 100%; min-height: 0; }
.wg-translate .t-seg { display: flex; gap: 6px; flex-wrap: wrap; }
.wg-translate .t-seg button {
    font-size: 11px; padding: 3px 10px; border-radius: 14px;
    border: 1px solid var(--glass-line); background: transparent; color: var(--text-dim);
    cursor: pointer; transition: all .15s;
}
.wg-translate .t-seg button:hover { color: var(--text); border-color: var(--text-faint); }
.wg-translate .t-seg button.active { background: var(--accent); color: #fff; border-color: var(--accent); }
.wg-translate .t-src,
.wg-translate .t-dst {
    width: 100%; box-sizing: border-box;
    background: rgba(var(--tint-rgb),.06); border: 1px solid var(--glass-line);
    border-radius: 8px; color: var(--text); font-size: 12.5px;
    padding: 7px 10px; resize: none; font-family: inherit;
    outline: none;
}
.wg-translate .t-src:focus, .wg-translate .t-dst:focus { border-color: var(--accent); }
.wg-translate .t-actions { display: flex; gap: 8px; align-items: center; }
.wg-translate .btn { font-size: 12px; padding: 5px 12px; }
.wg-translate .t-row { display: flex; gap: 8px; }
.wg-translate .t-row .t-src { flex: 1; height: 34px; }
.wg-translate .t-dst-mid {
    flex: 1; min-height: 44px; overflow: auto;
    color: var(--accent);
}
.wg-translate .t-dst:read-only { color: var(--text-dim); }
.wg-translate.t-mid { justify-content: center; }

/* 日历 — v2.6 按截图重做：小（1×1）/中（2×2 紧凑）/大（2×2 完整）三档 */
.wg-calendar { text-align: left; }

/* 小号图形卡通用样式（图标 + 标题 + 摘要） */
.wg-art {
    display: flex;
    align-items: center;
    gap: 12px;
    height: 100%;
    padding: 6px 4px;
}
.wg-art .art-img {
    width: 48px; height: 48px;
    flex-shrink: 0;
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 22px;
}
.wg-art .art-txt { flex: 1; min-width: 0; }
.wg-art .art-title {
    font-size: 14px; font-weight: 600;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.wg-art .art-sub {
    font-size: 11px; color: var(--text-faint);
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* 小号（1×1，截图1）：左大数字+星期 / 右年月+农历+标题 */
.wg-calendar.wg-art {
    display: flex;
    align-items: stretch;
    gap: 10px;
    padding: 8px 10px;
}
.wg-calendar.wg-art .cal-left {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-right: 10px;
    border-right: 1px solid rgba(var(--tint-rgb),.12);
}
.wg-calendar.wg-art .cal-left .art-num {
    font-size: 38px;
    line-height: 1;
    font-weight: 200;
    color: var(--danger);
}
.wg-calendar.wg-art .cal-left .art-week {
    font-size: 11px;
    color: var(--danger);
    margin-top: 4px;
    font-weight: 600;
}
.wg-calendar.wg-art .cal-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0;
}
.wg-calendar.wg-art .cal-right .cal-ym {
    font-size: 11px;
    color: var(--text-dim);
}
.wg-calendar.wg-art .cal-right .cal-lunar-mini {
    font-size: 11px;
    color: var(--text-faint);
    margin-top: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.wg-calendar.wg-art .cal-right .cal-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    margin-top: 4px;
}

/* 中/大号：标题行 + 月历网格 */
.wg-calendar .cal-head-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}
.wg-calendar .cal-month-big {
    font-size: 22px;
    font-weight: 700;
    color: var(--danger);
    line-height: 1;
}
.wg-calendar .cal-month-big small {
    font-size: 12px;
    font-weight: 400;
    margin-left: 2px;
    color: var(--text-dim);
}
.wg-calendar .cal-lunar-big {
    font-size: 12px;
    color: var(--text-dim);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: right;
}

/* 大号（截图3）：左大字侧栏 + 右月历主区 */
.wg-calendar.full .cal-full {
    display: flex;
    gap: 12px;
    height: 100%;
}
.wg-calendar.full .cal-side {
    flex: 0 0 38%;
    display: flex;
    flex-direction: column;
    padding-right: 12px;
    border-right: 1px solid rgba(var(--tint-rgb),.12);
}
.wg-calendar.full .cal-big {
    font-size: 52px;
    line-height: 1;
    font-weight: 200;
    color: var(--danger);
}
.wg-calendar.full .cal-week {
    font-size: 12px;
    font-weight: 600;
    color: var(--danger);
    margin-top: 6px;
}
.wg-calendar.full .cal-ym-line {
    font-size: 12px;
    color: var(--text-dim);
    margin-top: 8px;
}
.wg-calendar.full .cal-lunar-line {
    font-size: 12px;
    color: var(--text-dim);
    margin-top: 2px;
}
.wg-calendar.full .cal-events-label {
    font-size: 11px;
    color: var(--text-faint);
    margin-top: 12px;
}
.wg-calendar.full .cal-events {
    font-size: 12px;
    color: var(--text);
    margin-top: 2px;
}
.wg-calendar.full .cal-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

/* 卡片内月历网格（公用于中/大）
 * v2.14：选择器同时覆盖「卡片 .wg-calendar」与「详情弹窗 .cd-right」——
 * 弹窗里的 .cal-grid 没有 .wg-calendar 祖先，之前匹配不到导致 grid-template-columns 不生效 → 49 个格子单列竖排 */
.wg-calendar .cal-grid,
.cd-right .cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
}
.wg-calendar .cal-grid .hd,
.cd-right .cal-grid .hd {
    font-size: 10px;
    color: var(--text-faint);
    text-align: center;
    padding: 2px 0;
}
.wg-calendar .cal-grid .cd,
.cd-right .cal-grid .cd {
    border-radius: 5px;
    padding: 2px 0;
    text-align: center;
    font-size: 11px;
    color: var(--text-dim);
    transition: background .18s;
    cursor: default;
    min-height: 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.wg-calendar .cal-grid .cd.other { visibility: hidden; }
.wg-calendar .cal-grid .cd .num,
.cd-right .cal-grid .cd .num { font-size: 12px; font-weight: 500; color: var(--text); }
.wg-calendar .cal-grid .cd .ln,
.cd-right .cal-grid .cd .ln { font-size: 9px; color: var(--text-faint); margin-top: 1px; line-height: 1.1; }
.wg-calendar .cal-grid .cd.weekend .num { color: var(--danger); }
.wg-calendar .cal-grid .cd.today {
    background: var(--danger);
}
.wg-calendar .cal-grid .cd.today .num,
.wg-calendar .cal-grid .cd.today .ln { color: #fff; font-weight: 700; }
.wg-calendar .cal-grid .cd.festival .num { color: var(--danger); font-weight: 700; }
.wg-calendar .cal-grid .cd.festival .ln { color: var(--accent); }

/* 中号(1x2 半宽)日历：月历格子缩小适配窄列 */
.wg-card[data-size="1x2"] .cal-head-row { margin-bottom: 4px; gap: 6px; }
.wg-card[data-size="1x2"] .cal-month-big { font-size: 16px; }
.wg-card[data-size="1x2"] .cal-month-big small { font-size: 10px; }
.wg-card[data-size="1x2"] .cal-lunar-big { font-size: 10px; }
.wg-card[data-size="1x2"] .cal-grid { gap: 1px; }
.wg-card[data-size="1x2"] .cal-grid .hd { font-size: 8px; padding: 1px 0; }
.wg-card[data-size="1x2"] .cal-grid .cd { min-height: 22px; padding: 1px 0; font-size: 9px; }
.wg-card[data-size="1x2"] .cal-grid .cd .num { font-size: 9px; }
.wg-card[data-size="1x2"] .cal-grid .cd .ln { font-size: 7px; }

/* 详情弹窗日历（截图4） */
.cd-layout { display: flex; flex-direction: column; gap: 14px; }
.cd-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 4px 8px;
}
.cd-close {
    width: 26px; height: 26px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, #ff8a4d, #ff6b3d);
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
    transition: transform .15s;
    box-shadow: 0 2px 6px rgba(255,107,107,.35);
}
.cd-close:hover { transform: scale(1.08); }
.cd-lunar-top {
    font-size: 13px;
    color: var(--text);
    font-weight: 600;
    background: var(--accent-bg);
    padding: 6px 14px;
    border-radius: 18px;
    flex: 1;
    text-align: center;
}
.cd-month-nav { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.cd-nav-btn {
    background: transparent;
    border: 1px solid var(--glass-line);
    color: var(--text);
    width: 26px; height: 26px;
    border-radius: 6px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    transition: all .15s;
}
.cd-nav-btn:hover { background: var(--glass-hi); border-color: var(--accent); color: var(--accent); }
.cd-title {
    font-size: 21px;
    font-weight: 700;
    color: var(--danger);
    letter-spacing: 1px;
    min-width: 108px;
    text-align: center;
    white-space: nowrap;
}
/* v2.13 百度万年历两列：左大数字详情 / 右月历网格 */
.cd-main { display: flex; gap: 16px; align-items: flex-start; }
.cd-left {
    flex: 0 0 268px;
    padding: 16px 18px 18px;
    border-radius: 12px;
    background: var(--glass);
    border: 1px solid var(--glass-line);
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-height: 320px;
    box-sizing: border-box;
}
.cd-right { flex: 1 1 auto; min-width: 0; }
.cd-bigday {
    font-size: 88px;
    line-height: 1;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -2px;
    margin: 4px 0 6px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
}
.cd-bigweek {
    font-size: 18px;
    color: var(--text);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}
.cd-bigdate { font-size: 14px; color: var(--text); margin-top: 2px; }
.cd-bigzodiac { font-size: 12px; color: var(--text-faint); }
.cd-bigfest {
    font-size: 12.5px;
    color: var(--danger);
    font-weight: 600;
    padding: 4px 10px;
    background: rgba(255, 107, 107, .08);
    border-radius: 6px;
    align-self: flex-start;
    margin-top: 4px;
}
.cd-type-row, .cd-jc-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    margin-top: 4px;
}
.cd-type-label, .cd-jc-label { color: var(--text-faint); }
.cd-type-val { color: var(--text); }
.cd-jc-name { font-weight: 700; font-size: 14px; }
.cd-jc-name.cd-jc-吉 { color: var(--success, #52c41a); }
.cd-jc-name.cd-jc-平 { color: var(--text); }
.cd-jc-name.cd-jc-凶 { color: var(--danger); }
.cd-jc-tag {
    font-size: 10.5px;
    padding: 1px 7px;
    border-radius: 10px;
    font-weight: 600;
}
.cd-jc-tag-吉 { background: rgba(82, 196, 26, .12); color: var(--success, #52c41a); }
.cd-jc-tag-平 { background: rgba(0, 0, 0, .06); color: var(--text-faint); }
.cd-jc-tag-凶 { background: rgba(255, 107, 107, .12); color: var(--danger); }
.cd-fortune { margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--glass-line); display: flex; flex-direction: column; gap: 6px; }
.cd-yi, .cd-ji { display: flex; gap: 8px; font-size: 12.5px; align-items: baseline; }
.cd-fortune-label {
    flex: 0 0 22px;
    font-weight: 700;
    text-align: center;
    border-radius: 4px;
    padding: 1px 0;
}
.cd-yi .cd-fortune-label { background: rgba(82, 196, 26, .14); color: var(--success, #52c41a); }
.cd-ji .cd-fortune-label { background: rgba(255, 107, 107, .14); color: var(--danger); }
.cd-fortune-val { color: var(--text); }
.cd-today-btn {
    background: var(--glass-hi, rgba(var(--tint-rgb),.06));
    border: 1px solid var(--glass-line);
    color: var(--text);
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 6px;
    cursor: pointer;
    margin-left: 6px;
    transition: background .12s;
}
.cd-today-btn:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
@media (max-width: 760px) {
    .cd-main { flex-direction: column; }
    .cd-left { flex: 0 0 auto; width: 100%; min-height: 0; }
}
.cd-right .cal-grid { gap: 3px; }
.cd-right .cal-grid .cd {
    min-height: 62px;
    padding: 4px 2px;
    position: relative;
    font-size: 12px;
    border-radius: 6px;
}
.cd-right .cal-grid .cd .num { font-size: 15px; }
.cd-right .cal-grid .cd .ln { font-size: 10.5px; margin-top: 2px; }
/* 上下月日期：可见但灰显 */
.cd-right .cal-grid .cd.other .num { color: rgba(180,180,180,.6); }
.cd-right .cal-grid .cd.other .ln { color: rgba(180,180,180,.5); }
/* 周末列（六、日）淡灰底 */
.cd-right .cal-grid .cd.weekend:not(.today) { background: rgba(0,0,0,.025); }
/* 今日：空心红框 */
.cd-right .cal-grid .cd.today {
    border: 1.5px solid var(--danger);
    background: rgba(255,107,107,.06);
}
.cd-right .cal-grid .cd.today .num { color: var(--danger); font-weight: 700; }
/* 节日：公历数字红色 */
.cd-right .cal-grid .cd.festival:not(.other) .num { color: var(--danger); font-weight: 600; }
.cd-right .cal-grid .cd .ln.festival { color: var(--danger); font-weight: 500; }
/* 节假日格：浅粉底 */
.cd-right .cal-grid .cd.tag-rest:not(.today) { background: rgba(255,107,107,.08); }
.cd-right .cal-grid .cd.tag-work:not(.today) { background: rgba(91,143,249,.08); }
.cd-right .cal-grid .cd .tag {
    position: absolute;
    top: 4px;
    right: 4px;
    font-size: 9.5px;
    padding: 1px 5px;
    border-radius: 4px;
    line-height: 1.2;
    font-weight: 700;
    background: var(--danger);
    color: #fff;
}
.cd-right .cal-grid .cd .tag-rest { background: var(--danger); color: #fff; }
.cd-right .cal-grid .cd .tag-work { background: var(--accent); color: #fff; }
.cd-foot { display: flex; align-items: center; gap: 12px; font-size: 11px; color: var(--text-faint); margin-top: 4px; padding: 0 4px; }
.cd-legend { display: inline-flex; align-items: center; gap: 4px; }
.cd-sw {
    display: inline-block;
    width: 14px; height: 12px;
    border-radius: 3px;
    vertical-align: middle;
}
.cd-sw.rest { background: var(--danger); }
.cd-sw.work { background: var(--accent); }
.cd-festival-hint { margin-left: auto; }

/* v2.12 标准月网格：表头行 + 6 行等高日期格（切换月份时高度不跳动） */
.cd-right .cal-grid { grid-template-rows: 24px repeat(6, minmax(58px, 1fr)); }
.cd-right .cal-grid .hd {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-faint);
    border-radius: 5px;
    background: rgba(0, 0, 0, .03);
}
.cd-right .cal-grid .cd { overflow: hidden; }
.cd-right .cal-grid .cd .ln {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: center;
}
/* v2.12 每周起始日切换按钮 */
.cd-week-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    line-height: 1;
    padding: 4px 9px;
    border-radius: 20px;
    border: 1px solid var(--glass-line);
    background: transparent;
    color: var(--text-dim);
    cursor: pointer;
    transition: all .15s;
}
.cd-week-btn:hover { background: var(--glass-hi); border-color: var(--accent); color: var(--accent); }
.cd-week-btn i { font-size: 10px; }

/* v2.10 点击日期看详情：选中高亮 + 详情面板 */
.cd-main .cal-grid .cd { cursor: pointer; transition: background .12s, box-shadow .12s; }
.cd-main .cal-grid .cd:hover { background: rgba(var(--tint-rgb),.06); }
.cd-main .cal-grid .cd.selected {
    outline: 2px solid var(--accent);
    outline-offset: -2px;
    background: rgba(91,143,249,.14);
}
.cd-main .cal-grid .cd.selected .num { color: var(--accent); font-weight: 700; }
.cd-main .cal-grid .cd.selected .ln { color: var(--accent); }
.cd-d-hint { text-align: center; font-size: 12px; color: var(--text-faint); padding: 12px 0; }
.cd-detail {
    background: rgba(var(--tint-rgb),.05);
    border: 1px solid var(--glass-line);
    border-radius: 12px;
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    animation: fadeIn .18s;
}
.cd-d-head { display: flex; align-items: center; gap: 8px; }
.cd-d-date { font-size: 18px; font-weight: 700; color: var(--text); }
.cd-d-date span { font-size: 12.5px; color: var(--text-faint); font-weight: 500; margin-left: 4px; }
.cd-d-chip {
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 10px;
    line-height: 1.3;
}
.cd-d-chip.today { background: var(--danger); color: #fff; }
.cd-d-chip-rest { background: var(--danger); color: #fff; }
.cd-d-chip-work { background: var(--accent); color: #fff; }
.cd-d-row { display: flex; gap: 10px; font-size: 13px; align-items: baseline; }
.cd-d-label { color: var(--text-faint); flex-shrink: 0; width: 74px; }
.cd-d-val { color: var(--text); }
.cd-d-val.festival { color: var(--danger); font-weight: 600; }

/* 时钟 */
.wg-clock { text-align: center; }
.wg-clock .time {
    font-size: 32px; font-weight: 300;
    font-variant-numeric: tabular-nums;
    letter-spacing: 1px;
}
.wg-clock .date { font-size: 12px; color: var(--text-dim); margin-top: 6px; }

/* 小号时钟（v2.7）：大字号时间 + 渐变发光美化 */
.wg-clock.wg-art {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    height: 100%;
    padding: 4px 2px;
}
.wg-clock.wg-art .art-time {
    font-size: 38px;
    font-weight: 300;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
    letter-spacing: 2px;
    background: linear-gradient(135deg, var(--accent) 0%, #7c8cff 45%, var(--danger) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: var(--accent);
    text-shadow: 0 0 18px rgba(124,140,255,.25);
}
.wg-clock.wg-art .art-date {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dim);
    letter-spacing: 1px;
}
/* 中号(1x2)时钟：时间更大更醒目 */
.wg-card[data-size="1x2"] .wg-clock .time { font-size: 44px; }
.wg-card[data-size="1x2"] .wg-clock .date { font-size: 13px; margin-top: 8px; }

/* v2.15 翻页时钟（中/大号）——深色翻页卡片，任何壁纸下都醒目 */
.wg-flipclock { text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100%; padding: 2px 0; }
.flip-row { display: flex; align-items: center; justify-content: center; gap: 5px; }
.flip-cell {
    position: relative;
    width: 46px; height: 60px;
    border-radius: 9px;
    overflow: hidden;
    background: linear-gradient(180deg, #333947, #1d2029);
    box-shadow: inset 0 1px 0 rgba(var(--tint-rgb),.14), 0 4px 12px rgba(0,0,0,.35);
    font-variant-numeric: tabular-nums;
}
/* v2.17 flipaclock 风格：中间铰链线（数字板接缝，固定不动，数字板从其后翻转） */
.flip-cell::after {
    content: '';
    position: absolute;
    left: 0; right: 0; top: 50%;
    height: 3px;
    transform: translateY(-50%);
    background: linear-gradient(180deg, rgba(var(--tint-rgb),.30), rgba(125,135,155,.26) 40%, rgba(0,0,0,.55) 60%, rgba(0,0,0,.78));
    box-shadow: 0 1px 2px rgba(0,0,0,.5);
    z-index: 4;
    pointer-events: none;
}
.flip-cell .flip-top,
.flip-cell .flip-bottom {
    position: absolute;
    left: 0; width: 100%; height: 50%;
    overflow: hidden;
    color: #fff;
    font-weight: 700;
    font-size: 42px;
    line-height: 60px;
    text-align: center;
    background: linear-gradient(180deg, #39404f, #2b303d);
}
.flip-cell .flip-top { top: 0; border-bottom: 1px solid rgba(0,0,0,.38); }
/* v2.19 修复：下半块占满 cell + clip 只裁出下半。旧 top:50% 时文字行框顶部对齐容器，
   导致下半也显示数字的上半（下半显示错误、数字上下两半重复）。占满 + clip 后上下半像素级对齐。 */
.flip-cell .flip-bottom { top: 0; height: 100%; clip-path: inset(50% 0 0 0); background: linear-gradient(180deg, #242833, #191c25); }
/* 翻页动画层（仅在 .flip 触发时可见） */
.flip-cell .flip-f-top,
.flip-cell .flip-f-bottom {
    position: absolute;
    left: 0; width: 100%; height: 50%;
    overflow: hidden;
    color: #fff;
    font-weight: 700;
    font-size: 42px;
    line-height: 60px;
    text-align: center;
    opacity: 0;
    pointer-events: none;
    z-index: 2;
}
.flip-cell .flip-f-top { top: 0; background: linear-gradient(180deg, #39404f, #2b303d); transform-origin: center bottom; }
.flip-cell .flip-f-bottom { top: 0; height: 100%; clip-path: inset(50% 0 0 0); background: linear-gradient(180deg, #242833, #191c25); transform-origin: center 50%; }
.flip-cell.flip .flip-f-top { animation: navFlipTop .4s ease-in forwards; }
.flip-cell.flip .flip-f-bottom { animation: navFlipBottom .4s ease-out forwards; }
@keyframes navFlipTop {
    from { opacity: 1; transform: rotateX(0deg); }
    to   { opacity: 1; transform: rotateX(-90deg); }
}
@keyframes navFlipBottom {
    from { opacity: 1; transform: rotateX(90deg); }
    to   { opacity: 1; transform: rotateX(0deg); }
}
.flip-dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    background: var(--accent);
    margin: 0 2px;
    box-shadow: 0 0 8px rgba(124,140,255,.7);
}
.flip-date { font-size: 12px; color: var(--text-dim); margin-top: 9px; letter-spacing: .5px; }
/* v2.18：卡片中/大号改为世界时钟，翻页时钟只在弹窗里用 → 放大规则改挂弹窗容器 */
.cd-flipwrap { display: flex; align-items: center; justify-content: center; padding: 16px 0 8px; }
.cd-flipwrap .wg-flipclock { height: auto; }
.cd-flipwrap .flip-row { gap: 8px; }
.cd-flipwrap .flip-cell { width: 64px; height: 84px; border-radius: 12px; }
.cd-flipwrap .flip-cell .flip-top,
.cd-flipwrap .flip-cell .flip-bottom,
.cd-flipwrap .flip-cell .flip-f-top,
.cd-flipwrap .flip-cell .flip-f-bottom { font-size: 58px; line-height: 84px; }
.cd-flipwrap .flip-date { font-size: 13px; margin-top: 14px; }

/* v2.18 世界时钟（时钟组件中号 1x2 / 大号 2x2 卡片；小号仍是图形卡） */
.wg-worldclock { display: flex; flex-direction: column; height: 100%; min-height: 0; gap: 2px; }
.wc-title {
    display: flex; align-items: center; gap: 6px; flex-shrink: 0;
    font-size: 11px; color: var(--text-dim); letter-spacing: .5px;
}
.wc-title i { color: var(--accent); font-size: 11px; }
.wc-row {
    flex: 1; min-height: 0; display: flex; align-items: center; gap: 8px;
    padding: 0 2px; border-radius: 8px;
}
.wc-row + .wc-row { border-top: 1px solid rgba(var(--tint-rgb),.06); }
.wc-city { font-size: 12.5px; color: var(--text); flex: 0 0 40px; white-space: nowrap; }
.wc-time {
    margin-left: auto; font-size: 17px; font-weight: 600;
    font-variant-numeric: tabular-nums; letter-spacing: .5px;
}
.wc-off { flex: 0 0 46px; text-align: right; font-size: 10.5px; color: var(--text-dim); white-space: nowrap; }
.wc-row.is-night .wc-time { color: #93a7d8; }
/* 大号(2x2)：空间更宽，城市名与时间都放大一档 */
.wg-card[data-size="2x2"] .wc-city { flex-basis: 52px; font-size: 13.5px; }
.wg-card[data-size="2x2"] .wc-time { font-size: 19px; }
.wg-card[data-size="2x2"] .wc-off { flex-basis: 54px; font-size: 11.5px; }
.wg-card[data-size="2x2"] .flip-date { font-size: 14px; margin-top: 12px; }

/* 通用工具卡 */
.wg-tool {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 108px;
    text-align: center;
}
.wg-tool .tool-icon {
    width: 44px; height: 44px;
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 20px;
    background: rgba(var(--tint-rgb),.14);
}
.wg-tool .tool-name { font-size: 13px; }
.wg-tool .tool-hint { font-size: 11px; color: var(--text-faint); }
.wg-tool.translate .tool-icon { background: rgba(76,175,80,.42); }

/* 待办/便签摘要 */
.mini-list { list-style: none; font-size: 12.5px; }
.mini-list li {
    padding: 4px 0;
    display: flex; align-items: center; gap: 7px;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    color: var(--text-dim);
}
.mini-list li .dot {
    width: 5px; height: 5px; border-radius: 50%;
    background: var(--accent); flex-shrink: 0;
}
.mini-list li.done { text-decoration: line-through; opacity: .5; }
.mini-empty { font-size: 12px; color: var(--text-faint); padding: 8px 0; }

/* 中号(1x2)待办/便签：条目紧凑 */
.wg-card[data-size="1x2"] .mini-list { font-size: 11.5px; }
.wg-card[data-size="1x2"] .mini-list li { padding: 3px 0; gap: 5px; }

/* 组件删除按钮 */
.wg-del {
    position: absolute;
    top: 8px; right: 8px;
    width: 22px; height: 22px;
    border-radius: 50%;
    background: rgba(0,0,0,.34);
    border: none;
    color: rgba(var(--tint-rgb),.7);
    font-size: 10px;
    cursor: pointer;
    display: none;
    align-items: center; justify-content: center;
    transition: all .18s;
}
.wg-card:hover .wg-del { display: flex; }
.wg-del:hover { background: var(--danger); color: #fff; }

/* ---------- 网站区 ---------- */
.sites-section { margin-top: 8px; }

.section-title {
    font-size: 13px;
    color: var(--text-faint);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 7px;
    justify-content: center;
}

.sites-grid {
    display: grid;
    gap: 14px;
    justify-content: center;
}
/* 三种图标尺寸 */
.sites-grid.size-small  { grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); }
.sites-grid.size-medium { grid-template-columns: repeat(auto-fill, minmax(94px, 1fr)); }
.sites-grid.size-large  { grid-template-columns: repeat(auto-fill, minmax(116px, 1fr)); }

.sites-grid.size-small  .site-icon { width: 38px; height: 38px; border-radius: 12px; font-size: 17px; }
.sites-grid.size-medium .site-icon { width: 50px; height: 50px; border-radius: 15px; font-size: 22px; }
.sites-grid.size-large  .site-icon { width: 64px; height: 64px; border-radius: 18px; font-size: 28px; }

.sites-grid.size-small  .site-name { font-size: 11px; }
.sites-grid.size-medium .site-name { font-size: 12.5px; }
.sites-grid.size-large  .site-name { font-size: 13.5px; }

.sites-grid.size-small  .site-item { padding: 9px 4px; }
.sites-grid.size-medium .site-item { padding: 12px 6px; }
.sites-grid.size-large  .site-item { padding: 15px 8px; }

.site-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #fff;
    border-radius: 16px;
    transition: all .22s;
    cursor: pointer;
    position: relative;
}
.site-item:hover {
    background: rgba(var(--tint-rgb),.11);
    transform: translateY(-4px);
}
.site-item:active { transform: translateY(-1px); }

.site-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 7px;
    overflow: hidden;
    flex-shrink: 0;
    background: rgba(var(--tint-rgb),.13);
    color: #fff;
    transition: transform .22s;
    position: relative;
}
.site-item:hover .site-icon { transform: scale(1.07); }
.site-icon img { width: 100%; height: 100%; object-fit: contain; }
/* 抓取失败时用文字兜底 */
.site-icon .letter {
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1;
}
/* v2.20：纯色文字图标（1-2 个字符，直接显示在图标背景色上） */
.site-icon .text-icon {
    font-weight: 700;
    font-size: .78em;
    line-height: 1;
    letter-spacing: .5px;
    text-align: center;
    white-space: nowrap;
}

.site-name {
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    color: var(--text-dim);
}
.site-item:hover .site-name { color: #fff; }

/* 添加按钮 */
.add-site-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    cursor: pointer;
    transition: all .22s;
    border: 2px dashed rgba(var(--tint-rgb),.22);
    background: transparent;
    color: var(--text-faint);
    min-height: 78px;
}
.add-site-btn:hover { border-color: rgba(var(--tint-rgb),.5); color: #fff; background: rgba(var(--tint-rgb),.05); }
.add-site-btn i { font-size: 19px; margin-bottom: 5px; }
.add-site-btn span { font-size: 11.5px; }

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 46px 20px;
    color: var(--text-faint);
    grid-column: 1 / -1;
}
.empty-state i { font-size: 42px; margin-bottom: 14px; display: block; }

.loading {
    display: inline-block;
    width: 20px; height: 20px;
    border: 2px solid rgba(var(--tint-rgb),.28);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- 右键菜单 ---------- */
.ctx-menu {
    position: fixed;
    z-index: 9000;
    min-width: 168px;
    background: var(--menu-bg);
    backdrop-filter: blur(26px);
    -webkit-backdrop-filter: blur(26px);
    border: 1px solid rgba(var(--tint-rgb),.14);
    border-radius: 12px;
    padding: 5px;
    box-shadow: 0 16px 44px rgba(0,0,0,.44);
    font-size: 13px;
    display: none;
    animation: menuIn .13s ease-out;
}
.ctx-menu.show { display: block; }
@keyframes menuIn {
    from { opacity: 0; transform: scale(.96) translateY(-4px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}

.ctx-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 11px;
    border-radius: 8px;
    cursor: pointer;
    color: rgba(var(--tint-rgb),.86);
    transition: background .14s;
    white-space: nowrap;
}
.ctx-item:hover { background: rgba(var(--tint-rgb),.13); }
.ctx-item i { width: 15px; text-align: center; font-size: 12.5px; color: var(--text-dim); }
.ctx-item.danger { color: #ff8a8a; }
.ctx-item.danger i { color: #ff8a8a; }
.ctx-item.danger:hover { background: rgba(255,107,107,.18); }

.ctx-sep {
    height: 1px;
    background: rgba(var(--tint-rgb),.11);
    margin: 4px 6px;
}
.ctx-title {
    padding: 6px 11px;
    font-size: 11px;
    color: var(--text-faint);
    border-bottom: 1px solid rgba(var(--tint-rgb),.09);
    margin-bottom: 4px;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* ---------- 弹窗 ---------- */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.55);
    backdrop-filter: blur(4px);
    z-index: 8000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.modal-overlay.show { display: flex; animation: fadeIn .18s; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.modal {
    background: #1c2030;
    border: 1px solid rgba(var(--tint-rgb),.12);
    border-radius: 18px;
    width: 480px;
    max-width: 100%;
    max-height: 88vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 24px 70px rgba(0,0,0,.55);
    animation: modalIn .2s cubic-bezier(.2,.9,.3,1.2);
}
@keyframes modalIn {
    from { opacity: 0; transform: translateY(16px) scale(.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}
.modal.wide { width: 640px; }
.modal.narrow { width: 380px; }

.modal-header {
    padding: 17px 20px;
    border-bottom: 1px solid rgba(var(--tint-rgb),.09);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}
.modal-header h3 { font-size: 15.5px; font-weight: 600; }
.modal-close {
    background: none; border: none;
    color: var(--text-faint);
    font-size: 20px; cursor: pointer;
    line-height: 1; padding: 2px 6px;
    border-radius: 6px;
    transition: all .18s;
}
.modal-close:hover { color: #fff; background: rgba(var(--tint-rgb),.1); }

.modal-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}
.modal-body::-webkit-scrollbar { width: 7px; }
.modal-body::-webkit-scrollbar-thumb { background: rgba(var(--tint-rgb),.16); border-radius: 4px; }

.modal-footer {
    padding: 14px 20px;
    border-top: 1px solid rgba(var(--tint-rgb),.09);
    display: flex;
    justify-content: flex-end;
    gap: 9px;
    flex-shrink: 0;
}

/* 表单 */
.form-row { margin-bottom: 15px; }
.form-row:last-child { margin-bottom: 0; }
.form-row label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    color: var(--text-dim);
}
.form-row input[type="text"],
.form-row input[type="url"],
.form-row input[type="password"],
.form-row input[type="number"],
.form-row input[type="email"],
.form-row select,
.form-row textarea {
    width: 100%;
    padding: 10px 13px;
    background: rgba(var(--tint-rgb),.07);
    border: 1px solid rgba(var(--tint-rgb),.14);
    border-radius: 10px;
    color: #fff;
    font-size: 14px;
    outline: none;
    transition: all .2s;
    font-family: inherit;
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
    border-color: var(--accent);
    background: rgba(var(--tint-rgb),.11);
}
.form-row input::placeholder, .form-row textarea::placeholder { color: rgba(var(--tint-rgb),.3); }
.form-row select option { background: #1c2030; }
.form-row textarea { resize: vertical; min-height: 78px; }

.form-hint { font-size: 11.5px; color: var(--text-faint); margin-top: 5px; }

/* 分段选择器 */
.seg {
    display: flex;
    gap: 6px;
    background: rgba(var(--tint-rgb),.06);
    padding: 4px;
    border-radius: 11px;
}
.seg button {
    flex: 1;
    padding: 8px;
    border: none;
    background: none;
    color: var(--text-dim);
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    transition: all .2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}
.seg button:hover { color: #fff; }
.seg button.active {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 3px 10px rgba(91,143,249,.36);
}

/* 颜色选择 */
.color-row { display: flex; align-items: center; gap: 9px; }
.color-row input[type="color"] {
    width: 46px; height: 38px;
    padding: 2px;
    background: rgba(var(--tint-rgb),.07);
    border: 1px solid rgba(var(--tint-rgb),.14);
    border-radius: 9px;
    cursor: pointer;
    flex-shrink: 0;
}
.color-row input[type="text"] { flex: 1; }

/* 按钮 */
.btn {
    padding: 9px 17px;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    cursor: pointer;
    transition: all .2s;
    font-family: inherit;
}
.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}
.btn-primary:hover { opacity: .9; transform: translateY(-1px); }
.btn-ghost { background: rgba(var(--tint-rgb),.1); color: var(--text-dim); }
.btn-ghost:hover { background: rgba(var(--tint-rgb),.18); color: #fff; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { opacity: .88; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* 图标预览 */
.icon-preview {
    width: 62px; height: 62px;
    border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    font-size: 27px;
    margin: 0 auto 14px;
    overflow: hidden;
    background: rgba(var(--tint-rgb),.12);
}
.icon-preview img { width: 100%; height: 100%; object-fit: contain; }
.icon-preview .text-icon { font-weight: 700; font-size: 20px; line-height: 1; }
.icon-preview .letter { font-weight: 700; font-size: 22px; line-height: 1; }

/* v2.20：编辑图标弹窗——图标来源分段（5 个按钮，允许换行） */
.icon-mode-seg { flex-wrap: wrap; }
.icon-mode-seg button { flex: 1 1 auto; white-space: nowrap; }
/* 图标库 / 本地上传选择行 */
.icon-pick-row,
.icon-upload-row {
    display: flex;
    align-items: center;
    gap: 10px;
}
.icon-pick-row .form-hint,
.icon-upload-row .form-hint {
    margin-top: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ---------- 图标选择器 ---------- */
.icon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(46px, 1fr));
    gap: 8px;
    max-height: 330px;
    overflow-y: auto;
    padding: 3px;
}
.icon-grid::-webkit-scrollbar { width: 7px; }
.icon-grid::-webkit-scrollbar-thumb { background: rgba(var(--tint-rgb),.16); border-radius: 4px; }
.icon-cell {
    aspect-ratio: 1;
    display: flex; align-items: center; justify-content: center;
    border-radius: 11px;
    background: rgba(var(--tint-rgb),.06);
    cursor: pointer;
    font-size: 17px;
    transition: all .18s;
    border: 2px solid transparent;
}
.icon-cell:hover { background: rgba(var(--tint-rgb),.16); transform: scale(1.07); }
.icon-cell.active { border-color: var(--accent); background: rgba(91,143,249,.24); }

/* ---------- 组件选择 ---------- */
.widget-picker {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(128px, 1fr));
    gap: 10px;
}
.widget-option {
    padding: 15px 11px;
    border-radius: 13px;
    background: rgba(var(--tint-rgb),.06);
    border: 2px solid transparent;
    cursor: pointer;
    text-align: center;
    transition: all .2s;
}
.widget-option:hover { background: rgba(var(--tint-rgb),.13); border-color: rgba(var(--tint-rgb),.2); transform: translateY(-2px); }
.widget-option i { font-size: 22px; margin-bottom: 8px; display: block; color: var(--accent); }
.widget-option .wo-name { font-size: 13px; font-weight: 500; }
.widget-option .wo-desc { font-size: 11px; color: var(--text-faint); margin-top: 3px; line-height: 1.35; }

/* ---------- Toast ---------- */
.toast-wrap {
    position: fixed;
    top: 18px; left: 50%;
    transform: translateX(-50%);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
    pointer-events: none;
}
.toast {
    background: rgba(28,32,44,.96);
    border: 1px solid rgba(var(--tint-rgb),.14);
    color: #fff;
    padding: 10px 18px;
    border-radius: 11px;
    font-size: 13.5px;
    box-shadow: 0 10px 34px rgba(0,0,0,.4);
    animation: toastIn .25s;
    display: flex;
    align-items: center;
    gap: 8px;
}
.toast.success { border-left: 3px solid var(--success); }
.toast.error   { border-left: 3px solid var(--danger); }
.toast.info    { border-left: 3px solid var(--accent); }
@keyframes toastIn {
    from { opacity: 0; transform: translateY(-14px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ---------- 弹窗内的组件内容 ---------- */
.wd-hot-list { list-style: none; }
.wd-hot-list li {
    display: flex; align-items: center; gap: 11px;
    padding: 11px 9px;
    border-radius: 9px;
    cursor: pointer;
    transition: background .18s;
    border-bottom: 1px solid rgba(var(--tint-rgb),.06);
}
.wd-hot-list li:last-child { border-bottom: none; }
.wd-hot-list li:hover { background: rgba(var(--tint-rgb),.08); }
.wd-hot-list .rank {
    width: 23px; height: 23px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 6px; font-size: 12px; font-weight: 700;
    background: rgba(var(--tint-rgb),.12); flex-shrink: 0;
}
.wd-hot-list .rank.top3 { background: linear-gradient(135deg,#ff6b6b,#ff8e8e); color: #fff; }
.wd-hot-list .t { flex: 1; font-size: 14px; }
.wd-hot-list .h { font-size: 12px; color: var(--text-faint); }

/* 计算器 */
.calc-display {
    background: rgba(0,0,0,.28);
    border-radius: 12px;
    padding: 16px;
    text-align: right;
    font-size: 27px;
    font-variant-numeric: tabular-nums;
    margin-bottom: 13px;
    min-height: 66px;
    word-break: break-all;
    line-height: 1.25;
}
.calc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.calc-grid button {
    padding: 15px 0;
    border: none;
    border-radius: 11px;
    background: rgba(var(--tint-rgb),.09);
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    transition: all .16s;
}
.calc-grid button:hover { background: rgba(var(--tint-rgb),.19); }
.calc-grid button:active { transform: scale(.95); }
.calc-grid button.op { background: rgba(91,143,249,.3); }
.calc-grid button.op:hover { background: rgba(91,143,249,.48); }
.calc-grid button.eq { background: var(--accent); }
.calc-grid button.eq:hover { background: #4a7ce8; }
.calc-grid button.zero { grid-column: span 2; }

/* v2.17 计算器 2x2 卡片：内联计算器（显示屏 + 键盘），替代工具选择网格
   v2.18：整体缩小 + 键盘 5 行等分剩余高度 —— 2x2 卡片实际高 230px，
   原先「显示屏 52 + 5 行固定 padding 键盘 ≈ 219」会溢出被 overflow:hidden 裁掉底部两行 */
.wg-calc-inline {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
    gap: 6px;
}
.wg-calc-inline .calc-display {
    padding: 7px 11px;
    font-size: 21px;
    min-height: 38px;
    margin-bottom: 0;
    flex-shrink: 0;
    border-radius: 9px;
}
/* 关键：5 行等分剩余高度，按钮高度由 grid 行决定（padding 归零 + flex 居中），
   这样无论卡片多高都完整显示，不会溢出裁切 */
.wg-calc-inline .calc-grid {
    flex: 1;
    min-height: 0;
    gap: 4px;
    grid-template-rows: repeat(5, minmax(0, 1fr));
}
.wg-calc-inline .calc-grid button {
    padding: 0;
    min-height: 0;
    font-size: 14px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* v2.17 科学计算器（详情弹窗）：5 列键盘 + 函数键（双类提高特异性，避免被 .calc-grid 4 列覆盖） */
.calc-grid.calc-sci-grid { grid-template-columns: repeat(5, 1fr); }
.calc-grid.calc-sci-grid button { font-size: 14px; padding: 12px 0; }
.calc-grid.calc-sci-grid button.fn { background: rgba(91,143,249,.22); color: #bcd0ff; }
.calc-grid.calc-sci-grid button.fn:hover { background: rgba(91,143,249,.38); }
/* v2.31：科学键盘末行孤零零的「0」改为跨满 5 列（覆盖全局 zero 跨 2 列规则） */
.calc-grid.calc-sci-grid button.zero { grid-column: 1 / -1; }

/* 计算器卡片（中/大号）：标题栏 + 翻页 + 工具网格（参考截图样式） */
.wg-calc-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    gap: 12px;
}
.wg-calc-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 10px;
    background: rgba(0,0,0,.28);
    border-radius: 10px;
}
.wg-calc-title {
    flex: 1;
    text-align: center;
    font-weight: 600;
    font-size: 14.5px;
    letter-spacing: 1px;
    color: #fff;
}
.wg-calc-nav {
    width: 30px; height: 30px;
    border: none;
    border-radius: 8px;
    background: rgba(var(--tint-rgb),.08);
    color: var(--text-dim);
    cursor: pointer;
    transition: background .16s, color .16s;
    font-size: 12px;
}
.wg-calc-nav:hover:not([disabled]) { background: rgba(var(--tint-rgb),.18); color: #fff; }
.wg-calc-nav[disabled] { opacity: .35; cursor: default; }
.wg-calc-grid {
    flex: 1;
    display: grid;
    gap: 8px;
    min-height: 0;
}
/* v2.31：换算器卡片（2 列）末页 3 个瓷块时，最后一个横跨整行，不留半格空洞 */
.wg-calc-grid .calc-tile:last-child:nth-child(odd) { grid-column: 1 / -1; }
.calc-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 6px;
    border: none;
    border-radius: 12px;
    background: rgba(0,0,0,.32);
    color: var(--text-dim);
    cursor: pointer;
    transition: background .18s, color .18s, transform .12s;
    font-family: inherit;
    font-size: 12.5px;
}
.calc-tile i { font-size: 22px; opacity: .92; }
.calc-tile:hover { background: rgba(0,0,0,.5); color: #fff; }
.calc-tile:active { transform: scale(.96); }
.wg-calc .calc-tools button:hover { background: rgba(var(--tint-rgb),.14); color: #fff; }

/* 中号(1x2)计算器卡片：工具瓷块缩小适配窄列 */
.wg-card[data-size="1x2"] .wg-calc-head { padding: 5px 6px; }
.wg-card[data-size="1x2"] .wg-calc-title { font-size: 12.5px; }
.wg-card[data-size="1x2"] .wg-calc-nav { width: 24px; height: 24px; font-size: 10px; }
.wg-card[data-size="1x2"] .wg-calc-grid { gap: 5px; }
.wg-card[data-size="1x2"] .calc-tile { gap: 5px; padding: 6px 3px; border-radius: 9px; font-size: 10.5px; }
.wg-card[data-size="1x2"] .calc-tile i { font-size: 15px; }

/* v2.16 工具选择改为顶部横排（v2.31：flex 换行左对齐 → 5 列等宽网格，
   15 个工具正好 3 行 × 5 列，末行不再零星几个按钮靠左突出） */
.calc-layout {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 0;
}
/* 计算器弹窗专用：扩展到宽屏（overlay 带 calc-modal-wide 类 → 内部面板加宽） */
#widgetDetailModal.calc-modal-wide .modal { max-width: 1000px; width: 92vw; }
#widgetDetailModal.calc-modal-wide .modal-body { padding: 18px 22px 22px; }
.calc-tabs {
    flex: none;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 6px;
    max-height: none;
    overflow: visible;
    padding: 10px;
    background: rgba(0,0,0,.32);
    border-radius: 12px;
}
.calc-tabs button {
    min-width: 0;
    display: flex; align-items: center; justify-content: center; gap: 5px;
    padding: 7px 4px;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: rgba(var(--tint-rgb),.78);
    font-size: 12px;
    cursor: pointer;
    transition: all .18s;
    white-space: nowrap;
    text-align: center;
}
.calc-tabs button i { width: 14px; text-align: center; opacity: .92; }
.calc-tabs button:hover { background: rgba(var(--tint-rgb),.08); color: #fff; }
.calc-tabs button.active { background: #f0a020; color: #fff; box-shadow: 0 4px 10px rgba(240,160,32,.35); }
.calc-tabs button.active i { color: #fff; }
.calc-panel { flex: 1; min-width: 0; min-height: 420px; padding: 10px 4px; }

/* 大屏计算器（详情弹窗中的 basic 计算器） */
#calcPanel .calc-display {
    width: 92%;
    margin: 4px auto 14px;
    padding: 16px 22px;
    background: rgba(0,0,0,.5);
    border-radius: 12px;
    color: #f5f5f5;
    font-size: 32px;
    text-align: right;
    letter-spacing: 1px;
    min-height: 70px;
    box-shadow: inset 0 0 0 2px rgba(var(--tint-rgb),.04);
    font-family: 'Consolas', 'Menlo', monospace;
    word-break: break-all;
}
#calcPanel .calc-grid {
    width: 92%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}
#calcPanel .calc-grid button {
    padding: 14px 0;
    font-size: 17px;
    border-radius: 10px;
    background: rgba(var(--tint-rgb),.09);
    border: 1px solid rgba(var(--tint-rgb),.08);
    color: #f0f0f0;
    cursor: pointer;
    transition: all .15s;
    font-family: inherit;
}
#calcPanel .calc-grid button:hover { background: rgba(var(--tint-rgb),.16); }
#calcPanel .calc-grid button:active { transform: scale(.96); }
#calcPanel .calc-grid button.eq {
    background: #f0a020;
    border-color: #f0a020;
    color: #fff;
    font-weight: 600;
}
#calcPanel .calc-grid button.eq:hover { background: #f5a830; }
#calcPanel .calc-grid button.op { color: #f0a020; font-weight: 500; }

/* v2.19 计算器模式切换（标准/科学，显示屏下方分段按钮） */
.calc-mode {
    display: flex;
    gap: 6px;
    width: 92%;
    margin: 0 auto 12px;
    padding: 4px;
    background: rgba(0,0,0,.32);
    border-radius: 11px;
}
.calc-mode button {
    flex: 1;
    padding: 8px 0;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: var(--text-dim);
    font-size: 13.5px;
    cursor: pointer;
    transition: all .18s;
    font-family: inherit;
    letter-spacing: 1px;
}
.calc-mode button:hover { color: #fff; }
.calc-mode button.active {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 3px 10px rgba(91,143,249,.4);
}

/* v2.19 函数计算器（f(x) 表达式 + 绘图 + 数值表） */
.func-calc { display: flex; flex-direction: column; gap: 12px; width: 96%; margin: 0 auto; }
.func-expr { display: flex; align-items: center; gap: 10px; }
.func-expr .fe-label {
    font-family: 'Consolas', 'Menlo', monospace;
    font-size: 18px;
    color: var(--accent);
    font-weight: 600;
    white-space: nowrap;
}
.func-input {
    flex: 1;
    min-width: 0;
    padding: 11px 14px;
    border: 1px solid rgba(var(--tint-rgb),.14);
    border-radius: 10px;
    background: rgba(0,0,0,.35);
    color: #f5f5f5;
    font-size: 16px;
    font-family: 'Consolas', 'Menlo', monospace;
    outline: none;
    transition: border-color .18s, box-shadow .18s;
}
.func-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(91,143,249,.18); }
.func-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.func-chips button {
    padding: 6px 11px;
    border: 1px solid rgba(var(--tint-rgb),.12);
    border-radius: 8px;
    background: rgba(var(--tint-rgb),.07);
    color: #bcd0ff;
    font-size: 13px;
    cursor: pointer;
    font-family: 'Consolas', 'Menlo', monospace;
    transition: all .15s;
}
.func-chips button:hover { background: rgba(91,143,249,.32); color: #fff; border-color: rgba(91,143,249,.5); }
.func-range { display: flex; align-items: center; gap: 8px; }
.func-range .fr-label { color: var(--text-dim); font-size: 13px; }
.func-range .fr-sep { color: var(--text-faint); }
.func-range input {
    width: 76px;
    padding: 7px 10px;
    border: 1px solid rgba(var(--tint-rgb),.14);
    border-radius: 8px;
    background: rgba(0,0,0,.3);
    color: #f5f5f5;
    font-size: 14px;
    outline: none;
    text-align: center;
}
.func-range input:focus { border-color: var(--accent); }
.func-range .btn { margin-left: auto; }
.func-out { display: flex; flex-direction: column; gap: 12px; }
.func-svg { width: 100%; height: auto; display: block; border-radius: 12px; }
.func-err {
    padding: 16px;
    text-align: center;
    color: #ffb0b0;
    background: rgba(255,91,91,.1);
    border-radius: 10px;
    font-size: 13px;
}
.func-table {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border: 1px solid rgba(var(--tint-rgb),.1);
    border-radius: 10px;
    overflow: hidden;
    max-height: 230px;
    overflow-y: auto;
}
.func-table .ft-head { display: contents; }
.func-table .ft-head span {
    background: rgba(91,143,249,.18);
    color: #bcd0ff;
    font-weight: 600;
    font-size: 12px;
    padding: 8px 12px;
}
.func-table .ft-row { display: contents; }
.func-table .ft-row span {
    padding: 5px 12px;
    font-size: 12.5px;
    color: var(--text-dim);
    font-family: 'Consolas', 'Menlo', monospace;
    border-top: 1px solid rgba(var(--tint-rgb),.05);
}
.func-table .ft-row span:first-child { color: var(--text); }

/* v2.19 股票 / 汇率组件（涨红跌绿，A股约定） */
.stock-list { display: flex; flex-direction: column; gap: 6px; }
.stock-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 10px;
    background: rgba(0,0,0,.22);
    border-radius: 9px;
}
.stock-row .s-name {
    flex: 1;
    min-width: 0;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.stock-row .s-tag {
    flex-shrink: 0;
    font-size: 10px;
    padding: 1px 5px;
    border-radius: 4px;
    background: rgba(var(--tint-rgb),.12);
    color: var(--text-dim);
}
.stock-row .s-price { font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.stock-row .s-chg { font-size: 12px; min-width: 64px; text-align: right; font-variant-numeric: tabular-nums; }
.up { color: #ff5b5b; }
.down { color: #2fd06a; }

.fx-list { display: flex; flex-direction: column; gap: 6px; }
.fx-head { font-size: 11px; color: var(--text-faint); padding: 2px 4px 4px; }
.fx-head b { color: var(--accent); }
.fx-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 10px;
    background: rgba(0,0,0,.22);
    border-radius: 9px;
}
.fx-cur { font-size: 13px; font-weight: 600; display: flex; align-items: baseline; gap: 6px; }
.fx-cur i { font-style: normal; font-size: 11px; color: var(--text-dim); font-weight: 400; }
.fx-rate { font-size: 12.5px; color: var(--text-dim); font-variant-numeric: tabular-nums; }

/* 股票 / 汇率详情弹窗 */
.stock-detail-head { display: flex; gap: 8px; margin-bottom: 12px; }
.stock-detail-head input {
    flex: 1;
    min-width: 0;
    padding: 9px 12px;
    border: 1px solid rgba(var(--tint-rgb),.14);
    border-radius: 9px;
    background: rgba(0,0,0,.3);
    color: #f5f5f5;
    font-size: 13px;
    outline: none;
}
.stock-detail-head input:focus { border-color: var(--accent); }
.stock-detail-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-bottom: 1px solid rgba(var(--tint-rgb),.06);
}
.stock-detail-row .sdr-info { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; }
.stock-detail-row .sdr-tag {
    font-size: 10px;
    padding: 1px 6px;
    border-radius: 4px;
    background: rgba(var(--tint-rgb),.12);
    color: var(--text-dim);
}
.stock-detail-row .sdr-info b { font-size: 14px; }
.stock-detail-row .sdr-info i { font-style: normal; font-size: 11px; color: var(--text-faint); }
.stock-detail-row .sdr-price { font-size: 14px; font-weight: 600; min-width: 70px; text-align: right; font-variant-numeric: tabular-nums; }
.stock-detail-row .sdr-chg { font-size: 13px; min-width: 60px; text-align: right; font-variant-numeric: tabular-nums; }
.stock-detail-row .sdr-del {
    border: none;
    background: transparent;
    color: var(--text-faint);
    cursor: pointer;
    padding: 4px 6px;
    border-radius: 6px;
    font-size: 13px;
}
.stock-detail-row .sdr-del:hover { background: rgba(255,91,91,.2); color: #ff6b6b; }
.stock-updated { font-size: 11px; color: var(--text-faint); text-align: center; margin-top: 12px; }
.stock-hint { font-size: 11px; color: var(--text-faint); margin-top: 10px; }

.fx-detail { display: flex; flex-direction: column; gap: 10px; }
.fxd-label { font-size: 12px; color: var(--text-dim); margin-bottom: -4px; }
.fxd-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.fxd-chips .uchip {
    padding: 6px 11px;
    background: rgba(var(--tint-rgb),.06);
    border: 1px solid rgba(var(--tint-rgb),.12);
    border-radius: 9px;
    color: var(--text-dim);
    font-size: 12.5px;
    line-height: 1.35;
    font-family: inherit;
    cursor: pointer;
    white-space: nowrap;
    transition: all .18s;
}
.fxd-chips .uchip i { font-style: normal; font-size: 11px; opacity: .72; }
.fxd-chips .uchip:hover { color: #fff; background: rgba(var(--tint-rgb),.11); border-color: rgba(var(--tint-rgb),.28); }
.fxd-chips .uchip.active { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: 0 3px 10px rgba(91,143,249,.32); }
.fxd-chips .uchip.active i { color: #fff; opacity: 1; }

/* 单位换算 */
.conv-box { display: grid; gap: 12px; max-width: 640px; }
.conv-row { display: flex; gap: 9px; align-items: stretch; }
.conv-input {
    flex: 1;
    padding: 12px 13px;
    background: rgba(var(--tint-rgb),.07);
    border: 1px solid rgba(var(--tint-rgb),.14);
    border-radius: 10px;
    color: #fff;
    font-size: 15px;
    outline: none;
    font-family: inherit;
    min-width: 0;
}
.conv-input:focus { border-color: var(--accent); }

/* ---- 无下拉框选择器：单位芯片组（替代原生 select） ---- */
.unit-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.unit-chips .uchip {
    padding: 7px 11px;
    background: rgba(var(--tint-rgb),.06);
    border: 1px solid rgba(var(--tint-rgb),.12);
    border-radius: 9px;
    color: var(--text-dim);
    font-size: 12.5px;
    line-height: 1.35;
    font-family: inherit;
    cursor: pointer;
    white-space: nowrap;
    transition: all .18s;
}
.unit-chips .uchip:hover {
    color: #fff;
    background: rgba(var(--tint-rgb),.11);
    border-color: rgba(var(--tint-rgb),.28);
}
.unit-chips .uchip.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    box-shadow: 0 3px 10px rgba(91,143,249,.32);
}
.conv-unit { margin: 9px 0; }
.cu-label {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: var(--text-dim);
    margin-bottom: 6px;
}
.cu-label i { font-size: 11px; opacity: .75; }
/* 站点编辑弹窗：分类芯片 */
.cat-chips { margin-top: 2px; }
.cat-chips .uchip { font-size: 13px; padding: 8px 13px; }
.conv-swap { text-align: center; }
.conv-result {
    flex: 1;
    display: flex; align-items: center;
    padding: 12px 13px;
    background: rgba(91,143,249,.14);
    border: 1px solid rgba(91,143,249,.35);
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    word-break: break-all;
    min-width: 0;
}
.conv-table { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; margin-top: 4px; }
.ct-row {
    display: flex; justify-content: space-between; gap: 8px;
    padding: 7px 10px;
    background: rgba(var(--tint-rgb),.05);
    border-radius: 8px;
    font-size: 12px;
    color: var(--text-dim);
}
.ct-row b { color: #fff; font-weight: 500; word-break: break-all; text-align: right; }
.ct-row.src { outline: 1px solid rgba(91,143,249,.6); }
.ct-row.dst { background: rgba(91,143,249,.2); }

/* 房贷 */
.loan-box, .tax-box, .base-box { max-width: 660px; }
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 11px;
    margin-bottom: 13px;
}
.form-grid .form-row { display: flex; flex-direction: column; gap: 6px; }
.form-grid .form-row label { font-size: 12.5px; color: var(--text-dim); }
.form-grid input, .form-grid select {
    padding: 10px 12px;
    background: rgba(var(--tint-rgb),.07);
    border: 1px solid rgba(var(--tint-rgb),.14);
    border-radius: 9px;
    color: #fff;
    font-size: 14px;
    outline: none;
    font-family: inherit;
}
.form-grid input:focus, .form-grid select:focus { border-color: var(--accent); }
.form-grid select option { background: #1c2030; }
.loan-result, .tax-result { margin-top: 14px; }
.loan-stats, .tax-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 9px;
    margin-bottom: 13px;
}
.loan-stats .ls, .tax-stats .ls {
    text-align: center;
    padding: 13px 8px;
    background: rgba(var(--tint-rgb),.06);
    border-radius: 11px;
}
.loan-stats .v, .tax-stats .v { font-size: 17px; font-weight: 700; color: var(--accent); word-break: break-all; }
.loan-stats .k, .tax-stats .k { font-size: 11px; color: var(--text-faint); margin-top: 4px; }
.loan-table-t { font-size: 12.5px; color: var(--text-dim); margin: 8px 0; }
.loan-table, .tax-rate-table table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12.5px;
}
.loan-table th, .loan-table td,
.tax-rate-table th, .tax-rate-table td {
    padding: 7px 8px;
    text-align: right;
    border-bottom: 1px solid rgba(var(--tint-rgb),.08);
}
.loan-table th:first-child, .loan-table td:first-child,
.tax-rate-table th:first-child, .tax-rate-table td:first-child { text-align: center; }
.loan-table th { color: var(--text-faint); font-weight: 500; }
.loan-table td { color: var(--text-dim); font-variant-numeric: tabular-nums; }

/* 个税 */
.tax-detail {
    display: grid; gap: 5px;
    padding: 11px 13px;
    background: rgba(var(--tint-rgb),.05);
    border-radius: 10px;
    font-size: 13px;
    color: var(--text-dim);
    margin-bottom: 13px;
}
.tax-detail b { color: #fff; }
.tax-rate-table .t { font-size: 12.5px; color: var(--text-faint); margin-bottom: 6px; }
.tax-rate-table td { color: var(--text-dim); }
.tax-rate-table tr.cur td { background: rgba(91,143,249,.18); color: #fff; }

/* 进制转换 */
.base-rows { display: grid; gap: 7px; margin-top: 6px; }
.base-rows .br {
    display: flex; justify-content: space-between; align-items: center; gap: 10px;
    padding: 10px 13px;
    background: rgba(var(--tint-rgb),.05);
    border-radius: 9px;
    font-size: 14px;
}
.base-rows .br span { color: var(--text-dim); flex-shrink: 0; }
.base-rows .br b { word-break: break-all; font-variant-numeric: tabular-nums; }
.base-rows .br.src { outline: 1px solid rgba(91,143,249,.55); }

/* 热门新闻 */
.news-toolbar {
    display: flex; align-items: center; justify-content: space-between;
    gap: 10px; flex-wrap: wrap;
    margin-bottom: 12px;
}
.news-search { display: flex; gap: 7px; margin-bottom: 4px; }
.news-search input {
    flex: 1;
    min-width: 0;
    padding: 9px 12px;
    background: rgba(var(--tint-rgb),.07);
    border: 1px solid rgba(var(--tint-rgb),.14);
    border-radius: 9px;
    color: #fff;
    font-size: 12.5px;
    outline: none;
    font-family: inherit;
}
.news-search input:focus { border-color: var(--accent); }
.news-search button {
    flex-shrink: 0;
    padding: 8px 12px;
    border: none;
    border-radius: 9px;
    background: var(--accent);
    color: #fff;
    font-size: 12.5px;
    cursor: pointer;
}
.news-search.wide { margin: 4px 0 12px; }
.news-search.wide input { padding: 11px 13px; font-size: 14px; }
.news-foot { font-size: 11px; color: var(--text-faint); text-align: center; margin-top: 10px; }
.wd-hot-list .q { color: var(--text-faint); font-size: 12px; opacity: .7; }
.wd-hot-list li:hover .q { color: var(--accent); opacity: 1; }
.hot-more { font-size: 10.5px; color: var(--text-faint); text-align: center; padding: 5px 0 1px; }
.news-refresh {
    background: none; border: none;
    color: var(--text-faint);
    font-size: 12px;
    cursor: pointer;
    padding: 4px 7px;
    border-radius: 7px;
    transition: all .16s;
    flex-shrink: 0;
}
.news-refresh:hover { color: #fff; background: rgba(var(--tint-rgb),.12); }

/* 翻译 */
.trans-box { display: grid; gap: 11px; }
.trans-box textarea {
    width: 100%;
    min-height: 92px;
    padding: 12px;
    background: rgba(var(--tint-rgb),.07);
    border: 1px solid rgba(var(--tint-rgb),.14);
    border-radius: 11px;
    color: #fff;
    font-size: 14px;
    resize: vertical;
    outline: none;
    font-family: inherit;
}
.trans-box textarea:focus { border-color: var(--accent); }
.trans-actions { display: flex; gap: 9px; align-items: center; }
.trans-actions select {
    padding: 9px 12px;
    background: rgba(var(--tint-rgb),.07);
    border: 1px solid rgba(var(--tint-rgb),.14);
    border-radius: 9px;
    color: #fff;
    outline: none;
    font-family: inherit;
}
.trans-actions select option { background: #1c2030; }

/* 待办 */
.todo-input { display: flex; gap: 8px; margin-bottom: 13px; }
.todo-input input { flex: 1; }
.todo-list { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.todo-item {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 12px;
    background: rgba(var(--tint-rgb),.06);
    border-radius: 10px;
    transition: all .18s;
}
.todo-item:hover { background: rgba(var(--tint-rgb),.11); }
.todo-item input[type="checkbox"] {
    width: 17px; height: 17px;
    cursor: pointer; accent-color: var(--accent);
    flex-shrink: 0;
}
.todo-item .t { flex: 1; font-size: 14px; word-break: break-word; }
.todo-item.done .t { text-decoration: line-through; opacity: .48; }
.todo-item .del {
    background: none; border: none;
    color: var(--text-faint); cursor: pointer;
    padding: 3px 6px; border-radius: 5px;
    transition: all .16s;
    flex-shrink: 0;
}
.todo-item .del:hover { color: var(--danger); background: rgba(255,107,107,.15); }

/* 便签 */
.note-list { display: grid; gap: 10px; }
.note-item {
    background: rgba(var(--tint-rgb),.06);
    border-radius: 11px;
    padding: 13px;
    position: relative;
}
.note-item textarea {
    width: 100%;
    background: none;
    border: none;
    color: #fff;
    font-size: 14px;
    resize: vertical;
    min-height: 56px;
    outline: none;
    font-family: inherit;
}
.note-item .del {
    position: absolute; top: 7px; right: 7px;
    background: none; border: none;
    color: var(--text-faint); cursor: pointer;
    padding: 3px 6px; border-radius: 5px;
}
.note-item .del:hover { color: var(--danger); background: rgba(255,107,107,.15); }
.note-item .time { font-size: 11px; color: var(--text-faint); margin-top: 5px; }

/* 天气详情 */
/* 天气城市选择栏（v2.9） */
.weather-city-bar {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(var(--tint-rgb),.08);
}
.w-city-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.w-city-chip {
    background: rgba(var(--tint-rgb),.06);
    border: 1px solid rgba(var(--tint-rgb),.12);
    color: var(--text-dim);
    padding: 4px 13px;
    border-radius: 14px;
    font-size: 12px;
    cursor: pointer;
    transition: all .15s;
    line-height: 1.4;
}
.w-city-chip:hover { background: rgba(var(--tint-rgb),.12); border-color: var(--accent); color: #fff; }
.w-city-chip.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    font-weight: 600;
}
.w-city-custom { display: flex; gap: 8px; }
.w-city-custom input {
    flex: 1;
    min-width: 0;
    background: rgba(var(--tint-rgb),.07);
    border: 1px solid rgba(var(--tint-rgb),.14);
    color: #fff;
    border-radius: 8px;
    padding: 7px 12px;
    font-size: 13px;
    outline: none;
    transition: border-color .15s;
}
.w-city-custom input::placeholder { color: var(--text-faint); }
.w-city-custom input:focus { border-color: var(--accent); }
.w-city-custom .btn { padding: 7px 14px; font-size: 13px; white-space: nowrap; }

.weather-detail { text-align: center; padding: 10px 0; }
.weather-detail .big { font-size: 58px; font-weight: 200; line-height: 1; }
.weather-detail .big sup { font-size: 22px; font-weight: 400; }
.weather-detail .cond { font-size: 17px; margin-top: 10px; }
.weather-detail .city { font-size: 13px; color: var(--text-dim); margin-top: 4px; }
.forecast {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-top: 22px;
}
.forecast .fc {
    text-align: center;
    padding: 11px 4px;
    background: rgba(var(--tint-rgb),.06);
    border-radius: 10px;
}
.forecast .fc .d { font-size: 11.5px; color: var(--text-dim); }
.forecast .fc .i { font-size: 19px; margin: 7px 0; }
.forecast .fc .t { font-size: 12.5px; }

/* 日历详情 */
.calendar-detail { text-align: center; }
.calendar-detail .big-day {
    font-size: 66px; font-weight: 200; line-height: 1;
    color: var(--danger);
}
.calendar-detail .ym { font-size: 17px; margin-top: 6px; }
.calendar-detail .week { font-size: 14px; color: var(--text-dim); margin-top: 4px; }

/* 日历详情头部（月份切换） —— v2.6 已改为截图4风格，下方样式已被 .cd-* 系列替代，保留旧类名以免误伤 */
.cal-detail-head {
    display: flex; align-items: center; justify-content: center; gap: 7px;
    margin-bottom: 15px;
}
.cal-detail-head .cal-ym { font-size: 16px; font-weight: 600; min-width: 92px; text-align: center; }

/* 兼容旧日历详情类名（已不再使用，但保留以防其它组件引用） */
.cal-today-info, .cal-fest-list { display: none; }

/* 时钟详情 */
/* （v2.18：原 .clock-detail 文本时钟样式已随弹窗改翻页时钟移除） */

/* ---------- 登录/注册 ---------- */
.auth-tabs { display: flex; gap: 6px; margin-bottom: 20px; }
.auth-tabs button {
    flex: 1;
    padding: 10px;
    border: none;
    background: rgba(var(--tint-rgb),.06);
    color: var(--text-dim);
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
    transition: all .2s;
}
.auth-tabs button.active {
    background: var(--accent);
    color: #fff;
}

/* ---------- 用户菜单 ---------- */
.user-menu-list { display: flex; flex-direction: column; gap: 3px; }
.user-menu-item {
    display: flex; align-items: center; gap: 11px;
    padding: 11px 13px;
    border-radius: 10px;
    cursor: pointer;
    transition: background .18s;
    font-size: 14px;
}
.user-menu-item:hover { background: rgba(var(--tint-rgb),.09); }
.user-menu-item i { width: 17px; color: var(--text-dim); }
.user-menu-item.danger { color: #ff8a8a; }
.user-menu-item.danger i { color: #ff8a8a; }

.user-info {
    display: flex; align-items: center; gap: 13px;
    padding: 14px;
    background: rgba(var(--tint-rgb),.06);
    border-radius: 12px;
    margin-bottom: 14px;
}
.user-info .av {
    width: 46px; height: 46px;
    border-radius: 50%;
    background: linear-gradient(135deg,#667eea,#764ba2);
    display: flex; align-items: center; justify-content: center;
    font-size: 18px; font-weight: 600;
    flex-shrink: 0;
}
.user-info .nm { font-size: 15px; font-weight: 600; }
.user-info .sub { font-size: 12px; color: var(--text-faint); margin-top: 2px; }

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
    .widget-area { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
    .search-section { margin-top: 52px; margin-bottom: 44px; }
}

@media (max-width: 768px) {
    :root { --sidebar-w: 62px; }
    .main-inner { padding: 22px 14px 60px; }
    .nav-link { font-size: 10px; }
    .nav-link i { font-size: 15px; }
    .widget-area { grid-template-columns: 1fr 1fr; gap: 10px; }
    .sites-grid.size-small  { grid-template-columns: repeat(auto-fill, minmax(70px, 1fr)); }
    .sites-grid.size-medium { grid-template-columns: repeat(auto-fill, minmax(82px, 1fr)); }
    .sites-grid.size-large  { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); }
    .modal { width: 100%; }
    .forecast { grid-template-columns: repeat(3, 1fr); }
    .unit-chips .uchip { font-size: 12px; padding: 6px 9px; }
    .form-grid { grid-template-columns: 1fr 1fr; }
    /* 窄屏：计算器工具页签顶部网格降为 3 列（v2.31 grid 等分对齐） */
    .calc-layout { gap: 8px; }
    .calc-tabs { padding: 6px; grid-template-columns: repeat(3, 1fr); gap: 5px; }
    .calc-tabs button { padding: 6px 4px; }
    .calc-tabs button span { display: inline; }
    .calc-panel { min-height: 360px; }
}

@media (max-width: 480px) {
    .widget-area { grid-template-columns: 1fr; }
    /* 单列布局下所有组件只占一列，行高仍按 size 保留 */
    .wg-card[data-size] { grid-column: span 1; }
    .wg-card[data-size="2x2"] { grid-column: span 1; }
    .search-section { margin-top: 36px; margin-bottom: 32px; }
}

/* ============================================================
   v2.20 主题：浅色模式（跟随系统 / 手动选择）
   通过 <html data-theme="light"> 触发；--tint-rgb 翻转所有白色玻璃。
   ============================================================ */
html[data-theme="light"] {
    --tint-rgb: 0, 0, 0;
    --text: #1c2438;
    --text-dim: rgba(28, 36, 56, .72);
    --text-faint: rgba(28, 36, 56, .5);
    --glass: rgba(255, 255, 255, .72);
    --glass-hi: rgba(255, 255, 255, .95);
    --glass-line: rgba(28, 36, 56, .12);
    --accent: #4f7ff0;
    --accent-bg: rgba(79, 127, 240, .14);
    --glass-strong: #ffffff;
    --danger: #e5484d;
    --success: #3da02f;
    --shadow: 0 12px 40px rgba(60, 80, 140, .18);
    --menu-bg: rgba(255, 255, 255, .97);
    color-scheme: light;
}

html[data-theme="light"] body {
    background: #e8edf7;
    color: var(--text);
}

html[data-theme="light"] .bg-layer {
    background: linear-gradient(135deg, #eef3fc 0%, #e4ebf8 50%, #d8e3f4 100%);
}
html[data-theme="light"] .bg-layer::after {
    background: rgba(255, 255, 255, .22);
}

/* 侧栏 */
html[data-theme="light"] .sidebar {
    background: rgba(255, 255, 255, .62);
}
html[data-theme="light"] .nav-link:hover,
html[data-theme="light"] .nav-link.active { color: var(--text); }
html[data-theme="light"] .sidebar-btn:hover { color: var(--text); background: rgba(0, 0, 0, .08); }

/* 搜索 */
html[data-theme="light"] .search-input { color: var(--text); }
html[data-theme="light"] .search-btn { background: var(--accent); color: #fff; }
html[data-theme="light"] .search-btn:hover { background: var(--accent); opacity: .88; }
html[data-theme="light"] .search-input-wrapper:focus-within { border-color: rgba(0, 0, 0, .22); }

/* 站点图标区 */
html[data-theme="light"] .site-item { color: var(--text); }
html[data-theme="light"] .site-item:hover { background: rgba(255, 255, 255, .8); }
html[data-theme="light"] .site-item:hover .site-name { color: var(--text); }
html[data-theme="light"] .site-icon .letter { color: var(--text); }
html[data-theme="light"] .add-site-btn:hover { color: var(--text); border-color: rgba(0, 0, 0, .4); background: rgba(255, 255, 255, .5); }

/* 右键菜单 */
html[data-theme="light"] .ctx-item { color: var(--text); }
html[data-theme="light"] .ctx-item i { color: var(--text-dim); }

/* 弹窗 */
html[data-theme="light"] .modal { background: #ffffff; border-color: rgba(0, 0, 0, .08); }
html[data-theme="light"] .modal-header { border-bottom-color: rgba(0, 0, 0, .06); }
html[data-theme="light"] .modal-close:hover { color: var(--text); background: rgba(0, 0, 0, .07); }

/* 表单 */
html[data-theme="light"] .form-row input[type="text"],
html[data-theme="light"] .form-row input[type="url"],
html[data-theme="light"] .form-row input[type="password"],
html[data-theme="light"] .form-row input[type="number"],
html[data-theme="light"] .form-row input[type="email"],
html[data-theme="light"] .form-row select,
html[data-theme="light"] .form-row textarea {
    background: rgba(0, 0, 0, .04);
    border-color: rgba(0, 0, 0, .12);
    color: var(--text);
}
html[data-theme="light"] .form-row input:focus,
html[data-theme="light"] .form-row select:focus,
html[data-theme="light"] .form-row textarea:focus { background: #fff; }
html[data-theme="light"] .form-row input::placeholder,
html[data-theme="light"] .form-row textarea::placeholder { color: rgba(28, 36, 56, .38); }
html[data-theme="light"] .form-row select option { background: #fff; color: var(--text); }

/* 分段 / 按钮 */
html[data-theme="light"] .seg button { color: var(--text-dim); }
html[data-theme="light"] .seg button:hover { color: var(--text); }
html[data-theme="light"] .btn-ghost { background: rgba(0, 0, 0, .06); color: var(--text-dim); }
html[data-theme="light"] .btn-ghost:hover { background: rgba(0, 0, 0, .11); color: var(--text); }

/* 图标预览 / 颜色 */
html[data-theme="light"] .icon-preview { background: rgba(0, 0, 0, .06); }
html[data-theme="light"] .color-row input[type="color"] {
    background: rgba(0, 0, 0, .04);
    border-color: rgba(0, 0, 0, .12);
}

/* Toast */
html[data-theme="light"] .toast {
    background: rgba(255, 255, 255, .97);
    border-color: rgba(0, 0, 0, .1);
    color: var(--text);
}

/* 用户菜单 / 登录 */
html[data-theme="light"] .user-info { background: rgba(0, 0, 0, .04); }
html[data-theme="light"] .user-menu-item:hover { background: rgba(0, 0, 0, .05); }
html[data-theme="light"] .auth-tabs button { background: rgba(0, 0, 0, .05); color: var(--text-dim); }

/* 热搜 / 组件通用文字（覆盖残留白色文字） */
html[data-theme="light"] .hot-title { color: var(--text); }
html[data-theme="light"] .wg-title { color: var(--text); }
html[data-theme="light"] .wg-art .art-title { color: var(--text); }
html[data-theme="light"] .wg-tool .tool-name { color: var(--text); }
html[data-theme="light"] .news-search input { background: rgba(0, 0, 0, .04); border-color: rgba(0, 0, 0, .12); color: var(--text); }
html[data-theme="light"] .wd-hot-list li { border-bottom-color: rgba(0, 0, 0, .06); }
html[data-theme="light"] .wd-hot-list li:hover { background: rgba(0, 0, 0, .05); }
html[data-theme="light"] .wd-hot-list .t { color: var(--text); }

/* 组件内部输入控件：这些控件用 rgba(var(--tint-rgb),.07) 做底色，
   浅色主题下翻成浅灰底，但文字仍是硬编码 #fff，会白字白底 → 统一改成深色文字 */
html[data-theme="light"] .conv-input,
html[data-theme="light"] .form-grid input,
html[data-theme="light"] .form-grid select,
html[data-theme="light"] .trans-box textarea,
html[data-theme="light"] .trans-actions select,
html[data-theme="light"] .note-item textarea,
html[data-theme="light"] .w-city-custom input {
    color: var(--text);
}
html[data-theme="light"] .conv-input,
html[data-theme="light"] .form-grid input,
html[data-theme="light"] .form-grid select,
html[data-theme="light"] .trans-box textarea,
html[data-theme="light"] .trans-actions select,
html[data-theme="light"] .w-city-custom input {
    background: rgba(0, 0, 0, .04);
    border-color: rgba(0, 0, 0, .12);
}
html[data-theme="light"] .form-grid select option,
html[data-theme="light"] .trans-actions select option {
    background: #fff;
    color: var(--text);
}
html[data-theme="light"] .conv-input::placeholder,
html[data-theme="light"] .form-grid input::placeholder,
html[data-theme="light"] .trans-box textarea::placeholder,
html[data-theme="light"] .w-city-custom input::placeholder {
    color: rgba(28, 36, 56, .4);
}
html[data-theme="light"] .note-item textarea::placeholder {
    color: rgba(28, 36, 56, .4);
}

/* ============================================================
   v2.21 浅色主题修复：组件内部「固定深色背景 / 硬编码白字」在浅色下看不清
   策略：深色背景 → 浅灰底；#fff / #bcd0ff → 深色文字（继承主题 --text）
   ============================================================ */

/* 股票 / 汇率行：深底 rgba(0,0,0,.22) → 浅底（文字继承主题深色即清晰） */
html[data-theme="light"] .stock-row,
html[data-theme="light"] .fx-row {
    background: rgba(0, 0, 0, .04);
}
html[data-theme="light"] .stock-detail-head input {
    background: rgba(0, 0, 0, .04);
    border-color: rgba(0, 0, 0, .12);
    color: var(--text);
}

/* 计算器卡片：显示屏 / 标题栏 / 工具瓷块 / 页签 / 模式切换 */
html[data-theme="light"] .calc-display {
    background: rgba(0, 0, 0, .05);
    color: var(--text);
}
html[data-theme="light"] .wg-calc-head { background: rgba(0, 0, 0, .05); }
html[data-theme="light"] .wg-calc-title { color: var(--text); }
html[data-theme="light"] .wg-calc-nav { color: var(--text-dim); }
html[data-theme="light"] .wg-calc-nav:hover:not([disabled]) { color: var(--text); background: rgba(0, 0, 0, .1); }
html[data-theme="light"] .calc-tile { background: rgba(0, 0, 0, .05); color: var(--text-dim); }
html[data-theme="light"] .calc-tile:hover { background: rgba(0, 0, 0, .09); color: var(--text); }
html[data-theme="light"] .calc-tabs { background: rgba(0, 0, 0, .05); }
html[data-theme="light"] .calc-tabs button { color: var(--text-dim); }
html[data-theme="light"] .calc-tabs button:hover { color: var(--text); }
html[data-theme="light"] .calc-mode { background: rgba(0, 0, 0, .05); }
html[data-theme="light"] .calc-mode button { color: var(--text-dim); }
html[data-theme="light"] .calc-mode button:hover { color: var(--text); }

/* 计算器按键：白字 → 深字（op 用蓝字、eq 实底保持白字） */
html[data-theme="light"] .calc-grid button { color: var(--text); }
html[data-theme="light"] .calc-grid button.op { color: var(--accent); }
html[data-theme="light"] .calc-grid button.eq { color: #fff; }
html[data-theme="light"] #calcPanel .calc-grid button { color: var(--text); }
html[data-theme="light"] #calcPanel .calc-grid button.op { color: #c77f00; }
html[data-theme="light"] #calcPanel .calc-grid button.eq { color: #fff; }

/* 函数计算器：浅蓝字 → 深蓝字、输入框浅底深字 */
html[data-theme="light"] .calc-grid.calc-sci-grid button.fn { color: #3a5fd0; }
html[data-theme="light"] .func-table .ft-head span { color: #3a5fd0; }
html[data-theme="light"] .func-chips button { color: #3a5fd0; }
html[data-theme="light"] .func-input,
html[data-theme="light"] .func-range input {
    background: rgba(0, 0, 0, .04);
    border-color: rgba(0, 0, 0, .12);
    color: var(--text);
}

/* 换算 / 个税表：白字数值 → 深字 */
html[data-theme="light"] .ct-row b,
html[data-theme="light"] .tax-detail b { color: var(--text); }

/* hover 白字（浅色玻璃底上白字对比度低） */
html[data-theme="light"] .unit-chips .uchip:hover,
html[data-theme="light"] .fxd-chips .uchip:hover,
html[data-theme="light"] .w-city-chip:hover,
html[data-theme="light"] .news-refresh:hover { color: var(--text); }

/* ============================================================
   右上角浮动工具条（v2.27）：设为主页 / 加入收藏 / 下载插件
   ============================================================ */
.top-tools {
    position: fixed;
    top: 16px;
    right: 20px;
    z-index: 60;          /* 低于弹窗（overlay 更高），不影响交互 */
    display: flex;
    gap: 8px;
}
.top-tool {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 13px;
    border-radius: 999px;
    font-size: 12.5px;
    font-family: inherit;
    color: var(--text-dim);
    background: var(--glass);
    border: 1px solid var(--glass-line);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    cursor: pointer;
    text-decoration: none;
    transition: color .18s, background .18s, transform .18s;
}
.top-tool:hover {
    color: var(--text);
    background: var(--glass-hi);
    transform: translateY(-1px);
}
.top-tool.accent { color: #fff; background: var(--accent); border-color: transparent; }
.top-tool.accent:hover { filter: brightness(1.08); color: #fff; }
@media (max-width: 760px) {
    .top-tools { top: 10px; right: 12px; gap: 6px; }
    .top-tool span { display: none; }
    .top-tool { padding: 8px 11px; }
}

/* ============================================================
   右侧弹窗抽屉（v2.29）：加入收藏 / 下载插件
   ============================================================ */
.drawer-overlay {
    position: fixed;
    inset: 0;
    z-index: 90;
    background: rgba(10, 14, 24, .45);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    opacity: 0;
    transition: opacity .22s;
}
.drawer-overlay.show { opacity: 1; }
.side-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 95;
    width: min(400px, 92vw);
    display: flex;
    flex-direction: column;
    background: var(--glass-strong, #fff);
    border-left: 1px solid var(--glass-line);
    box-shadow: -18px 0 50px rgba(0, 0, 0, .18);
    transform: translateX(100%);
    transition: transform .26s cubic-bezier(.22,.8,.3,1);
}
.side-drawer.show { transform: translateX(0); }
.drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px;
    border-bottom: 1px solid var(--glass-line);
    flex-shrink: 0;
}
.drawer-head h3 {
    margin: 0;
    font-size: 15.5px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}
.drawer-head h3 i { color: var(--accent); }
.drawer-close {
    width: 30px;
    height: 30px;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: var(--text-dim);
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    transition: background .15s, color .15s;
}
.drawer-close:hover { background: rgba(var(--tint-rgb), .12); color: var(--text); }
.drawer-body {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 16px 18px;
}
.drawer-foot {
    flex-shrink: 0;
    padding: 12px 18px;
    border-top: 1px solid var(--glass-line);
}
.drawer-foot-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 9px 14px;
    border-radius: 10px;
    background: rgba(var(--tint-rgb), .1);
    border: 1px solid var(--glass-line);
    color: var(--text-dim);
    text-decoration: none;
    font-size: 13px;
    transition: background .18s, color .18s;
}
.drawer-foot-link:hover { background: rgba(var(--tint-rgb), .18); color: var(--text); }

/* 抽屉内容：加入收藏 */
.fav-tip {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(var(--tint-rgb), .08);
    border: 1px solid var(--glass-line);
    color: var(--text-dim);
    font-size: 13px;
    line-height: 1.7;
    margin-bottom: 14px;
}
.fav-tip i { color: var(--accent); margin-top: 4px; }
.fav-url-row { display: flex; gap: 8px; }
.fav-url {
    flex: 1;
    min-width: 0;
    height: 38px;
    padding: 0 12px;
    border: 1px solid var(--glass-line);
    border-radius: 8px;
    background: var(--glass);
    color: var(--text);
    font-size: 13px;
    outline: none;
    font-family: inherit;
}
.drawer-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 0 16px;
    height: 38px;
    border: none;
    border-radius: 8px;
    background: var(--accent);
    color: #fff;
    font-size: 13px;
    font-family: inherit;
    cursor: pointer;
    transition: filter .15s;
    flex-shrink: 0;
}
.drawer-btn:hover { filter: brightness(1.08); }
.drawer-btn.ghost {
    background: rgba(var(--tint-rgb), .1);
    color: var(--text);
    border: 1px solid var(--glass-line);
}
kbd.fav-key {
    display: inline-block;
    padding: 1px 7px;
    border-radius: 5px;
    border: 1px solid var(--glass-line);
    background: rgba(var(--tint-rgb), .1);
    font-family: inherit;
    font-size: 12px;
    color: var(--text);
}

/* 抽屉内容：插件列表 */
.dp-item {
    display: flex;
    gap: 12px;
    padding: 14px;
    border-radius: 14px;
    background: var(--glass);
    border: 1px solid var(--glass-line);
    margin-bottom: 12px;
    transition: background .18s, border-color .18s;
}
.dp-item:hover { background: var(--glass-hi); border-color: rgba(var(--tint-rgb), .28); }
.dp-ico {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    background: rgba(var(--tint-rgb), .1);
    overflow: hidden;
}
.dp-ico img { width: 100%; height: 100%; object-fit: contain; }
.dp-main { flex: 1; min-width: 0; }
.dp-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.dp-tag {
    font-size: 11px;
    font-weight: 400;
    color: var(--text-dim);
    background: rgba(var(--tint-rgb), .1);
    padding: 1px 7px;
    border-radius: 6px;
}
.dp-sum {
    font-size: 12.5px;
    color: var(--text-dim);
    line-height: 1.55;
    margin-top: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.dp-ops { display: flex; gap: 8px; margin-top: 10px; }
.dp-ops .drawer-btn { height: 30px; padding: 0 13px; font-size: 12.5px; text-decoration: none; }
.drawer-empty {
    text-align: center;
    color: var(--text-dim);
    padding: 40px 10px;
    font-size: 13px;
}
.drawer-empty i { font-size: 38px; opacity: .45; display: block; margin-bottom: 12px; }
.drawer-loading { text-align: center; color: var(--text-dim); padding: 40px 0; font-size: 13px; }

/* ============================================================
   登录/注册/找回密码 验证码（v2.28，v2.29 验证码图内嵌输入框右侧）
   ============================================================ */
.captcha-row {
    display: flex;
    align-items: center;
    gap: 8px;
}
/* 输入框 + 验证码图组成一个整体输入框，图贴在右侧 */
.captcha-group {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: stretch;
    height: 38px;
    border: 1px solid var(--glass-line, rgba(255,255,255,.12));
    border-radius: 8px;
    background: var(--glass, rgba(255,255,255,.05));
    overflow: hidden;
    transition: border-color .18s, background .18s;
}
.captcha-group:focus-within {
    border-color: var(--accent, #5b8ff9);
    background: var(--glass-hi, rgba(255,255,255,.08));
}
.captcha-input {
    flex: 1;
    min-width: 0;
    height: 100%;
    padding: 0 12px;
    border: none;
    background: transparent;
    color: var(--text, #fff);
    font-size: 14px;
    outline: none;
    font-family: inherit;
}
.captcha-input::placeholder { color: rgba(var(--tint-rgb), .35); }
.captcha-img {
    height: 100%;
    width: 106px;
    border: none;
    border-left: 1px solid var(--glass-line, rgba(255,255,255,.12));
    border-radius: 0;
    cursor: pointer;
    flex-shrink: 0;
    background: #f6f8fc;
    user-select: none;
    -webkit-user-drag: none;
    display: block;
}
.captcha-img:hover { filter: brightness(1.05); }
.captcha-refresh {
    font-size: 12.5px;
    color: var(--text-dim, rgba(255,255,255,.7));
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
}
.captcha-refresh:hover { color: var(--accent, #5b8ff9); }

/* ============================================================
   下载插件页 plugin.php（v2.27）：列表 + 后台可编辑详情页
   全部走主题变量，浅色/深色自动适配
   ============================================================ */
.plugin-page {
    position: relative;
    z-index: 1;
    max-width: 980px;
    margin: 0 auto;
    padding: 40px 22px 60px;
    color: var(--text);
}
.plugin-head { text-align: center; margin-bottom: 28px; }
.plugin-back {
    display: inline-flex; align-items: center; gap: 6px;
    color: var(--text-dim); text-decoration: none; font-size: 13px;
}
.plugin-back:hover { color: var(--accent); }
.plugin-title { font-size: 26px; font-weight: 600; margin: 14px 0 6px; }
.plugin-sub { color: var(--text-dim); font-size: 13.5px; }

/* 列表网格：列定义与 display:grid 写在同一规则内，避免 CSS 门禁误判 */
.plugin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}
.plugin-card {
    display: flex;
    flex-direction: column;
    padding: 20px 18px 16px;
    border-radius: var(--radius);
    background: var(--glass);
    border: 1px solid var(--glass-line);
    color: var(--text);
    text-decoration: none;
    transition: transform .18s, background .18s, border-color .18s, box-shadow .18s;
}
.plugin-card:hover {
    transform: translateY(-3px);
    background: var(--glass-hi);
    border-color: rgba(var(--tint-rgb), .28);
    box-shadow: 0 14px 34px rgba(0, 0, 0, .12);
}
.pc-ico {
    width: 52px; height: 52px; border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 24px; background: rgba(var(--tint-rgb), .1);
    margin-bottom: 14px; overflow: hidden;
}
.plugin-ico-img { width: 100%; height: 100%; object-fit: contain; }
.pc-name { font-size: 15.5px; font-weight: 600; margin-bottom: 5px; }
.pc-sum {
    font-size: 12.5px; color: var(--text-dim); line-height: 1.55;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.pc-foot { display: flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 14px; font-size: 11.5px; color: var(--text-faint); }
.pc-tag { padding: 2px 7px; border-radius: 6px; background: rgba(var(--tint-rgb), .1); }
.pc-dl { margin-left: auto; }

/* 详情页 */
.plugin-detail {
    padding: 26px;
    border-radius: var(--radius);
    background: var(--glass);
    border: 1px solid var(--glass-line);
}
.pd-top {
    display: flex; gap: 22px; align-items: center; flex-wrap: wrap;
    padding-bottom: 22px;
}
.pd-ico {
    width: 84px; height: 84px; border-radius: 22px;
    display: flex; align-items: center; justify-content: center;
    font-size: 38px; background: rgba(var(--tint-rgb), .1);
    overflow: hidden; flex-shrink: 0;
    box-shadow: inset 0 0 0 1px var(--glass-line);
}
.pd-meta { flex: 1; min-width: 220px; }
.pd-meta h2 { font-size: 21px; font-weight: 600; margin-bottom: 8px; }
.pd-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.pd-tag {
    font-size: 12px; color: var(--text-dim);
    background: rgba(var(--tint-rgb), .08); padding: 3px 9px; border-radius: 7px;
}
.pd-body {
    margin-top: 24px; padding-top: 22px;
    border-top: 1px solid var(--glass-line);
    font-size: 14px; line-height: 1.85; color: var(--text);
}
.pd-body img { max-width: 100%; border-radius: 10px; margin: 10px 0; }
.pd-body h1, .pd-body h2, .pd-body h3, .pd-body h4 { margin: 18px 0 10px; line-height: 1.4; }
.pd-body ul, .pd-body ol { margin: 10px 0 10px 22px; }
.pd-body li { margin: 4px 0; }
.pd-body p { margin: 10px 0; }
.pd-body a { color: var(--accent); }
.pd-body code { background: rgba(var(--tint-rgb), .1); padding: 2px 6px; border-radius: 5px; font-size: 13px; }
.pd-body blockquote {
    border-left: 3px solid var(--accent); padding-left: 12px;
    color: var(--text-dim); margin: 12px 0;
}
.pd-body table { width: 100%; border-collapse: collapse; margin: 12px 0; }
.pd-body th, .pd-body td { border: 1px solid var(--glass-line); padding: 8px 10px; }
.pd-placeholder { color: var(--text-faint); }
.pd-foot { margin-top: 26px; display: flex; justify-content: center; }

/* 通用按钮 */
.plugin-btn {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 9px 18px; border-radius: 10px; font-size: 13.5px;
    text-decoration: none; color: var(--text);
    background: rgba(var(--tint-rgb), .1);
    border: 1px solid var(--glass-line);
    transition: background .18s, filter .18s;
}
.plugin-btn:hover { background: rgba(var(--tint-rgb), .18); }
.plugin-btn.primary { background: var(--accent); color: #fff; border-color: transparent; }
.plugin-btn.primary:hover { filter: brightness(1.08); }
.plugin-btn.big { padding: 12px 26px; font-size: 15px; }
.plugin-btn.ghost { background: transparent; }

.plugin-empty { text-align: center; padding: 60px 20px; color: var(--text-dim); }
.plugin-empty i { font-size: 46px; opacity: .5; display: block; margin-bottom: 14px; }
.plugin-empty p { margin-bottom: 16px; }
.plugin-foot {
    margin-top: 40px; display: flex; justify-content: space-between;
    font-size: 12.5px; color: var(--text-faint);
    border-top: 1px solid var(--glass-line); padding-top: 16px;
}
.plugin-foot a { color: var(--text-dim); text-decoration: none; }
.plugin-foot a:hover { color: var(--accent); }

