:root {
  /* Compi：深蓝 + 金 + 海克斯青（和吉祥物 Aria 同一套） */
  --bg: #010a13; --card: #0a1628; --text: #f0e6d2; --muted: #a09b8c; --line: #1e2d40;
  --accent: #c8aa6e; --accent-soft: #2a2414; --hex: #0ac8b9; --hex-soft: #0a2a33;
  --gold-grad: linear-gradient(180deg, #f0e6d2 0%, #c8aa6e 45%, #785a28 100%);
  --ok: #3ac98a; --ok-soft: #0f2e24; --warn: #e0b45a; --warn-soft: #33270e; --bad: #f05a6e; --bad-soft: #3a1520;
  --radius: 4px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
body { margin: 0; background: radial-gradient(1200px 600px at 50% -200px, #0b2a4a 0%, transparent 70%), var(--bg); background-attachment: fixed; color: var(--text); font: 15px/1.6 -apple-system, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif; }
a { color: var(--hex); text-decoration: none; }
h1, h2, .cinzel { font-family: "Cinzel", Georgia, serif; letter-spacing: .5px; }
h1 { color: var(--text); }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 10px 20px; background: rgba(1,10,19,.92); backdrop-filter: blur(6px); border-bottom: 1px solid #463714; box-shadow: 0 1px 0 #785a28; position: sticky; top: 0; z-index: 5; }
.brand { font-weight: 700; font-size: 18px; color: var(--text); display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand .word { display: inline-flex; align-items: center; font-family: "Cinzel", Georgia, serif; font-weight: 900; font-size: 28px; line-height: 1;
  letter-spacing: 1px; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand .word svg { width: 28px; height: 28px; margin: 0 1px; flex: none; }
.brand .word svg.duo { width: 33px; margin: 0 3px; }
.brand .slogan { font-family: "Cinzel", Georgia, serif; font-size: 12px; letter-spacing: 2px; color: var(--muted); }
@media (max-width: 700px) { .brand .slogan { display: none; } }
nav { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
nav a, nav button { padding: 6px 12px; border-radius: 8px; color: var(--text); font-size: 14px; }
nav a.active { background: var(--accent-soft); color: var(--accent); box-shadow: inset 0 -2px 0 var(--accent); }
main { max-width: 1040px; margin: 0 auto; padding: 24px 16px 60px; }
h1 { font-size: 24px; margin: 0 0 16px; }
h2 { font-size: 18px; margin: 24px 0 12px; }
.muted { color: var(--muted); }
.card { background: linear-gradient(180deg, #0c1b30, var(--card)); border: 1px solid #2a3a4f; border-radius: var(--radius); padding: 20px; }
.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); align-items: start; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 8px 0 14px; }
.section-head h2 { margin: 0; font-size: 20px; }
/* 陪玩卡片：上面大照片，下面资料 */
.comp { display: flex; flex-direction: column; padding: 0; overflow: hidden; transition: border-color .15s, transform .15s, box-shadow .15s; }
.comp:hover { border-color: #785a28; transform: translateY(-2px); box-shadow: 0 10px 30px rgba(0,0,0,.45), 0 0 0 1px #463714; }
.comp-photo { position: relative; aspect-ratio: 4 / 5; background: radial-gradient(circle at 50% 35%, #12305a, #091428 70%); border-bottom: 2px solid #785a28; }
.comp-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; display: block; }
@media (max-width: 560px) { .comp-photo { aspect-ratio: 1 / 1; } }
.comp-photo::after { content: ""; position: absolute; inset: auto 0 0; height: 35%; background: linear-gradient(transparent, rgba(1,10,19,.75)); pointer-events: none; }
.comp-initial { position: absolute; inset: 0; display: grid; place-items: center; font: 800 96px/1 "Cinzel", Georgia, serif;
  background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.comp-photo .status { position: absolute; top: 10px; left: 10px; z-index: 1; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 99px;
  background: rgba(1,10,19,.75); color: var(--muted); border: 1px solid #2a3a4f; backdrop-filter: blur(4px); }
.comp-photo .status.on { color: var(--ok); border-color: #1d5a42; }
.comp-body { display: flex; flex-direction: column; gap: 10px; padding: 14px 16px 16px; flex: 1; }
.comp-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.comp-name { font: 700 20px/1.2 "Cinzel", Georgia, serif; color: var(--text); overflow-wrap: anywhere; }
.comp .price { font-size: 18px; font-weight: 700; color: var(--accent); white-space: nowrap; }
.comp .price small { font-size: 12px; font-weight: 400; color: var(--muted); }
.comp-games { font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: var(--hex); }
.comp-games .server { border: 1px solid currentColor; border-radius: 4px; padding: 0 4px; font-size: 11px; letter-spacing: .5px; opacity: .85; }
.comp-bio { margin: 0; color: var(--muted); font-size: 14px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.comp-body > .btn { margin-top: auto; }
/* 陪玩上传头像 */
.photo-card { display: flex; gap: 20px; align-items: flex-start; }
.photo-preview { position: relative; flex: none; width: 120px; aspect-ratio: 4 / 5; border: 2px solid #785a28; border-radius: 4px; overflow: hidden; background: radial-gradient(circle at 50% 35%, #12305a, #091428 70%); }
.photo-preview img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-preview .comp-initial { font-size: 54px; }
@media (max-width: 560px) { .photo-card { flex-direction: column; } }
.tags { display: flex; gap: 6px; flex-wrap: wrap; }
.tag { font-size: 12px; padding: 2px 8px; border-radius: 2px; background: var(--hex-soft); color: #5ff2e5; border: 1px solid #0a4a55; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 0; border-radius: 8px; padding: 9px 16px;
  background: var(--gold-grad); color: #091428; font: inherit; font-weight: 700; cursor: pointer;
  box-shadow: inset 0 0 0 1px #f0e6d2, 0 0 0 1px #785a28; letter-spacing: .3px; }
.btn:hover:not(:disabled) { filter: brightness(1.08); box-shadow: inset 0 0 0 1px #fff, 0 0 12px rgba(200,170,110,.45); }
.btn:disabled { opacity: .5; cursor: default; }
.btn.ghost { background: transparent; color: var(--accent); border: 1px solid #785a28; box-shadow: none; }
.btn.ok { background: linear-gradient(180deg, #5ff2e5, #0ac8b9 50%, #005a82); color: #01161d; box-shadow: inset 0 0 0 1px #cdfaf6, 0 0 0 1px #005a82; }
.btn.bad { background: var(--bad); color: #fff; box-shadow: none; }
.btn.sm { padding: 5px 10px; font-size: 13px; }
form { display: grid; gap: 14px; }
label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; }
input, select, textarea { font: inherit; padding: 9px 12px; border-radius: 8px; border: 1px solid #2a3a4f; background: #010a13; color: var(--text); width: 100%; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 2px rgba(200,170,110,.25); }
textarea { min-height: 70px; }
.narrow { max-width: 420px; margin: 0 auto; }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.two { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; }
@media (max-width: 720px) { .two { grid-template-columns: 1fr; } .two > .pay-col { order: -1; } }
.badge { display: inline-block; font-size: 12px; font-weight: 600; padding: 2px 10px; border-radius: 99px; white-space: nowrap; }
.s-pending_payment { background: var(--warn-soft); color: var(--warn); }
.s-payment_submitted { background: var(--accent-soft); color: var(--accent); }
.s-paid, .s-in_progress, .s-confirmed { background: var(--ok-soft); color: var(--ok); }
.s-completed { background: var(--line); color: var(--muted); }
.s-cancelled, .s-rejected { background: var(--bad-soft); color: var(--bad); }
.s-submitted { background: var(--accent-soft); color: var(--accent); }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { color: var(--muted); font-weight: 600; font-size: 13px; }
.bank { border: 2px dashed var(--warn); background: var(--warn-soft); }
.bank dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 12px 0 0; }
.bank dt { color: var(--muted); }
.bank dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.amount { font-size: 28px; font-weight: 800; }
.mono { font-family: ui-monospace, Menlo, Consolas, monospace; }
.copy { margin-left: 6px; font-size: 12px; cursor: pointer; color: var(--accent); background: none; border: 0; padding: 0; }
.steps { display: flex; gap: 0; margin: 4px 0 20px; }
.steps div { flex: 1; text-align: center; font-size: 13px; color: var(--muted); padding-top: 10px; border-top: 3px solid var(--line); }
.steps div.on { color: var(--accent); border-color: var(--accent); font-weight: 600; }
.tabs { display: flex; gap: 6px; margin-bottom: 16px; flex-wrap: wrap; }
.tabs a { padding: 6px 14px; border-radius: 8px; color: var(--text); border: 1px solid var(--line); }
.tabs a.active { background: var(--gold-grad); color: #091428; border-color: var(--accent); font-weight: 700; }
.proof { max-width: 100%; max-height: 360px; border-radius: 8px; border: 1px solid var(--line); display: block; }
.pay-card { display: grid; gap: 16px; grid-template-columns: 260px 1fr; }
@media (max-width: 720px) { .pay-card { grid-template-columns: 1fr; } }
.stack { display: grid; gap: 16px; }
.empty { text-align: center; padding: 40px; color: var(--muted); }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: #0a1628; color: var(--text); border: 1px solid var(--accent);
  padding: 10px 18px; border-radius: 8px; font-size: 14px; z-index: 10; max-width: calc(100% - 32px); }
.hero { position: relative; overflow: hidden; padding: 32px; margin-bottom: 24px; color: var(--text);
  background: radial-gradient(420px 260px at 85% 50%, rgba(10,200,185,.28), transparent 70%), linear-gradient(135deg, #0b2347, #091428 60%);
  border: 1px solid #785a28; box-shadow: inset 0 0 0 1px #2a2414; display: flex; align-items: center; gap: 24px; min-height: 220px; }
.hero .hero-text { flex: 1 1 320px; position: relative; z-index: 1; }
.hero h1 { font-size: 30px; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero img { width: 220px; height: auto; flex: none; margin: -20px -8px -40px 0; filter: drop-shadow(0 0 24px rgba(10,200,185,.35)); }
@media (max-width: 640px) { .hero { flex-direction: column-reverse; text-align: center; padding: 24px 20px; min-height: 0; } .hero .hero-text { flex-basis: auto; } .hero img { width: 170px; margin: -10px 0 -10px; } }
.hero h1 { margin-bottom: 6px; }
.hero p { margin: 0; color: var(--muted); }
.dot { display: inline-block; min-width: 18px; padding: 0 6px; border-radius: 99px; background: var(--bad); color: #fff; font-size: 11px; font-weight: 700; text-align: center; line-height: 18px; }
.bank-body { display: grid; gap: 4px; }
.bank-qr { display: grid; gap: 4px; justify-items: start; font-size: 12px; color: var(--muted); margin-top: 12px; }
.bank-qr img { width: 140px; height: 140px; object-fit: contain; background: #fff; border-radius: 8px; border: 1px solid var(--line); }
.chat { display: grid; gap: 8px; max-height: 360px; overflow-y: auto; }
.msg { max-width: 85%; padding: 8px 12px; border-radius: 10px; background: var(--bg); border: 1px solid var(--line); word-break: break-word; }
.msg.me { justify-self: end; background: var(--accent-soft); border-color: #463714; }
.msg .who { font-size: 12px; color: var(--muted); }
.msg img { max-width: 200px; max-height: 200px; border-radius: 6px; margin-top: 6px; display: block; }
.admin-panel { margin-bottom: 16px; border: 2px solid var(--accent); }

/* 手机上订单表格变成一张张卡片 */
@media (max-width: 720px) {
  table.stacked tr:first-child { display: none; }
  table.stacked tr { display: block; padding: 10px 0; border-bottom: 1px solid var(--line); }
  table.stacked td { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; border: 0; }
  table.stacked td::before { content: attr(data-label); color: var(--muted); font-size: 13px; font-weight: 600; }
}

/* 段位标签：图标 + 文字 */
.tag.rank { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 4px; background: var(--accent-soft); color: var(--text); border-color: #463714; }
.tag.rank strong { color: var(--accent); }

/* 首页筛选 */
.filters { display: grid; gap: 10px; margin-bottom: 24px; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(10,22,40,.6); }
.seg { display: inline-flex; border: 1px solid #785a28; border-radius: 4px; overflow: hidden; justify-self: start; flex-wrap: wrap; }
.seg button { font: inherit; font-size: 14px; padding: 7px 14px; background: transparent; color: var(--text); border: 0; cursor: pointer; }
.seg button + button { border-left: 1px solid #463714; }
.seg button.on { background: var(--gold-grad); color: #091428; font-weight: 700; }
.filter-row { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; font-size: 13px; }
.filter-row > .muted { min-width: 150px; }
@media (max-width: 560px) { .filter-row { flex-direction: column; gap: 6px; } }
.chip-btn { font: inherit; font-size: 13px; padding: 4px 12px; border-radius: 99px; border: 1px solid #2a3a4f; background: transparent; color: var(--text); cursor: pointer; }
.chip-btn.on { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.tag.vibe { background: #1a1430; color: #d9c8ff; border-color: #3a2e66; border-radius: 99px; }
.tag.skill { background: var(--hex-soft); }
/* 陪玩选标签 */
.tag-group { border: 1px solid var(--line); border-radius: 4px; padding: 10px 12px; margin: 0; }
.tag-group legend { font-size: 14px; font-weight: 600; padding: 0 4px; }
details.fold > summary, details.more > summary { cursor: pointer; font-size: 14px; font-weight: 600; list-style: none; display: flex; align-items: center; gap: 6px; }
details.fold > summary::-webkit-details-marker, details.more > summary::-webkit-details-marker { display: none; }
details.fold > summary::before, details.more > summary::before { content: "▸"; color: var(--accent); transition: transform .15s; }
details.fold[open] > summary::before, details.more[open] > summary::before { transform: rotate(90deg); }
details.fold[open] > summary { margin-bottom: 8px; }
details.more { display: flex; flex-direction: column; gap: 8px; }
details.more > summary { display: block; font-size: 13px; font-weight: 400; color: var(--accent); }
details.more > summary::before { display: inline-block; margin-right: 6px; }
details.more[open] > summary { margin-bottom: 8px; }
details.more > * + * { margin-top: 8px; }
.more-q { color: var(--hex); }
.chip { display: inline-flex; font-weight: 400; cursor: pointer; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { padding: 5px 12px; border-radius: 99px; border: 1px solid #2a3a4f; font-size: 13px; }
.chip input:checked + span { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.chip input:focus-visible + span { outline: 2px solid var(--hex); outline-offset: 2px; }
.tag.style { background: transparent; border-style: dashed; }
.role-row { display: flex; gap: 10px; align-items: flex-start; padding: 6px 0; border-top: 1px solid #16243a; }
.role-row:first-of-type { border-top: 0; }
.role-row > .chip.role span, .role-label { min-width: 92px; display: inline-block; text-align: center; font-weight: 600; }
.role-label { padding: 5px 0; font-size: 13px; }
.chip.sub span { font-size: 12px; padding: 4px 10px; }
@media (max-width: 560px) { .role-row { flex-direction: column; gap: 6px; } }
.mains { display: flex; flex-direction: column; gap: 8px; }
.mains-row { display: flex; flex-direction: column; gap: 6px; }
.mains-label { font-size: 12px; letter-spacing: 1px; text-transform: uppercase; }
.mains-slots { display: flex; gap: 8px; flex-wrap: wrap; }
.main-slot { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 3px; border: 1px solid #785a28; border-radius: 99px; font-size: 13px; background: #091428; }
.main-slot img, .main-initial { border-radius: 50%; border: 2px solid var(--accent); object-fit: cover; }
.main-initial { display: inline-flex; align-items: center; justify-content: center; font: 700 15px Cinzel, serif; color: var(--accent); background: #0a1628; box-sizing: border-box; }
.main-slot.mystery { width: 44px; height: 44px; padding: 0; justify-content: center; font: 800 20px Cinzel, serif; color: var(--hex); border: 2px dashed var(--hex); background: var(--hex-soft); }
.mains-hint { font-size: 12px; }
.mains-inputs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
@media (max-width: 560px) { .mains-inputs { grid-template-columns: 1fr; } }
/* Riot 要求的免责声明 */
.legal { max-width: 1040px; margin: 0 auto; padding: 20px 16px 32px; font-size: 12px; line-height: 1.6; color: #6e6a60; border-top: 1px solid var(--line); }
/* 平台认证徽章：金色，和段位的金色区分开用青色描边 */
.cert { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; letter-spacing: .3px; padding: 3px 10px 3px 5px; border-radius: 99px;
  background: rgba(1,10,19,.8); color: var(--accent); border: 1px solid #c8aa6e; white-space: nowrap; }
.cert .cert-icon { color: var(--accent); flex: none; }
.comp-photo .cert.on-photo { position: absolute; top: 10px; right: 10px; z-index: 1; backdrop-filter: blur(4px); box-shadow: 0 0 10px rgba(200,170,110,.35); }
.cert-mark { display: inline-flex; vertical-align: -2px; margin-left: 6px; color: var(--accent); }
.cert-note { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; font-size: 14px; }
.chip-btn.cert-filter { display: inline-flex; align-items: center; gap: 5px; }

/* 三个登录页 */
.login-tabs { display: flex; gap: 0; margin: -4px 0 14px; border-bottom: 1px solid #463714; }
.login-tabs a { flex: 1; text-align: center; padding: 8px 0; color: var(--muted, #a09b8c); text-decoration: none; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.login-tabs a.on { color: var(--text); border-bottom-color: #c8aa6e; font-weight: 700; }
.login-hint { padding: 10px 12px; border: 1px solid #785a28; border-radius: 4px; background: rgba(200,170,110,.08); font-size: 14px; }
.login-admin { border-top: 3px solid #c8aa6e; }
