/**
 * AMEIYA layout-shatter (repositioned)
 * Same visual language: spine + coral/teal + film + corner card.
 * Positions: nav top → copy | auth side-by-side → film full-width → footer.
 */
:root {
  --bg: #dce6eb;
  --d1: #f2f6f8;
  --d2: #c9d6dd;
  --ink: #121a1e;
  --g: #e85d4c;
  --gl: #f08a7c;
  --gd: #c44738;
  --g10: rgba(232, 93, 76, 0.1);
  --g20: rgba(232, 93, 76, 0.2);
  --accent: #0f8f84;
  --t1: #121a1e;
  --t2: #3a4c54;
  --t3: #6a7e86;
  --ln: rgba(18, 26, 30, 0.14);
  --ok: #0f8f84;
  --bad: #c44738;
  --r: 4px;
  --font: "DM Sans", "PingFang SC", "Microsoft YaHei", sans-serif;
  --serif: "Noto Serif SC", "Songti SC", "STSong", serif;
  --shadow: 0 18px 50px rgba(18, 26, 30, 0.12);
  --spine-w: 88px;
  --buy-w: 360px;
  --ink-deep: #0c1215;
}

* { box-sizing: border-box; }

body.layout-shatter {
  margin: 0;
  font-family: var(--font);
  color: var(--t1);
  background: var(--bg);
  min-height: 100vh;
}

.layout-shatter.page-ameiya::before { display: none; }

.grain {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 50% at 70% 0%, rgba(232, 93, 76, 0.14), transparent 55%),
    radial-gradient(ellipse 50% 40% at 100% 80%, rgba(15, 143, 132, 0.12), transparent 50%),
    linear-gradient(115deg, #d5e0e6 0%, #e8eef2 45%, #d2dde3 100%);
}
.grain::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* —— Brand spine (unchanged look) —— */
.brand-spine {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--spine-w);
  z-index: 40;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 28px 0;
  background: var(--ink-deep);
  color: #f3f7f9;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
}
.spine-zh {
  writing-mode: vertical-rl;
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3.2vw, 2.4rem);
  font-weight: 600;
  letter-spacing: 0.42em;
  line-height: 1;
}
.spine-en {
  writing-mode: vertical-rl;
  font-size: 0.68rem;
  letter-spacing: 0.35em;
  opacity: 0.45;
  font-weight: 600;
}

/* —— App frame：立柱右侧内容区 —— */
.app-frame {
  position: relative;
  z-index: 1;
  margin-left: var(--spine-w);
  min-height: 100vh;
  padding: 20px clamp(18px, 3vw, 36px) 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* —— Top bar：导航在内容区顶部横排 —— */
.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(242, 246, 248, 0.88);
  border: 1px solid var(--ln);
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px rgba(18, 26, 30, 0.06);
  width: fit-content;
  max-width: 100%;
}
.float-mark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
}
.float-mark img {
  border-radius: 8px;
  display: block;
}
.top-bar .nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 0.8rem;
}
.top-bar .nav-links a:not(.nav-order) {
  color: var(--t2);
  padding: 6px 8px;
}
.top-bar .nav-links a:not(.nav-order):hover {
  color: var(--g);
  text-decoration: none;
}
.nav-links a.nav-order,
.nav-links button.nav-order:not(.nav-logout) {
  border-radius: 999px;
  background: var(--ink);
  box-shadow: none;
  padding: 7px 12px;
}
.nav-links a.nav-order:hover,
.nav-links button.nav-order:not(.nav-logout):hover {
  background: var(--gd);
  box-shadow: none;
  transform: none;
}
.nav-links .nav-user,
.nav-links button.nav-user-btn {
  border-radius: 999px;
  background: rgba(18, 26, 30, 0.05);
  border-color: var(--ln);
  color: var(--ink);
}
.nav-links .nav-user-dropdown {
  right: 0;
  border-radius: 12px;
}

