/* ============================================================
   SUPER NODE 前台樣式
   深藍 + 金色配色系統
   ============================================================ */

:root {
  /* 底色系（淡金黃） */
  --navy-900: #fdf8e8;
  --navy-800: #faf2d8;
  --navy-700: #f6ecc8;
  --navy-600: #f1e3b8;
  --navy-500: #ead9a6;

  /* 金色系 */
  --gold-500: #d4af37;
  --gold-400: #e0c158;
  --gold-300: #c9a227;
  --gold-200: #a8861c;
  --gold-glow: rgba(212, 175, 55, 0.35);

  /* 文字（深色，配淡黃底） */
  --text-primary: #2a2410;
  --text-secondary: #5c5433;
  --text-muted: #8a7f5a;

  /* 邊框 */
  --border-subtle: rgba(168, 134, 28, 0.22);
  --border-strong: rgba(168, 134, 28, 0.45);

  --radius: 12px;
  --radius-sm: 8px;
  --max-width: 1180px;

  /*
   * 全站字體。
   *
   * ⚠️ 改字體只要改這一行，所有頁面一起生效。
   *    以前 body 的字體寫死在 style.css，看起來就像「改首頁才生效」，
   *    但 index.html、claim.html 各自帶不同的 ?v= 版本號，
   *    瀏覽器可能還吃著舊快取，才會有「首頁改了、其他頁沒變」的錯覺。
   *    現在集中成變數，並在各頁統一版本號，改一處即可全站一致。
   */
  --font-base: -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Microsoft JhengHei", "PingFang TC", "Noto Sans TC", sans-serif;

  /* 數字／地址用的等寬字體（卡號、錢包地址等需要對齊的地方） */
  --font-mono: ui-monospace, SFMono-Regular, Consolas, Monaco, monospace;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-base);
  background: var(--navy-900);
  color: var(--text-primary);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/*
 * 表單元件不會自動繼承 body 字體，
 * 這裡統一指定，避免輸入框、下拉選單、按鈕看起來像別的字體。
 */
button,
input,
select,
textarea {
  font-family: var(--font-base);
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ============================================================
   金色文字與元件
   ============================================================ */

.gold-text {
  /* 改用單一深金色，不用漸層。
     漸層會產生明暗變化，在淡黃背景上看起來很立體、很突兀；
     純色則平實好讀，也比較耐看。
     顏色比背景 #fdf8e8 深很多，對比足夠。 */
  background: none;
  -webkit-background-clip: border-box;
  background-clip: border-box;
  -webkit-text-fill-color: #8a6d10;
  color: #8a6d10;
}

/* 白底圖片融入深藍背景（保留金色光暈） */
.blend-screen {
  /* 背景已改為淡黃，不能再使用 screen 混合模式：
     那個模式會把深色像素變透明、亮金像素與淡底同化，
     結果整個 Logo 幾乎消失。改回正常顯示。 */
  mix-blend-mode: normal;
}

/* ============================================================
   頂部導覽
   ============================================================ */

.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 22px 0;
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 18px;
  /* 確保內容不會撐破容器 */
  min-width: 0;
}

.logo-lockup {
  display: flex;
  align-items: center;
  gap: 14px;
}

.logo-img {
  width: 68px;
  height: 68px;
  object-fit: cover;
  /* 新 Logo 是「深色背景 + 金色六角徽章」的高解析圖。
     用圓形裁切把背景框成一個圓章，比正方形自然；
     再加一點陰影讓它從淡黃底浮起來。 */
  border-radius: 50%;
  box-shadow: 0 3px 12px rgba(168, 134, 28, 0.28);
  mix-blend-mode: normal;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.logo-title {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: 4px;
  color: var(--gold-200);
}

.logo-sub {
  font-size: 11px;
  letter-spacing: 3.5px;
  color: var(--text-muted);
  font-weight: 500;
}

.header-divider {
  width: 1px;
  height: 26px;
  background: var(--border-subtle);
  margin: 0 6px;
}

.header-tagline {
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--text-muted);
  font-weight: 500;
}

.header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 16px;
}

.icon-btn {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border-subtle);
  border-radius: 50%;
  color: var(--gold-400);
  font-size: 15px;
  transition: all 0.25s;
}

.icon-btn:hover {
  border-color: var(--border-strong);
  background: rgba(212, 175, 55, 0.08);
}

