:root {
  --ink: #15171b;
  --muted: #737780;
  --border: #e6e8ed;
  --page: #f7f8fa;
  --surface: #fff;
  --line: #17191d;
  --soft: #f1f2f4;
  --blue: #2563eb;
  --green: #13795b;
  --red: #c6383a;
  --orange: #a76108;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--page); color: var(--ink); font: 14px/1.5 var(--font); }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.store-nav { background: rgba(255,255,255,.94); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 10; }
.store-nav__inner { height: 68px; max-width: 1360px; margin: auto; padding: 0 28px; display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand__logo { width: 72px; height: 23px; object-fit: contain; }
.brand__text { color: #8a8e97; font-size: 10px; letter-spacing: 1.5px; white-space: nowrap; }
.nav-search { width: 200px; position: relative; flex-shrink: 1; }
.nav-search::after { content: "⌕"; color: #8a8e97; position: absolute; right: 12px; top: 7px; font-size: 20px; pointer-events: none; }
.nav-search input { width: 100%; height: 38px; border: 1px solid var(--border); border-radius: 9px; background: #f6f7f9; padding: 0 34px 0 12px; outline: none; color: var(--ink); }
.nav-search input:focus { border-color: #aeb3bd; background: #fff; }
.store-nav__links { display: flex; align-items: center; gap: 4px; min-width: 0; }
.store-nav__links a { padding: 8px 10px; white-space: nowrap; color: #35383e; font-weight: 500; }
.store-nav__links a:hover { color: var(--ink); }
.nav-user { margin-left: auto; color: var(--ink); font-weight: 600; white-space: nowrap; }

.account-page { padding: 38px 28px 72px; }
.account-shell { max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 28px; align-items: start; }
.account-sidebar { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 20px 12px 12px; }
.account-profile { padding: 0 10px 20px; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 12px; }
.account-profile__avatar { width: 40px; height: 40px; border-radius: 50%; background: #1d2026; color: #fff; display: grid; place-items: center; font-weight: 700; }
.account-profile strong, .account-profile span { display: block; }
.account-profile strong { font-size: 14px; }
.account-profile span { margin-top: 2px; color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 145px; }
.account-menu { display: grid; gap: 2px; padding: 14px 0; }
.account-menu a { position: relative; padding: 11px 12px 11px 16px; color: #4c5058; border-radius: 7px; }
.account-menu a:hover { background: #f5f6f7; color: var(--ink); }
.account-menu a.is-active { background: var(--soft); color: var(--ink); font-weight: 700; }
.account-menu a.is-active::before { content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 3px; background: var(--line); border-radius: 3px; }
.logout-button { width: 100%; border: 0; border-top: 1px solid var(--border); background: transparent; color: #646972; text-align: left; padding: 14px 12px 4px 16px; }
.logout-button:hover { color: var(--ink); }

.account-panel { min-width: 0; }
.orders-heading { display: flex; justify-content: space-between; align-items: end; margin: 3px 0 20px; }
.eyebrow { margin: 0 0 5px; color: #8a8e97; font-size: 11px; font-weight: 700; letter-spacing: 1.3px; }
h1 { margin: 0; font-size: 26px; letter-spacing: 0; line-height: 1.2; }
.browse-link { color: #3d4148; font-weight: 600; font-size: 13px; padding-bottom: 3px; }
.browse-link:hover { color: #000; }

.order-filters { display: flex; gap: 24px; padding: 0 4px; border-bottom: 1px solid var(--border); overflow-x: auto; }
.demo-order-actions { display: flex; justify-content: flex-end; margin: 0 0 10px; }
.orders-toolbar { display: flex; justify-content: flex-end; margin: 0 0 12px; }
.order-search { position: relative; width: min(100%, 300px); }
.order-search::after { content: "⌕"; position: absolute; right: 12px; top: 7px; color: #767b84; font-size: 18px; pointer-events: none; }
.order-search input { width: 100%; height: 36px; padding: 0 34px 0 11px; border: 1px solid var(--border); border-radius: 7px; background: #fff; color: var(--ink); outline: 0; font-size: 13px; }
.order-search input:focus { border-color: #a8adb5; box-shadow: 0 0 0 3px rgba(24, 27, 31, .05); }
.order-filters button { position: relative; flex: 0 0 auto; padding: 12px 0; border: 0; background: transparent; color: var(--muted); font-size: 14px; }
.order-filters button:hover { color: var(--ink); }
.order-filters button.is-active { color: var(--ink); font-weight: 700; }
.order-filters button.is-active::after { content: ""; position: absolute; height: 2px; background: var(--line); left: 0; right: 0; bottom: -1px; }

.orders-list { display: grid; gap: 14px; margin-top: 20px; }
.account-overview { display: grid; gap: 18px; }
.overview-grid { display: grid; grid-template-columns: minmax(0, .94fr) minmax(0, 1.06fr); gap: 18px; }
.overview-card, .recent-purchases { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; }
.overview-card { min-height: 188px; padding: 22px; }
.overview-card__head { min-height: 28px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.overview-card__head h2 { margin: 0; font-size: 15px; line-height: 1.35; }
.inline-link { border: 0; background: transparent; padding: 4px 0; color: #4e535b; font-size: 12px; font-weight: 700; }
.inline-link:hover { color: #000; }
.profile-card__body { display: flex; align-items: center; gap: 13px; margin-top: 19px; }
.profile-card__avatar { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: #1d2026; color: #fff; font-size: 16px; font-weight: 700; }
.profile-card__body strong, .profile-card__body span { display: block; }
.profile-card__body strong { font-size: 16px; }
.profile-card__body span { margin-top: 2px; color: var(--muted); font-size: 12px; }
.profile-data { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 20px 0 0; padding-top: 15px; border-top: 1px solid var(--border); }
.profile-data div { min-width: 0; }
.profile-data dt { color: var(--muted); font-size: 12px; }
.profile-data dd { margin: 3px 0 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); font-size: 13px; font-weight: 600; }
.profile-data__email { grid-column: 1 / -1; }
.email-status { display: inline-flex; align-items: center; width: max-content; padding: 3px 8px; border-radius: 999px; font-size: 11px; font-weight: 700; vertical-align: 1px; }
.email-status--verified { color: var(--green); background: #e8f7f0; }
.email-status--unverified { color: var(--orange); background: #fff5e5; }
.order-summary-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 28px; }
.summary-item { min-width: 0; padding: 0 10px; border: 0; border-left: 1px solid var(--border); background: transparent; text-align: center; color: var(--ink); }
.summary-item:first-child { border-left: 0; }
.summary-item strong, .summary-item span { display: block; }
.summary-item strong { font-size: 22px; line-height: 1.1; }
.summary-item span { margin-top: 6px; color: var(--muted); font-size: 12px; white-space: nowrap; }
.summary-item:hover strong, .summary-item:hover span { color: #000; }
.recent-purchases { min-height: 216px; padding: 22px; }
.section-kicker { margin: 0 0 3px; color: #8a8e97; font-size: 10px; font-weight: 700; letter-spacing: 1.2px; }
.recent-purchases__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 20px; }
.recent-order { min-width: 0; padding: 13px; border: 1px solid var(--border); border-radius: 9px; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 11px; align-items: center; cursor: pointer; }
.recent-order:hover { border-color: #b7bbc2; }
.recent-order__game { width: 44px; height: 44px; border-radius: 9px; overflow: hidden; display: grid; place-items: center; background: #20232a; color: #fff; font-weight: 800; }
.recent-order__game img { width: 100%; height: 100%; object-fit: cover; }
.recent-order strong, .recent-order span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.recent-order strong { font-size: 13px; }
.recent-order > div:nth-child(2) > span { margin-top: 3px; color: var(--muted); font-size: 12px; }
.recent-order__status { grid-column: 2; width: max-content; margin: -2px 0 0; }
.recent-empty { min-height: 122px; display: flex; align-items: center; gap: 13px; margin-top: 15px; padding: 18px 0; }
.recent-empty__icon { width: 42px; height: 42px; flex: 0 0 auto; display: grid; place-items: center; border: 1px solid var(--border); border-radius: 50%; color: var(--muted); font-size: 21px; }
.recent-empty strong, .recent-empty span { display: block; }
.recent-empty strong { font-size: 14px; }
.recent-empty span { margin-top: 3px; color: var(--muted); font-size: 12px; }
.recent-empty .shop-button { margin-left: auto; }
.favorites-view { display: grid; gap: 18px; }
.favorites-view__head { display: flex; align-items: end; justify-content: space-between; gap: 18px; padding: 4px 2px; }
.favorites-view__head h2 { margin: 0; font-size: 20px; }
.favorites-view__head p:not(.section-kicker) { max-width: 560px; margin: 6px 0 0; color: var(--muted); font-size: 13px; }
.favorites-view__head > span { flex: 0 0 auto; border: 1px solid var(--border); border-radius: 999px; padding: 5px 9px; color: #565b64; font-size: 12px; font-weight: 700; }
.favorites-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.favorite-game-card { position: relative; min-width: 0; overflow: hidden; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease; }
.favorite-game-card:hover { border-color: #b5bac2; box-shadow: 0 12px 28px rgba(22, 25, 31, .08); transform: translateY(-1px); }
.favorite-game-card__link { min-height: 118px; display: flex; align-items: center; gap: 14px; padding: 16px 98px 16px 16px; }
.favorite-game-card__media { width: 72px; height: 72px; flex: 0 0 auto; overflow: hidden; display: grid; place-items: center; border-radius: 10px; background: #20232a; color: #fff; font-size: 24px; font-weight: 800; }
.favorite-game-card__media img { width: 100%; height: 100%; object-fit: cover; }
.favorite-game-card__body { min-width: 0; display: grid; gap: 4px; }
.favorite-game-card__body strong, .favorite-game-card__body small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.favorite-game-card__body strong { font-size: 14px; }
.favorite-game-card__body small { color: var(--muted); font-size: 12px; }
.favorite-game-card__body b { margin-top: 5px; color: #343940; font-size: 12px; }
.favorite-game-card__remove { position: absolute; top: 12px; right: 12px; border: 0; background: transparent; color: #737780; font-size: 11px; font-weight: 700; }
.favorite-game-card__remove:hover { color: var(--ink); }
.favorites-empty { min-height: 190px; display: flex; align-items: center; gap: 14px; padding: 28px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.favorites-empty__icon { width: 46px; height: 46px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; background: #f2f3f5; color: #6e737b; font-size: 24px; }
.favorites-empty strong, .favorites-empty span { display: block; }
.favorites-empty span { margin-top: 4px; color: var(--muted); font-size: 12px; }
.favorites-empty .shop-button { margin-left: auto; }
.cdk-verification { min-height: 420px; display: grid; place-items: start center; padding-top: 18px; }
.verification-card { width: min(100%, 550px); padding: 30px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; }
.verification-card h2 { margin: 3px 0 8px; font-size: 20px; }
.verification-card > p:not(.section-kicker):not(.verification-error) { margin: 0; color: var(--muted); font-size: 13px; }
.verification-field { display: grid; gap: 8px; margin-top: 23px; color: #343840; font-weight: 700; font-size: 13px; }
.verification-field input { width: 100%; height: 44px; padding: 0 12px; border: 1px solid var(--border); border-radius: 8px; outline: 0; color: var(--ink); }
.verification-field input:focus { border-color: #9ba1ab; box-shadow: 0 0 0 3px rgba(25, 28, 33, .06); }
.verification-error { min-height: 19px; margin: 7px 0 0; color: var(--red); font-size: 12px; }
.verification-button { width: 100%; min-height: 42px; margin-top: 5px; }
.codes-panel { display: grid; gap: 18px; }
.codes-panel__intro { display: flex; align-items: end; justify-content: space-between; gap: 16px; padding: 2px 16px 4px; }
.codes-panel__tools { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 9px; }
.codes-panel__intro h2 { margin: 0; font-size: 18px; }
.codes-panel__intro p:not(.section-kicker) { margin: 5px 0 0; color: var(--muted); font-size: 13px; }
.code-count { flex: 0 0 auto; padding: 5px 9px; border: 1px solid var(--border); border-radius: 999px; color: #565b64; font-size: 12px; font-weight: 700; }
.codes-list { display: grid; gap: 12px; }
/* 卡密订单卡片：单一自适应布局（商品区左 / 订单元信息右上 / 操作右下），全宽度无断点 */
.cdk-order-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "product meta"
    "product time"
    "qty actions";
  align-items: center;
  column-gap: 16px;
  row-gap: 9px;
  padding: 16px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
}
.cdk-order-row__number { grid-area: meta; justify-self: end; text-align: right; color: #22262d; font-size: 13px; font-weight: 700; overflow-wrap: anywhere; }
.cdk-order-row time { grid-area: time; justify-self: end; color: #6d727a; font-size: 12px; }
.code-product { grid-area: product; min-width: 0; display: flex; align-items: center; gap: 12px; }
.code-product__icon { width: 48px; height: 48px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 10px; background: #1f2937; color: #fff; font-size: 17px; font-weight: 800; }
.code-product strong, .code-product span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.code-product strong { font-size: 14px; }
.code-product span { margin-top: 3px; color: var(--muted); font-size: 12px; }
.code-quantity { grid-area: qty; justify-self: start; width: max-content; padding: 5px 9px; border-radius: 7px; background: #f0f1f3; color: #3d424b; font-size: 12px; }
.show-codes-button { grid-area: actions; justify-self: end; height: 36px; min-width: 118px; border: 1px solid #20242a; border-radius: 7px; background: #20242a; color: #fff; font-size: 12px; font-weight: 700; }
.show-codes-button:hover { background: #393e46; }

/* 订单支付方式标识：线性图标 + 名称，渠道着色（余额深灰 / USDT 绿 / 支付宝蓝） */
.pay-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 5px;
  width: max-content;
  padding: 3px 9px;
  border-radius: 999px;
  background: #f0f1f3;
  color: #3d424b;
  font-size: 12px;
  font-weight: 700;
}
.pay-chip svg { width: 13px; height: 13px; flex-shrink: 0; }
.pay-chip--usdt svg, .pay-chip--alipay svg { stroke: none; }
.pay-chip--usdt { color: #10745a; background: #e7f6f0; }
.pay-chip--alipay { color: #1677ff; background: #eaf2ff; }
.detail-field__pay { display: block; }
.detail-field__pay .pay-chip { margin-top: 2px; }
.code-modal[hidden] { display: none; }
.code-modal { position: fixed; inset: 0; z-index: 30; display: grid; place-items: center; padding: 24px; }
.code-modal__backdrop { position: absolute; inset: 0; background: rgba(17, 19, 23, .45); }
.code-modal__dialog { position: relative; width: min(100%, 720px); max-height: min(700px, calc(100vh - 48px)); display: flex; flex-direction: column; overflow: hidden; background: #fff; border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 20px 60px rgba(20, 25, 35, .22); }
.code-modal__head { min-height: 62px; display: flex; align-items: center; justify-content: space-between; padding: 0 22px; border-bottom: 1px solid var(--border); }
.code-modal__head h2 { margin: 0; font-size: 17px; }
.code-modal__close { width: 34px; height: 34px; border: 0; background: transparent; color: #4d535d; font-size: 26px; line-height: 1; }
.code-modal__close:hover { color: #000; }
.code-modal__product { display: flex; align-items: center; gap: 12px; padding: 20px 22px 15px; }
.code-modal__product strong, .code-modal__product span { display: block; }
.code-modal__product strong { font-size: 14px; }
.code-modal__product span { margin-top: 3px; color: var(--muted); font-size: 12px; }
.code-modal__codes { overflow: auto; padding: 0 22px 20px; }
.code-table { border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.code-table__head, .code-table__row { display: grid; grid-template-columns: 88px minmax(0, 1fr) 76px; align-items: center; gap: 12px; padding: 13px 16px; }
.code-table__head { background: #fafafa; color: #737780; font-size: 12px; }
.code-table__row { border-top: 1px solid var(--border); }
.code-table__row > span { color: #555b64; font-size: 13px; }
.code-table__row code { min-width: 0; color: var(--ink); font: 650 13px/1.45 ui-monospace, SFMono-Regular, Consolas, monospace; overflow-wrap: anywhere; }
.copy-icon-button { justify-self: end; border: 0; background: transparent; color: #343941; font-size: 12px; font-weight: 700; }
.copy-icon-button:hover { color: #000; text-decoration: underline; }
.code-modal__foot { min-height: 68px; display: flex; justify-content: flex-end; align-items: center; padding: 0 22px; border-top: 1px solid var(--border); }
body.modal-open { overflow: hidden; }
.cdk-order-card { overflow: hidden; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; }
.cdk-order-card__head { min-height: 57px; display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 12px 18px; border-bottom: 1px solid var(--border); }
.cdk-order-card__head strong, .cdk-order-card__head span:not(.status) { display: block; }
.cdk-order-card__head strong { font-size: 14px; }
.cdk-order-card__head span:not(.status) { margin-top: 3px; color: var(--muted); font-size: 12px; }
.cdk-code-row { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 16px 18px; }
.cdk-code-row + .cdk-code-row { border-top: 1px solid var(--border); }
.cdk-code-row > div:first-child { min-width: 0; }
.cdk-code-row > div:first-child span { display: block; margin-bottom: 5px; color: var(--muted); font-size: 12px; }
.cdk-code-row code { color: var(--ink); font: 650 14px/1.4 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .4px; overflow-wrap: anywhere; }
.cdk-code-row__actions { display: flex; flex: 0 0 auto; gap: 8px; }
.order-card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.order-card__head { min-height: 52px; padding: 0 20px; display: flex; align-items: center; gap: 14px; border-bottom: 1px solid var(--border); }
.order-number { color: #52565e; font-size: 12px; }
.order-number strong { color: var(--ink); font-weight: 700; margin-left: 5px; }
.order-time { color: #8a8e97; font-size: 12px; }
.status { margin-left: auto; padding: 4px 8px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.status--pending { color: var(--orange); background: #fff5e5; }
.status--processing { color: #215db8; background: #eaf1ff; }
.status--success { color: var(--green); background: #e8f7f0; }
.status--failed { color: var(--red); background: #fdeeee; }
.status--refunded { color: #62666e; background: #eff0f2; }
.order-card__body { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 18px 20px; }
.order-game-icon { width: 56px; height: 56px; border-radius: 11px; background: #20232a; overflow: hidden; display: grid; place-items: center; color: #fff; font-weight: 800; }
.order-game-icon img { width: 100%; height: 100%; object-fit: cover; }
.order-product { min-width: 0; }
.order-product strong { display: block; font-size: 15px; }
.order-product span { display: block; margin-top: 3px; color: #575b63; font-weight: 600; }
.order-product small { display: block; margin-top: 5px; color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.order-amount { text-align: right; min-width: 100px; }
.order-amount span { display: block; color: var(--muted); font-size: 12px; }
.order-amount strong { display: block; margin-top: 2px; font-size: 17px; }
.order-card__actions { min-height: 48px; padding: 0 20px; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; align-items: center; gap: 10px; }
.action-button { background: #fff; border: 1px solid var(--border); border-radius: 7px; color: #363a42; font-size: 12px; font-weight: 600; padding: 7px 12px; }
.action-button:hover { border-color: #aeb3bd; color: #000; }
.action-button--primary { background: var(--ink); border-color: var(--ink); color: #fff; }
.action-button--primary:hover { background: #30343a; }
.action-button:disabled { cursor: not-allowed; opacity: .58; }

.security-card { width: min(100%, 680px); margin-top: 20px; padding: 28px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; }
.security-card__head { display: flex; align-items: start; justify-content: space-between; gap: 16px; }
.security-card__head h2 { margin: 2px 0 0; font-size: 20px; }
.security-intro { margin: 20px 0 0; color: #4d525a; }
.security-intro strong { color: var(--ink); overflow-wrap: anywhere; }
.security-notice { margin-top: 14px; padding: 12px 14px; border-radius: 8px; background: #f5f6f8; color: #5f646d; font-size: 12px; line-height: 1.65; }
.security-form { display: grid; gap: 18px; margin-top: 22px; }
.security-field { display: grid; gap: 7px; color: #343840; font-size: 13px; font-weight: 700; }
.security-field > input, .security-code-row input { width: 100%; height: 44px; padding: 0 12px; border: 1px solid var(--border); border-radius: 8px; outline: 0; color: var(--ink); }
.security-field > input:focus, .security-code-row input:focus { border-color: #9ba1ab; box-shadow: 0 0 0 3px rgba(25, 28, 33, .06); }
.security-code-row { display: grid; grid-template-columns: minmax(0, 1fr) 150px; gap: 10px; }
.security-code-row .action-button { min-height: 44px; }
.security-error { min-height: 20px; margin: -7px 0 0; color: var(--red); font-size: 12px; }
.security-actions { display: flex; justify-content: flex-end; gap: 10px; }

.empty-state, .login-state, .loading-state { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; margin-top: 20px; min-height: 300px; display: grid; place-items: center; text-align: center; padding: 32px; color: var(--muted); }
.empty-state__icon { width: 54px; height: 54px; border: 1px solid var(--border); border-radius: 50%; display: grid; place-items: center; margin: 0 auto 14px; color: var(--ink); font-size: 24px; }
.empty-state h2, .detail-view h2 { color: var(--ink); margin: 0; font-size: 18px; }
.empty-state p { margin: 7px 0 18px; font-size: 13px; }
.empty-state__actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 9px; }
.shop-button { display: inline-flex; align-items: center; justify-content: center; height: 38px; padding: 0 16px; background: var(--ink); color: #fff; border-radius: 7px; font-size: 13px; font-weight: 700; }
.shop-button:hover { background: #30343a; }

/* 账户页交互保持克制：只过渡实际会变化的视觉属性，避免布局属性被意外动画。 */
.account-menu a,
.logout-button,
.browse-link,
.order-filters button,
.inline-link,
.code-modal__close,
.copy-icon-button {
  transition: background-color .18s ease, color .18s ease;
}
.recent-order {
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.show-codes-button,
.action-button,
.shop-button {
  transition: background-color .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease, transform .18s ease;
}

@media (prefers-reduced-motion: reduce) {
  .account-page *,
  .account-page *::before,
  .account-page *::after,
  .code-modal,
  .code-modal * {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}

/* 订单详情：细化生命周期信息，不改变原有页面结构与业务状态。 */
.account-view .detail-progress-summary__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin-top: 9px;
  color: #737b87;
  font-size: 11px;
  line-height: 1.45;
}

.account-view .detail-progress-summary__meta span {
  position: relative;
  padding-left: 10px;
}

.account-view .detail-progress-summary__meta span::before {
  content: "";
  position: absolute;
  top: .55em;
  left: 0;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
  opacity: .55;
}

.account-view .detail-progress {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.account-view .detail-progress__time {
  display: block;
  margin-top: 7px;
  color: #a0a6b0;
  font-size: 10px;
  font-variant-numeric: tabular-nums;
  line-height: 1.35;
}

.account-view .detail-progress__item--current .detail-progress__time,
.account-view .detail-progress__item--failed .detail-progress__time {
  color: #747b87;
}

@media (max-width: 760px) {
  .account-view .detail-progress {
    grid-template-columns: 1fr;
  }

  .account-view .detail-progress__time {
    margin-top: 4px;
  }
}

.account-page :where(a, button, input, select, textarea, [tabindex]):focus-visible,
.code-modal :where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 2px solid #1d1d1f;
  outline-offset: 2px;
}

.detail-view { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; margin-top: 20px; }
.detail-view__head { padding: 20px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.back-button { border: 0; background: transparent; padding: 0; color: #4f545c; font-weight: 700; }
.detail-view__grid { padding: 20px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 28px; }
.detail-field span { color: var(--muted); font-size: 12px; display: block; }
.detail-field strong { margin-top: 3px; display: block; overflow-wrap: anywhere; }
.detail-view__actions { padding: 0 20px 20px; display: flex; justify-content: flex-end; }
.toast-stack { position: fixed; top: 82px; left: 50%; transform: translateX(-50%); display: grid; gap: 8px; z-index: 20; }
.toast { background: #1c1f24; color: #fff; padding: 10px 14px; border-radius: 8px; font-size: 13px; }

@media (max-width: 1080px) {
  .store-nav__inner { gap: 16px; }
  .nav-search { width: 150px; }
  .store-nav__links { gap: 0; }
  .store-nav__links a { padding: 8px 7px; }
}
@media (max-width: 860px) {
  .store-nav__inner { padding: 0 16px; }
  .brand__text, .nav-search, .store-nav__links { display: none; }
  .account-page { padding: 22px 16px 52px; }
  .account-shell { grid-template-columns: 1fr; gap: 18px; }
  .account-sidebar { display: none; }
  .overview-grid { grid-template-columns: 1fr; }
  .security-card { margin-top: 0; }
}
@media (max-width: 580px) {
  .order-filters { gap: 20px; }
  .orders-toolbar { justify-content: stretch; }
  .order-search { width: 100%; }
  .order-card__head { padding: 12px 14px; min-height: 0; flex-wrap: wrap; gap: 5px 12px; }
  .status { margin-left: auto; }
  .order-card__body { grid-template-columns: 46px minmax(0, 1fr); padding: 15px 14px; }
  .order-game-icon { width: 46px; height: 46px; border-radius: 9px; }
  .order-amount { grid-column: 2; text-align: left; display: flex; gap: 8px; align-items: baseline; }
  .order-amount span { display: inline; }
  .order-card__actions { padding: 10px 14px; }
  .detail-view__grid { grid-template-columns: 1fr; gap: 14px; }
  .overview-card, .recent-purchases { padding: 17px; }
  .overview-card { min-height: 0; }
  .security-card { padding: 20px 17px; }
  .security-card__head { display: grid; }
  .security-code-row { grid-template-columns: 1fr; }
  .security-actions { display: grid; }
  .security-actions .action-button { width: 100%; min-height: 40px; text-align: center; }
  .order-summary-grid { margin-top: 20px; }
  .summary-item { padding: 0 4px; }
  .summary-item strong { font-size: 19px; }
  .summary-item span { font-size: 11px; overflow: hidden; text-overflow: ellipsis; }
  .recent-purchases__grid { grid-template-columns: 1fr; }
  .favorites-grid { grid-template-columns: 1fr; }
  .favorites-view__head { align-items: start; flex-direction: column; gap: 8px; }
  .favorites-empty { align-items: flex-start; flex-wrap: wrap; }
  .favorites-empty .shop-button { margin: 2px 0 0 60px; }
  .recent-empty { align-items: flex-start; flex-wrap: wrap; }
  .recent-empty .shop-button { margin: 2px 0 0 55px; }
  .empty-state__actions { display: grid; }
  .empty-state__actions .shop-button, .empty-state__actions .action-button { width: 100%; }
  .cdk-verification { min-height: 0; padding-top: 0; }
  .verification-card { padding: 20px; }
  .codes-panel__intro { align-items: start; }
  .codes-panel__tools { justify-content: flex-start; }
  .code-modal { padding: 14px; }
  .code-modal__head, .code-modal__product, .code-modal__foot { padding-left: 16px; padding-right: 16px; }
  .code-modal__codes { padding: 0 16px 16px; }
  .code-table__head, .code-table__row { grid-template-columns: 42px minmax(0, 1fr) 44px; padding: 12px 10px; gap: 8px; }
  .cdk-order-card__head, .cdk-code-row { padding-left: 14px; padding-right: 14px; }
  .cdk-code-row { align-items: stretch; flex-direction: column; gap: 12px; }
  .cdk-code-row__actions { width: 100%; }
  .cdk-code-row__actions .action-button { flex: 1; }
}
