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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft Yahei", sans-serif;
    background: #020617;
    color: #e5e7eb;
}

a {
    color: inherit;
    text-decoration: none;
}

/* 登录页 */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 0 0, #3b82f6 0, #020617 45%, #020617 100%);
}

.login-card {
    width: 100%;
    max-width: 520px;
    display: grid;
    grid-template-columns: 1fr;
    background: radial-gradient(circle at top left, rgba(56,189,248,0.2), rgba(15,23,42,0.96));
    border-radius: 24px;
    padding: 28px 32px;
    border: 1px solid rgba(148,163,184,0.4);
    box-shadow: 0 28px 80px rgba(15,23,42,0.95);
    backdrop-filter: blur(20px);
}

.login-main {
    padding-right: 0;
}

.login-brand {
    display: flex;
    align-items: center;
    margin-bottom: 18px;
}

.login-logo {
    width: 40px;
    height: 40px;
    border-radius: 14px;
    background: conic-gradient(from 140deg, #38bdf8, #6366f1, #22c55e, #38bdf8);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 20px;
}

.login-title {
    margin-left: 10px;
}

.login-title-main {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.06em;
}

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

.login-heading {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 6px;
    text-align: center;
}

.login-desc {
    font-size: 13px;
    color: #9ca3af;
    margin-bottom: 18px;
    text-align: center;
}

.login-form-group {
    margin-bottom: 14px;
}

.login-label {
    font-size: 13px;
    margin-bottom: 4px;
    display: flex;
    justify-content: space-between;
}

.login-input {
    width: 100%;
    padding: 9px 11px;
    border-radius: 10px;
    border: 1px solid rgba(148,163,184,0.7);
    background: rgba(15,23,42,0.9);
    color: #e5e7eb;
    font-size: 13px;
    outline: none;
    transition: all 0.18s ease;
}

.login-input:focus {
    border-color: #38bdf8;
    box-shadow: 0 0 0 1px rgba(56,189,248,0.4);
}

.login-input::placeholder {
    color: #6b7280;
}

.login-error {
    margin-bottom: 12px;
    padding: 8px 11px;
    border-radius: 10px;
    background: rgba(248,113,113,0.12);
    border: 1px solid rgba(248,113,113,0.55);
    color: #fecaca;
    font-size: 12px;
}

.login-button {
    width: 100%;
    border: none;
    border-radius: 999px;
    padding: 10px 16px;
    margin-top: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    background: linear-gradient(135deg, #38bdf8, #6366f1);
    color: #eff6ff;
    box-shadow: 0 16px 40px rgba(37,99,235,0.7);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    letter-spacing: 0.06em;
}

.login-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 22px 50px rgba(37,99,235,0.8);
}

.login-button:active {
    transform: translateY(0);
    box-shadow: 0 12px 32px rgba(37,99,235,0.6);
}

.login-button-icon {
    font-size: 16px;
}

.login-footer {
    margin-top: 14px;
    font-size: 11px;
    color: #6b7280;
    text-align: right;
}

.login-side {
    border-radius: 18px;
    padding: 18px 18px 16px;
    background: radial-gradient(circle at top right, rgba(56,189,248,0.25), rgba(15,23,42,0.96));
    border: 1px solid rgba(148,163,184,0.6);
    box-shadow: inset 0 0 0 1px rgba(15,23,42,0.7);
    font-size: 12px;
    color: #9ca3af;
}

.login-side-title {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #a5b4fc;
    margin-bottom: 6px;
}

.login-side-main {
    font-size: 14px;
    margin-bottom: 8px;
    color: #e5e7eb;
}

.login-side-highlight {
    color: #38bdf8;
    font-weight: 600;
}

.login-side-list {
    list-style: none;
}

.login-side-list li {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
}

.login-side-dot {
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: linear-gradient(135deg, #38bdf8, #6366f1);
}

@media (max-width: 768px) {
    .login-card {
        grid-template-columns: 1fr;
        padding: 20px 18px;
    }
    .login-main {
        padding-right: 0;
        margin-bottom: 14px;
    }
}

/* 后台布局 */
.admin-shell {
    display: grid;
    grid-template-columns: 220px 1fr;
    min-height: 100vh;
    background: radial-gradient(circle at 0 0, #0f172a 0, #020617 55%, #020617 100%);
}

.admin-sidebar {
    background: radial-gradient(circle at top left, rgba(15,23,42,1), rgba(15,23,42,0.98));
    border-right: 1px solid rgba(148,163,184,0.35);
    padding: 16px 14px;
    display: flex;
    flex-direction: column;
}

.admin-sidebar-brand {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.admin-sidebar-logo {
    width: 32px;
    height: 32px;
    border-radius: 12px;
    background: conic-gradient(from 160deg, #22c55e, #38bdf8, #6366f1, #22c55e);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 800;
}

.admin-sidebar-title {
    margin-left: 8px;
    font-size: 14px;
    font-weight: 600;
}

.admin-menu {
    list-style: none;
    margin-top: 8px;
    flex: 1;
}

.admin-menu-item {
    margin-bottom: 4px;
}

.admin-menu-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 9px;
    border-radius: 9px;
    font-size: 13px;
    color: #9ca3af;
    transition: all 0.16s ease;
}

.admin-menu-link-sub {
    padding-left: 20px;
    font-size: 12px;
}

.admin-menu-link span {
    white-space: nowrap;
}

.admin-menu-link.active,
.admin-menu-link:hover {
    background: linear-gradient(135deg, rgba(56,189,248,0.18), rgba(79,70,229,0.18));
    color: #e5e7eb;
}

.admin-menu-icon {
    width: 18px;
    text-align: center;
    font-size: 14px;
}

.admin-menu-item-has-sub .admin-menu-caret {
    margin-left: auto;
    font-size: 11px;
    color: #6b7280;
}

.admin-submenu {
    list-style: none;
    margin: 4px 0 0 0;
    padding-left: 0;
    display: none;
}

.admin-menu-item-has-sub.open > .admin-submenu {
    display: block;
}

/* 三级菜单样式 */
.admin-submenu-level3 {
    margin-left: 20px;
    margin-top: 4px;
}

.admin-menu-link-sub3 {
    padding-left: 36px !important;
    font-size: 12px;
}

.admin-sidebar-footer {
    margin-top: auto;
    font-size: 11px;
    color: #6b7280;
}

.admin-content {
    display: flex;
    flex-direction: column;
}

.admin-topbar {
    height: 54px;
    border-bottom: 1px solid rgba(148,163,184,0.35);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 18px;
    backdrop-filter: blur(16px);
    background: linear-gradient(to right, rgba(15,23,42,0.96), rgba(15,23,42,0.9));
}

.admin-topbar-left {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #9ca3af;
}

.admin-badge {
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 999px;
    border: 1px solid rgba(148,163,184,0.7);
}

.admin-topbar-right {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
}

/* 顶部标签栏 */
.admin-tabbar-wrapper {
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 12px;
    border-bottom: 1px solid rgba(31,41,55,0.9);
    background: rgba(15,23,42,0.96);
}

.admin-tabbar {
    display: flex;
    align-items: center;
    gap: 4px;
    overflow-x: auto;
    scrollbar-width: none;
}

.admin-tabbar::-webkit-scrollbar {
    display: none;
}

.admin-tab {
    display: inline-flex;
    align-items: center;
    max-width: 140px;
    padding: 4px 8px;
    border-radius: 8px;
    font-size: 12px;
    color: #9ca3af;
    background: rgba(15,23,42,0.9);
    border: 1px solid transparent;
    cursor: pointer;
}

.admin-tab.active {
    color: #e5e7eb;
    border-color: rgba(59,130,246,0.9);
    background: rgba(30,64,175,0.8);
}

.admin-tab-title {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-tab-close {
    margin-left: 6px;
    font-size: 12px;
    opacity: 0.7;
}

.admin-tab-close:hover {
    opacity: 1;
}

.admin-tabbar-tools {
    position: relative;
    margin-left: 8px;
}

.admin-tabbar-more-btn {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    border: 1px solid rgba(148,163,184,0.6);
    background: transparent;
    color: #e5e7eb;
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
}

.admin-tabbar-menu {
    position: absolute;
    right: 0;
    top: 30px;
    min-width: 100px;
    background: #f9fafb;
    color: #111827;
    border-radius: 6px;
    box-shadow: 0 8px 24px rgba(15,23,42,0.35);
    padding: 6px 0;
    z-index: 80;
    display: none;
}

.admin-tabbar-menu.show {
    display: block;
}

.admin-tabbar-menu > div {
    padding: 6px 12px;
    font-size: 12px;
    cursor: pointer;
}

.admin-tabbar-menu > div:hover {
    background: #e5e7eb;
}

.admin-user-name {
    font-weight: 500;
}

.admin-user-role {
    font-size: 11px;
    color: #9ca3af;
}

.admin-avatar {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: linear-gradient(135deg, #38bdf8, #6366f1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
}

.admin-logout {
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid rgba(148,163,184,0.6);
    color: #e5e7eb;
}

/* 顶部选项卡栏 */
.admin-tabbar {
    height: 32px;
    border-bottom: 1px solid rgba(15,23,42,0.9);
    display: flex;
    align-items: center;
    padding: 0 12px;
    background: rgba(15,23,42,0.98);
    overflow-x: auto;
    white-space: nowrap;
}

.admin-tabbar-list {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
}

.admin-tabbar-item {
    display: inline-flex;
    align-items: center;
    max-width: 140px;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    color: #9ca3af;
    cursor: pointer;
    background: transparent;
    border: 1px solid transparent;
}

.admin-tabbar-item.active {
    background: rgba(30,64,175,0.8);
    color: #e5e7eb;
    border-color: rgba(59,130,246,0.9);
}

.admin-tabbar-item span {
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-tabbar-item-close {
    margin-left: 6px;
    font-size: 11px;
    opacity: 0.6;
}

.admin-tabbar-item-close:hover {
    opacity: 1;
}

.admin-tabbar-menu {
    position: absolute;
    z-index: 100;
    min-width: 88px;
    padding: 4px 0;
    background: rgba(15,23,42,0.98);
    border: 1px solid rgba(148,163,184,0.6);
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.6);
    font-size: 12px;
    color: #e5e7eb;
    display: none;
}

.admin-tabbar-menu-item {
    padding: 4px 12px;
    cursor: pointer;
}

.admin-tabbar-menu-item:hover {
    background: rgba(30,64,175,0.8);
}

.admin-main {
    padding: 16px 18px 20px;
    overflow: auto;
}

.admin-page-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 6px;
}

.admin-page-desc {
    font-size: 13px;
    color: #9ca3af;
    margin-bottom: 16px;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 2fr 1.4fr;
    gap: 16px;
    align-items: start;
}

.card {
    border-radius: 16px;
    padding: 14px 16px;
    background: radial-gradient(circle at top left, rgba(15,23,42,0.96), rgba(15,23,42,0.98));
    border: 1px solid rgba(148,163,184,0.4);
    box-shadow: 0 18px 40px rgba(15,23,42,0.9);
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.card-title {
    font-size: 14px;
    font-weight: 600;
}

.card-tag {
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 999px;
    border: 1px solid rgba(148,163,184,0.6);
    color: #9ca3af;
}

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

.metric {
    padding: 8px 9px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(56,189,248,0.18), rgba(79,70,229,0.08));
}

.metric-label {
    font-size: 11px;
    color: #9ca3af;
    margin-bottom: 4px;
}

.metric-value {
    font-size: 18px;
    font-weight: 700;
}

.metric-sub {
    font-size: 11px;
    color: #6b7280;
}

.timeline {
    list-style: none;
    font-size: 12px;
}

.timeline li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}

.timeline-label {
    color: #9ca3af;
}

/* 工作台 · 快捷入口 */
.quick-links {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
}

.quick-link-item {
    padding: 8px 10px;
    border-radius: 10px;
    background: rgba(15,23,42,0.9);
    border: 1px solid rgba(148,163,184,0.4);
    cursor: pointer;
    font-size: 12px;
    color: #e5e7eb;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.quick-link-item span:nth-child(1) {
    font-weight: 600;
}

.quick-link-item span:nth-child(2) {
    color: #9ca3af;
    font-size: 11px;
}

.timeline-time {
    color: #6b7280;
}

/* 工作台 · 最近操作：用于补齐固定行数占位 */
.timeline-empty .timeline-label,
.timeline-empty .timeline-time {
    opacity: 0;
}

/* 工作台 · 最近操作（表格）：固定高度 + 滚动，提升信息密度 */
.dashboard-logs-table-wrapper {
    max-height: 240px;
    overflow: auto;
    border-radius: 12px;
}

/* 在线更新模态框 */
.update-modal-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 12px;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(15,23,42,0.75);
    border: 1px solid rgba(148,163,184,0.35);
}

.update-row {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 12px;
    color: #9ca3af;
    min-width: 0;
    align-items: center;
    text-align: center;
}

.update-row b {
    color: #e5e7eb;
    font-weight: 700;
    font-size: 13px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.update-mono {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 11px;
    color: #cbd5e1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.update-changelog {
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(2,6,23,0.65);
    border: 1px solid rgba(30,64,175,0.45);
    color: #cbd5e1;
    font-size: 12px;
    line-height: 1.6;
    max-height: 190px;
    overflow: auto;
}

.update-changelog ul {
    margin-left: 16px;
}

.update-changelog li {
    margin-bottom: 4px;
}

.update-msg {
    padding: 8px 10px;
    border-radius: 10px;
    background: rgba(34,197,94,0.12);
    border: 1px solid rgba(34,197,94,0.55);
    color: #bbf7d0;
    font-size: 12px;
}

.update-msg.error {
    background: rgba(248,113,113,0.12);
    border-color: rgba(248,113,113,0.55);
    color: #fecaca;
}

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

/* 通用表格与分页 */
.admin-table-wrapper {
    width: 100%;
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.admin-table thead {
    background: rgba(15,23,42,0.9);
}

.admin-table th,
.admin-table td {
    padding: 8px 10px;
    border-bottom: 1px solid rgba(30,64,175,0.5);
    text-align: left;
}

.admin-table th {
    font-weight: 500;
    color: #9ca3af;
    white-space: nowrap;
}

.admin-table tbody tr:nth-child(odd) {
    background: rgba(15,23,42,0.7);
}

.admin-table tbody tr:nth-child(even) {
    background: rgba(15,23,42,0.9);
}

.admin-filter-bar {
    margin-bottom: 10px;
    font-size: 12px;
}

.admin-filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    align-items: flex-end;
}

.admin-filter-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 6px;
}

.admin-filter-item label {
    color: #9ca3af;
    font-size: 12px;
}

.admin-filter-item label::after {
    content: '：';
}

.admin-filter-item input,
.admin-filter-item select {
    background: rgba(15,23,42,0.9);
    border-radius: 8px;
    border: 1px solid rgba(148,163,184,0.6);
    padding: 4px 8px;
    color: #e5e7eb;
    font-size: 12px;
    min-width: 90px;
    max-width: 140px;
}

.admin-filter-actions {
    display: flex;
    gap: 8px;
    margin-left: auto;
}

.admin-filter-actions button {
    border: none;
    border-radius: 999px;
    padding: 5px 14px;
    font-size: 12px;
    color: #eff6ff;
    cursor: pointer;
    background: linear-gradient(135deg, #38bdf8, #6366f1);
}

.admin-filter-actions a {
    font-size: 12px;
    color: #9ca3af;
    padding: 5px 10px;
}

.admin-pagination {
    margin-top: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    color: #9ca3af;
}

.admin-pagination-links a {
    margin-left: 8px;
    padding: 4px 8px;
    border-radius: 999px;
    border: 1px solid rgba(148,163,184,0.6);
}

/* 通用按钮 */
.admin-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: none;
    padding: 4px 10px;
    font-size: 12px;
    color: #eff6ff;
    background: linear-gradient(135deg, #38bdf8, #6366f1);
    cursor: pointer;
}

.admin-btn-xs {
    padding: 3px 8px;
    font-size: 11px;
}

.admin-btn-ghost {
    background: transparent;
    border: 1px solid rgba(148,163,184,0.6);
    color: #e5e7eb;
}

.admin-btn-square {
    border-radius: 8px;
}

/* 开关样式：用户禁用（左右滑动样式） */
.switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 20px;
}

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

.switch-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background-color: #22c55e; /* 启用中：绿色 */
    transition: .2s;
    border-radius: 999px;
    box-shadow: inset 0 0 0 1px rgba(15,23,42,0.6);
}

.switch-slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 2px;
    top: 2px;
    background-color: #e5e7eb;
    transition: .2s;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(15,23,42,0.7);
}

/* checked 表示“已禁用” */
.switch input:checked + .switch-slider {
    background-color: #ef4444; /* 禁用：红色 */
}

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

/* 开关样式：启用/开启（checked 表示已开启） */
.switch.switch-enabled .switch-slider {
    background-color: rgba(148,163,184,0.55); /* 未开启：灰色 */
}

.switch.switch-enabled input:checked + .switch-slider {
    background-color: #22c55e; /* 已开启：绿色 */
}

/* 全局轻提示 Toast */
.admin-toast {
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, 16px);
    max-width: 360px;
    padding: 12px 18px;
    border-radius: 12px;
    background: rgba(22,163,74,0.96);
    color: #ecfdf5;
    font-size: 13px;
    box-shadow: 0 18px 40px rgba(15,23,42,0.9);
    opacity: 0;
    pointer-events: none;
    transition: opacity .18s ease, transform .18s ease;
    z-index: 60;
    text-align: center;
}

