/* ============================================================
Bitget Wallet · 理财 前端复刻
移动端优先，桌面端自动居中成 430px 的手机列
   ============================================================ */

:root {
  --brand: #00e0c6;
  --brand-deep: #0bb89f;
  --brand-soft: #d9fbf3;
  --ink: #0b1014;
  --ink-2: #5b6670;
  --ink-3: #9aa4ad;
  --line: #eef2f1;
  --card: #f6fbf9;
  --card-2: #f2f8f6;
  --page: #ffffff;
  --blue: #2f6bff;
  --radius-l: 22px;
  --radius-m: 18px;
  --radius-s: 14px;
  --shadow-card: 0 1px 0 rgba(16, 40, 36, .02), 0 8px 24px -18px rgba(9, 60, 52, .35);
  --tab-h: 62px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --font: "PingFang SC", "HarmonyOS Sans SC", "MiSans", "Noto Sans SC",
          "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body { margin: 0; padding: 0; }

body {
  font-family: var(--font);
  background: #e9edef;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button { font-family: inherit; border: 0; background: none; color: inherit; cursor: pointer; }
input { font-family: inherit; }
svg { display: block; }

.app {
  position: relative;
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  min-height: 100vh;
  background: var(--page);
  overflow-x: clip;
}

@media (min-width: 431px) {
  body { padding: 24px 0 0; }
  .app { min-height: calc(100vh - 24px); box-shadow: 0 24px 80px -30px rgba(8, 34, 30, .35); }
}

/* ======== 状态栏 ======== */
.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  padding-top: env(safe-area-inset-top, 0px);
  background: rgba(255, 255, 255, .9);
  backdrop-filter: saturate(1.6) blur(18px);
  -webkit-backdrop-filter: saturate(1.6) blur(18px);
}

/* ======== 顶栏 ======== */
.appbar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  height: 50px;
  padding: 0 10px;
}
.appbar-title {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: .2px;
  white-space: nowrap;
  pointer-events: none;
}
.icon-btn {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #12181c;
  transition: background .18s, transform .12s;
}
.icon-btn svg { width: 23px; height: 23px; }
.icon-btn:active { background: #f1f5f3; transform: scale(.94); }
@media (hover: hover) { .icon-btn:hover { background: #f4f7f6; } }

/* ======== 视图切换 ======== */
.view { display: none; padding: 0 16px 108px; }
.view.is-active { display: block; animation: viewIn .32s cubic-bezier(.22, .7, .25, 1); }
@keyframes viewIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

/* ======== Hero（原图素材，全宽出血） ======== */
.hero {
  margin: 0 -16px;
  background: #f2f4f6;
}
.hero-img {
  display: block;
  width: 100%;
  height: auto;
}

/* ======== 了解入口 ======== */
.learn-pill {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  margin-top: 16px;
  padding: 13px 14px;
  border-radius: 14px;
  background: #eef3ff;
  color: #1b53e0;
  font-size: 13px;
  font-weight: 600;
  transition: background .18s, transform .12s;
}
.learn-pill svg:first-child { width: 18px; height: 18px; flex: none; }
.learn-pill span { flex: 1; text-align: left; }
.learn-pill .chev { width: 16px; height: 16px; color: #5b81ff; }
.learn-pill:active { transform: scale(.99); background: #e5edff; }
@media (hover: hover) { .learn-pill:hover { background: #e7eeff; } }

/* ======== 新人卡 ======== */
.newbie {
  position: relative;
  margin-top: 16px;
  padding: 20px;
  border-radius: var(--radius-l);
  background:
    radial-gradient(90% 120% at 100% 0%, #e3fbf3 0%, rgba(227, 251, 243, 0) 62%),
    linear-gradient(150deg, #f2fcf8 0%, #eaf8f2 100%);
  border: 1px solid #e6f6ef;
  overflow: hidden;
}
.newbie-label {
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 600;
  color: #1c2a26;
}
.newbie-rate { display: flex; align-items: baseline; gap: 2px; }
.newbie-rate .num { font-size: 44px; font-weight: 800; letter-spacing: -2px; line-height: 1.05; }
.newbie-rate .pct { font-size: 30px; font-weight: 700; letter-spacing: -1px; }
.newbie-rate .apy {
  margin-left: 6px;
  font-size: 15px;
  font-weight: 600;
  color: #6d7a75;
  letter-spacing: .6px;
}
.newbie-mid {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}
.newbie-sub { font-size: 13px; color: #4d5a55; }
.plus-badge {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  height: 20px;
  padding: 0 7px;
  border-radius: 6px;
  background: #d8ff6b;
  color: #1d2b08;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: .2px;
}
.plus-badge i { font-style: normal; font-size: 9px; }

.newbie-badge {
  position: absolute;
  right: 16px;
  top: 44px;
  width: 92px;
  height: 92px;
  display: block;
  filter: drop-shadow(0 10px 18px rgba(20, 150, 160, .16));
}

.newbie-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 24px;
}
.newbie-note { font-size: 12px; color: #8a9691; }

.btn-primary {
  padding: 11px 22px;
  border-radius: 99px;
  font-size: 14px;
  font-weight: 700;
  color: #052a26;
  background: linear-gradient(100deg, #37e5d0 0%, #5ceac0 55%, #8ef7c9 100%);
  box-shadow: 0 8px 18px -10px rgba(21, 196, 175, .85), inset 0 1px 0 rgba(255, 255, 255, .65);
  transition: transform .12s, box-shadow .2s, filter .2s;
}
.btn-primary:active { transform: scale(.97); filter: brightness(.97); }
@media (hover: hover) { .btn-primary:hover { box-shadow: 0 10px 22px -10px rgba(21, 196, 175, .95); } }
.btn-primary.block { display: block; width: 100%; text-align: center; padding: 15px; font-size: 15px; border-radius: 16px; }
.btn-primary[disabled] { opacity: .5; box-shadow: none; cursor: not-allowed; }

/* ======== 区块 ======== */
.block { margin-top: 26px; }
.block-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.block-head h2 { margin: 0; font-size: 17px; font-weight: 700; letter-spacing: -.2px; }
.link {
  display: inline-flex;
  align-items: center;
  gap: 1px;
  font-size: 13px;
  color: var(--ink-3);
  padding: 4px 0 4px 8px;
  transition: color .18s;
}
.link svg { width: 15px; height: 15px; }
@media (hover: hover) { .link:hover { color: #0bb89f; } }

/* 横滑卡片 */
.hscroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  margin: 0 -16px;
  padding: 2px 16px 6px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.hscroll::-webkit-scrollbar { display: none; }
.pcard {
  flex: none;
  width: 158px;
  padding: 15px 14px;
  border-radius: var(--radius-m);
  background: var(--card);
  scroll-snap-align: start;
  text-align: left;
  transition: transform .16s, background .18s;
  animation: rise .45s both;
}
.pcard:active { transform: scale(.975); }
@media (hover: hover) { .pcard:hover { background: #eef8f4; } }
.pcard-rate { display: flex; align-items: baseline; gap: 3px; }
.pcard-rate b { font-size: 23px; font-weight: 800; letter-spacing: -.6px; font-variant-numeric: tabular-nums; }
.pcard-rate i { font-style: normal; font-size: 12px; font-weight: 700; }
.pcard-rate em { font-style: normal; font-size: 10px; color: var(--ink-3); margin-left: 2px; }
.pcard-coin { display: flex; align-items: center; gap: 7px; margin-top: 18px; }
.pcard-sym { font-size: 13px; font-weight: 600; color: #47525a; letter-spacing: .1px; }
.pcard-holders { margin-top: 6px; font-size: 11px; color: #a7b0b7; }
.pcard-holders b { font-weight: 600; color: #8a949b; }

/* ======== 列表 ======== */
.list-card {
  border-radius: var(--radius-l);
  background: var(--card);
  padding: 4px 6px;
  overflow: hidden;
}
.row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 10px;
  border-radius: 16px;
  text-align: left;
  transition: background .18s, transform .12s;
}
.row + .row { position: relative; }
.row + .row::before {
  content: "";
  position: absolute;
  left: 62px;
  right: 12px;
  top: 0;
  height: 1px;
  background: rgba(17, 60, 50, .055);
}
.row:active { background: #ecf7f2; transform: scale(.995); }
@media (hover: hover) { .row:hover { background: #eff8f4; } }
.row-main { flex: 1; min-width: 0; }
.row-name { display: block; font-size: 15px; font-weight: 600; letter-spacing: .1px; }
.row-sub {
  display: block;
  margin-top: 3px;
  font-size: 11.5px;
  color: #9aa4ad;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.row-right { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.row-rate { display: block; font-size: 18px; font-weight: 800; letter-spacing: -.4px; font-variant-numeric: tabular-nums; }
.row-rate small { font-size: 10px; font-weight: 600; color: #9aa4ad; margin-left: 1px; letter-spacing: 0; }
.row-extra { display: block; font-size: 10px; font-weight: 600; color: #9aa4ad; letter-spacing: .6px; }
.row .chev-r { width: 16px; height: 16px; color: #c3cbd1; flex: none; }

/* 币种图标（截图裁切素材） */
.coin {
  flex: none;
  width: 40px;
  height: 40px;
  display: block;
  border-radius: 50%;
  object-fit: contain;
}
.coin-sm { width: 30px; height: 30px; }

/* ======== 产品页 ======== */
.page-head { padding: 6px 2px 16px; }
.page-head h2 { margin: 0 0 6px; font-size: 24px; font-weight: 800; letter-spacing: -.6px; }
.page-head p { margin: 0; font-size: 12.5px; color: #8b959d; }
.page-head p b { color: #0c1116; font-weight: 700; }

.segmented {
  display: flex;
  gap: 4px;
  padding: 4px;
  border-radius: 14px;
  background: #f3f6f5;
  margin-bottom: 12px;
}
.seg {
  flex: 1;
  padding: 9px 0;
  border-radius: 11px;
  font-size: 13.5px;
  font-weight: 600;
  color: #7c868e;
  transition: all .2s;
}
.seg.is-active {
  background: #fff;
  color: #0b1014;
  box-shadow: 0 2px 8px -4px rgba(12, 40, 34, .3);
}

.search-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 13px;
  margin-bottom: 14px;
  border-radius: 13px;
  background: #f3f6f5;
  color: #9aa4ad;
}
.search-wrap svg { width: 17px; height: 17px; flex: none; }
.search-wrap input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: none;
  font-size: 14px;
  color: #0b1014;
}
.search-wrap input::placeholder { color: #a9b2b8; }

/* ======== 我的 ======== */
.assets-card {
  position: relative;
  margin-top: 8px;
  padding: 22px 20px 20px;
  border-radius: 24px;
  background:
    radial-gradient(120% 120% at 100% 0%, #0f3b34 0%, rgba(15, 59, 52, 0) 55%),
    linear-gradient(140deg, #0b1412 0%, #0d1f1b 100%);
  color: #fff;
  overflow: hidden;
}
.assets-top {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: rgba(255, 255, 255, .62);
}
.eye { color: rgba(255, 255, 255, .5); padding: 2px; }
.eye svg { width: 19px; height: 19px; }
.assets-value {
  margin: 8px 0 4px;
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -1px;
  font-variant-numeric: tabular-nums;
}
.assets-value.is-hidden { letter-spacing: 3px; }
.assets-meta {
  display: flex;
  gap: 26px;
  margin-top: 16px;
  position: relative;
  z-index: 2;
}
.assets-meta div { display: flex; flex-direction: column; gap: 4px; }
.assets-meta span { font-size: 11.5px; color: rgba(255, 255, 255, .55); }
.assets-meta b { font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; }
.assets-meta b.gain { color: #5df0c4; }
.assets-wave {
  position: absolute;
  right: -40px;
  bottom: -60px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  border: 34px solid rgba(0, 224, 198, .16);
  box-shadow: 0 0 0 22px rgba(0, 224, 198, .06);
}

.pos-card {
  padding: 14px 14px 12px;
  border-radius: 18px;
  background: var(--card);
  margin-bottom: 10px;
  animation: rise .4s both;
}
.pos-top { display: flex; align-items: center; gap: 11px; }
.pos-name { font-size: 14.5px; font-weight: 700; }
.pos-sub { font-size: 11.5px; color: #98a2aa; margin-top: 2px; }
.pos-amount { margin-top: 12px; display: flex; align-items: flex-end; justify-content: space-between; }
.pos-amount b { font-size: 22px; font-weight: 800; letter-spacing: -.5px; font-variant-numeric: tabular-nums; }
.pos-amount span { font-size: 11.5px; color: #8d979e; }
.pos-bar { margin-top: 10px; height: 5px; border-radius: 99px; background: #e6f0ec; overflow: hidden; }
.pos-bar i {
  display: block;
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, #0bd3ae, #7bf0bf);
  transition: width .8s cubic-bezier(.2, .8, .2, 1);
}
.pos-foot { display: flex; justify-content: space-between; margin-top: 8px; font-size: 11px; color: #98a2aa; }

.empty {
  padding: 34px 18px;
  border-radius: 18px;
  background: var(--card);
  text-align: center;
}
.empty p { margin: 0 0 14px; font-size: 13px; color: #93a0a0; }
.empty .btn-ghost {
  padding: 10px 20px;
  border-radius: 99px;
  background: #e4f7f0;
  color: #0a8f78;
  font-size: 13px;
  font-weight: 700;
}

.tools { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.tool {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 6px;
  border-radius: 16px;
  background: var(--card);
  font-size: 12px;
  color: #4f5b62;
  transition: transform .12s, background .18s;
}
.tool svg { width: 22px; height: 22px; color: #0f9c84; }
.tool:active { transform: scale(.97); background: #edf7f3; }

/* ======== 底部导航 ======== */
.tabbar {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: calc(var(--tab-h) + var(--safe-b));
  padding-bottom: var(--safe-b);
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  border-top: 1px solid rgba(14, 40, 36, .06);
  z-index: 40;
}
.tab {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 8px 18px;
  font-size: 10.5px;
  color: #a3adb4;
  transition: color .2s;
}
.tab svg { width: 22px; height: 22px; }
.tab.is-active { color: #0b1014; font-weight: 700; }
.tab.is-active::after {
  content: "";
  position: absolute;
  bottom: 1px;
  width: 18px;
  height: 3px;
  border-radius: 99px;
  background: linear-gradient(90deg, #14dfc2, #7bf0bf);
  animation: dotIn .3s both;
}
@keyframes dotIn { from { transform: scaleX(.2); opacity: 0; } to { transform: none; opacity: 1; } }

/* ======== 遮罩与弹层 ======== */
.mask {
  position: fixed;
  inset: 0;
  background: rgba(6, 14, 13, .44);
  backdrop-filter: blur(2px);
  z-index: 60;
  animation: fade .24s both;
}
.mask[hidden] { display: none; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

.sheet {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  z-index: 70;
  background: #fff;
  border-radius: 26px 26px 0 0;
  box-shadow: 0 -18px 50px -20px rgba(6, 30, 26, .35);
  padding-bottom: calc(20px + var(--safe-b));
  animation: sheetUp .34s cubic-bezier(.18, .9, .28, 1);
  max-height: 88vh;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.sheet[hidden] { display: none; }
@keyframes sheetUp { from { transform: translate(-50%, 100%); } to { transform: translate(-50%, 0); } }
.sheet-grab {
  width: 38px;
  height: 4px;
  border-radius: 99px;
  background: #e2e8e6;
  margin: 10px auto 4px;
}
.sheet-body { padding: 8px 20px 0; }

.sheet-title-row { display: flex; align-items: center; gap: 11px; padding: 6px 0 14px; }
.sheet-title-row h3 { margin: 0; font-size: 17px; font-weight: 800; }
.sheet-title-row p { margin: 2px 0 0; font-size: 12px; color: #97a1a8; }
.sheet-close {
  margin-left: auto;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #f3f6f5;
  display: grid;
  place-items: center;
  color: #6c777e;
  font-size: 16px;
}

.apy-hero {
  padding: 18px;
  border-radius: 20px;
  background: linear-gradient(150deg, #f2fcf8, #e9f8f2);
  border: 1px solid #e6f6ef;
  margin-bottom: 16px;
}
.apy-hero .label { font-size: 12px; color: #7c8983; }
.apy-hero .val { font-size: 38px; font-weight: 800; letter-spacing: -1.4px; line-height: 1.1; margin-top: 2px; }
.apy-hero .val small { font-size: 15px; font-weight: 700; color: #6d7a75; margin-left: 6px; letter-spacing: 0; }

.kv { display: flex; justify-content: space-between; padding: 11px 2px; font-size: 13px; }
.kv span { color: #8b959c; }
.kv b { font-weight: 600; }
.kv + .kv { border-top: 1px solid #f2f5f4; }

.amount-box {
  margin: 14px 0 10px;
  padding: 14px;
  border-radius: 16px;
  background: #f6f9f8;
  border: 1px solid #eef3f1;
}
.amount-box label { font-size: 11.5px; color: #98a2aa; }
.amount-line { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.amount-line input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: none;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -.5px;
  color: #0b1014;
}
.amount-line input::-webkit-outer-spin-button,
.amount-line input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.amount-unit { font-size: 13px; font-weight: 700; color: #55616a; }
.max-btn {
  font-size: 11.5px;
  font-weight: 700;
  color: #0a8f78;
  background: #e3f8f0;
  padding: 5px 9px;
  border-radius: 8px;
}
.chips { display: flex; gap: 8px; margin-bottom: 14px; }
.chip {
  flex: 1;
  padding: 8px 0;
  border-radius: 10px;
  background: #f4f7f6;
  font-size: 12.5px;
  font-weight: 600;
  color: #5c686f;
  transition: all .16s;
}
.chip:active, .chip.is-on { background: #e0f8ef; color: #087f6b; }
.estimate {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 14px 16px;
  border-radius: 14px;
  background: #f8fbfa;
  font-size: 12.5px;
  color: #7f8b91;
  margin-bottom: 16px;
}
.estimate b { font-size: 18px; font-weight: 800; color: #0b1014; font-variant-numeric: tabular-nums; }

.sheet-note { margin: 12px 0 0; font-size: 11px; color: #a3adb3; line-height: 1.55; }

/* 申购成功 */
.success { padding: 22px 0 10px; text-align: center; }
.success .tick {
  width: 72px;
  height: 72px;
  margin: 0 auto 16px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(140deg, #2fe6c8, #7bf0bf);
  box-shadow: 0 14px 30px -12px rgba(20, 200, 170, .7);
  animation: pop .45s cubic-bezier(.2, 1.4, .4, 1) both;
}
.success .tick svg { width: 36px; height: 36px; }
@keyframes pop { from { transform: scale(.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.success h3 { margin: 0 0 6px; font-size: 19px; font-weight: 800; }
.success p { margin: 0; font-size: 13px; color: #8b959c; }
.success .amount-big { margin: 14px 0 4px; font-size: 28px; font-weight: 800; letter-spacing: -.8px; }

/* ======== Toast ======== */
.toast {
  position: fixed;
  left: 50%;
  bottom: 96px;
  transform: translate(-50%, 14px);
  max-width: 320px;
  padding: 11px 18px;
  border-radius: 99px;
  background: rgba(11, 20, 18, .92);
  color: #fff;
  font-size: 13px;
  letter-spacing: .1px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s, transform .28s;
  z-index: 90;
  text-align: center;
  backdrop-filter: blur(6px);
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ======== 其他 ======== */
.disclaimer {
  margin: 22px 2px 0;
  font-size: 11px;
  line-height: 1.65;
  color: #a8b1b7;
}
.stamp { margin: 6px 2px 0; font-size: 10.5px; color: #c0c8cc; }

/* ======== 文章页 ======== */
.app .appbar-back { display: none; }
.app.is-article .appbar-back { display: grid; }
.app.is-article .appbar { justify-content: flex-start; }
.app.is-article #btnHelp { display: none; }
.app.is-article .appbar-title {
  max-width: calc(100% - 104px);
  font-size: 16px;
  letter-spacing: 0;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.app.is-article .tabbar { display: none; }

.view.article { padding: 0 0 48px; }

.art-crumbs {
  padding: 14px 24px 0;
  font-size: 13px;
  line-height: 1.5;
  color: #6b7780;
  letter-spacing: .2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.art-crumbs i { font-style: normal; margin: 0 7px; color: #a5aeb4; }

.art-h1 {
  margin: 34px 24px 0;
  font-size: 29px;
  line-height: 1.4;
  font-weight: 700;
  letter-spacing: .3px;
  color: #0d1117;
}

.art-tag {
  display: inline-block;
  margin: 18px 24px 0;
  padding: 6px 12px;
  font-size: 12.5px;
  line-height: 1.4;
  color: #59646d;
  background: #f2f4f5;
  border-radius: 6px;
}

.art-banner {
  display: block;
  width: calc(100% - 48px);
  margin: 22px 24px 0;
  border-radius: 3px;
}

.art-body { padding: 0 24px; }
.art-body p {
  margin: 17px 0 0;
  font-size: 15.5px;
  line-height: 1.95;
  color: #191e24;
  letter-spacing: .1px;
}
.art-body h2 {
  margin: 40px 0 2px;
  font-size: 29px;
  line-height: 1.42;
  font-weight: 700;
  color: #0d1117;
  letter-spacing: .2px;
}
.art-body h3 {
  margin: 28px 0 0;
  font-size: 19px;
  line-height: 1.55;
  font-weight: 700;
  color: #0d1117;
}
.art-body strong { font-weight: 700; }

.art-fig {
  display: block;
  width: 248px;
  max-width: 74%;
  height: auto;
  margin: 30px auto 10px;
}

.art-note {
  margin: 26px 0 0;
  font-size: 14.5px;
  line-height: 1.9;
  font-style: italic;
  color: #39424b;
}

.art-date {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 16px 0 0;
  font-size: 12.5px;
  color: #9aa4ab;
}
.art-date svg { width: 13px; height: 13px; }

.art-hr { margin: 24px 0 8px; border: 0; border-top: 1px dashed #e3e7e9; }

.art-rel { display: flex; align-items: center; gap: 14px; padding: 10px 0; }
.art-rel .circ {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid #d9dee1;
  display: grid;
  place-items: center;
  color: #9aa4ab;
}
.art-rel .circ svg { width: 18px; height: 18px; }
.art-rel p { margin: 0; font-size: 13.5px; line-height: 1.65; color: #6d7880; }

.art-rec-title {
  margin: 30px 24px 6px;
  font-size: 26px;
  line-height: 1.4;
  font-weight: 700;
  color: #0d1117;
}
.art-rec + .art-rec { margin-top: 26px; }
.art-rec-cover { display: block; width: 100%; }
.art-rec-in { padding: 16px 24px 0; }
.art-rec-in .art-tag { margin: 0 0 12px; }
.art-rec-in h3 {
  margin: 0;
  font-size: 18.5px;
  line-height: 1.55;
  font-weight: 600;
  color: #0d1117;
}
.art-rec-in p {
  margin: 12px 0 0;
  font-size: 13.5px;
  line-height: 1.85;
  color: #5a646c;
}
.art-rec-in .art-date { margin-top: 12px; }

@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ======== 产品详情页 ======== */
.app.has-back .appbar-back {
  display: grid;
  position: absolute;
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
}
.app.has-back .appbar-title { max-width: calc(100% - 104px); }
.app.has-back .tabbar { display: none; }

.view.pd { padding: 0 0 132px; }

.pd-hero {
  padding: 14px 16px 0;
  background: linear-gradient(180deg, #e6fafd 0%, #f4fdfe 46%, #ffffff 100%);
}
.pd-head { display: flex; align-items: center; gap: 12px; }
.pd-coin img { display: block; width: 54px; height: 54px; border-radius: 50%; }
.pd-title { min-width: 0; }
.pd-title h2 {
  margin: 0;
  font-size: 23px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: .4px;
  color: #0d1117;
}
.pd-title p {
  margin: 5px 0 0;
  font-size: 13px;
  color: #6b7780;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pd-title p i { font-style: normal; margin: 0 7px; color: #b6bec3; }
.pd-apy { margin-left: auto; text-align: right; }
.pd-apy b { display: block; font-size: 25px; line-height: 1.06; font-weight: 700; color: #0d1117; letter-spacing: -.2px; }
.pd-apy b i { font-style: normal; font-size: 15px; font-weight: 700; margin-left: 1px; }
.pd-apy span { display: block; margin-top: 2px; font-size: 12px; color: #9aa4ab; }

.pd-chart { position: relative; margin-top: 4px; }
.pd-svg { display: block; width: 100%; height: auto; }
.pd-lab {
  position: absolute;
  transform: translate(-50%, -132%);
  font-size: 12.5px;
  color: #7c878f;
  white-space: nowrap;
}
.pd-lab-end { transform: translate(-100%, 6%); }

.pd-ranges { display: flex; justify-content: space-between; padding: 14px 16px 0; }
.pd-range {
  min-width: 62px;
  padding: 9px 0;
  border-radius: 14px;
  font-size: 14.5px;
  color: #8b959c;
  transition: background .18s, color .18s;
}
.pd-range.is-on { background: #eef4f3; color: #0d1117; font-weight: 600; }

.pd-h {
  margin: 26px 16px 0;
  font-size: 19px;
  line-height: 1.3;
  font-weight: 700;
  color: #0d1117;
}
.pd-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 12px;
  padding: 16px 16px 0;
}
.pd-cell > span { display: block; margin-bottom: 9px; font-size: 12.5px; color: #9aa4ab; }
.pd-val { display: flex; align-items: center; gap: 7px; min-width: 0; font-size: 15px; color: #0d1117; }
.pd-val b { font-weight: 700; }
.pd-proto { padding: 0; text-align: left; }
.pd-proto .chev-r { width: 15px; height: 15px; color: #b3bbc0; }
.pd-num { display: block; font-size: 15.5px; font-weight: 700; color: #0d1117; }
.pd-addr { font-weight: 700; letter-spacing: .1px; }
.pd-native { font-size: 14.5px; font-weight: 600; color: #4d585f; }

.tag-ico { width: 20px; height: 20px; border-radius: 50%; flex: 0 0 20px; object-fit: cover; }
.tag-letter {
  display: grid;
  place-items: center;
  font-size: 10px;
  font-weight: 800;
  color: #fff;
  letter-spacing: .2px;
}

.pd-row { margin: 20px 16px 0; }
.pd-row > span { display: block; margin-bottom: 9px; font-size: 12.5px; color: #9aa4ab; }
.pd-row-val { display: flex; align-items: center; gap: 8px; }
.pd-copy {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  color: #9aa4ab;
  border-radius: 8px;
}
.pd-copy svg { width: 17px; height: 17px; }
.pd-copy:active { background: #f1f5f5; }

.pd-safe {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 20px 16px 0;
  padding: 11px 12px;
  border-radius: 10px;
  background: #eafaf5;
  font-size: 13px;
  color: #2f6b5e;
}
.pd-check {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #25d0a6;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}

.pd-note { margin: 28px 16px 0; text-align: center; font-size: 13.5px; color: #4d585f; }

.pd-cta {
  position: fixed;
  left: 50%;
  bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  width: min(398px, calc(100% - 32px));
  z-index: 20;
}
.btn-buy {
  width: 100%;
  height: 52px;
  border-radius: 26px;
  background: #2fe3dd;
  color: #04302e;
  font-size: 16px;
  font-weight: 700;
  box-shadow: 0 12px 24px -12px rgba(18, 207, 224, .7);
  transition: transform .15s, filter .15s;
}
.btn-buy:active { transform: scale(.985); filter: brightness(.97); }

/* ======== 我的理财 ======== */
.app.is-mine #btnHelp { display: none; }
.appbar-actions { display: none; gap: 2px; }
.app.is-mine .appbar-actions { display: flex; }

.view.mine { padding: 0 16px 40px; }

.gain { color: #0fb9c9; }

.m-assets {
  margin-top: 10px;
  padding: 16px 16px 18px;
  border-radius: var(--radius-l);
  background: linear-gradient(180deg, #edfaf7 0%, #f5fdfc 62%, #fbfefd 100%);
  border: 1px solid #eaf6f3;
}
.m-assets-head { font-size: 12.5px; color: #7c8b86; }
.m-val {
  margin: 10px 0 0;
  font-size: 34px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: -.6px;
  color: #0d1117;
}
.m-val .cur { font-size: 27px; font-weight: 700; margin-right: 1px; }
.m-val .dec { font-size: 21px; font-weight: 700; letter-spacing: 0; }
.m-meta { display: flex; gap: 46px; margin-top: 18px; }
.m-meta span { display: block; font-size: 12px; color: #8b9893; }
.m-meta b { display: block; margin-top: 5px; font-size: 13.5px; font-weight: 600; }

.m-tabs { display: flex; align-items: center; gap: 6px; margin: 18px 0 4px; }
.m-tab {
  padding: 9px 16px;
  border-radius: 14px;
  font-size: 14.5px;
  color: #6d7a76;
  transition: background .18s, color .18s, box-shadow .18s;
}
.m-tab.is-on {
  background: #fff;
  color: #0d1117;
  font-weight: 600;
  box-shadow: 0 2px 10px -4px rgba(9, 60, 52, .22), inset 0 0 0 1px #eef4f2;
}

.m-body { padding-top: 8px; }

.hold-group { margin-top: 10px; }
.hold-head {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 12px 2px;
  text-align: left;
}
.hold-head .coin { width: 32px; height: 32px; }
.hold-sym { flex: 1; font-size: 17px; font-weight: 700; letter-spacing: .2px; }
.hold-right { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; }
.hold-amt { display: flex; align-items: center; gap: 4px; font-size: 16px; font-weight: 700; }
.hold-amt .tri { width: 14px; height: 14px; color: #9aa4ad; transition: transform .2s ease; }
.hold-group:not(.is-open) .hold-amt .tri { transform: rotate(180deg); }
.hold-cny { font-size: 12px; color: #8b959c; }

.hold-group:not(.is-open) .proto-card { display: none; }

.proto-card {
  padding: 14px;
  margin-top: 10px;
  border-radius: var(--radius-m);
  background: #f4faf9;
  cursor: pointer;
}
.proto-head { display: flex; align-items: center; gap: 7px; padding-bottom: 12px; }
.proto-head b { font-size: 15px; font-weight: 700; }
.proto-net { font-size: 14px; color: #6d7a76; }
.proto-head .chev-r { margin-left: auto; width: 16px; height: 16px; flex: 0 0 16px; color: #b3bbc0; }
.proto-kv {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 0;
  border-top: 1px solid #e9f2ef;
  font-size: 13.5px;
}
.proto-head + .proto-kv { padding-top: 11px; }
.proto-kv span { color: #7c8b86; }
.proto-kv b { font-weight: 600; }

.inc-head { display: flex; align-items: center; justify-content: space-between; margin: 6px 0 14px; }
.inc-head b { font-size: 17px; font-weight: 700; }
.inc-head em { font-style: normal; font-size: 15px; margin-left: 6px; }
.inc-month {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 14px;
  background: #f4faf9;
  font-size: 14px;
  color: #0d1117;
}
.inc-month svg { width: 15px; height: 15px; color: #7c8b86; }

.cal-week { display: grid; grid-template-columns: repeat(7, 1fr); margin-bottom: 8px; }
.cal-week span { text-align: center; font-size: 12.5px; color: #8b959c; }

.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal-cell {
  min-height: 52px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 9px 2px 6px;
  border-radius: 11px;
  background: #f6faf9;
}
.cal-cell b { font-size: 13.5px; font-weight: 500; color: #0d1117; line-height: 1; }
.cal-cell i { margin-top: 5px; font-style: normal; font-size: 9.5px; color: #0fb9c9; letter-spacing: -.2px; }
.cal-cell.is-out { background: transparent; }
.cal-cell.is-out b { color: #c3cacd; }
.cal-cell.is-today { background: #d7f6f3; }
.cal-cell.is-today b { color: #0697a4; font-weight: 700; }

.inc-list { margin-top: 18px; }
.inc-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px;
  margin-bottom: 10px;
  border-radius: var(--radius-m);
  background: #f4faf9;
}
.inc-row .coin { width: 34px; height: 34px; }
.inc-main { flex: 1; min-width: 0; }
.inc-main b { display: block; font-size: 14.5px; font-weight: 700; }
.inc-main span { display: block; margin-top: 3px; font-size: 12px; color: #8b959c; }
.inc-gain { text-align: right; }
.inc-gain b { display: block; font-size: 14.5px; font-weight: 600; }
.inc-gain span { display: block; margin-top: 3px; font-size: 12px; color: #8b959c; }

.month-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 15px 4px;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  color: #0d1117;
  text-align: left;
}
.month-row:last-child { border-bottom: 0; }
.month-row.is-on { color: #0fb9c9; font-weight: 600; }
.month-row .ok { width: 19px; height: 19px; }

/* ======== 首页理财资产卡 ======== */
.home-assets {
  display: block;
  width: 100%;
  margin: 4px 0 2px;
  padding: 15px 16px 17px;
  border-radius: var(--radius-l);
  text-align: left;
  background: linear-gradient(180deg, #eefaf8 0%, #f6fdfc 66%, #fbfefd 100%);
  border: 1px solid #eaf6f3;
}
.ha-head { display: flex; align-items: center; justify-content: space-between; font-size: 12.5px; color: #7c8b86; }
.ha-head svg { width: 16px; height: 16px; color: #a6b0ad; }
.ha-val { margin: 10px 0 0; font-size: 30px; line-height: 1; font-weight: 700; letter-spacing: -.5px; color: #0d1117; }
.ha-val .cur { font-size: 24px; }
.ha-val .dec { font-size: 19px; }
.ha-meta { display: flex; gap: 42px; margin-top: 15px; }
.ha-meta span { display: block; font-size: 12px; color: #8b9893; }
.ha-meta b { display: block; margin-top: 4px; font-size: 13px; font-weight: 600; }

:focus-visible { outline: 2px solid #12c9ae; outline-offset: 2px; border-radius: 8px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

