/* ====== 全局重置 ====== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #4f6ef7;
    --primary-hover: #3b5de7;
    --danger: #e74c3c;
    --success: #27ae60;
    --bg: #f0f2f5;
    --card-bg: #ffffff;
    --border: #e4e7ed;
    --text: #2c3e50;
    --text-light: #909399;
    --shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
}

/* ====== 容器 ====== */
.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 24px 16px 40px;
}

/* ====== 头部 ====== */
.header {
    text-align: center;
    padding: 32px 0 24px;
}

.header h1 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text);
}

.subtitle {
    color: var(--text-light);
    font-size: 14px;
    margin-top: 6px;
}

/* ====== 操作栏 ====== */
.toolbar {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.auth-status {
    font-size: 13px;
    color: var(--text-light);
    padding: 4px 8px;
    background: #f5f7fa;
    border-radius: 4px;
}

.auth-status.verified {
    color: var(--success);
    background: #e8f8f0;
}

.item-count {
    margin-left: auto;
    font-size: 13px;
    color: var(--text-light);
}

/* ====== UID 搜索框 ====== */
.search-bar {
    display: flex;
    align-items: center;
    gap: 4px;
}
.uid-search-input {
    width: 140px;
    padding: 6px 10px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 13px;
    outline: none;
    transition: border-color 0.2s;
}
.uid-search-input:focus {
    border-color: var(--primary);
}
#clearSearchBtn {
    font-size: 13px;
    padding: 2px 6px;
}

/* ====== UID 可点击复制 ====== */
.uid-clickable {
    cursor: pointer;
    color: var(--primary);
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background 0.2s, color 0.2s;
    user-select: all;
    -webkit-tap-highlight-color: rgba(79,110,247,0.15);
    display: inline-block;
}
.uid-clickable:hover {
    background: #eef1ff;
    color: var(--primary-hover);
}
.uid-clickable:active {
    background: #dde3ff;
    transform: scale(0.96);
}

.today-views {
    font-size: 12px;
    color: var(--text-light);
    margin-left: 12px;
    background: #f0f7ff;
    padding: 2px 10px;
    border-radius: 10px;
    white-space: nowrap;
}

.latest-add {
    font-size: 12px;
    color: #e67e22;
    margin-left: 8px;
    background: #fff8f0;
    padding: 2px 10px;
    border-radius: 10px;
    white-space: nowrap;
}

.form-tip {
    font-size: 12px;
    color: #e67e22;
    line-height: 1.4;
}

.crop-filter {
    padding: 6px 10px;
    border: 1px solid #d0d0d0;
    border-radius: 6px;
    font-size: 13px;
    background: #fff;
    color: var(--text);
    cursor: pointer;
    max-width: 140px;
    outline: none;
    transition: border-color 0.2s;
}
.crop-filter:focus {
    border-color: var(--primary);
}

/* 排序下拉框 */
.sort-select {
    padding: 6px 10px;
    border: 1px solid #d0d0d0;
    border-radius: 6px;
    font-size: 13px;
    background: #fff;
    color: var(--text);
    cursor: pointer;
    max-width: 180px;
    outline: none;
    transition: border-color 0.2s;
}
.sort-select:focus {
    border-color: var(--primary);
}

/* ====== 按钮 ====== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 8px 18px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 500;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-outline:hover {
    background: #f5f7fa;
    border-color: var(--primary);
    color: var(--primary);
}

.btn-outline.active {
    background: #eef1ff;
    border-color: var(--primary);
    color: var(--primary);
}

.btn-cancel {
    background: #f5f7fa;
    color: var(--text);
}

.btn-cancel:hover {
    background: #e4e7ed;
}

.btn-sm {
    padding: 5px 12px;
    font-size: 13px;
}

.btn-edit {
    background: #eef1ff;
    color: var(--primary);
}

.btn-edit:hover {
    background: #dde3ff;
}

.btn-delete {
    background: #fde8e8;
    color: var(--danger);
}

.btn-delete:hover {
    background: #fcd5d5;
}

.btn-cap-off {
    background: #fff8e0;
    color: #d68910;
}
.btn-cap-off:hover {
    background: #fef0c0;
}

.btn-cap-on {
    background: #d5f5e3;
    color: #1e8449;
}
.btn-cap-on:hover {
    background: #abebc6;
}

/* ====== 已达上限标记 ====== */
.capped-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    color: #fff;
    background: #e74c3c;
    padding: 1px 7px;
    border-radius: 10px;
    margin-left: 4px;
    vertical-align: middle;
    white-space: nowrap;
}