.admin-toast.error {
    background: rgba(248,113,113,0.96);
    color: #fee2e2;
}

.admin-toast.show {
    opacity: 1;
    transform: translate(-50%, -50%);
}

/* 用户编辑模态框 */
.admin-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15,23,42,0.75);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 70;
}

.admin-modal {
    width: 520px;
    max-width: 90%;
    background: rgba(15,23,42,0.98);
    border-radius: 16px;
    border: 1px solid rgba(148,163,184,0.4);
    box-shadow: 0 24px 70px rgba(0,0,0,0.85);
    padding: 14px 16px 16px;
    color: #e5e7eb;
    font-size: 13px;
}

.admin-modal-header {
    font-weight: 600;
    margin-bottom: 10px;
}

.admin-modal-body {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 8px 12px;
    margin-bottom: 12px;
}

.admin-modal-row label {
    display: block;
    margin-bottom: 2px;
    font-size: 12px;
    color: #9ca3af;
}

.admin-modal-row input,
.admin-modal-row select {
    width: 100%;
    padding: 6px 8px;
    border-radius: 8px;
    border: 1px solid rgba(148,163,184,0.6);
    background: rgba(15,23,42,0.9);
    color: #e5e7eb;
    font-size: 12px;
}

/* 让 checkbox/radio 不被当成文本输入框拉满宽度 */
.admin-modal-row input[type="checkbox"],
.admin-modal-row input[type="radio"] {
    width: auto;
    padding: 0;
    border: none;
    background: transparent;
}

