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

body {
    font-family: 'Noto Sans SC', 'Source Han Sans CN', '思源黑体', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background: #f0f2f5;
    color: #333;
    overflow: hidden;
}

/* 顶部栏 - 专业管理系统风格 */
.top-bar {
    height: 64px;
    background: linear-gradient(135deg, #1e3a5f 0%, #2c5282 100%);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 28px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

.top-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.system-title {
    font-family: -apple-system, BlinkMacSystemFont, "Microsoft YaHei", "微软雅黑", "PingFang SC", "Hiragino Sans GB", sans-serif;
    font-weight: 700;
    font-size: 22px;
    color: #ffffff;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.current-page {
    font-family: 'Noto Sans SC', 'Source Han Sans CN', '思源黑体', -apple-system, sans-serif;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    margin-left: 20px;
    padding-left: 20px;
    border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.top-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-name {
    font-family: 'Noto Sans SC', 'Source Han Sans CN', '思源黑体', sans-serif;
    color: rgba(255, 255, 255, 0.95);
    font-size: 15px;
    font-weight: 500;
    margin-right: 16px;
}

.btn-logout {
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    font-family: 'Noto Sans SC', 'Source Han Sans CN', '思源黑体', sans-serif;
    backdrop-filter: blur(10px);
}

.btn-logout:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* 主布局 */
.main-layout {
    display: flex;
    margin-top: 64px;
    height: calc(100vh - 64px);
}

/* 左侧导航栏 - 专业管理系统风格 */
.sidebar {
    width: 240px;
    /* 由纯黑改为深蓝灰渐变，更耐看 */
    background: linear-gradient(180deg, #2b3a4d 0%, #1c2633 100%);
    color: #e2e8f0;
    overflow-y: auto;
    flex-shrink: 0;
    box-shadow: 2px 0 12px rgba(0, 0, 0, 0.1);
}

.nav-menu {
    padding: 20px 0;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 16px 28px;
    cursor: pointer;
    transition: all 0.2s ease;
    border-left: 4px solid transparent;
    margin: 2px 0;
    border-radius: 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 16px;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.07);
    border-left-color: #4299e1;
    color: #ffffff;
}

.nav-item.active {
    background: rgba(66, 153, 225, 0.15);
    border-left-color: #4299e1;
    color: #ffffff;
    font-weight: 600;
}

.nav-icon {
    font-size: 22px;
    margin-right: 14px;
    width: 26px;
    text-align: center;
    transition: transform 0.2s;
}

.nav-icon svg[data-line="1"],
.nav-subicon svg[data-line="1"] {
    width: 18px;
    height: 18px;
    display: inline-block;
    vertical-align: -3px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    opacity: 0.9;
}

/* 彩色图标：不强制 fill:none / stroke:currentColor */
.nav-icon.colored svg {
    width: 18px;
    height: 18px;
    display: inline-block;
    vertical-align: -3px;
}

.nav-item.active .nav-icon svg,
.nav-subitem.active .nav-subicon svg {
    opacity: 1;
}

.nav-item:hover .nav-icon {
    transform: scale(1.05);
}

.voice-multi-select {
    border: 1px solid rgba(160, 174, 192, 0.45);
    border-radius: 12px;
    padding: 12px;
    background: linear-gradient(180deg, rgba(255,255,255,0.90) 0%, rgba(248,250,252,0.92) 100%);
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
}
.voice-ms-head {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}
.voice-ms-search {
    flex: 1;
    min-width: 240px;
}
.voice-ms-btn {
    padding: 9px 14px;
}
.voice-ms-chips {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.voice-ms-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(59, 130, 246, 0.10);
    color: #1e3a8a;
    border: 1px solid rgba(59, 130, 246, 0.22);
    font-size: 15px;
    font-weight: 500;
}
.voice-ms-chip button {
    border: none;
    background: transparent;
    cursor: pointer;
    color: rgba(30, 58, 138, 0.85);
    font-size: 14px;
    line-height: 1;
    padding: 0;
}
.voice-ms-list {
    margin-top: 10px;
    max-height: 230px;
    overflow: auto;
    border-radius: 10px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: rgba(255,255,255,0.9);
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px;
}
.voice-ms-item {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    border-radius: 999px;
    background: #f8fafc;
    transition: all 0.2s ease;
}
.voice-ms-item:last-child {
    border-bottom: 1px solid rgba(148, 163, 184, 0.35);
}
.voice-ms-item:hover {
    background: rgba(59, 130, 246, 0.08);
    border-color: rgba(59, 130, 246, 0.45);
}
.voice-ms-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
}
.voice-ms-item .voice-ms-name {
    flex: 1;
    color: #1f2937;
    font-size: 18px;
    font-weight: 600;
}

.nav-text {
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0.2px;
}

/* 导航分组标题 */
.nav-group-title {
    padding: 16px 28px 10px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.52);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.2px;
}

/* 导航分隔线 */
.nav-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.10);
    margin: 12px 20px;
}

/* 父级菜单项 */
.nav-parent {
    position: relative;
}

.nav-arrow {
    margin-left: auto;
    font-size: 12px;
    transition: transform 0.3s ease;
    color: rgba(255, 255, 255, 0.6);
}

.nav-parent.expanded .nav-arrow {
    transform: rotate(180deg);
}

/* 子菜单容器 */
.nav-submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.28s ease;
    background: rgba(0, 0, 0, 0.18);
}

.nav-submenu.expanded {
    max-height: 520px;
}

/* 子菜单项（默认单列，兼容旧结构） */
.nav-subitem {
    display: flex;
    align-items: center;
    padding: 12px 28px 12px 60px;
    cursor: pointer;
    transition: all 0.2s ease;
    border-left: 4px solid transparent;
    color: rgba(255, 255, 255, 0.75);
    font-size: 15px;
}

.nav-subitem:hover {
    background: rgba(255, 255, 255, 0.06);
    border-left-color: #4299e1;
    color: #ffffff;
}

.nav-subitem.active {
    background: rgba(66, 153, 225, 0.12);
    border-left-color: #4299e1;
    color: #ffffff;
    font-weight: 500;
}

.nav-subicon {
    font-size: 18px;
    margin-right: 12px;
    width: 22px;
    text-align: center;
}

/* 抖店风格：分组标题 + 双列网格，压缩纵向空间 */
.nav-submenu-grid {
    padding: 0 12px 10px;
}
.nav-submenu-grid.expanded {
    max-height: 640px;
}
.nav-subsec {
    padding: 8px 4px 4px;
}
.nav-subsec + .nav-subsec {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: 4px;
}
.nav-subsec-title {
    text-align: center;
    font-size: 11px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.42);
    letter-spacing: 0.6px;
    margin: 4px 8px 8px;
    position: relative;
}
.nav-subsec-title::before,
.nav-subsec-title::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 28%;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}
.nav-subsec-title::before { left: 0; }
.nav-subsec-title::after { right: 0; }
.nav-subgrid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}
.nav-submenu-grid .nav-subitem {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 10px 6px;
    border-left: none;
    border-radius: 10px;
    text-align: center;
    min-height: 58px;
    background: rgba(255, 255, 255, 0.04);
}
.nav-submenu-grid .nav-subitem:hover {
    background: rgba(255, 255, 255, 0.09);
    border-left-color: transparent;
}
.nav-submenu-grid .nav-subitem.active {
    background: rgba(66, 153, 225, 0.22);
    border-left-color: transparent;
    box-shadow: inset 0 0 0 1px rgba(66, 153, 225, 0.45);
}
.nav-submenu-grid .nav-subicon {
    margin-right: 0;
    font-size: 16px;
    width: auto;
    line-height: 1;
}
.nav-submenu-grid .nav-subtext {
    font-size: 12px;
    line-height: 1.25;
    font-weight: 600;
}

.nav-subtext {
    font-size: 15px;
    font-weight: 400;
}

/* 主内容区 */
.content-area {
    flex: 1;
    overflow-y: auto;
    background: #f0f2f5;
    padding: 28px;
}

.page-container {
    position: relative;
}

.page-content {
    display: none !important;
    visibility: hidden !important;
    animation: fadeIn 0.3s;
}

.page-content.active {
    display: block !important;
    visibility: visible !important;
}

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

.page-header {
    margin-bottom: 20px;
}

.page-header h2 {
    font-family: 'Noto Sans SC', 'Source Han Sans CN', '思源黑体', sans-serif;
    font-size: 24px;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 8px;
}

.page-desc {
    font-family: 'Noto Sans SC', 'Source Han Sans CN', '思源黑体', sans-serif;
    color: #718096;
    font-size: 14px;
    font-weight: 400;
}

/* 统计卡片 */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.stat-card {
    background: white;
    border-radius: 10px;
    padding: 24px;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
    border: 1px solid #e4e7ed;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    border-color: #cbd5e0;
}

.stat-icon {
    font-size: 40px;
    margin-right: 15px;
}

.stat-info {
    flex: 1;
}

.stat-label {
    font-family: 'Noto Sans SC', 'Source Han Sans CN', '思源黑体', sans-serif;
    color: #718096;
    font-size: 14px;
    margin-bottom: 6px;
    font-weight: 400;
}