tr.row-capped {
    background: #fff5f5 !important;
}

.reported-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    color: #fff;
    background: #f59e0b;
    padding: 1px 7px;
    border-radius: 10px;
    margin-left: 4px;
    vertical-align: middle;
    white-space: nowrap;
}

.btn-report {
    background: #f59e0b;
    color: #fff;
    border: none;
}
.reported-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    color: #fff;
    background: #f59e0b;
    padding: 1px 7px;
    border-radius: 10px;
    vertical-align: middle;
}
tr.row-capped:hover {
    background: #ffeaea !important;
}
tr.row-capped .multiplier-cell {
    text-decoration: line-through;
    opacity: 0.6;
}

/* ====== 表格 ====== */
.table-wrapper {
    background: var(--card-bg);
    border-radius: 10px;
    box-shadow: var(--shadow);
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

.data-table th {
    background: #fafbfc;
    padding: 14px 12px;
    text-align: left;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-light);
    border-bottom: 2px solid var(--border);
    white-space: nowrap;
}

.data-table td {
    padding: 14px 12px;
    border-bottom: 1px solid #f0f2f5;
    font-size: 14px;
}

.data-table tr:hover {
    background: #f8f9fb;
}

.data-table tr:last-child td {
    border-bottom: none;
}

.th-actions {
    text-align: center;
    width: 140px;
}

/* UID 列 */
.uid-cell {
    font-weight: 600;
    color: var(--primary);
}

/* 菜摊等级列 */
.home-level-cell {
    text-align: center;
    font-size: 13px;
    color: var(--text);
    white-space: nowrap;
}

/* 百家是否满级列 */
.home-max-level-cell {
    text-align: center;
    font-size: 13px;
    white-space: nowrap;
}

/* 倍率高亮 */
.multiplier-cell {
    font-weight: 700;
    font-size: 16px;
}

