/* 管理后台专用样式 - 更清晰、分组、卡片化 */
.admin-layout {
    background: var(--bg);
}

.admin-sidebar {
    width: 240px;
    flex-shrink: 0;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    background: var(--bg-elevated);
    border-right: 1px solid var(--border);
    padding: 20px 0;
    box-shadow: 1px 0 0 rgba(0,0,0,.03);
    display: flex;
    flex-direction: column;
}

.admin-sidebar .sidebar-brand {
    padding: 0 24px 20px;
    font-weight: 600;
    font-size: 15px;
    color: var(--text);
    border-bottom: 1px solid var(--border);
    margin-bottom: 12px;
}

.admin-sidebar .sidebar-group {
    padding: 8px 0;
}

.admin-sidebar .sidebar-group-title {
    padding: 8px 24px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--text-secondary);
}

.admin-sidebar a {
    display: block;
    padding: 10px 24px;
    color: var(--text);
    text-decoration: none;
    font-size: 14px;
    border-left: 3px solid transparent;
    margin-left: 0;
    transition: background .15s, color .15s;
}

.admin-sidebar a:hover {
    color: var(--accent);
    background: rgba(0,113,227,.06);
}

.admin-sidebar a.active {
    color: var(--accent);
    background: rgba(0,113,227,.08);
    border-left-color: var(--accent);
    font-weight: 500;
}

