/* ============================================================
   招商管理系统 - 全局样式（高级简约 · 电光蓝）
   布局体系完全复刻自参考系统 base.html / goods_list / plaza /
   account_management / send_activity 模板（布局/结构/间距不变）
   视觉质感全面升级：更精致的圆角、阴影、字体层级与组件样式
   ============================================================ */

/* ===== 主题变量 ===== */
:root {
    /* 主色 - 电光蓝 */
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --primary-soft: #eff4ff;
    --primary-ring: rgba(37, 99, 235, 0.12);
    --primary-grad: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);

    /* 文字 */
    --ink: #0f172a;          /* 标题 / 强强调 */
    --text-1: #334155;       /* 主文字 */
    --text-2: #475569;       /* 次文字 */
    --text-3: #64748b;       /* 弱文字 / 占位 */

    /* 背景 */
    --bg-page: #f8fafc;
    --bg-card: #ffffff;
    /* 浮动层实底色（下拉/悬浮窗/右键菜单）：深色主题 --bg-card 是 0.03 透明白，
       浮层必须用它之外的实色，否则会透出背后内容（迭代二十二·#304） */
    --bg-pop: #ffffff;
    --bg-head: #f8fafc;
    --bg-hover: #f1f5f9;
    --bg-input: #ffffff;

    /* 描边 */
    --border: #e2e8f0;
    --border-strong: #cbd5e1;

    /* 侧边栏（始终深色） */
    --sidebar-bg: #0f172a;
    --sidebar-bg-2: #1e293b;
    --sidebar-bg-3: #16202f;
    --sidebar-text: #94a3b8;
    --sidebar-text-strong: #ffffff;
    --sidebar-border: rgba(255, 255, 255, 0.06);

    /* 语义色 */
    --danger: #e11d48;
    --danger-soft: #fff1f2;
    --success: #16a34a;
    --success-soft: #f0fdf4;
    --warning: #f59e0b;
    --warning-soft: #fffbeb;
    --info: #2563eb;
    --info-soft: #eff6ff;

    /* 高亮数字色 */
    --red: #e11d48;
    --orange: #f59e0b;
    --green: #16a34a;

    /* 阴影（分层柔和体系） */
    --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.05);
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05), 0 1px 3px rgba(15, 23, 42, 0.04);
    --shadow-md: 0 1px 2px rgba(15, 23, 42, 0.04), 0 4px 16px rgba(15, 23, 42, 0.06);
    --shadow-lg: 0 8px 32px rgba(15, 23, 42, 0.12);
}

[data-theme="dark"] {
    --primary: #3b82f6;
    --primary-hover: #60a5fa;
    --primary-soft: rgba(59, 130, 246, 0.14);
    --primary-ring: rgba(59, 130, 246, 0.22);
    --primary-grad: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);

    --ink: #f1f5f9;
    --text-1: #e2e8f0;
    --text-2: #94a3b8;
    --text-3: #64748b;

    --bg-page: #0b1120;
    --bg-card: rgba(255, 255, 255, 0.03);
    --bg-pop: #1e293b;
    --bg-head: rgba(255, 255, 255, 0.04);
    --bg-hover: rgba(59, 130, 246, 0.08);
    --bg-input: rgba(255, 255, 255, 0.04);

    --border: rgba(255, 255, 255, 0.06);
    --border-strong: rgba(255, 255, 255, 0.12);

    --sidebar-bg: #080d18;
    --sidebar-bg-2: #0c1424;
    --sidebar-bg-3: #0a101c;
    --sidebar-text: #64748b;
    --sidebar-text-strong: #ffffff;
    --sidebar-border: rgba(255, 255, 255, 0.06);

    --danger: #fb7185;
    --danger-soft: rgba(251, 113, 133, 0.14);
    --success: #4ade80;
    --success-soft: rgba(74, 222, 128, 0.14);
    --warning: #fbbf24;
    --warning-soft: rgba(251, 191, 36, 0.14);
    --info: #3b82f6;
    --info-soft: rgba(59, 130, 246, 0.14);

    --red: #fb7185;
    --orange: #fbbf24;
    --green: #4ade80;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 1px 3px rgba(0, 0, 0, 0.3), 0 4px 16px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 4px 24px rgba(0, 0, 0, 0.4);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    background: var(--bg-page);
    color: var(--text-1);
    height: 100vh;
    overflow: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
a { text-decoration: none; }
.wrapper { display: flex; height: 100vh; }
.has-topbar .wrapper { height: calc(100vh - 56px); }

/* ===== 左侧菜单 ===== */
.sidebar {
    width: 220px;
    background: var(--sidebar-bg);
    color: var(--sidebar-text);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
}
.sidebar::-webkit-scrollbar { width: 4px; }
.sidebar::-webkit-scrollbar-track { background: transparent; }
.sidebar::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.1); border-radius: 4px; }

.sidebar .logo {
    padding: 20px 18px 16px;
    font-size: 20px;
    font-weight: 600;
    color: var(--sidebar-text-strong);
    border-bottom: 1px solid var(--sidebar-border);
    display: flex;
    align-items: center;
    flex-shrink: 0;
    letter-spacing: 0.5px;
}
.sidebar .logo i { color: var(--primary); margin-right: 8px; font-size: 22px; }

