.YXYH-pc-page-reply-fortune {
    width: min(var(--ls-width, 1200px), calc(100% - 24px));
    margin: 20px auto 40px;
    color: var(--ls-text-primary, #1f2937);
}

.yxyh-rf-hero {
    position: relative;
    overflow: hidden;
    margin-bottom: 18px;
    border: 1px solid rgba(226, 232, 240, 0.96);
    border-radius: calc(var(--ls-border-radius, 12px) + 4px);
    background: linear-gradient(135deg, #f0f9ff 0%, #f7fee7 52%, #fff7ed 100%);
    box-shadow: 0 16px 36px rgba(148, 163, 184, 0.08);
}

.yxyh-rf-hero::before {
    position: absolute;
    top: -56px;
    right: -34px;
    width: 180px;
    height: 180px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.18), rgba(56, 189, 248, 0));
    content: "";
    pointer-events: none;
}

.yxyh-rf-hero::after {
    position: absolute;
    left: 30px;
    bottom: -52px;
    width: 180px;
    height: 180px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(250, 204, 21, 0.16), rgba(250, 204, 21, 0));
    content: "";
    pointer-events: none;
}

.yxyh-rf-hero-inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 28px 32px;
}

.yxyh-rf-hero-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 56px;
    height: 56px;
    border: 1px solid rgba(191, 219, 254, 0.72);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.7);
    color: #2563eb;
    font-size: 26px;
    backdrop-filter: blur(6px);
}

.yxyh-rf-hero-text {
    flex: 1 1 auto;
    min-width: 0;
}

.yxyh-rf-hero-text span {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.64);
    color: #15803d;
    font-size: 12px;
}

.yxyh-rf-hero-text h1 {
    margin: 8px 0 6px;
    color: #0f172a;
    font-size: 24px;
    line-height: 1.2;
}

.yxyh-rf-hero-text p {
    margin: 0;
    color: #64748b;
    font-size: 14px;
    line-height: 1.6;
}

.yxyh-rf-hero-action {
    flex: 0 0 auto;
}

.yxyh-rf-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 38px;
    padding: 0 18px;
    border: 1px solid transparent;
    border-radius: calc(var(--ls-border-radius-btn, 10px) + 2px);
    font-size: 13px;
    cursor: pointer;
    transition: background 0.16s ease, border-color 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
}

.yxyh-rf-btn:hover {
    transform: translateY(-1px);
}

.yxyh-rf-btn:disabled {
    cursor: not-allowed;
    opacity: 0.55;
    transform: none;
}

.yxyh-rf-btn.is-primary {
    border-color: rgba(96, 165, 250, 0.62);
    background: linear-gradient(180deg, #eff6ff 0%, #dbeafe 100%);
    color: #1d4ed8;
}

.yxyh-rf-btn.is-primary:hover {
    border-color: rgba(37, 99, 235, 0.72);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.12);
}

.yxyh-rf-btn.is-ghost {
    border-color: #e2e8f0;
    background: #ffffff;
    color: #475569;
}

.yxyh-rf-btn.is-ghost:hover {
    border-color: rgba(96, 165, 250, 0.56);
    background: #f8fafc;
}

.yxyh-rf-stat-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.yxyh-rf-stat-card {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    align-items: center;
    column-gap: 12px;
    min-height: 92px;
    padding: 18px;
    border-radius: calc(var(--ls-border-radius, 12px) + 4px);
    background: #ffffff;
    box-shadow: 0 4px 16px rgba(148, 163, 184, 0.06);
}

.yxyh-rf-stat-card i {
    grid-row: span 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: #eff6ff;
    color: #2563eb;
    font-size: 19px;
}

.yxyh-rf-stat-card span {
    color: #64748b;
    font-size: 12px;
}

.yxyh-rf-stat-card strong {
    overflow: hidden;
    color: #0f172a;
    font-size: 22px;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.yxyh-rf-main-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 300px;
    gap: 18px;
    margin-bottom: 18px;
}

.yxyh-rf-card {
    border-radius: calc(var(--ls-border-radius, 12px) + 4px);
    background: #ffffff;
    box-shadow: 0 4px 16px rgba(148, 163, 184, 0.06);
    padding: 24px;
}