.admin-modal-row-full {
    grid-column: 1 / -1;
}

/* 渠道配置页面：表单一行一个，更像微信后台布局 */
.channel-form-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.channel-form-body .admin-modal-row {
    display: flex;
    align-items: center;
    gap: 16px;
}

.channel-form-body .admin-modal-row label {
    width: 120px;
    margin-bottom: 0;
    text-align: right;
}

.channel-form-body .admin-modal-row input,
.channel-form-body .admin-modal-row select,
.channel-form-body .admin-modal-row textarea {
    max-width: 480px;
}

/* textarea 样式优化 */
.channel-form-body .admin-modal-row textarea {
    width: 100%;
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid rgba(148,163,184,0.6);
    background: rgba(15,23,42,0.9);
    color: #e5e7eb;
    font-size: 12px;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    line-height: 1.5;
    resize: vertical;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.channel-form-body .admin-modal-row textarea:focus {
    border-color: #38bdf8;
    box-shadow: 0 0 0 1px rgba(56,189,248,0.4);
}

.channel-form-body .admin-modal-row textarea::placeholder {
    color: #6b7280;
}

/* 基础配置：输入宽度收窄，保持居中布局 */
.base-form-body .admin-modal-row {
    display: flex;
    align-items: center;
    gap: 16px;
}

.base-form-body .admin-modal-row label {
    width: 120px;
    margin-bottom: 0;
    text-align: right;
}

.base-form-body .admin-modal-row input,
.base-form-body .admin-modal-row select {
    max-width: 480px;
}

/* 表单通用：操作区域（按钮在表单内容正下方略偏左） */
.form-actions-left {
    margin-top: 12px;
    padding-left: 260px; /* 120(label) + 16(gap)，与输入区域对齐 */
    text-align: left;
}

/* 渠道/基础配置：保存按钮尺寸与圆角单独优化 */
.form-actions-left .admin-btn {
    padding: 6px 22px;        /* 比默认更大一些 */
    font-size: 13px;          /* 字稍微大一点 */
    border-radius: 6px;       /* 不要完全圆角，改为轻微圆角矩形 */
}

/* 复制按钮样式 */
.btn-copy {
    padding: 4px 12px;
    font-size: 12px;
    border-radius: 6px;
    border: 1px solid rgba(148,163,184,0.6);
    background: rgba(15,23,42,0.9);
    color: #9ca3af;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-copy:hover {
    background: rgba(15,23,42,1);
    border-color: rgba(148,163,184,0.8);
    color: #e5e7eb;
}

/* 带复制按钮的输入框组 */
.input-with-copy {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    max-width: 480px; /* 与普通输入框一致 */
}

.input-with-copy input {
    flex: 1;
    width: 100%;
    max-width: none; /* 避免被 480px 限制后整体变窄 */
}

/* 单选按钮组样式 */
.channel-form-body input[type="radio"] {
    width: 14px;
    height: 14px;
    margin: 0;
    cursor: pointer;
}

.channel-form-body label label {
    cursor: pointer;
    color: #e5e7eb;
    font-size: 12px;
}

.admin-modal-toggle-row {
    display: flex;
    align-items: center;
    gap: 24px;
}

.admin-modal-toggle-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #9ca3af;
}

