.wx-referral { margin-top: 22px; }
.wx-referral .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.wx-referral-banner { position: relative; display: flex; align-items: center; min-height: 240px; padding: 24px 32px; background: url('/images/wuxia-background.jpg') center 42% / cover; isolation: isolate; }
.wx-referral-banner::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, #eff6ffef, #eef6ffbb 24%, #eef6ff00 70%); }
.wx-referral-banner > div { max-width: 260px; }
.wx-referral-banner span { color: #295869; font-size: 12px; font-weight: 600; }
.wx-benefits .wx-referral-banner h3 { margin: 4px 0 10px; color: #203d4e; font: 800 30px/1.4 'Songti SC', serif; }
.wx-referral-banner p { font-size: 13px; color: #29475a; }
.wx-referral-banner strong { display: block; color: #a33d3c; font: 750 58px/1.15 Georgia, serif; }
.wx-referral-banner small { margin-left: 8px; font: 600 18px/1.5 'PingFang SC', sans-serif; }
.wx-referral-period { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 22px 0 14px; }
.wx-referral-period h3 { font-size: 18px; font-weight: 700; }
.wx-referral-period form { display: flex; align-items: center; gap: 8px; font-size: 12px; }
.wx-referral-period select { min-height: 40px; width: 126px; padding: 8px 26px 8px 10px; color: #35494d; border: 1px solid #d8e2e6; border-radius: 4px; background-color: #fff; font-size: 13px; }
.wx-referral-period button, .wx-referral-friends .wx-section-title a, .wx-referral-pagination a { display: grid; place-items: center; width: 40px; height: 40px; flex: 0 0 40px; border: 1px solid #d8e2e6; border-radius: 4px; color: #335f70; background: #fff; }
.wx-referral-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-block: 1px solid #d8e3e5; padding-block: 18px; }
.wx-referral-stats > div { padding: 0 20px; border-right: 1px solid #d8e3e5; }
.wx-referral-stats > div:first-child { padding-left: 0; }
.wx-referral-stats > div:last-child { border: 0; }
.wx-referral-stats dt { font-size: 12px; color: #68777b; }
.wx-referral-stats dd { margin: 3px 0 0; font-size: 30px; line-height: 1.4; color: #335d6c; font-weight: 700; overflow-wrap: anywhere; }
.wx-referral-stats > div:nth-child(2) dd { color: #246a56; }
.wx-referral-stats > div:nth-child(3) dd { color: #a33d3c; }
.wx-referral-stats small { font-size: 12px; font-weight: 500; padding-left: 5px; }
.wx-referral-share { padding: 24px 0 6px; }
.wx-referral-share__controls { display: flex; gap: 8px; }
.wx-referral-share__controls input { width: 100%; min-width: 0; min-height: 44px; border: 1px solid #d5e0e5; border-radius: 4px; background: #fff; padding: 10px 12px; color: #607177; font-size: 13px; }
.wx-referral-share__controls button { display: flex; justify-content: center; align-items: center; flex: 0 0 auto; gap: 7px; min-height: 44px; padding: 10px 16px; border: 1px solid #285f69; border-radius: 4px; background: #285f69; color: #fff; font-size: 13px; }
.wx-referral-share__controls button:last-child { padding-inline: 12px; }
.wx-referral-share__status { min-height: 27px; padding-top: 6px; color: #246a56; font-size: 12px; }
.wx-referral-alert { display: flex; align-items: flex-start; gap: 8px; padding: 12px 0; color: #a64a37; font-size: 13px; }
.wx-referral-alert svg { margin-top: 2px; }
.wx-referral-milestones { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.wx-referral-milestone { min-width: 0; padding: 16px; border: 1px solid #d9e1e6; border-top: 3px solid #6d8fa6; border-radius: 6px; background: #fff; }
.wx-referral-milestone:nth-child(2) { border-top-color: #b58145; }
.wx-referral-milestone:nth-child(3) { border-top-color: #669986; }
.wx-referral-milestone header { display: flex; align-items: center; justify-content: space-between; color: #416778; font-size: 13px; font-weight: 650; }
.wx-referral-milestone .wx-reward-item { gap: 10px; min-height: 106px; }
.wx-referral-milestone .wx-reward-item > img { width: 70px; height: 70px; flex-basis: 70px; }
.wx-referral-milestone progress { display: block; width: 100%; height: 5px; border: 0; border-radius: 3px; background: #e9edef; color: #418278; overflow: hidden; }
.wx-referral-milestone progress::-webkit-progress-bar { background: #e9edef; }
.wx-referral-milestone progress::-webkit-progress-value { background: #418278; }
.wx-referral-milestone progress::-moz-progress-bar { background: #418278; }
.wx-referral-milestone footer { display: flex; justify-content: space-between; gap: 6px; padding-top: 12px; color: #738084; font-size: 11px; flex-wrap: wrap; }
.wx-referral-milestone footer b { font-weight: 500; }
.wx-referral-milestone.is-reached { border-color: #79a999; }
.wx-referral-milestone.is-reached footer b { color: #246a56; }
.wx-referral-delivery { display: flex; align-items: center; gap: 7px; padding: 12px 0 24px; color: #7f714d; font-size: 12px; }
.wx-referral-friends { border-top: 1px solid #dbe4e6; padding-top: 20px; }
.wx-referral-friends .wx-section-title { align-items: center; }
.wx-referral-friend-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; }
.wx-referral-friend { display: grid; grid-template-columns: 54px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 18px 0; border-bottom: 1px solid #e3e9ec; }
.wx-referral-friend > img { display: block; width: 54px; height: 54px; object-fit: contain; transform: none; }
.wx-referral-friend h4 { margin: 0 0 4px; color: #304448; font-size: 13px; font-weight: 650; overflow-wrap: anywhere; }
.wx-referral-friend__identity span { display: block; color: #7b888a; font-size: 11px; }
.wx-referral-friend__state { display: grid; gap: 4px; text-align: right; color: #8a6b3e; font-size: 11px; }
.wx-referral-friend__state strong { font-weight: 550; }
.wx-referral-friend__state span { font-size: 10px; color: #7b888a; }
.wx-referral-friend__state.is-effective { color: #287663; }
.wx-referral-empty { display: flex; align-items: center; justify-content: center; gap: 20px; min-height: 145px; padding: 20px 0 30px; }
.wx-referral-empty img { width: 76px; height: 76px; object-fit: contain; }
.wx-referral-empty strong { font-size: 14px; color: #46616b; }
.wx-referral-empty p { margin-top: 5px; font-size: 12px; color: #74838a; }
.wx-referral-pagination { display: flex; justify-content: center; align-items: center; gap: 20px; padding: 20px 0; font-size: 12px; }
.wx-referral-rules { margin-top: 16px; border-block: 1px solid #dbe4e6; padding: 14px 0; }
.wx-referral-rules summary { display: flex; align-items: center; justify-content: space-between; min-height: 30px; font-size: 13px; color: #526a73; font-weight: 600; cursor: pointer; list-style: none; }
.wx-referral-rules summary::-webkit-details-marker { display: none; }
.wx-referral-rules[open] summary svg { transform: rotate(180deg); }
.wx-referral-rules ul { margin: 14px 0 0; padding-left: 20px; color: #728084; font-size: 12px; line-height: 1.9; }
.wx-referral-rules li { padding: 3px 0; list-style: disc; }
.wx-referral a:focus-visible, .wx-referral select:focus-visible, .wx-referral input:focus-visible, .wx-referral summary:focus-visible { outline: 3px solid #3b8fbb; outline-offset: 3px; }
@media (max-width: 1100px) {
    .wx-referral-friend-list { grid-template-columns: minmax(0, 1fr); }
    .wx-referral-milestone .wx-reward-item { flex-direction: column; align-items: flex-start; gap: 6px; min-height: 168px; }
}
@media (max-width: 600px) {
    .wx-referral { margin-top: 16px; }
    .wx-referral-banner { min-height: 220px; padding: 22px; background-position: 53% center; }
    .wx-referral-banner::before { background: linear-gradient(90deg, #eff6fff0, #eff6ffb0 36%, #eff6ff00 90%); }
    .wx-benefits .wx-referral-banner h3 { font-size: 26px; }
    .wx-referral-banner strong { font-size: 50px; }
    .wx-referral-stats > div { padding-inline: 9px; }
    .wx-referral-stats dt { font-size: 10px; }
    .wx-referral-stats dd { font-size: 25px; }
    .wx-referral-stats small { font-size: 10px; }
    .wx-referral-share__controls { flex-wrap: wrap; }
    .wx-referral-share__controls input { flex: 1 1 100%; }
    .wx-referral-share__controls button { flex-grow: 1; }
    .wx-referral-share__controls button:last-child { flex-grow: 0; }
    .wx-referral-milestones { gap: 8px; }
    .wx-referral-milestone { padding: 11px 9px; }
    .wx-referral-milestone header { font-size: 11px; }
    .wx-referral-milestone header svg { display: none; }
    .wx-referral-milestone .wx-reward-item { min-height: 158px; }
    .wx-referral-milestone .wx-reward-item > img { width: 58px; height: 58px; flex-basis: 58px; align-self: center; }
    .wx-referral-milestone .wx-reward-item strong { font-size: 11px; }
    .wx-referral-milestone .wx-reward-item span { font-size: 11px; }
    .wx-referral-milestone footer { font-size: 10px; }
    .wx-referral-period { gap: 8px; }
    .wx-referral-period label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
    .wx-referral-period select { width: 126px; padding-right: 30px; }
    .wx-referral .wx-section-title { flex-wrap: wrap; gap: 4px; }
    .wx-referral .wx-section-title h3, .wx-referral-period h3 { font-size: 16px; }
    .wx-referral .wx-section-title > span { font-size: 10px; }
    .wx-referral-friend { gap: 8px; }
    .wx-referral-empty { gap: 12px; }
}
