/* ============================================================
   admin-common.css —— 后台跨页公共规则（阶段1 收敛产物）
   由 13 个源（9 页 css + album + task-common + task/checkin 内联）中
   ≥2 源且声明全等的规则抽取而来；各页 css 中同规则已删除，由本文件提供。
   B 类异体规则保留在各页 css 内，覆盖本文件。
   ============================================================ */
        .album-cover img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        .no-data .icon {
            font-size: 48px;
            margin-bottom: 16px;
            opacity: 0.3;
        }
        .modal-overlay.show {
            display: flex;
        }
        @keyframes modalIn {
            from { transform: scale(0.95); opacity: 0; }
            to { transform: scale(1); opacity: 1; }
        }
        .form-group label.required::after {
            content: '*';
            color: #f5222d;
            margin-left: 4px;
        }
        .form-group input,
        .form-group select,
        .form-group textarea {
            width: 100%;
            padding: 10px 12px;
            border: 1px solid #ddd;
            border-radius: 6px;
            font-size: 14px;
            outline: none;
            transition: border-color 0.2s;
        }
        .form-group input:focus,
        .form-group select:focus,
        .form-group textarea:focus {
            border-color: var(--theme-color, #667eea);
        }
        .btn-submit {
            padding: 10px 20px;
            background: var(--theme-color, #667eea);
            color: #fff;
            border: none;
            border-radius: 6px;
            cursor: pointer;
            font-size: 14px;
            font-weight: 500;
            transition: all 0.2s;
        }
        .btn-submit:hover {
            background: var(--theme-color-hover, #5a6fd6);
        }
        .btn-add {
            background: var(--theme-color, #667eea);
            color: #fff;
            border: none;
            padding: 10px 20px;
            border-radius: 6px;
            cursor: pointer;
            font-size: 14px;
            transition: all 0.2s;
        }
        .btn-add:hover {
            opacity: 0.9;
            transform: translateY(-1px);
        }
        .class-list {
            flex: 1;
            overflow-y: auto;
        }
        .class-item {
            padding: 14px 20px;
            border-bottom: 1px solid #f0f0f0;
            cursor: pointer;
            transition: all 0.2s;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        .class-item:hover {
            background: #f8f9fa;
        }
        .class-item.active {
            background: rgba(var(--theme-color-rgb, 102, 126, 234), 0.1);
            border-left: 3px solid var(--theme-color, #667eea);
        }
        .class-info {
            flex: 1;
        }
        .class-name {
            font-size: 15px;
            font-weight: 500;
            color: #333;
            margin-bottom: 4px;
        }
        .class-meta {
            font-size: 12px;
            color: #999;
        }
        .level-badge.A0 { background: #e8f5e9; color: #2e7d32; }
        .level-badge.A1 { background: #e3f2fd; color: #1565c0; }
        .level-badge.A2 { background: #ede7f6; color: #5e35b1; }
        .level-badge.B1 { background: #fff3e0; color: #e65100; }
        .level-badge.B2 { background: #fce4ec; color: #c2185b; }
        .level-badge.C1 { background: #f3e5f5; color: #7b1fa2; }
        .level-badge.C2 { background: #ffebee; color: #c62828; }
        .status-badge.ended { background: #fff3e0; color: #e65100; }
        .status-badge.dissolved { background: #f5f5f5; color: #757575; }
        .class-actions {
            display: flex;
            gap: 8px;
        }
        .btn-action {
            padding: 6px 12px;
            border: none;
            border-radius: 4px;
            cursor: pointer;
            font-size: 13px;
            transition: all 0.2s;
        }
        .btn-action.edit {
            background: #fff;
            border: 1px solid var(--theme-color, #667eea);
            color: var(--theme-color, #667eea);
        }
        .btn-action.edit:hover {
            background: rgba(var(--theme-color-rgb, 102, 126, 234), 0.1);
        }
        .btn-action.delete {
            background: #fff;
            border: 1px solid #dc3545;
            color: #dc3545;
        }
        .btn-action.delete:hover {
            background: rgba(220, 53, 69, 0.1);
        }
        .right-panel .panel-header {
            flex-shrink: 0;
        }
        .page-btn {
            padding: 8px 16px;
            border: 1px solid #ddd;
            border-radius: 4px;
            cursor: pointer;
            font-size: 14px;
            background: #fff;
            transition: all 0.2s;
        }
        .page-btn:hover:not(:disabled) {
            background: #f5f7fa;
        }
        .page-btn:disabled {
            opacity: 0.5;
            cursor: not-allowed;
        }
        .form-row {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 16px;
        }
        .page-title {
            font-size: 24px;
            color: #333;
        }
        .btn-edit {
            background: #f59e0b;
            color: #fff;
        }
        .btn-edit:hover {
            background: #d97706;
        }
        .modal.show {
            display: flex;
        }
        .form-input:focus {
            outline: none;
            border-color: var(--theme-color, #667eea);
        }
        .form-desc {
            font-size: 12px;
            color: #9ca3af;
        }
        .empty-state p {
            font-size: 14px;
        }
        .modal-header h2 {
            font-size: 18px;
            font-weight: 600;
        }
        .browser-section-title {
            padding: 8px 14px;
            font-size: 12px;
            font-weight: 600;
            color: #666;
            background: #f3f4f6;
            border-bottom: 1px solid #e5e7eb;
        }
        .browser-item {
            padding: 5px 12px;
            border-radius: 6px;
            font-size: 12px;
            cursor: pointer;
            border: 1px solid #e5e7eb;
            background: #fff;
            color: #333;
            transition: all 0.15s;
            user-select: none;
        }
        .browser-item:hover {
            border-color: var(--theme-color, #667eea);
            background: #eef2ff;
        }
        .browser-item.active {
            border-color: var(--theme-color, #667eea);
            background: var(--theme-color, #667eea);
            color: #fff;
        }
        @keyframes spin {
            to { transform: rotate(360deg); }
        }
        .sentence-picker-overlay {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.45);
            display: none;
            justify-content: center;
            align-items: center;
            z-index: 1100; /* 高于文章对话框层级(1000)，覆盖在其上方 */
        }
        .sentence-picker-overlay.show {
            display: flex;
        }
        .sentence-picker {
            background: #fff;
            border-radius: 10px;
            width: 560px;
            max-width: 92%;
            max-height: 80vh;
            display: flex;
            flex-direction: column;
            box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
            overflow: hidden;
        }
        .sentence-picker-header {
            padding: 14px 16px;
            border-bottom: 1px solid #eee;
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            gap: 10px;
        }
        .sentence-picker-title {
            font-size: 15px;
            font-weight: 600;
        }
        .sentence-picker-sub {
            font-size: 12px;
            color: #999;
            margin-top: 4px;
            line-height: 1.6;
        }
        .sentence-picker-close {
            background: none;
            border: none;
            font-size: 22px;
            cursor: pointer;
            color: #999;
            padding: 0 4px;
            line-height: 1;
        }
        .sentence-picker-close:hover {
            color: #333;
        }
        .sentence-picker-list {
            flex: 1;
            overflow-y: auto;
            padding: 10px 14px;
            background: #fafbfc;
        }
        .sentence-picker-empty {
            text-align: center;
            color: #999;
            padding: 34px 0;
            font-size: 13px;
        }
        .sentence-picker-item {
            display: flex;
            align-items: baseline;
            gap: 8px;
            padding: 7px 10px;
            border-radius: 6px;
            cursor: pointer;
            border: 1px solid transparent;
            margin-bottom: 4px;
            font-size: 13px;
            background: #fff;
        }
        .sentence-picker-item:hover {
            border-color: #4a90d9;
            background: #f0f7ff;
        }
        .sentence-picker-item .sp-no {
            flex-shrink: 0;
            color: #888;
            font-size: 12px;
            min-width: 36px;
        }
        .sentence-picker-item .sp-text {
            flex: 1;
            line-height: 1.5;
            word-break: break-word;
        }
        .sentence-picker-item .sp-cn {
            color: #4a90d9;
            font-size: 12px;
        }
        .sentence-picker-item .sp-time {
            color: #bbb;
            font-size: 11px;
            flex-shrink: 0;
        }
        .sentence-picker-item .sp-tag {
            flex-shrink: 0;
            font-size: 11px;
            padding: 1px 6px;
            border-radius: 4px;
            background: #eee;
            color: #666;
        }
        .sentence-picker-item.is-start,
        .sentence-picker-item.is-end {
            background: #e8f5e9;
            border-color: #4CAF50;
        }
        .sentence-picker-item.is-start:hover,
        .sentence-picker-item.is-end:hover {
            background: #e8f5e9;
        }
        .sentence-picker-item.is-start .sp-tag,
        .sentence-picker-item.is-end .sp-tag {
            background: #4CAF50;
            color: #fff;
        }
        .sentence-picker-item.is-inrange {
            background: #f2f9f3;
            border-color: #a5d6a7;
        }
        .sentence-picker-footer {
            padding: 12px 16px;
            border-top: 1px solid #eee;
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 10px;
        }
        .sentence-picker-hint {
            font-size: 12px;
            color: #666;
            line-height: 1.6;
            flex: 1;
        }
        .sentence-picker-actions {
            display: flex;
            gap: 8px;
            flex-shrink: 0;
        }
        .step-type-badge {
            font-size: 11.5px; color: var(--theme-color, #667eea);
            background: rgba(var(--theme-color-rgb, 102, 126, 234), 0.08);
            border-radius: 12px; padding: 2px 10px; cursor: pointer; white-space: nowrap;
        }
        .tracking-loading {
            text-align: center;
            padding: 60px 20px;
            color: #999;
        }
        .tracking-loading .spinner {
            display: inline-block;
            width: 32px;
            height: 32px;
            border: 3px solid #e5e7eb;
            border-top-color: var(--theme-color, #667eea);
            border-radius: 50%;
            animation: spin 0.8s linear infinite;
            margin-bottom: 12px;
        }
        .tracking-empty {
            text-align: center;
            padding: 40px 20px;
            color: #999;
        }
