/* ===== UKJ ئۇيغۇرچە خەت نۇسخىسى (UKIJ TOR) ===== */
@font-face {
    font-family: 'ukj';
    src: url('../font/UKIJTOR.TTF') format('truetype');
    font-weight: normal;
    font-style: normal;
}

/* ===== 基础样式 ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-weight: normal;
}

html,
body {
    height: 100%;
}

body {
    font-family: 'ukj', 'Microsoft YaHei', sans-serif;
    background-color: #F2F6FC;
    color: #333333;
    font-size: 16px;
    direction: ltr;
    text-align: left;
}

a {
    color: #333333;
    text-decoration: none;
}

input {
    font-family: 'ukj', 'Microsoft YaHei', sans-serif;
}

input::placeholder {
    color: #999999;
}

/* ===== 提示（toast）===== */
.toast {
    position: fixed;
    top: 8%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #333333;
    color: #ffffff;
    font-size: 14px;
    padding: 10px 22px;
    border-radius: 6px;
    z-index: 9999;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.toast-success {
    background-color: #43A047;
    box-shadow: 0 6px 20px rgba(67, 160, 71, 0.4);
}

.toast-danger {
    background-color: #E53935;
    box-shadow: 0 6px 20px rgba(229, 57, 53, 0.4);
}

.input-label {
    display: block;
    font-size: 14px;
    color: #666666;
    margin-bottom: 6px;
}

/* ===== 侧边栏：白色简约风（高亮橙色选中） ===== */
/* 主色 白底 / 选中 淡橙底 + 橙字 / 文字 #5F6B7A / 悬停 #23272E */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 200px;
    height: 100vh;
    background: #ffffff;
    border-right: 1px solid #EDEFF2;
    z-index: 100;
    transition: width 0.2s;
    display: flex;
    flex-direction: column;
}

.sidebar .logo {
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border-bottom: 1px solid #EDEFF2;
    flex-shrink: 0;
}

.logo-text {
    font-family: 'Microsoft YaHei', 'PingFang SC', sans-serif;
    font-size: 20px;
    font-weight: 500;
    color: #23272E;
    letter-spacing: 1px;
    white-space: nowrap;
}

.sidebar .menu {
    overflow-y: auto;
    flex: 1;
    padding: 10px 0 20px;
}

.sidebar .menu::-webkit-scrollbar {
    width: 4px;
}

.sidebar .menu::-webkit-scrollbar-thumb {
    background: rgba(35, 39, 46, 0.12);
    border-radius: 4px;
}

/* 分组标题 */
.menu-group-title {
    padding: 14px 20px 6px;
    font-size: 12px;
    color: #AAB2BD;
    letter-spacing: 1px;
    white-space: nowrap;
}

.menu-group:first-child .menu-group-title {
    padding-top: 4px;
}

/* 一级菜单：默认态 */
.sidebar .menu a {
    display: flex;
    align-items: center;
    height: 44px;
    margin: 2px 12px;
    padding: 0 14px;
    color: #5F6B7A;
    font-size: 15px;
    border-radius: 6px;
    white-space: nowrap;
    position: relative;
    transition: background 0.15s, color 0.15s;
}

/* 菜单图标（颜色跟随文字） */
.menu-icon {
    width: 19px;
    height: 19px;
    margin-right: 11px;
    flex-shrink: 0;
}

/* 悬停态 */
.sidebar .menu a:hover {
    color: #23272E;
    background-color: #F5F7FA;
}

/* 禁用态 */
.sidebar .menu a.is-disabled {
    color: #C5C8CE;
    cursor: not-allowed;
    pointer-events: none;
}

/* 一级菜单选中态：左侧蓝色竖条 + 蓝字，无背景色块 */
.sidebar .menu a.active {
    color: #1677FF;
    background: transparent;
}

.sidebar .menu a.active::before {
    content: '';
    position: absolute;
    left: -12px;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 20px;
    background: #1677FF;
    border-radius: 0 3px 3px 0;
}

.sidebar .menu a.active:hover {
    color: #0958D9;
    background: #F0F5FF;
}

.sidebar .menu a.active .menu-icon {
    color: #1677FF;
}

/* 菜单徽标（未读数/红点，备用） */
.menu-badge {
    margin-left: auto;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 9px;
    background: #FF4D4F;
    color: #FFFFFF;
    font-size: 11px;
    line-height: 18px;
    text-align: center;
    flex-shrink: 0;
}

/* ===== 二级菜单 ===== */
.sub-arrow {
    width: 14px;
    height: 14px;
    margin-left: auto;
    transition: transform 0.2s;
    opacity: 0.45;
}

.menu-parent.open .sub-arrow {
    transform: rotate(180deg);
}

