
.tile:active,.dock :is(button, a):active{transform:translateY(1px);filter:brightness(.98)}

.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;
}

@media(prefers-reduced-motion:reduce){.tile,.dock :is(button, a){transition:none}}

.app{padding-bottom:calc(135 * var(--u) + env(safe-area-inset-bottom,0px))}

main,.card,.quote,.actions,.tile,.story{min-width:0}

.quote{grid-template-columns:minmax(0,1fr) 21% 35%}

.coin{flex-shrink:0}

.dock{
 position:fixed;z-index:20;left:15px;right:15px;bottom:0;
 width:auto;max-width:583px;margin:0 auto;
 --u:calc(100vw / 613);
}

@media(min-width:613px){.app,.dock{--u:1px}}

@supports(padding:max(0px)){
 .shell{padding-left:env(safe-area-inset-left,0px);padding-right:env(safe-area-inset-right,0px)}
}

[hidden]{display:none!important}


/* Motion leaves layout and fixed navigation coordinates unchanged. */
@media (prefers-reduced-motion:no-preference){
 .tile:active,.story:active{transform:scale(.97);transition:transform .16s ease}
 .story{transition:transform .2s ease,background .2s ease}
 .dot:before{transition:width .35s ease,background .35s ease}
}


/* CSS entry animations also run without the Web Animations API. */
.motion-wait{opacity:0}

.motion-enter,.motion-child{
 animation:gpone-arrive 1150ms cubic-bezier(.22,1,.36,1) var(--arrival-delay,0ms) both;
}

@keyframes gpone-arrive{
 from{opacity:0;transform:translateY(24px)}
 to{opacity:1;transform:translateY(0)}
}

/* Retain a gentle fade for reduced-motion users; no spatial movement. */
@media(prefers-reduced-motion:reduce){
 .motion-enter,.motion-child{animation-name:gpone-fade;animation-duration:800ms}
}

@keyframes gpone-fade{from{opacity:0}to{opacity:1}}


/* Spacious two-line editorial cards; dates sit below the headline. */
.editorial .bar{margin-bottom:calc(24 * var(--u))}

.editorial .bar h2{font-size:clamp(15px,calc(23 * var(--u)),23px);white-space:normal;line-height:1.3;min-width:0}

.editorial .bar .more{flex-shrink:0}

.editorial .articles{gap:calc(20 * var(--u))}

.editorial .story{
 grid-template-columns:minmax(0,1fr) 25%;gap:calc(22 * var(--u));
 padding:calc(22 * var(--u));min-height:calc(158 * var(--u));
 border-radius:calc(18 * var(--u));align-items:center;
}

.editorial .story-copy{gap:calc(20 * var(--u))}

.editorial .story strong{
 font-size:clamp(13px,calc(19 * var(--u)),19px);font-weight:650;line-height:1.5;
 display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;
 min-height:3em;overflow-wrap:normal;
}

.editorial .story time{font-size:clamp(11px,calc(15 * var(--u)),15px);line-height:1.5;display:block}

.editorial .story img{aspect-ratio:1;object-fit:cover;border-radius:calc(14 * var(--u))}

@media(max-width:380px){
 .editorial .story{padding:14px;gap:12px;grid-template-columns:minmax(0,1fr) 23%}
 .editorial .story-copy{gap:14px}
 .editorial .bar{gap:8px}
 .editorial .bar h2{font-size:14px}
}


