:root {
  --xs-bg: #fff7ed;
  --xs-paper: #fffaf2;
  --xs-text: #4a160c;
  --xs-muted: #8f4b2d;
  --xs-red: #e5231f;
  --xs-red-dark: #b61715;
  --xs-gold: #ffd56a;
  --xs-gold-dark: #c57918;
  --xs-line: rgba(199, 99, 37, .22);
}

* { box-sizing: border-box; }
body { margin: 0; background: radial-gradient(circle at 12% 0, #fff2c7 0, transparent 28%), var(--xs-bg); color: var(--xs-text); font: 16px/1.7 Arial, "Microsoft YaHei", sans-serif; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.xs-header { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 68px; padding: 0 clamp(16px, 5vw, 72px); border-bottom: 1px solid rgba(255, 214, 128, .55); background: rgba(183, 22, 21, .94); color: #fff8df; backdrop-filter: blur(12px); box-shadow: 0 10px 30px rgba(177, 36, 17, .2); }
.xs-brand { display: inline-flex; align-items: center; gap: 10px; min-width: 0; font-weight: 900; }
.xs-brand img { width: auto; max-width: 150px; height: 38px; object-fit: contain; }
.xs-brand span { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 8px; background: linear-gradient(135deg, #ffe08a, #ff9b28); color: #9f150e; box-shadow: inset 0 -2px 0 rgba(128, 38, 0, .16); }
.xs-brand strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.xs-nav { display: inline-flex; align-items: center; justify-content: flex-end; gap: 10px; min-width: 0; }
.xs-nav a, .xs-nav button { display: inline-flex; align-items: center; justify-content: center; min-height: 38px; padding: 0 16px; border: 1px solid rgba(255, 223, 150, .72); border-radius: 999px; background: rgba(255, 246, 215, .16); color: #fff8df; font: inherit; font-weight: 700; line-height: 1; text-align: center; cursor: pointer; }
.xs-nav a:first-child { background: #fff7d8; color: #b61715; }
.xs-prize-nav-link { white-space: nowrap; }
.xs-nav form { margin: 0; }

.xs-home { min-height: calc(100vh - 68px); }
.xs-hero { position: relative; min-height: clamp(430px, 58vw, 620px); overflow: hidden; background: #d8201b; color: #fff8de; }
.xs-hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.xs-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(133, 10, 8, .68) 0%, rgba(204, 25, 18, .2) 48%, rgba(219, 31, 22, .03) 100%); }
.xs-hero-copy { position: relative; z-index: 1; width: min(650px, calc(100% - 32px)); padding: clamp(62px, 9vw, 118px) 0 clamp(48px, 8vw, 90px); margin-left: clamp(16px, 5vw, 78px); }
.xs-hero-copy span { display: inline-flex; margin-bottom: 16px; padding: 5px 14px; border: 1px solid rgba(255, 235, 176, .74); border-radius: 999px; background: rgba(128, 12, 8, .24); color: #ffe89d; font-size: 14px; font-weight: 800; }
.xs-hero h1 { margin: 0; font-size: clamp(44px, 8vw, 88px); line-height: 1.02; letter-spacing: 0; text-shadow: 0 6px 18px rgba(92, 15, 0, .34); }
.xs-hero p { max-width: 560px; margin: 18px 0 0; color: rgba(255, 250, 225, .94); font-size: clamp(18px, 2vw, 24px); font-weight: 700; }
.xs-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.xs-section { width: min(1120px, calc(100% - 32px)); margin: 30px auto 0; }
.xs-section-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 16px; }
.xs-section-head h2 { margin: 0; color: #7c1b11; font-size: 28px; }
.xs-section-head a { color: var(--xs-red); font-weight: 800; }
.xs-campaign-card, .xs-empty, .xs-member-panel, .xs-prize-card { border: 1px solid var(--xs-line); border-radius: 8px; background: rgba(255, 250, 242, .94); box-shadow: 0 18px 42px rgba(192, 72, 24, .12); }
.xs-campaign-entry { display: grid; grid-template-columns: 128px minmax(0, 1fr) 156px; gap: 20px; align-items: center; padding: 24px; }
.xs-campaign-icon { width: 118px; }
.xs-campaign-tag { display: inline-flex; margin-bottom: 10px; padding: 4px 11px; border-radius: 999px; background: #fff1be; color: #a33a0d; font-size: 13px; font-weight: 900; }
.xs-campaign-card h3 { margin: 0; font-size: 24px; line-height: 1.32; }
.xs-campaign-card p { margin: 8px 0 0; color: var(--xs-muted); }
.xs-primary-link, .xs-ghost-link { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 20px; border-radius: 999px; font-weight: 900; }
.xs-primary-link { background: linear-gradient(135deg, #ffe08a, #ff9a24); color: #8f170d; box-shadow: 0 12px 24px rgba(198, 68, 19, .24); }
.xs-ghost-link { border: 1px solid rgba(255, 232, 157, .78); background: rgba(255, 246, 215, .12); color: #fff6d2; }

.xs-prize-section { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 54px; }
.xs-prize-card { display: grid; grid-template-columns: 86px minmax(0, 1fr); column-gap: 16px; align-items: center; min-height: 128px; padding: 18px; }
.xs-prize-card img { grid-row: span 2; width: 86px; }
.xs-prize-card strong { align-self: end; font-size: 20px; }
.xs-prize-card span { align-self: start; color: var(--xs-muted); }

.xs-footer { padding: 28px 16px 34px; color: #9d5b38; text-align: center; }
.xs-footer p { margin: 4px 0; }
.xs-member { width: min(920px, calc(100% - 32px)); margin: 32px auto; }
.xs-member-panel { padding: 24px; }
.xs-member-panel h1 { margin: 0 0 8px; }
.xs-member-panel p { margin: 0 0 18px; color: var(--xs-muted); }
.xs-member-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.xs-member-actions a { min-height: 40px; padding: 7px 14px; border-radius: 999px; background: #fff1be; color: #9a260e; font-weight: 800; }

@media (max-width: 760px) {
  body { font-size: 15px; }
  .xs-header { gap: 8px; min-height: 58px; padding: 9px 10px; }
  .xs-brand { flex: 1 1 auto; max-width: 92px; }
  .xs-brand span { width: 34px; height: 34px; border-radius: 7px; }
  .xs-brand img { max-width: 92px; height: 34px; }
  .xs-brand strong { display: none; }
  .xs-nav { flex: 0 1 auto; gap: 5px; overflow-x: auto; scrollbar-width: none; }
  .xs-nav::-webkit-scrollbar { display: none; }
  .xs-nav a, .xs-nav button { min-width: 0; min-height: 34px; padding: 0 9px; font-size: 13px; line-height: 1; white-space: nowrap; }
  .xs-nav form button { padding: 0 8px; }
  .xs-nav form { margin: 0; }
  .xs-hero { min-height: 470px; }
  .xs-hero-bg { object-position: 62% center; }
  .xs-hero::after { background: linear-gradient(180deg, rgba(120, 10, 7, .78), rgba(204, 22, 16, .32)); }
  .xs-hero-copy { width: calc(100% - 28px); margin: 0 auto; padding-top: 46px; }
  .xs-hero-copy span { margin-bottom: 12px; font-size: 13px; }
  .xs-hero h1 { font-size: 42px; }
  .xs-hero p { margin-top: 12px; font-size: 17px; }
  .xs-hero-actions { gap: 10px; margin-top: 20px; }
  .xs-primary-link, .xs-ghost-link { min-height: 42px; padding: 0 16px; }
  .xs-section-head { align-items: flex-start; flex-direction: column; }
  .xs-campaign-entry { grid-template-columns: 88px minmax(0, 1fr); }
  .xs-campaign-entry .xs-primary-link { grid-column: 1 / -1; }
  .xs-campaign-icon { width: 84px; }
  .xs-prize-section { grid-template-columns: 1fr; }
  .xs-member { width: min(100% - 24px, 920px); margin: 18px auto; }
  .xs-member-panel { padding: 18px 14px; }
  .member-modal { align-items: flex-end; padding: 0; }
  .member-modal-dialog { width: 100%; min-height: 0; max-height: calc(100dvh - 16px); overflow: auto; border-radius: 18px 18px 0 0; }
  .member-modal-head { position: sticky; top: 0; z-index: 2; background: #fff; }
  .member-modal-form { padding: 18px 16px 0; }
  .member-modal-form .member-field { display: grid; gap: 8px; }
  .member-modal-form .member-field > span,
  .member-modal-form .member-field > input,
  .member-modal-form .member-field > .member-field-control { width: 100%; }
  .member-modal-actions { margin: 18px -16px 0; min-height: 66px; padding: 12px 16px; }
}
