/* ==========================================================================
   云辰转盘 · 后台样式（柔顺风）
   低饱和渐变 / 大圆角 / 柔和投影 / 玻璃感 / 缓动过渡
   ========================================================================== */

:root {
    --violet-50:  #f7f4ff;
    --violet-100: #efe9ff;
    --violet-200: #ddd3fb;
    --violet-300: #c4b5fd;
    --violet-400: #a78bfa;
    --violet-500: #8b5cf6;
    --violet-600: #7c4ddb;

    --mint-200: #bbf7d0;
    --mint-300: #86efac;
    --mint-400: #6ee7b7;
    --pink-200: #fbcfe8;
    --pink-300: #f9a8d4;
    --sky-300:   #93c5fd;
    --amber-300: #fcd34d;

    --ink:        #3f4254;
    --ink-strong: #2f3142;
    --ink-soft:   #7c809a;
    --ink-mute:   #a4a8bd;

    --line:        rgba(139, 92, 246, 0.14);
    --line-soft:   rgba(139, 92, 246, 0.08);
    --card-bg:     rgba(255, 255, 255, 0.82);
    --card-border: rgba(255, 255, 255, 0.75);

    --ok:     #34d399;
    --ok-bg:  rgba(52, 211, 153, 0.14);
    --warn:   #f0b429;
    --warn-bg: rgba(240, 180, 41, 0.16);
    --danger: #f87171;
    --danger-bg: rgba(248, 113, 113, 0.14);
    --info:   #7cb8f7;
    --info-bg: rgba(124, 184, 247, 0.16);

    --radius-lg: 26px;
    --radius:    18px;
    --radius-sm: 12px;

    --shadow-soft: 0 18px 46px -24px rgba(124, 77, 219, 0.42);
    --shadow-card: 0 10px 30px -18px rgba(124, 77, 219, 0.34);
    --shadow-pop:  0 26px 60px -22px rgba(80, 60, 160, 0.34);

    --ease: cubic-bezier(0.22, 0.68, 0.32, 1);
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
                 "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", sans-serif;
    font-size: 15px;
    line-height: 1.7;
    color: var(--ink);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

/* 背景：柔和渐变 + 两个模糊光斑 */
.page-soft {
    min-height: 100vh;
    background:
        radial-gradient(880px 520px at 8% -6%,  rgba(249, 168, 212, 0.34), transparent 62%),
        radial-gradient(760px 460px at 96% 4%,  rgba(147, 197, 253, 0.32), transparent 60%),
        radial-gradient(900px 620px at 52% 108%, rgba(110, 231, 183, 0.28), transparent 62%),
        linear-gradient(158deg, #fdf8ff 0%, #f6f7ff 42%, #f2fbf7 100%);
    background-attachment: fixed;
}

.page-center {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 18px;
}

a { color: var(--violet-500); text-decoration: none; transition: color 0.2s var(--ease); }
a:hover { color: var(--violet-600); }

code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.86em;
    background: var(--violet-50);
    border: 1px solid var(--line-soft);
    border-radius: 7px;
    padding: 1px 6px;
    color: var(--violet-600);
}

/* ==========================================================================
   品牌
   ========================================================================== */

.brand { display: flex; align-items: center; gap: 12px; }

.brand-mark {
    width: 46px; height: 46px;
    flex: 0 0 46px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 16px;
    font-size: 21px; font-weight: 700; color: #fff;
    background: linear-gradient(135deg, #c4b5fd, #8b5cf6 62%, #6ee7b7);
    box-shadow: 0 12px 26px -12px rgba(139, 92, 246, 0.75);
    letter-spacing: -0.02em;
}

.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-text strong { font-size: 17px; color: var(--ink-strong); letter-spacing: 0.01em; }
.brand-text small { font-size: 12px; color: var(--ink-mute); }

/* ==========================================================================
   卡片
   ========================================================================== */

.card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    backdrop-filter: blur(18px) saturate(1.15);
    -webkit-backdrop-filter: blur(18px) saturate(1.15);
    padding: 22px 24px;
}

.card + .card { margin-top: 18px; }

.card-head {
    display: flex; align-items: center; justify-content: space-between;
    gap: 14px; flex-wrap: wrap;
    margin: -4px 0 16px;
}

.card-title {
    margin: 0;
    font-size: 16px; font-weight: 650; color: var(--ink-strong);
    display: flex; align-items: center; gap: 9px;
}

.card-title::before {
    content: "";
    width: 4px; height: 17px; border-radius: 4px;
    background: linear-gradient(180deg, var(--violet-400), var(--mint-400));
}

.card-title.no-mark::before { display: none; }

.auth-card {
    width: 100%;
    max-width: 420px;
}

.install-card { max-width: 720px; }

.auth-card .brand { margin-bottom: 20px; }

.auth-foot { margin-top: 18px; text-align: center; font-size: 13px; color: var(--ink-mute); }

/* ==========================================================================
   页脚备案 / 页面纵向堆叠
   ========================================================================== */

/* 让「卡片 + 页脚」在居中的页面里竖着排 */
.page-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    width: 100%;
}