/* ---------- 語言切換 ---------- */

.lang-switch {
  position: relative;
}

.lang-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 42px;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--gold-200);
  font-size: 14px;
  cursor: pointer;
  transition: all 0.25s;
  font-family: inherit;
  /*
   * 固定寬度：避免切換語言時地球與文字左右跳動。
   *
   * 繁 / 简 / EN 字數不同，不固定寬度的話
   * 整個按鈕會忽寬忽窄，旁邊的圖示跟著位移。
   */
  min-width: 76px;
  justify-content: center;
}

.lang-btn:hover {
  background: rgba(212, 175, 55, 0.14);
  border-color: rgba(168, 134, 28, 0.3);
}

.lang-btn .globe {
  font-size: 16px;
  line-height: 1;
}

/* 地球 SVG：金色（currentColor 繼承按鈕的 color） */
.globe-svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--gold-400);
  transition: color 0.25s;
  filter: drop-shadow(0 0 5px rgba(212, 175, 55, 0.4));
}

.lang-btn:hover .globe-svg {
  color: var(--gold-200);
  filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.75));
}

.lang-btn .lang-label {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.5px;
  /*
   * 固定寬度 + 置中：
   *   「繁」是 1 個字、「EN」是 2 個字元，
   *   不固定的話切換語言時地球會左右滑動。
   *   設 26px 剛好容納最長的「EN」。
   */
  min-width: 26px;
  width: 26px;
  text-align: center;
  flex-shrink: 0;
}

.lang-btn .globe,
.lang-btn .globe-svg {
  flex-shrink: 0;
}

.lang-btn .caret {
  font-size: 9px;
  opacity: 0.7;
}

.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 150px;
  background: var(--navy-700);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  padding: 6px;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.55);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: all 0.22s;
  z-index: 200;
}

.lang-menu.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13.5px;
  color: var(--text-secondary);
  transition: all 0.18s;
  white-space: nowrap;
}

.lang-option:hover {
  background: rgba(212, 175, 55, 0.12);
  color: var(--text-primary);
}

.lang-option.active {
  background: rgba(212, 175, 55, 0.2);
  color: var(--gold-300);
  font-weight: 600;
}

.lang-option .check {
  margin-left: auto;
  font-size: 12px;
  opacity: 0;
  color: var(--gold-400);
}

.lang-option.active .check {
  opacity: 1;
}

/* 漢堡選單 */
.hamburger {
  width: 42px;
  height: 42px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  padding: 8px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  transition: all 0.25s;
}

.hamburger:hover {
  background: rgba(212, 175, 55, 0.14);
  border-color: rgba(168, 134, 28, 0.3);
}

.hamburger span {
  display: block;
  height: 3px;
  background: linear-gradient(90deg, var(--gold-200), var(--gold-500));
  border-radius: 2px;
  transition: 0.3s;
}

.hamburger span:nth-child(1) { width: 100%; }
.hamburger span:nth-child(2) { width: 100%; }
.hamburger span:nth-child(3) { width: 62%; }

/* ============================================================
   Hero
   ============================================================ */

.hero {
  position: relative;
  min-height: 620px;
  display: flex;
  align-items: center;
  background-image: url("../images/hero.jpg");
  background-size: cover;
  background-position: center right;
  overflow: hidden;
}

/* 左側加深，讓文字清楚 */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    rgba(5, 11, 24, 0.97) 0%,
    rgba(5, 11, 24, 0.92) 32%,
    rgba(5, 11, 24, 0.62) 55%,
    rgba(5, 11, 24, 0.25) 78%,
    rgba(5, 11, 24, 0.55) 100%
  );
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 150px 24px 80px;
  width: 100%;
}

.hero-content {
  max-width: 560px;
}

.hero-logo {
  width: 96px;
  height: 96px;
  object-fit: cover;
  /* 新 Logo 為深色底，圓形裁切 + 陰影讓它成為視覺焦點。 */
  border-radius: 50%;
  box-shadow: 0 6px 22px rgba(168, 134, 28, 0.32);
  mix-blend-mode: normal;
  margin-bottom: 6px;
}

.hero-title {
  font-size: 60px;
  font-weight: 800;
  letter-spacing: 10px;
  line-height: 1.1;
  margin-bottom: 8px;
}