.admin-sidebar a.sidebar-link-with-new {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.admin-sidebar .sidebar-new-badge {
    flex-shrink: 0;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    font-size: 11px;
    font-weight: 600;
    line-height: 18px;
    text-align: center;
    color: #fff;
    background: #e11d48;
    border-radius: 9px;
    box-sizing: border-box;
}
.admin-sidebar .sidebar-new-pulse {
    animation: sidebar-new-pulse 1.8s ease-in-out infinite;
}
@keyframes sidebar-new-pulse {
    0%, 100% { opacity: 1; transform: scale(1); box-shadow: 0 0 0 0 rgba(225, 29, 72, 0.4); }
    50% { opacity: 0.95; transform: scale(1.05); box-shadow: 0 0 0 6px rgba(225, 29, 72, 0); }
}

.admin-sidebar .sidebar-footer {
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    flex-shrink: 0;
}

.admin-sidebar .sidebar-search {
    padding: 0 16px 12px;
}
.admin-sidebar .sidebar-search form {
    display: flex;
    align-items: center;
    gap: 8px;
}
.admin-sidebar .sidebar-search input[type="search"] {
    flex: 1;
    min-width: 0;
    min-height: 36px;
    padding: 8px 10px;
    font-size: 13px;
    border: 1px solid var(--border);
    border-radius: 6px;
    box-sizing: border-box;
}
.admin-sidebar .sidebar-search .btn {
    flex-shrink: 0;
    min-height: 36px;
    padding: 8px 12px;
    box-sizing: border-box;
}

.admin-body {
    flex: 1;
    padding: 32px 40px 48px;
    max-width: 800px;
    min-width: 0;
}
.admin-body.admin-body-wide {
    max-width: 1200px;
}

.admin-body .page-header {
    margin-bottom: 28px;
}

/* 小号按钮（新增公告、新增成员等） */
.btn-sm { padding: 6px 14px !important; font-size: 14px !important; }
.cmd-add-cat .btn { padding: 6px 14px; font-size: 14px; }
.btn-add-item { padding: 6px 14px; font-size: 14px; }
.admin-body > p > .btn.btn-primary { padding: 6px 14px; font-size: 14px; }
.admin-body > p > .btn.btn-secondary { padding: 6px 14px; font-size: 14px; }

.admin-body .page-title {
    font-size: 26px;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin: 0 0 6px;
}

.admin-body .page-desc {
    font-size: 15px;
    color: var(--text-secondary);
    margin: 0;
}

/* 仪表盘分区与卡片网格 */
.admin-dashboard-section {
    margin-bottom: 32px;
}
.admin-dashboard-section:last-of-type {
    margin-bottom: 0;
}
.admin-dashboard-section-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    margin: 0 0 12px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--border);
    text-transform: uppercase;
    letter-spacing: .03em;
}
.admin-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
    margin-top: 12px;
}
.admin-dashboard-card {
    opacity: 0;
    animation: adminFadeInUp 0.4s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.admin-dashboard-card:nth-child(1) { animation-delay: 0.02s; }
.admin-dashboard-card:nth-child(2) { animation-delay: 0.05s; }
.admin-dashboard-card:nth-child(3) { animation-delay: 0.08s; }
.admin-dashboard-card:nth-child(4) { animation-delay: 0.11s; }
.admin-dashboard-card:nth-child(5) { animation-delay: 0.14s; }
.admin-dashboard-card:nth-child(6) { animation-delay: 0.17s; }
.admin-dashboard-card:nth-child(7) { animation-delay: 0.2s; }
.admin-dashboard-card:nth-child(8) { animation-delay: 0.23s; }
.admin-dashboard-card:nth-child(9) { animation-delay: 0.26s; }
.admin-dashboard-card:nth-child(10) { animation-delay: 0.29s; }
.admin-dashboard-card:nth-child(n+11) { animation-delay: 0.32s; }
@keyframes adminFadeInUp {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}
.admin-dashboard-section + .admin-dashboard-section .admin-dashboard-grid {
    margin-top: 12px;
}

/* 数据统计看板 */
.admin-stats-section {
    margin-bottom: 32px;
}
.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
}
.admin-stat-card {
    background: var(--bg-elevated, #f8f9fa);
    border: 1px solid var(--border, #e5e7eb);
    border-radius: var(--radius, 8px);
    padding: 16px;
    text-align: center;
    opacity: 0;
    animation: adminFadeInUp 0.35s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.admin-stat-card:nth-child(1) { animation-delay: 0s; }
.admin-stat-card:nth-child(2) { animation-delay: 0.03s; }
.admin-stat-card:nth-child(3) { animation-delay: 0.06s; }
.admin-stat-card:nth-child(4) { animation-delay: 0.09s; }
.admin-stat-card:nth-child(5) { animation-delay: 0.12s; }
.admin-stat-card:nth-child(6) { animation-delay: 0.15s; }
.admin-stat-card:nth-child(7) { animation-delay: 0.18s; }
.admin-stat-card:nth-child(n+8) { animation-delay: 0.21s; }
.admin-stat-num {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: var(--accent, #0d9488);
}
.admin-stat-label {
    display: block;
    font-size: 12px;
    color: var(--text-secondary, #6b7280);
    margin-top: 4px;
}
.queue-list .btn-sm { padding: 6px 12px; font-size: 13px; }

.admin-dashboard-card {
    display: block;
    padding: 20px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--text);
    transition: border-color .2s, box-shadow .2s, transform .25s cubic-bezier(0.22, 1, 0.36, 1);
}

.admin-dashboard-card:hover {
    border-color: var(--accent);
    box-shadow: 0 4px 16px rgba(0,113,227,.12);
    transform: translateY(-2px);
}

.admin-dashboard-card .card-title {
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 4px;
}

.admin-dashboard-card .card-desc {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 0;
}

/* 站点设置 - 标签页 */
.settings-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 0;
}
.settings-tab {
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    cursor: pointer;
    border-radius: var(--radius) var(--radius) 0 0;
    transition: color .2s, background .2s;
}
.settings-tab:hover {
    color: var(--text);
    background: rgba(0,0,0,.03);
}
.settings-tab.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
    background: var(--bg-elevated);
}
.settings-panel {
    margin-bottom: 24px;
}
.settings-actions {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

/* 表单卡片分组 */
.admin-form-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 24px;
}

.admin-form-card:last-of-type {
    margin-bottom: 0;
}

.admin-form-card .card-heading {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--text-secondary);
    margin: 0 0 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}

.admin-form-card .form-group {
    margin-bottom: 18px;
}

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

.admin-form-card .form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 6px;
}

.admin-form-card .form-group input[type="text"],
.admin-form-card .form-group input[type="url"],
.admin-form-card .form-group input[type="email"],
.admin-form-card .form-group input[type="password"],
.admin-form-card .form-group input[type="number"],
.admin-form-card .form-group select {
    width: 100%;
    max-width: 560px;
    box-sizing: border-box;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 15px;
    background: var(--bg);
    color: var(--text);
}