.stat-value {
    font-family: -apple-system, BlinkMacSystemFont, "Microsoft YaHei", "微软雅黑", sans-serif;
    color: #1a202c;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

/* 财务板块 - 顶部三张彩色卡片（参考千川主卡片配色） */
.finance-card-income {
    background: linear-gradient(135deg, #52c41a 0%, #73d13d 100%);
    color: #ffffff;
    border-color: transparent;
}
.finance-card-expense {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
    color: #ffffff;
    border-color: transparent;
}
.finance-card-net {
    background: linear-gradient(135deg, #1677ff 0%, #4096ff 100%);
    color: #ffffff;
    border-color: transparent;
}
.finance-card-income .stat-label,
.finance-card-expense .stat-label,
.finance-card-net .stat-label {
    color: rgba(255,255,255,0.9);
}
.finance-card-income .stat-value,
.finance-card-expense .stat-value,
.finance-card-net .stat-value {
    color: #ffffff;
}

/* 工资管理板块 - 卡片背景色（与财务数据管理配色一致） */
.salary-card-dept {
    background: linear-gradient(135deg, rgba(82,196,26,0.08) 0%, rgba(115,209,61,0.05) 100%);
    border-left: 4px solid #52c41a;
}
.salary-card-position {
    background: linear-gradient(135deg, rgba(255,149,0,0.08) 0%, rgba(255,107,0,0.05) 100%);
    border-left: 4px solid #ff9500;
}
.salary-card-employee {
    background: linear-gradient(135deg, rgba(114,46,209,0.08) 0%, rgba(146,84,222,0.05) 100%);
    border-left: 4px solid #722ed1;
}
.salary-card-payment {
    background: linear-gradient(135deg, rgba(8,145,178,0.08) 0%, rgba(34,211,238,0.05) 100%);
    border-left: 4px solid #0891b2;
}

/* 工资管理 - 组织与人员合并卡片（部门/岗位/员工 Tab） */
.salary-card-base {
    background: linear-gradient(135deg, rgba(82,196,26,0.06) 0%, rgba(114,46,209,0.04) 50%, rgba(255,149,0,0.05) 100%);
    border-left: 4px solid #52c41a;
}
.salary-base-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 16px;
    border-bottom: 1px solid #e8eaed;
    padding-bottom: 0;
}
.salary-base-tab-btn {
    padding: 8px 16px;
    border: none;
    background: transparent;
    color: #64748b;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border-radius: 6px;
    transition: color 0.2s, background 0.2s;
}
.salary-base-tab-btn:hover {
    color: #1e3a5f;
    background: rgba(30,58,95,0.06);
}
.salary-base-tab-btn.active {
    color: #1e3a5f;
    background: rgba(30,58,95,0.08);
    border-bottom: 2px solid #1e3a5f;
    margin-bottom: -1px;
}
.salary-base-tab-panel {
    display: none;
}
.salary-base-tab-panel.active {
    display: block;
}
.salary-base-tab-panel .toolbar {
    margin-bottom: 8px;
}

/* 工资管理 - “+ 新增”下拉 */
.salary-add-dropdown {
    position: relative;
}
.salary-add-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 4px;
    min-width: 120px;
    background: #fff;
    border: 1px solid #e4e7ed;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    z-index: 100;
    overflow: hidden;
}
.salary-add-dropdown-menu.show {
    display: block;
}
.salary-add-dropdown-menu a {
    display: block;
    padding: 10px 14px;
    color: #1a202c;
    font-size: 14px;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.15s;
}
.salary-add-dropdown-menu a:hover {
    background: #f0f2f5;
}

/* 信息卡片 */
.info-section {
    margin-top: 20px;
}

.info-card {
    background: white;
    border-radius: 10px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border: 1px solid #e4e7ed;
}

.info-card h3 {
    font-family: 'Noto Sans SC', 'Source Han Sans CN', '思源黑体', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e8eaed;
}

.info-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.info-row {
    display: flex;
    padding: 10px 0;
    border-bottom: 1px solid #f5f7fa;
}

.info-row:last-child {
    border-bottom: none;
}

.info-label {
    font-family: 'Noto Sans SC', 'Source Han Sans CN', '思源黑体', sans-serif;
    color: #718096;
    min-width: 100px;
    font-size: 14px;
    font-weight: 400;
}

.info-value {
    font-family: 'Noto Sans SC', 'Source Han Sans CN', '思源黑体', sans-serif;
    color: #1a202c;
    font-size: 14px;
    font-weight: 500;
}

/* 工具栏 */
.toolbar {
    margin-bottom: 20px;
    display: flex;
    gap: 10px;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.2s ease;
    font-family: 'Noto Sans SC', 'Source Han Sans CN', '思源黑体', sans-serif;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.btn-primary {
    background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
    color: white;
    box-shadow: 0 2px 6px rgba(74, 144, 226, 0.25);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #357abd 0%, #2a5f8f 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(74, 144, 226, 0.35);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(74, 144, 226, 0.25);
}

.btn-success {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    color: white;
    box-shadow: 0 2px 6px rgba(72, 187, 120, 0.25);
}

.btn-success:hover {
    background: linear-gradient(135deg, #38a169 0%, #2f855a 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(72, 187, 120, 0.35);
}

.btn-secondary {
    background: #ffffff;
    color: #4a5568;
    border: 2px solid #e4e7ed;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.btn-secondary:hover {
    background: #f8f9fa;
    border-color: #cbd5e0;
    color: #1a202c;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn-secondary:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.btn-danger {
    background: linear-gradient(135deg, #e53e3e 0%, #c53030 100%);
    color: #fff;
    border: none;
}
.btn-danger:hover {
    background: linear-gradient(135deg, #c53030 0%, #9b2c2c 100%);
    color: #fff;
}

/* 表格 */
.table-container {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border: 1px solid #e4e7ed;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table thead {
    background: #f5f7fa;
}

.data-table th {
    font-family: 'Noto Sans SC', 'Source Han Sans CN', '思源黑体', sans-serif;
    padding: 14px 16px;
    text-align: left;
    font-weight: 600;
    color: #4a5568;
    font-size: 14px;
    border-bottom: 1px solid #e8eaed;
    background: #f8f9fa;
}

.data-table td {
    font-family: 'Noto Sans SC', 'Source Han Sans CN', '思源黑体', sans-serif;
    padding: 14px 16px;
    border-bottom: 1px solid #e8eaed;
    font-size: 14px;
    color: #4a5568;
    font-weight: 400;
}

.data-table tbody tr:hover {
    background: #f8f9fa;
}

.data-table .loading {
    text-align: center;
    color: #718096;
    padding: 30px;
    font-family: 'Noto Sans SC', 'Source Han Sans CN', '思源黑体', sans-serif;
}

/* 状态标签 */
.status-badge {
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 500;
}

.status-active {
    background: #f0f9ff;
    color: #67c23a;
}

.status-disabled {
    background: #fef0f0;
    color: #f56c6c;
}

.status-inactive {
    background: #fdf6ec;
    color: #e6a23c;
}

.status-banned {
    background: #fef0f0;
    color: #f56c6c;
}

.status-select {
    padding: 6px 10px;
    border: 1px solid #dcdfe6;
    border-radius: 4px;
    font-size: 13px;
    color: #606266;
    background: white;
    cursor: pointer;
    transition: border-color 0.3s;
}

.status-select:hover {
    border-color: #409eff;
}

.status-select:focus {
    outline: none;
    border-color: #409eff;
}

.btn-small {
    padding: 8px 16px;
    font-size: 13px;
    margin-right: 5px;
    font-family: 'Noto Sans SC', 'Source Han Sans CN', '思源黑体', sans-serif;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.btn-warning {
    background: #ed8936;
    color: white;
    box-shadow: 0 2px 4px rgba(237, 137, 54, 0.2);
}

.btn-warning:hover {
    background: #dd6b20;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(237, 137, 54, 0.3);
}

.btn-info {
    background: #4299e1;
    color: white;
    box-shadow: 0 2px 4px rgba(66, 153, 225, 0.2);
}

.btn-info:hover {
    background: #3182ce;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(66, 153, 225, 0.3);
}

/* 财务板块专用彩色按钮（参考千川顶部功能按钮配色） */
.btn-finance-primary {
    background: linear-gradient(135deg, #1677ff 0%, #4096ff 100%);
    color: #ffffff;
    border: none;
}
.btn-finance-green {
    background: linear-gradient(135deg, #52c41a 0%, #73d13d 100%);
    color: #ffffff;
    border: none;
}
.btn-finance-orange {
    background: linear-gradient(135deg, #ff9500 0%, #ff6b00 100%);
    color: #ffffff;
    border: none;
}
.btn-finance-purple {
    background: linear-gradient(135deg, #722ed1 0%, #9254de 100%);
    color: #ffffff;
    border: none;
}
.btn-finance-cyan {
    background: linear-gradient(135deg, #0891b2 0%, #22d3ee 100%);
    color: #ffffff;
    border: none;
}
.btn-finance-teal {
    background: linear-gradient(135deg, #14b8a6 0%, #2dd4bf 100%);
    color: #ffffff;
    border: none;
}
.btn-finance-primary:hover,
.btn-finance-green:hover,
.btn-finance-orange:hover,
.btn-finance-purple:hover,
.btn-finance-cyan:hover,
.btn-finance-teal:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.18);
}

/* ==================== 搜索框和筛选器 ==================== */
.search-box {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}

.search-box .form-control {
    width: 250px;
    padding: 8px 12px;
    border: 1px solid #e8eaed;
    border-radius: 6px;
    font-size: 14px;
}

.date-filter {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}

.date-filter .form-control {
    padding: 8px 12px;
    border: 1px solid #e8eaed;
    border-radius: 6px;
    font-size: 14px;
}

.date-filter span {
    color: #666;
    font-size: 14px;
}

/* ==================== 管理员板块卡片 ==================== */
.admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.admin-card {
    background: white;
    border-radius: 10px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border: 1px solid #e4e7ed;
    transition: all 0.3s ease;
    text-align: center;
    cursor: pointer;
}

.admin-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    border-color: #cbd5e0;
}

.admin-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.admin-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 8px;
}

.admin-card p {
    font-size: 14px;
    color: #718096;
    margin-bottom: 16px;
    line-height: 1.5;
}

.admin-card .btn {
    width: 100%;
}

/* 用户模块权限勾选表 */
.perm-matrix {
    overflow-x: auto;
    max-height: 60vh;
}
.perm-table th,
.perm-table td {
    white-space: nowrap;
    vertical-align: middle;
}
.perm-check {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    cursor: pointer;
    user-select: none;
}
.perm-na {
    color: #a0aec0;
    text-align: center;
}

/* ==================== 模态框样式（优化版） ==================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    animation: modalFadeIn 0.2s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-content {
    background: #ffffff;
    border-radius: 16px;
    width: 90%;
    max-width: 860px;
    max-height: 90vh;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    padding: 24px 28px;
    border-bottom: 1px solid #e8eaed;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.modal-header h3 {
    font-family: 'Noto Sans SC', 'Source Han Sans CN', '思源黑体', sans-serif;
    font-size: 20px;
    font-weight: 600;
    color: #1a202c;
    margin: 0;
    letter-spacing: 0.3px;
}

.modal-close {
    background: #f0f2f5;
    border: none;
    font-size: 22px;
    color: #4a5568;
    cursor: pointer;
    padding: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.2s ease;
    font-weight: 300;
    line-height: 1;
}

.modal-close:hover {
    background: #e2e8f0;
    color: #1a202c;
    transform: rotate(90deg);
}

.modal-body {
    padding: 28px;
    overflow-y: auto;
    flex: 1;
}

.modal-footer {
    padding: 20px 28px;
    border-top: 1px solid #e8eaed;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    background: #fafbfc;
}

.form-group {
    margin-bottom: 24px;
}

.form-group:last-child {
    margin-bottom: 0;
}

.form-group label {
    display: block;
    font-family: 'Noto Sans SC', 'Source Han Sans CN', '思源黑体', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 10px;
    letter-spacing: 0.2px;
}

.form-group small {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: #718096;
    line-height: 1.4;
}

.platform-select {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 8px;
}

.platform-btn {
    padding: 14px 24px;
    border: 2px solid #e4e7ed;
    border-radius: 10px;
    background: #ffffff;
    color: #4a5568;
    font-family: 'Noto Sans SC', 'Source Han Sans CN', '思源黑体', sans-serif;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.platform-btn:hover {
    border-color: #4a90e2;
    color: #4a90e2;
    background: #f0f7ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(74, 144, 226, 0.15);
}

.platform-btn.selected {
    border-color: #4a90e2;
    background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.3);
    transform: translateY(-2px);
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e4e7ed;
    border-radius: 8px;
    font-size: 14px;
    font-family: 'Noto Sans SC', 'Source Han Sans CN', '思源黑体', sans-serif;
    transition: all 0.2s ease;
    background: #ffffff;
    color: #1a202c;
}

.form-control:hover {
    border-color: #cbd5e0;
}

.form-control:focus {
    outline: none;
    border-color: #4a90e2;
    box-shadow: 0 0 0 4px rgba(74, 144, 226, 0.1);
    background: #ffffff;
}

.form-control::placeholder {
    color: #a0aec0;
}

.form-control select {
    cursor: pointer;
}

.form-group small {
    display: block;
    margin-top: 4px;
}

.modal-body {
    padding: 24px;
}

.modal-body .form-group:last-child {
    margin-bottom: 0;
}

/* ==================== 认证页面样式 ==================== */
.auth-page {
    min-height: 100vh;
    overflow: hidden;
}

.auth-wrapper {
    display: flex;
    min-height: 100vh;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 50%, #1e3c72 100%);
    position: relative;
}

.auth-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

/* 左侧内容区 */
.auth-left {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    position: relative;
    z-index: 1;
}

.auth-left-content {
    max-width: 500px;
    width: 100%;
}

.auth-title {
    font-size: 42px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.3;
    margin-bottom: 60px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 0.8s ease-out;
}

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

/* 右侧表单区 */
.auth-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    position: relative;
    z-index: 1;
}

.auth-form-container {
    width: 100%;
    max-width: 480px;
}

.auth-form-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 50px 40px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: fadeInRight 0.8s ease-out;
}

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

.form-title {
    font-size: 32px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 40px;
    text-align: center;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-group {
    position: relative;
}

.form-label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 10px;
}

.label-icon {
    font-size: 16px;
}

.required {
    color: #ff6b6b;
    margin-left: 2px;
}

.xuanpin-highlight {
    font-weight: 600;
    color: #333;
}

.form-input,
.form-select {
    width: 100%;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    color: #ffffff;
    font-size: 15px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.form-input:focus,
.form-select:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.1);
}

.form-select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23ffffff' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

.form-select option {
    background: #1e3c72;
    color: #ffffff;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: -8px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkbox-custom {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.1);
    position: relative;
    transition: all 0.3s ease;
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.6);
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #ffffff;
    font-size: 12px;
    font-weight: bold;
}

.checkbox-text {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
}

.forgot-link {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.forgot-link:hover {
    color: #ffffff;
    text-decoration: underline;
}

.error-message,
.success-message {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    display: none;
    animation: slideDown 0.3s ease-out;
}

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

.error-message.show,
.success-message.show {
    display: block;
}

.error-message {
    background: #fff1f0;
    color: #000000;
    border: 1px solid #ffa39e;
    backdrop-filter: blur(10px);
    font-size: 14px;
    font-weight: 500;
}

.success-message {
    background: rgba(76, 175, 80, 0.2);
    color: #e8f5e9;
    border: 1px solid rgba(76, 175, 80, 0.4);
    backdrop-filter: blur(10px);
}

.btn-login {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    margin-top: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-login:hover:not(:disabled) {
    background: linear-gradient(135deg, #2a5298 0%, #3d6bb3 100%);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.btn-login:active:not(:disabled) {
    transform: translateY(0);
}

.btn-login:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.auth-links {
    text-align: center;
    margin-top: 24px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
}

.link-register {
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    margin-left: 8px;
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
}

.link-register:hover {
    border-bottom-color: #ffffff;
}

/* 响应式设计 */
@media (max-width: 968px) {
    .auth-wrapper {
        flex-direction: column;
    }

    .auth-left {
        padding: 30px 20px;
        min-height: 40vh;
    }

    .auth-title {
        font-size: 32px;
        margin-bottom: 30px;
    }

    .auth-right {
        padding: 20px;
        flex: 1;
    }

    .auth-form-card {
        padding: 40px 30px;
    }

    .form-title {
        font-size: 28px;
        margin-bottom: 30px;
    }
}

/* ==================== 搜索框和筛选器 ==================== */
.search-box {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}

.search-box .form-control {
    width: 250px;
    padding: 8px 12px;
    border: 1px solid #e8eaed;
    border-radius: 6px;
    font-size: 14px;
}

.date-filter {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}

.date-filter .form-control {
    padding: 8px 12px;
    border: 1px solid #e8eaed;
    border-radius: 6px;
    font-size: 14px;
}

.date-filter span {
    color: #666;
    font-size: 14px;
}

/* ==================== 管理员板块卡片 ==================== */
.admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.admin-card {
    background: white;
    border-radius: 10px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border: 1px solid #e4e7ed;
    transition: all 0.3s ease;
    text-align: center;
    cursor: pointer;
}

.admin-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    border-color: #cbd5e0;
}

.admin-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.admin-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 8px;
}

.admin-card p {
    font-size: 14px;
    color: #718096;
    margin-bottom: 16px;
    line-height: 1.5;
}

.admin-card .btn {
    width: 100%;
}

@media (max-width: 640px) {
    .auth-title {
        font-size: 24px;
    }

    .auth-form-card {
        padding: 30px 20px;
    }

    .form-title {
        font-size: 24px;
    }
}

@media (max-width: 768px) {
    .sidebar {
        width: 60px;
    }

    .nav-text {
        display: none;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }
}

/* ==================== 店铺经营数据页面样式 ==================== */

/* 工具栏 */
.operation-toolbar {
    background: white;
    border-radius: 8px;
    padding: 16px 20px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border: 1px solid #e4e7ed;
}

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

.toolbar-icon {
    font-size: 20px;
}

.toolbar-label {
    font-size: 14px;
    color: #4a5568;
    font-weight: 500;
}

.date-input {
    width: 140px !important;
    padding: 8px 12px !important;
}

.date-separator {
    color: #718096;
    font-size: 14px;
}

.radio-label {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    color: #4a5568;
    cursor: pointer;
    margin-left: 8px;
}

.radio-label input[type="radio"] {
    cursor: pointer;
}

.toolbar-right {
    display: flex;
    gap: 10px;
}

/* 五个统计卡片 - 仿照原图 */
.operation-stats-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}

@media (max-width: 1200px) {
    .operation-stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .operation-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .operation-stats-grid {
        grid-template-columns: 1fr;
    }
}

.op-stat-card {
    border-radius: 8px;
    padding: 20px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    min-height: 130px;
}

.op-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* 销售额卡片 - 橙色 */
.sales-card {
    background: linear-gradient(135deg, #ff9500 0%, #ff6b00 100%);
    color: white;
}

/* 已确认卡片 - 黄色 */
.confirmed-card {
    background: linear-gradient(135deg, #ffd93d 0%, #f5c800 100%);
    color: #333;
}

/* 尚未确认卡片 - 绿色 */
.pending-card {
    background: linear-gradient(135deg, #6dd5ed 0%, #2193b0 100%);
    color: white;
}

/* 退款额度卡片 - 灰色 */
.refund-card {
    background: linear-gradient(135deg, #bdc3c7 0%, #95a5a6 100%);
    color: #333;
}

/* 推广费卡片 - 红色 */
.promotion-card {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
    color: white;
}

.op-stat-icon {
    font-size: 36px;
    opacity: 0.9;
}

.op-stat-content {
    flex: 1;
}

.op-stat-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    opacity: 0.95;
}

.op-stat-value {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 6px;
    letter-spacing: -0.5px;
}

.op-stat-sub {
    font-size: 13px;
    opacity: 0.9;
    margin-bottom: 4px;
}

.op-stat-date {
    font-size: 12px;
    opacity: 0.8;
}

/* 图表容器 */
.chart-container {
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border: 1px solid #e4e7ed;
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e8eaed;
}

.chart-legend {
    display: flex;
    gap: 20px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #4a5568;
}

.legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.legend-dot.blue {
    background: #4299e1;
}

.legend-dot.red {
    background: #e53e3e;
}

.chart-actions {
    display: flex;
    gap: 8px;
}

.chart-btn {
    background: #f5f7fa;
    border: 1px solid #e4e7ed;
    border-radius: 6px;
    padding: 6px 10px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
}

.chart-btn:hover {
    background: #e2e8f0;
    border-color: #cbd5e0;
}

.chart-area {
    height: 300px;
    position: relative;
}

.chart-area canvas {
    width: 100% !important;
    height: 100% !important;
}

.chart-toggle {
    text-align: center;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e8eaed;
}

.chart-toggle a {
    color: #4299e1;
    text-decoration: none;
    font-size: 14px;
}

.chart-toggle a:hover {
    text-decoration: underline;
}

/* 数据切换标签 */
.data-tabs {
    background: white;
    border-radius: 8px 8px 0 0;
    padding: 0;
    display: flex;
    align-items: center;
    border: 1px solid #e4e7ed;
    border-bottom: none;
    overflow: hidden;
}

.data-tab {
    padding: 14px 24px;
    background: #f5f7fa;
    border: none;
    border-right: 1px solid #e4e7ed;
    font-size: 14px;
    color: #4a5568;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Noto Sans SC', sans-serif;
}

.data-tab:hover {
    background: #e8eaed;
}

.data-tab.active {
    background: #4299e1;
    color: white;
}

.data-tab-info {
    margin-left: auto;
    padding: 14px 24px;
    font-size: 14px;
    color: #4a5568;
}

.data-tab-info strong {
    color: #2b6cb0;
}

/* 经营数据表格 */
.operation-table {
    border-radius: 0 0 8px 8px;
    border-top: none;
    overflow-x: auto;
}

.operation-table .data-table {
    min-width: 1800px;
}

.operation-table .data-table th {
    background: #f0f4f8;
    font-size: 13px;
    padding: 12px 8px;
    white-space: nowrap;
    position: sticky;
    top: 0;
    z-index: 1;
}

.operation-table .data-table th:first-child {
    position: sticky;
    left: 0;
    z-index: 2;
    background: #e8ecf0;
}

.operation-table .data-table td {
    font-size: 13px;
    padding: 12px 8px;
    white-space: nowrap;
}

.operation-table .data-table td:first-child {
    position: sticky;
    left: 0;
    background: white;
    z-index: 1;
    font-weight: 600;
}

.operation-table .data-table tbody tr:hover td:first-child {
    background: #f8f9fa;
}

.operation-table .data-table td.positive {
    color: #38a169;
    font-weight: 600;
}

.operation-table .data-table td.negative {
    color: #e53e3e;
}

.operation-table .data-table td.highlight {
    font-weight: 600;
    color: #2b6cb0;
}

/* 查看按钮 */
.btn-view {
    padding: 4px 12px;
    font-size: 12px;
    background: #4299e1;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-view:hover {
    background: #3182ce;
}

/* 加载状态 */
.operation-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px;
    color: #718096;
}

.operation-loading .spinner {
    width: 30px;
    height: 30px;
    border: 3px solid #e4e7ed;
    border-top-color: #4299e1;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 15px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* API配置弹窗 */
.api-config-modal .modal-body {
    padding: 24px;
}

.api-config-form .form-group {
    margin-bottom: 20px;
}

.api-config-form .form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2d3748;
}

.api-config-form .form-group input,
.api-config-form .form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e4e7ed;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.2s ease;
}

.api-config-form .form-group input:focus,
.api-config-form .form-group textarea:focus {
    outline: none;
    border-color: #4299e1;
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.1);
}

.api-config-form .form-group textarea {
    min-height: 100px;
    resize: vertical;
    font-family: monospace;
}

.api-config-form .form-hint {
    font-size: 12px;
    color: #718096;
    margin-top: 6px;
}

/* ========== 内部智能体合集页面样式（深色满铺，无白边） ========== */
.content-area:has(#page-ai-agent.active) {
    padding: 0;
    background: #0a0a0a;
    overflow: auto;
}

#page-ai-agent.active {
    margin: 0;
    min-height: calc(100vh - 64px);
    background: #0a0a0a;
}

.ai-agent-matrix-container {
    min-height: calc(100vh - 64px);
    width: 100%;
    box-sizing: border-box;
    padding: 56px 40px 48px;
    background: #0a0a0a;
    color: #ffffff;
}

/* 页面标题区域 */
.ai-matrix-header {
    text-align: center;
    margin-bottom: 60px;
}

.ai-matrix-title {
    font-size: 48px;
    font-weight: 700;
    background: linear-gradient(135deg, #a855f7 0%, #3b82f6 50%, #06b6d4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.ai-matrix-subtitle {
    font-size: 18px;
    color: #9ca3af;
    margin: 0;
}

/* 探索工具区域 */
.ai-explore-section {
    text-align: center;
    margin-bottom: 50px;
}

.ai-explore-text {
    font-size: 16px;
    color: #6b7280;
    margin-bottom: 12px;
}

.ai-explore-arrow {
    font-size: 24px;
    color: #6b7280;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* 工具卡片网格 */
.ai-agent-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    max-width: 1400px;
    margin: 0 auto;
}

/* 卡片样式 */
.ai-agent-card {
    background: #1a1a1a;
    border-radius: 16px;
    padding: 28px 24px;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid #2a2a2a;
    min-height: 220px;
    display: flex;
    flex-direction: column;
}

.ai-agent-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(168, 85, 247, 0.2);
    border-color: #a855f7;
    background: #1f1f1f;
}

.ai-agent-card.coming-soon {
    opacity: 0.7;
}

/* 卡片图标 */
.ai-card-icon {
    font-size: 48px;
    margin-bottom: 16px;
    display: inline-block;
}

/* 卡片标签 */
.ai-card-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ai-card-badge.vip {
    background: #6b21a8;
    color: #ffffff;
}

.ai-card-badge.free {
    background: #10b981;
    color: #ffffff;
}

.ai-card-badge.soon {
    background: #374151;
    color: #9ca3af;
}

/* 卡片标题 */
.ai-card-title {
    font-size: 20px;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 12px 0;
    line-height: 1.4;
}

/* 卡片描述 */
.ai-card-desc {
    font-size: 14px;
    color: #9ca3af;
    line-height: 1.6;
    margin: 0;
    flex-grow: 1;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .ai-agent-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    }
}

@media (max-width: 768px) {
    .ai-agent-matrix-container {
        padding: 40px 20px;
    }
    
    .ai-matrix-title {
        font-size: 36px;
    }
    
    .ai-agent-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 16px;
    }
    
    .ai-agent-card {
        padding: 20px 16px;
        min-height: 200px;
    }
}

.coming-badge {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.ai-coming-soon p {
    color: #744210;
    font-size: 14px;
    margin: 0;
}

/* AI页面响应式 */
@media (max-width: 768px) {
    .ai-agent-preview {
        padding: 30px 25px;
        margin: 0 10px;
    }
    
    .ai-preview-icon {
        font-size: 56px;
    }
    
    .ai-agent-preview h3 {
        font-size: 22px;
    }
    
    .ai-feature-list li {
        font-size: 14px;
        padding: 10px 14px;
    }
}

/* ========== 素材内容去暗水印（智能体功能页，浅色工作台） ========== */
.content-area:has(#page-watermark.active) {
    padding: 0;
    background: #f3f4f6;
    overflow: hidden;
}

#page-watermark.active {
    height: calc(100vh - 64px);
    margin: 0;
}

.dwm-shell {
    display: flex;
    height: calc(100vh - 64px);
    min-height: 560px;
    background: #f3f4f6;
    color: #111827;
    font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

.dwm-sidebar {
    width: 232px;
    flex-shrink: 0;
    background: #ffffff;
    border-right: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    padding: 18px 14px 14px;
}

.dwm-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 4px 8px 18px;
}

.dwm-logo {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(145deg, #4f46e5, #2563eb);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.dwm-brand-title {
    font-size: 15px;
    font-weight: 700;
    color: #111827;
    line-height: 1.3;
}

.dwm-brand-sub {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 2px;
}

.dwm-nav {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.dwm-nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    border: none;
    background: transparent;
    color: #374151;
    font-size: 14px;
    font-weight: 500;
    padding: 11px 12px;
    border-radius: 10px;
    cursor: pointer;
    text-align: left;
    transition: background 0.15s ease, color 0.15s ease;
}

.dwm-nav-item:hover {
    background: #f3f4f6;
}

.dwm-nav-item.active {
    background: #4f46e5;
    color: #ffffff;
}

.dwm-nav-item.dwm-nav-back {
    margin-top: 8px;
    color: #6b7280;
}

.dwm-nav-ico {
    display: inline-flex;
    width: 20px;
    justify-content: center;
}

.dwm-sidebar-footer {
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid #f3f4f6;
}

.dwm-user {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 4px 2px;
}

.dwm-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #e0e7ff;
    color: #3730a3;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    flex-shrink: 0;
}

.dwm-user-meta {
    flex: 1;
    min-width: 0;
}

.dwm-username {
    font-size: 13px;
    font-weight: 600;
    color: #111827;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dwm-realname {
    font-size: 12px;
    color: #6b7280;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dwm-logout {
    border: none;
    background: transparent;
    color: #ef4444;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    padding: 4px 2px;
    flex-shrink: 0;
}

.dwm-logout:hover {
    color: #dc2626;
}

.dwm-main {
    flex: 1;
    min-width: 0;
    padding: 22px 24px;
    overflow: auto;
}

/* 左下角：用户旁剩余次数 + 查询 */
.dwm-quota-side {
    margin-bottom: 10px;
    padding: 10px 10px 12px;
    border-radius: 10px;
    background: #eef2ff;
    border: 1px solid #e0e7ff;
}

.dwm-quota-side-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
}

