:root {
  --bg: #040e1a;
  --bg-alt: #081424;
  --card: #0a1520;
  --input: #061018;
  --gold: #d8b88a;
  --gold-dim: #c4a878;
  --teal-muted: #6b8f96;
  --text-sec: #b7c0c4;
  --text-ter: #8a9a9e;
  --teal-hi: #5bb8c7;
  --teal: #4faab7;
  --teal-lo: #358394;
  --sapphire: #040e1a;
  --line: rgba(79, 170, 183, 0.35);
  --rim: rgba(91, 184, 199, 0.4);
  --veil: rgba(91, 184, 199, 0.06);
  --serif: "STSong", "SimSun", "Songti SC", "Source Han Serif SC", "Noto Serif SC", serif;
  --sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  min-height: 100%;
  background: var(--bg);
  color: var(--text-sec);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  display: flex;
  justify-content: center;
}

.phone {
  position: relative;
  width: 100%;
  max-width: 390px;
  min-height: 100vh;
  padding: calc(28px + env(safe-area-inset-top, 0px)) 28px 180px;
  background: #040e1a;
  box-shadow: inset 0 0 0 1px rgba(79, 170, 183, 0.18);
}

.phone::before {
  content: "";
  pointer-events: none;
  position: absolute;
  inset: 0;
  background:
    radial-gradient(90% 42% at 50% -8%, rgba(91, 184, 199, 0.06), transparent 62%),
    radial-gradient(55% 38% at 92% 88%, rgba(8, 20, 36, 0.4), transparent 70%),
    radial-gradient(50% 32% at 8% 72%, rgba(79, 170, 183, 0.04), transparent 68%);
}

.brand {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(79, 170, 183, 0.16);
}

.brand svg {
  display: none;
}
.brand-mark {
  display: block;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: contain;
  background: #040e1a;
}

.brand h1 {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 400;
  font-synthesis: none;
  line-height: 1;
  letter-spacing: 0.2em;
  color: #d8b88a;
}

.panel {
  position: relative;
  z-index: 1;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid rgba(79, 170, 183, 0.35);
  border-radius: 18px;
  background:
    linear-gradient(155deg, rgba(91, 184, 199, 0.05) 0%, transparent 38%),
    linear-gradient(180deg, #0a1520 0%, #081424 48%, #040e1a 100%);
  box-shadow: inset 0 1px 0 rgba(91, 184, 199, 0.08);
  padding: 22px 20px 18px;
}

.tablet {
  outline: none;
}

.panel h2,
.section h2 {
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 400;
  font-synthesis: none;
  letter-spacing: 0.18em;
  color: #d8b88a;
  margin-bottom: 12px;
}

.section {
  position: relative;
  z-index: 1;
  margin-top: 28px;
}

.section:last-of-type {
  margin-bottom: 12px;
  min-height: 72px;
}

.empty {
  font-family: var(--serif);
  text-align: center;
  font-size: 14px;
  font-weight: 400;
  color: #B7C0C4;
  letter-spacing: 0.06em;
  padding: 8px 0 14px;
}

.empty.seal {
  font-family: var(--serif);
  font-weight: 400;
  font-synthesis: none;
  letter-spacing: 0.2em;
  color: rgba(79, 170, 183, 0.88);
  padding: 18px 0;
  margin: 4px 0 8px;
  border-top: 1px solid rgba(79, 170, 183, 0.16);
  border-bottom: 1px solid rgba(79, 170, 183, 0.16);
}

.cut {
  position: absolute;
  width: 12px;
  height: 12px;
  border-color: rgba(79, 170, 183, 0.42);
  border-style: solid;
  z-index: 1;
  transform: translateZ(0);
}

.cut-tl {
  top: 12px;
  left: 12px;
  border-width: 1px 0 0 1px;
}

.cut-br {
  right: 12px;
  bottom: 12px;
  border-width: 0 1px 1px 0;
}

.metrics {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
}

.metrics dt {
  font-size: 12px;
  color: rgba(107, 143, 150, 0.95);
  margin-bottom: 6px;
  letter-spacing: 0.08em;
}

.metrics dd {
  font-size: 14px;
  font-weight: 400;
  color: rgba(79, 170, 183, 0.9);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.06em;
}

.policy-note {
  font-size: 13px;
  font-weight: 400;
  color: rgba(107, 143, 150, 0.95);
  margin-bottom: 14px;
  letter-spacing: 0.08em;
}

.rows {
  display: flex;
  flex-direction: column;
}

.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 52px;
  border-top: 1px solid rgba(79, 170, 183, 0.11);
  color: inherit;
  text-decoration: none;
  transition: background-color 160ms ease;
}