/* —— Main grid：文案与登录紧挨左对齐，不拉出大片空白 —— */
.main-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 24px 28px;
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  max-width: 1080px;
}
.stage-copy {
  flex: 1 1 320px;
  max-width: 42rem;
  min-width: 0;
  padding-top: 12px;
}
.buy-panel {
  flex: 0 0 auto;
  width: min(100%, var(--buy-w));
  max-width: var(--buy-w);
  position: relative;
  margin: 0;
  justify-self: unset;
}
@media (min-width: 960px) {
  .buy-panel {
    position: sticky;
    top: 24px;
    align-self: flex-start;
    margin-top: 12px;
  }
}
.stage-kicker {
  margin: 0 0 14px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--g);
}
.layout-shatter .hero-title {
  font-family: var(--font);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 750;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 0 0 16px;
  max-width: 12em;
}
.layout-shatter .lead {
  margin: 0 0 22px;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--t2);
  max-width: 34em;
}
.platform-chip {
  display: inline-block;
  margin: 0;
  max-width: 100%;
  padding: 10px 14px;
  border-radius: 0 12px 12px 0;
  border-left: 4px solid var(--accent);
  background: rgba(15, 143, 132, 0.1);
  color: var(--t2);
  font-size: 0.86rem;
  line-height: 1.45;
}
.platform-chip::before { display: none !important; }

/* —— 报告切片：文案下方双列马赛克（非底部胶片） —— */
.report-mosaic {
  margin-top: 36px;
  max-width: 42rem;
}
.mosaic-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}
.mosaic-kicker {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--g);
  white-space: nowrap;
}
.mosaic-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--ln), transparent);
}
.mosaic-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
@media (min-width: 640px) {
  .mosaic-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px 14px;
  }
}
.layout-shatter .mosaic-card,
.layout-shatter .feature-item.mosaic-card {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 10px;
  align-items: start;
  margin: 0;
  padding: 14px 14px 14px 12px;
  min-height: 0;
  border-radius: 12px;
  border: 1px solid transparent;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(242, 246, 248, 0.72));
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset;
  border-color: rgba(18, 26, 30, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  flex: none;
  scroll-snap-align: unset;
}
.layout-shatter .mosaic-card:hover {
  transform: translateY(-2px);
  border-color: rgba(232, 93, 76, 0.28);
  box-shadow: 0 12px 28px rgba(18, 26, 30, 0.08);
}
.layout-shatter .mosaic-card em {
  font-style: normal;
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--g);
  line-height: 1.4;
  padding-top: 2px;
}
.layout-shatter .mosaic-card strong {
  display: block;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.35;
  margin-bottom: 4px;
}
.layout-shatter .mosaic-card span {
  display: block;
  font-size: 0.78rem;
  color: var(--t3);
  line-height: 1.45;
  margin-top: 0;
}

.price-card--corner,
.layout-shatter .price-card {
  background: #f7fafb;
  color: var(--ink);
  border: 1px solid var(--ln);
  border-radius: 16px;
  padding: 18px 16px 16px;
  box-shadow: 0 18px 48px rgba(18, 26, 30, 0.16);
  width: 100%;
  max-height: calc(100vh - 48px);
  overflow: auto;
}
.layout-shatter .price-card .eyebrow,
.layout-shatter .price-card .pay-kicker {
  color: var(--g);
}
.layout-shatter .price-card .amount,
.layout-shatter .price-card .pay-amount {
  color: var(--ink);
  font-family: var(--serif);
}
.layout-shatter .price-card ul,
.layout-shatter .price-card .hint,
.layout-shatter .price-card label,
.layout-shatter .price-card .pay-meta {
  color: var(--t2);
}
.layout-shatter .price-card input,
.layout-shatter .price-card textarea,
.layout-shatter .price-card select {
  background: #fff;
  border: 1px solid var(--ln);
  color: var(--ink);
  border-radius: 4px;
}
.layout-shatter .price-card a { color: var(--gd); }

/* legacy film styles kept minimal in case referenced */
.film,
.film--bottom { display: none; }

.stage-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  padding-top: 8px;
  margin-top: 8px;
  font-size: 0.78rem;
  color: var(--t3);
  flex: 0 0 auto;
  border-top: 1px solid var(--ln);
}

.btn {
  border-radius: 4px;
  letter-spacing: 0.04em;
}
.btn-primary {
  background: var(--g);
  box-shadow: 0 10px 24px rgba(232, 93, 76, 0.28);
}
.btn-primary:hover {
  background: var(--gd);
  filter: none;
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ln);
}

