/* =========================================================
   Leisu Home — 2025.10.16.10（合并整理版｜按需微调）
   - 仅做指明的三处修改：
     1) 平台 logo 圆角统一 6px
     2) 红单/优惠/策略三个模块的文章标题颜色 = var(--soft-blue)
     3) 手机端 .cta-final h2 字号略小
   - 额外修复：
     A) 移除移动端把 #compare-title 替换为“指数 → 平台对应”的两条规则
     B) 移除 ≤360px 时将 .resources-grid 强制单列的旧规则，避免与尾部“两列”冲突
========================================================= */

/* ===== 色板与基础 ===== */
:root{
  --bg:#0a1124;
  --card:#111a30;
  --muted:#a9b6d3;
  --brand:#27d3a6;
  --brand-dark:#1fa085;
  --line:#223255;
  --title:#f7f9ff;
  --text:#eef2ff;
  --gold:#ffe28a;
  --gold-2:#ffd35a;
  --soft-blue:#9ecaff;          /* 柔和浅蓝 */
  --soft-blue-strong:#b7d8ff    /* 浅蓝 hover */
}
*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth;line-height:1.6}
body{
  background:var(--bg);color:var(--text);
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"PingFang SC","Microsoft YaHei","Helvetica Neue",Arial,sans-serif
}
.wrap{max-width:1280px;margin:0 auto;padding:0 20px}

/* ===== 头部（手机端居中；菜单在手机隐藏） ===== */
.leisu-header{
  background:linear-gradient(135deg,#0a1124,#1a2a55);
  border-bottom:1px solid var(--line);
  position:sticky;top:0;z-index:1000;
  backdrop-filter:blur(10px)
}
.header-bar{
  display:grid;grid-template-columns:auto 1fr auto;
  align-items:center;gap:20px;padding:15px 0;min-height:80px
}
.logo-box{width:clamp(160px,15vw,200px);display:block}
.logo-box img{width:100%;height:auto;object-fit:contain;aspect-ratio:2/1}
.center-cta{display:flex;justify-content:center}
.btn-center{
  display:inline-flex;align-items:center;justify-content:center;
  padding:10px 18px;border-radius:999px;
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.14);
  color:var(--title);font-weight:700;letter-spacing:.2px;text-decoration:none;
  backdrop-filter:blur(6px)
}
.btn-center:hover{border-color:var(--gold);color:#fff;box-shadow:0 0 0 2px rgba(255,226,138,.15) inset}
.menu-primary{display:flex;gap:8px;list-style:none}
.menu-primary li a{
  display:inline-block;padding:10px 16px;border-radius:8px;
  background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.1);
  font-size:14px;color:var(--text);text-decoration:none
}
@media (max-width:768px){
  .nav,.menu-primary{display:none !important}
  .header-bar{grid-template-columns:1fr auto 1fr}
  .logo-box{justify-self:start}
  .center-cta{justify-self:center}
}