.dwm-quota-side-label {
    font-size: 12px;
    color: #6366f1;
    font-weight: 600;
}

.dwm-quota-side-num {
    font-size: 18px;
    color: #312e81;
    font-weight: 800;
}

.dwm-quota-side-text {
    margin-top: 4px;
    font-size: 12px;
    color: #4b5563;
    line-height: 1.35;
}

.dwm-quota-side-btn {
    margin-top: 8px;
    width: 100%;
    height: 32px;
    border: none;
    border-radius: 8px;
    background: #4f46e5;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.dwm-quota-side-btn:hover {
    background: #4338ca;
}

.dwm-quota-side-btn:disabled {
    opacity: 0.7;
    cursor: wait;
}

.dwm-panel {
    display: none;
}

.dwm-panel.active {
    display: block;
}

.dwm-input-card {
    display: flex;
    align-items: stretch;
    gap: 12px;
    background: #ffffff;
    border-radius: 14px;
    padding: 14px;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 4px 16px rgba(16, 24, 40, 0.04);
    border: 1px solid #eef2f7;
}

.dwm-input-wrap {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 0 12px;
    height: 48px;
}

.dwm-input-ico {
    color: #9ca3af;
    display: inline-flex;
}

.dwm-url-input {
    flex: 1;
    min-width: 0;
    border: none;
    outline: none;
    background: transparent;
    font-size: 14px;
    color: #111827;
    height: 100%;
}

