/* ==========================================================================
   行情板 — USDT 报价 + 多币种买卖价 + 门店信息

   与大屏页同一套黑金语言，同样按整屏铺满设计：宽屏下页面不滚动，
   左右两栏等高，右栏「聯絡我們」的底边与左栏「即時報價」对齐。
   窄屏或矮屏会自动退回可滚动的常规文档流。
   ========================================================================== */

body {
  display: flex;
  flex-direction: column;
  height: 100dvh;
  overflow: hidden;
  background: var(--bg);
}

/* -------------------------------------------------------------------------
   环境光背景
   ------------------------------------------------------------------------- */

.ambient {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.5;
}

.glow-a {
  top: -26%;
  left: -6%;
  width: 62vmax;
  height: 48vmax;
  background: radial-gradient(circle, rgba(229, 181, 60, 0.17), transparent 66%);
  animation: drift-a 52s ease-in-out infinite alternate;
}

.glow-b {
  top: -14%;
  right: -12%;
  width: 56vmax;
  height: 46vmax;
  background: radial-gradient(circle, rgba(76, 141, 255, 0.12), transparent 68%);
  animation: drift-b 68s ease-in-out infinite alternate;
}

@keyframes drift-a {
  to {
    transform: translate3d(5%, 4%, 0) scale(1.08);
  }
}

@keyframes drift-b {
  to {
    transform: translate3d(-5%, 5%, 0) scale(1.06);
  }
}

/* 细网格，只铺在页面上半部并向下淡出 */
.grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(229, 181, 60, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(229, 181, 60, 0.04) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 62%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 62%);
}

/* 四角装饰线，落在页面留白里，不与卡片重叠 */
.corner {
  position: fixed;
  z-index: 5;
  width: clamp(16px, 1.6vw, 26px);
  height: clamp(16px, 1.6vw, 26px);
  border: 1px solid rgba(229, 181, 60, 0.32);
  pointer-events: none;
}

.corner-tl {
  top: 8px;
  left: 8px;
  border-right: 0;
  border-bottom: 0;
}

.corner-tr {
  top: 8px;
  right: 8px;
  border-left: 0;
  border-bottom: 0;
}

.corner-bl {
  bottom: 8px;
  left: 8px;
  border-right: 0;
  border-top: 0;
}

.corner-br {
  bottom: 8px;
  right: 8px;
  border-left: 0;
  border-top: 0;
}

/* -------------------------------------------------------------------------
   页面骨架：整屏三段（顶栏 / 主体 / 无底栏），主体自行分配剩余高度
   ------------------------------------------------------------------------- */

.page {
  position: relative;
  z-index: 1;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 2200px;
  margin: 0 auto;
  padding: 0 clamp(16px, 2.2vw, 40px) clamp(14px, 2.2vh, 28px);
}

.topbar {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  flex-wrap: wrap;
  margin-bottom: clamp(12px, 1.8vh, 22px);
  padding: clamp(12px, 1.8vh, 20px) 0;
  border-bottom: 1px solid rgba(229, 181, 60, 0.14);
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  flex-wrap: wrap;
}

/* 顶栏时钟 */
.hkclock {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  padding: 5px 14px;
  border-radius: 999px;
  border: 1px solid rgba(229, 181, 60, 0.22);
  background: linear-gradient(180deg, rgba(229, 181, 60, 0.1), rgba(229, 181, 60, 0.02));
}

.hkclock-date {
  font-size: 12px;
  color: var(--text-faint);
}

.hkclock-time {
  font-size: 14px;
  font-weight: 700;
  color: var(--gold-soft);
}

.hkclock-tz {
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--text-faint);
}

/* -------------------------------------------------------------------------
   主体栅格：两栏等高，各自再纵向分成「固定 + 撑满」两段，
   于是右栏联络卡的底边天然与左栏报价卡对齐。
   ------------------------------------------------------------------------- */

.layout {
  position: relative;
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.68fr) minmax(320px, 1fr);
  gap: clamp(14px, 1.6vw, 24px);
}

.main,
.aside {
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: clamp(14px, 1.6vw, 24px);
}

/* -------------------------------------------------------------------------
   卡片外壳
   ------------------------------------------------------------------------- */

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.026), transparent 42%),
    var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}