body:not(.rpt-body):not(.layout-shatter) {
  background: var(--bg);
}
body:not(.rpt-body) .card {
  background: rgba(242, 246, 248, 0.9);
  border-radius: 8px;
  border-color: var(--ln);
}
body:not(.rpt-body) .btn-primary {
  background: var(--g);
  box-shadow: 0 10px 24px rgba(232, 93, 76, 0.28);
}

@media (max-width: 959px) {
  :root { --spine-w: 56px; }
  .spine-zh { font-size: 1.35rem; letter-spacing: 0.28em; }
  .buy-panel {
    width: 100%;
    max-width: none;
  }
  .main-grid {
    display: flex;
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .app-frame { padding: 14px 14px 28px; gap: 20px; }
  .layout-shatter .hero-title {
    font-size: clamp(1.7rem, 8vw, 2.2rem);
  }
  .top-bar {
    width: 100%;
  }
}

/* —— Login only: bg + logo + card —— */
body.layout-login-only {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--t1);
  background: #d8e2e8;
}
.layout-login-only .login-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(180deg, rgba(220, 230, 235, 0.35), rgba(18, 26, 30, 0.18)),
    url("/assets/login-bg.png") center / cover no-repeat;
}
.layout-login-only .login-shell {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  padding: 32px 18px;
  box-sizing: border-box;
}
.layout-login-only .login-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  align-self: center;
}
.layout-login-only .login-logo {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  box-shadow: 0 12px 28px rgba(232, 93, 76, 0.28);
  background: #fff;
}
.layout-login-only .login-brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.layout-login-only .login-brand-text strong {
  font-family: var(--serif);
  font-size: 1.45rem;
  letter-spacing: 0.28em;
  font-weight: 600;
  color: #121a1e;
  text-shadow: 0 1px 0 rgba(255,255,255,0.5);
}
.layout-login-only .login-brand-text span {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  font-weight: 700;
  color: rgba(18, 26, 30, 0.55);
}
.layout-login-only .login-nav {
  width: min(400px, 100%);
  min-height: 0;
  display: flex;
  justify-content: flex-end;
}
.layout-login-only .login-nav:empty { display: none; }
.layout-login-only .buy-panel--solo {
  width: min(400px, 100%);
  max-width: 400px;
  position: relative !important;
  top: auto !important;
  margin: 0 auto !important;
  align-self: center !important;
  left: auto;
  right: auto;
  float: none;
  transition: max-width 0.25s ease, width 0.25s ease;
}
.layout-login-only.is-logged-in .buy-panel--solo {
  width: min(520px, 100%);
  max-width: 520px;
}
.layout-login-only.is-logged-in .login-nav {
  width: min(520px, 100%);
}
.layout-login-only .price-card--corner,
.layout-login-only .price-card {
  background: rgba(247, 250, 251, 0.94);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(18, 26, 30, 0.18);
  max-height: none;
}