.site-foot {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 4px 18px;
    margin-top: 4px;
    font-size: 12px;
    line-height: 1.7;
    color: var(--ink-mute);
    text-align: center;
}

.site-foot a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--ink-mute);
    transition: color 0.2s var(--ease);
}

.site-foot a:hover { color: var(--violet-600); }

/* 配置模板等代码块 */
.code-box {
    margin: 10px 0 0;
    padding: 14px 16px;
    border-radius: 16px;
    background: rgba(43, 38, 62, 0.94);
    overflow-x: auto;
}

.code-box pre {
    margin: 0;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 11.5px;
    line-height: 1.75;
    color: #e7e2ff;
    white-space: pre;
}

/* ==========================================================================
   文字
   ========================================================================== */

.section-title {
    margin: 22px 0 10px;
    font-size: 14px; font-weight: 650;
    color: var(--ink-strong);
    letter-spacing: 0.02em;
}

.section-title:first-child { margin-top: 0; }

.hint { margin: 6px 0 0; font-size: 12.5px; color: var(--ink-mute); line-height: 1.6; }
.muted { color: var(--ink-mute); }
.strong { color: var(--ink-strong); font-weight: 600; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12.5px; }
.nowrap { white-space: nowrap; }
.text-right { text-align: right; }
.mt-0 { margin-top: 0; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }

/* ==========================================================================
   按钮
   ========================================================================== */

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 7px;
    padding: 10px 20px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-family: inherit; font-size: 14px; font-weight: 560;
    color: var(--ink);
    background: rgba(255, 255, 255, 0.72);
    border-color: var(--line);
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease),
                background-color 0.22s var(--ease), color 0.22s var(--ease),
                border-color 0.22s var(--ease), opacity 0.22s var(--ease);
}

.btn:hover { transform: translateY(-1.5px); box-shadow: var(--shadow-card); color: var(--ink-strong); }
.btn:active { transform: translateY(0) scale(0.985); }
.btn:focus-visible { outline: none; box-shadow: 0 0 0 4px rgba(167, 139, 250, 0.24); }

