/* static/css/style.css */
:root {
    --primary-color: #4a90e2;
    --success-color: #27ae60;
    --danger-color: #e74c3c;
    --warning-color: #f39c12;
    --dark-color: #2c3e50;
}

body {
    background-color: #f8f9fa;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* 导航栏 */
.navbar {
    background: linear-gradient(135deg, var(--dark-color), #34495e);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar-brand {
    font-weight: bold;
    color: white !important;
}

.navbar-nav .btn.active {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.85);
    color: #fff;
}

.user-info {
    color: white;
    margin-right: 15px;
    font-size: 14px;
    background: rgba(255,255,255,0.15);
    padding: 6px 15px;
    border-radius: 30px;
    overflow: visible;
}

#meMasteryReviewBadge {
    z-index: 2;
}

.user-info i {
    margin-right: 8px;
    font-size: 16px;
}

.notifications-dropdown {
    min-width: 320px;
    max-width: 92vw;
}

.notifications-list {
    max-height: 360px;
    overflow-y: auto;
}

.notification-item {
    background: #fff;
}

.notification-item-unread {
    background: #f0f7ff;
    border-left: 3px solid var(--primary-color);
}

/* 卡片样式 */
.card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
}

/* 按钮样式 */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), #2980b9);
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    font-weight: 500;
}

