/* ============================================================
   custom.css — 静态重建版补充样式
   替代原站 Tailwind 内联工具类 + motion.js 跑马灯动画
   配色沿用旧版：橙 #ff6b35 / 深蓝 #002b5e / 亮蓝 #1a5dad / 黑
   ============================================================ */

:root {
  --tuna-orange: #ff6b35;
  --tuna-navy: #002b5e;
  --tuna-blue: #1a5dad;
}

html { scroll-behavior: smooth; }
body { overflow-x: hidden; }

/* ---------- 全站一致性修复（2026-08-02 审查） ---------- */
/* 图片一律等比：防 HTML height 属性把图拉成长条 */
img { height: auto; }
.image-80 { height: auto !important; width: min(100%, 460px); }
._3d-image { height: auto !important; object-fit: contain; }
/* 主 CTA：文字永不折行，按钮随文字收缩 */
.button-primary-cta { white-space: nowrap; }
.button-primary-cta.max-width-medium.smaller.wider {
  padding-left: clamp(2rem, 4vw, 5rem) !important;
  padding-right: clamp(2rem, 4vw, 5rem) !important;
  width: fit-content;
}
.header1_content_mobile .button-primary-cta {
  padding-left: 2rem !important;
  padding-right: 2rem !important;
}
/* 复制按钮：单行、宽度自适应，三处统一 */
.fs-copyclip_button {
  white-space: nowrap;
  width: auto !important;
  min-width: unset !important;
}
button.fs-copyclip_button { font-family: inherit; }
/* 页脚长合约地址：允许任意断行，不撑破移动端视口 */
.footer-bottom { overflow-wrap: anywhere; }
/* FAQ：问题标题颜色收进 CSS + 键盘焦点可见 */
.faq4_question strong { color: var(--tuna-navy); }
.faq4_question:focus-visible { outline: 2px solid var(--tuna-orange); outline-offset: 2px; }
/* 英文 hero 标题：自适应字号 + 整词不拆行 */
.nowrap { white-space: nowrap; }
html[lang="en"] .heading-style-h1.herotext {
  font-size: clamp(1.7rem, 6.8vw, 3rem);
  line-height: 1.15;
}
/* 「金枪鱼：海洋硬通货」区块正文（从 h2 抽出后的段落样式） */
.tuna-facts-lede {
  color: #fff;
  font-size: 1.25rem;
  line-height: 1.8;
  max-width: 40rem;
  margin: 1rem 0 1.5rem;
}

.text-orange { color: var(--tuna-orange) !important; }
.no-underline { text-decoration: none !important; }