/* Post-login: remaining tokens + history reports */
.layout-login-only .acct-dash-hd {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.layout-login-only .acct-token-line {
  font-size: 1.45rem;
  margin: 0;
}
.layout-login-only .acct-actions {
  margin: 4px 0 16px;
}
.layout-login-only .acct-cost-hint {
  margin: 8px 0 0;
  text-align: center;
}
.layout-login-only .acct-insufficient {
  margin: 0 0 10px;
  padding: 10px 12px;
  font-size: 0.86rem;
  line-height: 1.45;
  color: var(--gd);
  background: rgba(232, 93, 76, 0.08);
  border: 1px solid rgba(232, 93, 76, 0.22);
  border-radius: 10px;
}
.layout-login-only .acct-reports-hd {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  padding-top: 4px;
  border-top: 1px solid var(--ln);
}
.layout-login-only .acct-reports-hd h3 {
  margin: 12px 0 0;
  font-size: 0.95rem;
  font-weight: 650;
  color: var(--ink);
}
.layout-login-only .acct-reports-hd span {
  font-size: 0.78rem;
  color: var(--t3);
}
.layout-login-only .acct-report-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: min(42vh, 360px);
  overflow: auto;
  padding-right: 2px;
}
.layout-login-only .acct-report-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  text-decoration: none;
  color: inherit;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--ln);
  border-radius: 12px;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.layout-login-only .acct-report-item:hover {
  border-color: rgba(232, 93, 76, 0.45);
  background: #fff;
}
.layout-login-only .acct-report-main {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.layout-login-only .acct-report-main strong {
  font-size: 0.92rem;
  font-weight: 650;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.layout-login-only .acct-report-main span {
  font-size: 0.78rem;
  color: var(--t3);
}
.layout-login-only .acct-report-go {
  flex-shrink: 0;
  font-size: 0.78rem;
  color: var(--gd);
  font-weight: 600;
}
.layout-login-only .acct-empty {
  margin: 0;
  padding: 16px 12px;
  text-align: center;
  font-size: 0.86rem;
  color: var(--t3);
  background: rgba(255, 255, 255, 0.45);
  border-radius: 12px;
  border: 1px dashed var(--ln);
}

@media (max-width: 560px) {
  .layout-login-only .login-brand-text strong {
    letter-spacing: 0.18em;
    font-size: 1.25rem;
  }
}

/* —— Logged-in console (sidebar + main) —— */
body.layout-login-only.is-logged-in {
  background: #e8eef2;
  overflow: auto;
}
/* login-shell 的 display:flex 会盖掉 [hidden]，必须强制隐藏 */
body.layout-login-only.is-logged-in .login-shell,
body.layout-login-only.is-logged-in #loginShell {
  display: none !important;
}
body.layout-login-only.is-logged-in .login-bg {
  display: none !important;
}
.uc-app {
  position: relative;
  z-index: 2;
  width: min(1120px, calc(100% - 28px));
  margin: 24px auto 40px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
body.layout-login-only.is-logged-in .uc-app {
  width: 100%;
  max-width: none;
  min-height: 100vh;
  margin: 0;
  padding: 18px 20px 24px;
  box-sizing: border-box;
  gap: 14px;
}
.uc-app[hidden] { display: none !important; }
body.layout-login-only.is-logged-in .uc-app:not([hidden]) {
  display: flex !important;
}
.uc-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(18, 26, 30, 0.06);
  backdrop-filter: blur(10px);
}
.uc-top-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.uc-top-brand img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #fff;
}
.uc-top-brand strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.05rem;
  letter-spacing: 0.16em;
  color: var(--ink);
}
.uc-top-brand span {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  color: var(--t3);
  font-weight: 700;
}
.uc-top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.uc-top-user {
  font-size: 0.86rem;
  color: var(--t2);
  font-weight: 600;
}
.uc-body {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 14px;
  flex: 1;
  min-height: 0;
  align-items: stretch;
}
.uc-side {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px;
  background: #fff;
  border-radius: 16px;
  border: 1px solid rgba(18, 26, 30, 0.06);
  box-shadow: 0 10px 28px rgba(18, 26, 30, 0.05);
  align-self: stretch;
  height: 100%;
  min-height: calc(100vh - 120px);
  box-sizing: border-box;
}
.uc-side-item {
  appearance: none;
  border: 0;
  background: transparent;
  text-align: left;
  padding: 11px 12px;
  border-radius: 10px;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--t2);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.uc-side-item:hover { background: rgba(232, 93, 76, 0.06); color: var(--ink); }
.uc-side-item.is-active {
  background: rgba(232, 93, 76, 0.12);
  color: var(--gd);
}
.uc-main {
  min-width: 0;
}
.uc-panel {
  background: #fff;
  border-radius: 16px;
  border: 1px solid rgba(18, 26, 30, 0.06);
  box-shadow: 0 10px 28px rgba(18, 26, 30, 0.05);
  padding: 22px 22px 26px;
  min-height: calc(100vh - 120px);
  box-sizing: border-box;
}
.uc-panel-hd {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}
.uc-panel-hd h1 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--ink);
}
.uc-meta {
  font-size: 0.8rem;
  color: var(--t3);
}