.sidebar .menu-tree {
    list-style: none;
    padding: 8px 0;
    margin: 0;
    flex: 1;
}
.sidebar .menu-tree li { list-style: none; }
.sidebar .menu-tree > li > a {
    display: flex;
    align-items: center;
    padding: 10px 16px;
    margin: 2px 8px;
    color: var(--sidebar-text);
    text-decoration: none;
    font-size: 14px;
    border-left: 3px solid transparent;
    border-radius: 8px;
    transition: all 0.2s ease;
    cursor: pointer;
    position: relative;
}
.sidebar .menu-tree > li > a:hover {
    background: rgba(59, 130, 246, 0.12);
    color: var(--sidebar-text-strong);
}
.sidebar .menu-tree > li.active > a {
    background: rgba(59, 130, 246, 0.18);
    color: var(--sidebar-text-strong);
    border-left-color: var(--primary);
}
.sidebar .menu-tree > li > a .nav-icon {
    width: 20px;
    margin-right: 10px;
    text-align: center;
    font-size: 16px;
}
.sidebar .menu-tree > li > a .layui-nav-more {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.3s;
    font-size: 12px;
    color: var(--sidebar-text);
}
.sidebar .menu-tree > li.open > a .layui-nav-more {
    transform: translateY(-50%) rotate(180deg);
}
.sidebar .menu-tree .layui-nav-child {
    display: none;
    list-style: none;
    padding: 0;
    background: transparent;
}
.sidebar .menu-tree > li.open > .layui-nav-child {
    display: block;
}
.sidebar .menu-tree .layui-nav-child dd a {
    display: block;
    padding: 8px 18px 8px 48px;
    margin: 1px 8px;
    color: var(--sidebar-text);
    text-decoration: none;
    font-size: 13px;
    border-radius: 6px;
    transition: all 0.2s ease;
}
.sidebar .menu-tree .layui-nav-child dd a:hover {
    background: rgba(59, 130, 246, 0.1);
    color: var(--sidebar-text-strong);
}
.sidebar .menu-tree .layui-nav-child dd a.active {
    color: var(--sidebar-text-strong);
    background: rgba(59, 130, 246, 0.15);
    box-shadow: inset 3px 0 0 var(--primary);
}
.sidebar .menu-tree .layui-nav-child dd a .menu-new-tag {
    display: inline-block;
    font-size: 10px;
    background: var(--danger);
    color: #fff;
    padding: 0 6px;
    border-radius: 10px;
    margin-left: 4px;
    line-height: 16px;
    vertical-align: middle;
}
.sidebar .nav-se-fix {
    display: flex;
    justify-content: space-around;
    padding: 12px 0;
    border-top: 1px solid var(--sidebar-border);
    margin-top: auto;
    flex-shrink: 0;
}
.sidebar .nav-se-fix > div {
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    transition: all 0.2s ease;
    color: var(--sidebar-text);
}
.sidebar .nav-se-fix > div:hover { background: rgba(59, 130, 246, 0.12); }
.sidebar .nav-se-fix i { font-size: 20px; color: var(--sidebar-text); }
.sidebar .nav-se-fix > div:hover i { color: var(--primary); }

/* ===== 右侧主体 ===== */
.main {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
    min-width: 0;
}

/* ===== 全站通栏顶部（玻璃模糊） ===== */
.has-topbar { padding-top: 56px; }
.topbar, .topbar-fixed {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 0 24px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border);
}
[data-theme="dark"] .topbar,
[data-theme="dark"] .topbar-fixed {
    background: rgba(11, 17, 32, 0.8);
}
.topbar .brand {
    font-size: 18px;
    font-weight: 600;
    color: var(--ink);
    white-space: nowrap;
    letter-spacing: 0.3px;
}
.topbar .brand i { color: var(--primary); margin-right: 6px; }
.topbar .nav-tabs {
    display: flex;
    gap: 32px;
    font-size: 14px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}