/* ===== 主体与英雄区 ===== */
main{padding:20px 0 40px}
.section{padding:40px 0;border-bottom:1px solid rgba(255,255,255,.05)}
.section:last-of-type{border-bottom:none}
.hero{
  text-align:center;padding:72px 0 50px;
  background:linear-gradient(135deg,#0a1124 0%,#1a2a55 50%,#0a1124 100%)
}
.hero h1{
  font-size:clamp(2.3rem,4.5vw,3.6rem);font-weight:800;line-height:1.1;margin-bottom:16px;
  background:linear-gradient(135deg,#fff,var(--brand));
  -webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent
}
/* 手机端英雄区全宽 */
@media (max-width:768px){
  .hero{
    margin-left:calc(50% - 50vw);margin-right:calc(50% - 50vw);
    padding-left:max(16px,env(safe-area-inset-left));
    padding-right:max(16px,env(safe-area-inset-right))
  }
}

/* ===== 英雄区徽章（非按钮、徽章风） ===== */
.trust-badges{
  display:grid;grid-template-columns:repeat(4,1fr);
  gap:10px;max-width:860px;margin:0 auto 20px
}
@media (max-width:768px){.trust-badges{grid-template-columns:repeat(2,1fr)}}
.badge{
  position:relative;display:flex;align-items:center;justify-content:center;gap:10px;
  padding:8px 12px;border-radius:999px;background:rgba(255,255,255,.02);
  border:1px solid rgba(255,255,255,.16);
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.08), 0 1px 6px rgba(0,0,0,.25)
}
.badge::before{
  content:"";flex:0 0 22px;height:22px;border-radius:50%;
  background:
    radial-gradient(circle at 50% 50%, rgba(255,255,255,.85) 0 32%, transparent 34%),
    conic-gradient(from 0deg, var(--gold) 0 25%, var(--gold-2) 25% 50%, var(--gold) 50% 75%, var(--gold-2) 75% 100%);
  box-shadow:inset 0 0 0 1px rgba(0,0,0,.25), 0 0 0 1px rgba(255,255,255,.2)
}
.badge strong{
  font-size:.86rem;font-weight:800;letter-spacing:.15px;line-height:1.2;text-align:center;white-space:normal;
  background:linear-gradient(135deg,#fff 0%, var(--gold) 100%);
  -webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;
  text-shadow:0 0 12px rgba(255,211,90,.15)
}
@media (max-width:768px){
  .badge{padding:7px 10px;gap:8px}
  .badge::before{flex-basis:20px;height:20px}
  .badge strong{font-size:.82rem}
}

/* ===== 快速入口（手机端两列） ===== */
.cta{display:flex;gap:10px;justify-content:center;flex-wrap:wrap;margin:18px 0}
.btn{
  display:inline-flex;align-items:center;justify-content:center;
  padding:10px 18px;border-radius:12px;
  background:linear-gradient(135deg,var(--brand),var(--brand-dark));
  color:#06151a;font-weight:600;text-decoration:none;border:2px solid transparent;cursor:pointer
}
.btn.secondary{background:rgba(255,255,255,.08);color:var(--text);border:1px solid rgba(255,255,255,.18)}
@media (max-width:768px){
  .cta{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}
  .btn{padding:10px 12px}
}

/* ===== 搜索条（保持样式） ===== */
.searchbar{
  display:flex;max-width:680px;margin:18px auto 0;
  background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.12);
  border-radius:50px;overflow:hidden
}
.searchbar input{flex:1;background:transparent;border:none;outline:none;color:var(--text);padding:12px 18px}
.searchbar button{padding:12px 18px;background:var(--brand);color:#06151a;border:none;font-weight:700}

/* ===== 标题与说明 ===== */
.section h2{font-size:clamp(1.8rem,3vw,2.5rem);font-weight:700;color:var(--title);margin-bottom:20px}
.lead{font-size:1.08rem;color:#a9b6d3;margin-bottom:24px;max-width:800px}

/* ===== 通用卡片/网格 ===== */
.grid-2{display:grid;grid-template-columns:1fr;gap:18px}
@media (min-width:768px){.grid-2{grid-template-columns:1fr 1fr}}

.tile{
  display:flex;gap:16px;background:var(--card);border:1px solid var(--line);
  border-radius:14px;padding:16px;transition:.3s
}
.tile:hover{transform:translateY(-3px);border-color:var(--brand);box-shadow:0 8px 20px rgba(0,0,0,.25)}
.tile .thumb{flex:0 0 200px;border-radius:12px;overflow:hidden}
.tile .thumb img{width:100%;height:auto;aspect-ratio:5/3;object-fit:cover}
.tile .meta-box{flex:1;min-width:0}
.tile .meta-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:8px}
.tile .meta-title{font-size:1.12rem;font-weight:600;margin:0}
.tile .muted{color:#a9b6d3;font-size:.9rem;line-height:1.5;margin:0}
.tile .meta-btn{padding:8px 14px;font-size:12px}

/* ===== 文章标题颜色（按你要求：三大模块=浅蓝） ===== */
.picks-section .meta-title a,
.bonus-section .meta-title a,
.strategy-section .meta-title a { color: var(--soft-blue); text-decoration:none }
.picks-section .meta-title a:hover,
.bonus-section .meta-title a:hover,
.strategy-section .meta-title a:hover { color: var(--soft-blue-strong) }

/* ===== 推荐平台 ===== */
.featured-grid{display:grid;grid-template-columns:1fr;gap:16px}
@media (min-width:768px){.featured-grid{grid-template-columns:1fr 1fr}}
.card-feature{background:var(--card);border:1px solid var(--line);border-radius:14px;padding:14px;transition:.3s}
.card-feature:hover{transform:translateY(-3px);border-color:var(--brand)}
.card-feature__row{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px;gap:12px}
.chip{display:flex;flex-direction:column;gap:2px}
.chip .cn{font-size:1rem;font-weight:700;color:var(--title);line-height:1.2}
.chip .en{font-size:.8rem;color:#95a4c9;line-height:1.2}
/* —— 平台 logo 圆角统一 6px（含推荐平台） —— */
.logo img{width:80px;height:auto;object-fit:contain;border-radius:6px;aspect-ratio:2/1}

/* ===== 为什么选择雷速体育（手机两列 + 缩小卡片） ===== */
.why-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:20px}
.why-card{
  background:var(--card);border:1px solid var(--line);border-radius:14px;
  padding:20px;text-align:center;transition:.3s
}
.why-card:hover{transform:translateY(-4px);border-color:var(--brand)}
.why-ico{font-size:2rem;margin-bottom:10px;filter:drop-shadow(0 2px 6px rgba(255,226,138,.25))}
.why-card h3{
  font-size:1.06rem;margin-bottom:8px;font-weight:800;letter-spacing:.2px;
  background:linear-gradient(135deg,#ffffff 0%, var(--gold) 100%);
  -webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent
}
.why-card p{color:#c6d3f0;font-size:.88rem;line-height:1.45}
@media (max-width:768px){
  .why-grid{grid-template-columns:repeat(2,1fr) !important;gap:10px}
  .why-card{padding:14px;border-radius:12px}
  .why-ico{font-size:1.6rem;margin-bottom:8px}
  .why-card h3{font-size:.98rem;margin-bottom:6px}
  .why-card p{font-size:.84rem;line-height:1.4}
}

/* ===== 平台索引（16家直达/雷速投注平台直达） ===== */
.platform-index{display:grid;grid-template-columns:1fr;gap:16px}
@media (min-width:640px){.platform-index{grid-template-columns:repeat(2,1fr)}}
@media (min-width:1024px){.platform-index{grid-template-columns:repeat(4,1fr)}}
.card--compact{
  background:var(--card);border:1px solid var(--line);border-radius:12px;
  padding:14px;display:flex;flex-direction:column;min-height:220px;transition:.3s
}
.card--compact:hover{transform:translateY(-2px);border-color:var(--brand)}
.card-head{display:flex;flex-direction:column;gap:10px;margin-bottom:10px}
.card-head--row{flex-direction:row;align-items:center;justify-content:space-between}
.card-head--row .logo{margin-left:12px;flex-shrink:0}
/* —— 平台索引 logo 圆角 6px —— */
.card-head--row .logo img{width:88px;height:auto;aspect-ratio:2/1;object-fit:contain;border-radius:6px}
.points-inline{
  list-style:none;margin:4px 0 10px 0;padding:0;
  display:flex;flex-wrap:wrap;gap:8px;color:#a9b6d3;font-size:.82rem
}
.points-inline li{
  background:rgba(255,255,255,.05);padding:6px 10px;border-radius:16px;border:1px solid rgba(255,255,255,.1)
}
.actions{display:flex;gap:10px;margin-top:auto;flex-wrap:wrap}
.actions .btn{flex:1;min-width:120px;text-align:center}
@media (max-width:768px){
  .card--compact{padding:12px;min-height:200px}
  .points-inline{gap:6px;font-size:.8rem}
  .points-inline li{padding:5px 8px}
  .card-head--row .logo img{width:80px}
}

/* ===== 筛选按钮 ===== */
.filters-4{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}
.filters-4 .btn{padding:8px 6px;font-size:13px}

/* ===== 指数表（简称更宽；平台列浅蓝；无横拉） ===== */
.indexmap.dark{
  background:linear-gradient(135deg,#111a30,#0d1528);
  border:1px solid #2b3b6a;border-radius:16px;padding:20px
}
.table-scroll{overflow:visible}
.table{width:100%;border-collapse:collapse;table-layout:fixed;font-size:.9rem;min-width:0 !important}
.table th,.table td{padding:12px 14px;text-align:left;border-bottom:1px solid rgba(255,255,255,.1);vertical-align:middle}
.table th{font-weight:600;color:var(--title);background:rgba(255,255,255,.05)}
.table tr:hover{background:rgba(255,255,255,.02)}
/* 平台列链接：柔和浅蓝（避免深蓝） */
.index-section .brand-k a,.indexmap .brand-k a{color:var(--soft-blue);text-decoration:none}
.index-section .brand-k a:hover,.indexmap .brand-k a:hover{color:var(--soft-blue-strong)}
/* 简称列更宽 + 不换行 */
.table thead tr th:first-child,
.table tbody tr td:first-child{width:6.2em;white-space:nowrap}
.brand-k{display:flex;align-items:center;gap:8px;min-width:0}
.brand-k img{width:24px;height:24px;border-radius:4px;flex:0 0 24px}
.brand-k a{display:inline-block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
@media (max-width:768px){
  /* —— 已移除会覆盖 #compare-title 的两条规则 —— */
  .indexmap.dark{padding:14px;border-radius:14px}
  .table{font-size:.9rem}
  .table th,.table td{padding:10px 12px}
  .table thead tr th:first-child,
  .table tbody tr td:first-child{width:6.6em}
  .brand-k img{width:20px;height:20px}
}

/* ===== 相关资源与工具（手机两列） ===== */
.resources-grid{display:grid;grid-template-columns:1fr;gap:18px}
@media (min-width:768px){.resources-grid{grid-template-columns:repeat(2,1fr)}}
@media (max-width:768px){
  .resources-grid{grid-template-columns:repeat(2,1fr) !important;gap:10px}
  .resources-grid .card{padding:14px;border-radius:12px}
}
.resources-grid .card{
  background:var(--card);border:1px solid var(--line);border-radius:14px;padding:20px;transition:.3s
}
.resources-grid .card:hover{transform:translateY(-2px);border-color:var(--brand)}
.accent-blue{color:#60a5fa;font-weight:600;margin-bottom:12px;font-size:1.02rem}
.list{list-style:none;padding:0;margin:0}
.list li{padding:8px 0;border-bottom:1px solid rgba(255,255,255,.05)}
.list li:last-child{border-bottom:none}
.list li a{color:var(--text);text-decoration:none}
.list li a:hover{color:var(--brand)}

/* ===== 底部 CTA & 小屏通用 ===== */
.cta-final{
  display:flex;flex-direction:column;align-items:center;justify-content:center;
  text-align:center;padding:48px 0;background:linear-gradient(135deg,#111a30,#0d1528);
  border-radius:18px;margin-top:30px
}
.cta-final h2{font-size:2.2rem;margin-bottom:10px}
/* 手机端：CTA 标题稍微小一点 */
@media (max-width:768px){
  .cta-final h2{font-size:1.6rem}
}
.cta-final p{font-size:1.06rem;color:#a9b6d3;margin-bottom:18px}
.cta-final .btns{display:flex;gap:12px;flex-wrap:wrap;justify-content:center}
@media (max-width:768px){
  .tile{flex-direction:column;gap:12px}
  .tile .thumb{flex:none;width:100%}
  .tile .meta-head{flex-direction:column;gap:8px}
  .actions{flex-direction:column}
  .actions .btn{min-width:auto}
}

/* ===== 可访问性/打印 ===== */
a:focus-visible,button:focus-visible,input:focus-visible{outline:2px solid var(--brand);outline-offset:2px}
@media print{
  .leisu-header,.cta-final{display:none}
  body{background:#fff;color:#000}
  .section{break-inside:avoid}
}

/* ===== 统一覆盖（仅确保一致性，不改变设计） ===== */
/* 覆盖用：平台 logo 圆角 6px（确保任何地方都一致） */
.logo img,
.card-head--row .logo img { border-radius: 6px !important; }

/* 所有手机（含超小屏）强制两列 */
@media (max-width: 768px){
  .why-grid{grid-template-columns:repeat(2,1fr) !important;}
  .resources-grid{grid-template-columns:repeat(2,1fr) !important;}
}
/* ≤360px 继续保持两列（按你的需求）；去掉了先前的“强制单列”旧规则 */
@media (max-width: 360px){
  .why-grid,.resources-grid{grid-template-columns:repeat(2,1fr) !important;}
}
