/* ===========================================================
   Casino SEO Template — 结构复刻自 m-yes2win.com 的布局手法
   品牌色全部走 CSS 变量，由 build.mjs 从 brand.config.json 注入
   =========================================================== */

:root{
  --brand-bg:       #0a0705;
  --brand-primary:  #1a0f08;
  --brand-accent:   #F26522;
  --brand-accent-2: #FF8A3D;
  --brand-text:     #f5ece6;
  --brand-muted:    #b09a8c;
  --brand-surface:  #171009;
  --fold-height:    357px;
  --bn-h:           73px;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0; background:var(--brand-bg); color:var(--brand-text);
  font-family:system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Arial,
              "Noto Sans SC","Noto Sans Thai",sans-serif;
  line-height:1.65;
}
a{color:var(--brand-accent-2); text-decoration:none}
a:hover{text-decoration:underline}
img{max-width:100%; height:auto; display:block}

/* ---------- NAV ---------- */
.navbar{background:var(--brand-primary); padding:.75rem 0}
.navbar-brand img{height:44px}
.nav-buttons{display:flex; gap:1.4rem; align-items:center; margin-left:auto}
.nav-buttons a{
  color:var(--brand-text); font-size:.78rem; text-align:center;
  display:flex; flex-direction:column; align-items:center; gap:.25rem;
}
.nav-buttons a i{font-size:1.05rem; color:var(--brand-accent-2)}
.nav-buttons a:hover{color:var(--brand-accent-2); text-decoration:none}

/* ---------- 语言切换下拉 ---------- */
.lang-switcher{position:relative}
.lang-btn{
  background:none; border:0; color:var(--brand-text); font-size:.78rem;
  display:flex; flex-direction:column; align-items:center; gap:.25rem; cursor:pointer;
}
.lang-btn i{font-size:1.05rem; color:var(--brand-accent-2)}
.lang-btn:hover{color:var(--brand-accent-2)}
.lang-menu{
  position:absolute; right:0; top:calc(100% + .55rem); z-index:60;
  min-width:11rem; margin:0; padding:.35rem; list-style:none;
  background:var(--brand-primary); border:1px solid rgba(255,255,255,.12);
  border-radius:.5rem; box-shadow:0 10px 28px rgba(0,0,0,.45);
}
.lang-menu[hidden]{display:none}
.lang-menu li{margin:0}
.lang-menu a{
  display:block; padding:.5rem .75rem; border-radius:.35rem;
  color:var(--brand-text); font-size:.9rem; text-decoration:none;
}
.lang-menu a:hover{background:rgba(255,255,255,.08); text-decoration:none}
.lang-menu a[aria-current="true"]{color:var(--brand-accent-2); font-weight:600}
.lang-menu a[aria-current="true"]::after{content:"✓"; float:right}

/* ---------- 移动端底部导航 ---------- */
/* 底栏与徽章都只在移动端出现;徽章现在是底栏的兄弟节点,必须单独隐藏 */
.bottom-nav,
.bn-badge{display:none}