.topbar .nav-tabs a {
    color: var(--text-3);
    text-decoration: none;
    padding: 16px 0;
    border-bottom: 3px solid transparent;
    transition: all 0.2s ease;
    cursor: pointer;
    white-space: nowrap;
    font-weight: 500;
}
.topbar .nav-tabs a:hover { color: var(--ink); }
.topbar .nav-tabs a.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
    font-weight: 600;
}
.topbar .nav-tabs a.disabled {
    opacity: .55;
    cursor: not-allowed;
}
.topbar .nav-tabs a.disabled:hover { color: var(--text-3); }
.topbar .topbar-right {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 14px;
    color: var(--text-2);
}
.topbar .topbar-icon { font-size: 18px; color: var(--text-3); cursor: pointer; transition: color 0.2s; }
.topbar .topbar-icon:hover { color: var(--primary); }
.topbar .user-dropdown { position: relative; }
.topbar .user-dropdown .user-trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 8px;
    transition: all 0.2s ease;
}
.topbar .user-dropdown .user-trigger:hover { background: var(--primary-soft); }
/* 角色标签：员工管理表格 / 顶栏通用（同步自 employee.html，确保所有页面颜色一致） */
.role-tag-t {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 10px;
    font-size: 12px;
    white-space: nowrap;
    font-style: normal;
}
.role-tag-t.zhuanyuan { background: var(--bg-head); color: var(--text-2); }
.role-tag-t.c-blue   { background: rgba(37, 99, 235, 0.12);  color: #2563eb; }
.role-tag-t.c-purple { background: rgba(139, 92, 246, 0.12); color: #8b5cf6; }
.role-tag-t.c-teal   { background: rgba(20, 184, 166, 0.14);  color: #14b8a6; }
.role-tag-t.c-orange { background: rgba(245, 158, 11, 0.14); color: #d97706; }
.role-tag-t.c-pink   { background: rgba(236, 72, 153, 0.12); color: #db2777; }
[data-theme="dark"] .role-tag-t.c-blue   { background: rgba(59, 130, 246, 0.16);  color: #93c5fd; }
[data-theme="dark"] .role-tag-t.c-purple { background: rgba(167, 139, 250, 0.16); color: #c4b5fd; }
[data-theme="dark"] .role-tag-t.c-teal   { background: rgba(45, 212, 191, 0.16);  color: #5eead4; }
[data-theme="dark"] .role-tag-t.c-orange { background: rgba(251, 191, 36, 0.16);  color: #fcd34d; }
[data-theme="dark"] .role-tag-t.c-pink   { background: rgba(251, 113, 133, 0.16); color: #fda4af; }
.topbar .user-dropdown .user-trigger .role-tag-t {
    display: inline-block;
    font-style: normal;
    font-size: 11px;
    border-radius: 12px;
    padding: 2px 10px;
    font-weight: 500;
    white-space: nowrap;
    margin: 0 4px;
}
.topbar .user-dropdown .user-trigger .role-tag-t.zhuanyuan { background: var(--bg-head); color: var(--text-2); border: 1px solid var(--border); }
.topbar .user-dropdown .user-trigger .role-tag-t.c-blue   { background: rgba(37, 99, 235, 0.12);  color: #2563eb; border: 1px solid rgba(37, 99, 235, 0.25); }
.topbar .user-dropdown .user-trigger .role-tag-t.c-purple { background: rgba(139, 92, 246, 0.12); color: #8b5cf6; border: 1px solid rgba(139, 92, 246, 0.25); }
.topbar .user-dropdown .user-trigger .role-tag-t.c-teal   { background: rgba(20, 184, 166, 0.14);  color: #14b8a6; border: 1px solid rgba(20, 184, 166, 0.25); }
.topbar .user-dropdown .user-trigger .role-tag-t.c-orange { background: rgba(245, 158, 11, 0.14); color: #d97706; border: 1px solid rgba(245, 158, 11, 0.25); }
.topbar .user-dropdown .user-trigger .role-tag-t.c-pink   { background: rgba(236, 72, 153, 0.12); color: #db2777; border: 1px solid rgba(236, 72, 153, 0.25); }
[data-theme="dark"] .topbar .user-dropdown .user-trigger .role-tag-t.c-blue   { background: rgba(59, 130, 246, 0.16);  color: #93c5fd; border-color: rgba(93, 156, 245, 0.35); }
[data-theme="dark"] .topbar .user-dropdown .user-trigger .role-tag-t.c-purple { background: rgba(167, 139, 250, 0.16); color: #c4b5fd; border-color: rgba(179, 153, 252, 0.35); }
[data-theme="dark"] .topbar .user-dropdown .user-trigger .role-tag-t.c-teal   { background: rgba(45, 212, 191, 0.16);  color: #5eead4; border-color: rgba(68, 224, 197, 0.35); }
[data-theme="dark"] .topbar .user-dropdown .user-trigger .role-tag-t.c-orange { background: rgba(251, 191, 36, 0.16);  color: #fcd34d; border-color: rgba(252, 211, 77, 0.35); }
[data-theme="dark"] .topbar .user-dropdown .user-trigger .role-tag-t.c-pink   { background: rgba(251, 113, 133, 0.16); color: #fda4af; border-color: rgba(253, 132, 153, 0.35); }
.topbar .user-dropdown .user-trigger .avatar {
    width: 32px;
    height: 32px;
    min-width: 32px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--primary-grad);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 13px;
    box-shadow: 0 2px 6px var(--primary-ring);
}
.topbar .user-dropdown .user-trigger .arrow { font-size: 11px; color: var(--text-3); margin-left: 2px; }

/* 用户下拉面板 */
.topbar .slide-down {
    display: none;
    position: absolute;
    top: 48px;
    right: 0;
    min-width: 220px;
    /* 独立实底色：不直接用 --bg-card（深色主题该变量近乎透明 0.03 白，下拉面板会透出背后内容） */
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    padding: 12px 0;
    z-index: 1001;
}
[data-theme="dark"] .topbar .slide-down { background: #1e293b; }
[data-theme="dark"] select.form-select,
[data-theme="dark"] .form-select {
  background-color: #1e293b;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2394a3b8' d='M2 4l4 4 4-4z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  color: #e2e8f0;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  padding-right: 32px;
}
[data-theme="dark"] select.form-select option,
[data-theme="dark"] .form-select option {
  background-color: #1e293b;
  color: #e2e8f0;
}
[data-theme="dark"] .pay-amount { color: #fcd34d; }
.topbar .slide-down.show { display: block; }
.topbar .slide-down .inner { padding: 0 16px; }
.topbar .slide-down .user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 8px;
}
.topbar .slide-down .user-info .avatar {
    width: 44px; height: 44px; border-radius: 50%; background: var(--primary);
    color: #fff; display: flex; align-items: center; justify-content: center;
    font-weight: 600; font-size: 16px;
    box-shadow: var(--shadow-sm);
}
.topbar .slide-down .user-info .team-name { font-size: 14px; font-weight: 600; color: var(--ink); }
.topbar .slide-down .user-info .team-group { font-size: 12px; color: var(--text-3); }
.topbar .slide-down ul { list-style: none; margin: 0; padding: 0; }
.topbar .slide-down ul li { line-height: 1; }
.topbar .slide-down ul li a {
    display: flex; align-items: center;
    padding: 10px 0; font-size: 13px; color: var(--text-2);
    text-decoration: none; transition: color 0.2s;
}
.topbar .slide-down ul li a:hover { color: var(--primary); }
.topbar .slide-down ul li a .shape { color: var(--warning); }
.topbar .slide-down ul li a .out { color: var(--danger); }

.content {
    flex: 1;
    padding: 24px;
    overflow-y: auto;
    background-color: var(--bg-page);
    background-image: radial-gradient(rgba(15, 23, 42, 0.03) 1px, transparent 1px);
    background-size: 24px 24px;
}
[data-theme="dark"] .content {
    background-image: radial-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px);
}

.page-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 20px;
    letter-spacing: 0.3px;
}
.page-title i { color: var(--primary); margin-right: 8px; }

/* ===== 卡片 ===== */
.block-card {
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px solid var(--border);
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-md);
}
.block-card .card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.block-card .card-header h5 {
    font-size: 16px;
    font-weight: 600;
    color: var(--ink);
    letter-spacing: 0.3px;
}
.block-card .card-header a {
    font-size: 13px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

/* ===== 表格 ===== */
.table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 14px;
}
.table th {
    background: var(--bg-head);
    color: var(--text-2);
    font-weight: 600;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    text-align: left;
    white-space: nowrap;
    letter-spacing: 0.3px;
}
.table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    color: var(--text-1);
    font-variant-numeric: tabular-nums;
}
.table tbody tr { transition: background 0.15s ease; }
.table tbody tr:hover { background: var(--bg-hover); }

.badge-status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.3px;
}
.badge-status.success { background: var(--success-soft); color: var(--success); }
.badge-status.danger { background: var(--danger-soft); color: var(--danger); }
.badge-status.warning { background: var(--warning-soft); color: var(--warning); }
.badge-status.info { background: var(--info-soft); color: var(--info); }
.badge-status.gray { background: var(--bg-head); color: var(--text-3); }

/* ===== 概况页四卡片 ===== */
.survey-media-item {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}
.item {
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px solid var(--border);
    padding: 20px;
    box-shadow: var(--shadow-md);
    position: relative;
    transition: all 0.2s ease;
}
.item:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 20px var(--primary-ring);
    transform: translateY(-1px);
}
.item .top {
    color: var(--text-3);
    font-size: 14px;
    margin-bottom: 8px;
    font-weight: 500;
}
.item .num {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 0;
}
.item .num .item-inner-area {
    flex: 1;
    min-width: 60px;
}
.item .num .item-inner-area span,
.item .num .item-inner-area a {
    font-size: 26px;
    font-weight: 700;
    color: var(--ink);
    text-decoration: none;
    letter-spacing: -0.5px;
}
.item .num .item-inner-area p {
    font-size: 13px;
    color: var(--text-3);
    margin: 0;
}
.item .num .flex-row {
    display: flex;
    align-items: baseline;
    justify-content: center;
}
.item .num .flex-row .unit {
    font-size: 18px;
    font-weight: 600;
    color: var(--ink);
    margin-left: 2px;
}
.date-screen {
    position: absolute;
    right: 16px;
    top: 16px;
    display: flex;
    gap: 10px;
    font-size: 13px;
    color: var(--text-3);
}
.date-screen span {
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 6px;
    transition: all 0.2s ease;
}
.date-screen span.active {
    color: var(--primary);
    font-weight: 600;
    background: var(--primary-soft);
}
.date-screen span:hover { color: var(--ink); }

/* ===== 右侧边栏（业绩风云榜，始终深色） ===== */
.right-sidebar {
    width: 320px;
    /* 迭代二十二·#303：业绩风云榜始终深色（注释原意，元素硬编码白色文字）
       不能用 var(--bg-card)（浅色主题下是白色，白色文字会看不见） */
    background: #1e293b;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0;
    overflow-y: auto;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    color: #e2e8f0;
}
.contact-server {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: var(--sidebar-bg);
    color: #fff;
}
.contact-server .flex-row { display: flex; align-items: center; }
.contact-server .flex-between { justify-content: space-between; }
.contact-server .pt-10 { padding-top: 10px; }
.contact-server .pl-10 { padding-left: 10px; }
.contact-server .pr-10 { padding-right: 10px; }
.contact-server .fs-12 { font-size: 12px; }
.title-img { height: 24px; }
.rank-title { font-size: 16px; font-weight: 600; color: #fff; }
.more-rank-btn {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 12px;
    transition: color 0.2s;
}
.more-rank-btn:hover { color: #fff; }

.right-tab {
    display: flex;
    flex-wrap: wrap;
    padding: 10px 10px 0;
    gap: 4px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.right-tab-item {
    flex: 1;
    text-align: center;
    padding: 6px 0;
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
    min-width: 40px;
}
.right-tab-item:hover { color: #fff; }
.right-tab-item.select-tab {
    color: #fff;
    border-bottom-color: var(--primary);
    font-weight: 600;
}

.right-tab-content-box {
    flex: 1;
    padding: 8px 10px 10px;
    overflow-y: auto;
}
.right-tab-content-box > div { display: none; }
.right-tab-content-box > div.active { display: block; }

.select-list {
    display: flex;
    /* 迭代二十二·#303：业绩风云榜 .right-sidebar 始终深色背景，select-list 用深色低透明 */
    background: rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 10px;
}
.select-list .select-item {
    flex: 1;
    text-align: center;
    padding: 4px 0;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.2s ease;
}
.select-list .select-item:hover { color: #ffffff; }
.select-list .select-item.select-btn {
    background: var(--primary);
    color: #ffffff;
    font-weight: 600;
}

/* select 浏览器默认箭头去除（避免深色下与自定义箭头堆叠） */
.form-select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M2 4l4 4 4-4z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  padding-right: 28px;
}

.right-tab-content-box table {
    width: 100%;
    text-align: center;
    border-collapse: collapse;
    font-size: 12px;
    /* 迭代二十二·#304：fixed 布局让 th 宽度百分比强制生效，列宽不被内容挤压 */
    table-layout: fixed;
    /* 迭代二十二·#303：业绩风云榜 .right-sidebar 始终深色背景，表格文字始终用浅色 */
    color: #e2e8f0;
}
.right-tab-content-box table thead tr { background: rgba(255, 255, 255, 0.06); }
.right-tab-content-box table th {
    padding: 8px 0;
    font-weight: 500;
    color: #94a3b8;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.right-tab-content-box table td {
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.right-tab-content-box table tbody tr:hover { background: rgba(255, 255, 255, 0.04); }
.right-tab-content-box .text-ellipsis {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    /* #304：table-layout:fixed 下列宽由 th 百分比决定，max-width 改为 100% 跟随列宽 */
    max-width: 100%;
    display: inline-block;
    vertical-align: middle;
}
.right-tab-content-box .link { color: var(--primary); cursor: pointer; text-decoration: none; }
.right-tab-content-box .link:hover { text-decoration: underline; }

.right-footer {
    text-align: right;
    padding: 8px 4px 0;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: color 0.2s;
}
.right-footer:hover { color: #fff; }
.rank-medal { width: 16px; height: 16px; vertical-align: middle; }

/* ===== 通用页面容器（goods_list / plaza 风格） ===== */
.page {
    background: var(--bg-card);
    padding: 24px;
    border-radius: 12px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
}
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin-bottom: 20px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
}
.filter-bar .form-item { margin-bottom: 0; display: flex; align-items: center; gap: 8px; }
.filter-bar .form-item label { font-size: 13px; color: var(--text-2); white-space: nowrap; font-weight: 500; }

/* ===== 通用筛选卡片（订单明细同款，平铺） ===== */
.filter-form { background: var(--bg-card); border-radius: 12px; padding: 16px 20px 8px; margin-bottom: 16px; border: 1px solid var(--border); box-shadow: var(--shadow-md); }
.filter-form .filter-row { display: flex; flex-wrap: wrap; gap: 12px 24px; margin-bottom: 10px; align-items: center; }
.ff-item { display: flex; align-items: center; gap: 8px; }
.ff-item label { font-size: 13px; color: var(--text-2); white-space: nowrap; }
.ff-item .form-control, .ff-item .form-select { width: auto; min-width: 130px; height: 32px; padding: 0 10px; font-size: 13px; }

.status-badge { display: inline-block; padding: 4px 12px; border-radius: 12px; font-size: 12px; font-weight: 500; }
.status-badge.pending { background: var(--warning-soft); color: var(--warning); }
.status-badge.approved { background: var(--success-soft); color: var(--success); }
.status-badge.rejected { background: var(--danger-soft); color: var(--danger); }
.status-badge.ongoing { background: var(--success-soft); color: var(--success); }
.status-badge.ended { background: var(--danger-soft); color: var(--danger); }
.status-badge.upcoming { background: var(--warning-soft); color: var(--warning); }
/* 2026-09-09 操作任务面板：4 种发布活动状态 */
.status-badge.success { background: var(--success-soft); color: var(--success); }
.status-badge.failed { background: var(--danger-soft); color: var(--danger); }
.status-badge.running { background: rgba(37, 99, 235, 0.12); color: var(--primary); }
/* 已作废（终态，不可重试）：灰色调，与 danger 区分开 */
.status-badge.aborted { background: rgba(120, 120, 130, 0.16); color: #6b7280; }

.commission-rate { font-weight: 600; color: var(--orange); }
.price { font-weight: 600; color: var(--red); }

/* ===== 表单控件（现代柔和风格） ===== */
.form-control, .form-select {
    display: inline-block;
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 13px;
    color: var(--text-1);
    background: var(--bg-input);
    outline: none;
    transition: all 0.2s ease;
    height: 36px;
    line-height: 20px;
    font-family: inherit;
}
.form-control:hover, .form-select:hover { border-color: var(--border-strong); }
.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-ring);
}
.form-control { width: 180px; }
.form-select {
  width: 140px;
  cursor: pointer;
  /* 迭代二十二·#303：去浏览器默认箭头 + 自定义单箭头（避免深色/浅色下双箭头堆叠） */
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M2 4l4 4 4-4z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 32px;
}
textarea.form-control { height: auto; line-height: 1.6; width: 100%; }
input[type="date"].form-control, input[type="datetime-local"].form-control { width: 170px; }
.form-control::placeholder { color: var(--text-3); }

/* ===== 按钮（更精致） ===== */
.btn {
    padding: 8px 16px;
    border-radius: 8px;
    border: none;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    margin: 2px 4px;
    display: inline-block;
    text-decoration: none;
    line-height: 20px;
    letter-spacing: 0.3px;
}
.btn-blue { background: var(--primary); color: #fff; box-shadow: var(--shadow-sm); }
.btn-blue:hover { background: var(--primary-hover); color: #fff; box-shadow: 0 4px 12px var(--primary-ring); }
.btn-success { background: var(--success); color: #fff; box-shadow: var(--shadow-sm); }
.btn-success:hover { background: #12803c; color: #fff; }
.btn-danger { background: var(--danger); color: #fff; box-shadow: var(--shadow-sm); }
.btn-danger:hover { background: #be123c; color: #fff; }
.btn-warning { background: var(--warning); color: #fff; box-shadow: var(--shadow-sm); }
.btn-warning:hover { background: #d97706; color: #fff; }
.btn-plain { background: var(--bg-card); color: var(--primary); border: 1px solid var(--primary); }
.btn-plain:hover { background: var(--primary); color: #fff; }
.btn-plain-success { background: var(--bg-card); color: var(--success); border: 1px solid var(--success); }
.btn-plain-success:hover { background: var(--success); color: #fff; }
.btn-plain-danger { background: var(--bg-card); color: var(--danger); border: 1px solid var(--danger); }
.btn-plain-danger:hover { background: var(--danger); color: #fff; }
.btn-plain-warning { background: var(--bg-card); color: var(--warning); border: 1px solid var(--warning); }
.btn-plain-warning:hover { background: var(--warning); color: #fff; }
.btn-lg { padding: 10px 24px; font-size: 14px; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; box-shadow: none; }
.online { background: var(--success); color: #fff; }
.offline { background: var(--text-3); color: #fff; }

/* ===== 文本工具类 ===== */
.text-dark-red { color: var(--danger); font-weight: 600; }
.text-red { color: var(--red); }
.text-blue { color: var(--primary); }
.text-muted { color: var(--text-3); }
.text-green { color: var(--green); }
.link-text { color: var(--primary); text-decoration: none; cursor: pointer; font-weight: 500; }
.link-text:hover { text-decoration: underline; }
.link { color: var(--primary); text-decoration: none; cursor: pointer; font-weight: 500; }
.link:hover { text-decoration: underline; }
.fr { float: right; }
.oh { overflow: hidden; }
.mt20 { margin-top: 20px; }
.mb20 { margin-bottom: 20px; }
.pl20 { padding-left: 20px; }
.pr20 { padding-right: 20px; }
.clearfix::after { content: ""; display: table; clear: both; }
.flex-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.flex-1 { flex: 1; }

/* ===== layui 风格分页（更精致） ===== */
.layui-laypage { display: inline-block; padding: 16px 0; text-align: center; }
.layui-laypage a, .layui-laypage span {
    display: inline-block;
    padding: 6px 12px;
    border: 1px solid var(--border);
    margin: 0 2px;
    border-radius: 6px;
    color: var(--text-1);
    text-decoration: none;
    font-size: 13px;
    background: var(--bg-card);
    cursor: pointer;
    transition: all 0.2s ease;
}
.layui-laypage a:hover { border-color: var(--primary); color: var(--primary); }
.layui-laypage .layui-laypage-curr { background: var(--primary); color: #fff; border-color: var(--primary); }
.layui-laypage .layui-laypage-curr em { font-style: normal; }
.layui-laypage .layui-disabled { color: var(--text-3); cursor: not-allowed; }
.layui-laypage .layui-disabled:hover { border-color: var(--border); color: var(--text-3); }
.layui-laypage-skip { margin-left: 10px; }
.layui-laypage-skip input {
    width: 40px;
    padding: 6px 8px;
    border: 1px solid var(--border);
    border-radius: 6px;
    text-align: center;
    background: var(--bg-input);
    color: var(--text-1);
}
.layui-laypage-skip button {
    padding: 6px 12px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s;
}
.layui-laypage-skip button:hover { background: var(--primary-hover); }
.page-total { font-size: 13px; color: var(--text-3); margin-right: 10px; }

/* ===== 活动账号管理表格 ===== */
.goods-list-form-area { overflow-x: auto; }
.v3-goods-list-area { min-width: 1200px; }
.goods-list-table { width: 100%; min-width: 1950px; border-collapse: separate; border-spacing: 0; font-size: 13px; }
.goods-list-table th {
    background: var(--bg-head); color: var(--text-2); font-weight: 600;
    padding: 12px 10px; border: 1px solid var(--border); text-align: center; white-space: nowrap;
}
.goods-list-table td { padding: 12px 10px; border: 1px solid var(--border); text-align: center; vertical-align: middle; }
.goods-list-table tbody tr { transition: background 0.15s ease; }
.goods-list-table tbody tr:hover { background: var(--bg-hover); }
.tz-name .activity-number-box { font-size: 12px; color: var(--text-2); margin-top: 4px; text-align: left; }
.tz-name .activity-number-box p { margin: 0; }
.tips-icon {
    display: inline-block; width: 16px; height: 16px; background: var(--border); color: var(--text-2);
    border-radius: 50%; font-size: 11px; line-height: 16px; text-align: center;
    cursor: pointer; position: relative; margin-left: 4px;
}
.tips-icon .box {
    display: none; position: absolute; left: 50%; transform: translateX(-50%); bottom: 24px;
    background: #0f172a; color: #fff; padding: 8px 12px; border-radius: 8px;
    font-size: 12px; font-weight: 400; white-space: nowrap; z-index: 100;
    min-width: 200px; box-shadow: var(--shadow-lg);
}
.tips-icon .box .inner { text-align: left; }
.tips-icon:hover .box { display: block; }
.open-remind { cursor: pointer; }

/* ===== 发布活动页 ===== */
.page-header {
    display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px;
    border-bottom: 1px solid var(--border); padding-bottom: 12px;
}
.page-header-title {
    padding: 8px 16px; border-radius: 8px; color: var(--text-1); text-decoration: none;
    font-size: 14px; transition: all 0.2s ease; background: var(--bg-head); cursor: pointer;
    font-weight: 500;
}
.page-header-title:hover { background: var(--border); }
.page-header-title.text-red { color: var(--danger); background: var(--danger-soft); }
.page-header-title.active { background: var(--primary-grad); color: #fff; box-shadow: 0 2px 8px var(--primary-ring); }
.block-title {
    font-size: 16px; font-weight: 600; color: var(--ink);
    padding: 16px 0 12px; border-bottom: 1px solid var(--border); margin-bottom: 16px;
    letter-spacing: 0.3px;
}
.activity-form { display: flex; gap: 40px; flex-wrap: wrap; }
.activity-form > div:first-child { flex: 1; min-width: 500px; }
.activity-form > div:last-child { width: 1000px; max-width: 100%; }
.form-row { margin-bottom: 18px; display: flex; align-items: center; }
.form-row > label { width: 120px; text-align: right; padding-right: 12px; font-size: 13px; color: var(--text-2); flex-shrink: 0; font-weight: 500; }
.config-input { width: 80px; display: inline-block; margin: 0 4px; }
.commission-config {
    display: flex; gap: 20px; border: 1px solid var(--border);
    border-radius: 12px; padding: 16px; background: var(--bg-head);
}
.commission-config .left { flex: 1; min-width: 300px; max-height: 450px; overflow-y: auto; }
.commission-config .left .header {
    display: flex; justify-content: space-between; padding: 8px 0;
    border-bottom: 1px solid var(--border); font-weight: 600;
}
.commission-config .left .header a { color: var(--primary); cursor: pointer; }
.commission-config .cat-group { border-bottom: 1px solid var(--border); }
.commission-config .cat-group > .cat-name {
    padding: 8px 0; font-size: 13px; cursor: pointer; color: var(--text-2); user-select: none;
    font-weight: 500;
}
.commission-config .cat-group > .cat-name i { width: 14px; color: var(--text-3); transition: 0.2s; }
.commission-config .cat-group.open > .cat-name i { transform: rotate(90deg); }
.commission-config .cat-group .cat-body { display: none; flex-wrap: wrap; gap: 6px; padding: 8px 0 8px 18px; }
.commission-config .cat-group.open .cat-body { display: flex; }
.commission-config .cat-btn {
    padding: 6px 12px; font-size: 12px; border: 1px solid var(--border-strong); border-radius: 6px;
    background: var(--bg-card); color: var(--text-2); cursor: pointer; transition: all 0.2s ease;
    display: inline-flex; align-items: center; gap: 6px;
}
.commission-config .cat-btn em { font-style: normal; font-size: 11px; color: var(--orange); }
.commission-config .cat-btn:hover { color: var(--primary); border-color: var(--primary); }
.commission-config .cat-btn.selected { background: var(--primary); border-color: var(--primary); color: #fff; }
.commission-config .cat-btn.selected em { color: #fff; }
.commission-config .right { flex: 1; min-width: 300px; }
.commission-config .sel-scroll { max-height: 380px; overflow-y: auto; }
.commission-config .sel-scroll thead th { position: sticky; top: 0; z-index: 1; background: var(--bg-head); }
.commission-config .right .header { padding: 8px 0; border-bottom: 1px solid var(--border); font-weight: 600; }
.commission-config .right .table-footer {
    display: flex; justify-content: space-between; padding: 8px 0;
    border-top: 1px solid var(--border); margin-top: 8px;
}
.commission-config .right .table-footer .text-blue { color: var(--primary); cursor: pointer; font-size: 13px; }
.text-desc { font-size: 12px; color: var(--text-3); margin-top: 8px; }
.placeholder-tab { padding: 60px 0; text-align: center; color: var(--text-3); font-size: 16px; }
.placeholder-tab i { font-size: 48px; display: block; margin-bottom: 16px; }
.user-list-box {
    margin: 10px 20px 20px 70px; overflow: hidden; padding: 10px;
    border: 1px solid var(--border-strong); background-color: var(--bg-head);
    max-height: 250px; overflow-y: auto;
}
.user-list-box .user-item {
    text-align: center; padding: 0 8px; height: 20px; line-height: 21px; margin: 5px;
    background-color: var(--bg-card); color: var(--text-1); font-size: 12px;
    border: 1px solid var(--border-strong); cursor: pointer; border-radius: 6px; float: left;
    transition: all 0.2s ease;
}
.user-list-box .user-item.selected {
    color: #fff !important; border-color: var(--primary) !important; background-color: var(--primary) !important;
}

/* ===== 弹窗（更精致） ===== */
.dialog-mask {
    position: fixed; inset: 0; background: rgba(0, 0, 0, 0.6); z-index: 2000;
    display: none; align-items: flex-start; justify-content: center; overflow-y: auto; padding: 60px 20px;
}
.dialog-mask.show { display: flex; }
.dialog {
    background: var(--bg-card); border-radius: 12px; width: 555px; max-width: 95%;
    box-shadow: var(--shadow-lg);
}
/* 浅色主题强制弹窗为纯白实底，避免 --bg-card 被主题变量覆盖后变透 */
[data-theme="light"] .dialog { background: #ffffff; }
/* 深色主题弹窗必须为实色背景（--bg-card 在深色下是半透明玻璃，叠在遮罩上会看不清内容） */
[data-theme="dark"] .dialog { background: #101a30; border: 1px solid rgba(255, 255, 255, 0.08); }
[data-theme="dark"] .dialog .dialog-header { background: transparent; }
[data-theme="dark"] .dialog .dialog-body,
[data-theme="dark"] .dialog .dialog-footer { background: transparent; }
.dialog.wide { width: 750px; }
.dialog .dialog-header {
    padding: 20px 24px; border-bottom: 1px solid var(--border);
    display: flex; justify-content: space-between; align-items: center;
}
.dialog .dialog-header h4 { font-size: 16px; font-weight: 600; color: var(--ink); margin: 0; letter-spacing: 0.3px; }
.dialog .dialog-header .close { cursor: pointer; color: var(--text-3); font-size: 18px; transition: color 0.2s; }
.dialog .dialog-header .close:hover { color: var(--danger); }
.dialog .dialog-body { padding: 24px; }
.dialog .dialog-footer {
    padding: 16px 24px 24px; text-align: right;
}
.dialog .dialog-body .form-row { margin-bottom: 14px; }
.radio-group { display: inline-flex; gap: 18px; flex-wrap: wrap; align-items: center; }
.radio-group label { cursor: pointer; font-size: 13px; color: var(--text-2); display: inline-flex; align-items: center; gap: 4px; }
.radio-group input { accent-color: var(--primary); }

/* ===== 消息提示 ===== */
.zs-message {
    position: fixed; top: 20px; left: 50%; transform: translateX(-50%);
    padding: 12px 20px; border-radius: 8px; font-size: 14px; z-index: 3000;
    box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 8px;
    animation: msgIn 0.3s;
    font-weight: 500;
}
.zs-message.success { background: var(--success-soft); color: var(--success); border: 1px solid var(--success-soft); }
.zs-message.error { background: var(--danger-soft); color: var(--danger); border: 1px solid var(--danger-soft); }
.zs-message.warning { background: var(--warning-soft); color: var(--warning); border: 1px solid var(--warning-soft); }
.zs-message.info { background: var(--info-soft); color: var(--primary); border: 1px solid var(--info-soft); }
@keyframes msgIn { from { opacity: 0; transform: translateX(-50%) translateY(-16px); } to { opacity: 1; transform: translateX(-50%) translateY(0); } }

/* ===== 登录页（固定深色渐变，独立于主题） ===== */
.login-body {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 60%, #0b1120 100%);
    height: 100vh; display: flex; align-items: center; justify-content: center;
}
.login-card {
    width: 400px; background: #fff; border-radius: 16px; padding: 40px 36px 32px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}
.login-card .login-logo {
    text-align: center; margin-bottom: 8px; font-size: 22px; font-weight: 600; color: #0f172a;
    letter-spacing: 0.5px;
}
.login-card .login-logo i { color: #2563eb; margin-right: 8px; font-size: 26px; }
.login-card .login-sub { text-align: center; color: #64748b; font-size: 13px; margin-bottom: 28px; }
.login-card .form-group { margin-bottom: 18px; }
.login-card .form-group label { display: block; font-size: 13px; color: #475569; margin-bottom: 6px; font-weight: 500; }
.login-card .form-group .form-control { width: 100%; height: 42px; padding: 8px 14px; font-size: 14px; border-radius: 8px; }
.login-card .btn-login {
    width: 100%; padding: 12px 0; background: #2563eb; color: #fff; border: none;
    border-radius: 8px; font-size: 15px; font-weight: 500; cursor: pointer; transition: all 0.2s;
    letter-spacing: 0.5px;
}
.login-card .btn-login:hover { background: #1d4ed8; box-shadow: 0 4px 12px rgba(37,99,235,0.3); }
.login-tips { text-align: center; margin-top: 16px; font-size: 12px; color: #64748b; }

/* ===== 空状态 / 加载 ===== */
.empty-block { padding: 40px 0; text-align: center; color: var(--text-3); font-size: 14px; }
.loading-block { padding: 40px 0; text-align: center; color: var(--text-3); font-size: 14px; }

/* ===== 明暗切换胶囊开关 ===== */
.theme-toggle {
    width: 40px;
    height: 22px;
    border-radius: 999px;
    background: #cbd5e1;
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
    border: none;
    padding: 0;
    transition: background 0.25s ease;
    vertical-align: middle;
}
.theme-toggle::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    transition: transform 0.25s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}
.theme-toggle.on { background: var(--primary); }
.theme-toggle.on::after { transform: translateX(18px); }
[data-theme="dark"] .theme-toggle { background: var(--primary); }
[data-theme="dark"] .theme-toggle::after { transform: translateX(18px); }

/* ===== 明暗主题切换平滑过渡 ===== */
body, .block-card, .page, .item, .topbar, .topbar-fixed, .sidebar, .content, .table th, .table td {
    transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}
.sidebar .menu-tree a, .btn, .form-control, .form-select {
    transition: all 0.2s ease;
}

/* ===== 响应式 ===== */
@media (max-width: 1200px) { .right-sidebar { display: none; } }
@media (max-width: 992px) {
    .survey-media-item { grid-template-columns: repeat(2, 1fr); }
    .sidebar { width: 64px; overflow: visible; }
    .sidebar .menu-tree > li > a span:not(.nav-icon) { display: none; }
    .sidebar .menu-tree > li > a .layui-nav-more { display: none; }
    .sidebar .menu-tree .layui-nav-child dd a { padding-left: 18px; }
    .topbar .nav-tabs { display: none; }
}
@media (max-width: 576px) {
    .survey-media-item { grid-template-columns: 1fr; }
    .right-sidebar { width: 100%; }
}