.multiplier-cell.level-1 { color: #27ae60; }    /* < 1.0   绿色 */
.multiplier-cell.level-2 { color: #52c41a; }    /* 1.0~1.19 浅绿 */
.multiplier-cell.level-3 { color: #e67e22; }    /* 1.2~1.49 橙色 */
.multiplier-cell.level-4 { color: #e74c3c; }    /* 1.5~1.99 红色 */
.multiplier-cell.level-5 { color: #c0392b; font-size: 18px; } /* >= 2.0 深红加大 */

/* 预计收入 */
.income-cell {
    font-weight: 600;
    color: #2c3e50;
}

/* 倒计时 */
.countdown-cell {
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.countdown-cell.warning {
    color: #e67e22;
}

.countdown-cell.danger {
    color: var(--danger);
    animation: pulse 1s ease infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* 操作列 */
.actions-cell {
    text-align: center;
    white-space: nowrap;
    display: flex;
    gap: 6px;
    justify-content: center;
}

/* ====== 空状态 ====== */
.empty-state {
    display: none;
    flex-direction: column;
    align-items: center;
    padding: 60px 20px;
    color: var(--text-light);
}

.empty-state.show {
    display: flex;
}

.empty-icon {
    font-size: 48px;
    margin-bottom: 12px;
    opacity: 0.6;
}

/* ====== 已达上限引导卡片 ====== */
.cap-guide {
    display: none;
    align-items: flex-start;
    gap: 10px;
    background: #fffbf0;
    border: 1px solid #f0dca0;
    border-radius: 8px;
    padding: 12px 14px;
    margin-bottom: 12px;
    font-size: 13px;
    line-height: 1.6;
    color: #7d6608;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.cap-guide.show {
    display: flex;
}

.cap-guide-icon {
    font-size: 16px;
    flex-shrink: 0;
    margin-top: 2px;
}

.cap-guide-text {
    flex: 1;
}

.cap-guide-text strong {
    color: #d68910;
}

.cap-guide-close {
    flex-shrink: 0;
    background: #fef3cd;
    border: 1px solid #f0dca0;
    border-radius: 6px;
    padding: 4px 10px;
    font-size: 12px;
    color: #7d6608;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s;
}

.cap-guide-close:hover {
    background: #fae4a0;
}

/* ====== 分页 ====== */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 20px;
}

.page-btn {
    width: 36px;
    height: 36px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--card-bg);
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.page-btn:hover:not(:disabled) {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.page-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.page-info {
    font-size: 14px;
    color: var(--text-light);
    min-width: 100px;
    text-align: center;
}

/* ====== 弹窗 ====== */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-overlay.active {
    display: flex;
}

/* ====== 反馈组件 ====== */

.feedback-item {
    background: var(--bg-input);
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 10px;
}

.feedback-time {
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 6px;
}

.feedback-content {
    font-size: 14px;
    line-height: 1.6;
    word-break: break-word;
}

.feedback-reply {
    margin-top: 8px;
    padding: 8px 10px;
    background: rgba(52, 152, 219, 0.1);
    border-left: 3px solid #3498db;
    border-radius: 4px;
    font-size: 13px;
    color: var(--text-main);
}

.feedback-reply-label {
    font-size: 12px;
    color: #3498db;
    font-weight: 600;
}

.feedback-reply-form {
    margin-top: 8px;
    display: flex;
    gap: 6px;
    align-items: center;
}

.feedback-reply-input {
    flex: 1;
    padding: 6px 10px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: var(--bg-card);
    color: var(--text-main);
    font-size: 13px;
    outline: none;
}

.feedback-reply-input:focus {
    border-color: #3498db;
}

.feedback-count {
    text-align: right;
    font-size: 12px;
    color: var(--text-light);
    margin-top: 4px;
}

.feedback-input {
    width: 100%;
    min-height: 80px;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background: var(--bg-input);
    color: var(--text-main);
    font-size: 14px;
    resize: vertical;
    outline: none;
    box-sizing: border-box;
}

.feedback-input:focus {
    border-color: #3498db;
}

.modal {
    background: var(--card-bg);
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 460px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    animation: modalIn 0.25s ease;
}

.modal-sm {
    max-width: 360px;
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px 14px;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}

.modal-header h2 {
    font-size: 16px;
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: var(--text-light);
    padding: 4px;
    border-radius: 4px;
}

.modal-close:hover {
    background: #f5f7fa;
}

.modal-body {
    padding: 16px 24px;
    overflow-y: auto;
    flex: 1;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 14px 24px;
    border-top: 1px solid var(--border);
    flex-shrink: 0;
}

/* ====== 家具折叠选择器（价格页用） ====== */
.furniture-toggle {
    cursor: pointer;
    color: var(--primary);
    font-size: 13px;
    padding: 6px 10px;
    border-radius: 6px;
    background: #f5f7ff;
    border: 1px dashed var(--primary);
    transition: background 0.2s;
    user-select: none;
    display: inline-block;
}
.furniture-toggle:hover {
    background: #eef1ff;
}
.furniture-toggle span {
    margin-right: 4px;
    font-size: 11px;
}

/* ====== 弹窗 Tab（价格页添加弹窗用） ====== */
.modal-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 16px;
    border-bottom: 2px solid var(--border);
}
.modal-tab {
    padding: 8px 16px;
    font-size: 14px;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    color: var(--text-light);
    transition: all 0.2s;
    user-select: none;
}
.modal-tab:hover {
    color: var(--primary);
}
.modal-tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
    font-weight: 600;
}
.price-tab-content, .furniture-tab-content, .ranch-tab-content {
    min-height: 200px;
}

/* 家具池样式（复用家具页面的） */
.furniture-pool {
    margin-top: 0;
}
.quality-group {
    margin-bottom: 8px;
}
.quality-label {
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 4px;
}
.furniture-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}
.furniture-option {
    padding: 3px 8px;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.15s;
    line-height: 1.4;
}
.furniture-option:hover {
    border-color: var(--primary);
    background: #f0f2ff;
}
.furniture-option.selected {
    border-color: var(--primary);
    background: #e8f0fe;
    font-weight: 600;
}
.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 6px;
    color: var(--text);
}

.required {
    color: var(--danger);
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.2s;
    outline: none;
    background: #fff;
}

.form-group input:focus,
.form-group select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 110, 247, 0.12);
}

.form-row {
    display: flex;
    gap: 8px;
    align-items: center;
}

.form-row input,
.form-row select {
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.2s;
    outline: none;
    background: #fff;
}

.form-row input:focus,
.form-row select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 110, 247, 0.12);
}