.admin-form-card .form-group select {
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-color: var(--bg);
    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='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}
.admin-form-card .form-group-role .form-hint.role-hint { margin-top: 8px; }

.admin-form-card .form-group input:focus,
.admin-form-card .form-group select:focus {
    outline: none;
    border-color: var(--accent);
}

.admin-form-card .form-hint {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 6px;
}

.smtp-test-form {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.smtp-test-form input[type="email"] {
    width: 260px;
    max-width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 14px;
}

.verification-email-preview-wrap {
    margin-top: 16px;
    padding: 16px;
    background: var(--bg-secondary, #f6f6f6);
    border-radius: 8px;
    border: 1px solid var(--border);
}
.verification-email-preview-wrap .preview-header {
    margin-bottom: 12px;
    font-size: 14px;
    color: var(--text-secondary);
}
.verification-email-preview-wrap .preview-iframe {
    display: block;
    width: 100%;
    min-height: 360px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: #fff;
}

/* 开关样式 */
.admin-switch-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

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

.admin-switch-row label {
    margin: 0;
    font-size: 15px;
    cursor: pointer;
}

.admin-switch-row input[type="checkbox"] {
    width: 44px;
    height: 24px;
    accent-color: var(--accent);
    cursor: pointer;
}

/* 导航菜单表格式 */
.nav-menu-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg);
}
.nav-menu-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
.nav-menu-table th {
    text-align: left;
    font-weight: 600;
    color: var(--text-secondary);
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    background: var(--bg-elevated);
}
.nav-menu-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}
.nav-menu-table tbody tr:last-child td {
    border-bottom: none;
}
.nav-menu-table tbody tr:hover {
    background: var(--bg-elevated);
}
.nav-col-show { width: 1%; white-space: nowrap; }
.nav-col-label { min-width: 160px; }
.nav-col-url { width: 1%; white-space: nowrap; }
.nav-checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    cursor: pointer;
    font-weight: normal;
    color: var(--text);
}
.nav-checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--accent);
    cursor: pointer;
    flex-shrink: 0;
}
.nav-checkbox-text {
    font-size: 14px;
}
.nav-label-input {
    width: 100%;
    max-width: 200px;
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 14px;
    background: var(--bg);
    color: var(--text);
}
.nav-label-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(0, 122, 255, 0.2);
}
.nav-url-code {
    font-size: 12px;
    color: var(--text-secondary);
    background: var(--bg-elevated);
    padding: 4px 8px;
    border-radius: 4px;
}

/* 消息条 */
.admin-body .message {
    border-radius: 10px;
    padding: 14px 18px;
    margin-bottom: 24px;
    font-size: 15px;
}

.admin-body .message.success {
    background: rgba(0,122,0,.1);
    color: #0a7d0a;
    border: 1px solid rgba(0,122,0,.2);
}

.admin-body .message.error {
    background: rgba(255,59,48,.08);
    color: #c00;
    border: 1px solid rgba(255,59,48,.2);
}

.log-table-wrap { overflow-x: auto; }
.log-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.log-table th, .log-table td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--border); }
.log-table th { font-weight: 600; color: var(--text-secondary); }
.log-table .log-ip { font-family: ui-monospace, monospace; font-size: 13px; }
.log-table .log-id { font-weight: 500; }
.log-table .log-account { max-width: 200px; word-break: break-word; }
.log-table .log-time { white-space: nowrap; color: var(--text-secondary); }
.log-table .log-detail { max-width: 280px; word-break: break-word; color: var(--text-secondary); }
.log-table .log-empty { color: var(--text-secondary); text-align: center; padding: 24px; }

.log-search-card { margin-bottom: 16px; padding: 12px 16px; }
.log-search-form .log-search-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.log-search-form .log-search-label { flex: 0 0 auto; font-weight: 500; font-size: 14px; }
.log-search-form .log-search-input { flex: 1; min-width: 160px; max-width: 320px; padding: 6px 10px; border: 1px solid var(--border); border-radius: var(--radius); font-size: 14px; }
.log-search-form .log-search-row .btn { padding: 6px 14px; font-size: 14px; }
.log-search-form .log-advanced-panel { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border); }
.log-search-form .log-advanced-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.log-search-form .log-advanced-row label { min-width: 120px; font-weight: 500; font-size: 13px; }
.log-search-form .log-advanced-row input[type="date"],
.log-search-form .log-advanced-row input[type="text"] {
    padding: 5px 8px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 13px;
    max-width: 200px;
    box-sizing: border-box;
    background: var(--bg);
    color: var(--text);
}
.log-search-form .log-advanced-row input[type="date"] {
    min-width: 140px;
    min-height: 28px;
}
.log-search-form .log-advanced-row input[type="date"]:focus {
    outline: none;
    border-color: var(--accent);
}
.log-search-form .log-advanced-actions { margin-top: 10px; display: flex; gap: 8px; }
.log-search-form .log-advanced-actions .btn { padding: 5px 12px; font-size: 13px; }
.log-result-count { margin: 0 0 12px; font-size: 14px; color: var(--text-secondary); }

.restore-file-list { list-style: none; padding: 0; margin: 12px 0 0; }
.restore-file-list li { margin-bottom: 8px; }
.restore-file-list label { cursor: pointer; font-weight: normal; }