@media(max-width:860px){
  /* 移动端不要页眉 */
  .navbar{display:none}
  body{padding-bottom:calc(var(--bn-h) + env(safe-area-inset-bottom))}

  .bottom-nav{
    display:flex; position:fixed; left:0; right:0; bottom:0; z-index:100;
    background:var(--brand-primary); border-top:1px solid rgba(255,255,255,.16);
    border-radius:22px 22px 0 0;           /* 栏顶弧形 */
    padding-bottom:env(safe-area-inset-bottom);
    box-shadow:0 -2px 12px rgba(0,0,0,.35);
  }

  /* 品牌 logo 徽章:点击回首页(底栏因此不再需要「首页」项)
     整圆完整可见,画在底栏之上(z-index 高于底栏);
     圆心落在栏的上边缘 —— 上半圆露在栏外,下半圆压在栏面上,不被背景切掉。
     图标行的 padding-top 必须大于 29px 的嵌入深度,否则会被圆压住。 */
  .bn-badge{
    position:fixed; left:50%; transform:translateX(-50%);
    bottom:calc(var(--bn-h) + env(safe-area-inset-bottom) - 29px);
    width:58px; height:58px; border-radius:50%;
    display:flex; align-items:center; justify-content:center;
    background:var(--brand-primary);
    border:3px solid var(--brand-accent);
    box-shadow:0 2px 14px rgba(0,0,0,.5);
    overflow:hidden; z-index:101;          /* 底栏是 100,徽章压在其上,整圆可见 */
  }
  .bn-badge img{width:100%; height:100%; object-fit:cover; border-radius:50%}
  .bn-badge:active{transform:translateX(-50%) scale(.94)}
  /* 图标行下移,给压在栏面上的下半圆让出净空:
     padding-top 34px > 徽章嵌入 29px,留 5px 间隙 */
  .bottom-nav > a,
  .bottom-nav > .bn-lang{
    flex:1 1 0; min-width:0;
    display:flex; flex-direction:column; align-items:center; justify-content:flex-start; gap:.15rem;
    padding:34px .15rem 6px; height:72px;
    color:var(--brand-text); font-size:.62rem; line-height:1.15; text-align:center;
    background:none; border:0; text-decoration:none;
  }
  .bottom-nav i{font-size:1.05rem; color:var(--brand-accent-2)}
  .bottom-nav span{
    max-width:100%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
  }
  .bottom-nav a:hover,.bottom-nav a:active{text-decoration:none; color:var(--brand-accent-2)}
  /* 注册是转化动作,给强调色 */
  .bottom-nav .bn-cta i,.bottom-nav .bn-cta span{color:var(--brand-accent-2)}
  .bottom-nav .bn-cta{font-weight:700}

  /* 移动端语言菜单从底部升起,不做成小下拉 */
  .lang-sheet{
    position:fixed; left:.75rem; right:.75rem; bottom:calc(60px + env(safe-area-inset-bottom));
    top:auto; min-width:0; z-index:110; max-height:60vh; overflow-y:auto;
  }
  .lang-sheet a{padding:.75rem .9rem; font-size:1rem}
  .lang-switcher{display:none}   /* 顶部那个随页眉一起隐藏 */
}
@media(min-width:861px){
  .lang-sheet{display:none !important}
}