.btn-primary {
    color: #fff;
    border-color: transparent;
    background: linear-gradient(135deg, #b39cf9, #8b5cf6 70%);
    box-shadow: 0 14px 30px -14px rgba(139, 92, 246, 0.7);
}
.btn-primary:hover { color: #fff; box-shadow: 0 18px 36px -14px rgba(139, 92, 246, 0.8); }

.btn-mint {
    color: #10664a;
    border-color: rgba(52, 211, 153, 0.28);
    background: linear-gradient(135deg, #d7fbec, #b9f5da);
}
.btn-mint:hover { color: #0c5340; }

.btn-danger {
    color: #b23b3b;
    border-color: rgba(248, 113, 113, 0.3);
    background: rgba(255, 236, 236, 0.9);
}
.btn-danger:hover { color: #9c2f2f; box-shadow: 0 14px 30px -18px rgba(248, 113, 113, 0.8); }

.btn-ghost { background: transparent; border-color: transparent; color: var(--ink-soft); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.7); color: var(--ink-strong); }

.btn-sm { padding: 6px 13px; font-size: 13px; border-radius: 999px; }
.btn-xs { padding: 4px 10px; font-size: 12px; border-radius: 999px; }
.btn-block { width: 100%; margin-top: 18px; }
.btn[disabled], .btn.is-disabled { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }

.btn-icon {
    width: 32px; height: 32px; padding: 0;
    border-radius: 11px;
    font-size: 14px;
    color: var(--ink-soft);
    background: rgba(255, 255, 255, 0.7);
    border-color: var(--line-soft);
}
.btn-icon:hover { color: var(--violet-600); }

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

/* ==========================================================================
   表单
   ========================================================================== */

.field { margin-bottom: 16px; }

.field > label,
.field-label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px; font-weight: 560;
    color: var(--ink-soft);
}

.input, .select, .textarea {
    width: 100%;
    padding: 11px 15px;
    font-family: inherit; font-size: 14.5px; color: var(--ink-strong);
    background: rgba(255, 255, 255, 0.76);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    transition: border-color 0.22s var(--ease), box-shadow 0.22s var(--ease), background-color 0.22s var(--ease);
    -webkit-appearance: none; appearance: none;
}

.textarea { min-height: 104px; resize: vertical; line-height: 1.7; }

.input:hover, .select:hover, .textarea:hover { background: rgba(255, 255, 255, 0.92); }

.input:focus, .select:focus, .textarea:focus {
    outline: none;
    background: #fff;
    border-color: var(--violet-300);
    box-shadow: 0 0 0 4px rgba(167, 139, 250, 0.18);
}

.input::placeholder, .textarea::placeholder { color: var(--ink-mute); }

.select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23a4a8bd' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 38px;
}

.input-sm { padding: 8px 12px; font-size: 13.5px; }

.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 16px; }

@media (max-width: 720px) {
    .grid-2, .grid-3, .grid-4 { grid-template-columns: minmax(0, 1fr); }
}

/* 开关 */
.switch { display: inline-flex; align-items: center; gap: 9px; cursor: pointer; user-select: none; }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }

.switch-track {
    position: relative;
    width: 46px; height: 26px;
    border-radius: 999px;
    background: rgba(164, 168, 189, 0.36);
    transition: background 0.26s var(--ease);
    flex: 0 0 46px;
}

.switch-track::after {
    content: "";
    position: absolute; top: 3px; left: 3px;
    width: 20px; height: 20px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 3px 8px rgba(74, 60, 120, 0.28);
    transition: transform 0.26s var(--ease);
}

