/* ============================================================
   kz-theme-center.css 【20261022a 新增 · 独立模块】
   Windows 黑色电脑「主题中心」：22 个桌面小组件 + 8 套主题配色
   · 完全独立：不改 2.css / 6.css / 任何原有样式
   · 每个小组件可开关、可拖动、可删除（× 或设置里关）
   · 主题只作用在本模块卡片；选了主题才会改变黑色桌面壁纸
   ============================================================ */

/* ---------------- 小组件层 ---------------- */
#kzTcLayer {
    position: fixed;
    inset: 0;
    z-index: 55;
    pointer-events: none;
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
    -webkit-user-select: none;
    user-select: none;
}

.kz-tc-card {
    position: absolute;
    pointer-events: auto;
    width: 208px;
    padding: 10px 12px 11px;
    border-radius: 16px;
    color: #ffffff;
    background:
        linear-gradient(160deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.06));
    border: 1px solid rgba(255, 255, 255, 0.32);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.35);
    -webkit-backdrop-filter: blur(14px) saturate(150%);
    backdrop-filter: blur(14px) saturate(150%);
    touch-action: none;
    cursor: grab;
    box-sizing: border-box;
    overflow: hidden;
}

.kz-tc-card:active { cursor: grabbing; }

.kz-tc-card.kz-tc-light {
    color: #0f172a;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.62));
    border-color: rgba(15, 23, 42, 0.10);
}

/* ---------------- 卡片头 ---------------- */
.kz-tc-head {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 600;
    opacity: 0.82;
    margin-bottom: 6px;
    white-space: nowrap;
}

.kz-tc-head .kz-tc-name {
    overflow: hidden;
    text-overflow: ellipsis;
}

.kz-tc-x {
    margin-left: auto;
    width: 18px;
    height: 18px;
    border: none;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.16);
    color: inherit;
    font-size: 11px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.8;
}

.kz-tc-x:hover { background: rgba(239, 68, 68, 0.75); color: #fff; opacity: 1; }

/* ---------------- 通用排版 ---------------- */
.kz-tc-big {
    font-size: 30px;
    font-weight: 800;
    line-height: 1.05;
    font-variant-numeric: tabular-nums;
}

.kz-tc-sub {
    font-size: 11px;
    opacity: 0.75;
    margin-top: 3px;
    line-height: 1.5;
}

.kz-tc-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
    font-size: 12px;
}

.kz-tc-bar {
    height: 7px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.20);
    overflow: hidden;
    margin-top: 8px;
}

.kz-tc-bar > i {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--kzA, #38bdf8), var(--kzB, #2563eb));
    transition: width 0.6s ease;
}

.kz-tc-btn {
    border: none;
    border-radius: 8px;
    padding: 4px 9px;
    font-size: 11px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.20);
    color: inherit;
}

