/* ==========================================================================
   布局版本 5：官方综合门户版 (Mobile-First 架构 · 手机端绝对优先，PC端优雅增强)
   ========================================================================== */
:root {
  --bg-main: #070d19;
  --bg-card: #0f1d36;
  --bg-card-hover: #16294d;
  --primary: #ea580c;
  --accent: #f59e0b;
  --border-gold: rgba(245, 158, 11, 0.35);
  --text-main: #ffffff;
  --text-body: #cbd5e1;
  --text-muted: #7888a2;
  --border: rgba(255, 255, 255, 0.08);
}

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

html, body {
  overflow-x: hidden !important;
  max-width: 100vw !important;
  width: 100% !important;
  position: relative;
  -webkit-overflow-scrolling: touch;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg-main);
  color: var(--text-body);
  line-height: 1.7;
  padding-bottom: 75px;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
.container { width: 100%; padding: 0 16px; box-sizing: border-box; }

/* --------------------------------------------------------------------------
   【手机端优先基础流】(默认适用全尺寸手机：360px ~ 430px)
   -------------------------------------------------------------------------- */
.top-scroll-banner {
  background: rgba(0, 0, 0, 0.4);
  color: #ffffff;
  font-size: 0.82rem;
  padding: 6px 12px;
  overflow: hidden;
  white-space: nowrap;
  border-bottom: 1px solid var(--accent);
  width: 100%;
}
.scroll-content { display: inline-block; animation: scrollMarquee 30s linear infinite; }
.scroll-content span { margin-right: 2.5rem; display: inline-block; }
.scroll-content span i { color: var(--accent); margin-right: 6px; font-style: normal; }
@keyframes scrollMarquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* 手机端顶栏 */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 13, 25, 0.96);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  padding: 8px 0;
  width: 100%;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.main-nav { display: none !important; } /* 手机端隐藏导航链接 */
.header-cta {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  font-weight: 800;
  padding: 6px 14px;
  border-radius: 99px;
  font-size: 0.8rem;
  display: inline-block;
}

/* 展台 Hero 手机端紧凑设计 */
.hero-panel {
  background: linear-gradient(145deg, #10213d 0%, #0d1a31 100%);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px 16px;
  margin: 14px 0 20px;
  width: 100%;
}
.hero-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}
.hero-tag {
  display: inline-block;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid var(--border-gold);
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 99px;
  margin-bottom: 10px;
  width: fit-content;
}
.hero-h1 { margin: 0 0 8px; line-height: 1.25; }
.heading-keyword {
  display: block;
  font-size: 1.55rem;
  font-weight: 900;
  color: #ffffff;
  line-height: 1.25;
  margin-bottom: 6px;
  letter-spacing: -0.5px;
}
.heading-sub {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
  line-height: 1.45;
}
.hero-desc {
  font-size: 0.88rem;
  color: #cbd5e1;
  line-height: 1.65;
  margin-bottom: 14px;
}