.hero-en {
  font-size: 22px;
  letter-spacing: 11px;
  color: var(--gold-400);
  font-weight: 600;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.hero-en::before,
.hero-en::after {
  content: "";
  height: 1px;
  width: 56px;
  background: linear-gradient(90deg, transparent, var(--gold-500));
}

.hero-en::after {
  background: linear-gradient(90deg, var(--gold-500), transparent);
}

.hero-subtitle {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 16px;
  /* 與下方描述文字同一色系（var(--text-secondary) = #5c5433），
     純黑太搶眼也不好讀。 */
  color: var(--text-secondary);
}

.hero-desc {
  font-size: 14.5px;
  color: var(--text-secondary);
  line-height: 1.9;
  margin-bottom: 34px;
}

.hero-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 12px 30px;
  border-radius: 40px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.28s;
}

.btn-gold {
  background: linear-gradient(135deg, #f0d98a 0%, #d4af37 55%, #b8942a 100%);
  color: #1a1200;
  box-shadow: 0 6px 26px rgba(212, 175, 55, 0.32);
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 34px rgba(212, 175, 55, 0.5);
}

.btn-outline {
  border-color: var(--border-strong);
  color: var(--gold-300);
  background: rgba(212, 175, 55, 0.05);
}

.btn-outline:hover {
  background: rgba(212, 175, 55, 0.14);
  border-color: var(--gold-400);
}

/* ============================================================
   區塊通用
   ============================================================ */

.section {
  padding: 78px 0;
  position: relative;
}

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section-title {
  text-align: center;
  font-size: 27px;
  font-weight: 700;
  letter-spacing: 5px;
  margin-bottom: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.section-title::before,
.section-title::after {
  content: "";
  height: 1px;
  width: 80px;
  background: linear-gradient(90deg, transparent, var(--gold-500), transparent);
}

/* ============================================================
   五個特色
   ============================================================ */

.features {
  background: linear-gradient(180deg, var(--navy-800) 0%, var(--navy-900) 100%);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 0;
}

.feature {
  text-align: center;
  padding: 8px 22px;
  border-right: 1px solid var(--border-subtle);
}

.feature:last-child {
  border-right: none;
}

/* 特色區的圓形容器
 *
 * 為什麼需要這層容器：
 *   圖檔是 512x512 的不透明 PNG，中央是金色圓章，
 *   但四周留白處還帶著相鄰圖案的淡淡殘影。
 *   單靠 border-radius 只能切「圖片外框」，
 *   切不掉殘影。
 *
 *   做法：容器做成固定大小的圓，overflow: hidden，
 *   裡面的圖片放大 115% 後置中，
 *   殘影就被推到圓外裁掉了。
 */
.feature-icon-wrap {
  width: 62px;
  height: 62px;
  margin: 0 auto 18px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-icon {
  width: 135%;
  height: 135%;
  object-fit: cover;
  /* 放大 135% 後，配合容器的圓形裁切，
     可把圖片邊緣殘留的相鄰徽章完全推出可見範圍。 */
  mix-blend-mode: multiply;
}

.feature-title {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.feature-desc {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.85;
}

/* ============================================================
   城市區塊
   ============================================================ */

.city-section {
  position: relative;
  min-height: 480px;
  display: flex;
  align-items: center;
  background-image: url("../images/city.jpg");
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.city-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(5, 11, 24, 0.55) 0%,
    rgba(5, 11, 24, 0.75) 45%,
    rgba(5, 11, 24, 0.97) 68%,
    rgba(5, 11, 24, 1) 100%
  );
}

.city-inner {
  position: relative;
  z-index: 2;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 70px 24px;
  width: 100%;
  display: flex;
  justify-content: flex-end;
}

.city-content {
  max-width: 480px;
}

.city-en {
  font-size: 11.5px;
  letter-spacing: 4px;
  color: var(--gold-500);
  font-weight: 500;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.city-en::before {
  content: "";
  width: 34px;
  height: 1px;
  background: var(--gold-500);
}

.city-title {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: 3px;
  line-height: 1.35;
  margin-bottom: 22px;
}

.city-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 2;
  margin-bottom: 30px;
}

/* ============================================================
   底部四個標記
   ============================================================ */

.bottom-marks {
  background: var(--navy-900);
  border-top: 1px solid var(--border-subtle);
  padding: 30px 0;
}

.marks-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0;
}

.mark {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 6px 20px;
  border-right: 1px solid var(--border-subtle);
}

.mark:last-child {
  border-right: none;
}

.mark-icon {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  color: var(--gold-400);
  font-size: 15px;
}

.mark-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.4;
}

.mark-sub {
  font-size: 10.5px;
  color: var(--text-muted);
  line-height: 1.4;
}

/* ============================================================
   頁尾
   ============================================================ */

.site-footer {
  background: var(--navy-800);
  border-top: 1px solid var(--border-subtle);
  padding: 34px 0;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-logo {
  width: 38px;
  height: 38px;
  object-fit: contain;
  /* 頁尾使用 logo-transparent.png（透明背景），不需要白底。
     移除白色圓底與陰影，讓 logo 直接融入頁尾。 */
  mix-blend-mode: normal;
}

.footer-brand {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--gold-300);
}

.footer-tagline {
  font-size: 10px;
  letter-spacing: 3px;
  color: var(--text-muted);
  margin-left: auto;
}

.footer-flag {
  font-size: 20px;
}

.footer-note {
  width: 100%;
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 6px;
}

/* ============================================================
   選單頁
   ============================================================ */

.menu-page {
  min-height: 100vh;
  background-image: url("../images/menu-bg.jpg");
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px 20px;
}

.menu-card {
  width: 100%;
  max-width: 420px;
  position: relative;
}

.menu-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 42px;
  padding-left: 4px;
}

