:root {
  color-scheme: dark;
  --bg: #0e1017;
  --surface: #171a24;
  --raised: #1d2130;
  --line: #2b3041;
  --muted: #a2a9be;
  --ink: #f4f5fb;
  --accent: #c9ff78;
  --violet: #b9a4ff;
  --radius: 17px;
  font-family: "Segoe UI", "Microsoft YaHei UI", "PingFang SC", system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { opacity: .55; cursor: wait; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.shell { width: min(1200px, calc(100% - 56px)); margin-inline: auto; }
.topbar { border-bottom: 1px solid var(--line); background: #12141d; }
.header-inner { display: flex; align-items: center; gap: 38px; min-height: 73px; }
.brand { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; font-size: 17px; font-weight: 750; letter-spacing: .03em; }
.brand-mark { display: grid; place-items: center; width: 40px; height: 40px; color: #171d11; background: var(--accent); border-radius: 12px; }
.brand-mark svg { width: 28px; }
.brand small { display: block; margin-top: 2px; font-size: 8px; letter-spacing: .24em; color: var(--muted); }
nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
nav a { padding: 9px 12px; border-radius: 8px; color: var(--muted); font-size: 14px; white-space: nowrap; }
nav a:hover, nav a[aria-current] { color: var(--ink); background: var(--raised); }
.account { margin-left: auto; display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 8px; padding: 10px 15px; min-height: 38px; border-radius: 9px; border: 1px solid var(--line); background: var(--raised); color: var(--ink); font-size: 14px; font-weight: 650; }
.button:hover { border-color: #666f88; }
.button.primary { background: var(--accent); color: #161e0c; border-color: transparent; }
.button.primary:hover { background: #dbffab; }
.button.danger { color: #ffb1b6; }
.subtle { color: var(--muted); }
.small { font-size: 13px; }
main { min-height: calc(100vh - 170px); padding-block: 30px 40px; }
.hero { min-height: 320px; isolation: isolate; position: relative; display: flex; align-items: center; overflow: hidden; border: 1px solid #3a3a55; border-radius: 22px; background: radial-gradient(ellipse at 82% 55%, #413771, transparent 52%), linear-gradient(110deg, #1b2030, #20223b); padding: 42px 48px; }
.hero-copy { position: relative; z-index: 1; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 750; letter-spacing: .15em; color: var(--accent); text-transform: uppercase; }
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 13px currentColor; }
.hero h1 { margin: 15px 0; font-size: clamp(36px, 5vw, 65px); letter-spacing: -.06em; line-height: 1.13; }
.hero h1 span { color: var(--accent); }
.hero p { margin: 0 0 25px; color: #c8cce1; line-height: 1.75; }
.hero-art { width: min(54%, 610px); position: absolute; right: 10px; bottom: -10px; height: auto; pointer-events: none; }
.home-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(290px, 1fr); gap: 24px; margin-top: 32px; align-items: start; }
.section-head, .row, .price-row, .page-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.section-head { margin-bottom: 16px; }
h1, h2, h3, p { overflow-wrap: anywhere; }
.section-head h2, .panel h2 { margin: 0; font-size: 21px; }
.section-head a { color: var(--muted); font-size: 13px; }
.page-head { margin: 4px 0 24px; align-items: end; }
.page-head h1 { font-size: clamp(28px, 4vw, 40px); margin: 6px 0; }
.page-head p { margin: 8px 0 0; color: var(--muted); }
.tabs { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 16px; }
.tab { padding: 7px 11px; border-radius: 8px; font-size: 13px; color: var(--muted); border: 1px solid var(--line); background: transparent; }
.tab:hover, .tab[aria-pressed="true"] { color: var(--accent); background: #232c22; border-color: #42523a; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.service-card, .panel, .order, .detail { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.service-card { display: block; overflow: hidden; }
.service-card:hover { border-color: #686188; transform: translateY(-2px); }
.card-art { min-height: 104px; overflow: hidden; position: relative; display: flex; align-items: end; padding: 12px; background: linear-gradient(130deg, #503342, #2f283b); color: #ffc2c5; }
.card-art::before, .card-art::after { content: ""; position: absolute; width: 103px; height: 103px; right: 12px; top: -16px; border: 1px solid currentColor; opacity: .3; transform: rotate(36deg); border-radius: 23px; }
.card-art::after { right: -15px; top: 14px; width: 124px; height: 124px; opacity: .16; }
.card-art svg { position: absolute; width: 59px; height: 59px; right: 30px; top: 20px; opacity: .9; filter: drop-shadow(0 0 12px currentColor); }
.card-art.g1 { color: #e6c583; background: linear-gradient(130deg, #4a3d2c, #2c2e43); }
.card-art.g2 { color: #91e3e1; background: linear-gradient(130deg, #264c55, #273451); }
.card-art.g3 { color: #c3afff; background: linear-gradient(130deg, #43345f, #2d2946); }
.game-label { position: relative; background: #14151cbb; padding: 4px 7px; border-radius: 5px; font-size: 11px; font-weight: 650; z-index: 1; }
.card-body { padding: 14px; }
.card-body h3 { font-size: 15px; line-height: 1.45; margin: 8px 0 13px; }
.rating { color: #ffdb8a; white-space: nowrap; }
.price { color: var(--accent); font-weight: 750; white-space: nowrap; }
.price-row { padding-top: 12px; border-top: 1px solid var(--line); }
.panel, .detail { padding: 19px; }
.panel + .panel { margin-top: 14px; }
.panel .section-head { margin-bottom: 12px; }
.rank-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.rank-grid .panel { margin: 0; }
.rank-list { list-style: none; padding: 0; margin: 0; }
.rank-list li { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); font-size: 14px; }
.rank-list li:first-child { border-top: 0; }
.rank-num { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; color: var(--muted); background: var(--raised); font-size: 12px; font-weight: 700; }
.rank-list li:first-child .rank-num { color: #1b2112; background: var(--accent); }
.rank-meta { display: block; color: var(--muted); font-size: 11px; margin-top: 3px; }
.stack { display: grid; gap: 13px; }
.order { padding: 17px 19px; }
.order h3 { margin: 6px 0; font-size: 17px; }
.order p { margin: 8px 0 0; }
.badge { display: inline-block; padding: 4px 8px; border-radius: 6px; color: var(--violet); background: #2a2440; font-size: 12px; white-space: nowrap; }
.badge.done { color: var(--accent); background: #273322; }
.detail { max-width: 780px; }
.detail > .card-art { border-radius: 11px; margin-bottom: 20px; }
.detail p, .description { line-height: 1.7; }
.review { border-top: 1px solid var(--line); padding: 13px 0; }
.empty, .loading { color: var(--muted); padding: 16px 0; }
.empty a { color: var(--accent); }
.form { display: grid; gap: 13px; }
.form label { display: grid; gap: 6px; font-size: 14px; color: var(--muted); }
.form input, .form select, .form textarea { width: 100%; background: #11131d; border: 1px solid var(--line); color: var(--ink); padding: 10px; border-radius: 8px; }
.form textarea { min-height: 95px; resize: vertical; }
.form .button { justify-self: start; }
.footer { display: flex; justify-content: space-between; gap: 10px; border-top: 1px solid var(--line); padding-block: 20px; color: var(--muted); font-size: 12px; }
dialog { width: min(460px, calc(100% - 32px)); color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
dialog::backdrop { background: #080911bc; }
dialog h2 { margin: 0; font-size: 21px; }
.demo { margin-top: 17px; border-top: 1px solid var(--line); padding-top: 13px; }
.demo p { margin: 0 0 10px; }
.notice { position: fixed; z-index: 10; bottom: 18px; right: 18px; max-width: calc(100% - 36px); background: var(--raised); border: 1px solid #677194; padding: 10px 14px; border-radius: 8px; }
.notice:empty { display: none; }
.error { margin: 0; color: #ffb1b6; }
@media (max-width: 1000px) {
  .header-inner { gap: 16px; }
  .home-grid { grid-template-columns: minmax(0, 1.5fr) minmax(260px, 1fr); }
  .home-grid .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 740px) {
  .shell { width: calc(100% - 30px); }
  .header-inner { flex-wrap: wrap; padding-block: 10px; row-gap: 8px; }
  nav { order: 3; flex-basis: 100%; }
  nav a { padding: 7px 8px; font-size: 13px; }
  .hero { min-height: 270px; padding: 24px; }
  .hero-art { right: -40px; opacity: .33; width: 75%; }
  .home-grid, .rank-grid { grid-template-columns: 1fr; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .page-head { align-items: start; flex-wrap: wrap; }
  .order .row { align-items: start; flex-wrap: wrap; }
}
@media (prefers-reduced-motion: no-preference) {
  .service-card, .button { transition: border-color .18s, background .18s, transform .18s; }
}