/* 备份上传文件选择 UI */
.file-upload-wrap { position: relative; margin-top: 8px; }
.file-upload-wrap .file-input {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    top: 0;
    left: 0;
    z-index: 1;
}
.file-upload-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 120px;
    padding: 24px;
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    background: var(--bg);
    cursor: pointer;
    transition: border-color .2s, background .2s;
}
.file-upload-wrap:hover .file-upload-label,
.file-upload-wrap .file-input:focus-visible + .file-upload-label {
    border-color: var(--accent);
    background: rgba(0, 113, 227, 0.04);
}
.file-upload-icon { font-size: 28px; margin-bottom: 8px; }
.file-upload-text { font-size: 15px; color: var(--text); font-weight: 500; }
.file-upload-hint { font-size: 13px; color: var(--text-secondary); margin-top: 4px; }
.file-upload-wrap .file-input:not(:placeholder-shown) + .file-upload-label .file-upload-text,
.file-upload-wrap.has-file .file-upload-text { font-weight: 600; color: var(--accent); }
.admin-form-card .form-label { display: block; font-weight: 500; margin-bottom: 4px; }
.perm-group { margin-top: 16px; padding: 16px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-secondary, rgba(0,0,0,.03)); }
.perm-group label:first-child { display: block; font-weight: 500; margin-bottom: 12px; color: var(--text); }
.perm-checkboxes { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px 20px; margin-top: 0; }
.perm-check { display: flex; align-items: center; gap: 10px; font-weight: normal; cursor: pointer; padding: 8px 10px; border-radius: var(--radius); transition: background .15s; }
.perm-check:hover { background: var(--bg-secondary, rgba(0,0,0,.04)); }
.perm-check input[type="checkbox"] { margin: 0; width: 18px; height: 18px; accent-color: var(--accent); cursor: pointer; flex-shrink: 0; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.admin-table th, .admin-table td { padding: 8px 10px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: middle; }
.admin-table th { font-weight: 600; color: var(--text-secondary); font-size: 13px; }
.admin-table td .btn { border-radius: 6px; padding: 5px 12px; font-size: 13px; white-space: nowrap; }

/* 用户管理表格：列宽与溢出省略 */
.users-toolbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.users-search-form { display: flex; align-items: center; gap: 8px; }
.users-search-input { padding: 8px 12px; font-size: 14px; border: 1px solid var(--border); border-radius: var(--radius); min-width: 220px; }
.users-search-input:focus { outline: none; border-color: var(--accent); }
.users-count { margin-top: 10px; font-size: 13px; color: var(--text-secondary); }
.users-table { table-layout: fixed; }
.users-table .col-name { width: 130px; max-width: 130px; }
.users-table .col-email { width: 160px; max-width: 160px; }
.users-table .col-role { width: 82px; }
.users-table .col-perms { width: 160px; max-width: 160px; }
.users-table .col-ip { width: 110px; max-width: 110px; font-size: 12px; color: var(--text-secondary); }
.users-table .col-lastip { width: 110px; max-width: 110px; font-size: 12px; color: var(--text-secondary); }
.users-table .col-time { width: 140px; white-space: nowrap; font-size: 13px; color: var(--text-secondary); }
.users-table .col-actions { width: 120px; min-width: 120px; }
.users-table .cell-ip { font-family: ui-monospace, monospace; }
.users-table .cell-text { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.users-table .col-perms { max-width: 160px; min-width: 0; }
.users-table .cell-perms { font-size: 12px; color: var(--text-secondary); white-space: nowrap; }
.users-table .cell-perms-inner { display: flex; align-items: center; gap: 4px; min-width: 0; }
.users-table .cell-perms-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; font-size: 12px; color: var(--text-secondary); }
.users-table .cell-perms-inner .users-perm-detail-btn { flex-shrink: 0; }
.users-table .users-row-actions { display: flex; align-items: center; gap: 6px; flex-wrap: nowrap; flex-direction: row; }
.users-table .users-row-actions > .users-edit-btn { order: 1; flex-shrink: 0; white-space: nowrap; }
.users-table .users-row-actions > .users-delete-form { order: 2; flex-shrink: 0; }
.users-table .users-delete-form { display: inline-flex; margin: 0; }
.users-table .btn-sm { padding: 4px 10px; font-size: 12px; }
.users-table .btn-danger { border-color: #c00; color: #c00; }
.users-table .btn-danger:hover { background: rgba(204,0,0,.08); }
.admin-users-card { overflow-x: auto; }
.issues-filter-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 12px; padding: 10px 14px; }
.issues-filter-bar > span { font-size: 13px; color: var(--text-secondary); margin-right: 4px; }
.issues-filter-bar .btn { padding: 5px 12px; font-size: 13px; }
.issues-filter-bar .btn.active { background: var(--accent); color: #fff; border-color: var(--accent); }
.admin-table .issue-list-title { max-width: 260px; font-size: 14px; }
/* 反馈管理表格：小屏防溢出，与举报列表一致 */
.issues-admin-table { table-layout: fixed; }
.issues-admin-table .col-id { width: 52px; max-width: 52px; white-space: nowrap; }
.issues-admin-table .col-type { max-width: 140px; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.issues-admin-table .col-status { width: 72px; max-width: 72px; white-space: nowrap; }
.issues-admin-table .col-title { max-width: 200px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.issues-admin-table .col-user { max-width: 140px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.issues-admin-table .col-time { width: 140px; max-width: 140px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 13px; color: var(--text-secondary); }
.issues-admin-table .col-actions { width: 80px; max-width: 80px; white-space: nowrap; }
.issues-admin-table td.col-id.issue-id-processed { color: #059669; font-weight: 600; }

/* 留言板管理 */
.guestbook-admin-list { list-style: none; margin: 0; padding: 0; }
.guestbook-admin-item {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    padding: 16px 20px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 12px;
}
.guestbook-admin-main { flex: 1; min-width: 0; }
.guestbook-admin-meta { font-size: 13px; color: var(--text-secondary); margin-bottom: 6px; }
.guestbook-admin-status {
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 500;
    margin-left: 8px;
}
.guestbook-admin-status.status-pending { background: rgba(255,149,0,.15); color: #c93400; }
.guestbook-admin-status.status-approved { background: rgba(0,199,90,.15); color: #0d7d4d; }
.guestbook-admin-status.status-rejected { background: rgba(255,59,48,.12); color: #c00; }
.guestbook-admin-content { margin: 0 0 8px; font-size: 15px; line-height: 1.5; white-space: pre-wrap; word-break: break-word; }
.guestbook-admin-note { margin: 0; font-size: 13px; color: var(--text-secondary); }
.guestbook-admin-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}
.guestbook-action-form {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}
.guestbook-note-input {
    width: 140px;
    padding: 6px 10px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 13px;
}
.guestbook-admin-actions .btn-danger { border-color: #c00; color: #c00; }
.guestbook-admin-actions .btn-danger:hover { background: rgba(204,0,0,.08); }
.admin-pagination-info { font-size: 13px; color: var(--text-secondary); margin-bottom: 12px; }
.admin-guestbook-toolbar { margin-bottom: 20px !important; }
.admin-pagination { margin-top: 20px; display: flex; align-items: center; gap: 12px; }
.admin-pagination a { color: var(--accent); text-decoration: none; }
.admin-body-wide { max-width: 900px; }

.admin-actions-row { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--border); }
.admin-actions-row .admin-delete-form { display: inline-block; margin: 0; }

.log-pre {
    margin: 0;
    padding: 16px;
    font-size: 13px;
    line-height: 1.5;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow-x: auto;
    white-space: pre-wrap;
    word-break: break-all;
}

/* 操作按钮区 */
.admin-actions {
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    display: flex;
    gap: 12px;
    align-items: center;
}

/* 列表项优化 */
.admin-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 12px;
}

.admin-list-item .item-main {
    flex: 1;
    min-width: 0;
}

.admin-list-item .item-meta {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 4px;
}

.admin-list-item .item-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

/* 相册列表拖动排序 */
.admin-gallery-sortable .admin-gallery-item {
    cursor: grab;
}
.admin-gallery-sortable .admin-gallery-item:active {
    cursor: grabbing;
}
.admin-gallery-drag-handle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    margin-right: 8px;
    color: var(--text-secondary);
    font-size: 14px;
    letter-spacing: -2px;
    user-select: none;
    flex-shrink: 0;
}
.admin-gallery-item.admin-gallery-dragging {
    opacity: 0.6;
}
.admin-toast {
    position: fixed;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 14px;
    z-index: 9999;
    box-shadow: 0 4px 12px rgba(0,0,0,.15);
}
.admin-toast.admin-toast-success {
    background: #0d9488;
    color: #fff;
}

/* 登录页微调 */
.login-page .login-box {
    padding: 48px 40px;
    border-radius: 16px;
}

.login-page .login-box h1 {
    font-size: 22px;
    margin-bottom: 28px;
}

/* Toast 浮动提示 */
.admin-toast-wrap {
    position: fixed;
    top: 16px;
    left: 50%;
    transform: translateX(-50%) translateY(-120%);
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 14px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    z-index: 10000;
    transition: transform 0.25s ease;
    pointer-events: none;
}
.admin-toast-wrap:empty {
    display: none !important;
}
.admin-toast-wrap.admin-toast-show {
    transform: translateX(-50%) translateY(0);
}
.admin-toast-wrap.admin-toast-success {
    background: #0d9488;
    color: #fff;
}
.admin-toast-wrap.admin-toast-info {
    background: var(--bg-elevated);
    color: var(--text);
    border: 1px solid var(--border);
}
.admin-toast-wrap.admin-toast-error {
    background: #b91c1c;
    color: #fff;
}

/* 反馈列表：批量操作、分页 */
.issues-bulk-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    padding: 10px 16px;
    margin-bottom: 12px;
    background: var(--bg-secondary, #f8f9fa);
    border-radius: 8px;
}
.issues-bulk-check { margin: 0; font-size: 13px; }
.issues-bulk-select { padding: 6px 10px; font-size: 13px; border-radius: 6px; }
.admin-table .col-check { width: 36px; text-align: center; }
.admin-pagination { margin-top: 16px; font-size: 14px; color: var(--text-secondary); }
.admin-pagination a { margin: 0 8px; color: var(--accent); }
.admin-pagination-info { margin: 0 8px; }

/* 公告：草稿/发布状态 */
.announce-status-radios { display: flex; flex-wrap: wrap; gap: 16px 24px; }
.announce-status-radios label { display: flex; align-items: center; gap: 6px; font-weight: normal; cursor: pointer; }
.announce-status-radios input[type="radio"] { margin: 0; accent-color: var(--accent); }
.announce-badge { font-size: 12px; padding: 2px 8px; border-radius: 4px; font-weight: 500; }
.announce-badge-draft { background: rgba(0,0,0,.08); color: var(--text-secondary); }

/* 下载管理 */
.download-edit-list { display: flex; flex-direction: column; gap: 20px; margin-bottom: 16px; }
.download-edit-row {
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg-secondary, rgba(0,0,0,.02));
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 12px 16px;
    align-items: start;
}
.download-edit-row .form-group { margin: 0; }
.download-edit-row .form-group:first-child { grid-column: 1 / -1; }
.download-edit-row .form-group:nth-child(2) { grid-column: 1 / -1; }
.download-edit-row .form-group:nth-child(3) { grid-column: 1; }
.download-edit-row .form-group:nth-child(4) { grid-column: 2; }
.download-edit-row .download-edit-row-actions { grid-column: 3; grid-row: 3; align-self: center; }
.download-edit-row .download-row-remove { font-size: 13px; padding: 6px 12px; }
#download-add-row { margin-top: 8px; }

/* 导航菜单拖动排序 */
.nav-col-drag { width: 36px; padding: 8px; vertical-align: middle; text-align: center; }
.nav-drag-handle { cursor: grab; color: var(--text-secondary); font-size: 14px; user-select: none; padding: 4px; display: inline-block; }
.nav-drag-handle:active { cursor: grabbing; }
.nav-menu-row.nav-row-dragging { opacity: 0.5; }
.nav-menu-row.nav-row-drag-over { outline: 2px solid var(--accent); outline-offset: -2px; }

.report-row-form { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; }
.report-row-form .report-status-select,
.report-row-form .report-result-select {
    padding: 6px 24px 6px 10px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 13px;
    min-width: 88px;
    background: var(--bg);
    color: var(--text);
    cursor: pointer;
    appearance: none;
    -webkit-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='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
}
.report-row-form .report-status-select { min-width: 88px; }
.report-row-form .report-result-select { min-width: 100px; }
.report-row-form .report-status-select:focus,
.report-row-form .report-result-select:focus { outline: none; border-color: var(--accent); }
.report-row-form .report-note-input {
    padding: 6px 10px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 13px;
    width: 100px;
    max-width: 100%;
    background: var(--bg);
    color: var(--text);
}
.report-row-form .report-note-input:focus { outline: none; border-color: var(--accent); }
.report-row-form .report-note-input::placeholder { color: var(--text-secondary); opacity: 0.8; }
.report-row-form .report-process-reason-input {
    padding: 6px 10px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 13px;
    width: 120px;
    max-width: 100%;
    background: var(--bg);
    color: var(--text);
}
.report-row-form .report-process-reason-input:focus { outline: none; border-color: var(--accent); }
.report-row-form .report-process-reason-input::placeholder { color: var(--text-secondary); opacity: 0.8; }
.report-cell-user,
.report-cell-type { white-space: nowrap; }
.report-admin-table td.report-cell-name {
    white-space: nowrap;
    min-width: 6em;
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
}
.report-cell-result { font-size: 13px; color: var(--text-secondary); white-space: nowrap; }
.report-admin-table td.report-cell-datetime {
    white-space: nowrap !important;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 160px;
    min-width: 4em;
}
.report-days-wrap { display: none; }
.report-days-wrap[data-show-when] .report-days-input {
    width: 56px;
    padding: 6px 8px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 13px;
    margin-left: 0;
    background: var(--bg);
    color: var(--text);
}
.report-days-input::-webkit-inner-spin-button { opacity: 1; }
.report-row-form .btn { flex-shrink: 0; }
.report-undo-btn.report-undo-btn-dirty { background: #dc2626; border-color: #dc2626; color: #fff; }
.report-undo-btn.report-undo-btn-dirty:hover { background: #b91c1c; border-color: #b91c1c; color: #fff; }
.report-cell-reason { max-width: 140px; }
.report-cell-reason-short { display: inline-block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: middle; }
.report-detail-btn { margin-left: 4px; padding: 2px 8px; font-size: 12px; line-height: 1.3; color: var(--accent); background: none; border: 1px solid var(--accent); border-radius: 4px; cursor: pointer; white-space: nowrap; vertical-align: middle; }
.report-detail-btn:hover { background: rgba(0,113,227,.08); }
.report-cell-desc { max-width: 180px; }
.report-cell-desc-inner {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}
.report-cell-desc-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}
.report-cell-desc-inner .report-detail-btn { flex-shrink: 0; }
.report-admin-table td.report-cell-location {
    max-width: 120px;
    min-width: 4em;
}
.report-cell-location-inner {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}
.report-cell-location-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}
.report-cell-location-inner .report-detail-btn { flex-shrink: 0; }

.report-admin-table td.report-cell-processor {
    white-space: nowrap !important;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100px;
    min-width: 4em;
}

.report-admin-table td.report-id-cell.report-id-processed {
    color: #059669;
    font-weight: 600;
}

.report-admin-table td.report-cell-evidence {
    max-width: 90px;
    min-width: 4em;
}
.report-cell-evidence-inner {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}
.report-cell-evidence-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}
.report-cell-evidence-text a {
    white-space: nowrap;
}
.report-cell-evidence-inner .report-detail-btn { flex-shrink: 0; }
.report-cell-actions { min-width: 460px; white-space: normal; }
.report-detail-modal { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 20px; visibility: hidden; opacity: 0; transition: visibility .2s, opacity .2s; }
.report-detail-modal.report-detail-modal-open { visibility: visible; opacity: 1; }
.report-detail-modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.4); }
.report-detail-modal-box { position: relative; max-width: 480px; width: 100%; max-height: 80vh; background: var(--bg); border-radius: 12px; box-shadow: 0 8px 32px rgba(0,0,0,.2); display: flex; flex-direction: column; }
.report-detail-modal-header { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--border); font-weight: 600; }
.report-detail-modal-close { background: none; border: none; font-size: 24px; line-height: 1; color: var(--text-secondary); cursor: pointer; padding: 0 4px; }
.report-detail-modal-close:hover { color: var(--text); }
.report-detail-modal-body { padding: 16px; overflow-y: auto; white-space: pre-wrap; word-break: break-word; font-size: 14px; line-height: 1.5; }
.report-reason-actions { display: flex; flex-direction: row; align-items: center; gap: 8px; flex-wrap: nowrap; white-space: nowrap; }
.report-reason-actions .report-reason-delete-form { display: inline-flex; margin: 0; }
.report-reason-edit { margin-bottom: 16px; padding: 16px; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); }
.report-reason-edit .report-reason-edit-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 0; }
.report-reason-edit .report-reason-edit-row label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 0; margin-right: 4px; }
.report-reason-edit .report-reason-edit-row .report-reason-edit-input { width: 220px; max-width: 100%; padding: 8px 12px; font-size: 14px; border: 1px solid var(--border); border-radius: 6px; }
.report-reason-edit .report-reason-edit-row .report-reason-edit-input:focus { outline: none; border-color: var(--accent); }
.report-reason-edit .report-reason-edit-row .btn { flex-shrink: 0; min-height: 34px; padding: 6px 14px; font-size: 14px; line-height: 1.25; box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; }
.report-reason-edit .report-reason-edit-row a.btn { text-decoration: none; }
.report-reason-add { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border); }
.report-reason-add .report-reason-add-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; margin-bottom: 0; }
.report-reason-add .report-reason-add-row label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 6px; width: 100%; }
.report-reason-add .report-reason-add-row .report-reason-add-input { width: 220px; max-width: 100%; padding: 8px 12px; font-size: 14px; border: 1px solid var(--border); border-radius: 6px; }
.report-reason-add .report-reason-add-row .report-reason-add-input:focus { outline: none; border-color: var(--accent); }
.report-reason-add .report-reason-add-row .btn { flex-shrink: 0; }
@media (min-width: 480px) {
    .report-reason-add .report-reason-add-row label { width: auto; margin-bottom: 0; margin-right: 4px; }
    .report-reason-add .report-reason-add-row { flex-wrap: nowrap; align-items: center; }
}
.nav-menu-table .nav-menu-row { transition: outline-offset .15s, outline-color .15s; }