/* 旗舰极简双胶囊 APP 下载组件 (手机端原生触控) */
.sleek-download-cluster { margin: 12px 0 16px; width: 100%; }
.sleek-btn-group {
  display: flex;
  gap: 10px;
  width: 100%;
  flex-wrap: wrap;
}
.sleek-btn {
  flex: 1 1 calc(50% - 5px);
  min-height: 46px;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-weight: 700;
  font-size: 0.86rem;
  padding: 0 10px;
  transition: transform 0.15s ease;
  white-space: nowrap;
}
.sleek-btn:active { transform: scale(0.97); }
.sleek-btn-primary {
  background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(234, 88, 12, 0.35);
}
.sleek-btn-glass {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.sleek-btn-tag { display: none; }
.sleek-trust-line {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  margin-top: 10px;
  font-size: 0.72rem;
  color: #7888a2;
}
.trust-icon { color: var(--accent); font-weight: 800; }

.side-card {
  background: rgba(0,0,0,0.3);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  width: 100%;
}
.countdown-box {
  background: rgba(0,0,0,0.5);
  border: 1px solid var(--border-gold);
  border-radius: 10px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin: 12px 0;
}
.countdown-title { font-size: 0.82rem; color: var(--accent); font-weight: 700; }
.countdown-timer { display: flex; gap: 4px; }
.timer-unit { background: #fff; color: #000; border-radius: 4px; padding: 4px 6px; font-size: 0.78rem; text-align: center; font-weight: 800; min-width: 32px; }
.timer-num { display: block; font-size: 0.95rem; line-height: 1; }
.timer-label { display: block; font-size: 0.58rem; color: #555; }

/* 手机端单列排版 */
.card-grid-6,
.rank-tables-row,
.news-row,
.security-badges,
.trouble-grid {
  display: grid;
  grid-template-columns: 1fr !important;
  gap: 14px;
  margin-bottom: 24px;
  width: 100%;
}

.portal-card, .rank-box, .news-main-card, .news-side-box, .sec-badge-item, .trouble-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  width: 100%;
}
.portal-card h3, .rank-box h3, .news-main-card h3 {
  font-size: 1.15rem;
  color: #fff;
  font-weight: 800;
  margin-bottom: 8px;
}
.portal-card p, .news-main-card p {
  font-size: 0.88rem;
  line-height: 1.65;
  color: var(--text-body);
}

.rank-table { width: 100%; border-collapse: collapse; font-size: 0.86rem; }
.rank-table th, .rank-table td { padding: 8px 10px; border-bottom: 1px solid rgba(255,255,255,0.06); }
.rank-no { display: inline-block; width: 20px; height: 20px; line-height: 20px; text-align: center; border-radius: 4px; font-weight: 800; font-size: 0.75rem; }
.no-1 { background: #f59e0b; color: #000; }
.no-2 { background: #94a3b8; color: #000; }
.no-3 { background: #b45309; color: #fff; }
.no-other { background: rgba(255,255,255,0.08); color: var(--text-body); }

/* 实体表防爆屏包裹 */
.entity-table-wrap, .rank-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  width: 100%;
  margin: 14px 0;
  border-radius: 8px;
}
.entity-table { width: 100%; min-width: 480px; border-collapse: collapse; font-size: 0.84rem; }
.entity-table th, .entity-table td { padding: 9px 12px; border: 1px solid rgba(255,255,255,0.08); }
.entity-table th { background: rgba(234,88,12,0.15); color: var(--accent); width: 28%; text-align: left; }
.entity-table td { background: rgba(0,0,0,0.25); }

/* 吸底下载条 */
.mobile-sticky-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 52px;
  background: rgba(7, 13, 25, 0.96);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  z-index: 999;
}
.sticky-btn {
  background: var(--primary);
  color: #fff;
  font-weight: 800;
  padding: 6px 16px;
  border-radius: 99px;
  font-size: 0.82rem;
}
.sticky-close { background: none; border: none; color: var(--text-muted); font-size: 1.2rem; cursor: pointer; }

/* --------------------------------------------------------------------------
   【PC 端优雅增强层】(当屏幕宽度 >= 901px 时生效)
   -------------------------------------------------------------------------- */
@media (min-width: 901px) {
  .container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
  .main-nav { display: flex !important; gap: 24px; }
  .main-nav a { font-size: 0.95rem; font-weight: 600; }
  .hero-panel { padding: 36px 40px 32px; margin: 24px 0 36px; border-radius: 20px; }
  .hero-grid { display: grid !important; grid-template-columns: 1.4fr 1fr !important; gap: 28px; }
  .heading-keyword { font-size: 2.2rem; }
  .heading-sub { font-size: 1.05rem; }
  .sleek-btn { flex: unset; padding: 0 24px; height: 48px; font-size: 0.95rem; }
  .sleek-btn-tag { display: inline-block; }
  .card-grid-6 { display: grid !important; grid-template-columns: repeat(3, 1fr) !important; gap: 20px; }
  .rank-tables-row { display: grid !important; grid-template-columns: 1fr 1fr !important; gap: 28px; }
  .news-row { display: grid !important; grid-template-columns: 1.4fr 1fr !important; gap: 28px; }
  .security-badges { display: grid !important; grid-template-columns: 1fr 1fr !important; gap: 16px; }
  .trouble-grid { display: grid !important; grid-template-columns: 1fr 1fr !important; gap: 16px; }
}