/* 選單頁的語言切換（absolute 定位在右上） */
.menu-lang {
  position: absolute;
  top: 22px;
  right: 20px;
}

/* menu.html 品牌 logo 的容器（圖檔本身透明，不需裁切） */
.menu-brand-logo-wrap {
  width: 68px;
  height: 68px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.menu-brand-logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 3px 12px rgba(168, 134, 28, 0.28);
  mix-blend-mode: normal;
}

.menu-brand-text {
  line-height: 1.25;
}

.menu-brand-title {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 5px;
  color: var(--gold-300);
}

.menu-brand-sub {
  font-size: 9.5px;
  letter-spacing: 4px;
  color: var(--text-muted);
}

.menu-list {
  display: flex;
  flex-direction: column;
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 15px 4px;
  border-bottom: 1px solid var(--border-subtle);
  transition: all 0.28s;
  cursor: pointer;
}

.menu-item:first-child {
  border-top: 1px solid var(--border-subtle);
}

.menu-item:hover {
  padding-left: 12px;
  background: linear-gradient(
    90deg,
    rgba(212, 175, 55, 0.09),
    transparent 75%
  );
}

/* 圖示：固定正方形，圖片原樣顯示 */
.menu-icon-box {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  line-height: 0;
}

.menu-icon {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /*
   * 圖示是白底（或深底）不透明的方形 PNG，需要去背。
   *
   * 為什麼用 screen 而不是 multiply：
   *   menu-page 的背景是 menu-bg.jpg（深藍夜景），
   *   multiply 的算法是「底色 × 圖色」，
   *   深藍底把金色圖案乘成接近黑色，六個圖示全糊掉。
   *
   *   screen 的算法是「1-(1-底)(1-圖)」，
   *   深色部分幾乎不影響結果（等於透明），
   *   亮色（金色）會完整保留並發光，
   *   正好適合深底 + 金色圖示的組合。
   */
  border-radius: 50%;
  mix-blend-mode: screen;
}

.menu-label {
  font-size: 21px;
  font-weight: 600;
  letter-spacing: 5px;
  color: var(--text-primary);
  flex: 1;
}

.menu-arrow {
  color: var(--gold-500);
  font-size: 17px;
  transition: transform 0.28s;
  flex-shrink: 0;
}

/*
 * 選單項目的右側備註（例如「四大主流幣」）。
 *
 * 為什麼不塞進 menu-label：
 *   menu-label 有 flex: 1 會撐滿剩餘空間，
 *   把備註放進去會被推到自己那一行的最右邊，
 *   與箭頭擠在一起。獨立成一個元素放在 label 之後、
 *   箭頭之前，才能穩穩貼在箭頭左側。
 */