.dwm-url-input::placeholder {
    color: #9ca3af;
}

.dwm-paste-btn {
    border: none;
    background: transparent;
    color: #4f46e5;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    padding: 4px 2px;
    flex-shrink: 0;
}

.dwm-paste-btn:hover {
    color: #4338ca;
}

.dwm-submit-btn {
    height: 48px;
    min-width: 112px;
    border: none;
    border-radius: 10px;
    background: #4f46e5;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0 18px;
    transition: background 0.15s ease, transform 0.15s ease;
}

.dwm-submit-btn:hover {
    background: #4338ca;
}

.dwm-submit-btn:active {
    transform: translateY(1px);
}

.dwm-submit-ico {
    display: inline-flex;
    width: 22px;
    height: 22px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.18);
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 800;
}

.dwm-result-card {
    margin-top: 16px;
    min-height: calc(100vh - 220px);
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid #eef2f7;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 4px 16px rgba(16, 24, 40, 0.04);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px;
}

.dwm-empty {
    text-align: center;
    color: #9ca3af;
}

.dwm-empty-ico {
    margin: 0 auto 12px;
    color: #d1d5db;
}

.dwm-empty-text {
    margin: 0;
    font-size: 14px;
}

.dwm-result-body {
    width: 100%;
    max-width: 860px;
}

.dwm-result-preview {
    background: #f9fafb;
    border: 1px dashed #d1d5db;
    border-radius: 12px;
    padding: 20px;
}

.dwm-result-preview h4 {
    margin: 0 0 8px;
    font-size: 16px;
    color: #111827;
}

.dwm-result-preview p {
    margin: 0;
    font-size: 13px;
    color: #6b7280;
    line-height: 1.6;
    word-break: break-all;
}

.dwm-loading {
    text-align: center;
    color: #6b7280;
    padding: 40px 16px;
}

.dwm-loading-spin {
    width: 36px;
    height: 36px;
    margin: 0 auto 14px;
    border-radius: 50%;
    border: 3px solid #e5e7eb;
    border-top-color: #4f46e5;
    animation: dwm-spin 0.8s linear infinite;
}

@keyframes dwm-spin {
    to { transform: rotate(360deg); }
}

.dwm-result-fail {
    max-width: 640px;
    margin: 0 auto;
    text-align: left;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 12px;
    padding: 20px 22px;
}

.dwm-result-fail h4 {
    margin: 0 0 8px;
    color: #b91c1c;
    font-size: 16px;
}

.dwm-result-fail p {
    margin: 0;
    color: #7f1d1d;
    font-size: 14px;
    line-height: 1.55;
    word-break: break-all;
}

.dwm-result-sub {
    margin-top: 10px !important;
    color: #9ca3af !important;
    font-size: 12px !important;
}

.dwm-result-card-inner {
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 22px;
    align-items: start;
}

.dwm-result-media {
    position: relative;
}

.dwm-cover {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 12px;
    background: #f3f4f6;
    display: block;
}

.dwm-result-badge {
    position: absolute;
    left: 10px;
    top: 10px;
    background: rgba(16, 185, 129, 0.95);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 999px;
}

.dwm-cache-tip {
    margin: 0 0 12px;
    padding: 10px 12px;
    border-radius: 8px;
    background: #fff7ed;
    border: 1px solid #fdba74;
    color: #9a3412;
    font-size: 13px;
    line-height: 1.5;
}

.dwm-batch-cache-url {
    word-break: break-all;
    color: #4b5563;
    font-size: 12px;
}

.dwm-cover-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    font-size: 13px;
    border: 1px dashed #d1d5db;
}

.dwm-result-title {
    margin: 0 0 14px;
    font-size: 20px;
    line-height: 1.35;
    color: #111827;
    font-weight: 700;
}

.dwm-meta-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 16px;
    margin-bottom: 16px;
}

