:root {
  --bg: #0A0C0B;
  --ink: #F4F1EA;
  --ink-2: rgba(244,241,234,.68);
  --ink-3: rgba(244,241,234,.45);
  --line: rgba(244,241,234,.10);
  --line-2: rgba(244,241,234,.16);
  --gold: #D9B183;
  --gold-deep: #C89A66;
  --sans: "PingFang SC","HarmonyOS Sans SC","Hiragino Sans GB","Microsoft YaHei","Noto Sans CJK SC",-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  --serif: "Instrument Serif","Noto Serif CJK SC","Noto Serif SC","Songti SC","Source Han Serif SC",SimSun,serif;
  --gold-light: #E8C79B;
  --gold-bottom: #C08A5A;
  --on-gold: #1B150E;
  --danger: var(--gold);
  --surface: rgba(16,18,16,.55);
  --surface-soft: rgba(244,241,234,.03);
  --surface-chip: rgba(244,241,234,.02);
  --input: rgba(8,10,9,.6);
  --input-focus: rgba(10,12,10,.8);
  --gold-line: rgba(217,177,131,.16);
  --gold-hover: rgba(217,177,131,.45);
  --gold-focus: rgba(217,177,131,.55);
  --gold-wash: rgba(217,177,131,.08);
  --gold-shadow: rgba(217,177,131,.55);
  --highlight: rgba(255,255,255,.6);
  --backdrop: rgba(10,12,11,.8);
  --page-background: radial-gradient(120% 90% at 78% 30%, rgba(78,66,50,.5) 0%, rgba(10,12,11,0) 62%),linear-gradient(160deg,#12140F 0%,#0A0C0B 70%);
}
* { box-sizing: border-box; }
html { color-scheme: dark; scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--bg); color: var(--ink); font: 13px/1.65 var(--sans); isolation: isolate; }
button, input, select, textarea { font: inherit; }
button, a { touch-action: manipulation; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
button:disabled { opacity: .45; cursor: not-allowed; }
button, input, select, textarea, a { outline-offset: 4px; }
:focus-visible { outline: 2px solid var(--gold); }
[hidden] { display: none !important; }
h1, h2, h3, p { margin: 0; }
h2 { font-size: 17px; font-weight: 500; }
h3 { font-size: 14px; font-weight: 500; }
fieldset { padding: 0; margin: 0; border: 0; min-width: 0; }
legend { padding: 0; margin-bottom: 18px; font-size: 17px; font-weight: 500; }
.bg, .grain { position: fixed; inset: 0; pointer-events: none; }
.bg { z-index: -3; background: var(--page-background); }
.grain { z-index: -1; opacity: .16; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='grain'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23grain)' opacity='.45'/%3E%3C/svg%3E"); }
.skip-link { position: fixed; top: 8px; left: 16px; z-index: 10; padding: 10px 18px; background: var(--gold); color: var(--on-gold); border-radius: 20px; transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
.site-header { height: 76px; border-bottom: 1px solid var(--line); }
.header-inner { max-width: 1360px; height: 100%; margin: auto; padding: 0 32px; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 13px; flex-shrink: 0; }
.brand-word { font-size: 15px; font-weight: 600; letter-spacing: .16em; white-space: nowrap; }
.brand-mark { width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid var(--gold); border-radius: 7px; transform: rotate(30deg); color: var(--gold); }
.brand-mark span { transform: rotate(-30deg); font-weight: 600; }
.site-menu { display: flex; justify-content: center; gap: 22px; flex: 1; white-space: nowrap; }
.site-menu a { font-size: 13px; color: var(--ink-2); }
.site-menu a:hover { color: var(--ink); }
.header-account { display: flex; align-items: center; gap: 16px; margin-left: auto; white-space: nowrap; }
.header-account .button { height: 40px; padding: 0 20px; }
.header-avatar { width: 32px; height: 32px; font-size: 12px; }
.account-layout { display: grid; grid-template-columns: 220px minmax(0,1fr); gap: 48px; max-width: 1280px; padding: 48px 32px 72px; margin: auto; min-height: calc(100vh - 153px); align-items: start; }
.account-sidebar { position: sticky; top: 28px; width: 220px; padding: 11px 0 24px; }
.sidebar-title { padding: 0 20px 25px; font-size: 17px; font-weight: 500; }
.account-nav { display: grid; gap: 6px; }
.account-nav a { display: flex; align-items: center; gap: 14px; min-height: 48px; padding: 12px 18px; border-left: 2px solid transparent; color: var(--ink-2); border-radius: 0 12px 12px 0; }
.account-nav svg { width: 18px; height: 18px; flex-shrink: 0; }
.account-nav a:hover { background: var(--surface-soft); color: var(--ink); }
.account-nav a[aria-current="page"] { border-left-color: var(--gold); background: var(--gold-wash); color: var(--gold); }
.account-content { min-width: 0; }
.page-heading { padding-bottom: 30px; }
.breadcrumb { margin-bottom: 10px; color: var(--ink-3); font-size: 11.5px; letter-spacing: .1em; }
.eyebrow { display: flex; align-items: center; gap: 12px; font-size: 11.5px; letter-spacing: .22em; color: var(--ink-3); margin-bottom: 10px; }
.eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--gold); }
h1 { font-size: clamp(32px,3.4vw,46px); font-weight: 400; line-height: 1.3; letter-spacing: .01em; }
h1 em { font-family: var(--serif); font-style: italic; color: var(--gold-light); }
.stack { display: grid; gap: 20px; }
.card { border: 1px solid var(--line); background: var(--surface); backdrop-filter: blur(12px); border-radius: 14px; padding: 28px; }
.card-header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-bottom: 24px; }
.card-header h2 { margin-right: auto; }
.form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; }
.field { display: grid; gap: 9px; min-width: 0; }
.field > label, .field-label { font-size: 12px; color: var(--ink-2); }
.field-wide { grid-column: 1 / -1; }
.control { width: 100%; height: 46px; border-radius: 11px; border: 1px solid var(--line-2); background: var(--input); color: var(--ink); padding: 0 16px; outline: none; transition: border-color .15s, box-shadow .15s; }
.control::placeholder { color: var(--ink-3); }
.control:focus { border-color: var(--gold-focus); background: var(--input-focus); box-shadow: 0 0 0 3px var(--gold-wash); }
.control[readonly] { color: var(--ink-2); }
select.control { appearance: none; padding-right: 38px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='m1 1 5 5 5-5' stroke='%23D9B183'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; }
select.control option { background: var(--bg); color: var(--ink); }
textarea.control { height: auto; min-height: 154px; padding: 14px 16px; resize: vertical; line-height: 1.7; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 22px; border: 1px solid var(--line-2); border-radius: 20px; background: var(--surface-soft); color: var(--ink-2); font-weight: 400; white-space: nowrap; }
.button:hover { border-color: var(--gold-hover); color: var(--ink); }
.button-primary { height: 48px; border-radius: 24px; border: none; background: linear-gradient(180deg,var(--gold-light) 0%,var(--gold) 42%,var(--gold-bottom) 100%); color: var(--on-gold); font-weight: 600; letter-spacing: .08em; box-shadow: inset 0 1px 0 var(--highlight), 0 8px 26px -8px var(--gold-shadow); }
.button-primary:hover { color: var(--on-gold); filter: brightness(1.05); }
.button-danger { color: var(--danger); border-color: var(--danger); background: transparent; }
.button-danger:hover { color: var(--danger); border-color: var(--danger); }
.actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 24px; }
.actions .text-link { margin-left: auto; }
.text-link { color: var(--gold); font-size: 12px; }
.text-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.muted { color: var(--ink-3); font-size: 12px; }
.status { margin-top: 14px; color: var(--gold); font-size: 12px; overflow-wrap: anywhere; }
.status:empty { display: none; }
.notice { margin-top: 18px; color: var(--ink-3); font-size: 12px; }
.avatar { display: inline-grid; place-items: center; flex-shrink: 0; overflow: hidden; border-radius: 50%; border: 1px solid var(--gold-line); background: var(--gold-wash); color: var(--gold); }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-avatar { width: 72px; height: 72px; font-size: 25px; }
.avatar-row { display: flex; align-items: center; gap: 20px; margin-bottom: 28px; }
.avatar-row .field-label { display: block; margin-bottom: 9px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.upload-trigger { position: relative; display: inline-flex; }
.upload-trigger:focus-within .button { outline: 2px solid var(--gold); outline-offset: 4px; }
.link-list { padding: 0 28px; }
.link-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 66px; border-bottom: 1px solid var(--line); }
.link-row:last-child { border-bottom: 0; }
.link-row:hover { color: var(--gold); }
.link-row span:last-child { color: var(--gold); }
.danger-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.current-plan { display: flex; align-items: center; justify-content: space-between; gap: 24px; border-color: var(--gold-line); }
.current-plan h2 { color: var(--ink-2); font-size: 12px; margin-bottom: 9px; }
.current-plan-name { font-size: 28px; font-weight: 400; }
.current-plan .number { font: italic 52px/1 var(--serif); color: var(--gold); opacity: .55; }
.choice-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; }
.plan-choice { position: relative; cursor: pointer; min-width: 0; }
.plan-choice input, .chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.plan-tile { min-height: 132px; display: flex; flex-direction: column; gap: 20px; padding: 18px; border: 1px solid var(--line); background: var(--surface); border-radius: 14px; transition: border-color .15s, transform .15s; }
.plan-tile:hover { border-color: var(--gold-hover); transform: translateY(-3px); }
.plan-tile .number { font: italic 23px/1 var(--serif); color: var(--gold); }
.plan-name { font-size: 17px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.plan-name::after { content: ""; width: 13px; height: 13px; border: 1px solid var(--line-2); border-radius: 50%; }
.plan-choice input:checked + .plan-tile { border-color: var(--gold); background: var(--gold-wash); }
.plan-choice input:checked + .plan-tile .plan-name { color: var(--gold); }
.plan-choice input:checked + .plan-tile .plan-name::after { border-color: var(--gold); background: var(--gold); box-shadow: inset 0 0 0 3px var(--bg); }
.plan-choice input:focus-visible + .plan-tile, .chip input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 4px; }
.chip-row { display: flex; flex-wrap: wrap; gap: 12px; }
.chip { position: relative; cursor: pointer; }
.chip span { display: block; padding: 7px 14px; border-radius: 9px; border: 1px solid var(--line-2); background: var(--surface-chip); color: var(--ink-2); }
.chip input:checked + span { background: var(--gold); color: var(--on-gold); font-weight: 600; border-color: var(--gold); }
.recharge-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.settings-row { min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--line); cursor: pointer; }
.settings-row:last-child { border-bottom: none; }
.switch { appearance: none; position: relative; width: 42px; height: 24px; padding: 0; margin: 0; flex-shrink: 0; border: 1px solid var(--line-2); border-radius: 20px; background: transparent; cursor: pointer; transition: background .15s; }
.switch::after { content: ""; position: absolute; width: 16px; height: 16px; top: 3px; left: 3px; border-radius: 50%; background: var(--ink-3); transition: transform .15s; }
.switch:checked { background: var(--gold); border-color: var(--gold); }
.switch:checked::after { transform: translateX(18px); background: var(--on-gold); }
.filter-grid { display: grid; grid-template-columns: minmax(0,2fr) minmax(120px,1fr) auto; gap: 20px; align-items: end; }
.date-range { display: flex; align-items: center; gap: 10px; }
.date-range input { min-width: 0; }
.filter-grid .actions { margin: 0; align-self: end; }
.filter-grid .button { height: 46px; }
.table-card { padding: 0; overflow: hidden; }
.table-card .card-header { margin: 0; padding: 24px 28px; }
.table-scroll { width: 100%; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; white-space: nowrap; }
th, td { padding: 17px 24px; border-bottom: 1px solid var(--line); }
th { font-size: 11.5px; color: var(--ink-3); font-weight: 400; background: var(--surface-chip); }
td { font-size: 13px; }
tbody tr:last-child td { border-bottom: none; }
.numeric { text-align: right; font-variant-numeric: tabular-nums; }
.empty-cell { text-align: center; white-space: normal; padding: 64px 24px; color: var(--ink-3); }
.empty-mark { display: block; margin: 0 auto 16px; width: 32px; height: 32px; color: var(--gold); opacity: .65; }
.empty-state { padding: 36px 20px; text-align: center; color: var(--ink-3); }
.team-info { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.team-info .muted { margin-top: 10px; }
.preview-list { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 14px; }
.image-preview { position: relative; margin: 0; }
.image-preview img { display: block; width: 88px; height: 88px; border-radius: 12px; border: 1px solid var(--line-2); object-fit: cover; }
.image-preview button { position: absolute; right: -6px; top: -6px; width: 24px; height: 24px; border-radius: 12px; background: var(--bg); color: var(--ink); border: 1px solid var(--line-2); }
.site-footer { max-width: 1216px; margin: auto; padding: 24px 0; border-top: 1px solid var(--line); color: var(--ink-3); font-size: 11.5px; }
.account-dialog { width: min(460px,calc(100% - 32px)); padding: 28px; border: 1px solid var(--gold-line); border-radius: 14px; background: var(--bg); color: var(--ink); font-family: var(--sans); }
.account-dialog::backdrop { background: var(--backdrop); }
.account-dialog h2 { margin-bottom: 20px; }
.account-dialog p { color: var(--ink-2); }
.account-dialog .form-grid { grid-template-columns: 1fr; }
noscript { display: block; padding: 24px; color: var(--gold); }
@media (min-width: 1500px) { .account-layout { padding-top: 64px; } }
@media (max-width: 1180px) {
  .header-inner { gap: 20px; padding-inline: 24px; }
  .site-menu { gap: 14px; }
  .brand-word { letter-spacing: .06em; }
  .account-layout { gap: 28px; padding-inline: 24px; }
  .filter-grid { grid-template-columns: minmax(0,2fr) minmax(120px,1fr); }
  .filter-grid .actions { grid-column: 1 / -1; }
  .site-footer { margin-inline: 24px; }
}
@media (max-width: 980px) {
  .site-menu { overflow-x: auto; justify-content: flex-start; padding-block: 12px; }
  .header-inner { gap: 24px; }
  .header-account { gap: 10px; }
  .choice-grid { gap: 8px; }
  .plan-tile { padding: 14px; }
  .card { padding: 24px; }
  .table-card { padding: 0; }
  .link-list { padding: 0 24px; }
}
@media (max-width: 760px) {
  .header-inner { padding-inline: 20px; }
  .site-menu { display: none; }
  .account-layout { grid-template-columns: minmax(0,1fr); gap: 30px; padding: 24px 20px 48px; }
  .account-sidebar { position: static; width: 100%; padding: 0; }
  .sidebar-title { font-size: 13px; padding: 0 0 16px; color: var(--ink-2); }
  .account-nav { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 6px; }
  .account-nav a { padding: 10px; gap: 8px; min-height: 42px; font-size: 12px; }
  .account-nav svg { width: 15px; height: 15px; }
  .page-heading { padding-bottom: 24px; }
  .form-grid { grid-template-columns: 1fr; }
  .card { padding: 22px; }
  .table-card { padding: 0; }
  .link-list { padding: 0 22px; }
  .current-plan-name { font-size: 24px; }
  .current-plan .number { font-size: 42px; }
  .site-footer { margin-inline: 20px; }
}
@media (max-width: 440px) {
  .header-inner { padding-inline: 16px; gap: 12px; }
  .brand-word { font-size: 13px; }
  .brand { gap: 10px; }
  .header-account .button { padding-inline: 16px; }
  .account-layout { padding-inline: 16px; }
  .account-nav a { padding: 9px 7px; gap: 6px; }
  .choice-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
  .plan-tile { min-height: 110px; }
  .filter-grid { grid-template-columns: 1fr; }
  .date-range { gap: 8px; }
  .date-range input { padding-inline: 8px; font-size: 12px; }
  .team-info { align-items: flex-start; flex-direction: column; }
  .card { padding: 20px; }
  .table-card { padding: 0; }
  .link-list { padding: 0 20px; }
  .button { padding-inline: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
  .plan-tile:hover { transform: none; }
}