/* 顶部一道极细的金色高光，让卡片有「被光打到」的立体感 */
.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 12%;
  right: 12%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(229, 181, 60, 0.45), transparent);
}

.card-head {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  padding: clamp(12px, 1.6vh, 18px) clamp(16px, 1.6vw, 26px);
  border-bottom: 1px solid var(--border-soft);
}

.card-heading {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  min-width: 0;
}

.card-accent {
  width: 3px;
  height: 17px;
  flex: none;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--gold-soft), #a8761f);
  box-shadow: 0 0 10px rgba(229, 181, 60, 0.4);
}

/* 标题用渐变描金 */
.card-title {
  font-size: clamp(15px, 1.05vw, 19px);
  font-weight: 700;
  letter-spacing: 0.03em;
  background-image: linear-gradient(100deg, #f6e3ae, var(--gold-soft) 45%, #d8ae4a);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.card-sub {
  font-size: 11px;
  color: var(--text-faint);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* -------------------------------------------------------------------------
   USDT 主报价
   ------------------------------------------------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(16px, 2.4vh, 30px) clamp(20px, 2.2vw, 38px) 0;
  border: 1px solid rgba(229, 181, 60, 0.3);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(120% 150% at 88% 0%, rgba(229, 181, 60, 0.18), transparent 58%),
    linear-gradient(150deg, rgba(229, 181, 60, 0.1), rgba(17, 20, 28, 0.6) 46%),
    var(--surface);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(243, 214, 138, 0.16);
}

/* 右下角巨大的 ₮ 水印 */
.hero-glyph {
  position: absolute;
  right: -0.08em;
  bottom: -0.4em;
  font-size: clamp(180px, 24vw, 320px);
  font-weight: 800;
  line-height: 1;
  color: rgba(229, 181, 60, 0.055);
  pointer-events: none;
  user-select: none;
}

/* 每隔一段时间斜掠而过的一道光，慢到不打扰人 */
.hero-shine {
  position: absolute;
  top: -60%;
  bottom: -60%;
  width: 22%;
  left: -30%;
  background: linear-gradient(
    100deg,
    transparent,
    rgba(255, 244, 210, 0.11),
    transparent
  );
  transform: skewX(-16deg);
  pointer-events: none;
  animation: shine 9s ease-in-out infinite;
}

@keyframes shine {
  0%,
  62% {
    left: -30%;
  }
  92%,
  100% {
    left: 118%;
  }
}

.hero-body {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(16px, 2vw, 32px);
  flex-wrap: wrap;
}

.hero-head {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.1vw, 18px);
  min-width: 0;
}

.hero-coin {
  width: clamp(44px, 3.4vw, 62px);
  height: clamp(44px, 3.4vw, 62px);
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(145deg, #2ec39a, #1d8f6c);
  color: #fff;
  font-size: clamp(21px, 1.7vw, 30px);
  font-weight: 800;
  box-shadow: 0 8px 26px rgba(38, 161, 123, 0.36),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.hero-id {
  min-width: 0;
}

/* 眉标 */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--gold-soft);
  font-size: clamp(10px, 0.72vw, 13px);
  font-weight: 600;
  letter-spacing: 0.26em;
  white-space: nowrap;
}

.eyebrow-gem {
  width: 5px;
  height: 5px;
  flex: none;
  background: var(--gold);
  transform: rotate(45deg);
  box-shadow: 0 0 10px rgba(229, 181, 60, 0.75);
}