.form-tip {
    font-size: 13px;
    color: var(--text-light);
    margin-top: 4px;
}

/* ====== 行内分组（手机端并排，桌面端纵向） ====== */
.form-row-group {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.form-row-group > .form-group {
    margin-bottom: 0;
}

@media (max-width: 640px) {
    .form-row-group {
        flex-direction: row;
        gap: 8px;
    }
}

/* ====== Toast ====== */
.toast {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-80px);
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    z-index: 2000;
    opacity: 0;
    transition: all 0.3s;
    pointer-events: none;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.toast.success {
    background: var(--success);
    color: #fff;
}

.toast.error {
    background: var(--danger);
    color: #fff;
}

.toast.info {
    background: var(--primary);
    color: #fff;
}

/* ====== 加载状态 ====== */
.loading {
    text-align: center;
    padding: 40px;
    color: var(--text-light);
}

.loading::after {
    content: "";
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-left: 8px;
    vertical-align: middle;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ====== 公告板 ====== */
.announcement {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    background: linear-gradient(135deg, #fff8e1, #fff3cd);
    border: 1px solid #ffe082;
    border-left: 4px solid #f57c00;
    border-radius: 8px;
    padding: 14px 16px;
    margin-bottom: 14px;
}

.announcement-icon {
    font-size: 24px;
    flex-shrink: 0;
    line-height: 1;
}

.announcement-body {
    flex: 1;
    min-width: 0;
}

.announcement-title {
    font-size: 15px;
    font-weight: 600;
    color: #e65100;
    margin-bottom: 4px;
}

.announcement-text {
    font-size: 13px;
    color: #5d4037;
    line-height: 1.6;
}

.announcement-text strong {
    color: #d84315;
}

.announcement-text a {
    text-decoration: none;
    font-weight: 600;
    color: #7c3aed;
}

.announcement-text a:hover {
    color: #6d28d9;
}

/* ====== 排序说明 ====== */
.sort-desc {
    font-size: 12px;
    color: #a0a4a8;
    text-align: center;
    padding: 2px 0 10px;
    line-height: 1.6;
}

/* ====== 移动端滑动提示 ====== */
.swipe-hint {
    display: none;
    text-align: center;
    font-size: 12px;
    color: var(--text-light);
    padding: 4px 0 2px;
    animation: swipeHintAnim 1.5s ease-in-out infinite;
}

@keyframes swipeHintAnim {
    0%, 100% { opacity: 0.4; transform: translateX(0); }
    50% { opacity: 1; transform: translateX(6px); }
}

/* ====== 操作列：未验证时默认隐藏 ====== */
.data-table .th-actions {
    display: none;
}
.data-table td:last-child {
    display: none;
}
.data-table.show-actions .th-actions,
.data-table.show-actions td:last-child {
    display: table-cell;
}

/* ====== 响应式 ====== */
@media (max-width: 640px) {
    .container {
        padding: 16px 12px;
    }

    .header h1 {
        font-size: 20px;
    }

    .subtitle {
        font-size: 12px;
    }

    .toolbar {
        gap: 6px;
    }
    .uid-search-input {
        width: 100px;
        font-size: 12px;
        padding: 4px 6px;
    }

    .toolbar .btn {
        padding: 6px 12px;
        font-size: 13px;
    }

    .item-count {
        margin-left: 0;
        width: 100%;
        text-align: right;
    }

    .table-wrapper {
        border-radius: 8px;
    }

    .swipe-hint {
        display: block;
    }

    .data-table th,
    .data-table td {
        padding: 8px 8px;
        font-size: 12px;
    }    /* 移动端操作按钮紧凑显示 */
    .actions-cell {
        display: flex;
        flex-direction: column;
        gap: 4px;
    }
    .actions-cell .btn-sm {
        padding: 3px 6px;
        font-size: 11px;
        justify-content: center;
    }

    .multiplier-cell {
        font-size: 14px !important;
    }
    .multiplier-cell.level-5 {
        font-size: 15px !important;
    }

    .modal {
        max-width: 100%;
        margin: 10px;
        border-radius: 10px;
        max-height: 85vh;
        -webkit-overflow-scrolling: touch;
    }

    .modal-header {
        padding: 14px 18px 12px;
    }
    .modal-body {
        padding: 12px 16px;
    }
    .modal-footer {
        padding: 12px 16px;
    }

    /* 手机端：表单字段紧凑 */
    .modal-body .form-group {
        margin-bottom: 10px;
    }
    .modal-body .form-group label {
        font-size: 13px;
        margin-bottom: 4px;
    }
    .modal-body .form-group input,
    .modal-body .form-group select {
        padding: 8px 10px;
        font-size: 13px;
    }
    .modal-body .form-row-group {
        gap: 6px;
    }
    /* 自定义时长输入框紧凑 */
    #customExpireGroup input {
        padding: 8px 10px;
        font-size: 13px;
    }

    .pagination {
        gap: 8px;
    }
    .page-btn {
        width: 32px;
        height: 32px;
        font-size: 15px;
    }
    .page-info {
        font-size: 12px;
        min-width: 80px;
    }

    .cap-guide {
        flex-direction: column;
        gap: 8px;
        font-size: 12px;
        padding: 10px 12px;
    }
    .cap-guide-close {
        align-self: flex-end;
    }

    .mobile-scroll-hint {
        display: block !important;
    }

    /* 手机端：公告板紧凑 */
    .announcement {
        padding: 10px 12px;
        gap: 8px;
    }
    .announcement-icon {
        font-size: 20px;
    }
    .announcement-title {
        font-size: 14px;
    }
    .announcement-text {
        font-size: 12px;
    }

    .toast {
        font-size: 13px;
        padding: 10px 18px;
        max-width: 90%;
    }
}

/* ====== 页面 Tab 导航 ====== */
.page-tabs {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin-bottom: 16px;
    background: #e8ecf1;
    border-radius: 10px;
    padding: 3px;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
}
.tab {
    flex: 1;
    text-align: center;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-light);
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
}
.tab.active {
    background: #fff;
    color: var(--text);
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}
.tab:hover:not(.active) {
    color: var(--text);
}

/* ====== 家具标签 ====== */
.furniture-tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    border: 1px solid;
    margin: 2px 3px;
    white-space: nowrap;
}
.furniture-cell {
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
    min-width: 200px;
}