/* ---------- 导航栏 ---------- */
.navbar13_component {
  position: sticky;
  top: 0;
  z-index: 999;
  background: rgba(0, 20, 45, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.navbar13_container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  max-width: 80rem;
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
}
.navbar13_logo-link {
  color: #fff !important;
  font-weight: 700;
  font-size: 1.5rem;
  text-decoration: none;
  white-space: nowrap;
  font-family: Oswald, sans-serif;
}
.navbar13_menu-link-wrapper { display: flex; align-items: center; gap: 0.25rem; }
.navbar13_link {
  color: #fff !important;
  text-decoration: none;
  padding: 0.5rem 0.9rem;
  font-size: 0.95rem;
  white-space: nowrap;
  opacity: 0.9;
}
.navbar13_link:hover { opacity: 1; color: var(--tuna-orange) !important; }
.nav-menu-desktop { display: flex; align-items: center; }
.navbar13_button-wrapper { display: flex; align-items: center; gap: 0.75rem; }

.nav-buy-btn {
  background: var(--tuna-orange) !important;
  color: #fff !important;
  border-radius: 999px;
  padding: 0.55rem 1.4rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  border: none;
  display: inline-block;
}
.nav-buy-btn:hover { filter: brightness(1.1); }

.nav-lang {
  color: #fff !important;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 999px;
  padding: 0.45rem 1rem;
  font-size: 0.85rem;
  white-space: nowrap;
}
.nav-lang:hover { border-color: var(--tuna-orange); color: var(--tuna-orange) !important; }

/* 实时价格徽章 */
.nav-price {
  display: none;
  align-items: center;
  gap: 0.4rem;
  color: #fff;
  font-size: 0.85rem;
  background: rgba(255,255,255,0.08);
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  white-space: nowrap;
}
.nav-price.show { display: inline-flex; }
.nav-price .up { color: #22c55e; }
.nav-price .down { color: #ef4444; }

@media (max-width: 991px) {
  .nav-menu-desktop { display: none; }
  .nav-price { display: none !important; }
}

/* ---------- WebP 背景替换（原 CSS 引用 PNG 大图 / 已删素材） ---------- */
.padding-global.bkg {
  background-image: url('/images/Grain_Latest.png'), url('/images/bg-yu.webp') !important;
  background-position: 0 0, 0 0;
  background-repeat: repeat, no-repeat;
  background-size: 300px, cover;
}
.section_layout240 {
  background-image: url('/images/Grain_Latest.png'), url('/images/bg-yu.webp') !important;
}
/* 原规则引用 stars-stripes（星条旗）与 fuggt PNG，统一换掉 */
.section-community-hero {
  background-image: none !important;
  background-color: #00142d;
}
.video-overlay-layer { background-image: none !important; }

/* ---------- 跑马灯（替代 motion.js） ---------- */
.marquee-outer {
  position: relative;
  overflow: hidden;
  border-top: 4px solid var(--tuna-orange);
  border-bottom: 4px solid var(--tuna-orange);
  padding: 2rem 0;
  max-width: 100vw;
  background: #000;
}
.marquee-track {
  display: flex;
  width: max-content;
  white-space: nowrap;
  animation: tuna-marquee 24s linear infinite;
}
@keyframes tuna-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.marquee-group { display: flex; align-items: center; gap: 2rem; padding: 0 1rem; }
.marquee-group .text-block-5 { flex-shrink: 0; }
.marquee-outer:hover .marquee-track { animation-play-state: paused; }

/* 跑马灯鱼徽章（原 .trump-t，去 Trump 类名重写） */
.fish-badge {
  background-color: #000;
  border-radius: 300px;
  flex-shrink: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 10rem;
  height: 10rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
  overflow: hidden;
}
.fish-badge img { width: 100%; height: auto; }
.text-block-5.tuna-xl { padding-left: 8rem; padding-right: 8rem; }
@media (max-width: 767px) {
  .fish-badge { width: 5rem; height: 5rem; }
  .text-block-5.tuna-xl { padding-left: 2rem; padding-right: 2rem; font-size: 4vw; }
}

/* ---------- JOINING TUNA 社区合成大图（替换原 Trump 素材） ---------- */
.joining-stage {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  min-height: clamp(360px, 55vw, 820px);
  overflow: hidden;
  background-image: radial-gradient(circle at 50% 40%, rgba(26,93,173,0.35), rgba(0,20,45,0) 70%), url('/images/yu_bg.webp');
  background-position: 50%;
  background-repeat: no-repeat;
  background-size: cover;
}
.joining-word {
  position: absolute;
  left: 0;
  width: 100%;
  text-align: center;
  font-family: Lalezar, Oswald, sans-serif;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.02em;
  pointer-events: none;
  user-select: none;
}
.joining-word.back { top: 8%; font-size: 17vw; color: var(--tuna-orange); z-index: 1; opacity: 0.95; }
.joining-word.front { top: 48%; font-size: 13vw; color: #fff; z-index: 3; text-shadow: 0 6px 40px rgba(0,0,0,0.45); }
.joining-fish-shadow {
  position: absolute;
  bottom: -2%;
  left: 54%;
  transform: translateX(-42%);
  width: min(54vw, 660px);
  height: auto;
  z-index: 1;
  opacity: 0.5;
  filter: blur(1px);
}
.joining-fish {
  position: relative;
  width: min(52vw, 640px);
  height: auto;
  z-index: 2;
  filter: drop-shadow(0 24px 48px rgba(0,0,0,0.45));
}

/* ---------- 滚动渐入动效 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}
.reveal.revealed { opacity: 1; transform: none; }

/* ---------- 微交互 ---------- */
.nav-buy-btn, .button-primary-cta, .fs-copyclip_button {
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}
.nav-buy-btn:hover, .button-primary-cta:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 10px 28px rgba(255, 107, 53, 0.35);
}
.nav-buy-btn:active, .button-primary-cta:active { transform: translateY(0) scale(0.99); }
.fs-copyclip_button:hover { transform: translateY(-1px); }
.image-80 { transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1); }
.image-80:hover { transform: rotate(-1.5deg) scale(1.02); }
._3d-image { transition: transform 0.25s ease-out; transform-style: preserve-3d; }

@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  ._3d-image { transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- 代币分配（修复 Webflow grid 依赖 w-node ID 导致的塌陷） ---------- */
#tokenomics .layout1_content {
  display: flex;
  flex-direction: column;
  align-items: center;
}
#tokenomics .layout1_image-wrapper { width: min(700px, 92vw); }
#tokenomics img.layout1_image { width: 100%; height: auto; }

/* ---------- 合约地址区块 ---------- */
.section-address { background: var(--tuna-blue); }

/* ---------- FAQ 折叠 ---------- */
.faq4_question { cursor: pointer; }
.faq4_answer {
  height: auto !important; /* 覆盖 Webflow 基础样式 height:0 */
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, opacity 0.3s ease;
}
.faq4_accordion.open .faq4_answer { max-height: 30rem; opacity: 1; }
.faq4_accordion .faq4_icon-wrappper svg { transition: transform 0.3s ease; }
.faq4_accordion.open .faq4_icon-wrappper svg { transform: rotate(45deg); }

/* ---------- 页脚 ---------- */
.tuna-footer {
  background: var(--tuna-navy);
  color: #fff;
  padding: 4rem 1.5rem 2rem;
}
.tuna-footer .footer-inner {
  max-width: 56rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.tuna-footer .footer-logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  margin-bottom: 2rem;
  font-family: Oswald, sans-serif;
}
.tuna-footer .footer-nav {
  display: flex;
  gap: 2.5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}
.tuna-footer .footer-nav a { color: #fff; text-decoration: none; opacity: 0.85; }
.tuna-footer .footer-nav a:hover { opacity: 1; color: var(--tuna-orange); }
.tuna-footer .footer-text {
  font-size: 0.85rem;
  line-height: 1.7;
  opacity: 0.75;
  max-width: 52rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}
.tuna-footer .footer-text .bold { font-weight: 700; opacity: 1; }
.tuna-footer hr {
  width: 100%;
  border: none;
  border-top: 1px solid rgba(255,255,255,0.15);
  margin-bottom: 1.5rem;
}
.tuna-footer .footer-bottom {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.85rem;
  opacity: 0.75;
}
.tuna-footer .footer-bottom a { color: #fff; }

/* ---------- 复制按钮反馈 ---------- */
.fs-copyclip_button { cursor: pointer; }
.copy-toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(1rem);
  background: #111;
  color: #fff;
  padding: 0.6rem 1.4rem;
  border-radius: 999px;
  font-size: 0.9rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 9999;
}
.copy-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- 免责声明 ---------- */
.tuna-disclaimer {
  font-size: 0.72rem;
  line-height: 1.6;
  opacity: 0.55;
  max-width: 46rem;
  margin: 2rem auto 0;
  text-align: center;
  color: #fff;
}

/* ---------- 社区大图标题 ---------- */
.community-hero-img { width: min(800px, 90vw); height: auto; }

/* 移动端微调 */
@media (max-width: 767px) {
  .navbar13_container { padding: 0.65rem 1rem; }
  .navbar13_logo-link { font-size: 1.25rem; }
  .nav-lang { padding: 0.4rem 0.8rem; }
  .nav-buy-btn { padding: 0.5rem 1.1rem; font-size: 0.9rem; }
}