.submenu {
    display: none;
}

.menu-parent.open + .submenu {
    display: block;
}

/* 二级菜单项：缩进对齐父级文字，层级更弱 */
.sidebar .menu .submenu a {
    height: 38px;
    margin: 1px 12px;
    padding: 0 14px 0 44px;
    font-size: 14px;
    color: #8A919C;
    border-radius: 6px;
    position: relative;
}

.sidebar .menu .submenu a:hover {
    color: #23272E;
    background: #F5F7FA;
}

/* 二级菜单选中态：左侧蓝色竖条 + 蓝字，无背景色 */
.sidebar .menu .submenu a.active {
    color: #1677FF;
    background: transparent;
}

.sidebar .menu .submenu a.active::before {
    content: '';
    position: absolute;
    left: -12px;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 16px;
    background: #1677FF;
    border-radius: 0 3px 3px 0;
}

.sidebar .menu .submenu a.active:hover {
    color: #0958D9;
    background: transparent;
}

/* ===== 侧边栏收起状态（只显示图标） ===== */
body.sidebar-collapsed .sidebar {
    width: 68px;
}

body.sidebar-collapsed .main-area {
    margin-left: 68px;
}

body.sidebar-collapsed .logo-text,
body.sidebar-collapsed .menu-text,
body.sidebar-collapsed .sub-arrow,
body.sidebar-collapsed .menu-group-title {
    display: none;
}

body.sidebar-collapsed .sidebar .logo {
    justify-content: center;
    padding: 0;
}

body.sidebar-collapsed .sidebar .menu a {
    justify-content: center;
    padding: 0;
    height: 40px;
    margin: 2px 10px;
}

body.sidebar-collapsed .menu-icon {
    margin-right: 0;
}

body.sidebar-collapsed .submenu {
    display: none !important;
}

/* ===== 主区域 ===== */
.main-area {
    margin-left: 200px;
    min-height: 100vh;
    transition: margin-left 0.2s;
}

.topbar {
    height: 56px;
    background-color: #ffffff;
    border-bottom: 1px solid #E8E8E8;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 25px;
}

.topbar-left {
    display: flex;
    align-items: center;
}

/* 顶栏通用小图标按钮（收起菜单 / 刷新） */
.icon-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    color: #666666;
    margin-right: 8px;
    padding: 0;
}

.icon-btn:hover {
    color: #FF6F00;
}

.icon-btn svg {
    width: 18px;
    height: 18px;
}

.topbar-title {
    font-size: 16px;
    color: #666666;
}

.topbar-right {
    display: flex;
    align-items: center;
}

/* ===== 顶栏全屏按钮 ===== */
.fullscreen-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    color: #666666;
    margin-right: 18px;
    padding: 0;
}

.fullscreen-btn:hover {
    color: #FF6F00;
}

.fullscreen-btn svg {
    width: 18px;
    height: 18px;
}

.icon-compress {
    display: none;
}

body.is-fullscreen .icon-expand {
    display: none;
}

body.is-fullscreen .icon-compress {
    display: block;
}

/* ===== 右上角用户区域 ===== */
.user-area {
    display: flex;
    align-items: center;
    position: relative;
    cursor: pointer;
}

.admin-name {
    font-size: 15px;
    color: #666666;
    margin-right: 10px;
}

.admin-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #E0E0E0;
    margin-right: 8px;
    display: block;
}

.arrow-icon {
    width: 14px;
    height: 14px;
    color: #999999;
    transition: transform 0.2s;
}

.user-area.open .arrow-icon {
    transform: rotate(180deg);
}

.dropdown {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    min-width: 130px;
    background-color: #ffffff;
    border: 1px solid #F0F0F0;
    border-radius: 6px;
    box-shadow: 0 4px 16px rgba(35, 39, 46, 0.12);
    padding: 6px 0;
    z-index: 200;
}

.user-area.open .dropdown {
    display: block;
}

.dropdown a {
    display: block;
    height: 38px;
    line-height: 38px;
    padding: 0 16px;
    color: #555555;
    font-size: 14px;
}

.dropdown a:hover {
    background-color: #F5F7FA;
    color: #FF6F00;
}

.logout-btn {
    display: inline-block;
    height: 32px;
    line-height: 32px;
    padding: 0 15px;
    background-color: #ffffff;
    border: 1px solid #DDDDDD;
    border-radius: 6px;
    color: #666666;
    font-size: 14px;
    font-family: 'ukj', 'Microsoft YaHei', sans-serif;
    cursor: pointer;
}