/* ====== 家具选择器 ====== */
.furniture-pool {
    max-height: 320px;
    overflow-y: auto;
    scroll-behavior: smooth;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 10px;
    background: #fafafa;
}

/* 手机端：家具池去掉嵌套滚动，跟随弹窗自然滚动 */
@media (max-width: 640px) {
    .furniture-pool {
        max-height: none;
        overflow-y: visible;
    }
}

.quality-group {
    margin-bottom: 12px;
}
.quality-group:last-child {
    margin-bottom: 0;
}
.quality-label {
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 6px;
}
.furniture-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.furniture-option {
    padding: 5px 10px;
    border: 1.5px solid #e0e0e0;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.15s;
    user-select: none;
    background: #fff;
}
.furniture-option:hover {
    border-color: var(--primary);
    background: #f0f3ff;
}
.furniture-option.selected {
    border-width: 2px;
    font-weight: 600;
}

/* ====== 倒计时/过期 ====== */
.countdown-cell {
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}
.countdown-text {
    font-size: 13px;
    color: var(--primary);
    font-weight: 500;
}
.expired-badge {
    font-size: 12px;
    color: var(--text-light);
    background: #f0f0f0;
    padding: 2px 8px;
    border-radius: 4px;
}
.row-expired {
    opacity: 0.5;
}
.text-light {
    color: var(--text-light);
    font-size: 12px;
}