/* 快速处理模式 */
.page-header-flex { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.page-header-flex .btn { flex-shrink: 0; }
.report-quick-mode-btn:disabled { opacity: 0.6; cursor: not-allowed; }

.report-quick-overlay {
    position: fixed;
    inset: 0;
    z-index: 1100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(0, 0, 0, 0.5);
    visibility: hidden;
    opacity: 0;
    transition: visibility 0.2s, opacity 0.2s;
    overflow-y: auto;
}
.report-quick-overlay.report-quick-overlay-open { visibility: visible; opacity: 1; }

.report-quick-overlay-inner {
    width: 100%;
    max-width: 960px;
    max-height: calc(100vh - 48px);
    background: var(--bg);
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.report-quick-header {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px 16px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    background: var(--bg);
}
.report-quick-title { margin: 0; font-size: 1.25rem; font-weight: 600; }
.report-quick-progress { font-size: 14px; color: var(--text-secondary); white-space: nowrap; }
.report-quick-nav { display: flex; align-items: center; gap: 8px; }
.report-quick-select {
    min-width: 200px;
    padding: 8px 32px 8px 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    background: var(--bg);
    color: var(--text);
    cursor: pointer;
    appearance: none;
    -webkit-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='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
}
.report-quick-select:focus { outline: none; border-color: var(--accent); }
.report-quick-close { margin-left: auto; }

.report-quick-body {
    display: flex;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}
@media (max-width: 768px) {
    .report-quick-body { flex-direction: column; }
}

.report-quick-detail {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    border-right: 1px solid var(--border);
    min-width: 0;
}
@media (max-width: 768px) {
    .report-quick-detail { border-right: none; border-bottom: 1px solid var(--border); }
}

.report-quick-dl {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
}
.report-quick-dl dt {
    margin-top: 12px;
    margin-bottom: 4px;
    font-weight: 600;
    color: var(--text-secondary);
}
.report-quick-dl dt:first-child { margin-top: 0; }
.report-quick-dl dd { margin: 0; word-break: break-word; }
.report-quick-dl dd a { color: var(--accent); }
.report-quick-empty { margin: 0; color: var(--text-secondary); }

.report-quick-form-wrap {
    width: 320px;
    flex-shrink: 0;
    padding: 20px;
    overflow-y: auto;
    border-left: 1px solid var(--border);
}
@media (max-width: 768px) {
    .report-quick-form-wrap { width: 100%; border-left: none; border-top: 1px solid var(--border); }
}

.report-quick-form .report-quick-fields {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 20px;
}
.report-quick-form .report-quick-fields label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 500; color: var(--text); }
.report-quick-form .report-quick-fields select {
    width: 100%;
    padding: 10px 36px 10px 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    background: var(--bg);
    color: var(--text);
    cursor: pointer;
    appearance: none;
    -webkit-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='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
}
.report-quick-form .report-quick-fields select:focus { outline: none; border-color: var(--accent); }
.report-quick-form .report-quick-fields input[type="text"],
.report-quick-form .report-quick-fields input[type="number"] {
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    background: var(--bg);
    color: var(--text);
}
.report-quick-form .report-quick-fields input:focus { outline: none; border-color: var(--accent); }
.report-quick-days-wrap label { margin: 0; }

.report-quick-actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* 快速处理 - 未保存离开确认弹窗（站内） */
.report-quick-confirm-modal {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0.2s, opacity 0.2s;
}
.report-quick-confirm-modal.report-quick-confirm-open { visibility: visible; opacity: 1; }

.report-quick-confirm-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
}
.report-quick-confirm-box {
    position: relative;
    padding: 24px;
    background: var(--bg);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    max-width: 360px;
    width: 100%;
}
.report-quick-confirm-text { margin: 0 0 20px; font-size: 15px; }
.report-quick-confirm-actions { display: flex; justify-content: flex-end; gap: 10px; }
