/* ============================================================
   柏儒电竞管理后台 · LikeAdmin 风格主题
   参考 likeadmin（Vue3 + Element Plus）的布局与配色
   ============================================================ */

* { box-sizing: border-box; }

:root {
    --primary: #4a5dff;
    --primary-hover: #6f7eff;
    --primary-active: #3b4acc;
    --primary-light-8: #dadfff;
    --primary-light-9: #edefff;
    --primary-soft: #edefff;
    --primary-soft-2: #f5f6ff;
    --bg: #f6f6f6;
    --card: #ffffff;
    --text: #333333;
    --text-2: #666666;
    --muted: #999999;
    --border: #dcdfe6;
    --border-light: #e4e7ed;
    --border-lighter: #ebeef5;
    --border-extra: #f2f2f2;
    --green: #67c23a;
    --green-soft: #f0f9eb;
    --orange: #e6a23c;
    --orange-soft: #fdf6ec;
    --red: #f56c6c;
    --red-soft: #fef0f0;
    --purple: #8b5cf6;
    --purple-soft: #f5e8ff;
    --sidebar-width: 200px;
    --navbar-height: 50px;
    --tabs-height: 40px;
}

html, body, #app { height: 100%; }

body {
    margin: 0;
    padding: 0;
    overflow: hidden;
    background: var(--bg);
    color: var(--text);
    font-family: "PingFang SC", Arial, "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    font-size: 14px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; }
button, input, select, textarea { font-family: inherit; }
button { cursor: pointer; }
svg { display: block; }
.icon { width: 18px; height: 18px; flex: none; }
.muted { color: var(--muted); }
.green { color: var(--green); }
.red { color: var(--red); }
.orange { color: var(--orange); }
.blue { color: var(--primary); }
.hidden { display: none !important; }

/* ==================== 登录页 ==================== */
.login {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: url("./images/login_bg.png") center center / cover no-repeat;
    overflow: auto;
}
.login-center {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.login-card {
    display: flex;
    width: 800px;
    max-width: 100%;
    height: 440px;
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}
.login-banner {
    position: relative;
    width: 400px;
    height: 100%;
    flex: none;
    overflow: hidden;
    background: linear-gradient(145deg, #4a5dff 0%, #6a78ff 55%, #8f9bff 100%);
}
.login-banner::before {
    content: "";
    position: absolute;
    width: 320px;
    height: 320px;
    right: -120px;
    top: -120px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 50%;
}
.login-banner::after {
    content: "";
    position: absolute;
    width: 240px;
    height: 240px;
    left: -90px;
    bottom: -100px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 50%;
}
.login-banner-inner {
    position: relative;
    z-index: 1;
    height: 100%;
    padding: 48px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #fff;
}
.login-banner-mark {
    width: 64px;
    height: 64px;
    margin-bottom: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.16);
    font-size: 30px;
    font-weight: 600;
}
.login-banner-title { font-size: 28px; font-weight: 600; letter-spacing: 2px; }
.login-banner-sub { margin-top: 10px; color: rgba(255, 255, 255, 0.82); font-size: 14px; letter-spacing: 0.5px; }
.login-banner-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.login-banner-tags span {
    padding: 4px 10px;
    border: 1px solid rgba(255, 255, 255, 0.32);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    font-size: 12px;
}
.login-form {
    width: 400px;
    flex: none;
    padding: 34px 40px 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #fff;
}
.login-webname { text-align: center; font-size: 28px; font-weight: 500; color: var(--text); line-height: 1.4; }
.login-sub { text-align: center; font-size: 13px; color: var(--muted); margin: 4px 0 20px; }
.identity-tabs { display: flex; justify-content: center; gap: 28px; margin-bottom: 18px; border-bottom: 1px solid var(--border-extra); }
.identity-tabs button {
    position: relative;
    padding: 0 0 10px;
    border: 0;
    background: transparent;
    color: var(--text-2);
    font-size: 14px;
    transition: color 0.15s;
}
.identity-tabs button:hover { color: var(--primary); }
.identity-tabs button.active { color: var(--primary); font-weight: 500; }
.identity-tabs button.active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 2px;
    background: var(--primary);
}
.login-field {
    display: flex;
    align-items: stretch;
    height: 40px;
    margin-bottom: 18px;
    border: 1px solid var(--border);
    border-radius: 4px;
    background: #fff;
    overflow: hidden;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.login-field:focus-within { border-color: var(--primary); box-shadow: 0 0 0 2px var(--primary-light-8); }
.login-field-icon {
    width: 40px;
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
    border-right: 1px solid var(--border);
    background: #fafafa;
    color: var(--muted);
}
.login-field-icon .icon { width: 16px; height: 16px; }
.login-field input {
    flex: 1;
    min-width: 0;
    padding: 0 12px;
    border: 0;
    outline: none;
    background: transparent;
    color: var(--text);
    font-size: 14px;
}
.login-field input::placeholder { color: #c0c4cc; }
.login-help {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: -2px 0 16px;
    font-size: 13px;
    color: var(--muted);
}
.login-help .remember { display: inline-flex; align-items: center; gap: 6px; color: var(--text-2); cursor: pointer; }
.login-help input { accent-color: var(--primary); }
.login-btn { width: 100%; height: 40px; font-size: 14px; }
.login-footer { flex: none; padding: 14px 16px 18px; text-align: center; font-size: 13px; color: #666; }

/* ==================== 按钮 ==================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 32px;
    padding: 0 15px;
    border: 1px solid var(--border);
    border-radius: 4px;
    background: #fff;
    color: #606266;
    font-size: 14px;
    white-space: nowrap;
    transition: all 0.15s;
}
.btn:hover { color: var(--primary); border-color: var(--primary-light-8); background: var(--primary-light-9); }
.btn svg { width: 15px; height: 15px; }
.btn-primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); color: #fff; }
.btn-primary:active { background: var(--primary-active); border-color: var(--primary-active); }
.btn-ghost { background: #fff; border-color: var(--border); color: #606266; }
.btn-ghost:hover { color: var(--primary); border-color: var(--primary-light-8); background: var(--primary-light-9); }
.btn-soft { background: var(--primary-light-9); border-color: var(--primary-light-8); color: var(--primary); }
.btn-soft:hover { color: var(--primary-hover); border-color: var(--primary); }
.btn-danger-ghost { background: #fff; border-color: #fbc4c4; color: var(--red); }
.btn-danger-ghost:hover { background: var(--red-soft); border-color: var(--red); color: var(--red); }
.btn-success-ghost { background: #fff; border-color: #c2e7b0; color: var(--green); }
.btn-success-ghost:hover { background: var(--green-soft); border-color: var(--green); color: var(--green); }
.btn-sm { height: 24px; padding: 0 9px; font-size: 12px; border-radius: 3px; }
.btn-link { height: auto; padding: 0 4px; border: 0; background: transparent; color: var(--primary); font-size: 13px; }
.btn-link:hover { color: var(--primary-hover); background: transparent; }
.btn-link.danger { color: var(--red); }
.btn-link.green { color: var(--green); }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }

.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    height: 24px;
    padding: 0 9px;
    border: 1px solid transparent;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 400;
    white-space: nowrap;
}
.badge-blue { background: var(--primary-light-9); color: var(--primary); border-color: var(--primary-light-8); }
.badge-green { background: var(--green-soft); color: var(--green); border-color: #e1f3d8; }
.badge-orange { background: var(--orange-soft); color: var(--orange); border-color: #faecd8; }
.badge-red { background: var(--red-soft); color: var(--red); border-color: #fde2e2; }
.badge-gray { background: #f4f4f5; color: #909399; border-color: #e9e9eb; }
.badge-purple { background: var(--purple-soft); color: var(--purple); border-color: #e9d7ff; }
.dot { width: 6px; height: 6px; border-radius: 50%; display: inline-block; margin-right: 5px; background: currentColor; }

/* ==================== 框架布局 ==================== */
.layout { display: flex; height: 100vh; overflow: hidden; }

.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: var(--sidebar-width);
    display: flex;
    flex-direction: column;
    background: #fff;
    border-right: 1px solid var(--border-light);
    z-index: 60;
    transition: width 0.2s ease, transform 0.2s ease;
}
.logo {
    height: var(--navbar-height);
    flex: none;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 12px;
    overflow: hidden;
    cursor: pointer;
    user-select: none;
}
.logo .mark {
    width: 34px;
    height: 34px;
    flex: none;
    border-radius: 4px;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 600;
}
.logo-text { min-width: 0; }
.logo-text b {
    display: block;
    color: var(--text);
    font-size: 18px;
    font-weight: 500;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.side-nav { flex: 1; overflow-y: auto; overflow-x: hidden; }
.side-nav::-webkit-scrollbar { width: 4px; }
.side-nav::-webkit-scrollbar-thumb { background: #dcdfe6; border-radius: 4px; }
.nav-group { margin: 0; }
.nav-group-title {
    padding: 14px 16px 6px;
    color: var(--muted);
    font-size: 12px;
    white-space: nowrap;
}
.nav-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    height: 46px;
    padding: 0 16px;
    border-right: 2px solid transparent;
    color: var(--text);
    font-size: 14px;
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
    transition: background 0.15s, color 0.15s;
}
.nav-item:hover { color: var(--primary); background: var(--primary-soft-2); }
.nav-item.active {
    color: var(--primary);
    background: var(--primary-light-9);
    border-right-color: var(--primary);
    font-weight: 500;
}
.nav-item .icon { width: 18px; height: 18px; }

.side-foot { flex: none; padding: 12px; border-top: 1px solid var(--border-extra); }
.side-version { text-align: center; font-size: 11px; color: #c0c4cc; }

.main {
    flex: 1;
    min-width: 0;
    height: 100vh;
    margin-left: var(--sidebar-width);
    display: flex;
    flex-direction: column;
    transition: margin-left 0.2s ease;
}

.topbar {
    height: var(--navbar-height);
    flex: none;
    display: flex;
    align-items: center;
    padding: 0;
    background: #fff;
    border-bottom: 1px solid var(--border-light);
    z-index: 30;
}
.topbar-left { display: flex; align-items: center; height: 100%; min-width: 0; }
.icon-btn {
    width: 40px;
    height: var(--navbar-height);
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #606266;
    transition: background 0.15s;
}
.icon-btn:hover { background: var(--bg); }
.breadcrumb { display: flex; align-items: center; gap: 6px; padding: 0 8px; font-size: 14px; color: var(--muted); min-width: 0; }
.breadcrumb em { font-style: normal; color: #c0c4cc; }
.breadcrumb span { white-space: nowrap; }
.breadcrumb b { color: var(--text); font-weight: 400; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar-right { margin-left: auto; display: flex; align-items: center; height: 100%; }

.user-drop { position: relative; height: 100%; }
.user-trigger {
    height: 100%;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 8px;
    border: 0;
    background: transparent;
    color: var(--text);
    transition: background 0.15s;
}
.user-trigger:hover { background: var(--bg); }
.admin-avatar {
    width: 34px;
    height: 34px;
    flex: none;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 500;
}
.admin-name { max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.user-trigger .caret { width: 14px; height: 14px; color: var(--muted); }
.user-menu {
    display: none;
    position: absolute;
    top: var(--navbar-height);
    right: 0;
    width: 186px;
    padding: 4px;
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: 4px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    z-index: 100;
}
.user-drop.open .user-menu { display: block; }
.user-menu-head { padding: 9px 12px; border-bottom: 1px solid var(--border-extra); margin-bottom: 4px; }
.user-menu-head b { display: block; color: var(--text); font-size: 14px; font-weight: 500; }
.user-menu-head span { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.user-menu button {
    display: block;
    width: 100%;
    padding: 8px 12px;
    border: 0;
    border-radius: 3px;
    background: transparent;
    color: #606266;
    font-size: 14px;
    text-align: left;
}
.user-menu button:hover { background: var(--bg); color: var(--primary); }
.user-menu button.danger:hover { color: var(--red); background: var(--red-soft); }

/* 多页签 */
.app-tabs {
    height: var(--tabs-height);
    flex: none;
    display: flex;
    align-items: stretch;
    background: #fff;
    border-bottom: 1px solid var(--border-light);
    overflow: hidden;
}
.tabs-scroll { flex: 1; min-width: 0; display: flex; overflow-x: auto; overflow-y: hidden; }
.tabs-scroll::-webkit-scrollbar { height: 0; }
.app-tab {
    position: relative;
    display: flex;
    align-items: center;
    gap: 6px;
    height: var(--tabs-height);
    padding: 0 15px;
    border-right: 1px solid var(--border-extra);
    color: var(--text-2);
    font-size: 14px;
    white-space: nowrap;
    cursor: pointer;
    user-select: none;
}
.app-tab:hover { color: var(--primary); }
.app-tab.active { color: var(--primary); background: var(--primary-light-9); font-weight: 500; }
.app-tab.active::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary);
}
.tab-dot { width: 6px; height: 6px; flex: none; border-radius: 50%; background: transparent; }
.app-tab.active .tab-dot { background: var(--primary); }
.tab-close {
    width: 16px;
    height: 16px;
    margin-left: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--muted);
}
.tab-close .icon { width: 11px; height: 11px; }
.tab-close:hover { background: var(--red); color: #fff; }
.tabs-actions { position: relative; width: 40px; flex: none; border-left: 1px solid var(--border-light); }
.tabs-more {
    width: 40px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background: transparent;
    color: #909399;
}
.tabs-more:hover { background: var(--bg); color: var(--primary); }
.tabs-menu {
    display: none;
    position: absolute;
    top: var(--tabs-height);
    right: 0;
    width: 132px;
    padding: 4px;
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: 4px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    z-index: 100;
}
.tabs-actions.open .tabs-menu { display: block; }
.tabs-menu button {
    display: block;
    width: 100%;
    padding: 7px 10px;
    border: 0;
    border-radius: 3px;
    background: transparent;
    color: #606266;
    font-size: 13px;
    text-align: left;
}
.tabs-menu button:hover { background: var(--bg); color: var(--primary); }

.content { flex: 1; min-height: 0; overflow-y: auto; padding: 16px; background: var(--bg); }
.content::-webkit-scrollbar { width: 8px; height: 8px; }
.content::-webkit-scrollbar-thumb { background: #dcdfe6; border-radius: 4px; }
.content::-webkit-scrollbar-thumb:hover { background: #c0c4cc; }
.content::-webkit-scrollbar-button { display: none; }
.table-wrap::-webkit-scrollbar { height: 8px; }
.table-wrap::-webkit-scrollbar-thumb { background: #dcdfe6; border-radius: 4px; }
.table-wrap::-webkit-scrollbar-button { display: none; }
.page { animation: fadeUp 0.2s ease; }
.sidebar-mask { display: none; }

/* 折叠状态（桌面端） */
.layout.collapsed .sidebar { width: 64px; }
.layout.collapsed .main { margin-left: 64px; }
.layout.collapsed .logo { padding: 0; justify-content: center; }
.layout.collapsed .logo-text,
.layout.collapsed .nav-group-title,
.layout.collapsed .nav-item span,
.layout.collapsed .side-version { display: none; }
.layout.collapsed .nav-item { justify-content: center; padding: 0; }
.layout.collapsed .side-foot { padding: 12px 8px; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }

/* ==================== 卡片 / 统计 ==================== */
.card {
    background: var(--card);
    border: 0;
    border-radius: 4px;
    box-shadow: none;
    padding: 20px;
    margin-bottom: 16px;
}
.card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 14px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--border-extra);
}
.card-title { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; color: var(--text); }
.card-title .icon { width: 16px; height: 16px; color: var(--primary); }
.card-link { display: inline-flex; align-items: center; gap: 2px; font-size: 13px; color: var(--primary); cursor: pointer; }
.card-link .icon { width: 12px; height: 12px; }
.card-actions { display: flex; align-items: center; gap: 8px; }

.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 16px; }
.stat-card {
    position: relative;
    min-height: 112px;
    padding: 20px;
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
}
.stat-label { margin-bottom: 10px; padding-right: 54px; color: var(--text-2); font-size: 14px; }
.stat-value { color: var(--text); font-size: 24px; font-weight: 600; line-height: 1.3; letter-spacing: -0.2px; font-variant-numeric: tabular-nums; }
.stat-sub { margin-top: 8px; color: var(--muted); font-size: 12px; }
.stat-icon {
    position: absolute;
    right: 20px;
    top: 20px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: var(--primary-light-9);
    color: var(--primary);
}
.stat-icon .icon { width: 22px; height: 22px; }
.stat-card .stat-value { color: var(--text); }
.stat-card.green .stat-icon { background: var(--green-soft); color: var(--green); }
.stat-card.orange .stat-icon { background: var(--orange-soft); color: var(--orange); }
.stat-card.red .stat-icon { background: var(--red-soft); color: var(--red); }

.dash-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.summary-chart { display: flex; align-items: center; gap: 20px; }
.summary-chart .summary-list { flex: 1; min-width: 0; }
.summary-list { display: flex; flex-direction: column; }
.summary-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 0;
    border-bottom: 1px dashed var(--border-extra);
    color: var(--text-2);
    font-size: 13px;
}
.summary-line:last-child { border-bottom: 0; }
.summary-line b { color: var(--text); font-size: 13px; font-weight: 500; font-variant-numeric: tabular-nums; }

.donut-wrap { display: flex; align-items: center; gap: 18px; margin-top: 8px; }
.donut { position: relative; width: 118px; height: 118px; flex: none; border-radius: 50%; }
.donut::after { content: ""; position: absolute; inset: 24px; background: #fff; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--border-extra); }
.legend { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 7px; max-height: 126px; overflow: auto; }
.legend-item { display: flex; align-items: center; color: var(--text-2); font-size: 12px; }
.legend-dot { width: 7px; height: 7px; margin-right: 6px; flex: none; border-radius: 50%; }
.legend-item span { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.legend-item b { margin-left: 8px; color: var(--text); font-weight: 500; font-variant-numeric: tabular-nums; }
.chart-wrap { position: relative; height: 210px; margin-top: 2px; }
.chart-panel { flex: 1.1; min-width: 0; height: 300px; }
.chart-box { width: 100%; height: 100%; }
.chart-trend { height: 250px; }
.chart-center {
    position: absolute;
    left: 24%;
    top: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    pointer-events: none;
}
.chart-center b { display: block; color: var(--text); font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }
.chart-center span { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; }
.chart-meta { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12px; }
.live-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 0 2px rgba(103, 194, 58, 0.16);
    animation: livePulse 1.8s ease-in-out infinite;
}
@keyframes livePulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.45; transform: scale(0.8); }
}
.stat-card { animation: statIn 0.45s ease both; }
.stat-card:nth-child(2) { animation-delay: 0.06s; }
.stat-card:nth-child(3) { animation-delay: 0.12s; }
.stat-card:nth-child(4) { animation-delay: 0.18s; }
@keyframes statIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: none; }
}
.btn.is-loading .icon { animation: spin 0.8s linear infinite; }
.empty { padding: 36px 12px; text-align: center; color: var(--muted); font-size: 13px; }
.empty .icon { width: 30px; height: 30px; margin: 0 auto 10px; color: #c0c4cc; }

/* ==================== 筛选 / 标签 ==================== */
.filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 16px; margin-bottom: 14px; }
.filter-field { display: flex; flex-direction: column; gap: 6px; }
.filter-field label { color: var(--text-2); font-size: 14px; }
.filter-field .input { width: 200px; height: 32px; }
.filter-field .input.search { width: 260px; }
.filter-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }

.tabs {
    display: flex;
    align-items: center;
    gap: 0;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--border-light);
    overflow-x: auto;
    scrollbar-width: none;
}
.tabs::-webkit-scrollbar { height: 0; display: none; }
.tab {
    position: relative;
    flex: none;
    height: 40px;
    padding: 0 16px;
    border: 0;
    background: transparent;
    color: var(--text-2);
    font-size: 14px;
    cursor: pointer;
    white-space: nowrap;
}
.tab:hover { color: var(--primary); }
.tab.active { color: var(--primary); font-weight: 500; }
.tab.active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 2px;
    background: var(--primary);
}
.tab .tab-count {
    display: inline-block;
    min-width: 18px;
    margin-left: 6px;
    padding: 0 6px;
    border-radius: 9px;
    background: #f4f4f5;
    color: #909399;
    font-size: 11px;
    line-height: 17px;
    text-align: center;
}
.tab.active .tab-count { background: var(--primary-light-9); color: var(--primary); }