.logout-btn:hover {
    background: linear-gradient(to bottom, #FF8F00, #FF6F00);
    border-color: #FF6F00;
    color: #ffffff;
}

.content {
    padding: 25px;
}

/* ===== 控制台统计卡片 ===== */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.stat-card {
    position: relative;
    background-color: #ffffff;
    border-radius: 6px;
    box-shadow: 0 2px 10px rgba(35, 39, 46, 0.06);
    padding: 28px 20px;
    text-align: center;
}

.stat-card:hover {
    box-shadow: 0 6px 18px rgba(35, 39, 46, 0.12);
}

.stat-icon {
    position: absolute;
    top: 14px;
    left: 14px;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-icon svg {
    width: 16px;
    height: 16px;
}

.stat-label {
    font-size: 15px;
    color: #8A8F99;
    margin-bottom: 14px;
}

.stat-value {
    font-size: 32px;
    color: #23272E;
}

/* ===== 控制台图表 ===== */
.chart-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 20px;
}

.chart-panel {
    background-color: #ffffff;
    border-radius: 6px;
    box-shadow: 0 2px 10px rgba(35, 39, 46, 0.06);
    padding: 20px;
}

.chart-title {
    font-size: 16px;
    color: #333333;
    margin-bottom: 5px;
}

.chart-box {
    width: 100%;
    height: 320px;
}

/* ===== 通用内容面板 ===== */
.panel {
    background-color: #ffffff;
    border-radius: 6px;
    box-shadow: 0 2px 10px rgba(35, 39, 46, 0.06);
    padding: 40px 30px;
    text-align: center;
}

.panel-title {
    font-size: 18px;
    color: #333333;
    margin-bottom: 12px;
}

.panel-text {
    font-size: 15px;
    color: #999999;
}

/* ===== 轮播图管理 ===== */
.table-footer {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 15px;
}

/* ===== 列表工具栏：搜索 + 列显示控制（影片管理等列表页） ===== */
.table-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 15px;
}
.search-group {
    display: flex;
    align-items: center;
}
.toolbar-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* 搜索类型下拉按钮 */
.search-type {
    position: relative;
}
.search-type-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 42px;
    padding: 0 14px;
    background: #ffffff;
    border: 1px solid #dddddd;
    border-right: none;
    border-radius: 6px 0 0 6px;
    font-size: 14px;
    color: #555555;
    white-space: nowrap;
    cursor: pointer;
    box-sizing: border-box;
}
.search-type-btn:hover {
    border-color: #FFB74D;
    color: #FF6F00;
}
.search-type .ft-icon {
    display: inline-flex;
    width: 16px;
    height: 16px;
    color: #FF8F00;
}
.search-type .ft-icon svg {
    width: 16px;
    height: 16px;
}
.search-type .ft-arrow {
    width: 14px;
    height: 14px;
    color: #aaaaaa;
}

/* 搜索输入框 */
.search-input {
    height: 42px;
    width: 240px;
    padding: 0 14px;
    border: 1px solid #dddddd;
    border-radius: 6px;
    background: #ffffff;
    font-size: 14px;
    color: #333333;
    text-align: left;
    outline: none;
    box-sizing: border-box;
}
.search-input:focus {
    border-color: #FFB74D;
}
/* 紧跟搜索类型按钮时：去掉左边框、左圆角，与按钮无缝拼接 */
.search-type + .search-input {
    border-left: none;
    border-radius: 0 6px 6px 0;
}

/* 搜索按钮 */
.search-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 42px;
    margin-left: 10px;
    padding: 0 24px;
    background: linear-gradient(to bottom, #FF8F00, #FF6F00);
    color: #ffffff;
    font-size: 15px;
    border-radius: 6px;
    text-decoration: none;
    cursor: pointer;
}
.search-btn svg {
    width: 16px;
    height: 16px;
}
.search-btn:hover {
    background: linear-gradient(to bottom, #FFA726, #FB8C00);
}

/* 下拉菜单（搜索类型 / 显示列共用） */
.dropdown-menu {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    z-index: 50;
    min-width: 150px;
    padding: 6px;
    background: #ffffff;
    border: 1px solid #eeeeee;
    border-radius: 8px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    display: none;
}
.search-type.open .dropdown-menu,
.col-toggle.open .dropdown-menu {
    display: block;
}
.dropdown-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    font-size: 14px;
    color: #555555;
    border-radius: 6px;
    white-space: nowrap;
    cursor: pointer;
    text-decoration: none;
}
.dropdown-item svg {
    width: 16px;
    height: 16px;
    flex: none;
    color: #999999;
}
.dropdown-item:hover {
    background: #f5f7fa;
    color: #333333;
}
.dropdown-item:hover svg {
    color: #FF8F00;
}
.dropdown-item.selected {
    background: #FFF4E5;
    color: #FF6F00;
}
.dropdown-item.selected svg {
    color: #FF6F00;
}

