/* 推荐有礼页样式（2026-11-04） */

.rf-container {
    padding: 0;
}

.rf-container .page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 16px;
}

.rf-sub {
    margin: 6px 0 0;
    font-size: 13px;
    color: #8a8680;
    line-height: 1.7;
    max-width: 820px;
}

/* ── 统计卡 ── */
.rf-stats {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

@media (max-width: 1280px) {
    .rf-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.rf-stat {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 14px 16px;
}

.rf-stat-num {
    font-size: 24px;
    font-weight: 600;
    line-height: 1.2;
    color: #1a1a1a;
    font-variant-numeric: tabular-nums;
}

.rf-stat-lb {
    margin-top: 6px;
    font-size: 13px;
    color: #4a463f;
}

.rf-stat-sub {
    margin-top: 2px;
    font-size: 12px;
    color: #a8a29a;
}

/* ── 卡片 ── */
.rf-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 10px;
    margin-bottom: 16px;
    overflow: hidden;
}

.rf-card--top {
    padding-bottom: 4px;
}

.rf-card-hd {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid #f4f4f1;
    font-size: 14px;
    font-weight: 500;
    color: #1a1a1a;
}

.rf-hint {
    font-size: 12px;
    font-weight: 400;
    color: #8a8680;
    text-align: right;
}

/* ── 表单 ── */
.rf-form {
    padding: 16px;
}

.rf-field {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.rf-field--top {
    align-items: flex-start;
}

.rf-field > label {
    width: 76px;
    flex-shrink: 0;
    font-size: 13px;
    color: #6b665e;
    line-height: 32px;
}

.rf-field--top > label {
    line-height: 1.7;
    padding-top: 6px;
}

.rf-input {
    height: 32px;
    padding: 0 10px;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    background: #fff;
    font-size: 13px;
    color: #1a1a1a;
    box-sizing: border-box;
}

.rf-input:focus {
    outline: none;
    border-color: #c8a96a;
}

.rf-input--num {
    width: 96px;
}

.rf-input--wide {
    flex: 1;
    min-width: 240px;
    max-width: 520px;
}

.rf-input--search {
    flex: 1;
    min-width: 220px;
    max-width: 360px;
}

.rf-textarea {
    flex: 1;
    min-width: 240px;
    max-width: 720px;
    height: auto;
    min-height: 76px;
    padding: 8px 10px;
    line-height: 1.6;
    resize: vertical;
    font-family: inherit;
}

.rf-unit {
    font-size: 12px;
    color: #8a8680;
    margin-left: -4px;
}

.rf-tip {
    font-size: 12px;
    color: #a8a29a;
    line-height: 1.6;
}

.rf-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    padding-top: 4px;
}

/* 开关 */
.rf-switch {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    width: auto !important;
    line-height: 1 !important;
}

.rf-switch input {
    display: none;
}

.rf-switch-track {
    width: 40px;
    height: 22px;
    border-radius: 22px;
    background: #dcd8d0;
    position: relative;
    transition: background .18s ease;
}

.rf-switch-track i {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .16);
    transition: transform .18s ease;
}

.rf-switch input:checked + .rf-switch-track {
    background: #2e8b57;
}

.rf-switch input:checked + .rf-switch-track i {
    transform: translateX(18px);
}

/* ── 邀请榜 ── */
.rf-top {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 8px;
    padding: 12px 16px 8px;
}

.rf-top-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border: 1px solid #f4f4f1;
    border-radius: 8px;
}

.rf-top-rank {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    border-radius: 50%;
    background: #f4f1ea;
    color: #8a6d2f;
    font-size: 12px;
    line-height: 20px;
    text-align: center;
}

.rf-top-main {
    min-width: 0;
    flex: 1;
}

.rf-top-name {
    font-size: 13px;
    color: #1a1a1a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rf-top-sub {
    font-size: 12px;
    color: #a8a29a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rf-top-num {
    font-size: 13px;
    color: #1a1a1a;
    white-space: nowrap;
}

.rf-top-num i {
    display: block;
    font-style: normal;
    font-size: 12px;
    color: #a8a29a;
    text-align: right;
}

/* ── 筛选 ── */
.rf-filter {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

/* ── 表格 ── */
.rf-table-wrap {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 10px;
    overflow: hidden;
}

.rf-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.rf-table th {
    text-align: left;
    font-size: 12px;
    font-weight: 500;
    color: #8a8680;
    background: #fafaf8;
    padding: 10px 12px;
    border-bottom: 1px solid #eee;
    white-space: nowrap;
}

.rf-table td {
    padding: 12px;
    font-size: 13px;
    color: #1a1a1a;
    border-bottom: 1px solid #f4f4f1;
    vertical-align: top;
}

.rf-table tr:last-child td {
    border-bottom: none;
}

.rf-name {
    font-weight: 500;
}

.rf-name-sub {
    margin-top: 2px;
    font-size: 12px;
    color: #a8a29a;
    word-break: break-all;
}

.rf-time {
    font-size: 12px;
    color: #6b665e;
    white-space: nowrap;
}

.rf-muted {
    color: #a8a29a;
    font-size: 12px;
}

.rf-ops {
    white-space: nowrap;
}

.rf-ops .btn + .btn {
    margin-left: 6px;
}

.rf-empty {
    text-align: center;
    color: #a8a29a;
    padding: 40px 0 !important;
}

/* ── 状态标签 ── */
.rf-chip {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
}

.rf-chip--pending {
    color: #b8860b;
    background: rgba(212, 160, 23, .12);
}

.rf-chip--done {
    color: #2e8b57;
    background: rgba(46, 139, 87, .10);
}

.rf-chip--capped {
    color: #a35a1b;
    background: rgba(196, 106, 40, .12);
}

.rf-chip--invalid {
    color: #8a8680;
    background: #f0eee9;
}

/* ── 分页 ── */
.rf-pager {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
}

.rf-pager-info {
    margin-right: auto;
    font-size: 12px;
    color: #8a8680;
}