.row:first-child {
  border-top: 0;
}

.row:active {
  background-color: rgba(91, 184, 199, 0.03);
}

.row-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.row svg {
  display: block;
  flex: 0 0 20px;
  opacity: 0.7;
}

.row span {
  font-size: 15px;
  font-weight: 400;
  color: rgba(183, 192, 196, 0.92);
  letter-spacing: 0.02em;
}

.chevron {
  color: rgba(79, 170, 183, 0.55);
  opacity: 0.85;
}

.features .row {
  min-height: 54px;
}

.feat-note {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 400;
  color: rgba(107, 143, 150, 0.9);
  letter-spacing: 0.1em;
}

.feat-state {
  margin-left: auto;
  margin-right: 8px;
  font-size: 12px;
  font-weight: 400;
  color: rgba(107, 143, 150, 0.78);
  letter-spacing: 0.08em;
}

.tabbar {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 100%;
  max-width: 390px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  background:
    linear-gradient(180deg, rgba(8, 20, 36, 0.96) 0%, #040e1a 100%);
  border-top: 1px solid rgba(79, 170, 183, 0.14);
  padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
  z-index: 8;
  backdrop-filter: none;
}

.tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 44px;
  padding: 6px 0;
  color: rgba(107, 143, 150, 0.88);
  text-decoration: none;
  font-size: 11px;
  letter-spacing: 0.08em;
}

.tab svg {
  display: block;
  opacity: 0.75;
}

.tabbar svg *,
.topbar .back svg *,
.rows svg * {
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tab.is-now {
  color: #d8b88a;
}

.tab.is-now svg {
  opacity: 0.95;
}

.topbar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-bottom: 32px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(79, 170, 183, 0.16);
}

.topbar .back {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 2px;
  min-width: 72px;
  min-height: 44px;
  padding: 12px 12px 12px 0;
  color: rgba(79, 170, 183, 0.92);
  text-decoration: none;
}

.topbar .back span {
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 400;
  font-synthesis: none;
  letter-spacing: 0.16em;
}

.topbar h1 {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 400;
  font-synthesis: none;
  letter-spacing: 0.22em;
  color: #d8b88a;
}

.kv {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 52px;
  border-top: 1px solid rgba(79, 170, 183, 0.12);
}

.kv:first-child {
  border-top: 0;
}

.kv dt {
  font-size: 14px;
  font-weight: 400;
  color: rgba(107, 143, 150, 0.92);
  letter-spacing: 0.1em;
}

.kv dd {
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 400;
  font-synthesis: none;
  letter-spacing: 0.14em;
  color: rgba(216, 184, 138, 0.92);
  text-align: right;
  min-width: 4.5em;
  font-variant-numeric: tabular-nums;
}

.cut-tr {
  top: 12px;
  right: 12px;
  border-width: 1px 1px 0 0;
}

.cut-bl {
  bottom: 12px;
  left: 12px;
  border-width: 0 0 1px 1px;
}

body.gem .phone {
  padding-top: calc(32px + env(safe-area-inset-top, 0px));
  background: #040e1a;
  box-shadow: inset 0 0 0 1px rgba(79, 170, 183, 0.18);
}

body.gem .phone::before {
  background:
    radial-gradient(88% 40% at 50% -6%, rgba(91, 184, 199, 0.04), transparent 60%),
    radial-gradient(48% 36% at 88% 82%, rgba(8, 20, 36, 0.45), transparent 68%);
}

body.gem .topbar {
  margin-bottom: 36px;
  border-bottom-color: rgba(79, 170, 183, 0.18);
}

body.gem .topbar::after {
  content: "";
  position: absolute;
  left: 26%;
  right: 26%;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(91, 184, 199, 0.32) 50%, transparent);
}

body.gem .topbar h1 {
  color: #d8b88a;
}

body.gem .topbar .back {
  color: rgba(79, 170, 183, 0.9);
}

