* { box-sizing: border-box; }

html { min-width: 320px; background: #05070c; }

body.records-page-body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: #f7f3ea;
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", sans-serif;
  background: radial-gradient(circle at 80% 10%, rgba(215,173,89,.1), transparent 27%), linear-gradient(150deg,#0d1119,#07090e 60%);
}

body.records-page-body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .16;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,.9), rgba(0,0,0,.12));
}

.records-page-frame { width: min(1440px, calc(100% - 40px)); min-height: 100vh; margin: 0 auto; padding: 0 0 70px; }
.records-page-frame .topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 84px; margin-bottom: 30px; border-bottom: 1px solid var(--site-line); }
.records-page-frame .brand { display: inline-flex; align-items: center; gap: 12px; min-width: 0; color: inherit; text-decoration: none; }
.records-page-frame .brand-mark { position: relative; display: grid; place-items: center; width: 42px; height: 42px; overflow: hidden; border: 1px solid rgba(255,255,255,.16); border-radius: 8px; background: linear-gradient(145deg, rgba(255,255,255,.16), rgba(255,255,255,.04)); box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 16px 42px rgba(0,0,0,.26); }
.records-page-frame .brand-mark::after { content: ""; position: absolute; inset: 4px; border-radius: 5px; background: #0b1019; }
.records-page-frame .brand-mark svg { position: relative; z-index: 1; width: 21px; height: 21px; color: #f4d58c; }
.records-page-frame .brand-copy { display: grid; gap: 2px; }
.records-page-frame .brand-copy strong { font-size: 15px; font-weight: 700; white-space: nowrap; }
.records-page-frame .brand-copy span { color: #70798d; font-size: 12px; white-space: nowrap; }
.records-page-frame .top-actions { display: inline-flex; align-items: center; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
.records-page-frame .shop-link, .records-page-frame .back-home { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 12px; border-radius: 999px; text-decoration: none; font-size: 12px; font-weight: 600; white-space: nowrap; }
.records-page-frame .shop-link { border: 1px solid rgba(212,176,106,.28); color: #d4b06a; background: rgba(212,176,106,.08); }
.records-page-frame .back-home { border: 1px solid rgba(255,255,255,.12); color: #d8d2c4; background: rgba(255,255,255,.04); }
.records-page-frame .shop-link:hover, .records-page-frame .back-home:hover { border-color: rgba(255,255,255,.3); background: rgba(255,255,255,.08); }

.records-auth, .records-shell { width: min(1180px, 100%); margin: 0 auto; }
.records-auth-panel { overflow: hidden; border: 1px solid var(--site-line); border-radius: 0; background: rgba(14,18,27,.92); box-shadow: 0 35px 90px rgba(0,0,0,.35); }
.records-panel { overflow: visible; }
.records-auth-panel { width: min(100%, 500px); margin: 0 auto; }
.records-auth-head { padding: 28px 30px 20px; }
.records-auth-head h1 { margin: 8px 0 7px; font-size: clamp(28px, 5vw, 42px); line-height: 1.05; letter-spacing: -.055em; }
.records-auth-head p, .records-heading p { margin: 0; color: #aeb6c8; font-size: 12px; line-height: 1.7; }
.records-auth-panel .auth-tabs { padding: 5px; border-top: 1px solid rgba(255,255,255,.1); border-bottom: 1px solid rgba(255,255,255,.1); background: rgba(5,8,13,.35); }
.records-auth-panel .account-form { min-height: 0; padding: 24px 30px 30px; }
.records-heading { display: flex; align-items: end; justify-content: space-between; gap: 18px; padding: 0 4px 22px; border-bottom: 1px solid rgba(255,255,255,.14); }
.records-heading h1 { margin: 8px 0 7px; font-size: clamp(32px, 4vw, 44px); line-height: 1; letter-spacing: -.055em; }
.records-refresh { flex: 0 0 auto; }
.records-filter { display: flex; gap: 8px; padding: 18px 4px 14px; overflow-x: auto; }
.records-filter button { min-height: 36px; padding: 0 14px; border: 1px solid rgba(255,255,255,.15); border-radius: 9px; color: #aeb6c8; background: rgba(255,255,255,.035); cursor: pointer; font-size: 11px; font-weight: 750; white-space: nowrap; }
.records-filter button.active { border-color: #d7ad59; color: #171108; background: #d7ad59; }
.records-list-wrap { margin: 0; }
.records-list-wrap .account-loading { min-height: 140px; border: 1px solid rgba(255,255,255,.12); border-radius: 14px; background: rgba(5,8,13,.42); }
.records-list-wrap .account-order-list { overflow: hidden; border: 1px solid var(--site-line); border-radius: 0; background: rgba(12,16,24,.7); }
.records-list-wrap .account-empty { min-height: 138px; border: 0; background: linear-gradient(145deg, rgba(255,255,255,.045), rgba(255,255,255,.015)); }
.records-list-wrap .account-order { grid-template-columns: minmax(180px, 1.35fr) .7fr .85fr auto auto; }
.records-note { margin: 12px 4px 0; color: #70798d; font-size: 10px; }
.delivery-caption { margin: 6px 0 0; color: var(--site-muted); font-size: 10px; }
.delivery-row strong { display: block; margin-bottom: 5px; color: var(--site-copy); font-size: 11px; }

@media (max-width: 620px) {
  .records-page-frame { padding-inline: 14px; }
  .records-page-frame .topbar { align-items: flex-start; }
  .records-page-frame .top-actions { gap: 6px; }
  .records-page-frame .shop-link { display: none; }
  .records-heading { align-items: flex-start; flex-direction: column; padding: 0 0 18px; }
  .records-filter { padding-inline: 0; }
  .records-note { margin-inline: 0; }
  .records-list-wrap .account-order { grid-template-columns: 1fr auto; gap: 10px 14px; }
  .records-list-wrap .account-order > div { display: grid; }
  .records-list-wrap .account-order > div:nth-child(2) { grid-column: 2; }
  .records-list-wrap .account-order > div:nth-child(3) { grid-column: 1 / -1; }
  .records-list-wrap .account-order > .site-status { justify-self: start; }
}

@media (max-width: 520px) {
  .records-page-frame .brand-copy span { display: none; }
  .records-page-frame .customer-nav-account > span:last-child { display: none; }
  .records-page-frame .back-home span:last-child { display: none; }
  .records-auth, .records-shell { margin-top: 22px; }
  .records-auth-head { padding: 24px 22px 18px; }
  .records-auth-panel .account-form { padding: 20px 22px 24px; }
}