/* 显示列控制 */
.col-toggle {
    position: relative;
}
.col-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 42px;
    padding: 0 18px;
    background: #ffffff;
    border: 1px solid #dddddd;
    border-radius: 6px;
    font-size: 14px;
    color: #555555;
    white-space: nowrap;
    cursor: pointer;
}
.col-toggle-btn svg {
    width: 16px;
    height: 16px;
    color: #777777;
}
.col-toggle-btn .ft-arrow {
    color: #aaaaaa;
}
.col-toggle-btn:hover,
.col-toggle.open .col-toggle-btn {
    border-color: #FFB74D;
    color: #FF6F00;
}
.col-toggle-btn:hover svg,
.col-toggle.open .col-toggle-btn svg {
    color: #FF8F00;
}
.col-menu {
    left: auto;
    right: 0;
    min-width: 230px;
    padding: 8px;
}
.col-toggle.open .col-menu {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px 8px;
}
.col-item {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 7px 8px;
    font-size: 13px;
    color: #555555;
    border-radius: 6px;
    white-space: nowrap;
    cursor: pointer;
}
.col-item:hover {
    background: #f5f7fa;
}
.col-item input {
    margin: 0;
    accent-color: #43A047;
    cursor: pointer;
}
.col-item svg {
    width: 15px;
    height: 15px;
    flex: none;
    color: #999999;
}

/* 批量删除按钮（选中行后才可用） */
.batch-del-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 42px;
    padding: 0 18px;
    background: #E53935;
    border: 1px solid #E53935;
    border-radius: 6px;
    font-size: 14px;
    color: #ffffff;
    white-space: nowrap;
    cursor: pointer;
}
.batch-del-btn svg {
    width: 16px;
    height: 16px;
}
.batch-del-btn:hover:not(:disabled) {
    background: #C62828;
    border-color: #C62828;
}
.batch-del-btn:disabled {
    background: #f5f5f5;
    border-color: #e0e0e0;
    color: #bbbbbb;
    cursor: not-allowed;
}

/* 分页条 */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 18px;
}

.pagination .page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 32px;
    min-width: 32px;
    padding: 0 12px;
    background-color: #ffffff;
    border: 1px solid #E5E7EB;
    border-radius: 6px;
    font-size: 13px;
    font-family: 'ukj', 'Microsoft YaHei', sans-serif;
    color: #555555;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
}

.pagination a.page-btn:hover {
    border-color: #FF8F00;
    color: #FF8F00;
}

