
*{box-sizing:border-box}
:root{color-scheme:light;--ink:#101e3f;--muted:#65748e;--line:#dde6f8;--blue:#234eef;--panel:#f7f8fe}
body{margin:0;background:#edf1fc;color:var(--ink);font-family:Arial,Helvetica,sans-serif}
button{font:inherit;color:inherit;cursor:pointer}
button:focus-visible{outline:2px solid #4556ee;outline-offset:3px}
.shell{width:100%;max-width:613px;margin:auto}
.app{--u:calc(100vw / 613);padding:0 calc(15 * var(--u)) calc(27 * var(--u));font-size:calc(20 * var(--u));background:linear-gradient(#edf1fc,#eaf0fc)}
.top{height:calc(82 * var(--u));display:flex;align-items:flex-start;justify-content:space-between;padding:calc(10 * var(--u)) calc(11 * var(--u)) 0 calc(18 * var(--u))}
.brand{display:flex;align-items:center;gap:calc(4 * var(--u));font-size:calc(29 * var(--u));font-weight:800;letter-spacing:-.045em;margin-top:calc(5 * var(--u))}
.brand img{width:calc(43 * var(--u));height:calc(42 * var(--u));display:block}
.icon{width:1.45em;height:1.45em;display:block;flex:none;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.bell{position:relative;border:1px solid #d7e2fb;background:#f5f7ff;border-radius:calc(20 * var(--u));width:calc(59 * var(--u));height:calc(56 * var(--u));display:grid;place-items:center;box-shadow:0 3px 7px #748dd51a}
.bell .icon{font-size:calc(22 * var(--u))}
.bell i{position:absolute;right:20%;top:17%;width:calc(9 * var(--u));aspect-ratio:1;background:#ff385a;border-radius:100%}
main{display:grid;gap:calc(21 * var(--u))}
.card,.dock{border:1px solid var(--line);border-radius:calc(23 * var(--u));background:var(--panel);box-shadow:0 calc(6 * var(--u)) calc(13 * var(--u)) #687fd119}
.card{padding:calc(15 * var(--u))}
.bar{display:flex;align-items:center;gap:calc(12 * var(--u));margin-bottom:calc(14 * var(--u));padding-left:calc(5 * var(--u));min-width:0}
h2{font-size:calc(24 * var(--u));margin:0;letter-spacing:-.025em;white-space:nowrap}
.badge{width:calc(45 * var(--u));height:calc(45 * var(--u));display:grid;place-items:center;border-radius:calc(15 * var(--u));color:var(--accent,#1877ff);background:linear-gradient(155deg,#ffffff65,var(--tint,#c9ddfb));box-shadow:0 3px 7px #385aa518,inset 0 1px #ffffffb0;font-size:calc(17 * var(--u));flex:none}
.gold{--tint:#ffdf9d;--accent:#a45a08}.rose{--tint:#ffd0da;--accent:#d32353}
.more{margin-left:auto;white-space:nowrap;border:1px solid #d5e1fc;background:#eff4ff;border-radius:calc(16 * var(--u));color:#123ee1;padding:calc(9 * var(--u)) calc(13 * var(--u));font-size:calc(17 * var(--u));box-shadow:0 2px 5px #6581d414}
.quotes{display:grid;gap:calc(7 * var(--u))}
.quote{display:grid;grid-template-columns:1fr 21% 35%;align-items:center;width:100%;text-align:left;border:1px solid var(--line);border-radius:calc(19 * var(--u));background:#f9faff;min-height:calc(74 * var(--u));padding:calc(8 * var(--u)) calc(12 * var(--u));gap:calc(5 * var(--u))}
.pair{display:flex;align-items:center;gap:calc(10 * var(--u));font-weight:800;white-space:nowrap}
.coin{width:calc(37 * var(--u));height:calc(37 * var(--u));border-radius:100%;background:#ff9b1f;color:white;display:grid;place-items:center;font-size:calc(24 * var(--u))}
.coin.eth{background:#696bfb}.coin svg{width:45%;height:73%;fill:white}
.spark{width:100%;height:auto;overflow:visible}
.quote-value{text-align:right;font-weight:800;font-variant-numeric:tabular-nums;font-size:calc(22 * var(--u));white-space:nowrap}
.change{display:table;margin:calc(3 * var(--u)) 0 0 auto;padding:calc(4 * var(--u)) calc(10 * var(--u));border-radius:999px;color:#d71e42;background:#fce8ee;font-size:calc(17 * var(--u))}
/* Quick actions: the tinted tile, beveled icon plate, and vector glyph are separate. */
.actions{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:calc(7 * var(--u))}
.tile{
  position:relative;display:grid;justify-items:center;align-content:center;
  gap:calc(9 * var(--u));min-height:calc(111 * var(--u));padding:0;
  background:linear-gradient(145deg,var(--tile-top),var(--tile));
  border:1px solid var(--edge);border-radius:calc(20 * var(--u));
  box-shadow:inset 0 1px 1px #fff8,0 1px 2px #26396708;
  font-size:calc(19 * var(--u));font-weight:600;line-height:1.18;
  transition:transform .16s ease,filter .16s ease;
}
.tile .badge{
  position:relative;width:calc(54 * var(--u));height:calc(51 * var(--u));
  overflow:hidden;border-radius:calc(17 * var(--u));
  border:1px solid var(--plate-edge);
  background:linear-gradient(155deg,var(--plate-top) 8%,var(--plate-bottom) 100%);
  box-shadow:inset 0 1px 2px #fff9,inset 0 -1px 2px #fff4,
    0 calc(4 * var(--u)) calc(9 * var(--u)) var(--plate-shadow),
    0 calc(1 * var(--u)) calc(2 * var(--u)) #fff8;
}
.tile .badge .icon{
  position:relative;width:calc(27 * var(--u));height:calc(27 * var(--u));
  stroke-width:2;filter:drop-shadow(0 1px 0 #fff7);
}
.tile:active,.dock :is(button, a):active{transform:translateY(1px);filter:brightness(.98)}
.deposit{
  --tile-top:#e8efff;--tile:#e4ebfc;--edge:#bed2f9;--accent:#237ce8;
  --plate-top:#eff6ff;--plate-bottom:#c3d8fa;--plate-edge:#f2f7ffb8;--plate-shadow:#6796db48;
}
.withdraw{
  --tile-top:#f6f1ff;--tile:#f1edfb;--edge:#e6ddf9;--accent:#7950df;
  --plate-top:#f2eaff;--plate-bottom:#d8c6f6;--plate-edge:#faf4ffbf;--plate-shadow:#a287db43;
}
.service{
  --tile-top:#eaf8f3;--tile:#e5f3ee;--edge:#dcece7;--accent:#087e62;
  --plate-top:#e4faf0;--plate-bottom:#afe8d3;--plate-edge:#effff7bd;--plate-shadow:#68bca548;
}
.learn{
  --tile-top:#fdf7eb;--tile:#faf2e3;--edge:#f2eadb;--accent:#a35b15;
  --plate-top:#fff6e4;--plate-bottom:#ffdda3;--plate-edge:#fff9ebd1;--plate-shadow:#d6a05d45;
}
.hero{position:relative;overflow:hidden;isolation:isolate;border-radius:calc(23 * var(--u));height:calc(188 * var(--u));background:#06142e;color:white;box-shadow:0 3px 9px #193d7f1e}
.hero img{position:absolute;inset:0 0 0 auto;width:52%;height:100%;object-fit:cover;object-position:center top;z-index:-2}
.hero:after{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,#06142e 0%,#06142e 39%,transparent 61%)}
.hero-copy{margin:calc(23 * var(--u)) 0 0 calc(29 * var(--u));width:49%}
.hero-copy b{color:#ffd283;font-size:calc(19 * var(--u))}
.hero h2{white-space:normal;font-size:calc(28 * var(--u));line-height:1.09;color:white;margin:calc(2 * var(--u)) 0 calc(14 * var(--u))}
.hero-copy:after{display:block;content:"";height:calc(3 * var(--u));width:calc(29 * var(--u));border-radius:4px;background:#ffd283}
.dots{position:absolute;bottom:calc(6 * var(--u));left:50%;transform:translateX(-50%);display:flex}
.dot{background:none;border:0;padding:calc(7 * var(--u));display:grid;place-items:center}
.dot:before{content:"";width:calc(10 * var(--u));height:calc(10 * var(--u));background:#a0aec088;border-radius:999px}
.dot[aria-pressed=true]:before{width:calc(28 * var(--u));background:white}
.tabs{display:flex;align-items:center;gap:calc(24 * var(--u));min-width:0}
.tab{position:relative;border:0;background:none;padding:calc(6 * var(--u)) 0 calc(8 * var(--u));font-size:calc(23 * var(--u));font-weight:750;letter-spacing:-.04em;white-space:nowrap;color:#69768e}
.tab[aria-selected=true]{color:var(--ink)}
.tab[aria-selected=true]:after{content:"";position:absolute;bottom:0;inset-inline:0;height:calc(3 * var(--u));background:linear-gradient(90deg,#a4a6ff,#484cfa);border-radius:9px}
.articles{display:grid;gap:calc(13 * var(--u))}
.story{width:100%;text-align:left;display:grid;grid-template-columns:minmax(0,1fr) 23%;align-items:center;gap:calc(15 * var(--u));background:#eff3f9;border:1px solid #e5ebf8;border-radius:calc(16 * var(--u));padding:calc(12 * var(--u));min-height:calc(106 * var(--u))}
.story-copy{display:grid;gap:calc(9 * var(--u));min-width:0}
.story strong{font-size:calc(19 * var(--u));line-height:1.3;overflow-wrap:anywhere}
.story time{color:var(--muted);font-size:calc(16 * var(--u))}
.story img{width:100%;aspect-ratio:1.33;object-fit:cover;border-radius:calc(10 * var(--u));display:block}
.empty{font-size:calc(18 * var(--u));color:var(--muted);margin:calc(14 * var(--u)) 0}
.dock{
  display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:calc(13 * var(--u));
  margin-top:calc(26 * var(--u));padding:calc(12 * var(--u));
  background:linear-gradient(145deg,#f8f9ff,#f4f6fd);
}
.dock :is(button, a){
  display:grid;justify-items:center;align-content:center;gap:calc(7 * var(--u));
  padding:0;border:0;border-radius:calc(20 * var(--u));background:none;
  color:#6c7b93;height:calc(80 * var(--u));font-size:calc(17 * var(--u));
  font-weight:500;line-height:1.12;transition:transform .16s ease,filter .16s ease;
}
.dock :is(button, a)[aria-current=page]{
  background:linear-gradient(145deg,#e9e7ff,#e0dffc);color:#4a55ef;
  box-shadow:inset 0 1px 0 #fff6,0 1px 1px #6977c412;
}
.dock .icon{
  width:calc(30 * var(--u));height:calc(30 * var(--u));
  stroke:url(#dock-stroke);stroke-width:1.65;
  filter:drop-shadow(0 1px 0 #fff9);
}
.dock [aria-current] .icon{
  fill:url(#home-fill);stroke:none;
  filter:drop-shadow(0 1px 0 #fff8) drop-shadow(0 1px 2px #595eee26);
}
@media(prefers-reduced-motion:reduce){.tile,.dock :is(button, a){transition:none}}
dialog{width:min(90vw,460px);border:1px solid var(--line);border-radius:18px;background:#f7f8fe;color:var(--ink);padding:22px;box-shadow:0 12px 40px #0f20443d}
dialog::backdrop{background:#10234650}dialog h2{font-size:20px;white-space:normal}dialog p{line-height:1.55;color:#4c5d7a}dialog .more{display:block;font-size:14px;padding:8px 14px}

/* Viewport fallback and fixed navigation for mobile browsers. */
html{-webkit-text-size-adjust:100%;text-size-adjust:100%;width:100%}
body{width:100%;min-width:0}

/* Form controls retain their existing borders while focused. */
input:focus,
textarea:focus,
select:focus,
.asset-select .deposit-select-trigger:focus {
  outline: none;
}

/* Shared surface and action styling for standalone inner pages. */
html[data-theme="light"] body.site-page { background: #edf1fc; }
html[data-theme="light"] .site-page .app { background: linear-gradient(#edf1fc, #eaf0fc); }
html[data-theme="dark"] body.site-page { background: #0c1424; }
html[data-theme="dark"] .site-page .app { background: linear-gradient(#101a2d, #0d1729); }
.site-page.site-page :is(.submit-deposit, button[type="submit"]) {
  border: 1px solid #8db9ff;
  border-radius: calc(30 * var(--u));
  background: linear-gradient(135deg, #32baf5, #246bff 55%, #2042ee);
  color: #fff;
  font-family: inherit;
  font-weight: 700;
  box-shadow: 0 5px 9px #335ede30, inset 0 1px 0 #fff5;
}
.site-page .search-field:focus-within { outline: none; }

/* Shared inner-page header. Reference: deposit_USDT.html. */
.inner-page {
  /* Change this value to resize every inner-page title bar together. */
  --page-header-size: 85;
}

.inner-page .app {
  padding-top: 0 !important;
}
.inner-page .app > main {
  padding-top: 0;
}
.inner-page .page-header {
  --u: calc(min(100vw, 613px) / 613);
  position: relative;
  z-index: 30;
  top: 0;
  right: 0;
  left: 0;
  width: 100%;
  max-width: 613px;
  min-height: 0;
  height: auto;
  margin: 0 auto;
  padding: env(safe-area-inset-top, 0px) 0 0;
  display: block;
  border: 0;
  background: #edf1fc;
  box-shadow: none;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
}
.inner-page .page-header-row {
  position: relative;
  display: grid;
  grid-template-columns: calc(46 * var(--u)) minmax(0, 1fr) calc(46 * var(--u));
  align-items: center;
  gap: 0;
  width: 100%;
  min-height: 0;
  height: calc(var(--page-header-size) * var(--u));
  margin: 0;
  padding: calc(8 * var(--u)) calc(22 * var(--u));
  border: 0;
  border-bottom: 1px solid #dde6f880;
  background: #edf1fc;
  box-shadow: none;
}
.inner-page .page-header.page-header-row {
  position: relative;
  display: grid;
  height: calc(var(--page-header-size) * var(--u) + env(safe-area-inset-top, 0px));
  padding-top: calc(8 * var(--u) + env(safe-area-inset-top, 0px));
}
.inner-page .page-header-row > h1 {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
  margin: 0;
  font: 750 calc(32 * var(--u))/1.2 Arial, Helvetica, sans-serif;
  letter-spacing: -.025em;
  text-align: center;
  white-space: normal;
  color: var(--ink);
}
.inner-page .page-header-row > span {
  grid-column: 3;
  grid-row: 1;
}
.inner-page .page-header-row :is(.back, .news-back) {
  position: static;
  grid-column: 1;
  grid-row: 1;
  justify-self: start;
  inset: auto;
  transform: none;
  display: grid;
  place-items: center;
  flex: none;
  width: calc(46 * var(--u));
  height: calc(46 * var(--u));
  min-width: 0;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 1px solid #fff;
  border-radius: calc(16 * var(--u));
  background: linear-gradient(145deg, #eef3ff, #f8faff);
  box-shadow: 0 3px 6px #687fd122;
  color: #135bff;
  font: 400 calc(23 * var(--u))/normal Arial, Helvetica, sans-serif;
  touch-action: manipulation;
}
.inner-page .page-header-row :is(.back, .news-back) .icon {
  display: block;
  flex: none;
  width: calc(25 * var(--u));
  height: calc(25 * var(--u));
  pointer-events: none;
}
.inner-page .page-header-row > .bell:not(.back) {
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
  width: calc(46 * var(--u));
  height: calc(46 * var(--u));
  padding: 0;
}
.inner-page .page-header-row > .bell:not(.back) .icon {
  width: calc(25 * var(--u));
  height: calc(25 * var(--u));
}
.inner-page .page-header > .service-tabs {
  margin: 0 calc(15 * var(--u)) calc(21 * var(--u));
}
.inner-page .page-header > .vip-tabs {
  margin: 0 calc(20 * var(--u)) calc(12 * var(--u));
}
html[data-theme="dark"] .inner-page :is(.page-header, .page-header-row) {
  background: #101a2d;
  border-color: var(--line);
}
html[data-theme="dark"] .inner-page .page-header-row :is(.back, .news-back) {
  background: linear-gradient(145deg, #263656, #1c2943);
  border-color: #3b507a;
  color: #9bb6ff;
  box-shadow: 0 3px 8px #0002;
}

/* Keep the header in normal flow on pages sensitive to mobile refresh anchoring.
   Sticky positioning preserves the same header appearance while scrolling. */
/* Entry transforms must not trigger automatic 24px scroll compensation. */
.inner-page.flow-header-page {
  overflow-anchor: none;
}
.inner-page.flow-header-page .page-header {
  position: relative;
  top: 0;
}
.inner-page.flow-header-page .app {
  padding-top: 0 !important;
}

/* Native page links inherit the same component appearance as the old buttons. */
:where(a.page-link) { display: inline-block; font: inherit; color: inherit; text-decoration: none; cursor: pointer; }
a.page-link:focus-visible { outline: 2px solid #4556ee; outline-offset: 3px; }

/* All link states retain component colors and never add an underline. */
:where(a:link, a:hover, a:visited, a:active) {
  color: inherit;
  text-decoration: none;
}

/* Headers occupy normal flow and scroll with the page. */
.inner-page .page-header { margin-bottom: calc(18 * var(--u)); }
.inner-page .app > .page-header { width:calc(100% + 30 * var(--u)); max-width:none; margin-inline:calc(-15 * var(--u)); }

.inner-page .shell.app.news-app > .page-header { width:100%; margin-inline:0; }

/* Prepare tagged content before first paint; animate once each block becomes visible. */
.page-entry-enabled .page-entry-item { opacity:0; animation:none!important; }
.page-entry-enabled .page-entry-item.entry-shown { animation:gp-stable-arrive var(--entry-duration,1600ms) cubic-bezier(.22,.65,.3,1) var(--entry-delay,0ms) both!important; }
@keyframes gp-stable-arrive { from{opacity:0;transform:translateY(32px)}to{opacity:1;transform:translateY(0)} }
@media(prefers-reduced-motion:reduce){
 .page-entry-enabled .page-entry-item.entry-shown { animation-name:gp-stable-fade!important;animation-duration:500ms!important; }
}
@keyframes gp-stable-fade { from{opacity:0}to{opacity:1} }

/* Bottom navigation sits flush with the viewport edge on every page. */
.dock { bottom:0; }

/* Shared text-input appearance. Reference: the login form.
   Composite shells keep their icons, units, labels, buttons and horizontal layout. */
:root {
 --input-unit:calc(min(100vw,613px) / 613);
 --input-surface:#f1f4ff;
 --input-border:#ced9f7;
 --input-placeholder:#8290a8;
 --input-radius:calc(15 * var(--input-unit));
 --input-padding-y:calc(17 * var(--input-unit));
 --input-padding-x:calc(16 * var(--input-unit));
 --input-font-size:max(16px,calc(21 * var(--input-unit)));
}
html[data-theme=dark] { --input-surface:#1d2b45; --input-border:var(--line); }
input:is(:not([type]),[type="text"],[type="email"],[type="password"],[type="tel"],[type="number"],[type="search"],[type="url"]) {
 box-sizing:border-box!important;
 min-width:0!important;
 height:auto!important;
 min-height:calc(63 * var(--input-unit))!important;
 padding:var(--input-padding-y) var(--input-padding-x)!important;
 border:1px solid var(--input-border)!important;
 border-radius:var(--input-radius)!important;
 background:var(--input-surface)!important;
 color:var(--ink)!important;
 font:400 var(--input-font-size)/normal Arial,Helvetica,sans-serif!important;
 letter-spacing:normal!important;
 outline:none!important;
 box-shadow:none!important;
}
input:is(:not([type]),[type="text"],[type="email"],[type="password"],[type="tel"],[type="number"],[type="search"],[type="url"])::placeholder { color:var(--input-placeholder)!important;opacity:1!important; }
:is(.input-wrap,.amount-box,.copy-row,.search-field,.country-search,.field-box):has(> input:is(:not([type]),[type="text"],[type="email"],[type="password"],[type="tel"],[type="number"],[type="search"],[type="url"])) {
 min-height:calc(63 * var(--input-unit))!important;
 height:auto!important;
 padding-top:0!important;
 padding-bottom:0!important;
 border:1px solid var(--input-border)!important;
 border-radius:var(--input-radius)!important;
 background:var(--input-surface)!important;
 outline:none!important;
 box-shadow:none!important;
}
:is(.input-wrap,.amount-box,.copy-row,.search-field,.country-search,.field-box):has(> input:is(:not([type]),[type="text"],[type="email"],[type="password"],[type="tel"],[type="number"],[type="search"],[type="url"])) > input:is(:not([type]),[type="text"],[type="email"],[type="password"],[type="tel"],[type="number"],[type="search"],[type="url"]) {
 min-height:0!important;
 padding:var(--input-padding-y) 0!important;
 border:0!important;
 border-radius:0!important;
 background:transparent!important;
}
/* The loan shell has no inner horizontal padding of its own. */
.loan-page .app .amount-box > input:is(:not([type]),[type="text"],[type="email"],[type="password"],[type="tel"],[type="number"],[type="search"],[type="url"]) { padding-inline:var(--input-padding-x)!important; }

/* Fixed navigation: a flow spacer reserves the complete title bar and tabs. */
[data-fixed-header] {
 position:fixed!important;top:0!important;left:0!important;right:0!important;
 width:100%!important;max-width:613px!important;margin:0 auto!important;z-index:50!important;
 --u:calc(min(100vw,613px) / 613);
}
.fixed-header-space { height:var(--fixed-header-height,calc(85 * var(--input-unit) + env(safe-area-inset-top,0px)));flex:none; }
.inner-page .fixed-header-space { margin-bottom:calc(18 * var(--input-unit)); }
.login-page .fixed-header-space,.register-page .fixed-header-space { height:var(--fixed-header-height,calc(158 * var(--input-unit) + env(safe-area-inset-top,0px))); }
body:has([data-fixed-dock]) .app { padding-bottom:calc(var(--fixed-dock-height,110px) + 27 * var(--input-unit))!important; }
[data-fixed-dock] {
 position:fixed!important;bottom:0!important;left:15px!important;right:15px!important;
 width:auto!important;max-width:583px!important;margin:0 auto!important;z-index:50!important;
 --u:calc(min(100vw,613px) / 613);
 padding-bottom:calc(12 * var(--u) + env(safe-area-inset-bottom,0px));
}
html { scroll-padding-top:calc(var(--fixed-header-height,0px) + 12px);scroll-padding-bottom:calc(var(--fixed-dock-height,0px) + 12px); }

/* ======================================================================
   2026-11-16 修改：公共配色、五页底部导航、服务参数行间距。
   后续公共样式优先追加在 common.css，并在注释中标明日期。
   !important 用于覆盖各页面早期样式；前面的规则保持不变。
   ====================================================================== */
:root {
  --site-background:#edf1fc;
  --site-content-background:linear-gradient(#edf1fc,#eaf0fc);
  --site-header-background:#edf1fc;
  --site-primary-background:linear-gradient(135deg,#6977ff,#646dff);
  --navigation-unit:calc(min(100vw,613px) / 613);
  --navigation-background:linear-gradient(145deg,#f8f9ff,#f4f6fd);
  --navigation-border:#dde6f8;
  --navigation-text:#6c7b93;
  --navigation-selected-background:linear-gradient(145deg,#e9e7ff,#e0dffc);
  --navigation-selected-text:#4a55ef;
}
html[data-theme=dark] {
  --site-background:#0c1424;
  --site-content-background:linear-gradient(#101a2d,#0d1729);
  --site-header-background:#101a2d;
  --navigation-background:linear-gradient(145deg,#1b2841,#151f33);
  --navigation-border:#2b3b59;
  --navigation-text:#aab8d1;
  --navigation-selected-background:linear-gradient(135deg,#383c78,#2a3566);
  --navigation-selected-text:#bdc6ff;
}
/* 2026-11-16：公共背景与主要操作配色，保留原有页面布局。 */
body:is(.site-page,[data-fixed-navigation]) { background:var(--site-background)!important; }
body:is(.site-page,[data-fixed-navigation]) .app { background:var(--site-content-background)!important; }
:is(.inner-page .page-header,.inner-page .page-header-row,.login-header,.register-header) {
  background:var(--site-header-background)!important;
}
:is(.login-page #login,.register-page #register,.start-service:not(:disabled),.logout-confirm) {
  background:var(--site-primary-background)!important;
}

/* 2026-11-16：导航公共基础（首页、市场、服务、资产、我的）。 */
.dock[data-shared-navigation] {
  --u:var(--navigation-unit)!important;
  position:fixed!important;
  z-index:100!important;
  top:auto!important;
  bottom:0!important;
  left:15px!important;
  right:15px!important;
  width:auto!important;
  max-width:583px!important;
  height:auto!important;
  min-height:0!important;
  margin:0 auto!important;
  transform:none!important;
  display:grid!important;
  grid-template-columns:repeat(5,minmax(0,1fr))!important;
  gap:calc(13 * var(--u))!important;
  padding:calc(12 * var(--u))!important;
  padding-bottom:calc(12 * var(--u) + env(safe-area-inset-bottom,0px))!important;
  border:1px solid var(--navigation-border)!important;
  border-radius:calc(23 * var(--u))!important;
  background:var(--navigation-background)!important;
  box-shadow:0 calc(6 * var(--u)) calc(13 * var(--u)) #687fd119!important;
}
.dock[data-shared-navigation] :is(a,button) {
  display:grid!important;
  justify-items:center!important;
  align-content:center!important;
  gap:calc(7 * var(--u))!important;
  width:auto!important;
  min-width:0!important;
  height:calc(80 * var(--u))!important;
  min-height:0!important;
  padding:0!important;
  border:0!important;
  border-radius:calc(20 * var(--u))!important;
  background:transparent!important;
  box-shadow:none!important;
  color:var(--navigation-text)!important;
  font-size:calc(17 * var(--u))!important;
  font-weight:500!important;
  line-height:1.12!important;
  text-align:center!important;
  text-decoration:none!important;
}
.dock[data-shared-navigation] [aria-current=page] {
  color:var(--navigation-selected-text)!important;
  background:var(--navigation-selected-background)!important;
  box-shadow:inset 0 1px 0 #fff6,0 1px 1px #6977c412!important;
}
.dock[data-shared-navigation] .icon {
  width:calc(30 * var(--u))!important;
  height:calc(30 * var(--u))!important;
  flex:none!important;
  fill:none!important;
  stroke:url(#dock-stroke)!important;
  stroke-width:1.65!important;
  filter:drop-shadow(0 1px 0 #fff9)!important;
}
.dock[data-shared-navigation] [aria-current=page] .icon {
  stroke:#4a55ef!important;
  stroke-width:1.8!important;
}
.dock[data-nav-current=home] [aria-current=page] .icon,
.dock[data-nav-current=services] [aria-current=page] .icon {
  fill:url(#home-fill)!important;
  stroke:none!important;
  filter:drop-shadow(0 1px 0 #fff8) drop-shadow(0 1px 2px #595eee26)!important;
}
.dock[data-nav-current=assets] [aria-current=page] .icon { stroke:#3154ff!important; }
.dock[data-nav-current=profile] [aria-current=page] .icon { stroke:#4269ff!important; }
html[data-theme=dark] .dock[data-shared-navigation] {
  box-shadow:0 5px 16px #0003!important;
}
html[data-theme=dark] .dock[data-shared-navigation] [aria-current=page] .icon { stroke:#a1b5ff!important; }

/* 2026-11-16：按参考保留服务页的贴底圆角，以及市场页的全宽导航。 */
.dock[data-shared-navigation][data-nav-layout=edge] {
  border-bottom:0!important;
  border-bottom-left-radius:0!important;
  border-bottom-right-radius:0!important;
}
.dock[data-shared-navigation][data-nav-layout=edge] :is(a,button) {
  height:auto!important;
  min-height:calc(80 * var(--u))!important;
  padding:calc(8 * var(--u)) calc(3 * var(--u))!important;
  line-height:1.25!important;
  white-space:normal!important;
}
.dock[data-shared-navigation][data-nav-layout=full],
.dock[data-shared-navigation][data-nav-layout=compact] {
  left:0!important;
  right:0!important;
  width:100%!important;
  max-width:613px!important;
  border-bottom-left-radius:0!important;
  border-bottom-right-radius:0!important;
}
/* 2026-11-16：资产、个人页使用各自参考中的紧凑导航。 */
.dock[data-shared-navigation][data-nav-layout=compact] {
  height:calc(64px + env(safe-area-inset-bottom,0px))!important;
  padding:7px 10px calc(7px + env(safe-area-inset-bottom,0px))!important;
  gap:6px!important;
  border-radius:20px 20px 0 0!important;
}
.dock[data-shared-navigation][data-nav-current=assets] {
  height:calc(62px + env(safe-area-inset-bottom,0px))!important;
  border-bottom:0!important;
}
.dock[data-shared-navigation][data-nav-layout=compact] :is(a,button) {
  height:100%!important;
  gap:4px!important;
  font-size:11px!important;
  border-radius:14px!important;
}
.dock[data-shared-navigation][data-nav-layout=compact] .icon { width:23px!important;height:23px!important; }
@media(max-height:650px) {
  .dock[data-shared-navigation][data-nav-current=assets] { height:calc(56px + env(safe-area-inset-bottom,0px))!important; }
  .dock[data-shared-navigation][data-nav-current=profile] { height:calc(58px + env(safe-area-inset-bottom,0px))!important; }
}
[data-nav-symbols] { position:absolute!important;width:0!important;height:0!important;overflow:hidden!important;pointer-events:none!important; }

/* 2026-11-16：仅增加 Services 参数行之间的上下间距。 */
.services-page .service-card dl { row-gap:calc(18 * var(--u))!important; }

/* 2026-11-16：登录、注册按钮恢复原蓝色渐变；其余主要按钮配色不变。 */
:is(.login-page #login,.register-page #register) {
  background:linear-gradient(135deg,#32baf5,#246bff 55%,#2042ee)!important;
}

/* 2026-11-16：取消触屏点击时浏览器自带的蓝色矩形高亮。
   保留组件本身的背景、选中态和键盘操作时的焦点提示。 */
html,body,body * {
  -webkit-tap-highlight-color:transparent!important;
}
:is(button,a,[role="button"],[role="tab"]):focus:not(:focus-visible) {
  outline:none!important;
}

/* 2026-11-16：可复用的主要操作按钮及筛选选中态，Transactions 使用。 */
.site-page .primary-action { min-height:46px;padding:14px;border:0;border-radius:23px;background:var(--site-primary-background)!important;color:#fff!important;font-size:16px;font-weight:700;box-shadow:inset 0 1px 0 #ffffff40; }
.site-page .primary-action:active { filter:brightness(.96); }
.selection-tabs { display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:3px;padding:4px;border:1px solid var(--line);border-radius:18px;background:#f5f6ff!important;box-shadow:0 4px 8px #687fd119; }
.selection-tabs button { min-width:0;min-height:38px;padding:9px 5px;border:0;border-radius:14px;background:none;color:#64718e;font-size:14px;font-weight:700;transition:background .3s,color .3s; }
.choice-buttons button { min-height:44px;padding:12px;border:1px solid var(--line);border-radius:14px;background:#f5f6ff!important;color:#64718e;font-size:13px;font-weight:600; }
.selection-tabs [aria-selected=true],.choice-buttons [aria-pressed=true] { color:#1245fb!important;background:linear-gradient(135deg,#e1dfff,#d5d4ff)!important;box-shadow:inset 0 1px 0 #ffffff90,0 2px 3px #6a70de12;border-color:#d5d4ff; }
.selection-tabs .more-chevron { display:inline-block;margin-left:3px;transition:transform .15s; }
.selection-tabs [aria-expanded=true] .more-chevron { transform:rotate(180deg); }
html[data-theme=dark] :is(.selection-tabs,.choice-buttons button) { background:#172238!important;color:#aab8d1;border-color:var(--line); }
html[data-theme=dark] :is(.selection-tabs [aria-selected=true],.choice-buttons [aria-pressed=true]) { background:linear-gradient(135deg,#383c78,#2a3566)!important;color:#bdc6ff!important; }
html[data-theme=dark] .selection-tabs button { color:#aab8d1; }

/* 2026-11-16：全站提交及原紫色主要操作按钮统一为蓝色渐变。 */
:root { --site-primary-background:linear-gradient(135deg,#32baf5,#246bff 55%,#2042ee); }
:is(button.primary,a.primary,button.primary-action,a.primary-action,button.submit,button.apply,button[type="submit"],input[type="submit"],.logout-confirm,.start-service):not(:disabled),
.switch[aria-checked=true] .track {
  background:var(--site-primary-background)!important;
}
/* 2026-11-16：成功弹窗只显示标题，保留操作按钮；不影响确认及错误弹窗。 */
dialog.title-only-success { width:min(340px,calc(100vw - 48px));padding:26px 22px 22px;border:1px solid var(--line);border-radius:23px;background:var(--panel);color:var(--ink);box-shadow:0 18px 60px #22375a30;text-align:center; }
dialog.title-only-success h2 { margin:0 0 22px;font:700 22px/1.3 Arial,Helvetica,sans-serif;white-space:normal; }
dialog.title-only-success p { display:none!important; }
dialog.title-only-success .primary-action { width:100%; }

/* 2026-11-16：下载页 Android / iPhone 按钮统一使用公共主按钮渐变。 */
.download-page .buttons .download { background:var(--site-primary-background)!important; }

/* 2026-11-16：将原 #e1dfff / #d5d4ff 选中渐变统一为浅蓝色。
   在公共文件追加覆盖，保留原页面规则与深色模式配色。 */
:root { --site-selection-background:#e0ecff;--site-selection-color:#246cce; }
html:not([data-theme=dark]) :is(.service-tabs [aria-selected=true],.vip-tabs [aria-selected=true],.member-tabs [aria-selected=true],.market-tabs [aria-selected=true],.coupon-tabs [aria-selected=true],.selection-tabs [aria-selected=true],.choice-buttons [aria-pressed=true]) {
  background:var(--site-selection-background)!important;
  color:var(--site-selection-color)!important;
}

/* 2026-11-16：按弹窗标记隐藏说明副标题，保留标题、字段及验证提示。 */
[data-no-dialog-subtitle] [data-dialog-subtitle] { display:none!important; }

/* 2026-11-16：Market 分类切换后，More 在可见前保持隐藏，避免先显示再入场。 */
#more[data-market-more-entry=pending] { opacity:0!important;animation:none!important; }

/* 2026-11-16：五个主导航页面统一尺寸，以首页导航为准，覆盖旧紧凑/全宽规则。 */
.dock[data-fixed-dock][data-shared-navigation] {
  --u:var(--navigation-unit)!important;
  left:15px!important;right:15px!important;width:auto!important;max-width:583px!important;
  height:auto!important;min-height:0!important;margin:0 auto!important;transform:none!important;
  grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:calc(13 * var(--u))!important;
  padding:calc(12 * var(--u))!important;
  padding-bottom:calc(12 * var(--u) + env(safe-area-inset-bottom,0px))!important;
  border:1px solid var(--navigation-border)!important;border-radius:calc(23 * var(--u))!important;
}
.dock[data-fixed-dock][data-shared-navigation] :is(a,button) {
  height:calc(80 * var(--u))!important;min-height:0!important;padding:0!important;
  gap:calc(7 * var(--u))!important;border-radius:calc(20 * var(--u))!important;
  font-size:calc(17 * var(--u))!important;line-height:1.12!important;
}
.dock[data-fixed-dock][data-shared-navigation] .icon {
  width:calc(30 * var(--u))!important;height:calc(30 * var(--u))!important;
}

/* 2026-11-17：提现地址簿主要操作沿用公共按钮颜色。 */
.withdraw-page #address-book .ab-primary:not(:disabled){background:var(--site-primary-background)!important;color:#fff!important;}

/* 2026-11-17：充值、提现共用订单记录排版；覆盖早期页面记录规则。 */
:root { --order-record-background:var(--panel); }
html[data-theme=dark] { --order-record-background:linear-gradient(145deg,#1d2b45,#18243b); }
.order-records { display:grid!important;gap:14px!important; }
.order-records .deposit-record {
  display:block!important;width:100%!important;margin:0!important;padding:18px 16px!important;
  border:1px solid var(--line)!important;border-radius:16px!important;
  background:var(--order-record-background)!important;
}
.order-records .order-card-top { display:flex!important;justify-content:space-between!important;align-items:center!important;gap:12px!important;padding-bottom:14px!important;border-bottom:1px solid var(--line)!important; }
.order-records .order-card-top > div { display:grid!important;gap:5px!important;min-width:0!important; }
.order-records .order-caption { font-size:11px!important;line-height:1.4!important;color:var(--muted)!important; }
.order-records .order-number { font-size:13px!important;line-height:1.5!important;font-weight:500!important;color:var(--ink)!important;overflow-wrap:anywhere!important;font-variant-numeric:tabular-nums; }
.order-records .order-state { flex-shrink:0!important;padding:4px 8px!important;border-radius:6px!important;background:#fff3d9!important;color:#b97a08!important;font-size:11px!important;line-height:1.5!important; }
.order-records .order-state.done { background:#e4f8ee!important;color:#079c6c!important; }
.order-records .order-card-amount { display:flex!important;justify-content:space-between!important;align-items:center!important;gap:12px!important;margin:18px 0 14px!important; }
.order-records .order-card-amount > span,.order-records .order-card-time { font-size:12px!important;color:var(--muted)!important;line-height:1.5!important; }
.order-records .order-card-amount > div { display:flex!important;align-items:baseline!important;gap:7px!important; }
.order-records .order-card-amount strong { display:inline!important;font-size:23px!important;line-height:1.3!important;font-weight:700!important;font-variant-numeric:tabular-nums; }
.order-records .order-card-amount > div > span { font-size:12px!important;font-weight:600!important;color:var(--ink)!important; }
.order-records .order-card-time { display:flex!important;justify-content:space-between!important;gap:12px!important; }
.order-records .order-card-time time { display:inline!important;margin:0!important;font:inherit!important;font-variant-numeric:tabular-nums!important;color:var(--muted)!important; }
html[data-theme=dark] .order-records .order-state { background:#493b21!important;color:#ffd18a!important; }
html[data-theme=dark] .order-records .order-state.done { background:#174b3c!important;color:#5ee1a8!important; }
@media(max-width:360px) {
  .order-records .deposit-record { padding:16px 12px!important; }
  .order-records .order-number { font-size:12px!important; }
  .order-records .order-card-top { gap:8px!important; }
  .order-records .order-state { font-size:10px!important;padding:4px 6px!important; }
}


/* ★ 新增：img 填满容器 */
.coin img{
  width:100%;
  height:100%;
  object-fit:cover;                    /* 填满裁切；若图标带透明边可用 contain */
  display:block;
  border-radius:100%;
}

/* 2026-11-19*/
html.home-entry-prepared main > section,
html.home-entry-prepared .first-screen > section {
  opacity: 0;
}
.page-entry-enabled.payment-row-entry .deposit-main > .page-entry-item {
  opacity: 1;
  animation: none !important;
}
.page-entry-enabled.payment-row-entry :is(.deposit-main > section > .bar, #deposit-form > :not(.error), #withdraw-form > :not(.fee-summary):not(.error), #withdraw-form > .fee-summary > div, .deposit-main .info-list > li, .deposit-main .deposit-record > :is(.order-card-top,.order-card-amount,.order-card-time)):not(.entry-shown) {
  opacity: 0;
  animation: none !important;
}
.page-entry-enabled.payment-row-entry .deposit-main .entry-shown {
  animation: payment-row-rise var(--entry-duration,1600ms) cubic-bezier(.25,.46,.45,.94) var(--entry-delay,120ms) backwards !important;
}
@keyframes payment-row-rise {
  from { opacity: 0; transform: translateY(36px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .page-entry-enabled.payment-row-entry .deposit-main .entry-shown {
    animation-name: gp-stable-fade !important;
    animation-duration: 500ms !important;
  }
}

.page-entry-enabled.payment-row-entry .deposit-main > .page-entry-item:not(.entry-frame-shown),
.page-entry-enabled.payment-row-entry .deposit-main :is(.deposit-record,.fee-summary):not(.entry-frame-shown) {
  opacity: 0;
  animation: none !important;
}
.page-entry-enabled.payment-row-entry .deposit-main .entry-frame-shown {
  opacity: 1;
  animation: payment-frame-show 1150ms cubic-bezier(.22,1,.36,1) var(--entry-delay,280ms) backwards !important;
}
.page-entry-enabled.payment-row-entry .deposit-main .entry-shown {
  animation: payment-home-rise 1150ms cubic-bezier(.22,1,.36,1) var(--entry-delay,280ms) backwards !important;
}
@keyframes payment-frame-show { from { opacity:0; } to { opacity:1; } }
@keyframes payment-home-rise {
  from { opacity:0; transform:translateY(24px); }
  to { opacity:1; transform:translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .page-entry-enabled.payment-row-entry .deposit-main :is(.entry-frame-shown,.entry-shown) {
    animation-name: gp-stable-fade !important;
    animation-duration: 800ms !important;
  }
}
.page-entry-enabled.payment-row-entry #withdraw-form > .fee-summary {
  position: relative;
  opacity: 1;
  animation: none !important;
  border-top-color: transparent;
}
.page-entry-enabled.payment-row-entry #withdraw-form > .fee-summary::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  border-top: 1px solid var(--line);
  opacity: 0;
  pointer-events: none;
}
.page-entry-enabled.payment-row-entry #withdraw-form > .fee-summary.entry-line-shown::before {
  opacity: 1;
  animation: payment-frame-show 1150ms cubic-bezier(.22,1,.36,1) var(--entry-delay,280ms) backwards;
}
.page-entry-enabled.payment-row-entry #withdraw-form > .fee-summary.entry-line-restored::before {
  animation: none;
}
@media (prefers-reduced-motion: reduce) {
  .page-entry-enabled.payment-row-entry #withdraw-form > .fee-summary.entry-line-shown::before {
    animation-duration: 800ms;
  }
}
/**1119**/

/* 2026-11-19：整站关闭入场动画 */
/* 关闭 CSS 动画 */
html body *,
html body *::before,
html body *::after {
  animation: none !important;
}
/* 恢复入场元素，兼容 JS 动画 */
html body :is(
  .motion-wait, .motion-enter, .motion-child,
  .page-entry-item, .entry-shown, .entry-frame-shown,
  .enter, .gp-enter, .stable-entry,
  .first-screen > section, main > section,
  .service-tabs, .transaction-tabs, .date-filter,
  .ledger-heading, .ledger-card, .ledger-row,
  .ledger-api-frame, #transaction-empty, #records-end,
  .service-card, .service-card > header,
  .service-card > dl > div,
  .service-card > :not(header):not(dl),
  .deposit-main > section > .bar,
  #deposit-form > *, #withdraw-form > *,
  .fee-summary > div,
  .info-list > li, .deposit-record,
  .order-card-top, .order-card-amount, .order-card-time,
  .security-settings-page .card > .row
) {
  opacity: 1 !important;
  transform: none !important;
}

html body .fee-summary::before {
  opacity: 1 !important;
}
/* 2026-11-19：关闭动画后，补全帮助、优惠券和贷款内容显示 */
html body.help_center-page :is(.entry,.enter),
html body.coupons-page .coupon,
html body.loan-page .reveal {
  opacity:1 !important;
  transform:none !important;
  animation:none !important;
  transition:none !important;
}

/* 2026-11-19：关闭动画后，恢复语言和服务内容 */
html body.language-page .entry,
html body.services-page :is(.service-tabs,.service-card,.service-card > header,.service-card > dl > div,.service-card > :not(header):not(dl),.service-empty) {
  opacity:1 !important;
  transform:none !important;
  animation:none !important;
  transition:none !important;
}