.hero-name {
  margin-top: 2px;
  font-size: clamp(19px, 1.7vw, 30px);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.hero-sub {
  font-size: clamp(10px, 0.68vw, 12px);
  color: var(--text-faint);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero-quote {
  display: flex;
  align-items: baseline;
  gap: clamp(8px, 1vw, 16px);
  margin-left: auto;
}

/*
 * 数字用渐变填充而非纯色，看上去更像镀金；因此发光要走 drop-shadow，
 * text-shadow 在 color:transparent 下不可见。
 */
.hero-value {
  font-size: clamp(52px, calc(4.4vw + 3.4vh), 132px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
  /*
   * 静止时只露出渐变最左侧的 1/2.6，所以前 38% 必须自成一套完整的光泽：
   * 起点若是深青铜色，首位数字会比其余数字暗一截，看着像掉色。
   */
  background-image: linear-gradient(
    100deg,
    #dca63c 0%,
    var(--gold-soft) 14%,
    #fff4d2 26%,
    var(--gold-soft) 38%,
    var(--gold) 58%,
    #c39a34 100%
  );
  background-size: 260% 100%;
  /* 静止位置即扫光动画的终点，动画结束时不会有跳变 */
  background-position: 0 0;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 40px rgba(229, 181, 60, 0.32));
  transition: filter 0.4s var(--ease);
}

.hero-value.is-up {
  background-image: linear-gradient(
    100deg,
    var(--up) 0%,
    #4fe3ac 14%,
    #d8fff0 26%,
    #4fe3ac 38%,
    var(--up) 58%,
    #12a76f 100%
  );
  filter: drop-shadow(0 0 40px rgba(22, 199, 132, 0.4));
}

.hero-value.is-down {
  background-image: linear-gradient(
    100deg,
    var(--down) 0%,
    #ff98a1 14%,
    #ffe1e4 26%,
    #ff98a1 38%,
    var(--down) 58%,
    #c94a52 100%
  );
  filter: drop-shadow(0 0 40px rgba(240, 97, 109, 0.4));
}

.hero.is-changed .hero-value {
  animation: bump 0.5s var(--ease), sweep 1.05s var(--ease);
}

@keyframes bump {
  0% {
    transform: scale(1);
  }
  36% {
    transform: scale(1.022);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes sweep {
  from {
    background-position: 100% 0;
  }
  to {
    background-position: 0 0;
  }
}

.hero-unit {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
  font-size: clamp(13px, 1vw, 19px);
  font-weight: 700;
  color: var(--gold-soft);
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.hero-unit small {
  font-size: 0.66em;
  font-weight: 500;
  color: var(--text-faint);
  letter-spacing: 0.1em;
}

/* 卡片底部的分隔线与中央菱形 */
.hero-rule {
  position: relative;
  height: 1px;
  margin-top: clamp(12px, 1.8vh, 22px);
  background: linear-gradient(
    90deg,
    transparent,
    rgba(229, 181, 60, 0.4) 24%,
    rgba(229, 181, 60, 0.4) 76%,
    transparent
  );
}

.hero-gem {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 7px;
  height: 7px;
  margin: -3.5px 0 0 -3.5px;
  background: var(--gold);
  transform: rotate(45deg);
  box-shadow: 0 0 14px rgba(229, 181, 60, 0.7);
}

/* -------------------------------------------------------------------------
   币种价格表
   ------------------------------------------------------------------------- */

.table-head,
.row {
  display: grid;
  grid-template-columns: minmax(130px, 1.1fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--sp-3);
  align-items: center;
  padding: 0 clamp(16px, 1.6vw, 26px);
}

.table-head {
  flex: none;
  padding-top: 10px;
  padding-bottom: 10px;
  font-size: clamp(10px, 0.7vw, 12px);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-faint);
  background: linear-gradient(180deg, rgba(229, 181, 60, 0.05), transparent);
  border-bottom: 1px solid var(--border-soft);
}

.col-sell,
.col-buy {
  text-align: right;
  font-weight: 600;
}

.col-sell {
  color: rgba(240, 97, 109, 0.8);
}

.col-buy {
  color: rgba(22, 199, 132, 0.8);
}

/* 行区自行吃掉卡片的剩余高度，四行等分 */
#rows {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.row {
  position: relative;
  flex: 1 1 0;
  min-height: 0;
  transition: background 0.2s var(--ease);
}

/* 行分隔线两端淡出，比整条实线秀气 */
.row::after {
  content: '';
  position: absolute;
  left: clamp(16px, 1.6vw, 26px);
  right: clamp(16px, 1.6vw, 26px);
  bottom: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--border) 12%,
    var(--border) 88%,
    transparent
  );
}

.row:last-child::after {
  display: none;
}

.row:hover {
  background: linear-gradient(90deg, rgba(229, 181, 60, 0.06), transparent 62%);
}

/* 悬停时左侧亮起一道细边，代替整行泛白 */
.row::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 2px;
  background: linear-gradient(180deg, transparent, var(--gold), transparent);
  opacity: 0;
  transition: opacity 0.2s var(--ease);
}