/* ---------- 促销横幅 ---------- */
.hero-banner{border-radius:1rem; overflow:hidden; margin-bottom:1rem}
.wallet-strip{
  display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap;
  gap:1rem; background:var(--brand-surface); border-radius:.6rem;
  padding:1rem 1.25rem; margin-bottom:1.5rem;
}
.wallet-strip small{color:var(--brand-muted); display:block}
.btn-join{
  display:inline-flex; align-items:center; justify-content:center;
  background:var(--brand-accent); color:#04140a; font-weight:700;
  border:0; border-radius:.4rem; padding:.55rem 2.2rem; letter-spacing:.05em;
  min-height:44px;                      /* 触摸目标下限 */
}
.btn-join:hover{background:var(--brand-accent-2); color:#04140a}

/* ---------- 游戏墙 ---------- */
.game-wall{
  display:grid; grid-template-columns:repeat(6,1fr); gap:.75rem;
  max-height:640px; overflow-y:auto; padding-right:.4rem;
  /* iOS Safari 在嵌套滚动容器里惯性滚动时会漏重绘,表现为卡片被切成横带、边缘错位。
     开启原生惯性滚动 + 独立合成层,把这块交给 GPU 合成,避免半帧状态被画出来。 */
  -webkit-overflow-scrolling:touch;
  transform:translateZ(0);
  will-change:scroll-position;
}
.game-wall::-webkit-scrollbar{width:6px}
.game-wall::-webkit-scrollbar-thumb{background:var(--brand-accent); border-radius:3px}
/* 不再把卡片写死成 3/4 再用 cover 裁图 ——
   实际素材是 310×400(0.775)和 400×500(0.800),被 0.750 的容器裁掉了边缘。
   改成让图片按自身比例撑开卡片,一个像素都不裁。 */
.game-card{
  position:relative; border-radius:.6rem; overflow:hidden;
  background:var(--brand-surface);
  transform:translateZ(0);          /* 独立合成层,滚动时不参与父层重绘 */
  backface-visibility:hidden;
}
.game-card img{width:100%; height:auto; display:block}
.game-card .tag{
  position:absolute; top:.4rem; left:.4rem; font-size:.62rem; font-weight:700;
  letter-spacing:.06em; color:#fff; text-shadow:0 1px 3px rgba(0,0,0,.8);
}
@media(max-width:992px){.game-wall{grid-template-columns:repeat(3,1fr)}}
@media(max-width:576px){.game-wall{grid-template-columns:repeat(2,1fr)}}

/* ---------- 品牌大使 ---------- */
.promo-section{background:var(--brand-surface)}
.promo-section h4{
  text-align:center; font-size:.9rem; letter-spacing:.22em;
  text-transform:uppercase; color:var(--brand-muted); margin-bottom:1.5rem;
}
.promo-grid{display:grid; grid-template-columns:repeat(4,1fr); gap:1rem}
.promo-grid img{border-radius:.6rem}
@media(max-width:768px){.promo-grid{grid-template-columns:repeat(2,1fr)}}

/* ---------- ★ SEO 长文折叠区（核心，1:1 复刻） ---------- */
.content-container{
  height:var(--fold-height);
  overflow:hidden;
}
/* 展开态:高度交还内容,避免正文溢出压到 footer 上 */
.content-container.is-expanded{height:auto; overflow:visible}
/* 随视口缩放:桌面维持原尺寸,窄屏收窄,避免 390px 上出现 40px 的标题 */
.content-container h1{font-size:clamp(1.75rem,6vw,2.5rem); font-weight:700; margin:1.25rem 0 .75rem; line-height:1.25}
.content-container h2{font-size:clamp(1.35rem,4.6vw,2rem); font-weight:600; margin:1.75rem 0 .6rem; line-height:1.3}
.content-container h3{font-size:clamp(1.08rem,3.4vw,1.3rem); font-weight:600; margin:1.25rem 0 .5rem}
.content-container p{margin:0 0 .9rem; color:#cfe0d4}
.content-container strong{color:#fff}
.content-container ul{color:#cfe0d4; padding-left:1.2rem}
.content-container li{margin-bottom:.5rem}
.fold-toggle{
  background:var(--brand-accent); color:#04140a; border:0;
  border-radius:.35rem; padding:.4rem 1.1rem; font-size:.9rem; font-weight:600;
  min-height:44px; min-width:88px;      /* 触摸目标下限 */
}
.fold-toggle:hover{background:var(--brand-accent-2)}

/* ---------- 子页(agent / faq / signup / login) ---------- */
.crumb{font-size:.82rem; color:var(--brand-muted); margin:1.25rem 0 .5rem; display:flex; align-items:center; flex-wrap:wrap}
/* 面包屑链接补足触摸目标高度 */
.crumb a{display:inline-flex; align-items:center; min-height:44px}
.crumb span{margin:0 .35rem}
.subpage{max-width:60rem; padding-bottom:2rem}
.subpage h1{font-size:2.25rem; font-weight:700; margin:.5rem 0 1rem}
.subpage h2{font-size:1.5rem; font-weight:600; margin:1.75rem 0 .6rem}
.subpage h3{font-size:1.15rem; font-weight:600; margin:1.25rem 0 .4rem}
.subpage p{color:#cfe0d4; margin:0 0 .9rem}
.subpage ul,.subpage ol{color:#cfe0d4; padding-left:1.2rem}
.subpage li{margin-bottom:.45rem}
.subpage strong{color:#fff}
.subpage table{width:100%; border-collapse:collapse; margin:1rem 0; font-size:.9rem}
.subpage th,.subpage td{border:1px solid rgba(255,255,255,.12); padding:.5rem .7rem; text-align:left}
.subpage th{background:var(--brand-surface); color:#fff; font-weight:600}
.subpage .table-wrap{overflow-x:auto}
.subpage .table-wrap + .table-wrap{margin-top:1.5rem}
/* 子品类行:归属上一行厂商,缩进 + 弱化 */
.subpage tr.sub-row td:nth-child(2){padding-left:1.6rem; color:var(--brand-muted)}
.subpage tr.sub-row td{color:#a9bdaf}
.subpage .cta-row{display:flex; gap:.75rem; flex-wrap:wrap; margin:1.5rem 0}

/* ---------- 代理页顶部 ---------- */
.agent-hero{text-align:center; margin:1rem 0 1.5rem}
.agent-hero img{
  max-width:min(70%,260px); height:auto; margin:0 auto;
  filter:drop-shadow(0 0 18px rgba(33,176,75,.4));
}

/* 最高持股份额:进页面第一眼要看到的数字 */
.offer-box{
  text-align:center; margin:0 auto 2rem; max-width:32rem;
  padding:1.5rem 1.25rem 1.35rem;
  background:linear-gradient(180deg, rgba(33,176,75,.14) 0%, rgba(33,176,75,.04) 100%);
  border:2px solid var(--brand-accent);
  border-radius:1rem;
  box-shadow:0 0 28px rgba(33,176,75,.18);
}
.offer-label{
  font-size:.9rem; letter-spacing:.14em; text-transform:uppercase;
  color:var(--brand-accent-2); font-weight:600; margin-bottom:.35rem;
}
.offer-pct{
  font-size:clamp(3.4rem,16vw,5rem); font-weight:800; line-height:1;
  color:#fff; letter-spacing:-.02em;
  text-shadow:0 0 26px rgba(33,176,75,.55);
}
.offer-note{
  margin-top:.4rem; font-size:1rem; font-weight:600; color:var(--brand-accent-2);
}
.offer-sub{
  margin:.75rem 0 0; font-size:.88rem; color:#cfe0d4; line-height:1.55;
}

/* 单池算法公式卡 */
.formula-card{
  background:var(--brand-surface); border-left:3px solid var(--brand-accent);
  border-radius:.6rem; padding:1rem 1.25rem; margin:1.25rem 0;
}
.formula-card .formula-label{
  display:block; font-size:.8rem; letter-spacing:.1em; text-transform:uppercase;
  color:var(--brand-muted); margin-bottom:.5rem;
}
.formula-card code{
  display:block; font-size:.95rem; line-height:1.7; color:var(--brand-accent-2);
  word-break:break-word;
}
@media(max-width:576px){.formula-card code{font-size:.85rem}}

/* 分红池公式卡 */
.pool-grid{display:grid; grid-template-columns:repeat(2,1fr); gap:1rem; margin:1.25rem 0}
.pool-card{background:var(--brand-surface); border-radius:.6rem; padding:1.1rem 1.25rem;
  border-left:3px solid var(--brand-accent)}
.pool-pct{font-size:2rem; font-weight:700; color:var(--brand-accent-2); line-height:1}
.pool-name{font-weight:600; color:#fff; margin:.35rem 0 .15rem}
.pool-basis{font-size:.82rem; color:var(--brand-muted); margin-bottom:.75rem}
.pool-formula{display:block; font-size:.8rem; line-height:1.6; color:#cfe0d4;
  background:rgba(0,0,0,.28); border-radius:.35rem; padding:.6rem .7rem; word-break:break-word}
.pool-note{font-size:.9rem; color:#cfe0d4; margin:.25rem 0 1rem}
.pool-note strong{color:var(--brand-accent-2); margin-right:.4rem}
@media(max-width:768px){.pool-grid{grid-template-columns:1fr}}

/* 算例 */
.worked-example{background:var(--brand-surface); border-radius:.6rem; padding:1rem 1.25rem; margin:1rem 0}
.worked-example hr{border:0; border-top:1px solid rgba(255,255,255,.1); margin:.75rem 0}
.we-row{display:flex; gap:1rem; align-items:baseline; flex-wrap:wrap; margin-bottom:.4rem}
.we-label{flex:0 0 11rem; font-size:.85rem; color:var(--brand-muted)}
.we-calc{font-size:.88rem; color:#fff}
@media(max-width:576px){.we-label{flex:1 0 100%}}

/* 称桶模式参数表 */
.model-spec{
  display:grid; grid-template-columns:minmax(9rem,auto) 1fr; gap:.5rem 1.25rem;
  background:var(--brand-surface); border-radius:.5rem; padding:1rem 1.25rem; margin:1rem 0;
}
.model-spec dt{color:var(--brand-muted); font-size:.9rem}
.model-spec dd{margin:0; color:#fff; font-weight:600}
@media(max-width:576px){.model-spec{grid-template-columns:1fr; gap:.15rem}
  .model-spec dd{margin-bottom:.6rem}}

/* ---------- 浅色页变体(原站 FAQ 页用浅底,与深色首页相反) ---------- */
body.theme-light{background:#f7f7f8; color:#0f0f10}
body.theme-light .subpage p,
body.theme-light .subpage ul,
body.theme-light .subpage ol{color:#3a3a3e}
body.theme-light .subpage strong{color:#0f0f10}
body.theme-light .crumb{color:#6b6b73}
body.theme-light .subpage th{background:#ececf0; color:#0f0f10}
body.theme-light .subpage th,
body.theme-light .subpage td{border-color:rgba(0,0,0,.12)}

/* ---------- FAQ 折叠面板(760px 居中,条目间距 16px) ---------- */
.faq-head{text-align:center; margin:2rem 0 1.5rem}
.faq-head h1{font-size:2.25rem; font-weight:700; margin:0 0 .5rem}
.faq-head p{color:#6b6b73; margin:0}
.accordion{width:100%; max-width:760px; margin:0 auto 2rem}
.accordion-item{margin:0 0 16px; background:#fff; border-radius:.6rem; overflow:hidden;
  box-shadow:0 1px 2px rgba(0,0,0,.06)}
.faq-toggle{
  width:100%; text-align:left; background:none; border:0;
  padding:16px 18px; font-size:1rem; font-weight:600; color:#0f0f10;
  display:flex; align-items:center; justify-content:space-between; gap:1rem;
}
.faq-toggle:hover{background:#fafafb}
.faq-toggle::after{
  content:"\002B"; font-weight:700; font-size:1.15rem; color:var(--brand-accent);
  flex:0 0 auto; transition:transform .2s ease;
}
.faq-toggle[aria-expanded="true"]::after{content:"\2212"}
.faq-body{padding:0 18px 16px; font-size:.95rem; color:#3a3a3e}
.faq-body p{margin:0 0 .75rem}
.faq-body ul,.faq-body ol{padding-left:1.15rem; margin:0 0 .75rem}
.faq-body li{margin-bottom:.4rem}
.faq-body table{width:100%; border-collapse:collapse; font-size:.9rem}
.faq-body th,.faq-body td{border:1px solid rgba(0,0,0,.12); padding:.45rem .6rem; text-align:left}
.faq-body th{background:#ececf0}
.accordion-collapse[hidden]{display:none}

/* ---------- 登录 / 注册页 ---------- */
body.auth-page{
  background:#050b07 url('/assets/image/auth-bg.jpg') center top / cover no-repeat fixed;
}
body.auth-page::before{                 /* 背景压暗,保证按钮与文字对比度 */
  content:""; position:fixed; inset:0; z-index:0;
  background:linear-gradient(180deg, rgba(5,11,7,.55) 0%, rgba(5,11,7,.35) 45%, rgba(5,11,7,.8) 100%);
  pointer-events:none;
}
body.auth-page main,
body.auth-page footer,
body.auth-page .navbar{position:relative; z-index:1}
body.auth-page .crumb{display:none}     /* 入口页不显示面包屑 */
body.auth-page .subpage{max-width:34rem; margin:0 auto; text-align:center}

.sr-only{
  position:absolute; width:1px; height:1px; padding:0; margin:-1px;
  overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; border:0;
}

.auth-hero{margin:2.25rem 0 1.75rem; text-align:center}
.auth-hero img{max-width:min(78%,300px); height:auto; margin:0 auto;
  filter:drop-shadow(0 0 22px rgba(33,176,75,.45))}

/* 堆叠式全宽按钮 */
.cta-row.cta-stack{flex-direction:column; gap:.85rem; margin:1.25rem 0}
.cta{
  display:flex; align-items:center; justify-content:center; gap:.5rem;
  padding:.95rem 1.25rem; border-radius:.75rem;
  font-size:1.05rem; font-weight:600; text-decoration:none; border:2px solid transparent;
}
.cta:hover{text-decoration:none}
.cta-primary{background:var(--brand-accent); color:#04140a}
.cta-primary:hover{background:var(--brand-accent-2); color:#04140a}
.cta-accent{background:#1f6feb; color:#fff}      /* 注册页主按钮:与登录页区分 */
.cta-accent:hover{background:#3b82f6; color:#fff}
.cta-outline{background:transparent; color:var(--brand-text); border-color:rgba(255,255,255,.5)}
.cta-outline:hover{border-color:#fff; color:#fff; background:rgba(255,255,255,.06)}
.cta-link{background:none; color:var(--brand-text); font-weight:500; font-size:.98rem; padding:.4rem; min-height:44px}
.cta-link i{color:var(--brand-accent-2)}
.cta-link:hover{color:var(--brand-accent-2)}

/* auth 页里的正文块回到左对齐,标题保持居中 */
body.auth-page .subpage h1{text-align:center; margin:1.75rem 0 1rem}
body.auth-page .subpage h2{text-align:left}
body.auth-page .subpage p,
body.auth-page .subpage ol,
body.auth-page .subpage ul{text-align:left}

/* 注册步骤图示(STEP 1/2/3) */
.steps{display:grid; grid-template-columns:repeat(3,1fr); gap:1rem; margin:1.25rem 0}
.steps .step{margin:0; text-align:center}
.steps .step img{border-radius:.6rem; width:100%; height:auto}
.steps .step h3{
  margin:.5rem 0 0; font-size:.8rem; font-weight:700; letter-spacing:.12em;
  color:var(--brand-accent-2); text-transform:uppercase;
}
/* 移动端保持并排,与参考设计一致;单列会让手机截图缩得太小反而看不清 */
@media(max-width:576px){
  .steps{grid-template-columns:repeat(2,1fr); gap:.6rem}
  .steps .step h3{font-size:.7rem}
}

/* 推广码 + 一键复制 */
.promo-code{
  display:flex; align-items:center; justify-content:space-between; gap:1rem; flex-wrap:wrap;
  margin:2rem 0; text-align:left;
}
.promo-code .promo-label{
  font-size:1.05rem; font-weight:700; color:#fff; display:block; margin-bottom:.15rem;
}
.promo-code code{
  display:block; font-size:1.6rem; font-weight:800; letter-spacing:.04em;
  color:#f5c518; background:none; padding:0; word-break:break-all;
}
.btn-copy{
  display:flex; align-items:center; gap:.5rem; flex:0 0 auto;
  background:#f5c518; color:#1a1400; border:0;
  border-radius:.6rem; padding:.85rem 1.5rem; font-size:1.05rem; font-weight:700;
  cursor:pointer;
}
.btn-copy:hover{background:#ffd633}
.btn-copy::before{content:"\f0c5"; font-family:"Font Awesome 6 Free"; font-weight:400}

/* ---------- FOOTER ---------- */
footer{background:var(--brand-primary); margin-top:3rem; padding:2.5rem 0 1.5rem}
footer .foot-desc{color:var(--brand-muted); font-size:.85rem; max-width:34rem}
footer .socials{display:flex; gap:1rem; justify-content:flex-end; flex-wrap:wrap}
footer .socials a{
  display:inline-flex; align-items:center; justify-content:center;
  min-width:44px; min-height:44px;          /* 触摸目标下限 */
  color:var(--brand-text); font-size:1.05rem;
}
footer .socials a:hover{color:var(--brand-accent-2)}
/* 未配置的平台:灰显、不可点、带虚线框,一眼看出还差哪几个 */
footer .socials .social-todo{
  display:inline-flex; align-items:center; justify-content:center;
  min-width:44px; min-height:44px; font-size:1.05rem;
  color:rgba(255,255,255,.22);
  border:1px dashed rgba(255,255,255,.16); border-radius:.4rem;
  cursor:default;
}
footer .lang-switch{
  display:flex; gap:.5rem 1rem; flex-wrap:wrap; list-style:none;
  padding:.5rem 0 0; margin:1rem 0 0; border-top:1px solid rgba(255,255,255,.08);
  font-size:.85rem;
}
/* 语言链接原本只有 18px 高,达不到触摸目标下限 */
footer .lang-switch a{
  display:inline-flex; align-items:center; min-height:44px; padding:0 .35rem;
}
footer .copyright{color:var(--brand-muted); font-size:.8rem; text-align:right}
@media(max-width:768px){
  footer .socials,footer .copyright{justify-content:flex-start; text-align:left; margin-top:1rem}
}