.switch input:checked + .switch-track {
    background: linear-gradient(135deg, #a78bfa, #6ee7b7);
}
.switch input:checked + .switch-track::after { transform: translateX(20px); }
.switch input:focus-visible + .switch-track { box-shadow: 0 0 0 4px rgba(167, 139, 250, 0.24); }
.switch-label { font-size: 13.5px; color: var(--ink-soft); }

/* ==========================================================================
   提示条
   ========================================================================== */

.alert {
    padding: 12px 16px;
    border-radius: var(--radius);
    font-size: 13.5px;
    line-height: 1.65;
    margin: 0 0 16px;
    border: 1px solid transparent;
}

.alert-error   { color: #a63b3b; background: var(--danger-bg); border-color: rgba(248,113,113,.28); }
.alert-success { color: #13795b; background: var(--ok-bg);     border-color: rgba(52,211,153,.3); }
.alert-info    { color: #38648f; background: var(--info-bg);   border-color: rgba(124,184,247,.3); }
.alert-warn    { color: #8a6300; background: var(--warn-bg);   border-color: rgba(240,180,41,.3); }

/* ==========================================================================
   徽标 / 状态
   ========================================================================== */

.badge {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 2.5px 11px;
    border-radius: 999px;
    font-size: 12px; font-weight: 560;
    line-height: 1.7;
    white-space: nowrap;
    color: var(--ink-soft);
    background: rgba(164, 168, 189, 0.14);
}

.badge.is-ok     { color: #13795b; background: var(--ok-bg); }
.badge.is-warn   { color: #8a6300; background: var(--warn-bg); }
.badge.is-danger { color: #a63b3b; background: var(--danger-bg); }
.badge.is-info   { color: #38648f; background: var(--info-bg); }
.badge.is-super  { color: #fff; background: linear-gradient(135deg, #b39cf9, #8b5cf6); }
.badge.is-mute   { color: var(--ink-mute); background: rgba(164, 168, 189, 0.12); }

.pill {
    display: inline-block;
    padding: 1px 9px;
    border-radius: 999px;
    font-size: 12px;
    background: rgba(167, 139, 250, 0.1);
    color: var(--violet-600);
}

/* ==========================================================================
   表格
   ========================================================================== */

.table-wrap {
    overflow-x: auto;
    margin: 0 -6px;
    padding: 0 6px;
}

table.table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 14px;
}

table.table th {
    padding: 9px 14px;
    text-align: left;
    font-size: 12.5px; font-weight: 600;
    color: var(--ink-mute);
    letter-spacing: 0.04em;
    border-bottom: 1px solid var(--line);
    white-space: nowrap;
}

table.table td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--line-soft);
    color: var(--ink);
    vertical-align: middle;
}

table.table tbody tr { transition: background-color 0.2s var(--ease); }
table.table tbody tr:hover { background: rgba(167, 139, 250, 0.055); }
table.table tbody tr:last-child td { border-bottom: none; }

.table-empty {
    padding: 40px 20px;
    text-align: center;
    color: var(--ink-mute);
    font-size: 13.5px;
}

/* ==========================================================================
   统计卡片
   ========================================================================== */

.stat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 18px;
}

@media (max-width: 1100px) { .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px)  { .stat-grid { grid-template-columns: minmax(0, 1fr); } }

.stat-card {
    position: relative;
    overflow: hidden;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    padding: 18px 20px;
}

.stat-card::after {
    content: "";
    position: absolute; right: -30px; top: -34px;
    width: 108px; height: 108px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(167,139,250,.22), rgba(110,231,183,.22));
    filter: blur(2px);
}

.stat-label { position: relative; font-size: 13px; color: var(--ink-mute); }
.stat-value {
    position: relative;
    margin-top: 6px;
    font-size: 27px; font-weight: 700; letter-spacing: -0.01em;
    color: var(--ink-strong);
    font-variant-numeric: tabular-nums;
}
.stat-value small { font-size: 13px; font-weight: 500; color: var(--ink-mute); margin-left: 4px; }

/* ==========================================================================
   工具栏
   ========================================================================== */

.toolbar {
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px; flex-wrap: wrap;
    margin-bottom: 16px;
}

.toolbar-left, .toolbar-right { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.search-form { display: flex; align-items: center; gap: 8px; }
.search-form .input { width: 220px; }

@media (max-width: 560px) {
    .search-form .input { width: 100%; }
    .search-form { flex: 1 1 100%; }
}

/* 链接复制框 */
.link-box {
    display: flex; align-items: center; gap: 8px;
    padding: 8px 8px 8px 14px;
    background: rgba(167, 139, 250, 0.07);
    border: 1px dashed var(--line);
    border-radius: var(--radius);
}

.link-box .link-text {
    flex: 1 1 auto;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 12.5px;
    color: var(--violet-600);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ==========================================================================
   分页
   ========================================================================== */

.pager { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 18px; }

.pager-link {
    min-width: 34px;
    padding: 6px 11px;
    text-align: center;
    border-radius: 999px;
    font-size: 13px;
    color: var(--ink-soft);
    background: rgba(255, 255, 255, 0.66);
    border: 1px solid var(--line-soft);
    transition: all 0.2s var(--ease);
}

.pager-link:hover { background: #fff; color: var(--violet-600); transform: translateY(-1px); }
.pager-link.is-active {
    color: #fff;
    border-color: transparent;
    background: linear-gradient(135deg, #b39cf9, #8b5cf6);
    box-shadow: 0 10px 22px -12px rgba(139, 92, 246, 0.8);
}
.pager-link.is-disabled { opacity: 0.42; pointer-events: none; }
.pager-gap { color: var(--ink-mute); padding: 0 2px; }

/* ==========================================================================
   列表 / 键值
   ========================================================================== */

.kv-list { list-style: none; margin: 0; padding: 0; }

.kv-list li {
    display: flex; align-items: baseline; justify-content: space-between; gap: 14px;
    padding: 10px 2px;
    border-bottom: 1px solid var(--line-soft);
    font-size: 13.5px;
}

.kv-list li:last-child { border-bottom: none; }
.kv-list li span { color: var(--ink-mute); }
.kv-list li b { color: var(--ink-strong); font-weight: 600; word-break: break-all; text-align: right; }

.empty-state { padding: 46px 20px; text-align: center; }
.empty-state .empty-title { font-size: 15px; color: var(--ink-soft); margin-bottom: 6px; }
.empty-state .empty-desc { font-size: 13px; color: var(--ink-mute); margin-bottom: 18px; }

/* ==========================================================================
   环境检测（install）
   ========================================================================== */

.check-list { list-style: none; margin: 0 0 8px; padding: 0; }

.check-item {
    display: flex; align-items: center; gap: 10px;
    padding: 9px 12px;
    border-radius: var(--radius-sm);
    font-size: 13.5px;
    margin-bottom: 6px;
    background: rgba(255, 255, 255, 0.6);
}

.check-dot {
    width: 9px; height: 9px; border-radius: 50%;
    flex: 0 0 9px;
    background: var(--ink-mute);
}

.check-ok   .check-dot { background: var(--ok);     box-shadow: 0 0 0 3px rgba(52,211,153,.2); }
.check-bad  .check-dot { background: var(--danger); box-shadow: 0 0 0 3px rgba(248,113,113,.2); }
.check-warn .check-dot { background: var(--warn);   box-shadow: 0 0 0 3px rgba(240,180,41,.2); }

.check-label { flex: 1 1 auto; color: var(--ink-strong); }
.check-detail { color: var(--ink-mute); font-size: 12.5px; text-align: right; }

/* ==========================================================================
   布局：侧边栏 + 主区
   ========================================================================== */

.app-shell { display: flex; min-height: 100vh; }

.sidebar {
    flex: 0 0 248px;
    width: 248px;
    padding: 22px 16px 18px;
    display: flex; flex-direction: column; gap: 18px;
    position: sticky; top: 0;
    height: 100vh;
    background: rgba(255, 255, 255, 0.62);
    border-right: 1px solid rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(20px) saturate(1.2);
    -webkit-backdrop-filter: blur(20px) saturate(1.2);
    z-index: 30;
}

.side-nav { display: flex; flex-direction: column; gap: 4px; flex: 1 1 auto; overflow-y: auto; }

.nav-item {
    display: flex; align-items: center; gap: 11px;
    padding: 10px 14px;
    border-radius: 14px;
    font-size: 14px;
    color: var(--ink-soft);
    transition: all 0.22s var(--ease);
    position: relative;
}

.nav-item:hover { background: rgba(167, 139, 250, 0.09); color: var(--violet-600); }

.nav-item.is-active {
    color: var(--violet-600);
    font-weight: 600;
    background: linear-gradient(135deg, rgba(196, 181, 253, 0.34), rgba(110, 231, 183, 0.2));
}

.nav-item.is-active::before {
    content: "";
    position: absolute; left: -16px; top: 50%;
    width: 3px; height: 20px;
    border-radius: 0 4px 4px 0;
    transform: translateY(-50%);
    background: linear-gradient(180deg, var(--violet-400), var(--mint-400));
}

.nav-item svg { flex: 0 0 18px; width: 18px; height: 18px; opacity: 0.9; }

.nav-sep { height: 1px; margin: 8px 6px; background: var(--line-soft); }

.sidebar-user {
    display: flex; align-items: center; gap: 10px;
    padding: 11px 12px;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.66);
    border: 1px solid var(--line-soft);
}

.user-avatar {
    width: 36px; height: 36px; flex: 0 0 36px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-weight: 650; color: #fff; font-size: 15px;
    background: linear-gradient(135deg, #a78bfa, #6ee7b7);
    text-transform: uppercase;
}

.user-meta { min-width: 0; flex: 1 1 auto; }
.user-meta strong { display: block; font-size: 13.5px; color: var(--ink-strong); overflow: hidden; text-overflow: ellipsis; }
.user-meta small { font-size: 11.5px; color: var(--ink-mute); }

.main { flex: 1 1 auto; min-width: 0; padding: 26px 30px 44px; }

.topbar {
    display: flex; align-items: flex-end; justify-content: space-between;
    gap: 16px; flex-wrap: wrap;
    margin-bottom: 20px;
}

.page-title { margin: 0; font-size: 22px; font-weight: 700; color: var(--ink-strong); letter-spacing: -0.01em; }
.page-sub { margin: 4px 0 0; font-size: 13px; color: var(--ink-mute); }

.mobile-bar { display: none; }

@media (max-width: 900px) {
    .app-shell { flex-direction: column; }

    .sidebar {
        position: fixed;
        left: 0; top: 0;
        height: 100vh;
        width: 262px;
        flex-basis: 262px;
        transform: translateX(-104%);
        transition: transform 0.3s var(--ease);
        box-shadow: var(--shadow-pop);
    }

    .app-shell.nav-open .sidebar { transform: translateX(0); }

    .nav-mask {
        display: none;
        position: fixed; inset: 0;
        background: rgba(63, 66, 84, 0.28);
        backdrop-filter: blur(2px);
        z-index: 20;
    }

    .app-shell.nav-open .nav-mask { display: block; }

    .main { padding: 16px 16px 40px; }

    .mobile-bar {
        display: flex; align-items: center; justify-content: space-between;
        gap: 12px;
        margin-bottom: 16px;
    }
}

@media (min-width: 901px) { .nav-mask { display: none; } }

/* ==========================================================================
   吐司提示
   ========================================================================== */

.toast-wrap {
    position: fixed; top: 22px; right: 22px;
    display: flex; flex-direction: column; gap: 10px;
    z-index: 90;
    max-width: min(360px, calc(100vw - 32px));
}

.toast {
    display: flex; align-items: flex-start; gap: 10px;
    padding: 12px 16px;
    border-radius: var(--radius);
    font-size: 13.5px; line-height: 1.6;
    color: var(--ink-strong);
    background: rgba(255, 255, 255, 0.93);
    border: 1px solid var(--card-border);
    box-shadow: var(--shadow-pop);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    animation: toast-in 0.4s var(--ease) both;
}

.toast.is-hiding { animation: toast-out 0.3s var(--ease) both; }
.toast .toast-dot { width: 9px; height: 9px; border-radius: 50%; margin-top: 7px; flex: 0 0 9px; background: var(--info); }
.toast.is-success .toast-dot { background: var(--ok); }
.toast.is-error   .toast-dot { background: var(--danger); }
.toast.is-info    .toast-dot { background: var(--info); }

@keyframes toast-in {
    from { opacity: 0; transform: translateX(28px) scale(0.96); }
    to   { opacity: 1; transform: translateX(0) scale(1); }
}

@keyframes toast-out {
    from { opacity: 1; transform: translateX(0); }
    to   { opacity: 0; transform: translateX(30px); }
}

/* ==========================================================================
   确认弹窗
   ========================================================================== */

.confirm-mask {
    position: fixed; inset: 0;
    display: flex; align-items: center; justify-content: center;
    padding: 20px;
    background: rgba(63, 66, 84, 0.34);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 100;
    animation: fade-in 0.24s var(--ease) both;
}

.confirm-box {
    width: 100%; max-width: 372px;
    padding: 26px 26px 22px;
    border-radius: var(--radius-lg);
    text-align: center;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid var(--card-border);
    box-shadow: var(--shadow-pop);
    animation: pop-in 0.3s var(--ease) both;
}

.confirm-box h3 { margin: 0 0 8px; font-size: 16.5px; color: var(--ink-strong); }
.confirm-box p { margin: 0 0 20px; font-size: 13.5px; color: var(--ink-soft); line-height: 1.7; }
.confirm-box .confirm-actions { display: flex; gap: 10px; justify-content: center; }

@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

@keyframes pop-in {
    from { opacity: 0; transform: translateY(14px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* 通用柔和浮现动画 */
.reveal { animation: reveal 0.5s var(--ease) both; }

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

/* ==========================================================================
   其他
   ========================================================================== */

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

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

.ua-cell {
    max-width: 260px;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    font-size: 12.5px; color: var(--ink-mute);
}

.divider { height: 1px; margin: 20px 0; background: var(--line-soft); }

.scroll-hint { font-size: 12px; color: var(--ink-mute); }

/* 颜色选择器 */
.color-input {
    width: 44px; height: 34px;
    padding: 3px;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.78);
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    transition: box-shadow 0.22s var(--ease), border-color 0.22s var(--ease);
}

.color-input:hover { border-color: var(--violet-300); box-shadow: 0 0 0 4px rgba(167, 139, 250, 0.14); }
.color-input::-webkit-color-swatch-wrapper { padding: 0; }
.color-input::-webkit-color-swatch { border: none; border-radius: 8px; }
.color-input::-moz-color-swatch { border: none; border-radius: 8px; }

.color-input-lg { width: 100%; max-width: 130px; height: 44px; }