/* 账号概况 · 图二分区列表风格 */
.uc-panel--overview {
  padding: 0;
  overflow: hidden;
}
.uc-ov-head {
  padding: 22px 24px 18px;
}
.uc-ov-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.uc-ov-title-row h1 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--ink);
}
.uc-ov-profile {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.uc-ov-profile-line {
  display: flex;
  align-items: baseline;
  gap: 14px;
  font-size: 0.92rem;
}
.uc-ov-k {
  flex: 0 0 5.5em;
  color: var(--t3);
}
.uc-ov-v {
  color: var(--ink);
  font-weight: 600;
}
.uc-ov-block {
  border-top: 0;
}
.uc-ov-block-hd {
  padding: 10px 24px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--t2);
  background: #eef3f6;
  border-top: 1px solid rgba(18, 26, 30, 0.05);
  border-bottom: 1px solid rgba(18, 26, 30, 0.05);
}
.uc-ov-rows,
.uc-ov-settings {
  padding: 8px 16px 16px;
}
.uc-ov-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 12px;
  border-bottom: 1px solid rgba(18, 26, 30, 0.06);
}
.uc-ov-row:last-of-type { border-bottom: 0; }
.uc-ov-row-title {
  font-size: 0.95rem;
  font-weight: 650;
  color: var(--ink);
}
.uc-ov-row-sub {
  margin-top: 4px;
  font-size: 0.82rem;
  color: var(--t3);
}
.uc-ov-row-sub strong {
  color: var(--gd);
  font-size: 1rem;
}
.uc-ov-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  flex-shrink: 0;
}
.uc-ov-btn {
  appearance: none;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 7px 14px;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 650;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.uc-ov-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.uc-ov-btn--ghost {
  background: rgba(232, 93, 76, 0.06);
  border-color: rgba(232, 93, 76, 0.28);
  color: var(--gd);
}
.uc-ov-btn--ghost:hover:not(:disabled) {
  background: rgba(232, 93, 76, 0.12);
}
.uc-ov-btn--solid {
  background: var(--g);
  border-color: var(--g);
  color: #fff;
}
.uc-ov-btn--solid:hover:not(:disabled) {
  background: var(--gd);
  border-color: var(--gd);
}
.uc-ov-set {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 14px;
  margin-bottom: 10px;
  border-radius: 12px;
  background: #f5f8fa;
  border: 1px solid rgba(18, 26, 30, 0.05);
}
.uc-ov-set:last-child { margin-bottom: 0; }
.uc-ov-set-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  flex-shrink: 0;
  background: center / 20px 20px no-repeat, linear-gradient(145deg, #f08a7c, #e85d4c);
}
.uc-ov-set-icon--account {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M12 12a4 4 0 1 0 0-8 4 4 0 0 0 0 8Z' stroke='%23fff' stroke-width='1.8'/%3E%3Cpath d='M4 20c1.5-3.2 4.2-5 8-5s6.5 1.8 8 5' stroke='%23fff' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") center / 20px no-repeat,
    linear-gradient(145deg, #5a9fd4, #3d7eb8);
}
.uc-ov-set-icon--pwd {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Crect x='5' y='11' width='14' height='9' rx='2' stroke='%23fff' stroke-width='1.8'/%3E%3Cpath d='M8 11V8a4 4 0 0 1 8 0v3' stroke='%23fff' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") center / 18px no-repeat,
    linear-gradient(145deg, #f0a06a, #e87a3c);
}
.uc-ov-set-icon--mobile {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Crect x='8' y='3' width='8' height='18' rx='2' stroke='%23fff' stroke-width='1.8'/%3E%3Cpath d='M11 17h2' stroke='%23fff' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") center / 16px no-repeat,
    linear-gradient(145deg, #5ec4a8, #0f8f84);
}
.uc-ov-warn {
  display: inline-block;
  margin-left: 4px;
  padding: 1px 6px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  color: #b86a1c;
  background: rgba(232, 160, 60, 0.18);
}

/* 换绑手机弹窗 */
.uc-modal[hidden] { display: none !important; }
.uc-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
}
.uc-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(18, 26, 30, 0.45);
}
.uc-modal-panel {
  position: relative;
  z-index: 1;
  width: min(440px, 100%);
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 24px 64px rgba(18, 26, 30, 0.22);
  overflow: hidden;
}
.uc-modal-hd {
  position: relative;
  padding: 18px 48px 14px;
  text-align: center;
  border-bottom: 1px solid rgba(18, 26, 30, 0.06);
}
.uc-modal-hd h2 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
}
.uc-modal-x {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: 0;
  background: transparent;
  font-size: 1.4rem;
  line-height: 1;
  color: var(--t3);
  cursor: pointer;
  border-radius: 8px;
}
.uc-modal-x:hover { background: #f0f3f5; color: var(--ink); }
.uc-modal-body {
  padding: 18px 22px 20px;
}
.uc-modal-label {
  display: block;
  margin: 12px 0 8px;
  font-size: 0.86rem;
  font-weight: 650;
  color: var(--t2);
}
.uc-modal-label .req { color: var(--g); margin-right: 2px; }
.uc-modal-locked,
.uc-modal-input-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(18, 26, 30, 0.12);
  border-radius: 8px;
  padding: 0 12px;
  background: #f7f9fa;
  min-height: 44px;
}
.uc-modal-input-wrap {
  background: #fff;
}
.uc-modal-locked input,
.uc-modal-input-wrap input {
  flex: 1;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  outline: none;
  min-width: 0;
  padding: 10px 0;
}
.uc-modal-locked input { color: var(--t3); }
.uc-modal-lock {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Crect x='5' y='11' width='14' height='9' rx='2' stroke='%236a7e86' stroke-width='1.8'/%3E%3Cpath d='M8 11V8a4 4 0 0 1 8 0v3' stroke='%236a7e86' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E")
    center / contain no-repeat;
}
.uc-modal-code-row {
  display: flex;
  align-items: stretch;
  border: 1px solid rgba(18, 26, 30, 0.12);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  min-height: 44px;
}
.uc-modal-code-row input {
  flex: 1;
  border: 0;
  padding: 10px 12px;
  font: inherit;
  font-size: 0.95rem;
  outline: none;
  min-width: 0;
}
.uc-modal-sms {
  flex-shrink: 0;
  border: 0;
  border-left: 1px solid rgba(18, 26, 30, 0.08);
  padding: 0 14px;
  background: var(--g);
  color: #fff;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 650;
  cursor: pointer;
  white-space: nowrap;
}
.uc-modal-sms:hover:not(:disabled) { background: var(--gd); }
.uc-modal-sms:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}
.uc-modal-step-tip {
  margin: 0 0 4px;
  font-size: 0.84rem;
  color: var(--t3);
}
.uc-modal-ft {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}
.uc-modal-btn {
  appearance: none;
  border-radius: 8px;
  padding: 9px 18px;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 650;
  cursor: pointer;
}
.uc-modal-btn--ghost {
  border: 1px solid rgba(18, 26, 30, 0.14);
  background: #fff;
  color: var(--t2);
}
.uc-modal-btn--ghost:hover { background: #f5f7f8; }
.uc-modal-btn--solid {
  border: 1px solid var(--g);
  background: var(--g);
  color: #fff;
}
.uc-modal-btn--solid:hover:not(:disabled) { background: var(--gd); border-color: var(--gd); }
.diagnose-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}
.diagnose-hd h2 {
  margin: 0;
}
.verita-badge {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #fff;
  background: linear-gradient(135deg, #e85d4c, #c44738);
  box-shadow: 0 4px 10px rgba(196, 71, 56, 0.22);
}
.verita-badge[hidden] { display: none !important; }

/* 控制台首页 */
.uc-panel--home {
  padding: 22px 24px 26px;
}
.uc-home-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}
.uc-home-kicker {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--t3);
  margin-bottom: 6px;
}
.uc-home-hero h1 {
  margin: 0;
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--ink);
}
.uc-home-lead {
  margin: 8px 0 0;
  font-size: 0.9rem;
  color: var(--t3);
}
.uc-home-points {
  flex-shrink: 0;
  min-width: 110px;
  padding: 14px 18px;
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(232, 93, 76, 0.1), #f7fafb);
  border: 1px solid rgba(232, 93, 76, 0.18);
  text-align: center;
}
.uc-home-points span {
  display: block;
  font-size: 0.75rem;
  color: var(--t3);
  font-weight: 650;
}
.uc-home-points strong {
  display: block;
  margin-top: 4px;
  font-size: 1.8rem;
  color: var(--gd);
  line-height: 1.1;
}
.uc-home-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.uc-home-recent {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid rgba(18, 26, 30, 0.06);
}
.uc-home-recent-hd {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 12px;
}
.uc-home-recent-hd h2 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
}
.uc-home-recent-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.uc-home-report {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(18, 26, 30, 0.08);
  background: #f7fafb;
  text-decoration: none;
  color: inherit;
}
.uc-home-report:hover {
  border-color: rgba(232, 93, 76, 0.35);
  background: #fff;
}
.uc-home-report--pending {
  cursor: default;
  border-style: dashed;
  opacity: 0.92;
}
.uc-home-report--pending:hover {
  border-color: rgba(18, 26, 30, 0.12);
  background: #f7fafb;
}
.uc-home-report--pending span {
  color: var(--g);
  font-weight: 600;
}
.uc-home-report strong { font-size: 0.92rem; }
.uc-home-report span {
  font-size: 0.78rem;
  color: var(--t3);
  flex-shrink: 0;
}
@media (max-width: 560px) {
  .uc-home-hero { flex-direction: column; }
  .uc-home-points {
    width: 100%;
    box-sizing: border-box;
  }
}
.uc-ov-set-body {
  flex: 1;
  min-width: 0;
}
.uc-ov-set-title {
  font-size: 0.95rem;
  font-weight: 650;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 6px;
}
.uc-ov-ok {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #2f9e6b;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  line-height: 1;
}
.uc-ov-set-desc {
  margin-top: 3px;
  font-size: 0.8rem;
  color: var(--t3);
  line-height: 1.45;
}
.uc-ov-pwd {
  margin: 0 0 8px;
  padding: 14px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid rgba(18, 26, 30, 0.08);
}
.uc-overview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.uc-card {
  padding: 16px 16px 14px;
  border-radius: 14px;
  border: 1px solid rgba(18, 26, 30, 0.08);
  background: linear-gradient(180deg, #fbfcfd, #f4f7f9);
}
.uc-card--points {
  background: linear-gradient(145deg, rgba(232, 93, 76, 0.08), #fbfcfd 55%);
  border-color: rgba(232, 93, 76, 0.18);
}
.uc-card-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--t3);
  margin-bottom: 8px;
}
.uc-card-value {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink);
}
.uc-points {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-size: 2rem;
  color: var(--gd);
}
.uc-points small {
  font-size: 0.85rem;
  color: var(--t3);
  font-weight: 600;
}
.uc-card-note {
  margin: 8px 0 0;
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--t3);
}
.uc-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.uc-pwd-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--ln);
}
.uc-pwd-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}
.uc-pwd-form input {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--ln);
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
  background: #fff;
}
.uc-timeline {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.uc-tl-day { display: flex; flex-direction: column; gap: 10px; }
.uc-tl-date {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--t2);
}
.uc-tl-item {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 10px;
  align-items: stretch;
}
.uc-tl-time {
  padding-top: 14px;
  font-size: 0.78rem;
  color: var(--t3);
  text-align: right;
}
.uc-tl-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(18, 26, 30, 0.08);
  background: #f7fafb;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, background 0.15s ease;
}
a.uc-tl-card:hover {
  border-color: rgba(232, 93, 76, 0.35);
  background: #fff;
}
.uc-tl-card--pending {
  cursor: default;
  border-style: dashed;
  opacity: 0.95;
}
.uc-tl-icon--pending {
  background: linear-gradient(135deg, rgba(232, 93, 76, 0.22), rgba(15, 143, 132, 0.2));
  position: relative;
}
.uc-tl-icon--pending::after {
  content: "";
  position: absolute;
  inset: 10px;
  border: 2px solid rgba(232, 93, 76, 0.55);
  border-top-color: transparent;
  border-radius: 50%;
  animation: uc-spin 0.9s linear infinite;
}
@keyframes uc-spin {
  to { transform: rotate(360deg); }
}
.uc-tl-go--muted {
  color: var(--g);
  font-weight: 650;
  font-size: 0.82rem;
}
.uc-tl-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  flex-shrink: 0;
  background:
    linear-gradient(135deg, rgba(232, 93, 76, 0.2), rgba(15, 143, 132, 0.18));
}
.uc-tl-icon--burn {
  background: linear-gradient(135deg, rgba(232, 93, 76, 0.28), rgba(196, 71, 56, 0.12));
}
.uc-tl-icon--buy {
  background: linear-gradient(135deg, rgba(15, 143, 132, 0.25), rgba(15, 143, 132, 0.08));
}
.uc-tl-body {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.uc-tl-body strong {
  font-size: 0.92rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.uc-tl-body span {
  font-size: 0.78rem;
  color: var(--t3);
}
.uc-tl-go,
.uc-tl-delta {
  flex-shrink: 0;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--gd);
}
.uc-tl-delta--pos { color: var(--accent); }
.uc-empty {
  padding: 48px 16px;
  text-align: center;
  color: var(--t3);
  font-size: 0.92rem;
  border: 1px dashed var(--ln);
  border-radius: 12px;
  background: #f7fafb;
}
.uc-panel--pay,
.uc-panel--recharge {
  max-width: 680px;
  margin: 0 auto;
  min-height: auto;
}
.uc-panel--pay .uc-panel-hd,
.uc-panel--recharge .uc-panel-hd {
  justify-content: center;
  position: relative;
}
.uc-panel--pay .uc-panel-hd .btn,
.uc-panel--recharge .uc-panel-hd .btn {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
}
.uc-panel--pay .price-card {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 8px 0 0;
  max-width: 100%;
  margin: 0 auto;
}
.uc-panel--pay .pay-head {
  padding-right: 0;
  text-align: center;
}
.uc-panel--pay .pay-meta {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.uc-recharge-tip {
  display: inline-block;
  margin: 0 0 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(232, 93, 76, 0.1);
  color: var(--gd);
  font-size: 0.88rem;
  font-weight: 700;
}
.uc-recharge-sub {
  margin: 0 0 16px;
  color: var(--t3);
  font-size: 0.86rem;
}
.uc-recharge-chips {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}
.uc-recharge-chip {
  appearance: none;
  border: 1px solid rgba(18, 26, 30, 0.1);
  border-radius: 12px;
  background: #f7fafb;
  padding: 14px 10px 12px;
  cursor: pointer;
  text-align: center;
  font: inherit;
  color: var(--ink);
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.uc-recharge-chip strong {
  display: block;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.uc-recharge-chip span {
  display: block;
  margin-top: 4px;
  font-size: 0.75rem;
  color: var(--t3);
}
.uc-recharge-chip:hover {
  border-color: rgba(232, 93, 76, 0.35);
  background: #fff;
}
.uc-recharge-chip.is-active {
  border-color: var(--g);
  background: rgba(232, 93, 76, 0.08);
  box-shadow: 0 0 0 3px rgba(232, 93, 76, 0.12);
}
.uc-recharge-chip.is-active span {
  color: var(--gd);
  font-weight: 650;
}
.uc-recharge-label {
  display: block;
  margin: 0 0 8px;
  font-size: 0.82rem;
  font-weight: 650;
  color: var(--ink);
}
.uc-recharge-input-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  border: 1px solid rgba(18, 26, 30, 0.12);
  border-radius: 12px;
  background: #fff;
}
.uc-recharge-input-wrap span {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--t3);
}
.uc-recharge-input-wrap input {
  flex: 1;
  border: 0;
  outline: none;
  background: transparent;
  font: inherit;
  font-size: 1.2rem;
  font-weight: 700;
  padding: 12px 0;
  min-width: 0;
  color: var(--ink);
}
.uc-recharge-input-wrap:focus-within {
  border-color: var(--g);
  box-shadow: 0 0 0 3px rgba(232, 93, 76, 0.12);
}
.uc-recharge-hint {
  margin: 10px 0 18px;
  font-size: 0.86rem;
  color: var(--t3);
}
.uc-recharge-pay {
  min-height: 46px;
}

@media (max-width: 860px) {
  .uc-body {
    grid-template-columns: 1fr;
  }
  .uc-side {
    flex-direction: row;
    flex-wrap: wrap;
    height: auto;
    min-height: 0;
  }
  .uc-side-item {
    flex: 1 1 auto;
    text-align: center;
  }
  .uc-panel {
    min-height: 0;
  }
  .uc-overview-grid {
    grid-template-columns: 1fr;
  }
  .uc-ov-row {
    flex-direction: column;
    align-items: flex-start;
  }
  .uc-ov-set {
    flex-wrap: wrap;
  }
  .uc-recharge-chips {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 560px) {
  body.layout-login-only.is-logged-in .uc-app {
    padding: 10px 10px 20px;
  }
  .uc-app {
    width: calc(100% - 16px);
    margin: 12px auto 28px;
  }
  .uc-tl-item {
    grid-template-columns: 40px minmax(0, 1fr);
  }
  .uc-pwd-row {
    grid-template-columns: 1fr;
  }
}