/* ====== 反馈按钮（浮窗） ====== */
.feedback-fab {
    position: fixed;
    bottom: 24px;
    right: 24px;
    padding: 12px 20px;
    border-radius: 28px;
    background: var(--primary);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0,0,0,0.25);
    z-index: 999;
    transition: transform 0.2s, box-shadow 0.2s;
    user-select: none;
}
.feedback-fab:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}
.feedback-fab:active {
    transform: scale(0.95);
}

.feedback-badge {
    display: none;
    position: absolute;
    top: -4px;
    right: -8px;
    width: 10px;
    height: 10px;
    background: #e74c3c;
    border-radius: 50%;
    box-shadow: 0 0 4px rgba(231,76,60,0.6);
    pointer-events: none;
}

/* 反馈输入框 */
.feedback-input {
    width: 100%;
    min-height: 120px;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    resize: vertical;
    box-sizing: border-box;
    font-family: inherit;
}
.feedback-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(52,152,219,0.2);
}
.feedback-count {
    text-align: right;
    font-size: 12px;
    color: var(--text-light);
    margin-top: 4px;
}

/* 反馈列表项 */
.feedback-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 8px;
}
.feedback-time {
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 6px;
}
.feedback-content {
    font-size: 14px;
    line-height: 1.5;
    white-space: pre-wrap;
    word-break: break-word;
}

/* 反馈回复 */
.feedback-reply {
    margin-top: 6px;
    padding: 8px 10px;
    background: #f0fff0;
    border-left: 3px solid #27ae60;
    border-radius: 4px;
    font-size: 13px;
    line-height: 1.4;
}
.feedback-reply-label {
    font-weight: 600;
    color: #27ae60;
}

/* 小弹窗 */
.modal.modal-sm {
    max-width: 420px;
}

/* ====== 移动端适配 ====== */
@media (max-width: 768px) {
    .page-tabs {
        max-width: none;
        border-radius: 8px;
    }
    .tab {
        padding: 8px 10px;
        font-size: 13px;
    }
    .furniture-cell {
        min-width: auto;
    }
}
@media (max-width: 640px) {
    .feedback-fab {
        bottom: 80px;
    }
}

/* ════ 已购买标记 =════ */
.row-purchased {
    opacity: 0.55;
}
.row-purchased .furniture-tag {
    opacity: 0.6;
}
.btn-purchased-on {
    background: #bbf7d0 !important;
    color: #166534 !important;
    border: 1px solid #86efac !important;
}
.btn-purchased-off {
    background: #f8fafc !important;
    color: #94a3b8 !important;
    border: 1px solid #e2e8f0 !important;
}
.btn-purchased-on:hover,
.btn-purchased-off:hover {
    opacity: 0.85;
}

/* ════ watermark:3a7f ════ */
/* v=20260515j */