.menu-note {
  flex-shrink: 0;
  margin-right: 2px;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid rgba(212, 175, 55, 0.42);
  background: rgba(212, 175, 55, 0.1);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--gold-600, #9a7a14);
  white-space: nowrap;
}

/*
 * 黃金美元徽章圖。
 *
 * 這張圖是白底不透明 PNG，沿用其他圖示的 multiply 去背，
 * 但它是正方形滿版圖（不是圓形小圖），
 * 所以額外給一點縮放，避免圓框邊緣被切掉。
 */
.menu-icon-badge {
  transform: scale(1.06);
}

.menu-item:hover .menu-arrow {
  transform: translateX(5px);
}

/* ============================================================
   RWD
   ============================================================ */

@media (max-width: 900px) {
  .hero-title { font-size: 44px; letter-spacing: 7px; }
  .hero-subtitle { font-size: 20px; }
  .city-title { font-size: 28px; }
  .section-title { font-size: 22px; letter-spacing: 3px; }
  .section-title::before,
  .section-title::after { width: 40px; }

  .feature {
    border-right: none;
    border-bottom: 1px solid var(--border-subtle);
    padding: 22px;
  }
  .feature:last-child { border-bottom: none; }

  .mark {
    border-right: none;
    border-bottom: 1px solid var(--border-subtle);
    padding: 16px 20px;
  }
  .mark:last-child { border-bottom: none; }

  .city-inner { justify-content: flex-start; }
}

@media (max-width: 640px) {
  .header-tagline,
  .header-divider { display: none; }

  /* --- Header 精簡，避免擠壓漢堡選單 --- */
  .header-inner { padding: 0 14px; gap: 10px; }

  .logo-img { width: 54px; height: 54px; }

  /* 手機版隱藏英文副標，只留主標 */
  .logo-sub { display: none; }
  .logo-title { font-size: 23px; letter-spacing: 2.5px; }
  .logo-lockup { gap: 10px; }

  .header-actions { gap: 8px; }

  /* 漢堡選單維持足夠的點擊面積 */
  .hamburger {
    width: 40px;
    height: 40px;
    padding: 8px;
    flex-shrink: 0;
  }

  .hero { min-height: 520px; }
  .hero-inner { padding: 120px 20px 60px; }
  .hero-title { font-size: 34px; letter-spacing: 5px; }
  .hero-en { font-size: 12px; letter-spacing: 5px; }
  .hero-subtitle { font-size: 17px; }
  .hero-desc { font-size: 13px; }
  .hero-logo { width: 70px; height: 70px; }

  .btn { padding: 11px 24px; font-size: 13px; }

  .menu-label { font-size: 18px; letter-spacing: 3px; }
  .menu-icon-box { width: 46px; height: 46px; }
  .menu-brand-title { font-size: 22px; }
}

/* 更窄的手機（例如 iPhone SE）再精簡一層 */
@media (max-width: 420px) {
  .header-inner { padding: 0 10px; gap: 8px; }
  /* 只留 Logo 圖示，連 SUPER NODE 文字都收起 */
  .logo-text { display: none; }

  .header-actions { gap: 6px; }

  /*
   * 錢包按鈕在窄螢幕上仍要顯示文字。
   *
   * 原本這裡把 .label-text 隱藏、只留圓點，
   * 但實務上客戶看到一個孤零零的圓點根本不知道那是「連接錢包」，
   * 反而找不到入口。改成保留文字，只縮小字級與內距。
   */
  .wallet-btn {
    padding: 0 10px;
    gap: 5px;
  }

  .wallet-btn .label-text {
    display: inline;
    font-size: 11px;
  }

  .lang-btn { padding: 0 9px; }
  .lang-btn .caret { display: none; }

  .hamburger { width: 38px; height: 38px; }
}

/* ================================================================== */
/* 彈出式選單（不跳頁）                                                 */
/* ================================================================== */
/*
 * 為什麼要改成彈出而不是連到 menu.html：
 *   每次跳頁都會重新載入所有 JS，錢包連線狀態要重新建立。
 *   TokenPocket 手機版在頁面重新載入時常常要求重新授權，
 *   使用者就會覺得「點選單後連線被重置」。
 *   改成同頁展開面板，錢包狀態完全不受影響。
 */

.sn-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(4px);
  z-index: 9000;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 24px 16px;
  overflow-y: auto;
}