.dwm-meta-grid > div {
    background: #f9fafb;
    border: 1px solid #eef2f7;
    border-radius: 10px;
    padding: 10px 12px;
}

.dwm-meta-k {
    display: block;
    font-size: 12px;
    color: #9ca3af;
    margin-bottom: 4px;
}

.dwm-meta-v {
    display: block;
    font-size: 14px;
    color: #111827;
    font-weight: 600;
    word-break: break-all;
}

.dwm-link-box {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #fff;
    padding: 12px 14px;
    margin-bottom: 14px;
}

.dwm-link-label {
    font-size: 12px;
    color: #9ca3af;
    margin-bottom: 6px;
}

.dwm-link-value {
    font-size: 13px;
    color: #374151;
    word-break: break-all;
    line-height: 1.5;
}

.dwm-result-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

/* 行内下载进度（解析结果 / 批量 / 操作记录，非弹窗） */
.dwm-dl-progress {
    margin: 8px 0 12px;
    padding: 10px 12px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
}

.dwm-dl-bar {
    height: 8px;
    background: #e5e7eb;
    border-radius: 999px;
    overflow: hidden;
}

.dwm-dl-bar > i {
    display: block;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, #6366f1, #4f46e5);
    border-radius: 999px;
    transition: width 0.15s ease;
}

.dwm-dl-bar > i.dwm-dl-indeterminate {
    width: 35% !important;
    animation: dwm-dl-slide 1s ease-in-out infinite;
}

@keyframes dwm-dl-slide {
    0% { margin-left: 0; }
    50% { margin-left: 65%; }
    100% { margin-left: 0; }
}

.dwm-dl-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
    font-size: 12px;
    color: #6b7280;
}

.dwm-dl-meta [data-dwm-pct] {
    font-weight: 700;
    color: #4f46e5;
    min-width: 36px;
}

.dwm-dl-meta [data-dwm-st].dwm-dl-done {
    color: #047857;
    font-weight: 600;
}

.dwm-dl-cancel {
    margin-left: auto;
    border: none;
    background: transparent;
    color: #ef4444;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
}

.dwm-dl-cancel:hover {
    color: #dc2626;
}

.dwm-batch-step {
    margin-top: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1d4ed8;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.45;
    word-break: break-all;
}

.dwm-batch-idx {
    flex-shrink: 0;
    font-size: 12px;
    font-weight: 700;
    color: #4f46e5;
    background: #eef2ff;
    border-radius: 999px;
    padding: 2px 8px;
}

.dwm-batch-item-running {
    border-color: #93c5fd !important;
    background: #f0f9ff !important;
}

.dwm-status-pending {
    background: #eff6ff;
    color: #1d4ed8;
}

.dwm-batch-result-host {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid #eef2f7;
}

.dwm-batch-result-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.dwm-batch-result-title {
    margin: 0;
    font-size: 15px;
    color: #111827;
}

.dwm-batch-toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.dwm-batch-select-all {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #374151;
    cursor: pointer;
    user-select: none;
}

.dwm-batch-check,
.dwm-batch-select-all input {
    width: 16px;
    height: 16px;
    margin: 0;
    flex-shrink: 0;
    cursor: pointer;
    accent-color: #2563eb;
}

.dwm-batch-check-placeholder {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.dwm-batch-result-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.dwm-batch-item {
    border: 1px solid #eef2f7;
    border-radius: 10px;
    padding: 12px 14px;
    background: #fafafa;
}

.dwm-batch-item-head {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.dwm-batch-item-title {
    flex: 1;
    min-width: 160px;
    font-size: 14px;
    font-weight: 600;
    color: #111827;
    line-height: 1.4;
    word-break: break-all;
}

.dwm-batch-item-sub {
    margin-top: 6px;
    font-size: 12px;
    color: #9ca3af;
    word-break: break-all;
}

.dwm-logs-table .dwm-dl-progress {
    margin-top: 8px;
    margin-bottom: 0;
}

.dwm-log-dl-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.dwm-action-link {
    text-decoration: none;
    box-sizing: border-box;
}

a.dwm-submit-btn.dwm-action-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    min-width: 112px;
    padding: 0 16px;
    font-size: 14px;
}

a.dwm-ghost-btn.dwm-action-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.dwm-result-card {
    align-items: stretch;
}

.dwm-result-body {
    width: 100%;
}

@media (max-width: 900px) {
    .dwm-result-card-inner {
        grid-template-columns: 1fr;
    }

    .dwm-cover {
        max-width: 240px;
        margin: 0 auto;
    }

    .dwm-meta-grid {
        grid-template-columns: 1fr;
    }
}

.dwm-batch-card {
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid #eef2f7;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 4px 16px rgba(16, 24, 40, 0.04);
    padding: 22px;
    max-width: 920px;
}

.dwm-batch-title {
    margin: 0 0 8px;
    font-size: 18px;
    color: #111827;
}

.dwm-batch-desc {
    margin: 0 0 14px;
    font-size: 13px;
    color: #6b7280;
    line-height: 1.6;
}

.dwm-batch-input {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 14px;
    resize: vertical;
    min-height: 220px;
    outline: none;
    font-family: inherit;
    background: #f9fafb;
}

.dwm-batch-input:focus {
    border-color: #a5b4fc;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12);
}

.dwm-batch-actions {
    margin-top: 14px;
}

.dwm-frontend-tip {
    margin: 12px 0 0;
    font-size: 12px;
    color: #9ca3af;
}

.dwm-logs-card {
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid #eef2f7;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 4px 16px rgba(16, 24, 40, 0.04);
    padding: 22px;
}

.dwm-logs-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 4px;
}

.dwm-logs-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.dwm-ghost-btn {
    height: 36px;
    padding: 0 12px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    background: #fff;
    color: #374151;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.dwm-ghost-btn:hover {
    background: #f9fafb;
}

.dwm-ghost-btn.dwm-ghost-danger {
    color: #dc2626;
    border-color: #fecaca;
}

.dwm-ghost-btn.dwm-ghost-danger:hover {
    background: #fef2f2;
}

.dwm-logs-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 14px 0 16px;
}

.dwm-filter-input,
.dwm-filter-select {
    height: 38px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 0 12px;
    font-size: 13px;
    background: #f9fafb;
    color: #111827;
    outline: none;
}

.dwm-filter-input {
    flex: 1 1 220px;
    min-width: 180px;
}

.dwm-filter-select {
    min-width: 120px;
}

.dwm-filter-input:focus,
.dwm-filter-select:focus {
    border-color: #a5b4fc;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12);
}

.dwm-submit-sm {
    height: 38px;
    min-width: 88px;
    font-size: 13px;
}

.dwm-logs-table-wrap {
    overflow: auto;
    border: 1px solid #eef2f7;
    border-radius: 10px;
}

.dwm-logs-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 760px;
    background: #fff;
}

.dwm-logs-table th,
.dwm-logs-table td {
    padding: 12px 14px;
    text-align: left;
    font-size: 13px;
    border-bottom: 1px solid #f3f4f6;
    vertical-align: top;
}

.dwm-logs-table th {
    background: #f9fafb;
    color: #6b7280;
    font-weight: 600;
    white-space: nowrap;
}

.dwm-logs-table td {
    color: #111827;
}

.dwm-logs-table tr:last-child td {
    border-bottom: none;
}

.dwm-logs-empty {
    text-align: center !important;
    color: #9ca3af !important;
    padding: 36px 14px !important;
}

.dwm-log-url {
    max-width: 360px;
    word-break: break-all;
    color: #374151;
    line-height: 1.45;
}

.dwm-status {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}

.dwm-status-pending {
    background: #fff7ed;
    color: #c2410c;
}

.dwm-status-success {
    background: #ecfdf5;
    color: #047857;
}

.dwm-status-failed {
    background: #fef2f2;
    color: #b91c1c;
}

@media (max-width: 900px) {
    .dwm-logs-header {
        flex-direction: column;
    }
}

@media (max-width: 900px) {
    .dwm-shell {
        flex-direction: column;
        height: auto;
        min-height: calc(100vh - 64px);
    }

    .dwm-sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #e5e7eb;
    }

    .dwm-nav {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .dwm-nav-item {
        flex: 1 1 140px;
    }

    .dwm-input-card {
        flex-direction: column;
    }

    .dwm-submit-btn {
        width: 100%;
    }

    .dwm-result-card {
        min-height: 320px;
    }
}

/* ========== 千川数据查询系统样式 - 严格对齐千川官方UI ========== */
/* 主色调 #1677FF，卡片背景 #FFFFFF，边框 #E5E7EB，文字主色 #333333，次要文字 #666666 */

.qc-page {
    padding: 0;
    background: #f5f7fa;
    min-height: calc(100vh - 64px);
    font-family: "Microsoft Yahei", -apple-system, BlinkMacSystemFont, sans-serif;
    position: relative;
}

/* 加载遮罩 */
.qc-loading-mask {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.8);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 100;
}

.qc-loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #e5e7eb;
    border-top-color: #1677ff;
    border-radius: 50%;
    animation: qcSpin 0.8s linear infinite;
}

@keyframes qcSpin {
    to { transform: rotate(360deg); }
}