.pagination .page-btn.current {
    background: linear-gradient(135deg, #FF8F00, #FF6F00);
    border-color: #FF8F00;
    color: #ffffff;
}

.pagination .page-btn.disabled {
    color: #BBBBBB;
    background-color: #F7F8FA;
    cursor: not-allowed;
}

.pagination .page-dots {
    color: #999999;
    font-size: 13px;
    padding: 0 2px;
}

.pagination .page-jump {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: 12px;
}

.pagination .page-jump input {
    width: 64px;
    height: 32px;
    padding: 0 8px;
    border: 1px solid #E5E7EB;
    border-radius: 6px;
    font-size: 13px;
    font-family: 'ukj', 'Microsoft YaHei', sans-serif;
    color: #333333;
    outline: none;
    box-sizing: border-box;
    -moz-appearance: textfield;
    appearance: textfield;
}

.pagination .page-jump input::-webkit-outer-spin-button,
.pagination .page-jump input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.pagination .page-jump input:focus {
    border-color: #FF8F00;
}

.pagination .page-jump button {
    height: 32px;
    padding: 0 14px;
    background: linear-gradient(135deg, #FF8F00, #FF6F00);
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-family: 'ukj', 'Microsoft YaHei', sans-serif;
    color: #ffffff;
    cursor: pointer;
    transition: opacity 0.2s;
}

.pagination .page-jump button:hover {
    opacity: 0.9;
}

/* 添加轮播图弹窗 */
.modal-mask {
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal {
    width: 420px;
    background-color: #ffffff;
    border-radius: 6px;
    padding: 25px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
}

.modal-title {
    font-size: 17px;
    color: #23272E;
    margin-bottom: 20px;
}

.modal-item {
    margin-bottom: 15px;
}

.modal-item label {
    display: block;
    font-size: 14px;
    color: #666666;
    margin-bottom: 6px;
}

.modal-item input[type="file"],
.modal-item input[type="text"],
.modal-item input[type="number"] {
    width: 100%;
    box-sizing: border-box;
    height: 38px;
    border: 1px solid #DDDDDD;
    border-radius: 6px;
    padding: 0 10px;
    font-size: 14px;
    color: #333333;
    outline: none;
}

.modal-item input:focus,
.modal-item textarea:focus {
    border-color: #FF8F00;
}

.modal-item textarea {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #DDDDDD;
    border-radius: 6px;
    padding: 8px 10px;
    font-size: 14px;
    line-height: 1.7;
    color: #333333;
    font-family: inherit;
    resize: vertical;
    outline: none;
}

.modal-btns {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-top: 20px;
}

.cancel-btn {
    height: 38px;
    padding: 0 18px;
    margin-right: 10px;
    background-color: #ffffff;
    border: 1px solid #DDDDDD;
    border-radius: 6px;
    color: #666666;
    font-size: 14px;
    cursor: pointer;
}

.cancel-btn:hover {
    border-color: #999999;
    color: #333333;
}

.modal-btns .save-btn {
    height: 38px;
}

/* 轮播图列表（表格） */
.banner-table {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
    background-color: #ffffff;
    border-radius: 6px;
    box-shadow: 0 2px 10px rgba(35, 39, 46, 0.06);
}

.banner-table th,
.banner-table td {
    padding: 12px 20px;
    text-align: left;
    border: 1px solid #E8E8E8;
    vertical-align: middle;
}

.banner-table thead th {
    background-color: #F7F8FA;
    font-size: 14px;
    color: #666666;
    white-space: nowrap;
    text-align: center;
    position: relative;
}

/* 表头列宽拖拽手柄：鼠标移到列右边缘按住左右拖动 */
.col-resize {
    position: absolute;
    top: 0;
    right: -3px;
    width: 8px;
    height: 100%;
    cursor: col-resize;
    z-index: 3;
    user-select: none;
}
.col-resize:hover,
.col-resize.dragging {
    background: rgba(255, 143, 0, 0.35);
}
.banner-table th.resizing,
.banner-table.resizing {
    cursor: col-resize;
}

/* ===== 影片表格：列宽与对齐统一规范（整整齐齐） ===== */
/* 开关列：VIP / 推荐 / 状态 三列完全一致（宽 56、左右 padding 3px、居中） */
.banner-table .col-vip,
.banner-table .col-rec,
.banner-table .col-status {
    width: 56px;
    padding-left: 3px;
    padding-right: 3px;
    text-align: center;
}
/* 短文字列：编号 / 播放器 / 题材 / 评分 / 集数 / 分类 / 国家 / 年份（左右 padding 5px、居中） */
.banner-table .col-num,
.banner-table .col-player,
.banner-table .col-theme,
.banner-table .col-score,
.banner-table .col-eps,
.banner-table .col-cat,
.banner-table .col-country,
.banner-table .col-year {
    padding-left: 5px;
    padding-right: 5px;
    text-align: center;
}
.banner-table .col-num { width: 52px; }
.banner-table .col-player { width: 70px; }
.banner-table .col-theme { width: 80px; }
.banner-table .col-score { width: 58px; }
.banner-table .col-eps { width: 52px; }
.banner-table .col-cat,
.banner-table .col-country,
.banner-table .col-year { width: 76px; }
/* 豆瓣评分：橙色加粗数字 */
.banner-table .score-num {
    color: #FF8F00;
    font-weight: bold;
    font-size: 13px;
}
/* 图片列：缩略图水平居中 */
.banner-table .col-mimg {
    width: 100px;
    padding-left: 6px;
    padding-right: 6px;
    text-align: center;
}
/* 操作列：按钮组水平居中 */
.banner-table .col-op {
    width: 170px;
    padding-left: 8px;
    padding-right: 8px;
    text-align: center;
}
.banner-table .col-op .op-btns {
    justify-content: center;
}

/* 批量选择复选框列 */
.banner-table .col-check {
    width: 46px;
    text-align: center;
    padding: 12px 8px;
}
.banner-table .col-check input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: #43A047;
    cursor: pointer;
    vertical-align: middle;
}
.col-check .col-resize {
    display: none;
}

/* 图片列（轮播图/抖音=横图 224px；竖屏=竖图 110px）：按缩略图尺寸定宽居中 */
.banner-table .col-img {
    width: 224px;
    padding-left: 6px;
    padding-right: 6px;
    text-align: center;
}

.banner-table .col-vimg {
    width: 132px;
    padding-left: 6px;
    padding-right: 6px;
    text-align: center;
}

/* 链接列：不设固定宽度，弹性吸收表格剩余空间（长 URL 带省略号） */
.banner-table .col-link {
    padding-left: 12px;
    padding-right: 12px;
}

.banner-table .col-time {
    width: 120px;
    text-align: center;
}

/* 操作按钮组 */
.op-btns {
    display: flex;
    align-items: center;
    gap: 8px;
}

.edit-btn,
.del-btn {
    display: inline-flex;
    align-items: center;
    height: 30px;
    padding: 0 12px;
    border-radius: 3px;
    font-size: 13px;
    font-family: 'ukj', 'Microsoft YaHei', sans-serif;
    white-space: nowrap;
    cursor: pointer;
}

.edit-btn svg,
.del-btn svg {
    width: 13px;
    height: 13px;
    margin-right: 5px;
    flex-shrink: 0;
}

/* 编辑按钮（绿底白字，无圆角） */
.edit-btn {
    background-color: #43A047;
    color: #ffffff;
    border: 1px solid #43A047;
}

.edit-btn:hover {
    background-color: #388E3C;
    border-color: #388E3C;
}

/* 删除按钮（红底白字，无圆角） */
.del-btn {
    background-color: #E53935;
    color: #ffffff;
    border: 1px solid #E53935;
}

.del-btn:hover {
    background-color: #C62828;
    border-color: #C62828;
}

.banner-thumb {
    width: 200px;
    height: 112px;
    object-fit: cover;
    border: none;
    display: block;
    margin: 0 auto;
    cursor: zoom-in;
}

/* 竖屏轮播缩略图（9:16 竖图） */
.vertical-thumb {
    width: 90px;
    height: 160px;
    object-fit: cover;
    border: none;
    display: block;
    margin: 0 auto;
    cursor: zoom-in;
}

/* 三个轮播类列表页（轮播图/竖屏/抖音，表格不在 table-scroll 内）：自动布局
   列宽随内容收缩，空链接列不再撑出大片空白（避免两头满、中间空） */
.content > .banner-table {
    table-layout: auto;
}

.content > .banner-table .col-name {
    width: auto;
    min-width: 0;
}

/* 链接列：限宽防长 URL 撑表，无链接时自然收缩 */
.content > .banner-table .banner-link {
    max-width: 320px;
}

/* 名称列：超长维文名省略号截断，防止自动布局下被撑宽 */
.content > .banner-table .banner-name {
    max-width: 260px;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 编号/排序列（编号 td 用 banner-num）：提升特异性保证居中不被 td 左对齐覆盖 */
.banner-table .banner-num {
    font-size: 14px;
    color: #666666;
    white-space: nowrap;
    text-align: center;
}

/* ===== 影片管理 ===== */
.banner-table .movie-thumb {
    width: 75px;
    height: 100px;
}

/* 列数较多的表格：横向滚动，固定列宽不被压缩 */
.table-scroll {
    overflow-x: auto;
    padding: 2px 6px 14px 6px;
}

.table-scroll .banner-table {
    min-width: 1440px;
}

/* 简单表格（订单/管理员/日志等列数少的页面）：不强制最小宽度，收紧间距 */
.table-scroll .banner-table.compact {
    min-width: auto;
}
.table-scroll .banner-table.compact th,
.table-scroll .banner-table.compact td {
    padding: 9px 14px;
    font-size: 13px;
}
.table-scroll .banner-table.compact thead th {
    font-size: 13px;
}

/* 名称列为弹性列，吸收表格剩余宽度（其余列为固定宽度，严格按设定不被拉伸） */

.banner-table .movie-cell {
    font-size: 14px;
    color: #333333;
    white-space: nowrap;
    font-weight: normal;
    font-family: 'Microsoft YaHei', sans-serif;
    text-align: center;
}

.modal-lg {
    width: 560px;
    max-height: 86vh;
    overflow-y: auto;
}

.modal-form select {
    width: 100%;
    height: 40px;
    padding: 0 12px;
    border: 1px solid #DDDDDD;
    border-radius: 6px;
    font-size: 14px;
    font-family: 'ukj', 'Microsoft YaHei', sans-serif;
    background: #FFFFFF;
    box-sizing: border-box;
    outline: none;
}

.modal-form select:focus {
    border-color: #FF8F00;
}

.modal-form textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #DDDDDD;
    border-radius: 6px;
    font-size: 14px;
    font-family: 'ukj', 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    box-sizing: border-box;
    resize: vertical;
    outline: none;
}

.modal-form textarea:focus {
    border-color: #FF8F00;
}

.urls-textarea {
    min-height: 120px;
}

.modal-row {
    display: flex;
    gap: 14px;
}

.modal-row .modal-item {
    flex: 1;
}

.readonly-input {
    background: #F7F8FA;
    color: #666666;
    cursor: default;
}

.copy-row {
    display: flex;
    gap: 8px;
}

.copy-row input {
    flex: 1;
}

.copy-btn {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #DDDDDD;
    border-radius: 6px;
    background: #FFFFFF;
    color: #666666;
    cursor: pointer;
}

.copy-btn svg {
    width: 16px;
    height: 16px;
}

.copy-btn:hover {
    border-color: #FF8F00;
    color: #FF8F00;
}

.banner-name {
    font-size: 15px;
    color: #333333;
    white-space: nowrap;
    text-align: center;
}

.banner-table .col-name {
    /* 名称列：固定宽度，避免弹性吸收过多剩余空间 */
    width: 180px;
    min-width: 140px;
}

/* 影片管理：名称列保持弹性吸收剩余空间（表格在 table-scroll 内、列多） */
.table-scroll .banner-table .col-name {
    width: auto;
    min-width: 160px;
}

.banner-link {
    font-size: 13px;
    color: #666666;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.banner-time {
    font-size: 13px;
    color: #666666;
    white-space: nowrap;
    text-align: center;
}

.switch-form,
.del-form {
    margin: 0;
    flex-shrink: 0;
}

/* 开关列（VIP/推荐/状态等）：开关在单元格内水平居中 */
.switch-form {
    display: flex;
    justify-content: center;
    align-items: center;
}
.switch-form .switch {
    margin-right: 0;
}

/* 状态开关 */
.switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    margin-right: 20px;
    vertical-align: middle;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
    margin: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    background-color: #CCCCCC;
    transition: 0.2s;
    border-radius: 12px;
}

.slider::before {
    content: '';
    position: absolute;
    height: 18px;
    width: 18px;
    left: 3px;
    top: 3px;
    background-color: #ffffff;
    transition: 0.2s;
    border-radius: 50%;
}

.switch input:checked + .slider {
    background-color: #FF8F00;
}

.switch input:checked + .slider::before {
    transform: translateX(20px);
}

/* 两个轮播图页（轮播图/竖屏轮播）：状态开关加大 */
.status-lg .col-status {
    width: 72px;
}

.status-lg .switch {
    width: 56px;
    height: 30px;
}

.status-lg .slider {
    border-radius: 15px;
}

.status-lg .slider::before {
    height: 24px;
    width: 24px;
    top: 3px;
    left: 3px;
}

.status-lg .switch input:checked + .slider::before {
    transform: translateX(26px);
}

/* ===== 图片放大预览层（点击列表缩略图打开） ===== */
.img-viewer {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.75);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 图片容器：关闭按钮定位在图片右上角 */
.img-viewer-box {
    position: relative;
}

.img-viewer img {
    max-width: 60vw;
    max-height: 70vh;
    display: block;
    border-radius: 6px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

/* 关闭按钮：橙渐变底（同添加按钮）白 X，图片右上角，悬停旋转 360° */
.img-viewer-close {
    position: absolute;
    top: -14px;
    right: -14px;
    width: 36px;
    height: 36px;
    background: linear-gradient(to bottom, #FF8F00, #FF6F00);
    color: #ffffff;
    border-radius: 50%;
    font-size: 24px;
    line-height: 36px;
    text-align: center;
    cursor: pointer;
    user-select: none;
    transition: transform 0.5s;
}

.img-viewer-close:hover {
    transform: rotate(360deg);
}

.banner-empty {
    text-align: center;
    color: #999999;
    font-size: 15px;
    padding: 30px 0;
}

/* ===== 修改密码 ===== */
.pwd-panel {
    width: 420px;
    background-color: #ffffff;
    border-radius: 6px;
    box-shadow: 0 2px 10px rgba(35, 39, 46, 0.06);
    padding: 30px 30px 35px;
}

.pwd-panel .panel-title {
    text-align: left;
    margin-bottom: 25px;
}

.save-btn {
    height: 42px;
    padding: 0 35px;
    background: linear-gradient(to bottom, #FF8F00, #FF6F00);
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-family: 'ukj', 'Microsoft YaHei', sans-serif;
    cursor: pointer;
}

.save-btn:hover {
    opacity: 0.88;
}

/* ===== 分类管理 ===== */
.banner-table .col-sort {
    width: 70px;
}

/* ===== 合集管理 ===== */
.banner-table .col-count {
    width: 80px;
}

.checkbox-group {
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid #DDDDDD;
    border-radius: 6px;
    padding: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.checkbox-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    color: #333333;
    cursor: pointer;
    white-space: nowrap;
}

.checkbox-item input[type="checkbox"] {
    margin: 0;
    cursor: pointer;
}

/* ===== 登录页 ===== */
.login-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000000;
    position: relative;
    overflow: hidden;
}

/* 背景图片：压暗 + 轻微模糊 */
.login-wrap::before {
    content: '';
    position: absolute;
    top: -25px;
    left: -25px;
    width: calc(100% + 50px);
    height: calc(100% + 50px);
    background: linear-gradient(rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.45)), url('/admin.jpg') no-repeat center 30% / cover;
    filter: blur(6px);
}

.login-box {
    width: 380px;
    background-color: #ffffff;
    border: 1px solid #000000;
    border-radius: 12px;
    box-shadow: 0 12px 45px rgba(0, 0, 0, 0.55);
    padding: 45px 38px;
    position: relative;
    z-index: 1;
}

.login-title {
    font-size: 26px;
    color: #000000;
    text-align: center;
    margin-bottom: 35px;
}

/* 标题下方渐变装饰条 */
.login-title::after {
    content: '';
    display: block;
    width: 45px;
    height: 4px;
    border-radius: 2px;
    background: linear-gradient(to right, #FF8F00, #FF6F00);
    margin: 12px auto 0;
}

.form-item {
    margin-bottom: 20px;
}

.form-item input {
    width: 100%;
    height: 42px;
    border: 1px solid #000000;
    border-radius: 6px;
    background-color: #ffffff;
    padding: 0 12px;
    font-size: 15px;
    color: #000000;
    outline: none;
}

.form-item input:focus {
    border-color: #FF8F00;
}

.login-btn {
    width: 100%;
    height: 44px;
    background: linear-gradient(to bottom, #FF8F00, #FF6F00);
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-family: 'ukj', 'Microsoft YaHei', sans-serif;
    cursor: pointer;
    margin-top: 5px;
}

.login-btn:hover {
    opacity: 0.88;
}

/* ===== 全局删除确认弹窗 ===== */
.confirm-mask {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 3000;
    align-items: center;
    justify-content: center;
}

.confirm-box {
    width: 320px;
    background: #FFFFFF;
    border-radius: 12px;
    padding: 24px 20px 16px;
    box-sizing: border-box;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}

.confirm-text {
    font-size: 15px;
    color: #333333;
    text-align: center;
    line-height: 1.6;
    margin-bottom: 20px;
}

.confirm-btns {
    display: flex;
    gap: 12px;
}

.confirm-btns button {
    flex: 1;
    height: 36px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
}

.confirm-cancel {
    background: #F2F3F5;
    color: #666666;
}

.confirm-cancel:hover {
    background: #E8E9EB;
}

.confirm-ok {
    background: #E53935;
    color: #FFFFFF;
}

.confirm-ok:hover {
    background: #D32F2F;
}

/* ===== 表格斑马纹：奇数行白色、偶数行浅灰，方便逐行分辨 ===== */
.banner-table tbody tr:nth-child(even) > td {
    background-color: #F7F8FA;
}
.banner-table tbody tr:hover > td {
    background-color: #F7F8FA;
}

/* ===== 用户管理 ===== */
.banner-table .col-uid { width: 90px; text-align: center; }
.banner-table .col-uname { width: 170px; }
.banner-table .col-openid { width: 230px; }
.banner-table .col-vipuser { width: 120px; text-align: center; }
.banner-table .col-regtime { width: 210px; text-align: center; }

.banner-table .user-cell {
    padding-left: 10px;
    padding-right: 10px;
    font-size: 13px;
    color: #333333;
}

/* 系统分发ID（纯文字，无背景） */
.member-id {
    color: #333333;
    font-size: 13px;
    letter-spacing: 1px;
}

/* 用户头像 + 昵称 */
.uname-box {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
}
.user-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    background-color: #EEEEEE;
}
.uname-tx {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

/* OpenID 等宽小字 + 省略号，悬停 title 看全 */
.openid-tx {
    display: block;
    font-family: Consolas, Menlo, monospace;
    font-size: 12px;
    color: #888888;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

/* 会员列：会员显示金色到期日期，非会员显示灰色普通 */
.vip-expire-text {
    color: #E68A00;
    font-size: 13px;
    font-weight: bold;
    white-space: nowrap;
}
.vip-normal-text {
    color: #999999;
    font-size: 13px;
}

/* 操作按钮（与影片管理“编辑”同款绿色按钮） */
.addvip-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 30px;
    padding: 0 16px;
    border: 1px solid #43A047;
    border-radius: 4px;
    background-color: #43A047;
    color: #ffffff;
    font-size: 13px;
    cursor: pointer;
    white-space: nowrap;
}
.addvip-btn:hover {
    background-color: #388E3C;
    border-color: #388E3C;
}

/* 加VIP 弹窗内的天数快捷按钮 */
.vip-day-shortcuts {
    display: flex;
    gap: 8px;
    margin: -4px 0 6px;
}
.vip-day-shortcuts button {
    flex: 1;
    height: 32px;
    border: 1px solid #DDDDDD;
    border-radius: 6px;
    background-color: #F7F8FA;
    color: #555555;
    font-size: 13px;
    cursor: pointer;
}
.vip-day-shortcuts button:hover {
    border-color: #FFB300;
    color: #E68A00;
    background-color: #FFF8E1;
}