.row:hover::before {
  opacity: 0.85;
}

.row-symbol {
  display: flex;
  align-items: center;
  gap: clamp(10px, 0.9vw, 16px);
  min-width: 0;
}

.coin {
  width: clamp(32px, 2.4vw, 46px);
  height: clamp(32px, 2.4vw, 46px);
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: clamp(12px, 0.95vw, 17px);
  font-weight: 800;
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.coin-BTC {
  background: #f7931a;
  box-shadow: 0 5px 18px rgba(247, 147, 26, 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.coin-ETH {
  background: #627eea;
  box-shadow: 0 5px 18px rgba(98, 126, 234, 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.coin-TRX {
  background: #e50915;
  box-shadow: 0 5px 18px rgba(229, 9, 21, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.coin-BNB {
  background: #f0b90b;
  color: #241d05;
  box-shadow: 0 5px 18px rgba(240, 185, 11, 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.row-id {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.row-name {
  font-weight: 700;
  font-size: clamp(15px, 1.05vw, 21px);
  letter-spacing: 0.04em;
}

.row-full {
  font-size: clamp(10px, 0.68vw, 13px);
  color: var(--text-faint);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.row-price {
  position: relative;
  text-align: right;
  font-size: clamp(16px, calc(0.95vw + 0.85vh), 34px);
  font-weight: 700;
  transition: color 0.4s var(--ease);
}

.row-price.sell {
  color: var(--down);
}

.row-price.buy {
  color: var(--up);
}

/* 价格变动时在数字后面闪一下底色，比整行变色安静 */
.row-price::after {
  content: '';
  position: absolute;
  inset: -8px -12px;
  border-radius: 10px;
  opacity: 0;
  pointer-events: none;
}

.row-price.up::after,
.row-price.down::after {
  animation: flash 1.5s var(--ease) forwards;
}

.row-price.up::after {
  background: var(--up-dim);
}

.row-price.down::after {
  background: var(--down-dim);
}

@keyframes flash {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

/*
 * 涨跌箭头不占位，避免数字左右跳动。
 * 间距只能走 transform：margin/padding 会撑开这个宽度为 0 的盒子，
 * 把数字往左推 5px，与表头右缘对不齐。
 */
.row-price .tick {
  display: inline-block;
  width: 0;
  overflow: visible;
  transform: translateX(4px);
  font-size: 0.6em;
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}

.row-price.moved .tick {
  opacity: 1;
}

.row-price.up .tick {
  color: var(--up);
}

.row-price.down .tick {
  color: var(--down);
}

/* 骨架屏 */
.skeleton .row-price,
.skeleton .row-name,
.skeleton .row-full {
  color: transparent;
  background: linear-gradient(90deg, var(--surface-2), var(--surface-3), var(--surface-2));
  background-size: 220% 100%;
  border-radius: 6px;
  animation: shimmer 1.3s linear infinite;
}

.skeleton .coin {
  box-shadow: none;
  filter: grayscale(0.7) brightness(0.7);
}

@keyframes shimmer {
  from {
    background-position: 200% 0;
  }
  to {
    background-position: -20% 0;
  }
}

.card-foot {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  flex-wrap: wrap;
  padding: clamp(9px, 1.2vh, 14px) clamp(16px, 1.6vw, 26px);
  border-top: 1px solid var(--border-soft);
  background: rgba(0, 0, 0, 0.22);
  font-size: 12px;
  color: var(--text-faint);
}

.foot-time {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  letter-spacing: 0.02em;
}

.foot-time::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(229, 181, 60, 0.55);
  box-shadow: 0 0 8px rgba(229, 181, 60, 0.5);
}

.btn-refresh {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 7px 17px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-3);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease),
    color 0.2s var(--ease);
}

.btn-refresh:hover {
  border-color: rgba(229, 181, 60, 0.6);
  background: var(--gold-dim);
  color: var(--gold-soft);
}

.btn-refresh.is-busy {
  opacity: 0.6;
  pointer-events: none;
}

.btn-refresh .icon {
  display: inline-block;
  transition: transform 0.6s var(--ease);
}

.btn-refresh.is-busy .icon {
  animation: spin 0.9s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* -------------------------------------------------------------------------
   右栏：营业时间
   ------------------------------------------------------------------------- */

/* 营业状态胶囊，由 JS 按香港时间切换 */
.shop-state {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid var(--border-soft);
  background: var(--surface-2);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text-faint);
  white-space: nowrap;
}

.shop-state::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.shop-state.is-open {
  color: var(--up);
  border-color: rgba(22, 199, 132, 0.32);
  background: var(--up-dim);
  box-shadow: 0 0 16px rgba(22, 199, 132, 0.18);
}

.shop-state.is-closed {
  color: var(--text-dim);
}

.hours {
  padding: clamp(4px, 0.8vh, 10px) clamp(16px, 1.6vw, 26px) clamp(10px, 1.4vh, 16px);
}

.hours-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  padding: clamp(8px, 1.1vh, 13px) 0;
  border-bottom: 1px dashed var(--border-soft);
  font-size: clamp(13px, 0.85vw, 16px);
}

.hours-row:last-child {
  border-bottom: none;
}

.hours-day {
  color: var(--text-dim);
}

.hours-time {
  font-weight: 700;
}

/* 今天所在的行：内缩成一块高亮条 */
.hours-row.is-today {
  position: relative;
  margin: 0 calc(var(--sp-3) * -1);
  padding-left: var(--sp-3);
  padding-right: var(--sp-3);
  border-radius: var(--radius-sm);
  border-bottom-color: transparent;
  background: linear-gradient(90deg, rgba(229, 181, 60, 0.15), transparent);
  color: var(--gold-soft);
}

.hours-row.is-today .hours-day {
  color: var(--gold-soft);
  font-weight: 600;
}

.hours-row.is-today .hours-day::before {
  content: '今日 ';
  margin-right: 5px;
  padding: 1px 6px;
  border-radius: 4px;
  background: var(--gold);
  color: #1a1204;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  vertical-align: 1px;
}

.hours-rest {
  color: var(--text-faint);
  font-weight: 600;
}

/* -------------------------------------------------------------------------
   右栏：联络方式
   ------------------------------------------------------------------------- */

/* 联络卡吃掉右栏剩余高度，内部纵向均分，底边与左侧报价卡齐平 */
.contact {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  gap: clamp(10px, 1.6vh, 20px);
  padding: clamp(12px, 1.6vh, 20px) clamp(16px, 1.6vw, 26px);
  /* 极端比例的屏幕上宁可卡片内滚动，也不要把地址悄悄裁掉 */
  overflow-y: auto;
}

.qr-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(8px, 0.8vw, 14px);
}

.qr-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-2);
  border: 1px solid rgba(229, 181, 60, 0.16);
  border-radius: var(--radius-sm);
  background: linear-gradient(180deg, rgba(229, 181, 60, 0.06), rgba(24, 29, 40, 0.6));
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease),
    box-shadow 0.2s var(--ease);
}

.qr-item:hover {
  border-color: rgba(229, 181, 60, 0.6);
  transform: translateY(-3px);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.45);
}

.qr-frame {
  position: relative;
  display: block;
  width: 100%;
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
}

.qr-item img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  transition: transform 0.3s var(--ease), filter 0.2s var(--ease);
}

.qr-item:hover img {
  transform: scale(1.04);
  filter: brightness(0.62);
}

/* 放大提示，仅在悬停时浮现 */
.qr-zoom {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 20px;
  opacity: 0;
  transition: opacity 0.2s var(--ease);
}

.qr-item:hover .qr-zoom {
  opacity: 1;
}

.qr-label {
  font-size: clamp(9px, 0.6vw, 11px);
  letter-spacing: 0.08em;
  color: var(--text-dim);
  text-align: center;
}

.qr-item:hover .qr-label {
  color: var(--gold-soft);
}

.phone {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: clamp(10px, 1.3vh, 16px) clamp(14px, 1.2vw, 20px);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(22, 199, 132, 0.3);
  background: linear-gradient(135deg, rgba(22, 199, 132, 0.2), rgba(22, 199, 132, 0.05));
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease),
    box-shadow 0.2s var(--ease);
}

.phone:hover {
  border-color: rgba(22, 199, 132, 0.65);
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(22, 199, 132, 0.16);
}

.phone-icon {
  font-size: 19px;
  line-height: 1;
}

.phone-text {
  display: flex;
  flex-direction: column;
  font-size: 11px;
  color: var(--text-faint);
  letter-spacing: 0.06em;
}

.phone-text strong {
  font-size: clamp(15px, 1vw, 19px);
  font-weight: 700;
  color: var(--up);
  letter-spacing: 0.02em;
}

.phone-arrow {
  margin-left: auto;
  color: var(--up);
  transition: transform 0.2s var(--ease);
}

.phone:hover .phone-arrow {
  transform: translateX(3px);
}

.addr {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-2);
  padding-top: clamp(8px, 1.2vh, 14px);
  border-top: 1px solid var(--border-soft);
  font-size: clamp(11px, 0.72vw, 13px);
  line-height: 1.6;
  color: var(--text-dim);
}