.qc-loading-mask p {
    margin-top: 12px;
    color: #666;
    font-size: 14px;
}
.qc-init-overlay { z-index: 101; }
.qc-init-overlay .qc-init-text { font-size: 16px; font-weight: 600; color: #1677ff; }
.qc-init-overlay .qc-init-sub { font-size: 13px; color: #999; margin-top: 8px; }
/* 千川六个主板块（与店铺经营数据样式一致，横向一排无换行） */
.qc-main-cards {
    grid-template-columns: repeat(6, 1fr);
    margin: 0 24px 20px;
    gap: 12px;
    min-width: 0;
}
.qc-main-cards .op-stat-card {
    min-width: 0;
    flex: 1 1 0;
}
@media (max-width: 1400px) {
    .qc-main-cards { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
    .qc-main-cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .qc-main-cards { grid-template-columns: 1fr; }
}
.qc-card-spend { background: linear-gradient(135deg, #1677ff 0%, #4096ff 100%); color: white; }
.qc-card-sales { background: linear-gradient(135deg, #ff9500 0%, #ff6b00 100%); color: white; }
.qc-card-roi-pay { background: linear-gradient(135deg, #52c41a 0%, #73d13d 100%); color: white; }
.qc-card-roi-net { background: linear-gradient(135deg, #722ed1 0%, #9254de 100%); color: white; }
.qc-card-estimate-performance { background: linear-gradient(135deg, #0891b2 0%, #22d3ee 100%); color: white; }
.qc-card-estimate-commission { background: linear-gradient(135deg, #d97706 0%, #fbbf24 100%); color: #1f2937; }
/* 组织千川户筛选栏：选择千川户、订单时间 */
.qc-filter-item-inline { display: flex; align-items: center; gap: 8px; }
.qc-filter-label-sm { font-size: 13px; color: #666; white-space: nowrap; }
.qc-input-date-sm { width: 130px; padding: 6px 10px; font-size: 13px; border: 1px solid #e5e7eb; border-radius: 4px; }

/* 授权提示横幅 */
.qc-auth-banner {
    background: linear-gradient(135deg, #1677ff 0%, #4096ff 100%);
    padding: 16px 24px;
}

.qc-auth-banner.hidden {
    display: none;
}

.qc-auth-banner-inner {
    display: flex;
    align-items: center;
    gap: 16px;
    max-width: 1200px;
    margin: 0 auto;
}

.qc-auth-icon {
    font-size: 28px;
    background: rgba(255,255,255,0.2);
    padding: 10px 14px;
    border-radius: 8px;
}

.qc-auth-text {
    flex: 1;
    color: white;
}

.qc-auth-text strong {
    display: block;
    font-size: 16px;
    margin-bottom: 4px;
}

.qc-auth-text span {
    font-size: 13px;
    opacity: 0.9;
}

.qc-btn-auth {
    background: white;
    color: #1677ff;
    border: none;
    padding: 10px 24px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    transition: all 0.2s;
}

.qc-btn-auth:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* 页面标题区 */
.qc-page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    background: white;
    border-bottom: 1px solid #e5e7eb;
}

.qc-page-title {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.qc-header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.qc-auth-status {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: #f5f5f5;
    border-radius: 4px;
    font-size: 13px;
    color: #666;
}

.qc-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #faad14;
}

.qc-auth-status.authorized .qc-status-dot {
    background: #52c41a;
}

.qc-auth-status.unauthorized .qc-status-dot {
    background: #ff4d4f;
}

.qc-auth-status.validating .qc-status-dot {
    background: #1677ff;
    animation: qc-pulse 1s ease-in-out infinite;
}
@keyframes qc-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.qc-auth-expire-wrap {
    font-size: 13px;
    color: #666;
    margin-right: 8px;
}
.qc-auth-expire-val {
    font-weight: 500;
    color: #333;
}

/* 按钮样式 */
.qc-btn {
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
    font-weight: 500;
}

.qc-btn-primary {
    background: #1677ff;
    color: white;
}

.qc-btn-primary:hover {
    background: #4096ff;
}

.qc-btn-query {
    background: #1677ff;
    color: white;
    padding: 8px 24px;
}

.qc-btn-query:hover {
    background: #4096ff;
}

.qc-btn-outline {
    background: white;
    color: #333;
    border: 1px solid #d9d9d9;
}

.qc-btn-outline:hover {
    border-color: #1677ff;
    color: #1677ff;
}

/* 筛选栏 */
.qc-filter-bar {
    display: flex;
    align-items: flex-end;
    gap: 24px;
    padding: 16px 24px;
    background: white;
    border-bottom: 1px solid #e5e7eb;
    flex-wrap: wrap;
}

/* 自定义查询消耗业绩栏 */
.qc-consume-query-bar {
    margin-top: 0;
}
.qc-consume-query-bar .qc-btn { margin-bottom: 0; }
/* 按商品/按店铺单选项 */
.qc-query-dimension { display: flex; flex-direction: column; gap: 6px; }
.qc-radio-group { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.qc-radio-label { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; font-size: 14px; color: #333; }
.qc-radio-label input { margin: 0; }
/* 消耗业绩按钮按属性区分颜色（非白底） */
.qc-btn-custom { background: #1677ff; color: #fff; border: none; }
.qc-btn-custom:hover { background: #4096ff; color: #fff; }
.qc-btn-my-today { background: #52c41a; color: #fff; border: none; }
.qc-btn-my-today:hover { background: #73d13d; color: #fff; }
.qc-btn-my-yesterday { background: #fa8c16; color: #fff; border: none; }
.qc-btn-my-yesterday:hover { background: #ffa940; color: #fff; }
.qc-btn-all { background: #722ed1; color: #fff; border: none; }
.qc-btn-all:hover { background: #9254de; color: #fff; }
.qc-btn-add-member { background: #13c2c2; color: #fff; border: none; }
.qc-btn-add-member:hover { background: #36cfc9; color: #fff; }
/* 组织千川户管理按钮（底部区块） */
.qc-btn-org-outline { background: #f0f5ff; color: #1677ff; border: 1px solid #1677ff; }
.qc-btn-org-outline:hover { background: #e6f0ff; color: #1677ff; }
.qc-btn-org-primary { background: #1677ff; color: #fff; border: none; }
.qc-btn-org-primary:hover { background: #4096ff; color: #fff; }

/* 员工业绩查询标签区域 */
.qc-employee-tag-section .qc-table-wrapper { padding: 0 24px 20px; }
.qc-employee-tag-section .qc-table th,
.qc-employee-tag-section .qc-table td { padding: 10px 12px; }
.qc-employee-tag-section .qc-empty-td { text-align: center; color: #9ca3af; padding: 24px; }
.qc-employee-tag-section .qc-btn-sm { padding: 4px 10px; font-size: 12px; margin-right: 6px; }
.qc-employee-tag-section .qc-btn-edit { background: #1677ff; color: #fff; border: none; }
.qc-employee-tag-section .qc-btn-edit:hover { background: #4096ff; color: #fff; }
.qc-employee-tag-section .qc-btn-delete { background: #ff4d4f; color: #fff; border: none; }
.qc-employee-tag-section .qc-btn-delete:hover { background: #ff7875; color: #fff; }
.qc-modal-body .qc-form-group { margin-bottom: 16px; }
.qc-modal-body .qc-form-group:last-child { margin-bottom: 0; }

.qc-filter-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.qc-filter-label {
    font-size: 14px;
    color: #666;
}

.qc-select {
    padding: 8px 36px 8px 12px;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    font-size: 14px;
    background: white url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M2 4l4 4 4-4z'/%3E%3C/svg%3E") no-repeat right 12px center;
    appearance: none;
    cursor: pointer;
    min-width: 180px;
    color: #333;
}

.qc-select:focus {
    outline: none;
    border-color: #1677ff;
    box-shadow: 0 0 0 2px rgba(22,119,255,0.1);
}

.qc-date-inputs {
    display: flex;
    align-items: center;
    gap: 8px;
}

.qc-input-date {
    padding: 8px 12px;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    font-size: 14px;
    color: #333;
}

.qc-input-date:focus {
    outline: none;
    border-color: #1677ff;
}

.qc-date-sep {
    color: #999;
}

/* 数据卡片区 */
.qc-cards-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    padding: 20px 24px;
}

.qc-data-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 20px 24px;
    box-shadow: 0 2px 12px 0 rgba(0,0,0,0.05);
}

.qc-card-label {
    font-size: 14px;
    color: #666;
    margin-bottom: 12px;
}

.qc-card-value {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    margin-bottom: 8px;
    font-family: "Microsoft Yahei", -apple-system, monospace;
}

.qc-card-sub {
    font-size: 12px;
    color: #999;
}

/* 附加指标行 */
.qc-metrics-row {
    display: flex;
    gap: 24px;
    padding: 0 24px 20px;
    flex-wrap: wrap;
}

.qc-metric-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: white;
    padding: 12px 20px;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
}

.qc-metric-label {
    font-size: 14px;
    color: #666;
}

.qc-metric-val {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.qc-metric-val.qc-highlight {
    color: #1677ff;
    font-size: 18px;
}

/* 图表区域 */
.qc-chart-section {
    margin: 0 24px 20px;
    background: white;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 2px 12px 0 rgba(0,0,0,0.05);
}

.qc-section-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    border-bottom: 1px solid #e5e7eb;
}

.qc-section-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.qc-chart-legend {
    display: flex;
    gap: 16px;
}

.qc-legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #666;
    cursor: pointer;
}

.qc-legend-item input {
    accent-color: #1677ff;
}

.qc-chart-box {
    padding: 20px 24px;
    position: relative;
    min-height: 350px;
}

.qc-chart-empty {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #999;
    font-size: 14px;
}

/* 表格区域 */
.qc-table-section {
    margin: 0 24px 24px;
    background: white;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 2px 12px 0 rgba(0,0,0,0.05);
}

.qc-table-wrap {
    overflow-x: auto;
}

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

.qc-table th {
    background: #fafafa;
    padding: 14px 16px;
    text-align: left;
    font-weight: 500;
    color: #666;
    border-bottom: 1px solid #e5e7eb;
    white-space: nowrap;
}

.qc-table td {
    padding: 14px 16px;
    border-bottom: 1px solid #f0f0f0;
    color: #333;
}

.qc-table tbody tr:hover {
    background: #f9fafb;
}

/* 空状态 */
.qc-empty-row td {
    text-align: center;
    padding: 60px 20px !important;
}

.qc-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.qc-empty-icon {
    font-size: 48px;
    opacity: 0.4;
}

.qc-empty-state p {
    color: #999;
    margin: 0;
    font-size: 14px;
}

/* 授权信息显示框 */
.qc-auth-info-box {
    margin: 0 24px 16px;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 1px solid #7dd3fc;
    border-radius: 8px;
    overflow: hidden;
}

.qc-auth-info-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: rgba(14, 165, 233, 0.1);
    border-bottom: 1px solid #7dd3fc;
}

.qc-auth-info-icon {
    font-size: 18px;
}

.qc-auth-info-title {
    flex: 1;
    font-size: 15px;
    font-weight: 600;
    color: #0369a1;
}

.qc-btn-close {
    background: none;
    border: none;
    font-size: 20px;
    color: #64748b;
    cursor: pointer;
    padding: 0 4px;
}

.qc-btn-close:hover {
    color: #334155;
}

.qc-auth-info-content {
    padding: 16px;
}

.qc-auth-info-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 14px;
}

.qc-auth-info-item:last-child {
    margin-bottom: 0;
}

.qc-info-label {
    color: #64748b;
    min-width: 110px;
    flex-shrink: 0;
    padding-top: 6px;
}

.qc-info-value {
    color: #1e293b;
    font-family: monospace;
    background: #fff;
    padding: 6px 12px;
    border-radius: 4px;
    border: 1px solid #e2e8f0;
    flex: 1;
    word-break: break-all;
    font-size: 13px;
}

.qc-btn-copy {
    background: #0ea5e9;
    color: white;
    border: none;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
}

.qc-btn-copy:hover {
    background: #0284c7;
}

.qc-auth-info-tip {
    padding: 10px 16px;
    background: rgba(251, 191, 36, 0.1);
    border-top: 1px solid #fcd34d;
    font-size: 13px;
    color: #92400e;
}

/* 组织千川户查询区域 */
.qc-org-query-section {
    margin: 0 24px 24px;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    overflow: hidden;
}

.qc-org-query-section .qc-section-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    background: #f8fafc;
    border-bottom: 1px solid #e5e7eb;
}

.qc-org-accounts-box {
    padding: 20px 24px;
    min-height: 120px;
}

.qc-org-accounts-empty {
    text-align: center;
    color: #9ca3af;
    padding: 40px 24px;
    font-size: 14px;
}

.qc-org-accounts-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 40px 24px;
    color: #1677ff;
    font-size: 14px;
}

.qc-loading-spinner-small {
    width: 20px;
    height: 20px;
    border: 2px solid #e5e7eb;
    border-top-color: #1677ff;
    border-radius: 50%;
    animation: qc-spin 0.8s linear infinite;
}

/* 组织千川户：过滤与分页 */
.qc-filter-sep { margin-left: 16px; }
.qc-input-account-name { min-width: 140px; }
.qc-org-pagination {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    padding: 12px 0 0;
    margin-top: 12px;
    border-top: 1px solid #f0f0f0;
}
.qc-pagination-info { font-size: 13px; color: #666; }
.qc-pagination-info strong { color: #333; }
.qc-pagination-size {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.qc-pagination-size .qc-filter-label-sm { margin-bottom: 0; }
.qc-pagination-btns {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.qc-pagination-btns .qc-btn-sm {
    min-width: 60px;
}
.qc-pagination-btns .qc-btn-sm:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
.qc-pagination-jump {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #666;
}
.qc-input-page-num {
    width: 48px;
    padding: 4px 8px;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    font-size: 13px;
    text-align: center;
}

.qc-org-table,
.qc-employee-tag-table {
    width: 100%;
}

.qc-org-table th,
.qc-employee-tag-table th {
    background: #f8fafc;
    font-weight: 500;
}

.qc-org-table td,
.qc-employee-tag-table td {
    font-family: 'Consolas', 'Monaco', monospace;
}

.qc-org-table td:first-child,
.qc-employee-tag-table td:first-child {
    font-family: 'Microsoft Yahei', sans-serif;
}

/* 调试日志面板 */
.qc-log-section {
    margin: 0 24px 24px;
    background: #1e1e1e;
    border-radius: 8px;
    overflow: hidden;
}

.qc-log-section .qc-section-head {
    background: #2d2d2d;
    border-bottom: 1px solid #404040;
}

.qc-log-section .qc-section-title {
    color: #e0e0e0;
}

.qc-log-actions {
    display: flex;
    gap: 8px;
}

.qc-log-actions .qc-btn-outline {
    background: #3d3d3d;
    border-color: #555;
    color: #ccc;
    padding: 4px 12px;
    font-size: 12px;
}

.qc-log-actions .qc-btn-outline:hover {
    background: #4d4d4d;
    border-color: #666;
    color: #fff;
}

.qc-log-box {
    height: 300px;
    overflow-y: auto;
    padding: 12px 16px;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 13px;
    line-height: 1.6;
}

.qc-log-item {
    padding: 4px 0;
    border-bottom: 1px solid #333;
    word-break: break-all;
    white-space: pre-wrap;
}

.qc-log-item:last-child {
    border-bottom: none;
}

.qc-log-info {
    color: #9cdcfe;
}

.qc-log-success {
    color: #4ec9b0;
}

.qc-log-error {
    color: #f48771;
}

.qc-log-warn {
    color: #dcdcaa;
}

.qc-log-data {
    color: #ce9178;
    padding-left: 20px;
    font-size: 12px;
}

/* 日志滚动条样式 */
.qc-log-box::-webkit-scrollbar {
    width: 8px;
}

.qc-log-box::-webkit-scrollbar-track {
    background: #2d2d2d;
}

.qc-log-box::-webkit-scrollbar-thumb {
    background: #555;
    border-radius: 4px;
}

.qc-log-box::-webkit-scrollbar-thumb:hover {
    background: #666;
}

/* 组织千川户查询区域 - 官方风格样式 */
.qc-header-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.qc-filter-toolbar {
    padding: 16px 24px;
    border-bottom: 1px solid #e5e7eb;
    background: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.qc-filter-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.qc-filter-dropdown {
    position: relative;
}

.qc-select-sm {
    padding: 6px 32px 6px 12px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    font-size: 14px;
    background: #fff;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='12' viewBox='0 0 12 12' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2 4L6 8L10 4' stroke='%23999' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
}

.qc-select-sm:hover {
    border-color: #1677ff;
}

.qc-search-box {
    position: relative;
    width: 280px;
}

.qc-input-search {
    width: 100%;
    padding: 6px 32px 6px 12px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    font-size: 14px;
    transition: all 0.2s;
}

.qc-input-search:focus {
    outline: none;
    border-color: #1677ff;
    box-shadow: 0 0 0 2px rgba(22, 119, 255, 0.1);
}

.qc-search-icon {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    cursor: pointer;
}

.qc-btn-link {
    background: none;
    border: none;
    color: #1677ff;
    font-size: 14px;
    cursor: pointer;
    padding: 0;
}

.qc-btn-link:hover {
    color: #0958d9;
    text-decoration: underline;
}

.qc-filter-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.qc-account-count {
    font-size: 14px;
    color: #666;
}

.qc-table-wrapper {
    overflow-x: auto;
}

.qc-col-checkbox {
    width: 50px;
    text-align: center;
}

.qc-col-info {
    width: 200px;
    min-width: 200px;
}

.qc-col-action {
    width: 120px;
    min-width: 120px;
}

.qc-col-id {
    width: 180px;
    min-width: 180px;
}

.qc-checkbox {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.qc-org-table tbody tr,
.qc-employee-tag-table tbody tr {
    transition: background-color 0.2s;
}

.qc-org-table tbody tr:hover,
.qc-employee-tag-table tbody tr:hover {
    background-color: #f8fafc;
}

.qc-org-table tbody td,
.qc-employee-tag-table tbody td {
    padding: 12px 16px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
}

.qc-org-table tbody td:first-child,
.qc-employee-tag-table tbody td:first-child {
    text-align: center;
}

.qc-action-link {
    color: #1677ff;
    text-decoration: none;
    font-size: 14px;
    cursor: pointer;
}

.qc-action-link:hover {
    color: #0958d9;
    text-decoration: underline;
}

.qc-empty-icon {
    font-size: 48px;
    margin-bottom: 12px;
}

/* 自定义列弹窗 */
.qc-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qc-modal {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    max-width: 800px;
    width: 90%;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
}

.qc-columns-modal {
    width: 900px;
    max-width: 90vw;
}

.qc-modal-header {
    padding: 16px 20px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.qc-modal-header h3 {
    font-size: 16px;
    font-weight: 500;
    color: #333;
    margin: 0;
}

.qc-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.qc-modal-close:hover {
    color: #333;
}

.qc-modal-body {
    padding: 20px;
    flex: 1;
    overflow-y: auto;
}

.qc-columns-search {
    margin-bottom: 16px;
}

.qc-columns-content {
    display: flex;
    gap: 20px;
    min-height: 400px;
}

.qc-columns-left {
    flex: 1;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
}

.qc-columns-tabs {
    display: flex;
    border-bottom: 1px solid #e5e7eb;
    background: #fafafa;
}

.qc-tab-item {
    padding: 12px 20px;
    font-size: 14px;
    color: #666;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
}

.qc-tab-item.active {
    color: #1677ff;
    border-bottom-color: #1677ff;
    background: #fff;
}

.qc-columns-options {
    padding: 12px;
    max-height: 400px;
    overflow-y: auto;
}

.qc-column-option {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.qc-column-option:hover {
    background-color: #f5f5f5;
}

.qc-column-option input[type="checkbox"] {
    margin-right: 8px;
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.qc-columns-right {
    flex: 1;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
}

.qc-columns-header {
    padding: 12px 16px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fafafa;
}

.qc-columns-header span {
    font-size: 14px;
    color: #333;
}

.qc-columns-added {
    flex: 1;
    padding: 12px;
    overflow-y: auto;
    min-height: 200px;
}

.qc-column-item {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    margin-bottom: 8px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    cursor: move;
}

.qc-drag-handle {
    color: #999;
    margin-right: 8px;
    cursor: grab;
}

.qc-drag-handle:active {
    cursor: grabbing;
}

.qc-column-item span:not(.qc-drag-handle) {
    flex: 1;
    font-size: 14px;
    color: #333;
}

.qc-column-remove {
    background: none;
    border: none;
    color: #999;
    font-size: 18px;
    cursor: pointer;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.qc-column-remove:hover {
    color: #ff4d4f;
}

.qc-modal-footer {
    padding: 16px 20px;
    border-top: 1px solid #e5e7eb;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

/* 响应式 */
@media (max-width: 1200px) {
    .qc-cards-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .qc-page-header {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }
    
    .qc-filter-bar {
        flex-direction: column;
        align-items: stretch;
    }
    
    .qc-cards-row {
        grid-template-columns: 1fr;
    }
    
    .qc-metrics-row {
        flex-direction: column;
    }
}

/* 抖音账号明细 - 工具栏按钮颜色 RGB(60,168,109) */
.btn-douyin {
    background: rgb(60, 168, 109);
    color: #fff;
    border: none;
}
.btn-douyin:hover {
    background: rgb(50, 148, 99);
    color: #fff;
}

/* 抖音账号明细 - 分页栏 */
.douyin-pagination-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    padding: 12px 16px;
    margin-bottom: 12px;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}
.douyin-pagination-bar .douyin-pagination-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #4a5568;
}
.douyin-pagination-bar .douyin-page-size {
    width: 70px;
    padding: 6px 10px;
    display: inline-block;
}
.douyin-pagination-bar .douyin-pagination-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}
.douyin-pagination-bar .btn-page {
    padding: 6px 14px;
    font-size: 14px;
}
.douyin-pagination-bar .btn-page:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
.douyin-pagination-bar .douyin-page-num {
    font-size: 14px;
    color: #4a5568;
}

/* 抖音账号明细 - 筛选栏 */
.douyin-filter-bar {
    background: #fff;
    border-radius: 8px;
    padding: 16px 20px;
    margin-bottom: 16px;
    border: 1px solid #e5e7eb;
}
.douyin-filter-bar .filter-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 20px;
    margin-bottom: 12px;
}
.douyin-filter-bar .filter-row:last-child {
    margin-bottom: 0;
}
.douyin-filter-bar .filter-row label {
    font-size: 14px;
    color: #4a5568;
    min-width: 100px;
}
.douyin-filter-bar .filter-row .form-control {
    width: 160px;
    padding: 8px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
}
.douyin-filter-bar .filter-row select.form-control {
    width: 100px;
}

/* 测试图片直链 - 日志区域 */
.nas-test-log-box {
    background: #1e1e1e;
    border-radius: 8px;
    padding: 12px 16px;
    margin-top: 12px;
    border: 1px solid #333;
}
.nas-test-log-title {
    font-size: 14px;
    color: #aaa;
    margin-bottom: 8px;
}
.nas-test-log-box .nas-test-log {
    font-family: monospace;
    font-size: 13px;
    color: #d4d4d4;
    white-space: pre-wrap;
    word-break: break-all;
    max-height: 280px;
    overflow-y: auto;
    margin: 0;
}
.nas-test-log-box .nas-log-ok { color: #4ec9b0; }
.nas-test-log-box .nas-log-err { color: #f48771; }
.nas-test-log-box .nas-log-step { color: #569cd6; }

/* 测试图片直链 - 点击缩略图放大原图 */
.nas-thumb-wrap {
    display: inline-block;
    cursor: pointer;
    border-radius: 4px;
    overflow: hidden;
}
.nas-thumb-wrap:hover { opacity: 0.9; }
.nas-image-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.9);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}
.nas-image-modal[aria-hidden="false"] {
    display: flex;
}
.nas-image-modal .nas-image-modal-img {
    max-width: 95vw;
    max-height: 95vh;
    object-fit: contain;
    pointer-events: none;
}
.nas-image-modal .nas-image-modal-close {
    position: absolute;
    top: 16px;
    right: 20px;
    font-size: 32px;
    color: #fff;
    cursor: pointer;
    line-height: 1;
    opacity: 0.8;
}
.nas-image-modal .nas-image-modal-close:hover { opacity: 1; }

/* ==================== 工厂管理（对齐财务板块字号/按钮风格） ==================== */
#page-factory .page-header h2 {
    font-size: 26px;
}
#page-factory .page-desc {
    font-size: 15px;
}

/* 厂区改为弹窗选择，页面内用紧凑顶栏 */
#page-factory .factory-page-header-compact {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}
#page-factory .factory-page-header-main h2 {
    margin-bottom: 4px;
}
#page-factory .factory-page-header-main .page-desc {
    margin-bottom: 0;
}
#page-factory .factory-top-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
}
#page-factory .factory-group-switch {
    display: flex;
    gap: 8px;
    margin-bottom: 0;
    padding: 6px;
    background: #fff;
    border: 1px solid #e4e7ed;
    border-radius: 12px;
}
#page-factory .factory-group-btn {
    border: none;
    background: transparent;
    padding: 10px 16px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    color: #4a5568;
    cursor: pointer;
    font-family: inherit;
    transition: all .15s ease;
}
#page-factory .factory-group-btn:hover {
    background: #e8f1ff;
    color: #1677ff;
}
#page-factory .factory-group-btn.active {
    background: linear-gradient(135deg, #1677ff 0%, #4096ff 100%);
    color: #fff;
}
#page-factory .factory-context-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 0;
    padding: 8px 12px;
    background: #f8fafc;
    border: 1px solid #e4e7ed;
    border-radius: 10px;
}
#page-factory #factoryContextText {
    font-size: 14px;
    font-weight: 700;
    color: #1f2a37;
}
#page-factory .factory-context-tip {
    font-size: 12px;
    color: #64748b;
}
#page-factory .factory-context-tip.is-warn {
    color: #d46b08;
    font-weight: 600;
}
#page-factory .factory-context-tip.is-ok {
    color: #389e0d;
    font-weight: 600;
}

/* 选厂弹窗 */
#page-factory .factory-plant-picker-modal {
    width: min(520px, 94vw);
}
#page-factory .factory-plant-picker-desc {
    margin: 0 0 14px;
    color: #64748b;
    font-size: 14px;
    line-height: 1.5;
}
#page-factory .factory-plant-picker-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
#page-factory .factory-plant-picker-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    width: 100%;
    text-align: left;
    padding: 14px 16px;
    border: 1.5px solid #e4e7ed;
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
    font-family: inherit;
    transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
#page-factory .factory-plant-picker-item:hover {
    border-color: #1677ff;
    background: #f0f7ff;
    box-shadow: 0 0 0 3px rgba(22, 119, 255, 0.1);
}
#page-factory .factory-plant-picker-name {
    font-size: 17px;
    font-weight: 800;
    color: #1f2a37;
}
#page-factory .factory-plant-picker-hint {
    font-size: 13px;
    color: #64748b;
}

#page-factory .factory-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
    padding: 10px 12px;
    background: #fff;
    border: 1px solid #e4e7ed;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
#page-factory .factory-tab {
    padding: 12px 20px;
    border: none;
    background: #f5f7fa;
    color: #4a5568;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 10px;
    font-family: 'Noto Sans SC', 'Source Han Sans CN', '思源黑体', sans-serif;
    transition: all 0.2s ease;
}
#page-factory .factory-tab:hover {
    background: #e8f1ff;
    color: #1677ff;
}
#page-factory .factory-tab.active {
    background: #243447;
    color: #fff;
}

#page-factory .factory-shell-card {
    background: #fafbfc;
    border: 1px dashed #cbd5e1;
    border-radius: 12px;
    padding: 20px 22px;
    color: #2d3748;
}
#page-factory .factory-shell-card h4 {
    margin: 0 0 10px;
    font-size: 18px;
    font-weight: 800;
    color: #1f2a37;
}
#page-factory .factory-shell-card p {
    margin: 0 0 12px;
    font-size: 14px;
    line-height: 1.6;
    color: #475569;
}
#page-factory .factory-shell-card ul {
    margin: 0;
    padding-left: 18px;
    color: #64748b;
    font-size: 14px;
    line-height: 1.7;
}
#page-factory .factory-shell-preview-table {
    margin-top: 14px;
    border: 1px solid #e4e7ed;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
}
#page-factory .factory-shell-preview-row {
    display: grid;
    grid-template-columns: 1.2fr 1.2fr 0.7fr 0.7fr 0.7fr;
    gap: 8px;
    padding: 10px 12px;
    font-size: 13px;
    border-top: 1px solid #edf2f7;
    color: #334155;
}
#page-factory .factory-shell-preview-row:first-child { border-top: none; }
#page-factory .factory-shell-preview-head {
    background: #f8fafc;
    font-weight: 700;
    color: #475569;
}
#page-factory .factory-shell-stats {
    margin-top: 0;
}
#page-factory .factory-inv-disabled,
#page-factory .factory-inv-disabled:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}
#page-factory.is-plant-locked .factory-panel[data-group="prod"] .toolbar .btn,
#page-factory.is-plant-locked .factory-panel[data-group="inv"] .toolbar .btn {
    opacity: 0.55;
    pointer-events: none;
}
#page-factory .factory-panel {
    background: #fff;
    border: 1px solid #e4e7ed;
    border-radius: 12px;
    padding: 18px 20px 22px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
#page-factory .toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}
#page-factory .toolbar-left,
#page-factory .toolbar-right {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}
#page-factory .btn {
    font-size: 15px;
    padding: 12px 22px;
    min-height: 44px;
}
#page-factory .form-control {
    font-size: 15px;
    min-height: 44px;
    padding: 10px 14px;
}
#page-factory .data-table th {
    font-size: 15px;
    padding: 16px 18px;
    color: #2d3748;
}
#page-factory .data-table td {
    font-size: 15px;
    padding: 15px 18px;
    color: #2d3748;
}
#page-factory .factory-row-btn {
    padding: 8px 14px !important;
    min-height: 36px !important;
    font-size: 14px !important;
    border-radius: 8px;
    margin-right: 6px;
}
#page-factory .modal-content {
    border-radius: 14px;
}
#page-factory .modal-header h3 {
    font-size: 20px;
    font-weight: 600;
}
#page-factory .modal-body .form-group label {
    font-size: 15px;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 8px;
    display: block;
}
#page-factory .modal-footer .btn {
    min-width: 96px;
}
#page-factory #factoryWorkloadSummary {
    font-size: 15px;
    color: #2d3748;
    background: #f8fafc;
    border: 1px solid #e4e7ed;
    border-radius: 10px;
    padding: 12px 14px;
}
#page-factory .factory-filter-label {
    font-size: 15px;
    font-weight: 600;
    color: #2d3748;
    white-space: nowrap;
}