.sn-menu-overlay.open {
  display: flex;
}

.sn-menu-panel {
  width: 100%;
  max-width: 460px;
  background: linear-gradient(180deg, #fffdf5 0%, #fdf6e0 100%);
  border: 1px solid rgba(212, 175, 55, 0.28);
  border-radius: 18px;
  padding: 24px 22px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
  animation: snMenuIn 0.18s ease-out;
}

@keyframes snMenuIn {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.sn-menu-head {
  display: flex;
  align-items: center;
  gap: 11px;
  padding-bottom: 11px;
  border-bottom: 1px solid rgba(168, 134, 28, 0.2);
  margin-bottom: 10px;
}

/* 選單品牌 logo 的容器。 */
/*
 * 選單品牌區整體縮小。
 *
 * 為什麼：
 *   原本 56px logo + 26px 標題的區塊佔掉選單上方一大塊，
 *   手機上六個選單項目要滑動才看得完。
 *   縮小後可以在一頁內看到全部項目。
 */
.sn-menu-logo-wrap {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sn-menu-logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* 新 Logo 為深色底六角徽章：圓形裁切 + 陰影。 */
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(168, 134, 28, 0.28);
  mix-blend-mode: normal;
}

.sn-menu-brand-title {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--gold-200, #a8861c);
}

.sn-menu-brand-sub {
  font-size: 8.5px;
  letter-spacing: 2.2px;
  color: rgba(90, 78, 40, 0.6);
  margin-top: 1px;
}

.sn-menu-close {
  margin-left: auto;
  background: transparent;
  border: 1px solid rgba(168, 134, 28, 0.35);
  color: rgba(70, 60, 30, 0.75);
  width: 42px;
  height: 42px;
  border-radius: 10px;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.sn-menu-close:hover {
  border-color: rgba(168, 134, 28, 0.7);
  color: var(--gold-200, #a8861c);
}

.sn-menu-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 12px;
  border-radius: 11px;
  color: #3a3218;
  text-decoration: none;
  font-size: 17px;
  font-weight: 600;
  transition: background 0.15s;
}

.sn-menu-item:hover,
.sn-menu-item:active {
  background: rgba(212, 175, 55, 0.18);
}

/* 主標題：固定寬度，讓右側的標註與箭頭在每一列都對齊 */
.sn-menu-label {
  font-weight: 700;
  flex: 0 0 96px;
  font-size: 17px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 右側用途說明（美債 → 入金）
 *
 * 對齊方式：
 *   - 固定寬度（不是 min-width），確保每個標籤的框一樣寬
 *   - 文字置中，避免「入金」與「獎金明細」一邊靠左一邊靠右
 *   - margin-left: auto 把整組推到右側
 *   - 箭頭用固定寬度，讓所有列的箭頭也對齊
 */
.sn-menu-note {
  flex: 0 0 auto;
  width: 104px;
  text-align: center;
  font-size: 14px;
  font-weight: 500;
  color: rgba(110, 90, 30, 0.8);
  margin-left: auto;
  margin-right: 10px;
  padding: 4px 0;
  border-radius: 20px;
  background: rgba(212, 175, 55, 0.2);
  white-space: nowrap;
  line-height: 1.4;
}

/* 箭頭固定在最右邊，固定寬度讓每列的箭頭對齊 */
.sn-menu-item .sn-arrow {
  flex: 0 0 18px;
  text-align: center;
  color: rgba(120, 100, 40, 0.55);
  font-size: 22px;
}

.sn-menu-icon {
  width: 34px;
  height: 34px;
  object-fit: cover;
  /* 白底不透明 PNG：multiply 去白底，圓形裁切去掉邊緣殘影。 */
  border-radius: 50%;
  mix-blend-mode: multiply;
  opacity: 1;
}

/* ============================================================
   首頁底部：賽馬入口
   ============================================================ */

.horse-entry-wrap {
  max-width: 1040px;
  margin: 0 auto 26px;
  padding: 0 20px;
}

.horse-entry {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 18px;
  border-radius: 16px;
  text-decoration: none;
  overflow: hidden;
  isolation: isolate;

  background:
    linear-gradient(135deg, rgba(212, 175, 55, 0.16), rgba(120, 70, 20, 0.10)),
    #12100b;
  border: 1px solid rgba(212, 175, 55, 0.42);

  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.horse-entry:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 215, 94, 0.85);
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.4),
    0 0 24px rgba(212, 175, 55, 0.22);
}

.horse-entry:active {
  transform: translateY(0);
}

/* 掃光動畫 */
.horse-entry-glow {
  position: absolute;
  top: -60%;
  left: -30%;
  width: 40%;
  height: 220%;
  background: linear-gradient(
    100deg,
    transparent,
    rgba(255, 231, 154, 0.16),
    transparent
  );
  transform: rotate(12deg);
  animation: horseSweep 3.6s ease-in-out infinite;
  pointer-events: none;
  z-index: -1;
}

@keyframes horseSweep {
  0% { left: -40%; }
  55% { left: 115%; }
  100% { left: 115%; }
}

.horse-entry-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.horse-entry-icon {
  font-size: 26px;
  line-height: 1;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.6));
}