.kz-tc-btn:hover { background: rgba(255, 255, 255, 0.38); }
.kz-tc-btn.acc { background: linear-gradient(90deg, var(--kzA, #38bdf8), var(--kzB, #2563eb)); color: #fff; }

.kz-tc-input {
    flex: 1;
    min-width: 0;
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    padding: 4px 7px;
    font-size: 11px;
    color: inherit;
    outline: none;
}

.kz-tc-input::placeholder { color: inherit; opacity: 0.5; }

.kz-tc-light .kz-tc-input { border-color: rgba(15, 23, 42, 0.16); background: rgba(15, 23, 42, 0.05); }

/* ---------------- 列表（待办） ---------------- */
.kz-tc-list { margin-top: 6px; display: flex; flex-direction: column; gap: 4px; }

.kz-tc-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11.5px;
    padding: 3px 4px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.10);
}

.kz-tc-item input { flex: none; width: 13px; height: 13px; accent-color: var(--kzB, #2563eb); }

.kz-tc-item span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
}

.kz-tc-item.done span { opacity: 0.45; text-decoration: line-through; }

.kz-tc-item .kz-tc-del {
    border: none;
    background: transparent;
    color: inherit;
    opacity: 0.5;
    cursor: pointer;
    font-size: 12px;
    padding: 0 2px;
}

/* ---------------- 便签 ---------------- */
.kz-tc-note {
    width: 100%;
    min-height: 64px;
    resize: vertical;
    border: none;
    outline: none;
    background: transparent;
    color: inherit;
    font-size: 12px;
    line-height: 1.6;
    font-family: inherit;
}

/* ---------------- 心情 ---------------- */
.kz-tc-moods { display: flex; gap: 6px; margin-top: 4px; }

.kz-tc-mood {
    width: 30px;
    height: 30px;
    border: none;
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.12);
    font-size: 17px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.kz-tc-mood.kz-on { background: linear-gradient(90deg, var(--kzA, #38bdf8), var(--kzB, #2563eb)); }

/* ---------------- 快捷应用 ---------------- */
.kz-tc-apps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 4px; }

.kz-tc-app {
    border: none;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.16);
    color: inherit;
    font-size: 17px;
    padding: 8px 0;
    cursor: pointer;
}

.kz-tc-app:hover { background: rgba(255, 255, 255, 0.34); }

/* ---------------- 世界时钟 ---------------- */
.kz-tc-world { display: flex; flex-direction: column; gap: 3px; margin-top: 2px; }

.kz-tc-wrow { display: flex; justify-content: space-between; font-size: 11.5px; }
.kz-tc-wrow b { font-variant-numeric: tabular-nums; font-weight: 700; }

/* ============================================================
   主题配色（8 套）：定义强调色变量；选了才会覆盖黑色桌面壁纸
   ============================================================ */
body.kz-tc-blue   { --kzA: #38bdf8; --kzB: #2563eb; }
body.kz-tc-pink   { --kzA: #f9a8d4; --kzB: #db2777; }
body.kz-tc-wood   { --kzA: #fcd34d; --kzB: #c2410c; }
body.kz-tc-aurora { --kzA: #6ee7b7; --kzB: #059669; }
body.kz-tc-space  { --kzA: #a5b4fc; --kzB: #4f46e5; }
body.kz-tc-mono   { --kzA: #e5e7eb; --kzB: #9ca3af; }
body.kz-tc-candy  { --kzA: #fda4af; --kzB: #8b5cf6; }

body.kz-tc-blue[data-kz-bg-mode="theme"] #windowsDesktopSystem .bg-container { background: linear-gradient(140deg, #0ea5e9, #1e40af 52%, #0f172a) !important; }
body.kz-tc-pink[data-kz-bg-mode="theme"] #windowsDesktopSystem .bg-container { background: linear-gradient(140deg, #f9a8d4, #be185d 55%, #4a044e) !important; }
body.kz-tc-wood[data-kz-bg-mode="theme"] #windowsDesktopSystem .bg-container { background: linear-gradient(140deg, #fde68a, #d97706 52%, #7c2d12) !important; }
body.kz-tc-aurora[data-kz-bg-mode="theme"] #windowsDesktopSystem .bg-container { background: linear-gradient(140deg, #064e3b, #065f46 45%, #0f766e) !important; }
body.kz-tc-space[data-kz-bg-mode="theme"] #windowsDesktopSystem .bg-container { background: linear-gradient(140deg, #0b1026, #1e1b4b 55%, #000000) !important; }
body.kz-tc-mono[data-kz-bg-mode="theme"] #windowsDesktopSystem .bg-container { background: linear-gradient(140deg, #1f2937, #111827 60%, #000000) !important; }
body.kz-tc-candy[data-kz-bg-mode="theme"] #windowsDesktopSystem .bg-container { background: linear-gradient(140deg, #fecdd3, #a78bfa 52%, #6d28d9) !important; }

/* ============================================================
   设置面板（主题中心标签页）控件
   ============================================================ */
.kz-tc-set { display: flex; flex-direction: column; gap: 12px; }

.kz-tc-set-card {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px 14px;
    background: #f8fafc;
}

.kz-tc-set-card h4 {
    margin: 0 0 10px;
    font-size: 13.5px;
    color: #0f172a;
}

.kz-tc-themes {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.kz-tc-theme {
    border: 2px solid transparent;
    border-radius: 10px;
    padding: 6px 10px 6px 8px;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    background: #fff;
    color: #334155;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}

.kz-tc-theme i {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: inline-block;
}

.kz-tc-theme.kz-on {
    border-color: #2563eb;
    color: #1d4ed8;
    font-weight: 600;
}

.kz-tc-wgrid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 6px;
}

.kz-tc-wrow {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #334155;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 6px 8px;
    background: #fff;
}

.kz-tc-wrow > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.kz-tc-sw {
    position: relative;
    width: 34px;
    height: 19px;
    flex: none;
    margin-left: auto;
}

.kz-tc-sw input { opacity: 0; width: 0; height: 0; }

.kz-tc-sw i {
    position: absolute;
    inset: 0;
    background: #cbd5e1;
    border-radius: 999px;
    transition: background 0.2s ease;
}

.kz-tc-sw i::after {
    content: '';
    position: absolute;
    width: 15px;
    height: 15px;
    left: 2px;
    top: 2px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s ease;
}

.kz-tc-sw input:checked + i { background: linear-gradient(90deg, #22c55e, #16a34a); }
.kz-tc-sw input:checked + i::after { transform: translateX(15px); }

.kz-tc-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.kz-tc-actions button {
    border: none;
    border-radius: 9px;
    padding: 7px 14px;
    font-size: 12.5px;
    cursor: pointer;
    background: #eef2f7;
    color: #334155;
}

.kz-tc-actions button.primary {
    background: linear-gradient(90deg, #3b82f6, #2563eb);
    color: #fff;
}

.kz-tc-hint { font-size: 11.5px; color: #94a3b8; line-height: 1.7; margin: 4px 0 0; }

@media (max-width: 640px) {
    .kz-tc-card { width: 176px; }
    .kz-tc-big { font-size: 24px; }
}

/* ============================================================
   【20261022b】iOS 玻璃小组件增强 + 新增组件样式 + 卡片大小档
   ============================================================ */

/* 卡片大小：小 / 中 / 大（设置里切换） */
body.kz-tc-size-s .kz-tc-card { width: 180px; }
body.kz-tc-size-m .kz-tc-card { width: 208px; }
body.kz-tc-size-l .kz-tc-card { width: 252px; }
body.kz-tc-size-s .kz-tc-big { font-size: 25px; }
body.kz-tc-size-l .kz-tc-big { font-size: 34px; }
body.kz-tc-size-s .kz-tc-head { font-size: 10px; }
body.kz-tc-size-l .kz-tc-head { font-size: 12px; }

/* 参考图里的浅色糖果/粉调/原木卡 */
body.kz-tc-candy .kz-tc-card,
body.kz-tc-pink .kz-tc-card {
    color: #3b0764;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.66));
    border-color: rgba(255, 255, 255, 0.85);
}

body.kz-tc-wood .kz-tc-card {
    color: #431407;
    background: linear-gradient(160deg, rgba(255, 251, 235, 0.95), rgba(254, 243, 199, 0.78));
    border-color: rgba(255, 255, 255, 0.9);
}

body.kz-tc-candy .kz-tc-input,
body.kz-tc-pink .kz-tc-input,
body.kz-tc-wood .kz-tc-input {
    border-color: rgba(15, 23, 42, 0.14);
    background: rgba(255, 255, 255, 0.7);
}

/* 卡片上的换色按钮 */
.kz-tc-pal {
    width: 18px;
    height: 18px;
    flex: none;
    border: none;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.14);
    color: inherit;
    font-size: 10px;
    line-height: 1;
    cursor: pointer;
    opacity: 0.8;
    display: flex;
    align-items: center;
    justify-content: center;
}

.kz-tc-pal:hover { background: rgba(255, 255, 255, 0.34); opacity: 1; }

/* ---------- 表盘时钟 ---------- */
.kz-tc-clock { display: flex; justify-content: center; padding: 2px 0 4px; }
.kz-tc-clock svg { width: 100%; max-width: 150px; height: auto; }

/* ---------- 大数字时钟（彩色渐变数字） ---------- */
.kz-tc-bigclock {
    font-size: 34px;
    font-weight: 900;
    letter-spacing: 1px;
    line-height: 1.05;
    font-variant-numeric: tabular-nums;
    background: linear-gradient(90deg, #f472b6, #fbbf24 30%, #34d399 62%, #60a5fa);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.kz-tc-light .kz-tc-bigclock {
    background: linear-gradient(90deg, #db2777, #b45309 32%, #047857 64%, #1d4ed8);
    -webkit-background-clip: text;
    background-clip: text;
}

/* ---------- 倒计时组合 ---------- */
.kz-tc-cc-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    padding: 6px 9px;
    border-radius: 10px;
    margin-top: 6px;
    font-size: 12px;
    background: rgba(255, 255, 255, 0.14);
}

.kz-tc-light .kz-tc-cc-row { background: rgba(15, 23, 42, 0.06); }
.kz-tc-cc-row b { font-variant-numeric: tabular-nums; }

/* ---------- APP 面板（九宫格） ---------- */
.kz-tc-wgrid3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    margin-top: 4px;
}

.kz-tc-wgrid3 .kz-tc-app {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 8px 0 6px;
    border-radius: 12px;
    font-size: 15px;
}

.kz-tc-app-ic { font-size: 17px; line-height: 1; }

.kz-tc-app-t { font-size: 9.5px; opacity: 0.8; white-space: nowrap; }

/* APP 面板里每项的删除按钮 */
.kz-tc-wgrid3 .kz-tc-app { position: relative; }
.kz-tc-appx {
    position: absolute;
    top: -3px;
    right: -3px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(239, 68, 68, .9);
    color: #fff;
    font-size: 9px;
    font-style: normal;
    line-height: 14px;
    text-align: center;
    opacity: 0;
    transition: opacity .15s ease;
    cursor: pointer;
}
.kz-tc-app:hover .kz-tc-appx { opacity: 1; }
.kz-tc-wgrid-empty {
    grid-column: 1 / -1;
    font-size: 10.5px;
    opacity: .6;
    text-align: center;
    padding: 10px 0;
}

/* 设置页里的显示/隐藏胶囊 */
.kz-tc-dockchips { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 4px; }
.kz-tc-dockchip {
    height: 26px;
    padding: 0 10px;
    border-radius: 99px;
    border: 1px solid rgba(15, 23, 42, .14);
    background: #fff;
    color: #94a3b8;
    font-size: 11.5px;
    cursor: pointer;
    text-decoration: line-through;
}
.kz-tc-dockchip.kz-on {
    background: #eef2ff;
    border-color: #6366f1;
    color: #3730a3;
    text-decoration: none;
    font-weight: 700;
}

/* ============================================================
   新组件：7 天预报 / 城市选择
   ============================================================ */
.kz-fc7 { display: flex; flex-direction: column; gap: 1px; margin-top: 2px; }
.kz-fc7-row {
    display: grid;
    grid-template-columns: 34px 20px 1fr 32px;
    align-items: center;
    gap: 5px;
    font-size: 10.5px;
    line-height: 1.5;
    padding: 2px 4px;
    border-radius: 6px;
}
.kz-fc7-row.on { background: rgba(255, 255, 255, .16); }
.kz-fc7-row .d { opacity: .92; white-space: nowrap; }
.kz-fc7-row .i { text-align: center; font-size: 11px; }
.kz-fc7-row .t { text-align: right; font-weight: 800; white-space: nowrap; }
.kz-fc7-row .t i { font-style: normal; font-weight: 600; opacity: .62; margin-left: 4px; }
.kz-fc7-row .p { text-align: right; opacity: .78; white-space: nowrap; }
.kz-fc7-empty { font-size: 10.5px; opacity: .72; text-align: center; padding: 10px 0; }

.kz-city { display: flex; align-items: center; gap: 8px; margin-top: 3px; }
.kz-city-name {
    flex: 1;
    min-width: 0;
    font-size: 13.5px;
    font-weight: 800;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.kz-city-btn {
    flex: none;
    border: 0;
    border-radius: 999px;
    padding: 5px 11px;
    font-size: 10.5px;
    font-weight: 700;
    background: rgba(255, 255, 255, .22);
    color: inherit;
    cursor: pointer;
    transition: background .15s ease;
}
.kz-city-btn:hover { background: rgba(255, 255, 255, .36); }
.kz-tc-card.kz-tc-light .kz-city-btn { background: rgba(15, 23, 42, .1); }
.kz-tc-card.kz-tc-light .kz-city-btn:hover { background: rgba(15, 23, 42, .18); }

/* ============================================================
   小组件特效（22 种）· #kzTcLayer[data-fx="..."]
   默认 none / 未设置时完全保持原样，不加任何规则
   ============================================================ */

/* 卡片内新控件：按钮行 / 输入框 */
.kz-tc-acts {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 7px;
}
.kz-tc-inp {
    flex: 1;
    min-width: 0;
    height: 26px;
    padding: 0 8px;
    border-radius: 9px;
    border: 1px solid rgba(255, 255, 255, 0.34);
    background: rgba(255, 255, 255, 0.18);
    color: inherit;
    font-size: 11.5px;
    outline: none;
    box-sizing: border-box;
}
.kz-tc-inp::placeholder { color: inherit; opacity: .55; }
.kz-tc-card.kz-tc-light .kz-tc-inp {
    background: rgba(15, 23, 42, 0.06);
    border-color: rgba(15, 23, 42, 0.14);
}

/* 设置里的特效按钮网格 */
.kz-tc-fxgrid {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 8px 0 4px;
}
.kz-tc-fxbtn {
    height: 28px;
    padding: 0 10px;
    border-radius: 9px;
    border: 1px solid rgba(100, 116, 139, .32);
    background: rgba(255, 255, 255, .72);
    color: #475569;
    font-size: 11.5px;
    cursor: pointer;
    transition: transform .15s ease, background .2s ease;
}
.kz-tc-fxbtn:hover { transform: translateY(-1px); }
.kz-tc-fxbtn.kz-on {
    background: linear-gradient(90deg, #38bdf8, #6366f1);
    border-color: transparent;
    color: #fff;
    font-weight: 700;
}
.night-mode .kz-tc-fxbtn { background: rgba(255, 255, 255, .1); color: #cbd5e1; }
.night-mode .kz-tc-fxbtn.kz-on { background: linear-gradient(90deg, #38bdf8, #6366f1); color: #fff; }

/* ---- 1. 毛玻璃 ---- */
#kzTcLayer[data-fx="glass"] .kz-tc-card {
    background: linear-gradient(160deg, rgba(255, 255, 255, .30), rgba(255, 255, 255, .10) 60%, rgba(255, 255, 255, .16));
    border-color: rgba(255, 255, 255, .55);
    -webkit-backdrop-filter: blur(22px) saturate(200%);
    backdrop-filter: blur(22px) saturate(200%);
    box-shadow: 0 12px 32px rgba(0, 0, 0, .30), inset 0 1px 0 rgba(255, 255, 255, .55);
}

/* ---- 2. 极光流动 ---- */
#kzTcLayer[data-fx="aurora"] .kz-tc-card {
    background-image:
        radial-gradient(120% 110% at 18% 0%, rgba(56, 189, 248, .45), transparent 62%),
        radial-gradient(120% 110% at 82% 100%, rgba(167, 139, 250, .45), transparent 62%),
        linear-gradient(160deg, rgba(255, 255, 255, .18), rgba(255, 255, 255, .05));
    background-size: 200% 200%, 200% 200%, 100% 100%;
    border-color: rgba(255, 255, 255, .5);
    animation: kztcAurora 14s ease-in-out infinite alternate;
}
@keyframes kztcAurora {
    0%   { background-position: 0% 0%, 100% 100%, 0 0; }
    50%  { background-position: 100% 40%, 0% 60%, 0 0; }
    100% { background-position: 30% 100%, 70% 0%, 0 0; }
}

/* ---- 3. 霓虹描边 ---- */
#kzTcLayer[data-fx="neon"] .kz-tc-card {
    border-color: rgba(103, 232, 249, .85);
    animation: kztcNeon 2.6s ease-in-out infinite;
}
@keyframes kztcNeon {
    0%, 100% { box-shadow: 0 10px 26px rgba(0, 0, 0, .30), 0 0 0 1px rgba(103, 232, 249, .45), 0 0 22px rgba(34, 211, 238, .40); }
    50%      { box-shadow: 0 10px 26px rgba(0, 0, 0, .30), 0 0 0 1px rgba(167, 139, 250, .80), 0 0 42px rgba(167, 139, 250, .65); }
}

/* ---- 4. 光晕呼吸 ---- */
#kzTcLayer[data-fx="glow"] .kz-tc-card {
    animation: kztcGlow 3.4s ease-in-out infinite;
}
@keyframes kztcGlow {
    0%, 100% { box-shadow: 0 10px 26px rgba(0, 0, 0, .28), inset 0 1px 0 rgba(255, 255, 255, .35), 0 0 0 rgba(125, 211, 252, 0); }
    50%      { box-shadow: 0 12px 30px rgba(0, 0, 0, .32), inset 0 1px 0 rgba(255, 255, 255, .45), 0 0 34px rgba(125, 211, 252, .55); }
}

/* ---- 5. 描边 ---- */
#kzTcLayer[data-fx="outline"] .kz-tc-card {
    border: 2px solid rgba(255, 255, 255, .78);
    box-shadow: none;
    background: rgba(15, 23, 42, .22);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

/* ---- 6. 浮动 ---- */
#kzTcLayer[data-fx="float"] .kz-tc-card {
    animation: kztcFloat 4.2s ease-in-out infinite;
}
@keyframes kztcFloat {
    0%, 100% { transform: translateY(0); box-shadow: 0 10px 26px rgba(0, 0, 0, .30); }
    50%      { transform: translateY(-6px); box-shadow: 0 20px 38px rgba(0, 0, 0, .38); }
}

/* ---- 7. 厚阴影 ---- */
#kzTcLayer[data-fx="deep"] .kz-tc-card {
    box-shadow:
        0 24px 48px rgba(0, 0, 0, .55),
        0 8px 18px rgba(0, 0, 0, .38),
        inset 0 1px 0 rgba(255, 255, 255, .30);
    border-color: rgba(255, 255, 255, .18);
}

/* ---- 8. 全息色散 ---- */
#kzTcLayer[data-fx="holo"] .kz-tc-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background: conic-gradient(from 0deg at 50% 50%,
        rgba(255, 0, 128, .34), rgba(255, 196, 0, .30), rgba(0, 255, 170, .30),
        rgba(0, 180, 255, .34), rgba(160, 0, 255, .34), rgba(255, 0, 128, .34));
    mix-blend-mode: color-dodge;
    opacity: .26;
    animation: kztcHolo 7s linear infinite;
}
@keyframes kztcHolo { to { filter: hue-rotate(360deg); } }

/* ---- 9. 扫描线 ---- */
#kzTcLayer[data-fx="scan"] .kz-tc-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background-image: repeating-linear-gradient(0deg, rgba(125, 211, 252, .22) 0 1px, transparent 1px 5px);
    background-size: 100% 5px;
    animation: kztcScan 1.5s linear infinite;
    opacity: .5;
    mix-blend-mode: screen;
}
@keyframes kztcScan { to { background-position: 0 5px; } }

/* ---- 10. 玻璃反光 ---- */
#kzTcLayer[data-fx="shine"] .kz-tc-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background: linear-gradient(105deg, transparent 34%, rgba(255, 255, 255, .55) 48%, rgba(255, 255, 255, .08) 56%, transparent 66%);
    background-size: 300% 100%;
    animation: kztcShine 5.2s ease-in-out infinite;
    mix-blend-mode: screen;
    opacity: .8;
}
@keyframes kztcShine {
    0%        { background-position: 175% 0; }
    55%, 100% { background-position: -110% 0; }
}

/* ---- 11. 星尘 ---- */
#kzTcLayer[data-fx="star"] .kz-tc-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background-image:
        radial-gradient(1.6px 1.6px at 12% 20%, #fff, transparent),
        radial-gradient(1.3px 1.3px at 38% 64%, #c7d2fe, transparent),
        radial-gradient(1.8px 1.8px at 62% 28%, #fff, transparent),
        radial-gradient(1.2px 1.2px at 84% 74%, #a5f3fc, transparent),
        radial-gradient(1.5px 1.5px at 26% 88%, #fbcfe8, transparent);
    animation: kztcStar 3s ease-in-out infinite alternate;
    opacity: .9;
}
@keyframes kztcStar {
    0%   { opacity: .26; }
    45%  { opacity: 1; }
    100% { opacity: .42; }
}

/* ---- 12. 心跳脉冲 ---- */
#kzTcLayer[data-fx="pulse"] .kz-tc-card {
    animation: kztcPulse 1.9s ease-in-out infinite;
}
@keyframes kztcPulse {
    0%, 100% { transform: scale(1); }
    18%      { transform: scale(1.016); }
    36%      { transform: scale(1); }
    54%      { transform: scale(1.008); }
}

/* ---- 13. 赛博网格 ---- */
#kzTcLayer[data-fx="cyber"] .kz-tc-card {
    border-color: rgba(34, 211, 238, .7);
}
#kzTcLayer[data-fx="cyber"] .kz-tc-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(34, 211, 238, .22) 1px, transparent 1px),
        linear-gradient(90deg, rgba(34, 211, 238, .22) 1px, transparent 1px);
    background-size: 16px 16px, 16px 16px;
    animation: kztcCyber 3.2s linear infinite;
    opacity: .45;
}
@keyframes kztcCyber { to { background-position: 0 16px, 16px 0; } }

/* ---- 14. 雪花 ---- */
#kzTcLayer[data-fx="snow"] .kz-tc-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background-image:
        radial-gradient(2px 2px at 10% 25%, #fff, transparent),
        radial-gradient(2px 2px at 34% 0, rgba(255, 255, 255, .9), transparent),
        radial-gradient(2.4px 2.4px at 58% 42%, #fff, transparent),
        radial-gradient(1.8px 1.8px at 80% 0, rgba(224, 242, 254, .95), transparent);
    background-size: 32px 54px, 44px 72px, 38px 86px, 50px 64px;
    background-repeat: repeat;
    animation: kztcSnow 7s linear infinite;
    opacity: .8;
}
@keyframes kztcSnow {
    to { background-position: 0 54px, -6px 72px, 5px 86px, 3px 64px; }
}

/* ---- 15. 雨幕 ---- */
#kzTcLayer[data-fx="rain"] .kz-tc-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background-image: repeating-linear-gradient(100deg, rgba(191, 234, 255, .5) 0 1px, transparent 1px 9px);
    background-size: 56px 56px;
    animation: kztcRain 1s linear infinite;
    opacity: .38;
}
@keyframes kztcRain { to { background-position: 56px 56px; } }

/* ---- 16. 像素描边 ---- */
#kzTcLayer[data-fx="pixel"] .kz-tc-card {
    border-radius: 6px;
    border: 2px solid rgba(255, 255, 255, .85);
    box-shadow:
        4px 4px 0 rgba(15, 23, 42, .55),
        inset -4px -4px 0 rgba(255, 255, 255, .10);
}

/* ---- 17. 新拟态 ---- */
#kzTcLayer[data-fx="neu"] .kz-tc-card {
    background: #e6ebf2;
    color: #334155;
    border-color: transparent;
    box-shadow:
        8px 8px 18px rgba(163, 177, 198, .65),
        -8px -8px 18px rgba(255, 255, 255, .85);
}
#kzTcLayer[data-fx="neu"] .kz-tc-x { background: rgba(15, 23, 42, .08); }

/* ---- 18. 胶带贴纸 ---- */
#kzTcLayer[data-fx="tape"] .kz-tc-card {
    border-radius: 10px;
    box-shadow: 0 12px 26px rgba(0, 0, 0, .34);
}
#kzTcLayer[data-fx="tape"] .kz-tc-card::before {
    content: '';
    position: absolute;
    top: -9px;
    left: 50%;
    width: 62px;
    height: 20px;
    transform: translateX(-50%) rotate(-3deg);
    background: linear-gradient(180deg, rgba(255, 244, 189, .82), rgba(250, 226, 137, .72));
    box-shadow: 0 2px 6px rgba(0, 0, 0, .18);
    pointer-events: none;
    z-index: 2;
}

/* ---- 19. HUD 仪表 ---- */
#kzTcLayer[data-fx="hud"] .kz-tc-card {
    border: 1px solid rgba(56, 189, 248, .55);
    border-radius: 4px;
    background: rgba(2, 16, 32, .58);
    color: #d7f6ff;
    box-shadow: inset 0 0 22px rgba(56, 189, 248, .18), 0 8px 22px rgba(0, 0, 0, .45);
}
#kzTcLayer[data-fx="hud"] .kz-tc-card::before {
    content: '';
    position: absolute;
    inset: 6px;
    border: 1px solid rgba(56, 189, 248, .32);
    border-radius: 2px;
    pointer-events: none;
    box-shadow: inset 0 0 0 1px rgba(56, 189, 248, .12);
}

/* ---- 20. 聚光灯 ---- */
#kzTcLayer[data-fx="spot"] .kz-tc-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background: radial-gradient(60% 70% at 30% 0%, rgba(255, 255, 255, .45), transparent 70%);
    mix-blend-mode: screen;
    opacity: .7;
}

/* ---- 21. 波浪流动 ---- */
#kzTcLayer[data-fx="wave"] .kz-tc-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background-image:
        radial-gradient(50% 40% at 50% 100%, rgba(56, 189, 248, .40), transparent 70%),
        radial-gradient(50% 40% at 50% 100%, rgba(167, 139, 250, .34), transparent 70%);
    background-size: 160% 100%, 200% 100%;
    animation: kztcWave 6s ease-in-out infinite;
    opacity: .75;
}
@keyframes kztcWave {
    0%   { background-position: 0% 100%, 100% 100%; }
    50%  { background-position: 100% 100%, 0% 100%; }
    100% { background-position: 0% 100%, 100% 100%; }
}

/* ---- 22. 流光边框 ---- */
#kzTcLayer[data-fx="fire"] .kz-tc-card {
    border: 2px solid transparent;
    background-image:
        linear-gradient(160deg, rgba(15, 23, 42, .70), rgba(2, 6, 23, .52)),
        linear-gradient(90deg, #f97316, #f43f5e, #a855f7, #22d3ee, #f97316);
    background-origin: border-box;
    background-clip: padding-box, border-box;
    background-size: 100% 100%, 300% 100%;
    animation: kztcFire 5s linear infinite;
}
@keyframes kztcFire {
    0%   { background-position: 0 0, 0% 0; }
    100% { background-position: 0 0, 300% 0; }
}

/* 浅色桌面：有些特效要压一下亮度，保证字还看得清 */
.kz-tc-light #kzTcLayer[data-fx] .kz-tc-card,
#kzTcLayer[data-fx] .kz-tc-card.kz-tc-light {
    --kz-fx-light: 1;
}

/* 手机端：特效降噪 */
@media (max-width: 520px) {
    #kzTcLayer[data-fx="scan"] .kz-tc-card::after,
    #kzTcLayer[data-fx="cyber"] .kz-tc-card::after { opacity: .3; }
    #kzTcLayer[data-fx="snow"] .kz-tc-card::after,
    #kzTcLayer[data-fx="rain"] .kz-tc-card::after { opacity: .28; }
    #kzTcLayer[data-fx="float"] .kz-tc-card,
    #kzTcLayer[data-fx="pulse"] .kz-tc-card { animation: none; }
}
