:root {
  --primary: #6157e8;
  --primary-dark: #493ed0;
  --primary-soft: #eeecff;
  --cyan: #18b7c9;
  --green: #16a67a;
  --green-soft: #e7f8f1;
  --orange: #ff6b35;
  --orange-dark: #ed4d22;
  --orange-soft: #fff1e9;
  --yellow: #ffc94a;
  --ink: #202238;
  --muted: #74788f;
  --line: #e8e9f1;
  --surface: #ffffff;
  --background: #f7f8fc;
  --navy: #171a30;
  --shadow-sm: 0 4px 18px rgba(31, 34, 67, .05);
  --shadow-md: 0 16px 45px rgba(31, 34, 67, .1);
  --radius: 18px;
  --radius-sm: 12px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--background);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
button { border: 0; background: none; cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .6; }
img, svg { display: block; }
h1, h2, h3, p { margin-top: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid rgba(97, 87, 232, .32); outline-offset: 3px; }
.container { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }
.icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
#i-bolt { fill: currentColor; stroke: none; }
.skip-link { position: fixed; left: 16px; top: -60px; z-index: 200; background: var(--ink); color: white; padding: 10px 18px; border-radius: 8px; }
.skip-link:focus { top: 12px; }

.top-promo { color: #fff; background: linear-gradient(100deg, #4c40c7, #725ee9 55%, #be559d); font-size: 12px; }
.top-promo-inner { min-height: 35px; display: flex; align-items: center; justify-content: center; gap: 22px; position: relative; }
.promo-label { display: inline-flex; align-items: center; gap: 5px; font-weight: 700; }
.promo-label .icon { width: 15px; height: 15px; }
.promo-countdown { padding-left: 20px; border-left: 1px solid rgba(255,255,255,.25); color: rgba(255,255,255,.82); }
.promo-countdown strong { color: #fff; font-variant-numeric: tabular-nums; letter-spacing: .5px; margin-left: 5px; }
.icon-button { width: 38px; height: 38px; display: inline-grid; place-items: center; border-radius: 10px; transition: background .2s, transform .2s; }
.icon-button:hover { background: var(--primary-soft); }
.promo-close { width: 28px; height: 28px; position: absolute; right: 0; color: rgba(255,255,255,.75); }
.promo-close:hover { background: rgba(255,255,255,.12); }
.promo-close .icon { width: 16px; height: 16px; }

.site-header { height: 74px; background: rgba(255,255,255,.94); border-bottom: 1px solid rgba(229,230,239,.9); position: sticky; top: 0; z-index: 50; backdrop-filter: blur(16px); }
.header-inner { height: 100%; display: flex; align-items: center; }
.brand { display: inline-flex; align-items: center; gap: 11px; flex: 0 0 auto; }
.brand-mark { width: 39px; height: 39px; border-radius: 12px; display: grid; place-items: center; color: #fff; background: linear-gradient(145deg, #776cf5, #5146d9); box-shadow: 0 6px 14px rgba(97,87,232,.25); transform: rotate(-4deg); }
.brand-mark .icon { width: 24px; height: 24px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong { font-size: 18px; font-weight: 800; letter-spacing: -.4px; }
.brand-text small { color: var(--muted); font-size: 8px; letter-spacing: 1.5px; margin-top: 4px; font-weight: 700; }
.main-nav { display: flex; height: 100%; align-items: stretch; gap: 30px; margin-left: 70px; }
.nav-link { display: flex; align-items: center; position: relative; color: #5d6177; font-weight: 600; }
.nav-link::after { content: ""; position: absolute; left: 50%; right: 50%; bottom: -1px; height: 3px; border-radius: 3px 3px 0 0; background: var(--primary); transition: left .2s, right .2s; }
.nav-link:hover, .nav-link.active { color: var(--primary); }
.nav-link.active::after { left: 0; right: 0; }
.header-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.search-shortcut { color: var(--muted); }
.coin-pill { display: flex; align-items: center; gap: 6px; background: #fff8e7; color: #a46a00; border: 1px solid #ffedc2; border-radius: 20px; padding: 6px 12px; }
.coin-pill .icon { width: 17px; height: 17px; color: #e5a018; }
.coin-pill strong { font-size: 13px; font-variant-numeric: tabular-nums; }
.avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: linear-gradient(140deg, #22c3cc, #5274e7); font-size: 12px; font-weight: 800; border: 2px solid #fff; box-shadow: 0 0 0 1px #e6e8f0; }
.menu-toggle { display: none; }

.button { min-height: 40px; padding: 10px 18px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 650; transition: transform .2s, box-shadow .2s, background .2s; white-space: nowrap; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--primary); color: #fff; box-shadow: 0 7px 16px rgba(97,87,232,.2); }
.button-primary:hover { background: var(--primary-dark); box-shadow: 0 9px 22px rgba(97,87,232,.28); }
.button-small { min-height: 36px; padding: 8px 15px; font-size: 13px; }
.button-small .icon { width: 15px; height: 15px; }
.button-large { min-height: 48px; padding: 13px 23px; border-radius: 12px; }
.button-ghost { background: #fff; border: 1px solid var(--line); color: #4e5268; }
.button-ghost:hover { border-color: #cbc6fb; color: var(--primary); }
.button-white { background: #fff; color: var(--orange-dark); box-shadow: 0 8px 20px rgba(160,47,20,.14); }
.full-width { width: 100%; }
.text-button { display: inline-flex; align-items: center; gap: 5px; padding: 0; font-weight: 700; }
.text-button .icon { width: 16px; height: 16px; transition: transform .2s; }
.text-button:hover .icon { transform: translateX(3px); }

.page-section { min-height: 65vh; padding: 44px 0 80px; animation: page-in .3s ease; }
@keyframes page-in { from { opacity: .2; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }
.hero { min-height: 460px; display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; gap: 65px; padding: 24px 0 35px; }
.eyebrow, .section-kicker { color: var(--primary); font-size: 10px; letter-spacing: 2px; font-weight: 800; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px; background: var(--primary-soft); border-radius: 6px; }
.pulse-dot { width: 6px; height: 6px; background: var(--primary); border-radius: 50%; box-shadow: 0 0 0 4px rgba(97,87,232,.12); }
.hero h1 { font-size: clamp(44px, 4.2vw, 64px); line-height: 1.17; letter-spacing: -3px; margin: 22px 0 20px; font-weight: 850; }
.hero h1 span { color: var(--primary); position: relative; }
.hero h1 span::after { content: ""; position: absolute; left: 2px; right: 0; bottom: -4px; height: 9px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='10' viewBox='0 0 240 10'%3E%3Cpath d='M2 7C65 1 156 1 238 5' fill='none' stroke='%23ffc94a' stroke-width='4' stroke-linecap='round'/%3E%3C/svg%3E") center/100% 100% no-repeat; }
.hero-copy > p { color: var(--muted); font-size: 16px; line-height: 1.9; max-width: 455px; }
.hero-actions { display: flex; gap: 12px; margin: 28px 0 25px; }
.hero-proof { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 12px; }
.hero-proof strong { color: #4b4e63; }
.mini-avatars { display: flex; padding-left: 7px; }
.mini-avatars span { width: 29px; height: 29px; border-radius: 50%; display: grid; place-items: center; margin-left: -7px; border: 2px solid var(--background); color: #fff; background: #7c72ea; font-size: 9px; font-weight: 800; }
.mini-avatars span:nth-child(2) { background: #20b6ae; }
.mini-avatars span:nth-child(3) { background: #f19c51; }
.hero-visual { position: relative; min-height: 400px; display: flex; align-items: center; justify-content: center; }
.visual-glow { position: absolute; width: 92%; height: 86%; background: radial-gradient(circle at 40% 20%, rgba(124,114,234,.24), transparent 65%), radial-gradient(circle at 80% 80%, rgba(24,183,201,.18), transparent 60%); filter: blur(12px); }
.code-window { width: 91%; position: relative; overflow: hidden; border-radius: 18px; background: var(--navy); color: #d6d8e7; box-shadow: 0 30px 70px rgba(28,29,60,.22); transform: rotate(1.5deg); }
.window-bar { height: 49px; padding: 0 18px; display: flex; align-items: center; gap: 15px; background: #20243c; border-bottom: 1px solid rgba(255,255,255,.05); font-size: 11px; color: #999eb8; }
.window-dots { display: flex; gap: 6px; }
.window-dots i { width: 8px; height: 8px; border-radius: 50%; background: #ff6d65; }
.window-dots i:nth-child(2) { background: #ffc554; }
.window-dots i:nth-child(3) { background: #3ecb8b; }
.window-badge { margin-left: auto; color: #858aa8; border: 1px solid #393e59; padding: 1px 7px; border-radius: 5px; font-size: 9px; }
.code-content { padding: 25px 24px; font: 12px/2.05 "Cascadia Code", Consolas, monospace; }
.code-content > div { white-space: nowrap; }
.line-no { display: inline-block; width: 32px; color: #4e536e; user-select: none; }
.code-purple { color: #c89bfa; }.code-green { color: #9ed5a1; }.code-blue { color: #74b9f5; }.code-orange { color: #e9ad74; }
.code-footer { display: flex; justify-content: space-between; padding: 8px 17px; background: #20243c; color: #717791; font: 9px Consolas, monospace; }
.code-footer span { display: flex; align-items: center; gap: 5px; }
.status-dot { width: 5px; height: 5px; border-radius: 50%; background: #3ecb8b; }
.floating-card { position: absolute; z-index: 2; display: flex; align-items: center; gap: 10px; padding: 12px 15px; border: 1px solid rgba(255,255,255,.8); border-radius: 13px; background: rgba(255,255,255,.96); box-shadow: var(--shadow-md); }
.floating-card strong, .floating-card small { display: block; }
.floating-card small { font-size: 9px; color: var(--muted); margin-top: 2px; }
.ac-card { right: -2px; top: 62px; animation: float 4s ease-in-out infinite; }
.ac-card strong { color: var(--green); font-size: 13px; }
.ac-icon { width: 33px; height: 33px; display: grid; place-items: center; border-radius: 10px; background: var(--green-soft); color: var(--green); }
.ac-icon .icon { width: 18px; }
.daily-card { left: -10px; bottom: 42px; animation: float 4s 1s ease-in-out infinite; }
.daily-icon { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 11px; color: #fff; background: linear-gradient(140deg, #8b7cf4, #6256df); }
.daily-card strong { font-size: 15px; }
.daily-card strong span { font-size: 7px; color: var(--primary); letter-spacing: .7px; margin-left: 5px; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; margin: 10px 0 0; }
.stat-card { display: flex; align-items: center; gap: 12px; background: #fff; padding: 19px; border: 1px solid #ededf4; border-radius: 14px; box-shadow: var(--shadow-sm); }
.stat-icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; }
.stat-icon.purple { background: var(--primary-soft); color: var(--primary); }.stat-icon.green { background: var(--green-soft); color: var(--green); }.stat-icon.orange { background: var(--orange-soft); color: var(--orange); }.stat-icon.blue { background: #e9f5ff; color: #3794d0; }
.stat-card > div { display: flex; flex-direction: column; line-height: 1.4; }
.stat-card strong { font-size: 20px; letter-spacing: -.5px; }
.stat-card > div span { color: var(--muted); font-size: 11px; }
.stat-card > small { margin-left: auto; align-self: flex-start; color: #9b9eb0; font-size: 9px; }

.section-block { margin-top: 70px; }
.section-heading { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 24px; }
.section-heading h2 { margin: 5px 0 0; font-size: 26px; line-height: 1.3; letter-spacing: -.8px; }
.heading-note { color: var(--muted); font-size: 12px; }
.section-link { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12px; font-weight: 600; }
.section-link:hover { color: var(--primary); }
.section-link .icon { width: 16px; height: 16px; }
.section-heading.compact { align-items: center; margin-bottom: 17px; }
.section-heading.compact h2 { font-size: 21px; }

.promo-grid { display: grid; grid-template-columns: 1.65fr 1fr 1fr; gap: 17px; }
.promo-card { min-height: 275px; border-radius: var(--radius); padding: 24px; position: relative; overflow: hidden; }
.promo-card h3 { font-size: 23px; margin: 11px 0 5px; letter-spacing: -.6px; }
.promo-card p { font-size: 12px; margin-bottom: 14px; }
.promo-tag { display: inline-flex; font-size: 10px; font-weight: 700; padding: 3px 9px; border-radius: 20px; }
.promo-main { color: #fff; background: linear-gradient(120deg, #ff7040, #f64e2c); box-shadow: 0 15px 30px rgba(241,87,42,.18); }
.promo-main::before { content: ""; position: absolute; width: 210px; height: 210px; border: 1px solid rgba(255,255,255,.12); border-radius: 50%; right: -50px; top: -70px; box-shadow: 0 0 0 25px rgba(255,255,255,.04), 0 0 0 50px rgba(255,255,255,.025); }
.promo-main .promo-content { position: relative; z-index: 2; }
.promo-main .promo-tag { background: rgba(255,255,255,.18); }
.promo-main p { color: rgba(255,255,255,.8); }
.promo-price { display: flex; align-items: center; gap: 5px; margin: 4px 0 16px; }
.promo-price > strong { font-size: 39px; line-height: 1; }
.promo-price > strong::before { content: "¥"; font-size: 17px; margin-right: 2px; }
.promo-price > span { font-size: 12px; line-height: 1.25; }
.promo-price small { display: block; color: rgba(255,255,255,.75); font-size: 9px; }
.promo-main .button { min-height: 36px; font-size: 11px; padding: 8px 14px; }
.coin-art { position: absolute; right: 15px; bottom: 25px; width: 150px; height: 160px; transform: rotate(-8deg); }
.coin { position: absolute; display: grid; place-items: center; border-radius: 50%; color: #d78310; background: linear-gradient(135deg, #fff09c, #ffc039); border: 5px solid #ffdc6d; box-shadow: inset 0 0 0 3px #f2ae23, 0 10px 20px rgba(144,47,13,.18); font: 800 28px Georgia, serif; }
.coin-one { width: 88px; height: 88px; right: 12px; top: 15px; }
.coin-two { width: 63px; height: 63px; left: 10px; bottom: 15px; font-size: 21px; }
.coin-three { width: 46px; height: 46px; right: 2px; bottom: 4px; font-size: 15px; }
.spark { position: absolute; color: #fff4bc; font-style: normal; font-size: 22px; }.spark-one { left: 4px; top: 23px; }.spark-two { right: 4px; top: 0; font-size: 13px; }
.promo-checkin { background: #eeecff; border: 1px solid #e2defb; }
.promo-checkin .promo-tag { color: var(--primary); background: rgba(97,87,232,.09); }
.promo-checkin p { color: #7c769e; }
.mini-promo-icon { position: absolute; right: 20px; top: 20px; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; transform: rotate(7deg); }
.promo-checkin .mini-promo-icon { color: var(--primary); background: rgba(255,255,255,.7); }
.checkin-days { display: flex; justify-content: space-between; margin: 20px 0 19px; }
.checkin-days span { width: 25px; height: 25px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.7); color: #8a85a7; font-size: 9px; }
.checkin-days .today { background: var(--primary); color: #fff; box-shadow: 0 4px 10px rgba(97,87,232,.25); }
.promo-checkin .text-button { color: var(--primary); font-size: 11px; }
.promo-coupon { background: #fff3df; border: 1px solid #f8e7cd; }
.promo-coupon .promo-tag { color: #bc7222; background: rgba(255,255,255,.5); }
.promo-coupon p { color: #a38b6c; }
.promo-coupon .mini-promo-icon { color: #d58b2d; background: rgba(255,255,255,.6); }
.coupon-value { display: flex; align-items: center; gap: 5px; color: #c47720; margin: 12px 0 16px; }
.coupon-value strong { font-size: 38px; line-height: 1; }
.coupon-value > span { font-size: 12px; line-height: 1.3; }
.coupon-value small { display: block; font-size: 8px; color: #aa8c68; }
.promo-coupon .text-button { color: #b36b1e; font-size: 11px; }

.problem-card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 17px; }
.problem-brief-card { background: #fff; border: 1px solid var(--line); border-radius: 15px; padding: 22px; transition: transform .2s, box-shadow .2s, border-color .2s; cursor: pointer; text-align: left; }
.problem-brief-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #d9d5fa; }
.problem-meta { display: flex; align-items: center; justify-content: space-between; color: #9a9dae; font: 10px Consolas, monospace; }
.difficulty { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 5px; font: 700 10px Inter, "PingFang SC", sans-serif; }
.difficulty-easy { color: #14956e; background: #e9f8f1; }.difficulty-normal { color: #4b75cc; background: #edf3ff; }.difficulty-hard { color: #bc7621; background: #fff5e5; }.difficulty-expert { color: #c45163; background: #fff0f2; }
.problem-brief-card h3 { font-size: 17px; margin: 15px 0 8px; }
.problem-brief-card > p { color: var(--muted); font-size: 12px; height: 40px; margin-bottom: 15px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.problem-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.problem-tags span { color: #777b90; background: #f5f5f9; padding: 3px 8px; border-radius: 5px; font-size: 9px; }
.problem-card-footer { border-top: 1px solid #f0f0f5; padding-top: 14px; margin-top: 18px; display: flex; justify-content: space-between; align-items: center; color: #9699aa; font-size: 10px; }
.problem-card-footer span { display: inline-flex; align-items: center; gap: 4px; }
.problem-card-footer .icon { width: 13px; height: 13px; }
.problem-card-footer strong { color: var(--green); font-weight: 600; }

.home-split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.mini-ranking-list, .mini-discussion-list { background: #fff; border: 1px solid var(--line); border-radius: 15px; padding: 6px 18px; }
.mini-rank-row { display: flex; align-items: center; gap: 12px; padding: 13px 0; border-bottom: 1px solid #f1f1f5; }
.mini-rank-row:last-child, .mini-discussion-row:last-child { border-bottom: 0; }
.rank-number { width: 22px; text-align: center; color: #9296a8; font-weight: 800; font-size: 12px; }
.rank-number.top { color: #e8a832; }
.user-avatar { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 11px; flex: 0 0 auto; }
.mini-rank-user { min-width: 0; }
.mini-rank-user strong, .mini-rank-user small { display: block; }
.mini-rank-user strong { font-size: 12px; }.mini-rank-user small { color: var(--muted); font-size: 9px; }
.rank-growth { margin-left: auto; color: var(--green); font-size: 11px; font-weight: 700; }
.mini-discussion-row { display: flex; align-items: center; gap: 12px; padding: 13px 0; border-bottom: 1px solid #f1f1f5; }
.topic-badge { flex: 0 0 auto; color: var(--primary); background: var(--primary-soft); padding: 3px 7px; border-radius: 5px; font-size: 9px; }
.mini-discussion-row a { font-size: 12px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.mini-discussion-row a:hover { color: var(--primary); }
.mini-discussion-row > span:last-child { margin-left: auto; color: #a0a3b3; font-size: 9px; white-space: nowrap; }

.page-title-row { display: flex; align-items: flex-end; justify-content: space-between; margin: 12px 0 35px; }
.page-title-row h1 { font-size: 38px; letter-spacing: -1.5px; margin: 5px 0 5px; }
.page-title-row p { color: var(--muted); margin: 0; }
.page-title-stat { display: flex; flex-direction: column; text-align: right; }
.page-title-stat strong { font-size: 26px; color: var(--primary); }.page-title-stat span { font-size: 11px; color: var(--muted); }
.problem-toolbar { display: flex; align-items: center; gap: 18px; margin-bottom: 20px; }
.search-box { height: 44px; display: flex; align-items: center; gap: 9px; flex: 1; background: #fff; border: 1px solid var(--line); border-radius: 11px; padding: 0 13px; }
.search-box:focus-within { border-color: #aaa3f2; box-shadow: 0 0 0 3px rgba(97,87,232,.08); }
.search-box .icon { color: #979aac; width: 18px; }
.search-box input { min-width: 0; flex: 1; border: 0; outline: 0; background: transparent; color: var(--ink); }
.search-box input::placeholder { color: #aaadbb; }
kbd { border: 1px solid #dedfe8; border-bottom-width: 2px; background: #fafafd; color: #9a9dad; border-radius: 5px; min-width: 20px; text-align: center; font: 11px Consolas, monospace; }
.difficulty-filters { display: flex; gap: 5px; background: #ededf4; border-radius: 10px; padding: 4px; }
.filter-chip { padding: 7px 12px; border-radius: 7px; color: var(--muted); font-size: 12px; }
.filter-chip.active { color: var(--primary); background: #fff; box-shadow: 0 2px 7px rgba(40,42,70,.08); font-weight: 700; }
.problem-layout { display: grid; grid-template-columns: minmax(0, 1fr) 250px; gap: 20px; align-items: start; }
.problem-list-card, .ranking-card { background: #fff; border: 1px solid var(--line); border-radius: 15px; overflow: hidden; }
.problem-table-head, .problem-row { display: grid; grid-template-columns: 50px minmax(0, 1fr) 80px 75px; align-items: center; gap: 10px; }
.problem-table-head { padding: 13px 20px; background: #fafafd; border-bottom: 1px solid var(--line); color: #999cac; font-size: 10px; }
.problem-row { width: 100%; padding: 17px 20px; border-bottom: 1px solid #f0f0f5; text-align: left; transition: background .2s; }
.problem-row:last-child { border-bottom: 0; }.problem-row:hover { background: #fbfaff; }
.sponsored-row { background: #fffdf5; }.sponsored-row:hover { background: #fff9e8; }
.sponsored-tag { display: inline-block; padding: 2px 5px; border-radius: 4px; color: #a56a09; background: #fff1cf; font-size: 8px; font-weight: 800; }
.problem-status { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; color: #b4b7c3; border: 1px solid #e2e3e9; }
.problem-status.solved { color: var(--green); border-color: #bce7d7; background: var(--green-soft); }
.problem-status .icon { width: 12px; height: 12px; }
.problem-title-cell { min-width: 0; }
.problem-title-cell strong { display: block; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.problem-title-cell small { display: block; margin-top: 3px; color: #9a9dad; font: 9px Consolas, monospace; }
.acceptance { color: var(--muted); font: 11px Consolas, monospace; }
.empty-state { padding: 60px 20px; text-align: center; }
.empty-state > .icon { width: 36px; height: 36px; margin: 0 auto 15px; color: #c0c2cf; }
.empty-state h3 { margin-bottom: 5px; }.empty-state p { color: var(--muted); }
.problem-sidebar, .discussion-sidebar { display: flex; flex-direction: column; gap: 16px; }
.side-card { padding: 20px; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.side-card-title { display: block; font-weight: 700; font-size: 13px; margin-bottom: 15px; }
.progress-card { text-align: center; }
.progress-ring { width: 108px; height: 108px; padding: 9px; margin: 4px auto 13px; border-radius: 50%; background: conic-gradient(var(--primary) 0 60%, #ededf5 60%); }
.progress-ring > div { width: 100%; height: 100%; border-radius: 50%; display: flex; flex-direction: column; justify-content: center; background: #fff; }
.progress-ring strong { font-size: 24px; line-height: 1.2; }.progress-ring span { color: var(--muted); font-size: 10px; }
.progress-card p { color: var(--muted); font-size: 11px; }.progress-card p strong { color: var(--primary); }
.linear-progress { height: 6px; border-radius: 6px; background: #ededf4; overflow: hidden; }
.linear-progress span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--primary), #9289f5); }
.progress-card > small { display: block; text-align: left; color: #9a9dad; font-size: 9px; margin-top: 6px; }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 7px; }
.tag-cloud button { background: #f4f4f9; color: #73778b; padding: 5px 9px; border-radius: 6px; font-size: 10px; }
.tag-cloud button:hover, .tag-cloud button.active { background: var(--primary-soft); color: var(--primary); }
.side-tip { display: flex; gap: 10px; color: #9b6b23; background: #fff7e9; border-color: #f8ead0; }
.side-tip > .icon { color: #e5a139; }.side-tip strong { font-size: 12px; }.side-tip p { margin: 4px 0 0; color: #a18d70; font-size: 10px; }

.segmented-control { display: flex; padding: 4px; background: #eaebf2; border-radius: 10px; }
.segmented-control button { padding: 7px 18px; border-radius: 7px; color: var(--muted); font-size: 12px; }
.segmented-control button.active { background: #fff; color: var(--primary); font-weight: 700; box-shadow: var(--shadow-sm); }
.podium { display: flex; align-items: flex-end; justify-content: center; gap: 18px; padding: 20px 0 35px; }
.podium-card { width: 220px; padding: 23px 15px 18px; text-align: center; position: relative; background: #fff; border: 1px solid var(--line); border-radius: 16px 16px 8px 8px; }
.podium-card.first { padding-top: 30px; padding-bottom: 30px; border-color: #eedcae; background: linear-gradient(180deg, #fffdf7, #fff); order: 2; }
.podium-card.second { order: 1; }.podium-card.third { order: 3; }
.podium-avatar { width: 62px; height: 62px; margin: 0 auto 10px; border-radius: 18px; display: grid; place-items: center; color: #fff; font-size: 19px; font-weight: 800; border: 4px solid #fff; box-shadow: 0 0 0 2px #e5e6ee; }
.first .podium-avatar { width: 72px; height: 72px; box-shadow: 0 0 0 2px #f1d389; }
.podium-rank { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); min-width: 35px; height: 24px; padding: 0 8px; display: grid; place-items: center; border-radius: 12px; background: #b5bacb; color: #fff; font-size: 10px; font-weight: 800; }
.first .podium-rank { background: #eeb940; }.third .podium-rank { background: #c58b69; }
.podium-card h3 { margin: 6px 0 1px; font-size: 15px; }.podium-card > p { color: var(--muted); font-size: 10px; }
.podium-score { color: var(--primary); font-size: 12px; font-weight: 700; }
.ranking-table-head, .ranking-row { display: grid; grid-template-columns: 70px minmax(0, 1fr) 100px 110px 100px; align-items: center; gap: 10px; padding: 15px 25px; }
.ranking-table-head { background: #fafafd; color: #9699aa; font-size: 10px; border-bottom: 1px solid var(--line); }
.ranking-row { border-bottom: 1px solid #f0f0f5; font-size: 12px; }.ranking-row:last-child { border: 0; }
.ranking-user { display: flex; align-items: center; gap: 10px; }.ranking-user strong { font-size: 12px; }.ranking-user small { color: var(--muted); margin-left: 5px; font-size: 9px; }
.ranking-row .user-avatar { width: 31px; height: 31px; border-radius: 9px; }
.ranking-growth { color: var(--green); font-weight: 700; }

.discussion-layout { display: grid; grid-template-columns: minmax(0, 1fr) 250px; gap: 20px; align-items: start; }
.discussion-tabs { display: flex; gap: 22px; padding: 0 4px 14px; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.discussion-tabs button { color: var(--muted); padding: 5px 0; font-size: 12px; }
.discussion-tabs button.active { color: var(--primary); font-weight: 700; border-bottom: 2px solid var(--primary); }
.discussion-list { display: flex; flex-direction: column; gap: 11px; }
.discussion-card { display: flex; gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 20px; transition: border-color .2s, transform .2s; }
.discussion-card:hover { border-color: #d5d0fa; transform: translateY(-2px); }
.discussion-card .user-avatar { width: 39px; height: 39px; border-radius: 12px; }
.discussion-content { min-width: 0; flex: 1; }
.discussion-content h3 { font-size: 14px; margin: 0 0 6px; }.discussion-content > p { color: var(--muted); font-size: 11px; margin-bottom: 12px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.discussion-meta { display: flex; align-items: center; gap: 12px; color: #9a9dad; font-size: 9px; }
.discussion-meta .topic-badge { margin-right: 2px; }
.discussion-stats { margin-left: auto; display: flex; gap: 12px; }
.discussion-stats span { display: flex; align-items: center; gap: 4px; }.discussion-stats .icon { width: 12px; height: 12px; }
.community-card { text-align: center; }.community-icon { width: 45px; height: 45px; display: grid; place-items: center; margin: 0 auto 12px; color: var(--primary); background: var(--primary-soft); border-radius: 14px; }
.community-card h3 { font-size: 14px; margin-bottom: 7px; }.community-card > p { color: var(--muted); font-size: 10px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.community-card > div { display: flex; justify-content: space-between; padding-top: 9px; color: var(--muted); font-size: 11px; }.community-card > div strong { color: var(--ink); }

.site-footer { background: #fff; border-top: 1px solid var(--line); }
.footer-main { display: flex; justify-content: space-between; padding-top: 42px; padding-bottom: 35px; }
.footer-brand > p { color: var(--muted); font-size: 11px; margin: 15px 0 0; }
.footer-links { display: flex; gap: 80px; }
.footer-links > div { display: flex; flex-direction: column; gap: 8px; }
.footer-links strong { font-size: 12px; margin-bottom: 4px; }.footer-links a, .footer-links button { padding: 0; text-align: left; color: var(--muted); font-size: 11px; }.footer-links a:hover, .footer-links button:hover { color: var(--primary); }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding-top: 16px; padding-bottom: 18px; border-top: 1px solid #f0f0f4; color: #a0a3b2; font-size: 9px; }
.floating-benefit { position: fixed; z-index: 30; right: 20px; bottom: 90px; display: flex; flex-direction: column; align-items: center; gap: 3px; color: #fff; font-size: 10px; font-weight: 700; }
.floating-benefit > span { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 16px; background: linear-gradient(140deg, #ff8550, #f34d31); box-shadow: 0 8px 25px rgba(240,80,43,.3); border: 2px solid rgba(255,255,255,.7); }
.floating-benefit strong { color: #b4583b; background: #fff4ee; padding: 0 8px; border-radius: 8px; }

.modal { width: min(500px, calc(100% - 30px)); max-height: calc(100vh - 40px); padding: 0; border: 0; border-radius: 20px; background: #fff; color: var(--ink); box-shadow: 0 30px 90px rgba(24,25,50,.28); overflow: auto; }
.modal::backdrop { background: rgba(21,23,43,.55); backdrop-filter: blur(5px); }
.modal[open] { animation: modal-in .22s ease; }
@keyframes modal-in { from { opacity: 0; transform: translateY(15px) scale(.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
.modal-close { position: absolute; right: 13px; top: 13px; z-index: 3; color: #8f92a4; background: rgba(255,255,255,.75); }
.modal-close .icon { width: 18px; height: 18px; }
.modal-banner { padding: 28px 30px 20px; position: relative; text-align: center; background: linear-gradient(140deg, #eeecff, #f8f6ff); }
.modal-logo { width: 44px; height: 44px; margin: 0 auto 10px; display: grid; place-items: center; border-radius: 14px; background: var(--primary); color: #fff; transform: rotate(-5deg); }
.simulation-badge { position: absolute; left: 18px; top: 18px; color: var(--primary); background: rgba(255,255,255,.8); border-radius: 10px; padding: 2px 8px; font-size: 9px; }
.modal-banner h2 { margin: 0 0 3px; font-size: 22px; }.modal-banner > p { color: var(--muted); font-size: 11px; }
.modal-balance { display: flex; align-items: center; justify-content: space-between; background: rgba(255,255,255,.75); border: 1px solid rgba(255,255,255,.9); padding: 10px 14px; border-radius: 11px; color: var(--muted); font-size: 11px; }
.modal-balance strong { display: flex; align-items: center; gap: 5px; color: #b27a12; font-size: 17px; }.modal-balance .icon { width: 18px; color: #e3a42f; }
.modal-body { padding: 24px 28px 28px; }
.amount-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.amount-option { position: relative; display: flex; flex-direction: column; align-items: flex-start; padding: 13px 15px; border: 1px solid var(--line); border-radius: 11px; transition: border-color .2s, background .2s; }
.amount-option.active { border-color: var(--primary); background: var(--primary-soft); box-shadow: inset 0 0 0 1px var(--primary); }
.amount-option > span { color: var(--primary); font-size: 13px; font-weight: 700; }.amount-option > strong { font-size: 18px; margin: 3px 0; }.amount-option > small { color: var(--muted); font-size: 9px; }
.coupon-select { width: 100%; display: flex; align-items: center; gap: 8px; color: #b47725; background: #fff7e7; border: 1px dashed #e8c786; padding: 9px 12px; border-radius: 9px; margin-top: 12px; font-size: 10px; }
.coupon-select .icon { width: 16px; }.coupon-select strong { margin-left: auto; }
.simulation-notice { display: flex; align-items: flex-start; gap: 7px; color: #8b8e9f; font-size: 9px; line-height: 1.6; margin: 17px 0; }.simulation-notice .icon { width: 14px; height: 14px; color: var(--green); margin-top: 1px; }
.problem-modal { width: min(650px, calc(100% - 30px)); }
.problem-modal-header { padding: 28px 30px 20px; background: #fafaff; border-bottom: 1px solid var(--line); }
.problem-modal-header h2 { margin: 9px 0 7px; font-size: 23px; }.problem-modal-header p { margin: 0; color: var(--muted); font: 10px Consolas, monospace; }
.problem-statement { color: #5d6175; line-height: 1.9; font-size: 13px; }
.sample-box { background: #f6f7fa; border-radius: 10px; padding: 13px 15px; margin: 12px 0; font: 11px/1.8 Consolas, monospace; white-space: pre-wrap; }
.sample-box strong { display: block; color: var(--muted); font: 700 10px Inter, "PingFang SC", sans-serif; margin-bottom: 4px; }
.problem-modal-actions { display: flex; gap: 10px; margin-top: 20px; }
.code-editor { width: 100%; resize: vertical; min-height: 170px; border: 1px solid var(--line); border-radius: 10px; background: var(--navy); color: #d9dcec; padding: 15px; outline: 0; font: 12px/1.7 Consolas, monospace; tab-size: 2; }
.code-editor:focus { border-color: var(--primary); }
.editor-meta { display: flex; justify-content: space-between; color: var(--muted); font-size: 9px; margin: 6px 0 12px; }
.judge-result { padding: 12px 14px; border-radius: 9px; margin-top: 12px; font-size: 12px; }.judge-result.success { color: var(--green); background: var(--green-soft); }.judge-result.pending { color: var(--primary); background: var(--primary-soft); }
.modal-intro { color: var(--muted); font-size: 11px; }
.post-modal h2 { margin: 5px 0; }
.post-modal form { display: flex; flex-direction: column; gap: 14px; margin-top: 20px; }
.post-modal label { display: flex; flex-direction: column; gap: 6px; font-size: 11px; font-weight: 650; }
.post-modal input, .post-modal select, .post-modal textarea { width: 100%; border: 1px solid var(--line); border-radius: 9px; padding: 10px 12px; outline: 0; background: #fbfbfd; color: var(--ink); font-size: 12px; }
.post-modal input:focus, .post-modal select:focus, .post-modal textarea:focus { border-color: #aaa3f2; box-shadow: 0 0 0 3px rgba(97,87,232,.07); }
.post-modal textarea { resize: vertical; }

.toast-region { position: fixed; z-index: 150; left: 50%; bottom: 30px; transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
#toast-region[popover] { position: fixed; inset: auto auto 30px 50%; margin: 0; padding: 0; border: 0; background: transparent; overflow: visible; transform: translateX(-50%); }
#toast-region[popover]::backdrop { display: none; }
.toast { display: flex; align-items: center; gap: 9px; min-width: 240px; max-width: calc(100vw - 30px); padding: 12px 18px; border-radius: 12px; color: #fff; background: rgba(31,33,54,.94); box-shadow: 0 12px 35px rgba(20,22,40,.22); font-size: 12px; animation: toast-in .25s ease; }
.toast .icon { width: 17px; color: #75e2b9; }.toast.leaving { opacity: 0; transform: translateY(8px); transition: .2s; }
@keyframes toast-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 1050px) {
  .main-nav { margin-left: 35px; gap: 22px; }
  .hero { gap: 25px; }.hero h1 { font-size: 48px; }
  .floating-card.ac-card { right: -5px; }.daily-card { left: 0; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .promo-grid { grid-template-columns: 1.5fr 1fr; }.promo-coupon { grid-column: 1 / -1; min-height: 190px; }.promo-coupon .coupon-value { position: absolute; right: 40px; top: 65px; }
  .problem-layout, .discussion-layout { grid-template-columns: minmax(0, 1fr) 220px; }
  .problem-toolbar { align-items: stretch; flex-direction: column; }.difficulty-filters { align-self: flex-start; }
}

@media (max-width: 780px) {
  .container { width: min(100% - 32px, 620px); }
  .top-promo-inner { justify-content: flex-start; gap: 10px; padding-right: 28px; }.promo-countdown { display: none; }.top-promo-inner > span:nth-child(2) { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
  .site-header { height: 65px; }.brand-mark { width: 35px; height: 35px; }.brand-text strong { font-size: 16px; }.brand-text small { font-size: 7px; }
  .main-nav { display: none; position: absolute; top: 64px; left: 0; right: 0; height: auto; margin: 0; padding: 12px 16px 18px; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-md); flex-direction: column; gap: 3px; }
  .main-nav.open { display: flex; }.nav-link { padding: 10px 13px; border-radius: 9px; }.nav-link::after { display: none; }.nav-link.active { background: var(--primary-soft); }
  .menu-toggle { display: grid; }.search-shortcut, .avatar { display: none; }.header-actions { gap: 7px; }.coin-pill { padding: 5px 9px; }
  .page-section { padding-top: 25px; padding-bottom: 55px; }
  .hero { grid-template-columns: 1fr; gap: 15px; padding-top: 20px; }.hero-copy { text-align: center; }.hero-copy > p { margin-inline: auto; }.eyebrow { font-size: 9px; }.hero h1 { font-size: 48px; }.hero-actions, .hero-proof { justify-content: center; }.hero-visual { min-height: 390px; margin-top: 15px; }.code-window { width: 92%; }
  .stats-grid { margin-top: 20px; }.stat-card { padding: 15px; }.stat-card > small { display: none; }
  .section-block { margin-top: 52px; }.section-heading h2 { font-size: 23px; }.heading-note { display: none; }
  .promo-grid { grid-template-columns: 1fr 1fr; }.promo-main { grid-column: 1 / -1; }.promo-coupon { grid-column: auto; min-height: 275px; }.promo-coupon .coupon-value { position: static; }
  .problem-card-grid { grid-template-columns: 1fr 1fr; }.problem-brief-card:last-child { grid-column: 1 / -1; }
  .home-split { grid-template-columns: 1fr; gap: 45px; }
  .problem-layout, .discussion-layout { grid-template-columns: 1fr; }.problem-sidebar, .discussion-sidebar { display: grid; grid-template-columns: 1fr 1fr; }.side-tip { display: none; }.progress-card { grid-row: span 2; }
  .podium { gap: 9px; }.podium-card { width: 31%; padding-inline: 8px; }.podium-card h3 { font-size: 12px; }.podium-avatar { width: 52px; height: 52px; }.first .podium-avatar { width: 60px; height: 60px; }
  .ranking-table-head, .ranking-row { grid-template-columns: 50px minmax(0, 1fr) 75px 75px; padding-inline: 15px; }.ranking-table-head span:nth-child(4), .ranking-row > span:nth-child(4) { display: none; }
  .footer-main { gap: 30px; }.footer-links { gap: 35px; }.footer-bottom { flex-direction: column; gap: 5px; }
}

@media (max-width: 520px) {
  .container { width: calc(100% - 26px); }
  .top-promo { font-size: 10px; }.promo-label { font-size: 9px; }
  .header-actions .button-small { padding: 7px 10px; }.header-actions .button-small .icon { display: none; }.brand { gap: 8px; }.brand-text small { letter-spacing: 1px; }.menu-toggle { width: 32px; }
  .hero h1 { font-size: 41px; letter-spacing: -2px; }.hero-copy > p { font-size: 14px; }.hero-actions .button { padding-inline: 16px; }.hero-proof { font-size: 10px; }
  .hero-visual { min-height: 330px; }.code-window { width: 96%; }.code-content { font-size: 9px; padding: 20px 12px; }.line-no { width: 25px; }.window-bar { padding-inline: 12px; font-size: 9px; }.ac-card { top: 35px; right: -3px; }.daily-card { bottom: 12px; }.floating-card { padding: 9px 11px; }.floating-card small { font-size: 8px; }.daily-card strong { font-size: 12px; }.daily-card strong span { display: none; }
  .stats-grid { gap: 10px; }.stat-card { gap: 9px; padding: 13px 11px; }.stat-icon { width: 35px; height: 35px; }.stat-icon .icon { width: 17px; }.stat-card strong { font-size: 16px; }.stat-card > div span { font-size: 9px; }
  .section-heading { align-items: center; }.section-heading h2 { font-size: 20px; }.section-kicker { font-size: 8px; }.section-link { font-size: 10px; }
  .promo-grid { grid-template-columns: 1fr; }.promo-card { min-height: 245px; }.promo-main { min-height: 265px; }.coin-art { right: 0; transform: scale(.8) rotate(-8deg); transform-origin: right bottom; }.promo-main h3 { font-size: 22px; }
  .problem-card-grid { grid-template-columns: 1fr; }.problem-brief-card:last-child { grid-column: auto; }
  .page-title-row { align-items: flex-start; margin-bottom: 25px; }.page-title-row h1 { font-size: 32px; }.page-title-row p { font-size: 12px; }.page-title-stat { display: none; }
  .difficulty-filters { width: 100%; }.filter-chip { flex: 1; padding-inline: 5px; }
  .problem-table-head, .problem-row { grid-template-columns: 30px minmax(0, 1fr) 57px; gap: 7px; padding-inline: 12px; }.problem-table-head span:last-child, .problem-row .acceptance { display: none; }.problem-title-cell strong { font-size: 12px; }
  .problem-sidebar, .discussion-sidebar { grid-template-columns: 1fr; }.progress-card { grid-row: auto; }
  .podium-card { width: 32%; }.podium-card > p { display: none; }.podium-score { font-size: 10px; }.podium-card.first { padding-top: 26px; padding-bottom: 22px; }.podium-avatar { width: 43px; height: 43px; border-radius: 13px; }.first .podium-avatar { width: 50px; height: 50px; }
  .ranking-table-head, .ranking-row { grid-template-columns: 35px minmax(0, 1fr) 60px; padding-inline: 10px; }.ranking-table-head span:nth-child(3), .ranking-row > span:nth-child(3) { display: none; }.ranking-user small { display: none; }
  .discussion-card { padding: 15px 12px; gap: 10px; }.discussion-card .user-avatar { width: 32px; height: 32px; }.discussion-stats { gap: 6px; }.discussion-meta { gap: 7px; }.discussion-content h3 { font-size: 12px; }
  .footer-main { flex-direction: column; }.footer-links { justify-content: space-between; }.floating-benefit { right: 10px; bottom: 70px; transform: scale(.88); transform-origin: right bottom; }
  .modal-body { padding: 21px 18px 23px; }.modal-banner, .problem-modal-header { padding-inline: 20px; }.amount-option { padding: 11px; }.problem-modal-actions { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ===== 三栏整活首页 ===== */
body {
  background:
    radial-gradient(circle at 12% 8%, rgba(52,152,219,.10), transparent 28%),
    radial-gradient(circle at 88% 18%, rgba(82,196,26,.09), transparent 26%),
    #eef2f7;
}
.pdd-home { padding: 0 0 55px; }
.pdd-marquee {
  min-height: 34px;
  padding: 7px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  overflow: hidden;
  white-space: nowrap;
  color: #7a4b00;
  background: linear-gradient(90deg,#fff3cd,#ffe08a,#fff3cd);
  background-size: 200% 100%;
  border-bottom: 1px solid #f0d48a;
  font-size: 13px;
  animation: marqueeBg 3s linear infinite;
}
.pdd-marquee .tag {
  position: relative;
  z-index: 2;
  flex-shrink: 0;
  padding: 2px 8px;
  border-radius: 6px;
  color: #fff;
  background: #ff3b30;
  font-size: 11px;
  font-weight: 700;
}
.pdd-marquee .scroll { display: flex; width: max-content; animation: scrollLeft 32s linear infinite; }
.pdd-marquee .scroll > span { display: block; flex-shrink: 0; }
@keyframes marqueeBg { to { background-position: -200% 0; } }
@keyframes scrollLeft { to { transform: translateX(-50%); } }

.site-header.lg-topbar {
  height: 52px;
  padding: 0 22px;
  display: flex;
  align-items: center;
  gap: 20px;
  background: rgba(255,255,255,.80);
  border-bottom: 1px solid rgba(52,152,219,.14);
  backdrop-filter: blur(18px);
}
.lg-logo { display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0; color: #3498DB; font-size: 19px; font-weight: 800; letter-spacing: -.5px; }
.lg-logo-img { width: 38px; height: 38px; border-radius: 11px; object-fit: cover; flex: 0 0 auto; box-shadow: 0 4px 12px rgba(52,152,219,.18); }
.lg-logo-text { display: inline-flex; align-items: baseline; }
.lg-logo-text > span { color: #52C41A; }
.lg-logo-text > small {
  margin-left: 3px;
  vertical-align: super;
  color: #ff6b00;
  font-size: 10px;
  font-weight: 800;
}
.lg-topbar .lg-nav { height: 52px; margin-left: 0; display: flex; align-items: stretch; gap: 18px; }
.lg-topbar .nav-link { padding: 4px 0; color: #555; font-size: 14px; font-weight: 400; }
.lg-topbar .nav-link:hover, .lg-topbar .nav-link.active { color: #3498DB; }
.lg-topbar .nav-link.active { font-weight: 700; }
.lg-topbar .nav-link::after { height: 2px; background: #3498DB; }
.lg-top-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.vip-btn {
  padding: 6px 14px;
  border-radius: 20px;
  color: #4a2800;
  background: linear-gradient(135deg,#ffd700,#ff9500);
  box-shadow: 0 4px 14px rgba(255,149,0,.35);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
  animation: vipPulse 1.4s ease-in-out infinite;
}
@keyframes vipPulse { 50% { transform: scale(1.06); box-shadow: 0 6px 22px rgba(255,149,0,.6); } }

.layout {
  max-width: 1240px;
  margin: 18px auto;
  padding: 0 16px;
  display: grid;
  grid-template-columns: 200px minmax(0,1fr) 280px;
  gap: 16px;
  align-items: start;
}
.card {
  background: rgba(255,255,255,.76);
  border: 1px solid rgba(255,255,255,.75);
  border-radius: 18px;
  box-shadow: 0 8px 28px rgba(20,85,143,.10);
  backdrop-filter: blur(16px);
}
.home-main { min-width: 0; }
.sidebar { padding: 14px 10px; position: sticky; top: 70px; }
.side-item {
  width: 100%;
  margin-bottom: 2px;
  padding: 9px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-radius: 12px;
  color: #444;
  font-size: 13.5px;
  text-align: left;
  transition: background .15s;
}
.side-item:hover { background: rgba(52,152,219,.08); }
.side-item.active { color: #3498DB; background: rgba(52,152,219,.12); font-weight: 700; }
.side-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }

.pdd-hero {
  padding: 20px 22px 18px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg,#fff9e6 0%,#fff 45%,#e8f7ff 100%);
  border: 2px solid #ffe08a;
}
.pdd-hero::after {
  content: "";
  position: absolute;
  right: -40px;
  top: -40px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle,rgba(255,59,48,.12),transparent 70%);
  pointer-events: none;
}
.pdd-hero h1 { margin-bottom: 4px; display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 20px; letter-spacing: 0; }
.pdd-hero h1 em { color: #ff4d24; font-size: 26px; font-style: normal; }
.pdd-sub { margin-bottom: 14px; color: #8a6d3b; font-size: 12.5px; }
.pdd-progress-wrap { height: 16px; margin-bottom: 6px; overflow: hidden; border-radius: 99px; background: #f0e6d0; }
.pdd-progress-bar { width: 99.98%; height: 100%; border-radius: 99px; background: linear-gradient(90deg,#ff9500,#ff3b30,#ff2d55); animation: progressShine 1.6s ease-in-out infinite; transition: width .5s; }
@keyframes progressShine { 50% { opacity: .8; } }
.pdd-progress-text { margin-bottom: 12px; display: flex; justify-content: space-between; gap: 12px; color: #a07a3a; font-size: 11.5px; }
.pdd-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.pdd-btn { padding: 10px 18px; border-radius: 12px; font-size: 14px; font-weight: 800; transition: transform .15s; }
.pdd-btn:active { transform: scale(.96); }
.pdd-btn.primary { flex: 1; color: #fff; background: linear-gradient(135deg,#ff3b30,#ff6b00); box-shadow: 0 6px 18px rgba(255,59,48,.35); }
.pdd-btn.ghost { color: #ff6b00; background: #fff; border: 1.5px solid #ffb3a6; }

.ad-slot {
  width: 100%;
  margin-top: 14px;
  padding: 13px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(100deg,#1a1a2e,#16213e);
  text-align: left;
}
.ad-slot::before { content: "广告"; position: absolute; top: 4px; right: 7px; padding: 0 4px; border: 1px solid rgba(255,255,255,.2); border-radius: 3px; color: rgba(255,255,255,.35); font-size: 9px; }
.ad-slot .ad-icon { width: 36px; height: 36px; display: grid; place-items: center; flex-shrink: 0; border-radius: 10px; background: linear-gradient(135deg,#ffd700,#ff9500); font-size: 18px; }
.ad-copy { min-width: 0; display: flex; flex-direction: column; }
.ad-copy strong { display: block; font-size: 13.5px; }
.ad-copy > span { color: rgba(255,255,255,.62); font-size: 11.5px; }
.ad-slot-gold { background: linear-gradient(100deg,#3d1a00,#5c2e00); }
.ad-slot-gold .ad-icon { background: linear-gradient(135deg,#ff3b30,#ff9500); }

.home-problems-card { margin-top: 14px; overflow: hidden; }
.section-title { padding: 14px 18px 10px; display: flex; align-items: center; justify-content: space-between; font-size: 15px; font-weight: 700; }
.section-title a { color: #3498DB; font-size: 12px; }
.home-problem-list { padding: 0 8px 12px; }
.home-problem-list .problem-row {
  width: 100%;
  padding: 11px 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 0;
  border-radius: 12px;
  color: #333;
  background: transparent;
  font-size: 13.5px;
  text-align: left;
  transition: background .15s;
}
.home-problem-list .problem-row:hover { background: rgba(52,152,219,.06); }
.home-problem-list .pid { width: 48px; flex-shrink: 0; color: #888; font: 12px "SFMono-Regular",Consolas,monospace; }
.home-problem-list .ptitle { min-width: 0; flex: 1; }
.diff { flex-shrink: 0; padding: 2px 9px; border-radius: 99px; font-size: 11px; font-weight: 700; }
.diff.red { color: #fff; background: #FE4C61; }.diff.orange { color: #fff; background: #F39C11; }.diff.yellow { color: #5a4200; background: #FFC116; }.diff.green { color: #fff; background: #52C41A; }.diff.blue { color: #fff; background: #3498DB; }.diff.purple { color: #fff; background: #9D3DCF; }.diff.dark { color: #fff; background: #0E1D69; }

.benben { padding: 14px 14px 10px; position: sticky; top: 70px; }
.benben h2 { margin-bottom: 10px; display: flex; justify-content: space-between; font-size: 14px; }
.benben h2 a { color: #3498DB; font-size: 11px; font-weight: 400; }
.benben-item { padding: 9px 0; border-bottom: 1px dashed rgba(0,0,0,.07); color: #555; font-size: 12.5px; line-height: 1.55; }
.benben-item:last-child { border-bottom: 0; }
.benben-item .u { color: #3498DB; font-weight: 600; }.benben-item .u.green { color: #52C41A; }.benben-item .u.red { color: #FE4C61; }.benben-item .u.purple { color: #9D3DCF; }
.benben-item .time { display: block; margin-top: 3px; color: #aaa; font-size: 10.5px; }

.float-cut {
  position: fixed;
  right: 22px;
  bottom: 26px;
  z-index: 40;
  width: 66px;
  height: 66px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg,#ff3b30,#ff9500);
  box-shadow: 0 10px 28px rgba(255,59,48,.45);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.15;
  animation: floatBounce 2s ease-in-out infinite;
}
.float-cut small { font-size: 9px; font-weight: 400; opacity: .85; }
@keyframes floatBounce { 50% { transform: translateY(-8px); } }

.vip-modal { width: min(360px,calc(100% - 30px)); border-radius: 22px; }
.vip-modal-content { padding: 24px 20px 20px; position: relative; text-align: center; }
.vip-modal h2 { margin-bottom: 6px; font-size: 19px; }
.vip-modal h2 em { display: block; margin-top: 4px; color: #ff3b30; font-size: 26px; font-style: normal; }
.vip-modal .hint { margin-bottom: 12px; color: #888; font-size: 12px; }
.vip-balance { margin-bottom: 12px; padding: 7px 11px; display: flex; align-items: center; justify-content: space-between; border-radius: 10px; color: #8a6d3b; background: #fff9e8; font-size: 11px; }
.vip-balance strong { display: flex; align-items: center; gap: 4px; color: #b27a12; }
.vip-balance .icon { width: 15px; height: 15px; }
.vip-modal .amount-grid { display: flex; flex-direction: column; gap: 10px; }
.vip-modal .amount-option {
  width: 100%;
  margin: 0;
  padding: 12px 14px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  border: 1.5px solid #ffe08a;
  border-radius: 14px;
  background: #fffdf5;
  box-shadow: none;
  text-align: left;
}
.vip-modal .amount-option.active, .vip-modal .amount-option.hot.active { border-color: #ff9500; background: #fff8ee; box-shadow: none; }
.vip-modal .amount-option.hot::before { content: "限时"; position: absolute; top: -8px; left: 12px; padding: 1px 7px; border-radius: 4px; color: #fff; background: #ff3b30; font-size: 9px; }
.vip-modal .amount-option .plan-copy { display: flex; flex-direction: column; align-items: flex-start; color: var(--ink); }
.vip-modal .plan-copy strong { font-size: 13.5px; }
.vip-modal .plan-copy small { color: #999; font-size: 11px; }
.vip-modal .amount-option .price { color: #ff3b30; font-size: 18px; font-weight: 800; white-space: nowrap; }
.vip-modal .price small { color: #999; font-size: 11px; font-weight: 400; }
.modal-pay { width: 100%; margin-top: 8px; padding: 12px; border-radius: 14px; color: #fff; background: linear-gradient(135deg,#ff3b30,#ff6b00); font-size: 15px; font-weight: 800; }
.modal-foot { margin: 12px 0 0; color: #aaa; font-size: 10.5px; line-height: 1.5; }

@media (max-width: 960px) {
  .layout { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .benben { position: static; }
  .lg-topbar .lg-nav { display: none; }
}
@media (max-width: 780px) {
  .site-header.lg-topbar { padding: 0 13px; gap: 10px; }
  .lg-topbar .coin-pill { display: none; }
  .lg-topbar .lg-nav.open { display: flex; top: 51px; height: auto; margin-left: 0; }
  .lg-topbar .nav-link { font-size: 13px; }
}
@media (max-width: 520px) {
  .pdd-marquee { padding-inline: 10px; font-size: 11px; }
  .lg-logo { font-size: 16px; }
  .lg-logo-img { width: 32px; height: 32px; }
  .lg-top-right { gap: 5px; }
  .vip-btn { padding: 6px 9px; font-size: 10px; }
  .layout { margin-top: 12px; padding: 0 10px; }
  .pdd-hero { padding: 18px 15px 15px; }
  .pdd-hero h1 { font-size: 18px; }.pdd-hero h1 em { font-size: 22px; }
  .pdd-progress-text { font-size: 10px; }
  .pdd-btn { padding: 10px 12px; font-size: 12px; }
  .home-problem-list .problem-row { gap: 8px; padding-inline: 8px; font-size: 12px; }
  .home-problem-list .pid { width: 43px; font-size: 10px; }
  .diff { padding-inline: 7px; font-size: 9px; }
  .float-cut { right: 13px; bottom: 18px; width: 58px; height: 58px; }
}
@media (prefers-reduced-motion: reduce) {
  .pdd-marquee, .pdd-marquee .scroll, .vip-btn, .pdd-progress-bar, .float-cut { animation: none !important; }
}

/* ===== 评测助力与帖子解锁 ===== */
.discussion-card { width: 100%; font: inherit; text-align: left; }
.topic-lock { padding: 2px 6px; border-radius: 5px; color: #a56a09; background: #fff3d5; font-size: 9px; font-weight: 700; }
.judge-result strong { display: block; margin-bottom: 5px; font-size: 14px; }
.judge-result p { margin: 5px 0; line-height: 1.6; }
.judge-result.wa { color: #d94b56; background: #fff0f1; }
.judge-gate small { display: block; margin-top: 9px; color: #999; font-size: 9px; }
.judge-help-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.judge-help-actions .button { min-height: 36px; padding: 8px 12px; font-size: 11px; }
.topic-modal { width: min(580px,calc(100% - 30px)); }
#topic-modal-body > h2 { margin: 10px 0 5px; padding-right: 22px; font-size: 21px; line-height: 1.45; }
.topic-author { color: var(--muted); font-size: 10px; }
.topic-paywall { margin-top: 18px; padding: 24px 18px 18px; border: 1px solid #ffe0a0; border-radius: 15px; background: linear-gradient(145deg,#fffaf0,#fff); text-align: center; }
.paywall-icon { width: 48px; height: 48px; margin: 0 auto 12px; display: grid; place-items: center; border-radius: 15px; color: #fff; background: linear-gradient(135deg,#ffd700,#ff9500); box-shadow: 0 7px 18px rgba(255,149,0,.22); }
.topic-paywall h3 { margin-bottom: 6px; color: #b16a12; font-size: 18px; }
.topic-paywall > p { color: #8b7a62; font-size: 12px; }
.paywall-progress { height: 12px; margin: 16px 0 7px; overflow: hidden; border-radius: 20px; background: #eee3ce; }
.paywall-progress span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg,#ffb020,#ff4b2b); transition: width .35s; }
.topic-paywall > small { color: #b0a18d; font-size: 9px; }
.topic-pay-actions { display: flex; gap: 9px; margin-top: 18px; }
.topic-pay-actions .button { flex: 1; padding-inline: 10px; font-size: 12px; }
.topic-assist { width: 100%; margin-top: 10px; padding: 10px; border: 1px dashed #ff9d7d; border-radius: 10px; color: #ef5b32; background: #fff7f2; font-size: 12px; font-weight: 700; }
.topic-unlocked { margin: 15px 0; padding: 8px 12px; border-radius: 9px; color: #168b65; background: #eaf8f1; font-size: 11px; font-weight: 700; }
.topic-full-content { color: #555b6d; font-size: 13px; line-height: 1.9; }
.topic-full-content h3 { margin: 18px 0 7px; color: var(--ink); font-size: 15px; }
.topic-full-content pre { padding: 15px; overflow-x: auto; border-radius: 10px; color: #dce1f2; background: var(--navy); font: 11px/1.8 Consolas,monospace; }
.topic-comment { margin-top: 18px; padding: 13px 15px; border-radius: 10px; background: #f6f7fa; }
.topic-comment strong { font-size: 11px; }.topic-comment p { margin: 4px 0 0; color: var(--muted); font-size: 11px; }
@media (max-width: 520px) {
  .judge-help-actions, .topic-pay-actions { flex-direction: column; }
  .topic-paywall { padding-inline: 13px; }
  #topic-modal-body > h2 { font-size: 18px; }
}

/* ===== 讨论区六层会员体系 ===== */
.discussion-vip-banner { margin: 0 0 18px; padding: 14px 18px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border: 1px solid #f0dfb2; border-radius: 15px; background: linear-gradient(110deg,#fffaf0,#fff3d6 55%,#fff); box-shadow: 0 6px 20px rgba(160,110,20,.06); }
.discussion-vip-copy { display: flex; align-items: center; gap: 12px; min-width: 0; }
.vip-crown { width: 42px; height: 42px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 13px; background: linear-gradient(140deg,#ffe08a,#ffb02e); font-size: 21px; box-shadow: 0 6px 15px rgba(255,160,20,.24); }
.discussion-vip-copy strong { display: block; color: #8c5a08; font-size: 14px; }
.discussion-vip-copy p { margin: 2px 0 0; color: #a3834e; font-size: 10px; line-height: 1.6; }
.discussion-vip-banner .button { flex: 0 0 auto; padding: 9px 15px; font-size: 12px; border-radius: 9px; }
.member-ladder { display: flex; flex-wrap: wrap; gap: 5px; margin: 14px 0 4px; padding: 9px 10px; border-radius: 10px; background: #faf8ff; border: 1px solid #eeebf9; }
.member-ladder span { position: relative; padding: 3px 8px; border-radius: 20px; color: #a3a0b5; background: #fff; border: 1px solid #e8e5f2; font-size: 9px; }
.member-ladder span.done { color: #8a6715; background: #fff6dd; border-color: #f2dfa7; }
.member-ladder span.current { color: #fff; background: linear-gradient(120deg,#e8a41c,#ff7a2f); border-color: transparent; font-weight: 700; box-shadow: 0 3px 9px rgba(240,140,20,.25); }
.topic-stage-content { margin: 14px 0 0; }
.topic-debt { display: inline-block; margin: 8px 0 0; padding: 4px 9px; border-radius: 6px; color: #c0392b; background: #fff0ee; font-size: 9px; font-weight: 700; }
.topic-locked-cover { padding: 26px 22px; border: 1px dashed #ddd8ef; border-radius: 14px; background: #fbfaff; text-align: center; }
.lock-emoji { display: block; margin-bottom: 8px; font-size: 34px; filter: grayscale(.15); }
.topic-locked-cover h3 { margin: 0 0 5px; font-size: 17px; color: #4d4768; }
.topic-locked-cover p { margin: 0 0 14px; color: #8b87a0; font-size: 11px; }
.lock-note { margin-top: 13px; color: #a9a3b8; font-size: 9px; }
.teaser-skeleton, .md-skeleton { display: flex; flex-direction: column; gap: 8px; margin: 14px 0; }
.teaser-skeleton span, .md-skeleton span { height: 9px; border-radius: 6px; background: linear-gradient(90deg,#edeaf7,#f7f5fd,#edeaf7); background-size: 200% 100%; animation: skeletonMove 1.8s linear infinite; }
.teaser-skeleton span:nth-child(2n), .md-skeleton span:nth-child(2n) { width: 82%; }
.teaser-skeleton span:nth-child(3n), .md-skeleton span:nth-child(3n) { width: 64%; }
@keyframes skeletonMove { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.topic-teaser p { margin: 0 0 8px; padding: 12px 14px; border-radius: 10px; color: #5d5875; background: #f8f7fd; font-size: 13px; line-height: 1.8; }
.teaser-fade { margin-top: 10px; padding: 14px; border-radius: 10px; color: #8d88a4; background: linear-gradient(180deg,rgba(255,255,255,0),#fff 40%); text-align: center; font-size: 11px; font-weight: 700; }
.teaser-fade small { color: #a9a4ba; font-weight: 400; }
.uyghur-content { padding: 16px 18px; border-radius: 12px; background: #f7f8ff; border: 1px solid #e4e6f5; }
.uyghur-content p { margin: 0 0 10px; color: #4e5570; font-size: 14px; line-height: 2; text-align: right; }
.uyghur-content p:last-child { margin-bottom: 0; }
.language-warning { margin-top: 10px; padding: 10px 13px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; border-radius: 9px; color: #8a5c00; background: #fff8e2; border: 1px dashed #f0d38a; font-size: 10px; }
.language-warning strong { font-size: 11px; }
.md-error { overflow: hidden; border: 1px solid #d7dbe6; border-radius: 12px; background: #f7f8fb; }
.md-error-bar { padding: 8px 12px; display: flex; justify-content: space-between; color: #fff; background: #2f3550; font: 9px/1.4 Consolas, monospace; }
.md-error-bar span:last-child { color: #ff9b8f; font-weight: 700; }
.md-error pre { max-height: 210px; margin: 0; padding: 14px 16px; overflow: auto; color: #5a6177; font: 11px/1.8 Consolas, monospace; white-space: pre-wrap; }
.render-error { margin-top: 8px; padding: 9px 12px; border-radius: 8px; color: #c0392b; background: #fff0ee; font-size: 10px; font-weight: 700; }
.translated-preview p { color: #555b6d; font-size: 13px; line-height: 1.9; }
.topic-long-content { color: #555b6d; font-size: 13px; line-height: 1.9; }
.topic-long-content p { margin: 0 0 10px; }
.topic-long-content h3 { margin: 18px 0 7px; color: var(--ink); font-size: 15px; }
.topic-long-content ul, .topic-long-content ol { margin: 0 0 10px; padding-left: 22px; }
.topic-long-content li { margin: 4px 0; }
.topic-long-content pre { padding: 15px; overflow-x: auto; border-radius: 10px; color: #dce1f2; background: var(--navy); font: 11px/1.8 Consolas,monospace; white-space: pre; }
.watermarked-content { position: relative; padding: 14px 16px; overflow: hidden; border: 1px solid #ece8de; border-radius: 12px; background: #fffef9; }
.watermarked-content p { color: #555b6d; font-size: 13px; line-height: 1.9; }
.topic-watermark { position: absolute; inset: 0; display: flex; flex-wrap: wrap; align-content: center; justify-content: center; gap: 24px 34px; transform: rotate(-24deg) scale(1.35); pointer-events: none; }
.topic-watermark span { color: rgba(210,150,20,.28); font-size: 17px; font-weight: 900; white-space: nowrap; }
.code-locked { margin-top: 12px; padding: 13px; border: 1px dashed #d9d5e8; border-radius: 10px; color: #8f8aa4; background: #faf9fe; text-align: center; font-size: 10px; }
.blurred-code { filter: blur(4px); user-select: none; }
.comment-locked-note { margin-top: 9px !important; padding-top: 9px; border-top: 1px dashed #dcd8ea; color: #a09bae !important; font-size: 10px !important; }
.topic-paywall.compact { position: relative; margin-top: 16px; padding: 22px 18px 16px; }
.paywall-flag { position: absolute; right: 14px; top: 12px; padding: 2px 8px; border-radius: 20px; color: #b47c12; background: #fff2cf; font-size: 8px; font-weight: 800; letter-spacing: .5px; }
.paywall-footnote { display: block; margin-top: 12px; color: #b3a58d; font-size: 8px; line-height: 1.7; }
.membership-sheet { padding: 17px 16px; border: 1px solid #f0dfb2; border-radius: 15px; background: linear-gradient(145deg,#fffdf6,#fff7e2); }
.membership-sheet-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.membership-level { padding: 3px 9px; border-radius: 20px; color: #fff; background: linear-gradient(120deg,#e2a01c,#ff8a2e); font-size: 9px; font-weight: 800; letter-spacing: .5px; }
.membership-current { color: #a58a5d; font-size: 10px; }
.membership-compare { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 10px; background: rgba(255,255,255,.7); }
.membership-compare > div { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.membership-compare span { color: #b09a78; font-size: 8px; }
.membership-compare strong { color: #6b5a3d; font-size: 13px; }
.membership-compare > div:last-child strong { color: #c07a0a; }
.compare-arrow { color: #d7b372; font-size: 17px; }
.membership-perks { list-style: none; margin: 12px 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.membership-perks li { padding: 5px 7px; border-radius: 6px; color: #7c6b4d; background: rgba(255,255,255,.62); font-size: 9px; }
.membership-perks li:nth-child(n+3) { color: #b3a189; }
.membership-price { display: flex; align-items: baseline; gap: 8px; padding-top: 4px; }
.membership-price > span { color: #b7a489; font-size: 10px; text-decoration: line-through; }
.membership-price > strong { color: #e6572e; font-size: 30px; line-height: 1; }
.membership-price > strong small { font-size: 11px; }
.membership-price > em { margin-left: auto; padding: 2px 7px; border-radius: 5px; color: #fff; background: #ff5b34; font-size: 9px; font-style: normal; font-weight: 800; }
.membership-trick { margin: 10px 0 0; padding-top: 9px; border-top: 1px dashed #ecd9b2; color: #a08b6a; font-size: 9px; line-height: 1.7; }
.member-debt { margin: 9px 0 0; padding: 7px 9px; border-radius: 7px; color: #c0392b; background: #fff0ee; font-size: 9px; }
.membership-fineprint { margin: 12px 0 0; color: #b0a79a; font-size: 8px; line-height: 1.7; text-align: center; }
.membership-guide { display: flex; flex-direction: column; gap: 7px; }
.membership-guide-row { display: grid; grid-template-columns: 38px minmax(0,1fr); gap: 2px 9px; padding: 9px 11px; border: 1px solid #f0e3c4; border-radius: 9px; background: #fffdf7; }
.membership-guide-row > span { grid-row: span 2; align-self: center; color: #c08a19; font: 800 11px Consolas, monospace; }
.membership-guide-row strong { font-size: 11px; }
.membership-guide-row small { color: #a58d61; font-size: 9px; }
.membership-guide-row em { grid-column: 2; color: #b3a58d; font-size: 8px; font-style: normal; }

/* ===== 拼多多式玩法中心 ===== */
.mini-game-grid { margin-top: 14px; display: grid; grid-template-columns: repeat(4,1fr); gap: 9px; }
.mini-game-grid button { min-width: 0; padding: 13px 8px; position: relative; border: 1px solid #ffe2aa; border-radius: 13px; background: linear-gradient(145deg,#fffdf6,#fff5dc); box-shadow: 0 5px 15px rgba(170,100,20,.06); }
.mini-game-grid button:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(255,100,30,.13); }
.mini-game-grid button > span { display: block; margin-bottom: 5px; font-size: 23px; }
.mini-game-grid strong, .mini-game-grid small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-game-grid strong { color: #9b4f16; font-size: 12px; }.mini-game-grid small { margin-top: 2px; color: #b5926c; font-size: 8px; }
.mini-game-grid i, .task-center-entry i { position: absolute; right: 7px; top: 6px; min-width: 17px; height: 17px; display: grid; place-items: center; border-radius: 10px; color: #fff; background: #ff3b30; font-size: 9px; font-style: normal; }
.task-center-entry { width: 100%; margin-bottom: 10px; padding: 11px 12px; display: flex; flex-direction: column; position: relative; border-radius: 11px; color: #5f43b7; background: #f0ebff; text-align: left; }
.task-center-entry span { font-size: 10px; }.task-center-entry strong { font-size: 12px; }
.seckill-entry { width: 100%; margin-bottom: 13px; padding: 12px; display: flex; flex-direction: column; border-radius: 11px; color: #fff; background: linear-gradient(120deg,#ff4238,#ff8a28); text-align: left; }
.seckill-entry span { font-size: 9px; opacity: .85; }.seckill-entry strong { font-size: 15px; }.seckill-entry small { font-size: 9px; opacity: .8; }
.locked-summary { color: #9b9dab !important; font-style: italic; }
.mini-progress { height: 7px; margin: 8px 0; overflow: hidden; border-radius: 8px; background: rgba(100,100,120,.13); }
.mini-progress span { display: block; height: 100%; border-radius: inherit; background: currentColor; transition: width .35s; }

.action-modal { width: min(480px,calc(100% - 28px)); overflow: auto; border-radius: 21px; }
.action-modal .modal-body { padding: 20px 22px 23px; }
.action-banner { padding: 23px 25px 18px; color: #fff; background: linear-gradient(125deg,#ff543d,#ff8a2c); }
.action-banner.purple { background: linear-gradient(125deg,#5545cb,#8c63e8); }.action-banner.gold { color: #583400; background: linear-gradient(125deg,#ffe68a,#ffb83f); }.action-banner.dark { background: linear-gradient(125deg,#16182d,#303b68); }
.action-kicker { font-size: 8px; font-weight: 800; letter-spacing: 2px; opacity: .7; }
.action-banner h2 { margin: 4px 0 3px; font-size: 23px; }.action-banner p { margin: 0; font-size: 11px; opacity: .82; }
.action-progress { margin-bottom: 16px; }
.action-progress-number { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; }
.action-progress-number strong { color: #ef5434; font-size: 27px; line-height: 1.2; letter-spacing: -1px; font-variant-numeric: tabular-nums; }
.bargain-progress .action-progress-number { flex-direction: column; align-items: flex-start; gap: 2px; }
.bargain-progress .action-progress-number strong { font-size: 20px; letter-spacing: -.5px; word-break: break-all; text-align: left; }
.bargain-progress .action-progress-number span { padding-bottom: 0; text-align: left; }
.action-progress-number span { padding-bottom: 3px; color: var(--muted); font-size: 10px; text-align: right; }
.action-progress-track { height: 14px; margin-top: 8px; overflow: hidden; border-radius: 20px; background: #eee6dc; }
.action-progress-track span { display: block; height: 100%; position: relative; border-radius: inherit; background: linear-gradient(90deg,#ffb323,#ff5037,#ee2f65); transition: width .35s; }
.action-progress-track span::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg,transparent 20%,rgba(255,255,255,.5) 45%,transparent 70%); animation: progressFlash 1.4s linear infinite; }
@keyframes progressFlash { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
.action-status { margin: 12px 0; padding: 11px 13px; border-radius: 10px; background: #f7f7fa; }
.action-status strong, .action-status span { display: block; }.action-status strong { font-size: 12px; }.action-status span { margin-top: 3px; color: var(--muted); font-size: 10px; }
.action-buttons { display: flex; gap: 9px; margin-top: 13px; }
.action-buttons .button { flex: 1; min-width: 0; padding-inline: 10px; font-size: 12px; }
.action-links { display: flex; justify-content: center; gap: 20px; margin: 11px 0 2px; }
.action-links button { color: var(--primary); font-size: 10px; text-decoration: underline; text-underline-offset: 3px; }
.assist-log { margin-top: 17px; padding-top: 11px; border-top: 1px solid var(--line); }
.assist-log.empty { color: #a0a3b1; font-size: 10px; text-align: center; }
.assist-log > div { display: flex; align-items: center; gap: 9px; padding: 7px 0; }
.log-avatar { width: 28px; height: 28px; display: grid; place-items: center; flex-shrink: 0; border-radius: 9px; color: #fff; background: linear-gradient(140deg,#6e63e7,#29b5bd); font-size: 10px; font-weight: 800; }
.assist-log > div > span:nth-child(2) { min-width: 0; display: flex; flex-direction: column; }
.assist-log strong { font-size: 10px; }.assist-log small { color: var(--muted); font-size: 9px; overflow-wrap: anywhere; }.assist-log time { margin-left: auto; color: #b0b2bd; font-size: 8px; }
.payment-panel { padding: 20px; border: 1px solid #ffe1a0; border-radius: 15px; background: #fffaf0; text-align: center; }
.payment-coin { width: 46px; height: 46px; margin: 0 auto 10px; display: grid; place-items: center; border: 4px solid #ffdb6c; border-radius: 50%; color: #bd7b0e; background: #ffca38; font: 800 22px Georgia,serif; }
.payment-panel h3 { margin-bottom: 4px; font-size: 17px; }.payment-panel p { color: #978368; font-size: 10px; }.payment-panel > strong { color: #e6572e; font-size: 32px; }.payment-panel > strong small { font-size: 11px; }
.payment-progress { margin-top: 12px; padding-top: 9px; display: flex; justify-content: space-between; border-top: 1px dashed #e4cfaa; color: #ad987a; font-size: 8px; }

.wheel-wrap { width: 266px; height: 266px; margin: 4px auto 14px; position: relative; }
.wheel-pointer { position: absolute; left: 50%; top: -13px; z-index: 4; transform: translateX(-50%); color: #e93d30; font-size: 30px; line-height: 1; text-shadow: 0 2px 3px #fff, 0 3px 8px rgba(180,40,20,.25); }
.wheel-disc { width: 100%; height: 100%; position: relative; border: 8px solid #ffcf4c; border-radius: 50%; box-shadow: 0 8px 25px rgba(180,80,20,.18), inset 0 0 0 3px rgba(255,255,255,.5); will-change: transform; transition: none; }
.wheel-disc.is-spinning { transition: transform 4.4s cubic-bezier(.08,.72,.11,1); }
.wheel-disc > span { position: absolute; width: 60px; margin: 0; color: #fff; font-size: 9.5px; font-weight: 800; line-height: 1.25; text-align: center; text-shadow: 0 1px 2px rgba(0,0,0,.3); pointer-events: none; }
.wheel-hub { position: absolute; left: 50%; top: 50%; z-index: 3; width: 58px; height: 58px; display: grid; place-items: center; transform: translate(-50%,-50%); border: 4px solid #ffe785; border-radius: 50%; color: #fff; background: #f24a36; font-size: 14px; font-weight: 900; box-shadow: 0 3px 10px rgba(0,0,0,.18); pointer-events: none; }
.wheel-status { margin: 0 0 4px; padding: 11px 13px; border-radius: 10px; background: #f7f7fa; }
.wheel-status strong, .wheel-status span { display: block; }.wheel-status strong { font-size: 12px; }.wheel-status span { margin-top: 3px; color: var(--muted); font-size: 10px; }
.wheel-fineprint { margin: 10px 0 0; color: #b0b2bd; font-size: 8px; text-align: center; line-height: 1.6; }

.fake-ad { position: relative; min-height: 176px; padding: 30px 18px 18px; overflow: hidden; border-radius: 14px; color: #fff; background: radial-gradient(circle at 90% 10%,#5b4ba5,transparent 45%),linear-gradient(140deg,#15172a,#242e54); text-align: center; }
.fake-ad::after { content: ""; position: absolute; right: -36px; bottom: -48px; width: 150px; height: 150px; border-radius: 50%; background: rgba(255,255,255,.08); }
.fake-ad .ad-type { position: absolute; left: 12px; top: 10px; padding: 2px 7px; border-radius: 5px; color: rgba(255,255,255,.85); background: rgba(0,0,0,.22); font-size: 8px; letter-spacing: .5px; }
.fake-ad .ad-icon { display: block; margin: 2px 0 7px; font-size: 46px; line-height: 1.1; filter: drop-shadow(0 7px 14px rgba(0,0,0,.26)); }
.fake-ad .ad-brand { display: inline-block; margin-bottom: 5px; padding: 2px 8px; border-radius: 20px; color: #fff; background: rgba(255,255,255,.16); font-size: 8px; font-weight: 700; letter-spacing: 1px; }
.fake-ad h3 { position: relative; z-index: 1; margin: 4px 0 6px; font-size: 20px; line-height: 1.35; }
.fake-ad p { position: relative; z-index: 1; margin: 0 0 12px; color: rgba(255,255,255,.76); font-size: 10px; line-height: 1.6; }
.fake-ad .ad-cta { position: relative; z-index: 1; padding: 8px 20px; border-radius: 30px; color: #2a1a00; background: linear-gradient(120deg,#ffe68a,#ffb02e); font-size: 11px; font-weight: 900; box-shadow: 0 5px 14px rgba(0,0,0,.18); }
.fake-ad .ad-social { display: block; margin-top: 9px; color: rgba(255,255,255,.55); font-size: 8px; }
.fake-ad.tone-pink { background: radial-gradient(circle at 85% 8%,#ff9ec7,transparent 46%),linear-gradient(140deg,#9d174d,#db2777); }
.fake-ad.tone-green { background: radial-gradient(circle at 85% 8%,#6ee7b7,transparent 46%),linear-gradient(140deg,#065f46,#16a34a); }
.fake-ad.tone-orange { background: radial-gradient(circle at 85% 8%,#fdba74,transparent 46%),linear-gradient(140deg,#9a3412,#ea580c); }
.fake-ad.tone-purple { background: radial-gradient(circle at 85% 8%,#c4b5fd,transparent 46%),linear-gradient(140deg,#4c1d95,#7c3aed); }
.fake-ad.tone-red { background: radial-gradient(circle at 85% 8%,#fda4af,transparent 46%),linear-gradient(140deg,#7f1d1d,#e11d48); }
.fake-ad.tone-indigo { background: radial-gradient(circle at 85% 8%,#a5b4fc,transparent 46%),linear-gradient(140deg,#1e1b4b,#4f46e5); }
.fake-ad.tone-teal { background: radial-gradient(circle at 85% 8%,#67e8f9,transparent 46%),linear-gradient(140deg,#134e4a,#0891b2); }
.fake-ad.layout-feed { text-align: left; }
.fake-ad.layout-feed .ad-icon { float: right; margin: 0 0 8px 12px; font-size: 38px; }
.fake-ad.layout-feed h3 { font-size: 18px; }
.fake-ad.layout-feed .ad-cta { padding: 6px 14px; }
.ad-progress { height: 4px; margin: 12px 0 0; overflow: hidden; border-radius: 4px; background: #ececf3; }
.ad-progress span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg,#ffb323,#ff5037); transition: width 1s linear; }
.ad-countdown { margin: 13px 0; color: var(--muted); text-align: center; font-size: 12px; }.ad-countdown strong { color: #ff5138; font-size: 24px; }
.ad-fineprint { margin: 10px 0 0; color: #b3b5c1; font-size: 8px; text-align: center; }
.group-members { display: flex; justify-content: center; gap: 12px; margin: 18px 0; }
.group-members span { width: 65px; height: 65px; display: grid; place-items: center; border: 2px dashed #c6c8d4; border-radius: 50%; color: #a2a5b3; background: #f5f5f8; font-size: 10px; text-align: center; }
.group-members span.joined { color: #fff; border-style: solid; border-color: #ffbf45; background: linear-gradient(140deg,#ff9d36,#f05137); }
.task-list { display: flex; flex-direction: column; gap: 10px; }
.task-item { padding: 12px; display: grid; grid-template-columns: minmax(0,1fr) 65px; gap: 7px 10px; border: 1px solid var(--line); border-radius: 11px; background: #fafafd; }
.task-item > div:first-child { display: flex; flex-direction: column; }.task-item strong { font-size: 11px; }.task-item span { color: var(--muted); font-size: 9px; }
.task-item > button { grid-column: 2; grid-row: 1 / 3; align-self: center; padding: 6px 8px; border-radius: 8px; color: var(--primary); background: var(--primary-soft); font-size: 10px; font-weight: 700; }
.task-mini-progress { height: 5px; overflow: hidden; border-radius: 5px; background: #e6e6ed; }.task-mini-progress span { display: block; height: 100%; background: linear-gradient(90deg,var(--primary),#9b8df5); }
.seckill-poster { margin-bottom: 15px; padding: 20px; display: flex; flex-direction: column; border-radius: 14px; color: #fff; background: linear-gradient(120deg,#ff3b30,#ff8a25); text-align: center; }
.seckill-poster > span { font-size: 36px; font-weight: 900; line-height: 1.2; }.seckill-poster strong { font-size: 18px; }.seckill-poster small { opacity: .8; }

/* ===== 线上公开赛 ===== */
.contest-page { padding-top: 10px; }
.contest-title-row { margin-bottom: 24px; }
.contest-feature { display: grid; grid-template-columns: minmax(0,1.45fr) minmax(0,1fr); gap: 34px; padding: 34px 36px; overflow: hidden; position: relative; border-radius: 22px; color: #fff; background: radial-gradient(circle at 88% 8%,rgba(255,196,80,.32),transparent 38%),radial-gradient(circle at 8% 105%,rgba(105,90,255,.55),transparent 48%),linear-gradient(125deg,#151a3a,#2c2a68 58%,#463a86); box-shadow: 0 18px 46px rgba(32,30,90,.22); }
.contest-feature::before { content: ""; position: absolute; inset: 0; opacity: .18; background-image: linear-gradient(rgba(255,255,255,.14) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.14) 1px,transparent 1px); background-size: 34px 34px; mask-image: linear-gradient(100deg,transparent 15%,#000 60%,transparent); }
.contest-feature-main { position: relative; z-index: 1; }
.contest-feature-top { display: flex; align-items: center; gap: 12px; }
.contest-status { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 20px; font-size: 9px; font-weight: 800; letter-spacing: .4px; }
.contest-status.live { color: #4d2a00; background: linear-gradient(120deg,#ffe279,#ffb42e); }
.contest-status.live i { width: 6px; height: 6px; border-radius: 50%; background: #e33b12; box-shadow: 0 0 0 3px rgba(227,59,18,.22); animation: livePulse 1.6s ease infinite; }
@keyframes livePulse { 50% { box-shadow: 0 0 0 7px rgba(227,59,18,0); } }
.contest-status.upcoming { color: #4157a8; background: #e8edff; }
.contest-status.ended { color: #6a6e80; background: #eceef4; }
.contest-format { color: rgba(255,255,255,.62); font-size: 9px; letter-spacing: 1px; text-transform: uppercase; }
.contest-feature h2 { margin: 16px 0 6px; font-size: 34px; letter-spacing: -1px; line-height: 1.2; }
.contest-lede { margin: 0 0 22px; color: rgba(255,255,255,.72); font-size: 12px; }
.contest-meta { display: flex; flex-wrap: wrap; gap: 28px; margin-bottom: 24px; }
.contest-meta span { display: flex; flex-direction: column; gap: 1px; }
.contest-meta small { color: rgba(255,255,255,.55); font-size: 9px; }
.contest-meta strong { font-size: 20px; font-variant-numeric: tabular-nums; }
.contest-meta span:last-child strong { color: #ffe279; }
.contest-cta-row { display: flex; gap: 11px; flex-wrap: wrap; }
.contest-cta-row .button-primary { color: #3a2200; background: linear-gradient(120deg,#ffe279,#ffb42e); box-shadow: 0 9px 22px rgba(255,180,46,.28); }
.contest-cta-row .button-ghost { color: #fff; border-color: rgba(255,255,255,.36); background: rgba(255,255,255,.08); }
.contest-fineprint { margin: 15px 0 0; color: rgba(255,255,255,.42); font-size: 8px; }
.contest-live-board { position: relative; z-index: 1; padding: 20px; border: 1px solid rgba(255,255,255,.16); border-radius: 16px; background: rgba(255,255,255,.07); backdrop-filter: blur(8px); }
.contest-live-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 13px; font-size: 11px; font-weight: 700; }
.live-pill { padding: 2px 8px; border-radius: 20px; color: #ffdf8a; background: rgba(255,200,60,.14); font-size: 8px; letter-spacing: 1px; }
.contest-live-row { padding: 11px 0; display: grid; grid-template-columns: 22px minmax(0,1fr) auto; align-items: center; gap: 8px 10px; border-bottom: 1px solid rgba(255,255,255,.1); }
.contest-live-row:last-of-type { border-bottom: 0; }
.contest-live-row strong { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 7px; color: #ffe279; background: rgba(255,255,255,.1); font-size: 10px; }
.contest-live-row p { margin: 0; font-size: 11px; }
.contest-live-row em { color: rgba(255,255,255,.55); font-size: 9px; font-style: normal; white-space: nowrap; }
.contest-live-bar { grid-column: 2 / 4; height: 4px; overflow: hidden; border-radius: 4px; background: rgba(255,255,255,.12); }
.contest-live-bar::after { content: ""; display: block; width: var(--p); height: 100%; border-radius: inherit; background: linear-gradient(90deg,#ffdc72,#ff8a51); }
.contest-live-foot { margin: 13px 0 0; padding-top: 12px; border-top: 1px dashed rgba(255,255,255,.14); color: rgba(255,255,255,.45); font-size: 9px; line-height: 1.6; }
.contest-stat-strip { margin: 16px 0 34px; display: grid; grid-template-columns: repeat(4,1fr); overflow: hidden; border: 1px solid var(--line); border-radius: 15px; background: #fff; }
.contest-stat-strip > div { padding: 17px 20px; display: flex; flex-direction: column; gap: 1px; border-right: 1px solid var(--line); }
.contest-stat-strip > div:last-child { border-right: 0; }
.contest-stat-strip strong { font-size: 19px; color: var(--ink); }
.contest-stat-strip span { color: var(--muted); font-size: 9px; }
.contest-stat-strip > div:last-child strong { color: #d9820c; }
.contest-section-heading { display: flex; align-items: baseline; justify-content: space-between; margin: 0 0 16px; }
.contest-section-heading h2 { margin: 0; font-size: 20px; }
.contest-section-heading span { color: var(--muted); font-size: 10px; }
.contest-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.contest-card { padding: 19px 20px 20px; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 17px; background: #fff; box-shadow: 0 4px 16px rgba(31,34,67,.03); transition: transform .2s, box-shadow .2s, border-color .2s; }
.contest-card:hover { transform: translateY(-3px); border-color: #d8d3fa; box-shadow: 0 14px 32px rgba(60,50,150,.09); }
.contest-card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 11px; }
.contest-card-top > span:last-child { color: #a0a3b3; font-size: 9px; }
.contest-card h3 { margin: 0 0 5px; font-size: 16px; }
.contest-card > p { margin: 0 0 15px; color: var(--muted); font-size: 10px; line-height: 1.7; }
.contest-card dl { margin: 0 0 17px; padding-top: 13px; border-top: 1px dashed var(--line); display: flex; flex-direction: column; gap: 7px; }
.contest-card dl > div { display: flex; justify-content: space-between; gap: 10px; }
.contest-card dt { color: #9a9dad; font-size: 9px; }
.contest-card dd { margin: 0; color: #555a6e; font-size: 10px; font-weight: 600; }
.contest-card .button { margin-top: auto; }
.contest-notes { margin: 32px 0 10px; display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.contest-note { padding: 20px; border: 1px solid var(--line); border-radius: 15px; background: #fff; }
.contest-note > span { color: #c8c5de; font: 800 22px/1 Consolas, monospace; }
.contest-note h3 { margin: 9px 0 6px; font-size: 13px; }
.contest-note p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.75; }

/* ===== 比赛工作台 ===== */
.action-modal.contest-wide { width: min(840px,calc(100% - 28px)); }
.contest-arena-meta { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin-bottom: 13px; }
.contest-arena-meta > div { padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fafafd; }
.contest-arena-meta span { display: block; color: #9a9dad; font-size: 8px; }
.contest-arena-meta strong { display: block; margin-top: 2px; font-size: 15px; font-variant-numeric: tabular-nums; }
.contest-arena-meta strong.warn { color: #e6572e; }
.contest-problem-tabs { display: flex; gap: 7px; margin-bottom: 12px; }
.contest-problem-tabs button { flex: 1; padding: 9px 8px; border: 1px solid var(--line); border-radius: 9px; color: #6e7186; background: #fff; font-size: 10px; font-weight: 700; text-align: left; }
.contest-problem-tabs button strong { display: block; font-size: 14px; color: var(--ink); }
.contest-problem-tabs button small { display: block; color: #9a9dad; font-size: 8px; font-weight: 400; }
.contest-problem-tabs button.active { border-color: var(--primary); background: var(--primary-soft); box-shadow: inset 0 0 0 1px var(--primary); }
.contest-problem-tabs button.locked { opacity: .68; }
.contest-problem-pane { padding: 15px; border: 1px solid var(--line); border-radius: 11px; background: #fff; }
.contest-problem-pane h3 { margin: 0 0 4px; font-size: 15px; }
.contest-problem-pane > p { margin: 0 0 9px; color: #5d6175; font-size: 11px; line-height: 1.75; }
.contest-sample { margin: 8px 0; padding: 9px 11px; border-radius: 8px; background: #f6f7fa; color: #6b7086; font: 9px/1.7 Consolas, monospace; white-space: pre-wrap; }
.contest-sample strong { display: block; color: #9a9dad; font: 700 8px Inter, sans-serif; margin-bottom: 2px; }
.contest-editor { min-height: 130px; margin-top: 10px; }
.contest-queue { padding: 17px; border: 1px dashed #e2c98a; border-radius: 11px; background: #fffaf0; text-align: center; }
.contest-queue strong { display: block; color: #a9710c; font-size: 18px; }
.contest-queue p { margin: 5px 0 0; color: #a18d70; font-size: 10px; }
.contest-queue-bar { height: 8px; margin: 12px 0 3px; overflow: hidden; border-radius: 8px; background: #f0e4c8; }
.contest-queue-bar span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg,#ffbe3d,#ff6a3d); transition: width .4s; }
.contest-result { margin-top: 12px; padding: 12px 14px; border-radius: 9px; font-size: 11px; line-height: 1.7; }
.contest-result.wa { color: #b33a43; background: #fff0f1; }
.contest-result.ac { color: #13795b; background: #eaf8f1; }
.contest-result strong { display: block; font-size: 13px; }
.contest-submissions { margin-top: 13px; }
.contest-submissions > span { display: block; margin-bottom: 6px; color: #9a9dad; font-size: 8px; letter-spacing: 1px; }
.contest-submissions > div { padding: 7px 9px; display: flex; justify-content: space-between; gap: 8px; border-bottom: 1px solid #f1f1f5; font-size: 9px; }
.contest-submissions > div:last-child { border-bottom: 0; }
.contest-submissions em { font-style: normal; color: #d94b56; }
.contest-submissions em.ac { color: var(--green); }
.contest-arena-tools { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 11px; }
.contest-arena-tools button { padding: 6px 10px; border-radius: 7px; color: var(--primary); background: var(--primary-soft); font-size: 9px; font-weight: 700; }
.contest-rules-card { margin: 13px 0 0; padding: 11px 13px; border-radius: 9px; background: #f7f7fa; }
.contest-rules-card strong { display: block; margin-bottom: 3px; font-size: 10px; }
.contest-rules-card p { margin: 0; color: var(--muted); font-size: 9px; line-height: 1.7; }
.contest-problem-table { overflow: hidden; border: 1px solid var(--line); border-radius: 11px; background: #fff; }
.contest-problem-table > div { display: grid; grid-template-columns: 46px minmax(0,1fr) 92px; gap: 8px; padding: 10px 13px; align-items: center; border-bottom: 1px solid #f1f1f5; font-size: 10px; }
.contest-problem-table > div:last-child { border-bottom: 0; }
.contest-problem-table > div:first-child { color: #9a9dad; background: #fafafd; font-size: 8px; }
.contest-problem-table strong { color: var(--primary); font-size: 11px; }
.contest-problem-table em { color: #9a9dad; font-style: normal; text-align: right; }

@media (max-width: 1050px) {
  .contest-feature { grid-template-columns: 1fr; gap: 24px; padding: 28px; }
  .contest-grid { grid-template-columns: 1fr 1fr; }
  .contest-notes { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 780px) {
  .contest-title-row { flex-direction: column; align-items: stretch; gap: 14px; }
  .contest-title-row h1 { font-size: 32px; }
  .contest-title-row .segmented-control { align-self: flex-start; }
  .contest-feature h2 { font-size: 27px; }
  .contest-meta { gap: 18px; }
  .contest-stat-strip { grid-template-columns: 1fr 1fr; }
  .contest-stat-strip > div:nth-child(2) { border-right: 0; }
  .contest-stat-strip > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .contest-grid, .contest-notes { grid-template-columns: 1fr; }
  .contest-arena-meta { grid-template-columns: 1fr 1fr; }
  .contest-problem-tabs { flex-wrap: wrap; }
  .contest-problem-tabs button { flex: 1 1 44%; }
}
@media (max-width: 520px) {
  .mini-game-grid { grid-template-columns: repeat(2,1fr); }
  .mini-game-grid strong { font-size: 13px; }.mini-game-grid small { font-size: 9px; }
  .action-modal .modal-body { padding: 17px 15px 19px; }
  .action-banner { padding: 20px 18px 15px; }.action-banner h2 { font-size: 20px; }
  .action-progress-number strong { font-size: 23px; }
  .action-buttons { flex-direction: column; }
  .wheel-wrap { width: 238px; height: 238px; }
  .wheel-disc > span { width: 52px; font-size: 8.5px; }
  .wheel-hub { width: 50px; height: 50px; font-size: 12px; }
  .discussion-vip-banner { flex-direction: column; align-items: stretch; }
  .membership-perks { grid-template-columns: 1fr; }
  .contest-feature { padding: 22px 18px; }
  .contest-feature h2 { font-size: 23px; }
  .contest-title-row .segmented-control { width: 100%; }
  .contest-title-row .segmented-control button { flex: 1; padding: 7px 4px; font-size: 11px; text-align: center; }
  .contest-cta-row .button { flex: 1; }
  .contest-arena-meta { grid-template-columns: 1fr; }
}
/* ===== 0 元购、邀请海报、直播间与秒杀倒计时 ===== */
.mini-game-grid { grid-template-columns: repeat(3,1fr); }
.subsidy-strip { width: 100%; margin-top: 12px; padding: 12px 15px; display: flex; align-items: center; gap: 10px; border-radius: 14px; color: #4a1b00; background: linear-gradient(100deg,#ffe36e,#ffb02e 55%,#ff6a2a); box-shadow: 0 7px 20px rgba(255,140,20,.22); text-align: left; }
.subsidy-badge { flex: 0 0 auto; padding: 3px 8px; border-radius: 5px; color: #ffe36e; background: #b3260b; font-size: 8px; font-weight: 900; letter-spacing: .5px; }
.subsidy-copy { min-width: 0; flex: 1; display: flex; flex-direction: column; }
.subsidy-copy strong { font-size: 14px; }.subsidy-copy small { font-size: 8px; opacity: .72; }
.subsidy-cta { flex: 0 0 auto; padding: 6px 11px; border-radius: 20px; color: #b3260b; background: #fff4d2; font-size: 10px; font-weight: 800; }
.live-slot { width: 100%; margin-top: 10px; padding: 10px 13px; display: flex; align-items: center; gap: 9px; border: 1px solid #2a2b4a; border-radius: 13px; color: #fff; background: linear-gradient(110deg,#15162a,#252044 60%,#3a2444); text-align: left; }
.live-badge { flex: 0 0 auto; padding: 2px 7px; border-radius: 4px; color: #fff; background: #ff3b4f; font-size: 8px; font-weight: 900; letter-spacing: .5px; animation: livePulse 1.4s ease infinite; }
.live-icon { width: 36px; height: 36px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 10px; background: rgba(255,255,255,.12); font-size: 20px; }
.live-copy { min-width: 0; flex: 1; display: flex; flex-direction: column; }.live-copy strong { font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.live-copy small { margin-top: 2px; color: rgba(255,255,255,.55); font-size: 8px; }
.live-cta { flex: 0 0 auto; padding: 6px 10px; border-radius: 20px; color: #3a1200; background: #ffd15c; font-size: 9px; font-weight: 800; }

.blind-box-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 9px; }
.blind-box { padding: 14px 6px; border: 1px solid #f0dfb2; border-radius: 13px; background: linear-gradient(145deg,#fffdf6,#fff2cd); text-align: center; transition: transform .15s, box-shadow .15s; }
.blind-box:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(200,140,20,.14); }
.blind-box:disabled { opacity: 1; cursor: default; }
.blind-box-icon { display: block; font-size: 27px; line-height: 1.2; }
.blind-box strong { display: block; margin-top: 5px; font-size: 10px; line-height: 1.3; }.blind-box small { display: block; margin-top: 3px; color: #b18b53; font-size: 8px; }
.blind-box.opened { background: linear-gradient(145deg,#fff4d1,#ffe29a); border-color: #ffc94a; }
.blind-box.opened strong { color: #9b4f16; }
.blind-box-result { margin-top: 14px; padding: 14px; border: 1px dashed #ffd98a; border-radius: 11px; background: #fffaf0; text-align: center; }
.blind-box-result strong { display: block; color: #a56a09; font-size: 14px; }.blind-box-result p { margin: 5px 0 0; color: #a18d70; font-size: 9px; }
.blind-box-result button { margin-top: 9px; padding: 7px 14px; border-radius: 20px; color: #fff; background: linear-gradient(120deg,#ff8a2e,#e94b2b); font-size: 10px; font-weight: 800; }
.zero-buy-card { padding: 20px; border: 1px solid #ffd98a; border-radius: 15px; background: linear-gradient(145deg,#fffdf6,#fff1c7); text-align: center; }
.zero-buy-icon { display: block; font-size: 48px; }.zero-buy-card strong { display: block; margin-top: 6px; font-size: 19px; }.zero-buy-card p { margin: 4px 0; color: #a18d70; font-size: 10px; }.zero-buy-card em { color: #e6572e; font-size: 10px; font-style: normal; font-weight: 800; }

.invite-poster { position: relative; overflow: hidden; padding: 18px; border-radius: 16px; color: #fff; background: radial-gradient(circle at 90% 0,rgba(255,240,150,.35),transparent 38%),linear-gradient(145deg,#ff3b30,#ff7a1a 55%,#ffb02e); }
.invite-poster::after { content: ""; position: absolute; right: -30px; bottom: -30px; width: 130px; height: 130px; border-radius: 50%; background: rgba(255,255,255,.12); }
.poster-brand { display: flex; align-items: center; gap: 7px; font-size: 11px; font-weight: 800; }.poster-brand img { width: 28px; height: 28px; border-radius: 8px; }.poster-brand strong { letter-spacing: .5px; }
.invite-poster h3 { margin: 14px 0 8px; font-size: 24px; line-height: 1.25; }.invite-poster h3 em { color: #ffe66d; font-style: normal; font-size: 28px; }
.poster-product { font-size: 44px; line-height: 1; }.invite-poster p { margin: 8px 0; color: rgba(255,255,255,.82); font-size: 10px; }.invite-poster p strong { color: #ffe66d; font-size: 16px; }
.poster-code { display: inline-block; margin: 4px 0 10px; padding: 4px 9px; border-radius: 6px; color: #fff; background: rgba(0,0,0,.18); font-size: 9px; }.poster-code strong { letter-spacing: 1px; }
.poster-qr { display: flex; align-items: center; gap: 9px; }.qr-grid { width: 82px; height: 82px; padding: 4px; display: grid; grid-template-columns: repeat(9,1fr); grid-template-rows: repeat(9,1fr); gap: 1px; border-radius: 5px; background: #fff; }
.qr-grid span { background: #fff; }.qr-grid span.on { background: #141414; }.poster-qr small { color: rgba(255,255,255,.7); font-size: 8px; }
.poster-footer { margin-top: 11px; padding-top: 8px; border-top: 1px solid rgba(255,255,255,.22); color: rgba(255,255,255,.62); font-size: 8px; }

.live-stage { overflow: hidden; border-radius: 13px; background: #0f1020; }
.live-stage-video { height: 150px; display: grid; place-items: center; position: relative; background: radial-gradient(circle at 50% 35%,#3c3270,#16172b 70%); }
.live-stage-video .live-badge { position: absolute; left: 10px; top: 9px; }.live-stage-video .live-host { font-size: 56px; }.live-stage-video .live-host-name { position: absolute; left: 10px; bottom: 8px; padding: 3px 8px; border-radius: 20px; color: #fff; background: rgba(0,0,0,.35); font-size: 8px; }
.live-chat { padding: 8px 11px; background: #17182a; }.live-chat p { margin: 3px 0; color: #aeb5d4; font-size: 9px; }
.live-product { margin-top: 10px; padding: 10px 12px; display: flex; align-items: center; gap: 9px; border: 1px solid #ffe2aa; border-radius: 11px; background: #fffaf0; }
.live-product > span { font-size: 24px; }.live-product > div { min-width: 0; flex: 1; display: flex; flex-direction: column; }.live-product strong { font-size: 11px; }.live-product small { color: #a58a5d; font-size: 8px; }
.live-product button { flex: 0 0 auto; padding: 6px 11px; border-radius: 20px; color: #fff; background: linear-gradient(120deg,#ff6a2a,#e62e2e); font-size: 9px; font-weight: 800; }

.seckill-countdown { margin-bottom: 9px; padding: 7px 10px; border-radius: 8px; color: #a58a5d; background: #fff8e7; text-align: center; font-size: 9px; }.seckill-countdown strong { color: #ff5138; font-size: 20px; font-variant-numeric: tabular-nums; }
.seckill-stock { margin: 9px 0; padding: 7px 10px; display: flex; justify-content: space-between; border-radius: 8px; color: #a58a5d; background: #fff8e7; font-size: 8px; }

@media (max-width: 520px) {
  .mini-game-grid { grid-template-columns: repeat(2,1fr); }
  .blind-box-grid { grid-template-columns: repeat(2,1fr); }
  .invite-poster h3 { font-size: 20px; }.invite-poster h3 em { font-size: 23px; }
  .live-stage-video { height: 120px; }
}

/* ===== 红包雨、砍价模式、刮刮乐 ===== */
.activity-dock { position: fixed; left: 18px; bottom: 24px; z-index: 60; display: flex; flex-direction: column; gap: 9px; }
.activity-dot { position: relative; width: 58px; height: 58px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; border: 2px solid rgba(255,255,255,.6); border-radius: 18px; color: #fff; background: linear-gradient(145deg,#ff5a3d,#e9262a); box-shadow: 0 10px 24px rgba(220,40,30,.35); }
.activity-dot span { font-size: 21px; line-height: 1; }.activity-dot small { font-size: 8px; font-weight: 800; }
.activity-dot i { position: absolute; top: -5px; right: -5px; padding: 1px 5px; border-radius: 8px; color: #e9262a; background: #fff; font-size: 7px; font-style: normal; font-weight: 900; }
.activity-dot:nth-child(2) { background: linear-gradient(145deg,#b06bff,#6a3de0); }
.activity-dot:nth-child(3) { color: #fff; background: linear-gradient(145deg,#4b8fd5,#2f66c9); }

.rain-layer { position: fixed; inset: 0; z-index: 200; overflow: hidden; cursor: none; background: rgba(20,8,8,.82); backdrop-filter: blur(3px); }
.rain-hud { position: absolute; top: 18px; left: 50%; z-index: 3; transform: translateX(-50%); display: flex; gap: 30px; padding: 10px 20px; border-radius: 16px; color: #fff; background: rgba(0,0,0,.35); }
.rain-hud > div { display: flex; flex-direction: column; align-items: center; }.rain-hud span { color: rgba(255,255,255,.6); font-size: 9px; }.rain-hud strong { color: #ffe066; font-size: 20px; font-variant-numeric: tabular-nums; }
.rain-field { position: absolute; inset: 0; z-index: 2; }
.rain-trail { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; pointer-events: none; }
.rain-cursor { position: fixed; left: 50%; top: 50%; z-index: 6; width: 38px; height: 38px; display: grid; place-items: center; transform: translate(-50%,-50%); border-radius: 50%; color: #fff; background: radial-gradient(circle at 35% 30%,#ffe680,#ff7a3d 55%,#e3262a); box-shadow: 0 0 0 3px rgba(255,255,255,.35),0 0 22px rgba(255,120,50,.8); font-size: 18px; pointer-events: none; }
.rain-packet { position: absolute; top: -70px; width: 52px; height: 62px; display: grid; place-items: center; border: 0; border-radius: 8px; background: linear-gradient(160deg,#ff4a3d,#c4191f); box-shadow: 0 6px 14px rgba(0,0,0,.3); cursor: pointer; animation: rainFall linear forwards; }
.rain-packet::before { content: "¥"; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; color: #b3260b; background: #ffd24a; font-size: 13px; font-weight: 900; }
@keyframes rainFall { from { transform: translateY(0) rotate(-8deg); } to { transform: translateY(110vh) rotate(8deg); } }
.rain-float { position: fixed; z-index: 210; color: #ffe066; font-size: 16px; font-weight: 900; pointer-events: none; animation: rainFloat .8s ease-out forwards; }
@keyframes rainFloat { to { transform: translateY(-50px); opacity: 0; } }
.rain-result { position: absolute; left: 50%; top: 50%; z-index: 4; width: min(360px, calc(100% - 40px)); transform: translate(-50%,-50%); padding: 24px 20px; border-radius: 18px; background: #fff; text-align: center; box-shadow: 0 20px 60px rgba(0,0,0,.3); }
.rain-result strong { display: block; color: #d92b22; font-size: 20px; }.rain-result p { margin: 8px 0 16px; color: #8a6d3b; font-size: 11px; }
.rain-result-actions { display: flex; gap: 8px; }.rain-result-actions button { flex: 1; padding: 9px 6px; border-radius: 9px; font-size: 10px; font-weight: 700; }
.rain-result small { display: block; margin-top: 6px; color: #b0a18d; font-size: 8px; line-height: 1.6; }
#rain-again, #rain-withdraw { color: #fff; background: linear-gradient(120deg,#ff5a3d,#e9262a); } #rain-close { color: #8a6d3b; background: #fff4e3; }
.rain-exit { position: absolute; right: 18px; top: 16px; z-index: 5; width: 36px; height: 36px; border-radius: 50%; color: #fff; background: rgba(255,255,255,.14); font-size: 22px; }
.rain-packet.ad { background: linear-gradient(160deg,#4b8fd5,#2f66c9); }
.rain-packet.ad::before { content: "AD"; color: #2f66c9; background: #ffd24a; font-size: 10px; }
.rain-debt { position: absolute; left: 50%; top: 50%; z-index: 5; width: min(360px, calc(100% - 40px)); transform: translate(-50%,-50%); padding: 24px 20px; border-radius: 18px; background: #fff; text-align: center; box-shadow: 0 20px 60px rgba(0,0,0,.3); }
.rain-debt strong { display: block; color: #d92b22; font-size: 20px; }.rain-debt p { margin: 8px 0 14px; color: #8a6d3b; font-size: 11px; line-height: 1.7; }.rain-debt p b { color: #d92b22; font-size: 19px; }
.rain-debt button { padding: 9px 20px; border-radius: 9px; color: #fff; background: linear-gradient(120deg,#ff5a3d,#e9262a); font-size: 11px; font-weight: 800; }
.rain-debt small { display: block; margin-top: 10px; color: #b0a18d; font-size: 8px; }
.action-modal.forced-ad .modal-close { display: none !important; }

.chop-bar { position: fixed; left: 50%; bottom: 18px; z-index: 90; width: min(520px, calc(100% - 30px)); transform: translateX(-50%); display: flex; align-items: center; gap: 9px; padding: 10px 13px; border: 1px solid #ffd98a; border-radius: 14px; background: #fffaf0; box-shadow: 0 12px 30px rgba(120,70,10,.18); }
.chop-icon { width: 35px; height: 35px; display: grid; place-items: center; border-radius: 10px; background: #fff1cf; font-size: 18px; }
.chop-info { flex: 1; min-width: 0; }.chop-info strong { display: block; color: #a56a09; font-size: 11px; }
.chop-track { height: 6px; margin-top: 5px; overflow: hidden; border-radius: 6px; background: #f1e3c8; }.chop-track span { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg,#ffb323,#ff5037); transition: width .2s; }
#chop-close { width: 28px; height: 28px; border-radius: 50%; color: #a58a5d; background: #fff1cf; font-size: 16px; }
.knife-follower { position: fixed; left: 0; top: 0; z-index: 95; font-size: 28px; pointer-events: none; transform: translate(-50%,-50%) rotate(-20deg); filter: drop-shadow(0 3px 5px rgba(0,0,0,.25)); }
.chop-float { position: fixed; z-index: 96; color: #ff5a3d; font-size: 14px; font-weight: 900; pointer-events: none; animation: chopFloat .8s ease-out forwards; }
@keyframes chopFloat { to { transform: translateY(-40px); opacity: 0; } }
body.bargain-mode { cursor: crosshair; }
body.bargain-mode .float-cut, body.bargain-mode .activity-dock { display: none; }

.scratch-layer { position: fixed; inset: 0; z-index: 210; display: grid; place-items: center; padding: 20px; background: rgba(18,10,8,.78); backdrop-filter: blur(3px); }
.scratch-panel { width: min(420px, 100%); padding: 22px; border-radius: 20px; background: #fff; box-shadow: 0 24px 70px rgba(0,0,0,.3); }
.scratch-head span { color: #b06bff; font-size: 8px; font-weight: 800; letter-spacing: 2px; }.scratch-head h2 { margin: 4px 0; font-size: 25px; }.scratch-head p { margin: 0 0 14px; color: var(--muted); font-size: 10px; }
.scratch-card { position: relative; width: 100%; height: 180px; overflow: hidden; border-radius: 14px; background: linear-gradient(145deg,#fff3c4,#ffd76a); }
.scratch-prize { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; color: #9b4f16; text-align: center; }
.scratch-prize strong { font-size: 24px; }.scratch-prize span { font-size: 9px; }
#scratch-canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; cursor: crosshair; }
.scratch-hint { position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); padding: 3px 9px; border-radius: 20px; color: #7a5a2a; background: rgba(255,255,255,.55); font-size: 8px; pointer-events: none; }
.scratch-actions { margin-top: 13px; display: flex; gap: 8px; }.scratch-actions .button { flex: 1; }
.scratch-foot { margin: 10px 0 0; color: #b0a18d; font-size: 8px; text-align: center; }

@media (max-width: 520px) {
  .activity-dock { left: 10px; bottom: 18px; }
  .activity-dot { width: 48px; height: 48px; border-radius: 15px; }.activity-dot span { font-size: 18px; }.activity-dot small { font-size: 7px; }
  .chop-bar { bottom: 18px; width: calc(100% - 30px); }
  .rain-hud { gap: 18px; padding: 8px 14px; }
}

.service-panel { position: fixed; left: 90px; bottom: 24px; z-index: 130; width: 340px; max-width: calc(100% - 36px); display: flex; flex-direction: column; overflow: hidden; border: 1px solid #e6e2f5; border-radius: 16px; background: #fff; box-shadow: 0 20px 60px rgba(30,25,70,.25); }
.service-head { display: flex; align-items: center; gap: 9px; padding: 11px 13px; color: #fff; background: linear-gradient(120deg,#6157e8,#8c63e8); }
.service-avatar { width: 34px; height: 34px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 10px; background: rgba(255,255,255,.18); font-size: 19px; }
.service-name-wrap { min-width: 0; flex: 1; display: flex; flex-direction: column; }.service-name-wrap strong { font-size: 11px; }.service-name-wrap small { color: rgba(255,255,255,.7); font-size: 8px; }
#service-close { width: 26px; height: 26px; border-radius: 50%; color: #fff; background: rgba(255,255,255,.16); font-size: 16px; }
.service-messages { height: 260px; overflow-y: auto; padding: 12px; display: flex; flex-direction: column; gap: 8px; background: #f7f7fb; }
.service-bubble { max-width: 84%; padding: 8px 11px; border-radius: 12px; font-size: 10px; line-height: 1.6; word-break: break-word; }
.service-bubble.bot { align-self: flex-start; color: #4e4a66; background: #fff; border: 1px solid #e9e7f2; border-bottom-left-radius: 4px; }
.service-bubble.user { align-self: flex-end; color: #fff; background: #6157e8; border-bottom-right-radius: 4px; }
.service-quick { display: flex; flex-wrap: wrap; gap: 5px; padding: 8px 10px; border-top: 1px solid #f0eef7; background: #fff; }
.service-quick button { padding: 4px 8px; border: 1px solid #ded9f2; border-radius: 20px; color: #6157e8; background: #f7f5ff; font-size: 8px; }
.service-input { display: flex; gap: 6px; padding: 9px 10px; border-top: 1px solid #f0eef7; background: #fff; }
.service-input input { min-width: 0; flex: 1; padding: 7px 9px; border: 1px solid #e6e2f5; border-radius: 8px; outline: 0; font-size: 10px; }
.service-input input:focus { border-color: #a99ff5; }
.service-input button { flex: 0 0 auto; padding: 7px 12px; border-radius: 8px; color: #fff; background: #6157e8; font-size: 9px; font-weight: 700; }

@media (max-width: 520px) {
  .service-panel { left: 10px; right: 10px; bottom: 80px; width: auto; }
  .service-messages { height: 230px; }
}

.coin-balance-line { margin-bottom: 12px; padding: 10px 13px; display: flex; align-items: center; justify-content: space-between; border-radius: 10px; color: #a58a5d; background: #fff8e7; font-size: 10px; }
.coin-balance-line strong { color: #b47712; font-size: 16px; }
.coin-pack-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.coin-pack { padding: 13px 10px; display: flex; flex-direction: column; align-items: center; border: 1px solid #f0dfb2; border-radius: 12px; background: #fffdf7; text-align: center; }
.coin-pack.active { border-color: #ff9d2e; background: #fff5e0; box-shadow: inset 0 0 0 1px #ff9d2e; }
.coin-pack span { color: #b47712; font-size: 24px; font-weight: 900; line-height: 1.1; }
.coin-pack small { color: #a58a5d; font-size: 8px; }
.coin-pack em { margin-top: 4px; color: #e6572e; font-size: 11px; font-style: normal; font-weight: 800; }
.coin-pack i { margin-top: 4px; color: #b0a18d; font-size: 7px; font-style: normal; }
.coin-fineprint { margin: 10px 0 0; color: #b0a18d; font-size: 8px; text-align: center; line-height: 1.6; }

.frozen-panel { padding: 24px 18px; border: 1px solid #dbe6f5; border-radius: 15px; background: linear-gradient(145deg,#f5f9ff,#eef4ff); text-align: center; }
.frozen-panel > span { display: block; font-size: 46px; }
.frozen-panel h3 { margin: 8px 0 5px; color: #2f4b7a; font-size: 20px; }
.frozen-panel p { margin: 0; color: #6b7d99; font-size: 10px; line-height: 1.7; }
.frozen-progress { margin-top: 16px; padding: 10px 12px; border-radius: 9px; background: #fff; text-align: left; }
.frozen-progress strong { display: block; color: #2f4b7a; font-size: 10px; }
.frozen-track { height: 7px; margin-top: 6px; overflow: hidden; border-radius: 7px; background: #e4ebf5; }
.frozen-track span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg,#4b8fd5,#2f66c9); transition: width .3s; }
.frozen-foot { margin: 12px 0 0; color: #a8b3c4; font-size: 8px; text-align: center; }
.frozen-panel.done { border-color: #ffd5d5; background: linear-gradient(145deg,#fff5f5,#ffecec); }
.frozen-panel.done h3 { color: #b23a3a; }.frozen-panel.done p { color: #9b6b6b; }

@media (prefers-reduced-motion: reduce) {
  .action-progress-track span::after { animation: none; }
  .contest-status.live i { animation: none; }
}

