/* =========================
   StayLink – Light Gray + Purple (Pro/Tech)
   完整覆盖版 styles.css
   ========================= */

:root{
  --bg: #f6f7fb;              /* 浅灰背景 */
  --panel: #ffffff;           /* 卡片/面板白 */
  --text: #111827;            /* 主要文字深灰 */
  --muted: #6b7280;           /* 次级文字灰 */
  --border: #e6e8ef;          /* 细分割线 */
  --brand: #7c3aed;           /* 主色紫 */
  --brand-strong:#6d28d9;     /* 深紫hover */
  --brand-soft:#f3e8ff;       /* 淡紫背景 */
  --shadow: 0 10px 30px rgba(24, 24, 38, 0.06);
  --radius-lg: 16px;
  --radius-md: 12px;
}

*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji", sans-serif;
  color:var(--text);
  background:var(--bg);
  line-height:1.65;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}

.container{max-width:1140px;margin:0 auto;padding:0 22px}
.narrow{max-width:800px;margin:0 auto}

/* ================= Header ================= */
.site-header{
  position:sticky; top:0; z-index:50;
  background:#ffffffcc; backdrop-filter:saturate(180%) blur(10px);
  border-bottom:1px solid var(--border);
}
.header-inner{display:flex;align-items:center;justify-content:space-between;height:68px}
.brand{display:flex;align-items:center;text-decoration:none}
.brand-mark{
  display:inline-block;font-weight:800;font-size:20px;letter-spacing:.2px;
  color:var(--brand-strong);
}
.nav{display:flex;gap:20px}
.nav a{
  text-decoration:none;color:var(--muted);font-weight:600;font-size:14px;
  padding:6px 0;border-bottom:2px solid transparent;transition:color .15s ease, border-color .15s ease;
}
.nav a:hover{color:var(--text);border-color:var(--brand)}
.lang{display:flex;align-items:center;gap:12px}
.lang-select{
  appearance:none;border:1px solid var(--border);background:#fff;border-radius:12px;
  padding:8px 12px;font-size:14px;color:var(--text);box-shadow:var(--shadow);
}
.menu-btn{display:none;background:none;border:0;padding:6px 8px}
.menu-line{display:block;width:18px;height:2px;background:#111827;margin:3px 0;border-radius:2px}

/* ================ HERO (video) ================ */
.hero{padding:56px 0}
.theme-warm .hero{background:linear-gradient(180deg,#fff 0%, var(--bg) 100%);border-bottom:1px solid var(--border)}
.hero-video{padding:0}
.hero-video-wrap{
  position:relative;width:100%;aspect-ratio:16/5;
  background:#000;overflow:hidden;border-radius:0 0 var(--radius-lg) var(--radius-lg);
}
.hero-video-el{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.hero-video-shade{
  position:absolute;inset:0;
  background:linear-gradient(180deg,rgba(255,255,255,0.04) 0%,rgba(0,0,0,0.18) 65%,rgba(0,0,0,0.28) 100%);
  pointer-events:none;
}
.hero-title-bottom{
  position:absolute;left:50%;bottom:18px;transform:translateX(-50%);
  width:min(92%,980px);text-align:center;color:#fff;text-shadow:0 4px 18px rgba(0,0,0,.35);
}
.hero-title-bottom h1{
  margin:0 0 8px;font-size:clamp(22px,3.2vw,38px);line-height:1.15;font-weight:800;
  letter-spacing:.2px;
}
.lead{font-size:clamp(14px,1.6vw,18px);color:#eef2ff;margin:0 auto;max-width:860px}

/* ================ Sections / Titles ================ */
.section{padding:60px 0}
.section-soft{background:var(--brand-soft);border-top:1px solid var(--border);border-bottom:1px solid var(--border)}
.section-title{font-size:26px;margin:0 0 18px;font-weight:800;letter-spacing:.2px}
.subtle{color:var(--muted);font-size:14.5px}

/* ================ Feature Cards ================ */
.cards{
  display:grid;grid-template-columns:repeat(4,1fr);gap:18px
}
.card{
  background:var(--panel);border:1px solid var(--border);border-radius:var(--radius-lg);padding:20px;
  box-shadow:var(--shadow)
}
.card h3{margin:0 0 10px;font-size:18px;font-weight:800}
.card p{margin:0;color:var(--muted);font-size:14.5px}

/* ================ Promo Hero 三列布局（左右图 + 中间文案） ================ */
.promo-hero-tri {
  position: relative;
  background: linear-gradient(135deg, #ede9fe 0%, #faf5ff 100%);
  padding: 80px 0;
  border-top:1px solid var(--border);
  border-bottom:1px solid var(--border);
}
.promo3-grid {
  display: grid;
  grid-template-columns: 1fr 0.9fr 1fr;  /* 左图 | 文案 | 右图 */
  gap: 40px;
  align-items: center;
}
.promo3-center { text-align: center; }
.promo-eyebrow {
  font-size: 13px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase;
  color: var(--brand-strong); margin-bottom: 10px;
}
.promo3-title {
  font-size: clamp(32px, 4vw, 54px); font-weight: 800; line-height: 1.1;
  color: #1f2937; margin: 0 0 12px;
}
.promo3-desc { color: #4b5563; max-width: 520px; margin: 0 auto 18px; }
.promo-btn{
  display:inline-block; padding:12px 24px; border-radius:12px;
  background:var(--brand); color:#fff; font-weight:800; text-decoration:none;
  box-shadow:0 12px 24px rgba(124,58,237,.2);
}
.promo-btn:hover{ background:var(--brand-strong) }

/* 左右图片完整显示 */
.promo3-photo{
  position: relative; height: 400px;
  border-radius: 20px; overflow: hidden;
  border:1px solid var(--border); background:#fff;
  box-shadow: 0 20px 40px rgba(17,24,39,.18);
}
.promo3-photo img{
  width:100%; height:100%; object-fit:cover; object-position:center; display:block;
}

/* 标签 */
.chip{
  position:absolute; top:16px; padding:8px 14px; border-radius:999px;
  background:#fff; font-weight:700; font-size:13px; color:#111827;
  box-shadow:0 6px 20px rgba(0,0,0,.1);
  border:1px solid var(--border);
}
.chip-inset-left{ left:16px }
.chip-inset-right{ right:16px }

/* ================ Charts ================ */
.charts{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
.chart-card{
  background:var(--panel);border:1px solid var(--border);border-radius:var(--radius-lg);padding:18px;
  box-shadow:var(--shadow)
}
.chart-title{margin:0 0 10px;font-size:16px;font-weight:800}
.chart-canvas{width:100%;height:220px;border-radius:12px;background:#fff}

/* ================ Partners (colored logos) ================ */
.partners-logos{
  display:grid;grid-template-columns:repeat(5,1fr);gap:18px;align-items:center
}
.partner{
  display:flex;align-items:center;justify-content:center;
  height:72px;border:1px dashed var(--border);border-radius:999px;background:var(--panel);
  box-shadow:var(--shadow)
}
.partner img{
  max-height:28px; max-width:140px; filter:none; opacity:1; transition:transform .15s ease, opacity .15s ease;
}
.partner img:hover{transform:translateY(-1px);opacity:.95}

/* ================ Footer ================ */
.holdings-footer{
  border-top:1px solid var(--border);
  background:#f3f4f8;
  padding:24px 0 28px;
  font-size:13px;color:#6b7280
}
.holdings-footer .copy{ text-align:center; line-height:1.7; margin-bottom:14px }
.holdings-logos{ display:flex; justify-content:center; align-items:center; gap:26px; flex-wrap:wrap }
.mark{display:inline-flex; align-items:center; gap:8px; font-weight:800}
.mark.staylink{color:#0a5bd3; font-size:18px}
.dot{width:8px;height:8px;border-radius:50%}
.mark.priceline{color:#0a5bd3}
.kayak{display:inline-flex; gap:4px}
.kayak span{display:inline-block; padding:3px 6px; background:#ff7a00; color:#fff; border-radius:4px; font-weight:800; letter-spacing:1px; font-size:12px}
.mark.agoda{color:#374151}
.agoda-dots{display:inline-flex; gap:6px; margin-right:6px}
.agoda-dots .dot:nth-child(1){background:#4f46e5}
.agoda-dots .dot:nth-child(2){background:#06b6d4}
.agoda-dots .dot:nth-child(3){background:#22c55e}
.agoda-dots .dot:nth-child(4){background:#f59e0b}
.agoda-dots .dot:nth-child(5){background:#ef4444}
.mark.opentable{color:#374151}
.opentable-dot{width:12px;height:12px;border-radius:999px;background:#e11d48;display:inline-block}

/* CTA link/button 通用 */
.cta-link{
  display:inline-block;margin-top:12px;padding:11px 18px;border-radius:12px;
  background:var(--brand);color:#fff;text-decoration:none;font-weight:800;
  box-shadow:0 12px 30px rgba(124,58,237,.28); border:1px solid rgba(255,255,255,0.18);
  transition:transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.cta-link:hover{transform:translateY(-1px);background:var(--brand-strong);box-shadow:0 16px 36px rgba(124,58,237,.36)}

/* ================ Responsive ================ */
@media (max-width: 1080px){
  .container{max-width:1000px}
}
@media (max-width: 980px){
  .nav{display:none}
  .menu-btn{display:inline-block}
  .cards{grid-template-columns:repeat(2,1fr)}
  .charts{grid-template-columns:1fr;gap:16px}
  .partners-logos{grid-template-columns:repeat(3,1fr)}
}
@media (max-width: 780px){
  .container{padding:0 16px}
  .cards{grid-template-columns:1fr}
  .hero-video-wrap{aspect-ratio:9/16;border-radius:0}
  .partners-logos{grid-template-columns:repeat(2,1fr)}
  .partner{height:66px}
  .partner img{max-height:26px}
  .promo-hero-tri{background:var(--bg)}
  .promo3-grid{grid-template-columns:1fr}
  .promo3-photo{height:320px}
  .chip{display:none}
  .promo3-title{color:#1f2937}
  .promo3-desc{color:var(--muted)}
}
/* SPA 导航高亮 */
.nav a.is-active { color: var(--brand); border-color: var(--brand); }

/* —— 数字卡片 —— */
.slx-stats.pro{background:linear-gradient(180deg,#fbfdff,#f6f8ff)}
.stats-pro{
  display:grid;grid-template-columns:repeat(3,1fr);gap:16px
}
@media (max-width:900px){.stats-pro{grid-template-columns:1fr}}
.stat-card{
  background:#fff;border:1px solid #e9edf7;border-radius:16px;
  padding:18px;box-shadow:0 10px 28px rgba(20,27,45,.06)
}
.stat-chip{
  display:inline-block;background:#eef2ff;color:#4f46e5;
  padding:4px 10px;border-radius:999px;font-size:12px;font-weight:600
}
.stat-num{font-size:34px;font-weight:800;margin:10px 0 4px;color:#111}
.stat-text{color:#64748b}

/* —— 两列图标卡 —— */
.slx-capabilities.v2{background:#f9fafc}
.cap2{
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px
}
@media (max-width:900px){.cap2{grid-template-columns:1fr}}
.cap2-item{
  display:flex;gap:14px;align-items:flex-start;
  background:#fff;border:1px solid #e9edf7;border-radius:16px;
  padding:18px;box-shadow:0 10px 26px rgba(20,27,45,.05)
}
.cap2-icon{
  width:42px;height:42px;border-radius:12px;display:grid;place-items:center;
  background:linear-gradient(180deg,#eef2ff,#f5f7ff);color:#4f46e5;border:1px solid #e4e8fb;flex:0 0 42px
}
.cap2-kicker{font-size:12px;color:#6b7280;margin-bottom:4px}
.cap2-title{margin:0 0 6px;font-size:18px}
.cap2-desc{margin:0;color:#64748b}
.cap2-spacer{display:none} /* 预留占位，必要时可显示 */

/* ---- Deluxe 数字卡 ---- */
.slx-stats.pro.deluxe {
  background: linear-gradient(180deg,#fafbff,#f5f7ff);
  padding: 80px 0;
}
.stats-pro {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 28px;
}
@media(max-width:900px){.stats-pro{grid-template-columns:1fr;}}
.stat-card {
  position: relative;
  background: #fff;
  border: 1px solid #eceff8;
  border-radius: 18px;
  padding: 28px 22px;
  text-align: center;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(76,87,125,0.06);
  transition: transform .4s ease, box-shadow .4s ease;
}
.stat-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 26px 50px rgba(76,87,125,0.12);
}
.stat-glow {
  position: absolute;
  top: -30%;
  left: -30%;
  width: 160%;
  height: 160%;
  background: radial-gradient(circle at center,rgba(124,58,237,0.08),transparent 60%);
  opacity: 0;
  transition: opacity .4s;
}
.stat-card:hover .stat-glow {opacity: 1;}
.stat-chip {
  display:inline-block;
  background:linear-gradient(90deg,#ede9fe,#f3e8ff);
  color:#6d28d9;
  padding:4px 12px;
  border-radius:999px;
  font-size:13px;
  font-weight:600;
}
.stat-num {
  font-size:40px;
  font-weight:800;
  margin:14px 0 6px;
  color:#1e1b4b;
}
.stat-text {
  color:#64748b;
  font-size:15px;
}

/* ---- 高级图标卡 ---- */
.slx-capabilities.v3 {
  background:#f9faff;
  padding:90px 0;
}
.cap2.pro {
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:22px;
}
@media(max-width:900px){.cap2.pro{grid-template-columns:1fr}}
.cap2-item {
  display:flex;
  gap:18px;
  align-items:flex-start;
  background:#fff;
  border:1px solid #e5e7eb;
  border-radius:18px;
  padding:22px 20px;
  box-shadow:0 10px 30px rgba(40,60,120,0.06);
  position:relative;
  transition:transform .4s ease, box-shadow .4s ease;
}
.cap2-item:hover {
  transform:translateY(-8px);
  box-shadow:0 24px 48px rgba(40,60,120,0.12);
}
.cap2-icon {
  width:50px;height:50px;display:grid;place-items:center;
  border-radius:14px;
  flex:0 0 50px;
  font-size:20px;
  color:#fff;
}
.cap2-icon.gold{background:linear-gradient(135deg,#facc15,#eab308)}
.cap2-icon.purple{background:linear-gradient(135deg,#a855f7,#7e22ce)}
.cap2-icon.blue{background:linear-gradient(135deg,#3b82f6,#2563eb)}
.cap2-icon.green{background:linear-gradient(135deg,#22c55e,#16a34a)}
.cap2-kicker{font-size:13px;color:#6b7280;margin-bottom:4px}
.cap2-title{margin:0 0 8px;font-size:19px;color:#1e1b4b}
.cap2-desc{margin:0;color:#64748b;font-size:15px;line-height:1.6}

/* 迷你图表容器与图例 */
.chart-wrap{position:relative}
.chart-wrap canvas{
  width:100%; height:220px; display:block; border-radius:12px;
  background:#fff; border:1px solid var(--ring);
}
.mini-legend{
  position:absolute; right:10px; top:10px; display:flex; gap:10px;
  background:rgba(255,255,255,.9); border:1px solid #e5e7eb;
  border-radius:999px; padding:4px 10px; backdrop-filter:saturate(140%) blur(2px);
}
.mini-legend .lg{display:inline-flex;align-items:center;gap:6px;font-size:12px;color:#475569}
.mini-legend .lg::before{content:"";width:10px;height:10px;border-radius:2px;display:inline-block}
.mini-legend .lg-bars::before{background:#7c3aed}          /* 柱状色（品牌紫） */
.mini-legend .lg-line::before{background:#0ea5e9}          /* 折线色（清爽蓝） */
/* —— 数据看板 Pro —— */
.charts-pro{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin-top:14px}
@media(max-width:1024px){.charts-pro{grid-template-columns:repeat(2,1fr)}}
@media(max-width:720px){.charts-pro{grid-template-columns:1fr}}

.chart-card.pro{
  background:#fff;border:1px solid #e6e9f2;border-radius:18px;padding:16px;
  box-shadow:0 12px 28px rgba(20,27,45,.06)
}
.chart-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px}
.chart-title{margin:0;font-size:16px}

.chart-wrap{position:relative}
.chart-wrap canvas{width:100%;height:240px;display:block;border-radius:10px;background:#fff}

.mini-legend{display:flex;gap:10px}
.mini-legend .lg{display:flex;align-items:center;gap:6px;font-size:12px;color:#475569}
.mini-legend .lg::before{content:"";width:10px;height:10px;border-radius:2px;display:inline-block}
.mini-legend .lg-bars::before{background:#7c3aed}
.mini-legend .lg-line::before{background:#0ea5e9}
.mini-legend .lg-ring::before{background:#a78bfa}

.x-labels{display:flex;justify-content:space-between;margin-top:6px;font-size:12px;color:#64748b}
.x-labels span{min-width:0;text-overflow:ellipsis;overflow:hidden;white-space:nowrap}

.tooltip{
  position:absolute;pointer-events:none;z-index:5;transform:translate(-50%,-100%);
  background:#111;color:#fff;font-size:12px;padding:6px 8px;border-radius:8px;opacity:0;transition:opacity .15s
}
.tooltip.show{opacity:1}

.donut-wrap{display:grid;grid-template-columns:1fr;gap:8px;align-items:center;justify-items:center}
.donut-legend{display:grid;grid-template-columns:1fr 1fr;gap:6px;width:100%;margin-top:6px}
.donut-item{display:flex;align-items:center;gap:6px;font-size:12px;color:#475569}
.donut-dot{width:10px;height:10px;border-radius:2px;display:inline-block}

/* 柱子圆角更高级 */
.bar-shadow{filter:drop-shadow(0 6px 12px rgba(124,58,237,.25))}
/* ================================
   数据看板 Pro（柱状 / 折线 / 圆环）
   ================================ */

/* 容器网格 */
.charts-pro{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:18px;
  margin-top:14px;
}
@media (max-width:1024px){
  .charts-pro{ grid-template-columns:repeat(2,1fr); }
}
@media (max-width:720px){
  .charts-pro{ grid-template-columns:1fr; }
}

/* 卡片外观 */
.chart-card.pro{
  background:#fff;
  border:1px solid #e6e9f2;            /* 与你全站边框风格匹配 */
  border-radius:18px;
  padding:16px;
  box-shadow:0 12px 28px rgba(20,27,45,.06);
}

/* 卡片标题区 */
.chart-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:8px;
}
.chart-title{
  margin:0;
  font-size:16px;
  line-height:1.2;
  color:#0f172a;
}

/* 画布容器 */
.chart-wrap{ position:relative; }
.chart-wrap canvas{
  width:100%;
  height:240px;                 /* 统一高度，如需更高改这里 */
  display:block;
  border-radius:10px;
  background:#fff;
}

/* 迷你图例 */
.mini-legend{ display:flex; gap:10px; }
.mini-legend .lg{
  display:flex; align-items:center; gap:6px;
  font-size:12px; color:#475569;
}
.mini-legend .lg::before{
  content:""; width:10px; height:10px;
  border-radius:2px; display:inline-block;
}
.mini-legend .lg-bars::before{ background:#7c3aed; }   /* 柱状色（品牌紫） */
.mini-legend .lg-line::before{ background:#0ea5e9; }   /* 折线色（清爽蓝） */
.mini-legend .lg-ring::before{ background:#a78bfa; }   /* 圆环图例色 */

/* X 轴标签（柱状/折线下方） */
.x-labels{
  display:flex; justify-content:space-between;
  margin-top:6px; font-size:12px; color:#64748b;
}
.x-labels span{
  min-width:0; white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}

/* 悬浮提示 Tooltip（3图通用） */
.tooltip{
  position:absolute; pointer-events:none; z-index:5;
  transform:translate(-50%,-100%);
  background:#111; color:#fff; font-size:12px;
  padding:6px 8px; border-radius:8px;
  opacity:0; transition:opacity .15s ease;
  box-shadow:0 6px 18px rgba(0,0,0,.18);
}
.tooltip.show{ opacity:1; }

/* 圆环图布局与图例 */
.donut-wrap{
  display:grid; grid-template-columns:1fr;
  gap:8px; align-items:center; justify-items:center;
}
.donut-legend{
  display:grid; grid-template-columns:1fr 1fr;
  gap:6px; width:100%; margin-top:6px;
}
.donut-item{
  display:flex; align-items:center; gap:6px;
  font-size:12px; color:#475569;
}
.donut-dot{
  width:10px; height:10px; border-radius:2px; display:inline-block;
}

/* 适配暗背景的柔光阴影（可选） */
.bar-shadow{ filter:drop-shadow(0 6px 12px rgba(124,58,237,.25)); }

/* 视频标题内的强调文字样式：商务蓝渐变 */
.emphasis {
  background: linear-gradient(90deg, #2563eb, #60a5fa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800;
  letter-spacing: 0.3px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.18);
  transition: filter .3s ease;
}
.emphasis:hover {
  filter: brightness(1.15);
}
/* ===== 全站导航下划线：只保留纯蓝 ===== */

/* 1) 关闭历史装饰（紫色的线/阴影/渐变/::before） */
.site-header .nav a {
  text-decoration: none !important;
  border-bottom: 0 !important;
  box-shadow: none !important;
  background-image: none !important;
  position: relative;
  color: #0f172a !important; /* 文案保持深色，不跟随brand变紫 */
}
.site-header .nav a::before { display: none !important; }

/* 2) 强制仅用一条蓝色 ::after 作为下划线 */
.site-header .nav a::after{
  content: "";
  position: absolute;
  left: 10px; right: 10px; bottom: -8px; height: 2px;
  background: #2563eb !important;        /* 纯蓝 */
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .22s ease;
  border-radius: 2px;
  z-index: 1;
}

/* 3) 悬停与激活时只显示这条蓝线，不改变文字颜色 */
.site-header .nav a:hover::after,
.site-header .nav a.active::after { transform: scaleX(1); }

.site-header .nav a:hover,
.site-header .nav a.active {
  color: #0f172a !important;  /* 不要变紫，只保留蓝色线条 */
}

/* —— Global Mobile Header —— */
.site-header{position:sticky;top:0;background:#fff;z-index:60;border-bottom:1px solid #eef2f7}
.header-inner{display:flex;align-items:center;justify-content:space-between;gap:12px}
.site-header .nav{display:flex;gap:18px;align-items:center}
.menu-btn{display:none;align-items:center;justify-content:center;width:40px;height:40px;border:1px solid #e5e7eb;border-radius:12px;background:#fff}
.menu-btn .menu-line{display:block;width:18px;height:2px;background:#111;margin:3px 0;border-radius:2px}

/* 语言下拉在手机上要盖住视频或图层 */
.lang-wrap{position:relative;z-index:70}
.lang-menu{z-index:70}

/* <= 1024px：把导航变成下拉面板，默认隐藏；点汉堡再出现 */
@media (max-width:1024px){
  .menu-btn{display:inline-flex}
  .site-header .nav{
    position:absolute;left:12px;right:12px;top:64px;
    display:none;flex-direction:column;gap:8px;
    padding:10px;border:1px solid #e5e7eb;border-radius:14px;
    background:#fff;box-shadow:0 18px 36px rgba(2,6,23,.08);
  }
  .site-header.is-open .nav{display:flex}
  .site-header .nav a{padding:10px 12px;border-radius:10px}
  .site-header .nav a:hover{background:#f8fafc}
}

/* 兜底：即使没有JS或没有汉堡按钮，也别把导航“消失”。 */
@media (max-width:1024px){
  .site-header .nav:empty{display:none}
  .site-header:not(.is-open) .nav[aria-hidden="false"]{display:flex}
}

/* 蓝色下划线的“停留位置”修正：仅对当前页的 .active 生效 */
.site-header .nav a{position:relative}
.site-header .nav a::after{
  content:"";position:absolute;left:10px;right:10px;bottom:-8px;height:2px;
  background:#2563eb!important;transform:scaleX(0);transform-origin:left;
  transition:transform .22s ease;border-radius:2px;
}
.site-header .nav a:hover::after,
.site-header .nav a.active::after{transform:scaleX(1)}

/* ===== Mobile Navigation Global Fix ===== */

/* 小屏幕下隐藏导航，显示汉堡按钮 */
@media(max-width: 900px){
  .site-header .nav {
    display: none;
    position: absolute;
    top: 64px;
    right: 0;
    left: 0;
    background: #ffffff;
    padding: 16px 0;
    border-bottom: 1px solid #e5e7eb;
    text-align: center;
    z-index: 9999;
  }

  /* 当展开时显示菜单 */
  .site-header.menu-open .nav {
    display: block;
  }

  /* 显示汉堡按钮 */
  .menu-btn {
    display: inline-flex !important;
  }
}
/* Fix desktop hero text center alignment */
.hero-title-bottom {
  text-align: center;
}

.hero-title-bottom > div {
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 860px) {
  .partners-grid {
    grid-template-columns: repeat(2, 1fr) !important; /* 两列，不再一排竖下去 */
    gap: 20px 14px !important;
  }

  .partners-grid img {
    max-width: 90px !important;   /* LOGO 宽度变小 */
    max-height: 42px !important;  /* LOGO 高度变小 */
    object-fit: contain;
  }
}

/* === Desktop Restore Patch (only ≥861px) === */
@media (min-width: 861px){
  /* 还原头部定位与层级 */
  .site-header{
    position: static !important;
    background: transparent !important;
    border-bottom: none !important;
    backdrop-filter: none !important;
    z-index: 2 !important;
  }

  /* 还原桌面导航为横向常显 */
  header.site-header .container .nav,
  .site-header .nav{
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 24px !important;
    width: auto !important;
    max-width: none !important;
    position: static !important;
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    height: auto !important;
    background: transparent !important;
    box-shadow: none !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  /* 还原导航链接为扁平风格（取消圆角胶囊） */
  .site-header .nav a{
    border: 0 !important;
    border-radius: 0 !important;
    background: none !important;
    padding: 0 !important;
    font-size: 14px !important;
    line-height: 1 !important;
    white-space: normal !important;
  }

  /* 桌面隐藏汉堡和移动抽屉 */
  .menu-btn,
  #mobileMenu{
    display: none !important;
  }

  /* 语言按钮回到原尺寸 */
  .lang-wrap{ margin-left: auto !important; gap: 12px !important; }
  .lang-btn{
    min-width: 132px !important;
    height: 36px !important;
    padding: 0 14px !important;
  }

  /* Logo 尺寸回到桌面版 */
  .site-header .brand-logo{ height: 36px !important; }
  .site-header .brand-text{
    font-size: 18px !important; 
    letter-spacing: .35px !important;
  }

  /* 合作伙伴 Logo 回到桌面网格尺寸 */
  .partners-grid{
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)) !important;
    gap: 40px 60px !important;
  }
  .partners-grid img{
    max-width: 140px !important;
    max-height: 70px !important;
    filter: grayscale(0%) brightness(100%) !important;
    transform: none !important;
  }
}

/* 保证移动端仍使用小 Logo 网格与抽屉式菜单（≤760px 的设置留着） */
@media (max-width: 760px){
  .partners-grid{ grid-template-columns: repeat(3,1fr) !important; gap: 18px 18px !important; }
  .partners-grid img{ max-width: 90px !important; max-height: 40px !important; }
}

.table-scroll{
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  width: 100%;
}

.table-scroll::-webkit-scrollbar{
  height: 6px;
}

.table-scroll::-webkit-scrollbar-thumb{
  background:#cbd5e1;
  border-radius: 3px;
}

.table-scroll::-webkit-scrollbar-track{
  background:#f8fafc;
}