.yxyh-rf-rules-card {
    height: 380px;
}

.yxyh-rf-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    height: 30px;
    margin-bottom: 15px;
}

.yxyh-rf-card-head h2 {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    margin: 0;
    color: #0f172a;
    font-size: 16px;
    line-height: 1.2;
}

.yxyh-rf-card-head h2 i {
    color: var(--ls-primary, #2563eb);
    font-size: 18px;
}

.yxyh-rf-card-head span {
    padding: 3px 10px;
    border-radius: 20px;
    background: #f1f5f9;
    color: #64748b;
    font-size: 12px;
}

.yxyh-rf-card-head span.is-enabled {
    background: rgba(34, 197, 94, 0.1);
    color: #16a34a;
}

.yxyh-rf-card-head span.is-disabled {
    background: rgba(148, 163, 184, 0.14);
    color: #64748b;
}

.yxyh-rf-rule-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    height: 285px;
    overflow-y: auto;
}

.yxyh-rf-rule {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 58px;
    padding: 10px 14px;
    border-radius: calc(var(--ls-border-radius, 12px));
    background: #f8fafc;
}

.yxyh-rf-rule[data-effect="reward"] {
    background: #f0fdf4;
}

.yxyh-rf-rule[data-effect="punish"] {
    background: #fff7ed;
}

.yxyh-rf-rule strong {
    display: block;
    margin-bottom: 4px;
    color: #0f172a;
    font-size: 13px;
}

.yxyh-rf-rule span {
    display: block;
    color: #64748b;
    font-size: 12px;
    line-height: 1.35;
}

.yxyh-rf-rule em {
    flex: 0 0 auto;
    color: #475569;
    font-size: 12px;
    font-style: normal;
}

.yxyh-rf-today-summary {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    min-height: 120px;
    color: #334155;
    font-size: 14px;
}

.yxyh-rf-today-block {
    min-width: 0;
    padding: 12px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: calc(var(--ls-border-radius, 12px));
}

.yxyh-rf-today-block[data-effect="reward"] {
    border-color: rgba(34, 197, 94, 0.12);
    background: #fbfffc;
}

.yxyh-rf-today-block[data-effect="punish"] {
    border-color: rgba(251, 146, 60, 0.14);
    background: #fffdf9;
}

.yxyh-rf-today-block-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 10px;
}

.yxyh-rf-today-block-head strong {
    color: #0f172a;
    font-size: 13px;
}

.yxyh-rf-today-block-head span {
    color: #64748b;
    font-size: 12px;
}

.yxyh-rf-today-block-body {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.yxyh-rf-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 28px;
    max-width: 100%;
    padding: 0 10px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 999px;
    color: #334155;
    font-size: 12px;
    line-height: 1;
    box-shadow: 0 4px 12px rgba(148, 163, 184, 0.08);
}

.yxyh-rf-pill[data-effect="reward"] {
    background: #ffffff;
}

.yxyh-rf-pill[data-effect="punish"] {
    background: #ffffff;
}

.yxyh-rf-today-block-body .yxyh-rf-pill:nth-child(5n+1) {
    border-color: rgba(59, 130, 246, 0.2);
    color: #2563eb;
}

.yxyh-rf-today-block-body .yxyh-rf-pill:nth-child(5n+2) {
    border-color: rgba(34, 197, 94, 0.2);
    color: #15803d;
}

.yxyh-rf-today-block-body .yxyh-rf-pill:nth-child(5n+3) {
    border-color: rgba(251, 146, 60, 0.24);
    color: #c2410c;
}

.yxyh-rf-today-block-body .yxyh-rf-pill:nth-child(5n+4) {
    border-color: rgba(236, 72, 153, 0.2);
    color: #be185d;
}

.yxyh-rf-today-block-body .yxyh-rf-pill:nth-child(5n) {
    border-color: rgba(139, 92, 246, 0.2);
    color: #6d28d9;
}