.admin-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

/* 用户卡片网格 */
.user-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 12px;
}

.user-card {
    border-radius: 14px;
    padding: 10px 12px;
    background: radial-gradient(circle at top left, rgba(15,23,42,0.96), rgba(15,23,42,0.98));
    border: 1px solid rgba(148,163,184,0.35);
    font-size: 12px;
}

.user-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.user-card-avatar {
    width: 38px;
    height: 38px;
    border-radius: 999px;
    background: linear-gradient(135deg, #38bdf8, #6366f1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    color: #eff6ff;
    overflow: hidden;
}

.user-card-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-card-main {
    flex: 1;
    min-width: 0;
}

.user-card-name {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 2px;
}

.user-card-sub {
    font-size: 11px;
    color: #9ca3af;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-card-tag {
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 999px;
    border: 1px solid rgba(148,163,184,0.6);
    color: #9ca3af;
}

.user-card-tag-vip {
    border-color: rgba(250,204,21,0.8);
    color: #facc15;
}

.user-card-body {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px 10px;
}

.user-card-item .label {
    display: block;
    font-size: 11px;
    color: #6b7280;
}

.user-card-item .value {
    font-size: 12px;
    color: #e5e7eb;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 900px) {
    .admin-shell {
        grid-template-columns: 1fr;
    }
    .admin-sidebar {
        display: none;
    }
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}