/* 边角只做贴弧抗锯：外卡仍 16、井仍 inset 12 / 半径 10、切石仍 12、短火仍铺满 138°。 */
body.gem .tablet {
  overflow: hidden;
  isolation: isolate;
  padding: 26px 22px 20px;
  background:
    linear-gradient(148deg, rgba(91, 184, 199, 0.07) 0%, transparent 34%),
    linear-gradient(180deg, #040e1a 0%, #040e1a 52%, #040e1a 100%);
  background-clip: padding-box;
  background-origin: padding-box;
  border: 1px solid rgba(79, 170, 183, 0.28);
  border-radius: 16px;
  outline: none;
  box-shadow: inset 0 1px 0 rgba(91, 184, 199, 0.1);
  transform: translateZ(0);
  backface-visibility: hidden;
  clip-path: inset(0 round 16px);
}

body.gem .gem-fire {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  border-radius: 16px;
  background: linear-gradient(138deg, rgba(91, 184, 199, 0.04) 0%, transparent 24%);
  background-clip: padding-box;
  transform: translateZ(0);
  backface-visibility: hidden;
}

body.gem .gem-step {
  position: absolute;
  inset: 12px;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  border: 1px solid rgba(79, 170, 183, 0.14);
  border-radius: 10px;
  transform: translateZ(0);
  backface-visibility: hidden;
}

body.gem .cut-tl {
  border-top-left-radius: 10px;
}

body.gem .cut-tr {
  border-top-right-radius: 10px;
}

body.gem .cut-bl {
  border-bottom-left-radius: 10px;
}

body.gem .cut-br {
  border-bottom-right-radius: 10px;
}

body.gem .tablet h2,
body.gem .tablet dl,
body.gem .tablet .rows,
body.gem .tablet .fail,
body.gem .tablet .seal {
  /* 【2026-09-30 修】原此处并列了 .cut ⇒ 以更高优先级覆盖 .cut 自身的 position:absolute
     ⇒ 四角角标掉进文档流、在标题左上堆成两截细线（用户截图红框）。摘出 .cut 即可；其余保留。 */
  position: relative;
  z-index: 1;
}

/* 无子页的行跟首页 .row 同触控，禁止另起卡片。 */
button.row {
  width: 100%;
  margin: 0;
  padding: 0;
  appearance: none;
  background: transparent;
  border: 0;
  border-top: 1px solid rgba(79, 170, 183, 0.11);
  font: inherit;
  cursor: pointer;
  color: inherit;
  text-align: left;
}

button.row:first-child {
  border-top: 0;
}

body.gem .tablet .row {
  min-height: 56px;
  border-top-color: rgba(79, 170, 183, 0.12);
}

body.gem .tablet h2 {
  letter-spacing: 0.2em;
  color: #d8b88a;
}

body.gem .seal {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 20px 0;
  color: rgba(216, 184, 138, 0.9);
  border-top-color: rgba(79, 170, 183, 0.18);
  border-bottom-color: rgba(79, 170, 183, 0.18);
}

body.gem .seal::before,
body.gem .seal::after {
  content: "";
  width: 4px;
  height: 4px;
  border: 1px solid rgba(79, 170, 183, 0.65);
  transform: rotate(45deg);
}

body.gem .kv {
  min-height: 56px;
  border-top-color: rgba(79, 170, 183, 0.12);
}

body.gem .kv dt {
  letter-spacing: 0.1em;
}

body.gem .kv dd {
  color: rgba(216, 184, 138, 0.9);
}

body.gem .tabbar {
  background: linear-gradient(180deg, #081424 0%, #040e1a 100%);
  border-top-color: rgba(79, 170, 183, 0.14);
  box-shadow: none;
}

body.gem .tab.is-now {
  position: relative;
}

body.gem .tab.is-now::before {
  content: "";
  position: absolute;
  top: 0;
  left: 34%;
  right: 34%;
  height: 1px;
  background: rgba(91, 184, 199, 0.45);
}

/* 退出落在帐号栏最末，跟键值同行，不另起卡片。 */
.logout-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 56px;
  margin: 0;
  padding: 0;
  appearance: none;
  background: transparent;
  border: 0;
  border-top: 1px solid rgba(79, 170, 183, 0.12);
  font-family: var(--sans);
  cursor: pointer;
  color: inherit;
}

.logout-row span:first-child {
  font-size: 14px;
  letter-spacing: 0.1em;
  color: rgba(107, 143, 150, 0.92);
}

.logout-row span:last-child {
  font-family: var(--serif);
  font-size: 14px;
  letter-spacing: 0.14em;
  color: rgba(216, 184, 138, 0.9);
}

.fail {
  margin-top: 12px;
  font-size: 14px;
  line-height: 22px;
  color: #d8b88a;
  text-align: center;
}