.btn-success {
    background: linear-gradient(135deg, var(--success-color), #2ecc71);
    border: none;
    border-radius: 8px;
}

.btn-danger {
    background: linear-gradient(135deg, var(--danger-color), #c0392b);
    border: none;
    border-radius: 8px;
}

.btn-warning {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    border: none;
    border-radius: 8px;
    color: white;
}

.btn-info {
    background: linear-gradient(135deg, #3498db, #2980b9);
    border: none;
    border-radius: 8px;
    color: white;
}

.btn-secondary {
    background: linear-gradient(135deg, #95a5a6, #7f8c8d);
    border: none;
    border-radius: 8px;
    color: white;
}

/* 表格样式 */
.table {
    border-radius: 15px;
    overflow: hidden;
}

.table thead {
    background: linear-gradient(135deg, var(--dark-color), #34495e);
    color: white;
}

.table thead th {
    font-weight: 500;
    padding: 15px 10px;
    border: none;
}

.table tbody tr:hover {
    background-color: rgba(74, 144, 226, 0.05);
}

.table tbody td {
    padding: 15px 10px;
    vertical-align: middle;
}

/* 模态框样式 */
.modal-content {
    border-radius: 15px;
    border: none;
}

.modal-header {
    background: linear-gradient(135deg, var(--dark-color), #34495e);
    color: white;
    border-radius: 15px 15px 0 0;
}

.modal-header .btn-close {
    filter: brightness(0) invert(1);
}

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

.status-badge {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 500;
}

.status-premium { background: #fef3c7; color: #92400e; }
.status-independent { background: #e0f2fe; color: #0369a1; }
.status-basic { background: #dcfce7; color: #166534; }
.status-appointment { background: #fff7ed; color: #9a3412; }
.status-self { background: #f1f5f9; color: #334155; }

/* 店员等级图标 */
.teacher-level {
    display: inline-block;
    width: 30px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    border-radius: 50%;
    background: #e9ecef;
    margin: 0 2px;
    font-size: 0.9em;
    font-weight: bold;
}

.teacher-level.high { background: #dcfce7; color: #166534; }
.teacher-level.medium { background: #fef9c3; color: #854d0e; }
.teacher-level.low { background: #fee2e2; color: #991b1b; }

/* 列表中显示文字标签（店员「我的掌握」等） */
.teacher-level.teacher-level-label {
    width: auto;
    min-width: 2.5em;
    height: auto;
    padding: 0.15rem 0.45rem;
    border-radius: 0.25rem;
    line-height: 1.3;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
}

/* 游戏图片 */
.game-image {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.3s ease;
    background-color: #f0f0f0;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="%23999" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="2" y="2" width="20" height="20" rx="2.18" ry="2.18"/><circle cx="8.5" cy="8.5" r="1.5"/><polyline points="21 15 16 10 5 21"/></svg>');
    background-position: center;
    background-repeat: no-repeat;
    background-size: 30px 30px;
}

.game-image:hover {
    transform: scale(1.1);
}

.game-image[src] {
    background-image: none;
}

.image-preview {
    max-width: 200px;
    max-height: 200px;
    border-radius: 10px;
    margin-top: 10px;
}

/* 营业时间下拉：场地预定时间条 */
.store-venue-row {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 8px;
    background: #fff;
}

.store-venue-track {
    position: relative;
    height: 22px;
    background: #f1f3f5;
    border-radius: 6px;
    overflow: hidden;
}

.store-venue-seg {
    position: absolute;
    top: 0;
    bottom: 0;
    border-radius: 4px;
    min-width: 2px;
}

.store-venue-open {
    background: #d1e7dd;
}

.store-venue-booked {
    background: #f8d7da;
    border: 1px solid #f1aeb5;
}

.store-venue-legend-open,
.store-venue-legend-booked {
    display: inline-block;
    width: 18px;
    height: 8px;
    border-radius: 4px;
    margin-right: 4px;
}

.store-venue-legend-open {
    background: #d1e7dd;
}

.store-venue-legend-booked {
    background: #f8d7da;
    border: 1px solid #f1aeb5;
}

/* 操作栏 */
.action-bar {
    background: white;
    border-radius: 15px;
    padding: 15px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.action-bar-main {
    display: grid;
    grid-template-columns: minmax(280px, 1fr) auto;
    gap: 12px;
    align-items: center;
}

.action-search {
    min-width: 0;
}

.action-toolbar {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px;
}

.action-toolbar .btn {
    margin-right: 0 !important;
    white-space: nowrap;
}

.filters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 10px;
    align-items: center;
}

.filter-item {
    min-width: 0;
}

.filter-item .input-group,
.filter-item .form-select,
.filter-item .form-control {
    min-width: 0;
}

.filter-item .input-group-text {
    white-space: nowrap;
}

.filter-item-wide {
    grid-column: span 2;
}

.filter-item-check {
    align-self: stretch;
}

.filter-check-card {
    min-height: 38px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    background: #f8f9fa;
}

.filter-check-card .form-check-input {
    margin-top: 0;
}

.filter-item-actions {
    display: flex;
    justify-content: flex-end;
}

.filter-item-actions .btn {
    white-space: nowrap;
}

/* 提示消息 */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
}

.toast {
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* 加载动画 */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(0,0,0,.1);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s ease-in-out infinite;
}

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

.spinner-border {
    display: inline-block;
    width: 2rem;
    height: 2rem;
    vertical-align: text-bottom;
    border: 0.25em solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spinner-border .75s linear infinite;
}

@keyframes spinner-border {
    to { transform: rotate(360deg); }
}

.text-primary {
    color: var(--primary-color) !important;
}

/* 操作按钮容器 */
.action-buttons {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.action-buttons .btn {
    min-width: 60px;
    padding: 6px 12px;
    font-size: 0.9rem;
    white-space: nowrap;
}

.edit-btn {
    background: linear-gradient(135deg, #4a90e2, #2980b9);
    border: none;
    color: white;
}

.delete-btn {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    border: none;
    color: white;
}

.edit-btn:hover, .delete-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.edit-btn:disabled, .delete-btn:disabled {
    opacity: 0.5;
    transform: none;
    box-shadow: none;
    cursor: not-allowed;
}

/* 表单校验样式 */
.input.invalid {
    border-color: var(--danger-color);
    background-color: #fff3f3;
}

.validation-message {
    font-size: 0.85rem;
    margin-top: 5px;
    color: var(--danger-color);
}

.validation-message i {
    margin-right: 3px;
}

.form-hint {
    font-size: 0.8rem;
    color: #6c757d;
    margin-top: 3px;
}

.form-hint i {
    margin-right: 3px;
}

/* 位置解读样式 */
.location-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 12px;
    background-color: #e9ecef;
    color: #495057;
    font-size: 0.85rem;
    max-width: 200px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.location-unknown {
    color: #6c757d;
    font-style: italic;
}

/* 表格列宽调整（仅首页桌游列表） */
#gameTable th:nth-child(5) {
    min-width: 120px;
}

#gameTable th:nth-child(6) {
    min-width: 150px;
}

#gameTable th:nth-child(7) {
    min-width: 100px;
}

#gameTable th:nth-child(8) {
    width: 100px;
}

#gameTable th:nth-child(9) {
    width: 100px;
}

#gameTable th:nth-child(10) {
    width: 140px;
}

.admin-shifts-table {
    table-layout: fixed;
}
.admin-shifts-table.table-sm tbody td,
.admin-shifts-table.table-sm thead th {
    padding: 0.35rem 0.5rem;
}
.admin-shifts-table th:nth-child(1),
.admin-shifts-table td:nth-child(1),
.admin-shifts-table th:nth-child(2),
.admin-shifts-table td:nth-child(2),
.admin-shifts-table th:nth-child(3),
.admin-shifts-table td:nth-child(3),
.admin-shifts-table th:nth-child(5),
.admin-shifts-table td:nth-child(5),
.admin-shifts-table th:nth-child(6),
.admin-shifts-table td:nth-child(6) {
    white-space: nowrap;
}
.admin-shifts-table th:nth-child(1) { width: 14%; }
.admin-shifts-table th:nth-child(2) { width: 22%; }
.admin-shifts-table th:nth-child(3) { width: 14%; }
.admin-shifts-table th:nth-child(4) { width: 8%; }
.admin-shifts-table th:nth-child(5) { width: 12%; }
.admin-shifts-table th:nth-child(6) { width: 12%; }
.admin-shifts-table th:nth-child(7) { width: auto; }

/* ==================== 表格滚动优化（修复版） ==================== */

/* 表格容器 - 限制重绘范围 */
.table-container {
    position: relative;
    width: 100%;
    border-radius: 15px;
    contain: content;
}

/* 顶部滚动条容器 */
.table-scroll-top {
    overflow-x: auto;
    overflow-y: hidden;
    height: 17px;
    margin-bottom: 8px;
    border-radius: 10px;
    background: #f1f1f1;
}

/* 顶部滚动条内容（占位，用于撑开宽度） */
.table-scroll-top .scroll-content {
    height: 1px;
    visibility: hidden;
    pointer-events: none;
}

/* 表格内容区域 - 硬件加速优化 */
.table-content {
    overflow-x: auto;
    overflow-y: visible;
    max-width: 100%;
    border-radius: 15px;
    scroll-behavior: smooth;
    
    /* 硬件加速优化 - 强制提升为合成层 */
    transform: translateZ(0);
    will-change: transform;
    backface-visibility: hidden;
    -webkit-overflow-scrolling: touch;
}

/* 固定表头 - 优化版 */
.table thead {
    position: sticky;
    top: 0;
    z-index: 10;
    background: linear-gradient(135deg, var(--dark-color), #34495e);
    border-bottom: 2px solid rgba(255,255,255,0.15);
    
    transform: translateZ(0);
    will-change: transform;
    backface-visibility: hidden;
}

/* 表头单元格 - 优化版 */
.table thead th {
    position: sticky;
    top: 0;
    background: linear-gradient(135deg, var(--dark-color), #34495e);
    color: white;
    z-index: 10;
    
    transform: translateZ(0);
    will-change: transform;
    backface-visibility: hidden;
    
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    
    font-weight: 500;
    padding: 15px 10px;
    border: none;
}

/* 表格主体 - 硬件加速 */
.table tbody {
    transform: translateZ(0);
    will-change: transform;
    backface-visibility: hidden;
}

/* 表格行 - 硬件加速，优化悬停效果 */
.table tbody tr {
    transform: translateZ(0);
    transition: background-color 0.2s ease;
}

.table tbody tr:hover {
    background-color: rgba(74, 144, 226, 0.05);
}

/* 单元格 - 硬件加速 */
.table tbody td {
    padding: 15px 10px;
    vertical-align: middle;
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* 自定义滚动条样式 - 更美观 */
.table-scroll-top::-webkit-scrollbar,
.table-content::-webkit-scrollbar {
    height: 8px;
    width: 8px;
}

.table-scroll-top::-webkit-scrollbar-track,
.table-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.table-scroll-top::-webkit-scrollbar-thumb,
.table-content::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
    transition: background 0.3s;
}

.table-scroll-top::-webkit-scrollbar-thumb:hover,
.table-content::-webkit-scrollbar-thumb:hover {
    background: #2980b9;
}

/* 列数提示 */
.column-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding: 0 5px;
}

.column-info .text-muted {
    font-size: 13px;
    color: #6c757d;
}

.column-info .text-muted i {
    margin-right: 5px;
}

/* 滚动控制按钮 */
.scroll-controls {
    display: flex;
    gap: 5px;
}

.scroll-controls .btn-sm {
    padding: 4px 10px;
    font-size: 12px;
    border-radius: 20px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    color: #495057;
    transition: all 0.2s;
}

.scroll-controls .btn-sm:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* 确保表格主体内容正确显示 */
.table tbody td {
    background-color: white;
}

.table tbody tr:hover td {
    background-color: rgba(74, 144, 226, 0.05);
}

/* ==================== 标签云样式 ==================== */

.tags-cloud-container {
    background: white;
    border-radius: 15px;
    padding: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    min-height: 50px;
}

.tag-item {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    background-color: #e9ecef;
    color: #495057;
    border: 1px solid transparent;
}

.tag-item:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(74, 144, 226, 0.3);
}

.tag-item.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.tag-item.tag-sm {
    font-size: 0.8rem;
    padding: 4px 10px;
}

.tag-item.tag-md {
    font-size: 0.9rem;
    padding: 6px 14px;
}

.tag-item.tag-lg {
    font-size: 1rem;
    padding: 8px 18px;
}

.tag-item.tag-xl {
    font-size: 1.1rem;
    padding: 10px 22px;
}

/* 标签热度颜色 */
.tag-item.tag-hot {
    background-color: #ffc107;
    color: #856404;
}

.tag-item.tag-hot:hover {
    background-color: #e0a800;
    color: #fff;
}

.tag-item.tag-hot.active {
    background-color: #e0a800;
    color: #fff;
}

/* 标签加载动画 */
.tags-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 10px;
}

/* 刷新按钮样式 */
#refreshTagsBtn {
    transition: all 0.3s ease;
}

#refreshTagsBtn:hover {
    transform: rotate(180deg);
}

/* ==================== 分页控件样式 ==================== */

.pagination-container {
    background: white;
    border-radius: 15px;
    padding: 15px 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.pagination-container .text-muted {
    font-size: 14px;
}

.pagination-container .btn-group .btn {
    padding: 5px 12px;
    font-size: 13px;
}

.pagination-container .btn-group .btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

#jumpToPage {
    -moz-appearance: textfield;
}

#jumpToPage::-webkit-inner-spin-button,
#jumpToPage::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

#pageSizeSelect {
    cursor: pointer;
}

/* 标签云容器响应式调整 */
@media (max-width: 768px) {
    .action-bar {
        padding: 12px;
    }

    .action-bar-main {
        grid-template-columns: 1fr;
    }

    .action-toolbar {
        justify-content: flex-start;
    }

    .action-toolbar .btn {
        flex: 1 1 auto;
    }

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

    .filter-item-wide {
        grid-column: span 1;
    }

    .filter-item-actions {
        justify-content: stretch;
    }

    .filter-item-actions .btn {
        width: 100%;
    }

    .tags-cloud-container {
        padding: 10px;
    }
    
    .tag-item {
        padding: 4px 12px;
        font-size: 0.8rem;
    }
    
    .tag-item.tag-sm {
        font-size: 0.7rem;
        padding: 2px 8px;
    }
    
    .tag-item.tag-md {
        font-size: 0.8rem;
        padding: 4px 12px;
    }
    
    .tag-item.tag-lg {
        font-size: 0.9rem;
        padding: 6px 14px;
    }
    
    .tag-item.tag-xl {
        font-size: 1rem;
        padding: 8px 16px;
    }
    
    /* 分页控件响应式 */
    .pagination-container {
        flex-direction: column;
        align-items: stretch !important;
    }
    
    .pagination-container .btn-group {
        justify-content: center;
    }
    
    .pagination-container .d-flex {
        justify-content: center;
        margin-top: 10px;
    }
}

/* ==================== Session 超时提示框样式 ==================== */
#sessionTimeoutModal .modal-header {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: white;
}

#sessionTimeoutModal .modal-header .btn-close {
    filter: brightness(0) invert(1);
}

/* 营业时间日历（首页下拉） */
.store-hours-dropdown .schedule-cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}
.store-hours-dropdown .schedule-cal-head {
    text-align: center;
    font-size: 11px;
    color: #6c757d;
    padding: 2px;
}
.store-hours-dropdown .schedule-cal-cell {
    min-height: 36px;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    padding: 2px;
    position: relative;
    cursor: pointer;
    font-size: 12px;
    background: #fff;
}
.store-hours-dropdown .schedule-cal-empty {
    border: none;
    cursor: default;
    background: transparent;
}
.store-hours-dropdown .schedule-cal-day:hover {
    background: #f0f7ff;
}
.store-hours-dropdown .schedule-cal-selected {
    border-color: var(--primary-color);
    background: #e8f4fd;
}
.store-hours-dropdown .schedule-cal-has-shifts {
    background: #e8f5e9;
}
.store-hours-dropdown .schedule-cal-closed {
    background: #f8f9fa;
    color: #adb5bd;
}
.store-hours-dropdown .schedule-cal-badge {
    position: absolute;
    right: 2px;
    bottom: 1px;
    font-size: 9px;
    background: #198754;
    color: #fff;
    border-radius: 6px;
    padding: 0 3px;
}

.activity-dropdown {
    max-height: min(70vh, 520px);
    overflow-y: auto;
}
.activity-cards-compact {
    max-height: min(60vh, 440px);
    overflow-y: auto;
}
.activity-card-compact:last-child {
    margin-bottom: 0 !important;
}
.activity-intro-clamp {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    white-space: pre-wrap;
    word-break: break-word;
}
.activity-detail-intro {
    white-space: pre-wrap;
    word-break: break-word;
}
#appVersionBadge {
    white-space: nowrap;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.admin-activities-table .activity-list-title {
    display: block;
    max-width: 10rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.admin-activities-table .activity-list-venue {
    max-width: 8rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.admin-activities-table th:nth-child(1) { width: 11%; }
.admin-activities-table th:nth-child(2) { width: 14%; }
.admin-activities-table th:nth-child(3) { width: 12%; }
.admin-activities-table th:nth-child(4) { width: 8%; }
.admin-activities-table th:nth-child(5) { width: 12%; }
.admin-activities-table th:nth-child(6) { width: 8%; }
.admin-activities-table th:nth-child(7) { width: auto; }
.admin-activity-actions {
    min-width: 9rem;
}

.admin-activity-regs-table {
    table-layout: fixed;
}
.admin-activity-regs-table .activity-reg-person {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.admin-activity-regs-table .activity-reg-contact {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.admin-activity-regs-table td:nth-child(3),
.admin-activity-regs-table td:nth-child(4),
.admin-activity-regs-table td:nth-child(5),
.admin-activity-regs-table td:nth-child(6) {
    white-space: nowrap;
}
.admin-activity-regs-table th:nth-child(1) { width: 22%; }
.admin-activity-regs-table th:nth-child(2) { width: 6%; }
.admin-activity-regs-table th:nth-child(3) { width: 18%; }
.admin-activity-regs-table th:nth-child(4) { width: 10%; }
.admin-activity-regs-table th:nth-child(5) { width: 10%; }
.admin-activity-regs-table th:nth-child(6) { width: 12%; }
.admin-activity-regs-table th:nth-child(7) { width: auto; }

/* 会员发起活动表单 */
.activity-form-venue-panel {
    max-height: 160px;
    overflow-y: auto;
    border: 1px solid var(--bs-border-color);
    border-radius: 0.375rem;
    padding: 0.5rem 0.75rem;
    background: var(--bs-light);
}
.activity-selected-games-box {
    min-height: 42px;
    word-break: break-word;
}
.activity-form-section-title {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--bs-secondary);
    margin-bottom: 0.5rem;
    margin-top: 0.25rem;
}
.activity-form-section-title:not(:first-child) {
    margin-top: 0.75rem;
    padding-top: 0.5rem;
    border-top: 1px solid var(--bs-border-color-translucent, rgba(0, 0, 0, 0.08));
}

/* 桌游菜单导出长图 */
.menu-export-render-root {
    position: fixed;
    left: -10000px;
    top: 0;
    z-index: -1;
    width: 720px;
    pointer-events: none;
}
.menu-export-sheet,
#menuPreviewInner .menu-export-sheet {
    background: #fff;
    padding: 24px;
    font-family: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
}
.menu-export-title {
    font-size: 22px;
    font-weight: 700;
    text-align: center;
    margin: 0 0 8px;
    color: #2c3e50;
}
.menu-export-count {
    text-align: center;
    color: #6c757d;
    font-size: 13px;
    margin-bottom: 20px;
}
.menu-export-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.menu-export-card {
    display: flex;
    gap: 14px;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 12px;
    background: #fafbfc;
}
.menu-export-card-img {
    flex: 0 0 100px;
}
.menu-export-img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
    display: block;
    background: #eee;
}
.menu-export-img-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #adb5bd;
    font-size: 28px;
}
.menu-export-card-body {
    flex: 1;
    min-width: 0;
}
.menu-export-name {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 6px;
    color: #212529;
}
.menu-export-meta {
    font-size: 14px;
    color: #495057;
    margin-bottom: 6px;
}
.menu-export-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}
.menu-export-tag {
    display: inline-block;
    background: #4a90e2;
    color: #fff;
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 12px;
}

.game-candidate-chip-wrap {
    margin: 0 6px 6px 0;
}
.game-candidate-chip {
    padding-right: 1.25rem;
}
.game-candidate-chip-remove {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 18px;
    height: 18px;
    padding: 0;
    border: 1px solid #dee2e6;
    border-radius: 50%;
    background: #fff;
    color: #6c757d;
    font-size: 14px;
    line-height: 16px;
    text-align: center;
    cursor: pointer;
}
.visit-record-field-help {
    cursor: help;
    font-size: 0.85em;
}
.site-logs-metric-help {
    cursor: help;
    font-size: 0.85em;
}