/* ==================== 表格 ==================== */
.table-wrap { width: 100%; overflow: auto; border: 1px solid var(--border-lighter); border-radius: 4px; background: #fff; }
table { width: 100%; border-collapse: collapse; min-width: 880px; }
thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    padding: 12px;
    border-bottom: 1px solid var(--border-lighter);
    background: #f8f8f8;
    color: var(--text);
    font-size: 14px;
    font-weight: 400;
    text-align: left;
    white-space: nowrap;
}
tbody td {
    padding: 12px;
    border-bottom: 1px solid var(--border-lighter);
    color: #606266;
    font-size: 14px;
    vertical-align: middle;
    white-space: nowrap;
}
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #f5f7fa; }
tbody td .cell-sub { margin-top: 2px; color: var(--muted); font-size: 12px; }
.table-actions { display: flex; align-items: center; gap: 2px; }
.table-actions .btn-link { padding: 0 4px; }
.avatar {
    width: 32px;
    height: 32px;
    margin-right: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    vertical-align: middle;
}
.avatar.lg { width: 42px; height: 42px; font-size: 15px; }
.inline-flex { display: inline-flex; align-items: center; }
.thumb { width: 36px; height: 36px; border: 1px solid var(--border-lighter); border-radius: 4px; object-fit: cover; background: #fafafa; cursor: pointer; }

/* ================= Logo / 头像 ================= */
.logo .mark img,
.login-banner-mark img { width: 100%; height: 100%; object-fit: contain; border-radius: inherit; display: block; }
.admin-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }
.avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }
.admin-avatar.lg { width: 64px; height: 64px; font-size: 22px; }
.avatar.lg { width: 48px; height: 48px; font-size: 17px; }
.profile-form { display: flex; flex-direction: column; gap: 12px; }
.profile-avatar-row { display: flex; align-items: center; gap: 14px; margin-bottom: 4px; }
.profile-label { font-size: 13px; color: var(--text-2); }
.logo-upload { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.logo-preview {
    width: 54px;
    height: 54px;
    flex: none;
    border-radius: 10px;
    border: 1px dashed var(--border);
    background: var(--bg);
    color: var(--muted);
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.logo-preview img { width: 100%; height: 100%; object-fit: contain; }

.pager {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    padding-top: 16px;
    color: var(--text-2);
    font-size: 13px;
}
.pager-btns { display: flex; align-items: center; gap: 4px; }
.pager-btn {
    min-width: 28px;
    height: 28px;
    padding: 0 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    border-radius: 2px;
    background: #fff;
    color: var(--text-2);
    font-size: 13px;
}
.pager-btn:hover { color: var(--primary); border-color: var(--primary); }
.pager-btn.active { color: var(--primary); border-color: transparent; background: var(--primary-light-9); font-weight: 500; }
.pager-btn[disabled] { opacity: 0.45; cursor: not-allowed; }
.pager select { height: 28px; padding: 0 6px; border: 1px solid var(--border); border-radius: 2px; background: #fff; color: var(--text-2); font-size: 13px; }

/* ==================== 表单 ==================== */
.input, select.input, textarea.input {
    width: 100%;
    height: 32px;
    padding: 0 11px;
    border: 1px solid var(--border);
    border-radius: 4px;
    background: #fff;
    color: #606266;
    font-size: 14px;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.input::placeholder { color: #c0c4cc; }
.input:hover { border-color: #c0c4cc; }
.input:focus { border-color: var(--primary); box-shadow: 0 0 0 2px var(--primary-light-8); }
textarea.input { height: auto; min-height: 84px; padding: 8px 11px; line-height: 1.7; resize: vertical; }
select.input {
    appearance: none;
    padding-right: 30px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%23c0c4cc' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
}
.form-field { margin-bottom: 16px; }
.form-field label { display: block; margin-bottom: 6px; color: var(--text-2); font-size: 14px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
.form-row { display: flex; flex-direction: column; gap: 6px; }
.form-row label { color: var(--text-2); font-size: 14px; }
.form-row .hint { color: var(--muted); font-size: 12px; line-height: 1.6; }
.form-row .row-inline { display: flex; align-items: center; gap: 8px; }
.form-row .row-inline .input { flex: 1; }
.checkbox { display: inline-flex; align-items: center; gap: 7px; height: 32px; color: #606266; font-size: 14px; cursor: pointer; }
.checkbox input { width: 15px; height: 15px; accent-color: var(--primary); }
.wcheck { display: inline-flex; align-items: center; gap: 6px; }

.switch { position: relative; width: 40px; height: 20px; flex: none; border-radius: 10px; background: #dcdfe6; cursor: pointer; transition: background 0.2s; }
.switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2); transition: left 0.2s; }
.switch.on { background: var(--primary); }
.switch.on::after { left: 22px; }
.switch-row { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; border-bottom: 1px dashed var(--border-extra); }
.switch-row:last-child { border-bottom: 0; }
.switch-label { color: var(--text-2); font-size: 14px; }
.switch-desc { margin-top: 2px; color: var(--muted); font-size: 12px; }

.section-tip {
    padding: 9px 12px;
    margin-bottom: 16px;
    border: 1px solid var(--primary-light-8);
    border-radius: 4px;
    background: var(--primary-light-9);
    color: #5a6bd8;
    font-size: 13px;
    line-height: 1.7;
}
.sub-title { display: flex; align-items: center; justify-content: space-between; margin: 16px 0 10px; color: var(--text); font-size: 14px; font-weight: 500; }
.money-input { position: relative; }
.money-input .input { padding-left: 26px; }
.money-input::before { content: "¥"; position: absolute; left: 10px; top: 7px; z-index: 1; color: var(--muted); font-size: 13px; }

/* ==================== 弹窗 ==================== */
.modal-mask {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.15s ease;
}
.modal {
    width: 560px;
    max-width: 100%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 5px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
    overflow: hidden;
    animation: pop 0.15s ease;
}
.modal.wide { width: 800px; }
.modal.narrow { width: 420px; }
.modal-head { flex: none; display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--border-lighter); }
.modal-title { color: var(--text); font-size: 16px; font-weight: 500; }
.modal-close { width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; border: 0; border-radius: 3px; background: transparent; color: #909399; }
.modal-close:hover { color: var(--primary); }
.modal-body { padding: 20px; overflow: auto; }
.modal-foot { flex: none; display: flex; align-items: center; justify-content: flex-end; gap: 10px; padding: 12px 20px; border-top: 1px solid var(--border-lighter); }
.confirm-text { padding: 2px 0 8px; color: #606266; font-size: 14px; line-height: 1.8; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop { from { opacity: 0; transform: translateY(6px) scale(0.99); } to { opacity: 1; transform: none; } }

/* ==================== 消息 ==================== */
.toast-wrap {
    position: fixed;
    top: 20px;
    left: 50%;
    z-index: 1100;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    transform: translateX(-50%);
    pointer-events: none;
}
.toast {
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: 80vw;
    padding: 11px 15px;
    border: 1px solid var(--border-lighter);
    border-radius: 4px;
    background: #fff;
    color: #606266;
    font-size: 14px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    animation: toastIn 0.2s ease;
}
.toast .icon { color: var(--primary); }
.toast.success .icon { color: var(--green); }
.toast.error .icon { color: var(--red); }
.toast.info .icon { color: #909399; }
@keyframes toastIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

.loading { display: flex; align-items: center; justify-content: center; gap: 8px; height: 220px; color: var(--muted); }
.spinner { width: 16px; height: 16px; border: 2px solid var(--primary-light-8); border-top-color: var(--primary); border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ==================== 详情 / 权限 ==================== */
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 24px; }
.detail-item { display: flex; flex-direction: column; gap: 2px; padding: 7px 0; border-bottom: 1px dashed var(--border-extra); }
.detail-item .k { color: var(--muted); font-size: 12px; }
.detail-item .v { color: var(--text); font-size: 13px; word-break: break-all; }
.detail-images { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.detail-images img { width: 86px; height: 86px; border: 1px solid var(--border-lighter); border-radius: 4px; object-fit: cover; cursor: pointer; }

.info-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; }
.info-row { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; border-bottom: 1px dashed var(--border-extra); color: var(--text-2); font-size: 13px; }
.info-row b { color: var(--text); font-weight: 500; }
.palette { display: flex; flex-wrap: wrap; gap: 7px; }
.palette span { width: 20px; height: 20px; border: 2px solid #fff; border-radius: 3px; box-shadow: 0 0 0 1px var(--border); cursor: pointer; }
.role-perms { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.role-perms label {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 9px 10px;
    border: 1px solid var(--border-lighter);
    border-radius: 4px;
    background: #fafafa;
    color: #606266;
    font-size: 13px;
    cursor: pointer;
}
.role-perms label:hover { border-color: var(--primary); background: var(--primary-light-9); }
.role-perms input { accent-color: var(--primary); }
.category-row { cursor: pointer; }
.category-row.active { background: var(--primary-light-9) !important; }
.category-row.active td { color: var(--primary); }

/* ==================== 响应式 ==================== */
@media (max-width: 1280px) {
    .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .dash-grid { grid-template-columns: 1fr; }
}

@media (max-width: 992px) {
    .sidebar { transform: translateX(-100%); width: var(--sidebar-width); z-index: 70; }
    .layout.collapsed .sidebar { width: var(--sidebar-width); }
    .layout.collapsed .logo { padding: 0 12px; justify-content: flex-start; }
    .layout.collapsed .logo-text,
    .layout.collapsed .nav-group-title,
    .layout.collapsed .nav-item span,
    .layout.collapsed .side-version { display: block; }
    .layout.collapsed .nav-item { justify-content: flex-start; padding: 0 16px; }
    .layout.sidebar-open .sidebar { transform: none; }
    .layout.sidebar-open .sidebar-mask {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 65;
        background: rgba(0, 0, 0, 0.5);
    }
    .main, .layout.collapsed .main { margin-left: 0; }
    .content { padding: 12px; }
    .login-card { width: 375px; height: auto; min-height: 0; }
    .login-banner { display: none; }
    .login-form { width: 100%; padding: 34px 32px 28px; }
}

@media (max-width: 768px) {
    .stat-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
    .stat-card { padding: 16px; min-height: 104px; }
    .stat-value { font-size: 21px; }
    .chart-wrap { height: 190px; }
    .chart-trend { height: 220px; }
    .summary-chart { flex-direction: column; align-items: stretch; gap: 8px; }
    .chart-panel { height: 270px; }
    .stat-icon { width: 38px; height: 38px; right: 16px; top: 16px; }
    .form-grid { grid-template-columns: 1fr; }
    .info-list, .role-perms { grid-template-columns: 1fr; }
    .detail-grid { grid-template-columns: 1fr; }
    .filters { gap: 10px; }
    .filter-field { flex: 1 1 150px; }
    .filter-field .input, .filter-field .input.search { width: 100%; }
    .filter-actions { width: 100%; margin-left: 0; flex-wrap: wrap; }
    .admin-name { display: none; }
    .user-trigger { padding: 0 6px; }
    .breadcrumb #crumbGroup, .breadcrumb #crumbSep { display: none !important; }
    .card { padding: 14px; }
    .content { padding: 10px; }
    #fullscreenBtn { display: none; }
}

@media (max-width: 560px) {
    .stat-grid { grid-template-columns: 1fr; }
    .login-center { padding: 12px; }
    .login-card { width: 100%; }
    .login-form { padding: 28px 24px 24px; }
    .login-webname { font-size: 24px; }
    .breadcrumb span:first-child, .breadcrumb em { display: none; }
    .tab { padding: 0 12px; }
}

/* ============================================================
   前端装修 · 可视化编辑器
   ============================================================ */
.deco-page { display: flex; flex-direction: column; gap: 14px; }
.deco-toolbar {
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    background: var(--card); border: 1px solid var(--border-lighter); border-radius: 10px;
    padding: 14px 18px; box-shadow: 0 2px 10px rgba(30, 45, 90, 0.04);
}
.deco-toolbar-left { display: flex; align-items: center; gap: 12px; }
.deco-toolbar-icon {
    width: 40px; height: 40px; border-radius: 11px; display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #4a5dff, #7c5cff); color: #fff;
    box-shadow: 0 8px 18px rgba(74, 93, 255, 0.28);
}
.deco-toolbar-icon .icon { width: 20px; height: 20px; }
.deco-toolbar-title { font-size: 16px; font-weight: 700; color: var(--text); }
.deco-toolbar-sub { font-size: 12px; color: var(--muted); margin-top: 2px; }
.deco-toolbar-right { display: flex; align-items: center; gap: 10px; }
.deco-status {
    font-size: 12px; color: var(--muted); padding: 5px 10px; border-radius: 20px;
    background: #f5f6f8; border: 1px solid var(--border-lighter);
}
.deco-status.dirty { color: #b26a00; background: #fff7e6; border-color: #ffe1a8; }

.deco-layout { display: grid; grid-template-columns: minmax(0, 1fr) 430px; gap: 14px; align-items: start; }
.deco-panel {
    background: var(--card); border: 1px solid var(--border-lighter); border-radius: 10px;
    box-shadow: 0 2px 10px rgba(30, 45, 90, 0.04); overflow: hidden;
}
.deco-tabs { display: flex; gap: 4px; padding: 8px 10px 0; border-bottom: 1px solid var(--border-lighter); flex-wrap: wrap; }
.deco-tab {
    border: 0; background: transparent; padding: 10px 14px; border-radius: 8px 8px 0 0;
    font-size: 13px; color: var(--text-2); cursor: pointer; position: relative;
}
.deco-tab:hover { color: var(--primary); background: var(--primary-soft-2); }
.deco-tab.active { color: var(--primary); font-weight: 700; }
.deco-tab.active::after {
    content: ""; position: absolute; left: 12px; right: 12px; bottom: -1px; height: 2px;
    border-radius: 2px; background: var(--primary);
}
.deco-panel-body { padding: 16px 18px 20px; max-height: calc(100vh - 210px); overflow: auto; }
.deco-block { padding: 4px 0 16px; border-bottom: 1px dashed var(--border-lighter); margin-bottom: 16px; }
.deco-block:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.deco-block-title {
    display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--text);
    margin-bottom: 12px;
}
.deco-block-title::before {
    content: ""; width: 4px; height: 13px; border-radius: 2px; background: var(--primary);
}
.deco-count { font-size: 11px; font-weight: 400; color: var(--muted); margin-left: auto; }
.deco-field { margin-bottom: 12px; }
.deco-field > label { display: block; font-size: 12px; color: var(--text-2); margin-bottom: 6px; font-weight: 500; }
.deco-field .input, .deco-field select.input { height: 34px; font-size: 13px; }
.deco-field textarea.input { height: 64px; padding-top: 8px; resize: vertical; }
.deco-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.deco-hint { font-size: 11px; color: var(--muted); line-height: 1.6; margin-top: 6px; }
.deco-tip {
    font-size: 12px; color: var(--text-2); line-height: 1.7; background: #f7f8fb;
    border: 1px solid var(--border-lighter); border-radius: 8px; padding: 12px 14px;
}
.deco-color-row {
    display: flex; align-items: center; gap: 10px; padding: 7px 0;
    border-bottom: 1px solid var(--border-extra);
}
.deco-color-row:last-child { border-bottom: 0; }
.deco-color-label { flex: 1; font-size: 13px; color: var(--text); }
.deco-color-hex { font-size: 12px; color: var(--muted); font-family: Consolas, monospace; }
.deco-color-row input[type="color"] {
    width: 40px; height: 26px; padding: 0; border: 1px solid var(--border); border-radius: 6px;
    background: transparent; cursor: pointer;
}
.deco-color-input { width: 100%; height: 34px; border: 1px solid var(--border); border-radius: 6px; padding: 2px; cursor: pointer; }
.deco-range { margin-bottom: 14px; }
.deco-range label { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-2); margin-bottom: 6px; }
.deco-range label b { color: var(--primary); font-weight: 600; }
.deco-range input[type="range"] { width: 100%; accent-color: var(--primary); }
.deco-seg { display: flex; gap: 6px; background: #f5f6f9; padding: 4px; border-radius: 8px; }
.deco-seg button {
    flex: 1; border: 0; background: transparent; padding: 7px 0; border-radius: 6px;
    font-size: 12px; color: var(--text-2); cursor: pointer;
}
.deco-seg button.active { background: #fff; color: var(--primary); font-weight: 700; box-shadow: 0 2px 6px rgba(30, 45, 90, 0.08); }
.deco-switch-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 0; }
.deco-switch-label { font-size: 13px; color: var(--text); }
.deco-switch-desc { font-size: 11px; color: var(--muted); margin-top: 2px; }
.deco-switch {
    width: 38px; height: 21px; border-radius: 11px; background: #d9dde6; position: relative;
    cursor: pointer; transition: background 0.2s; flex: none;
}
.deco-switch::after {
    content: ""; position: absolute; left: 2px; top: 2px; width: 17px; height: 17px;
    border-radius: 50%; background: #fff; transition: transform 0.2s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18);
}
.deco-switch.on { background: var(--primary); }
.deco-switch.on::after { transform: translateX(17px); }

.deco-presets { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.deco-preset {
    border: 1px solid var(--border-lighter); border-radius: 9px; padding: 8px; cursor: pointer;
    text-align: center; position: relative; transition: all 0.15s;
}
.deco-preset:hover { border-color: var(--primary-light-8); transform: translateY(-1px); }
.deco-preset.active { border-color: var(--primary); box-shadow: 0 0 0 2px var(--primary-light-9); }
.deco-preset-swatches { display: flex; height: 30px; border-radius: 6px; overflow: hidden; margin-bottom: 6px; }
.deco-preset-swatches i { flex: 1; }
.deco-preset span { font-size: 11px; color: var(--text-2); }
.deco-preset b {
    position: absolute; right: 5px; top: 5px; font-size: 9px; color: #fff; background: var(--primary);
    padding: 1px 5px; border-radius: 8px; font-weight: 500;
}

.deco-upload { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.deco-upload-preview {
    width: 74px; height: 74px; border-radius: 8px; border: 1px dashed var(--border);
    background: #fafbfc center/cover no-repeat; display: flex; align-items: center; justify-content: center;
    font-size: 11px; color: var(--muted);
}
.deco-upload-preview.logo { border-radius: 50%; }
.deco-upload-preview.wide { width: 150px; height: 62px; }

.deco-modules { display: flex; flex-direction: column; gap: 6px; }
.deco-module {
    display: flex; align-items: center; gap: 10px; padding: 9px 10px;
    background: #f9fafc; border: 1px solid var(--border-extra); border-radius: 8px;
}
.deco-module-name { flex: 1; font-size: 12.5px; color: var(--text); }
.deco-module-actions { display: flex; gap: 4px; }
.deco-module-actions button {
    width: 26px; height: 24px; border: 1px solid var(--border); border-radius: 5px;
    background: #fff; color: var(--text-2); font-size: 12px; cursor: pointer;
}
.deco-module-actions button:disabled { opacity: 0.35; cursor: default; }

.deco-entries { display: flex; flex-direction: column; gap: 10px; margin-bottom: 12px; }
.deco-entry-card { background: #f9fafc; border: 1px solid var(--border-extra); border-radius: 9px; padding: 12px; }
.deco-entry-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.deco-entry-head b { font-size: 12px; color: var(--text); }
.deco-nav-row { display: grid; grid-template-columns: 64px 1fr 130px; gap: 8px; align-items: center; margin-bottom: 8px; }
.deco-nav-key { font-size: 11px; color: var(--muted); font-family: Consolas, monospace; }

.deco-preview-col {
    position: sticky; top: 0; display: flex; flex-direction: column; align-items: center; gap: 10px;
    background: var(--card); border: 1px solid var(--border-lighter); border-radius: 10px;
    padding: 14px; box-shadow: 0 2px 10px rgba(30, 45, 90, 0.04);
}
.deco-preview-head {
    width: 100%; display: flex; align-items: center; justify-content: space-between;
    font-size: 13px; font-weight: 700; color: var(--text);
}
.deco-live { display: inline-flex; align-items: center; gap: 5px; font-size: 10px; font-weight: 600; color: #18a058; letter-spacing: 1px; }
.deco-live i { width: 6px; height: 6px; border-radius: 50%; background: #18a058; box-shadow: 0 0 0 3px rgba(24, 160, 88, 0.15); }
.deco-pills { display: flex; flex-wrap: wrap; gap: 6px; width: 100%; }
.deco-pill {
    border: 1px solid var(--border-lighter); background: #fff; color: var(--text-2);
    padding: 5px 10px; border-radius: 14px; font-size: 11px; cursor: pointer;
}
.deco-pill.active { background: var(--primary); border-color: var(--primary); color: #fff; font-weight: 600; }
.deco-phone {
    position: relative; width: 390px; height: 760px; border-radius: 38px; padding: 10px;
    background: #0b0d12; box-shadow: 0 24px 60px rgba(15, 25, 60, 0.28), inset 0 0 0 2px #1c2230;
    flex: none;
}
.deco-phone iframe {
    width: 100%; height: 100%; border: 0; border-radius: 30px; background: #07090f;
    display: block; overflow: hidden;
}
.deco-preview-tip { font-size: 11px; color: var(--muted); text-align: center; line-height: 1.6; }

@media (max-width: 1400px) {
    .deco-layout { grid-template-columns: minmax(0, 1fr) 390px; }
    .deco-phone { width: 356px; height: 700px; }
}
@media (max-width: 1180px) {
    .deco-layout { grid-template-columns: 1fr; }
    .deco-preview-col { position: static; }
}