.addr-icon {
  line-height: 1.4;
  opacity: 0.8;
}

/* -------------------------------------------------------------------------
   二维码弹窗
   ------------------------------------------------------------------------- */

.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: var(--sp-4);
  background: rgba(4, 6, 10, 0.84);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.24s var(--ease), visibility 0.24s var(--ease);
}

.modal.is-open {
  opacity: 1;
  visibility: visible;
}

.modal-box {
  position: relative;
  width: min(360px, 100%);
  padding: var(--sp-6) var(--sp-5) var(--sp-5);
  background:
    radial-gradient(110% 80% at 50% 0%, rgba(229, 181, 60, 0.13), transparent 60%),
    var(--surface);
  border: 1px solid rgba(229, 181, 60, 0.26);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  text-align: center;
  transform: scale(0.94);
  transition: transform 0.24s var(--ease);
}

.modal.is-open .modal-box {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: none;
  border-radius: 50%;
  background: var(--surface-3);
  color: var(--text-dim);
  font-size: 15px;
  line-height: 1;
}

.modal-close:hover {
  background: var(--down-dim);
  color: var(--down);
}

.modal-img {
  width: 220px;
  margin: 0 auto var(--sp-4);
  border-radius: var(--radius-sm);
  background: #fff;
  padding: 6px;
}