/* Fixed header, outside entrance animations. */
.fixed-top{position:fixed;z-index:30;top:0;left:0;right:0;margin:0 auto;
 width:100%;max-width:613px;padding:env(safe-area-inset-top,0px) calc(15 * var(--u)) 0;
 background:#edf1fc;box-shadow:0 2px 6px #687fd112}

.app{padding-top:calc(82 * var(--u) + env(safe-area-inset-top,0px))}

html[data-theme="dark"] :is(.service-tabs button,.dock :is(button, a)){color:#aab8d1}

html[data-theme="dark"] .asset-actions button{background:linear-gradient(145deg,#203555,#192a44);border-color:#354b71}

/* Price-only market overview: no chart data is required. */
.quotes{gap:calc(10 * var(--u))}

.quotes .quote{grid-template-columns:minmax(0,1fr) auto;gap:calc(16 * var(--u));min-height:calc(84 * var(--u));padding:calc(14 * var(--u)) calc(16 * var(--u));border-radius:calc(18 * var(--u))}

.quotes .pair{gap:calc(12 * var(--u));font-size:calc(22 * var(--u));font-weight:700;letter-spacing:-.02em}

.quotes .coin{width:calc(42 * var(--u));height:calc(42 * var(--u));flex:none;box-shadow:inset 0 1px 1px #ffffff80}

.coin.bnb{background:#f3ba2f}
.coin.bnb svg{width:70%;height:70%;fill:#fff}

.quotes .quote-value{font-size:calc(24 * var(--u));font-weight:750;letter-spacing:-.02em;line-height:1.3}

.quotes .change{font-size:calc(16 * var(--u));font-weight:700;padding:calc(3 * var(--u)) calc(9 * var(--u));margin-top:calc(5 * var(--u));letter-spacing:0}

.quotes .change.neutral{color:#8390a6;background:#e9edf6}

html[data-theme=dark] .quotes .change.neutral{color:#a6b4ce;background:#26364e}

@media(max-width:360px){.quotes .pair{font-size:14px}.quotes .quote-value{font-size:16px}.quotes .change{font-size:11px}}

.category-pages{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;overscroll-behavior-x:contain;gap:16px}

.category-pages::-webkit-scrollbar{display:none}

.category-page{flex:0 0 100%;scroll-snap-align:start;grid-template-columns:repeat(4,minmax(0,1fr));grid-template-rows:repeat(2,calc(116 * var(--u)));gap:calc(12 * var(--u)) calc(8 * var(--u));padding:calc(5 * var(--u)) 0}

.categories .tile{background:var(--panel);border-color:var(--line);border-radius:calc(17 * var(--u));font-size:calc(17 * var(--u));padding:calc(5 * var(--u));gap:calc(10 * var(--u));min-height:0;text-align:center;line-height:1.25}

.categories .tile .badge{width:calc(47 * var(--u));height:calc(47 * var(--u));border-radius:calc(15 * var(--u))}

.mint{--accent:#08c878;--plate-top:#ebfff1;--plate-bottom:#baf0cc;--plate-edge:#f4fff7;--plate-shadow:#70cc9940}

.aqua{--accent:#08b7cf;--plate-top:#e6fcff;--plate-bottom:#a9ecf4;--plate-edge:#efffff;--plate-shadow:#55bfce40}

.category-pagination{display:flex;justify-content:center;gap:7px;padding-top:calc(14 * var(--u))}

.category-pagination button{border:0;border-radius:20px;width:8px;height:6px;padding:0;background:#cdd5eb;transition:width .4s,background .4s;position:relative}

.category-pagination button:after{content:"";position:absolute;inset:-9px -4px}

.category-pagination button[aria-pressed=true]{width:23px;background:#6971ef}

.editorial{scroll-margin-top:100px}

/* Consistent outlines and soft icon finish for every category. */
.categories .category-page .tile{border:1px solid #d4dff7;background:#f7f8fe;box-shadow:none;opacity:1}

.categories .category-page .tile .badge{border:1px solid rgba(255,255,255,.65);box-shadow:0 2px 5px rgba(53,80,138,.10);background:linear-gradient(145deg,var(--plate-top),var(--plate-bottom))}

.categories .category-page .tile .badge .icon{filter:none}

html[data-theme="dark"] .categories .category-page .tile{border-color:#3d4d70;background:var(--panel)}
.market-next{display:grid;place-items:center;width:calc(42 * var(--u));height:calc(42 * var(--u));padding:0;border:0;background:transparent;box-shadow:none;border-radius:50%;color:var(--ink)}
.market-next svg{width:calc(23 * var(--u));height:calc(23 * var(--u));fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}

/* Short screens keep the full overview visible above the fixed navigation. */
.categories .tile>span:last-child{max-width:100%;overflow-wrap:anywhere}

.hero-copy{margin-top:calc(18 * var(--u));width:52%}

.hero h2{font-size:calc(26 * var(--u));line-height:1.1}

.hero-copy:after{display:none}

@media(max-width:360px){.quotes .pair{font-size:calc(22 * var(--u))}.quotes .quote-value{font-size:calc(24 * var(--u))}.quotes .change{font-size:calc(16 * var(--u))}}

/* Three currencies in one row. */
.quotes{grid-template-columns:repeat(3,minmax(0,1fr));gap:calc(10 * var(--u))}

.quotes .quote{grid-template-columns:minmax(0,1fr);justify-items:center;text-align:center;gap:calc(12 * var(--u));min-height:calc(166 * var(--u));padding:calc(16 * var(--u)) calc(6 * var(--u));border-radius:calc(18 * var(--u))}

.quotes .pair{flex-direction:column;gap:calc(8 * var(--u));font-size:calc(18 * var(--u));line-height:1.2;letter-spacing:-.025em}

.quotes .coin{width:calc(36 * var(--u));height:calc(36 * var(--u));font-size:calc(23 * var(--u))}

.quotes .quote-value{font-size:calc(22 * var(--u));text-align:center;line-height:1.25;letter-spacing:-.035em}

.quotes .change{margin:calc(7 * var(--u)) auto 0;font-size:calc(15 * var(--u));padding:calc(3 * var(--u)) calc(8 * var(--u));letter-spacing:0}

.first-screen{display:flex;flex-direction:column;gap:calc(21 * var(--u));min-width:0}

.first-screen>section{flex-shrink:0}

.first-screen .hero{min-height:calc(188 * var(--u))}
/* The shared spacer reserves the header; sections use the same natural spacing as the backup home page. */
.app { padding-top:0!important; }
[data-index-symbols] { position:absolute; }

/* 轮播图：单图铺满整个面板，移除文字占位相关的渐变遮罩 */
.hero .hero-panel img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: -2;
}
.hero-panel:after { content: none; }