.horse-entry-badge {
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.8px;
  background: linear-gradient(135deg, #ff5f5f, #c81e1e);
  color: #fff;
  box-shadow: 0 0 10px rgba(255, 95, 95, 0.5);
  animation: badgePulse 1.8s ease-in-out infinite;
}

@keyframes badgePulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.55; }
}

.horse-entry-body {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
  min-width: 0;
}

.horse-entry-title {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 2px;
  background: linear-gradient(135deg, #fff3c4, #ffd75e 45%, #d4af37);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.horse-entry-sub {
  font-size: 11.5px;
  color: rgba(200, 180, 140, 0.8);
  letter-spacing: 0.6px;
}

.horse-entry-arrow {
  flex-shrink: 0;
  font-size: 24px;
  font-weight: 300;
  line-height: 1;
  color: rgba(255, 215, 94, 0.75);
  transition: transform 0.22s ease, color 0.22s ease;
}

.horse-entry:hover .horse-entry-arrow {
  transform: translateX(4px);
  color: #ffd75e;
}

@media (max-width: 480px) {
  .horse-entry-wrap {
    padding: 0 16px;
    margin-bottom: 20px;
  }

  .horse-entry {
    padding: 13px 15px;
    gap: 11px;
  }

  .horse-entry-icon {
    font-size: 22px;
  }

  .horse-entry-title {
    font-size: 14.5px;
    letter-spacing: 1.5px;
  }

  .horse-entry-sub {
    font-size: 10.5px;
  }
}

/* 首頁入口：城市標籤列 */
.horse-entry-cities {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 3px 0 2px;
  align-self: flex-start;
}

.horse-entry-city {
  display: inline-block;
  padding: 1px 7px 2px;
  border-radius: 5px;
  background: #f5ecd4;
  border: 1px solid rgba(0, 0, 0, 0.32);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 1.5px;
  line-height: 1.5;
  color: #000;
  -webkit-text-fill-color: #000;
  text-shadow: none;
  white-space: nowrap;
}

/* 台北市用淺藍底，跟賽馬頁一致 */
.horse-entry-city-taipei {
  background: #dce9f5;
  border-color: rgba(30, 64, 120, 0.42);
}

@media (max-width: 480px) {
  .horse-entry-city {
    font-size: 9.5px;
    letter-spacing: 1px;
    padding: 1px 6px 2px;
  }

  .horse-entry-cities {
    gap: 4px;
  }
}

/* ---------- 首頁兩個賽馬入口並排 ---------- */

.horse-entry-wrap {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* 台北市那張：淺藍邊框，跟新北市區隔 */
.horse-entry-taipei {
  border-color: rgba(120, 170, 225, 0.45) !important;
}

@media (max-width: 480px) {
  .horse-entry-wrap {
    gap: 10px;
  }
}

/* 台南市入口卡：綠色邊框 */
.horse-entry-tainan {
  border-color: rgba(120, 200, 130, 0.45) !important;
}

/* 台南市標籤 */
.horse-entry-city-tainan {
  background: #dff0dd;
  border-color: rgba(40, 100, 45, 0.42);
}

/* 總統之路入口卡：紅色邊框 */
.horse-entry-president {
  border-color: rgba(225, 130, 130, 0.5) !important;
}

.horse-entry-city-president {
  background: #f5dcdc;
  border-color: rgba(140, 40, 40, 0.42);
}