.yxyh-rf-pill strong {
    overflow: hidden;
    color: inherit;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.yxyh-rf-pill.is-empty {
    background: #ffffff;
    color: #94a3b8;
    box-shadow: none;
}

.yxyh-rf-record-card {
    padding: 24px;
}

.yxyh-rf-record-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 120px;
}

.yxyh-rf-record {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    min-height: 58px;
    padding: 10px 14px;
    border-radius: calc(var(--ls-border-radius, 12px));
    background: #f8fafc;
}

.yxyh-rf-record[data-effect="reward"] {
    background: #f8fafc;
}

.yxyh-rf-record[data-effect="punish"] {
    background: #fff7ed;
}

.yxyh-rf-record-main {
    min-width: 0;
}

.yxyh-rf-record-title {
    display: flex;
    align-items: center;
    gap: 5px;
    min-width: 0;
    margin-bottom: 4px;
    color: #64748b;
    font-size: 12px;
}

.yxyh-rf-record-title strong {
    flex: 0 0 auto;
    color: #0f172a;
    font-size: 13px;
}

.yxyh-rf-record-title span {
    flex: 0 0 auto;
}

.yxyh-rf-record-user {
    flex: 0 0 auto;
    max-width: 100%;
    color: #0f172a;
    font-size: 13px;
    text-decoration: none;
}

.yxyh-rf-record-user:hover {
    color: var(--ls-primary, #2563eb);
}

.yxyh-rf-record-main span {
    display: block;
    overflow: hidden;
    color: #64748b;
    font-size: 12px;
    line-height: 1.4;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.yxyh-rf-record-reply {
    overflow: hidden;
    color: var(--ls-primary, #2563eb);
    text-decoration: none;
    text-overflow: ellipsis;
    white-space: nowrap;
}

a.yxyh-rf-record-reply:hover {
    text-decoration: underline;
}

.yxyh-rf-record-meta {
    flex: 0 0 auto;
    text-align: right;
}

.yxyh-rf-record-meta em {
    display: inline-flex;
    margin-bottom: 5px;
    padding: 2px 8px;
    border-radius: 20px;
    background: rgba(34, 197, 94, 0.1);
    color: #16a34a;
    font-size: 11px;
    font-style: normal;
}

.yxyh-rf-record-meta em.is-revoked {
    background: rgba(245, 158, 11, 0.1);
    color: #d97706;
}

.yxyh-rf-record-meta em.is-revoke_failed {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
}

.yxyh-rf-record[data-effect="punish"] .yxyh-rf-record-meta em.is-awarded {
    background: rgba(251, 146, 60, 0.12);
    color: #c2410c;
}

.yxyh-rf-record-meta time {
    display: block;
    color: #94a3b8;
    font-size: 12px;
}

.yxyh-rf-pager {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 14px;
}

.yxyh-rf-pager span {
    min-width: 72px;
    color: #64748b;
    font-size: 13px;
    text-align: center;
}

.yxyh-rf-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 96px;
    color: #94a3b8;
    font-size: 13px;
}

.yxyh-rf-empty i {
    color: #cbd5e1;
    font-size: 18px;
}

@media (max-width: 1100px) {
    .yxyh-rf-stat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .yxyh-rf-main-grid {
        grid-template-columns: 1fr 1fr;
    }

    .yxyh-rf-today-card {
        grid-column: span 2;
    }
}

@media (max-width: 760px) {
    .yxyh-rf-hero-inner {
        display: block;
        padding: 24px;
    }

    .yxyh-rf-hero-badge {
        margin-bottom: 14px;
    }

    .yxyh-rf-hero-action {
        margin-top: 16px;
    }

    .yxyh-rf-stat-grid {
        grid-template-columns: 1fr;
    }

    .yxyh-rf-main-grid {
        grid-template-columns: 1fr;
    }

    .yxyh-rf-today-card {
        grid-column: auto;
    }

    .yxyh-rf-rules-card {
        height: auto;
    }

    .yxyh-rf-rule-list {
        height: auto;
        max-height: 285px;
    }

    .yxyh-rf-record {
        display: block;
    }

    .yxyh-rf-record-meta {
        margin-top: 8px;
        text-align: left;
    }
}