.modal-title {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--gold-soft);
}

.modal-desc {
  margin-top: var(--sp-2);
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.6;
}

/* -------------------------------------------------------------------------
   退化：屏幕太窄或太矮时放弃整屏铺满，改回可滚动的常规文档流
   ------------------------------------------------------------------------- */

@media (max-width: 1080px), (max-height: 640px) {
  body {
    display: block;
    height: auto;
    min-height: 100dvh;
    overflow: visible;
  }

  .page {
    display: block;
    padding-bottom: var(--sp-6);
  }

  .layout,
  .main,
  .aside {
    display: grid;
    grid-template-rows: none;
  }

  .row {
    flex: none;
    padding-top: var(--sp-4);
    padding-bottom: var(--sp-4);
  }

  #rows {
    display: block;
  }

  .contact {
    display: block;
  }

  .qr-grid {
    margin-bottom: var(--sp-4);
  }

  .phone {
    margin-bottom: var(--sp-3);
  }

  .corner {
    display: none;
  }
}

@media (max-width: 1080px) {
  .layout {
    grid-template-columns: 1fr;
  }

  .hero-quote {
    margin-left: 0;
  }
}

@media (max-width: 720px) {
  .hkclock {
    display: none;
  }
}

@media (max-width: 560px) {
  .brand-sub {
    display: none;
  }

  .hero-glyph {
    display: none;
  }

  .hero-body {
    align-items: flex-start;
  }

  .table-head {
    display: none;
  }

  .row {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      'symbol sell'
      'symbol buy';
    row-gap: 2px;
  }

  .row-symbol {
    grid-area: symbol;
  }

  .row-price.sell {
    grid-area: sell;
  }

  .row-price.buy {
    grid-area: buy;
  }

  .row-price::before {
    content: attr(data-label);
    margin-right: var(--sp-2);
    font-size: 10px;
    letter-spacing: 0.1em;
    color: var(--text-faint);
    font-weight: 600;
  }
}