/* 每日产量统计看板（截图用，大字醒目） */
#page-factory .factory-stats-board {
    margin: 12px 0 18px;
    padding: 22px 28px 26px;
    background: linear-gradient(180deg, #fffdf5 0%, #fff7e6 100%);
    border: 2px solid #fa8c16;
    border-radius: 14px;
    box-shadow: 0 6px 18px rgba(250, 140, 22, 0.18);
}
#page-factory .factory-stats-board-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}
#page-factory .factory-stats-board-head span {
    font-size: 28px;
    font-weight: 800;
    color: #d46b08;
    letter-spacing: 1px;
}
#page-factory .factory-stats-close {
    border: none;
    background: transparent;
    font-size: 28px;
    line-height: 1;
    color: #8c8c8c;
    cursor: pointer;
    padding: 0 4px;
}
#page-factory .factory-stats-board-range {
    font-size: 18px;
    font-weight: 700;
    color: #595959;
    margin-bottom: 18px;
}
#page-factory .factory-stats-board-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}
#page-factory .factory-stats-item {
    background: #fff;
    border: 1px solid #ffd591;
    border-radius: 12px;
    padding: 16px 18px 18px;
    text-align: center;
}
#page-factory .factory-stats-label {
    font-size: 20px;
    font-weight: 700;
    color: #434343;
    margin-bottom: 10px;
}
#page-factory .factory-stats-sub {
    font-size: 14px;
    font-weight: 600;
    color: #8c8c8c;
}
#page-factory .factory-stats-value {
    font-size: 48px;
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: 0.5px;
    word-break: break-all;
}
#page-factory .factory-stats-rate { color: #cf1322; }
#page-factory .factory-stats-labor { color: #0958d9; }
#page-factory .factory-stats-wage { color: #389e0d; }

/* 一键盘总厂：紧凑双栏排版 */
#page-factory .factory-board-panel { padding-bottom: 12px; }
#page-factory .factory-board-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 10px;
    align-items: start;
}
#page-factory .factory-board-col { min-width: 0; }
#page-factory .factory-board-row-product {
    grid-template-columns: 1.45fr 0.85fr;
}
#page-factory .factory-board-col.is-charts {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
#page-factory .factory-board-col.is-narrow { max-width: none; }
#page-factory .factory-board-split {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 8px;
    align-items: start;
}
#page-factory .factory-board-section-title {
    margin: 0 0 6px;
    padding-left: 8px;
    border-left: 3px solid #2563eb;
    font-size: 13px;
    font-weight: 650;
    color: #1e293b;
}
#page-factory .factory-board-table-scroll {
    max-height: 220px;
    overflow: auto;
    margin-bottom: 0;
}
#page-factory .factory-board-table-scroll.is-tall { max-height: 280px; }
#page-factory .factory-board-table-scroll .data-table { margin: 0; }
#page-factory .factory-board-table-scroll .data-table th,
#page-factory .factory-board-table-scroll .data-table td {
    padding: 6px 8px;
    font-size: 12px;
    white-space: nowrap;
}
#page-factory .factory-board-chart-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 6px 8px 4px;
    min-width: 0;
}
#page-factory .factory-board-chart-card h4 {
    margin: 0 0 4px;
    font-size: 12px;
    font-weight: 650;
    color: #334155;
}
#page-factory .factory-board-chart-wrap {
    position: relative;
    width: 100%;
    height: 150px;
}
#page-factory .factory-board-chart-wrap.is-md { height: 170px; }
#page-factory .factory-board-chart-wrap.is-trend { height: 200px; }
#page-factory .factory-board-chart-wrap canvas {
    width: 100% !important;
    height: 100% !important;
}
#page-factory .factory-board-details {
    margin-top: 8px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 8px 12px;
    background: #f8fafc;
}
#page-factory .factory-board-details > summary {
    cursor: pointer;
    font-weight: 600;
    font-size: 13px;
    color: #1e40af;
    outline: none;
}
#page-factory .factory-board-details[open] > summary { margin-bottom: 10px; }
@media (max-width: 1100px) {
    #page-factory .factory-board-row { grid-template-columns: 1fr; }
    #page-factory .factory-board-split { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
    #page-factory .factory-stats-board-grid {
        grid-template-columns: 1fr;
    }
    #page-factory .factory-stats-value {
        font-size: 40px;
    }
}
