html, body { width: 100%; max-width: 100vw; overflow-x: hidden; position: relative; margin: 0; padding: 0; -webkit-text-size-adjust: 100%; }
/* 布局版本 4：模块化便当盒网格排版 (Modular Bento Grid Layout) */
:root {
  --bg-main: #0e071c;
  --bg-card: #190e30;
  --bg-card-alt: #241445;
  --primary: #9333ea;
  --accent: #c084fc;
  --border-gold: rgba(168, 85, 247, 0.35);
  --text-main: #faf5ff;
  --text-body: #d8b4fe;
  --text-muted: #9d8db3;
  --border: rgba(192, 132, 252, 0.22);
}
* { margin:0; padding:0; box-sizing:border-box; }
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: 60px; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
.container { max-width: 1000px; margin: 0 auto; padding: 0 20px;  width: 100%; box-sizing: border-box; }

/* 悬浮胶囊导航栏 */
.floating-nav { position: sticky; top: 14px; z-index: 100; margin-bottom: 24px; }
.floating-nav-inner { background: rgba(25, 14, 48, 0.85); backdrop-filter: blur(16px); border: 1px solid var(--border); border-radius: 99px; padding: 10px 24px; display: flex; justify-content: space-between; align-items: center; box-shadow: 0 10px 30px rgba(0,0,0,0.5); }
.nav-links { display: flex; gap: 20px; font-weight: 600; font-size: 0.92rem; }
.nav-links a:hover { color: var(--accent); }

.top-scroll-banner { background: rgba(0,0,0,0.3); color: #fff; font-size: 0.86rem; padding: 8px 16px; border-radius: 99px; border: 1px solid var(--border); overflow: hidden; white-space: nowrap; margin-bottom: 24px; }
.scroll-content { display: inline-block; animation: scrollMarquee 30s linear infinite; }
.scroll-content span { margin-right: 3rem; 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%); } }

/* Bento Grid 网格系统 (3列复合跨行跨列) */
.bento-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 40px; }
.bento-cell { background: var(--bg-card); border: 1px solid var(--border); border-radius: 18px; padding: 26px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.bento-cell:hover { border-color: var(--accent); background: var(--bg-card-alt); }

.span-2 { grid-column: span 2; }
.span-3 { grid-column: span 3; }

/* Bento Hero 主展台 */
.hero-tag { display: inline-block; background: rgba(192,132,252,0.15); border: 1px solid var(--border-gold); color: var(--accent); font-size: 0.78rem; font-weight: 700; padding: 4px 12px; border-radius: 99px; margin-bottom: 12px; width: fit-content; }
.hero-h1 { font-size: 2.2rem; font-weight: 800; color: #fff; line-height: 1.3; margin-bottom: 12px; }
.hero-desc { font-size: 0.95rem; color: #e9d5ff; margin-bottom: 20px; }
.btn-primary { background: linear-gradient(135deg, var(--primary), var(--accent)); color: #fff; font-weight: 700; padding: 10px 24px; border-radius: 99px; font-size: 0.92rem; display: inline-block; }

.countdown-box { text-align: center; display: flex; flex-direction: column; justify-content: center; align-items: center; }
.countdown-title { font-size: 1.05rem; color: var(--accent); font-weight: 700; margin-bottom: 14px; }
.countdown-timer { display: flex; gap: 8px; }
.timer-unit { background: #fff; color: #000; border-radius: 6px; padding: 8px 10px; min-width: 50px; text-align: center; }
.timer-num { font-size: 1.4rem; font-weight: 900; line-height: 1; display: block; }
.timer-label { font-size: 0.7rem; color: #555; display: block; }

/* 5 组分类胶囊 */
.pill-bar { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.pill-item { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,0.05); border: 1px solid var(--border); padding: 6px 14px; border-radius: 99px; font-size: 0.82rem; }
.pill-badge { width: 20px; height: 20px; border-radius: 4px; background: var(--primary); color: #fff; font-size: 0.75rem; font-weight: 800; display: flex; align-items: center; justify-content: center; }

/* 6 篇卡片样式 */
.bento-card-badge { display: inline-block; background: rgba(192,132,252,0.15); color: var(--accent); font-size: 0.75rem; font-weight: 700; padding: 3px 8px; border-radius: 4px; margin-bottom: 10px; width: fit-content; }
.bento-cell h3 { font-size: 1.15rem; color: #fff; margin-bottom: 8px; }
.bento-cell p { font-size: 0.88rem; color: var(--text-body); line-height: 1.65; margin-bottom: 14px; }
.card-meta { display: flex; justify-content: space-between; font-size: 0.78rem; color: var(--text-muted); border-top: 1px solid rgba(255,255,255,0.06); padding-top: 8px; }

/* 榜单表格 */
.rank-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.rank-table th, .rank-table td { padding: 8px 10px; border-bottom: 1px solid rgba(255,255,255,0.06); text-align: left; }
.rank-table th { color: var(--text-muted); font-size: 0.82rem; }
.rank-no { display: inline-block; width: 20px; height: 20px; border-radius: 4px; text-align: center; line-height: 20px; 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 { overflow-x: auto; margin: 16px 0; }
.entity-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.entity-table th, .entity-table td { padding: 10px 14px; border: 1px solid rgba(255,255,255,0.08); }
.entity-table th { background: rgba(192,132,252,0.15); color: var(--accent); width: 22%; text-align: left; }
.entity-table td { background: rgba(0,0,0,0.25); }

.security-badges { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 16px 0; }
.sec-badge-item { background: rgba(16,185,129,0.05); border: 1px solid rgba(16,185,129,0.25); border-radius: 8px; padding: 14px; }
.sec-badge-item strong { color: #10b981; display: block; margin-bottom: 3px; }

.trouble-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 16px 0; }
.trouble-card { background: rgba(255,255,255,0.03); border: 1px solid var(--border); border-radius: 8px; padding: 14px; }
.trouble-card h4 { font-size: 0.92rem; color: #fff; margin-bottom: 4px; }
.trouble-card p { font-size: 0.82rem; color: var(--text-muted); margin: 0; }

.side-item { padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,0.06); }
.side-item h4 { font-size: 0.92rem; color: #fff; margin-bottom: 3px; }
.side-item time { font-size: 0.78rem; color: var(--text-muted); }

.matrix-section { background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px; padding: 22px; margin-top: 30px; }
.matrix-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.matrix-link { font-size: 0.82rem; color: var(--text-body); background: rgba(255,255,255,0.04); padding: 5px 12px; border-radius: 99px; border: 1px solid var(--border); }
.current-node { background: var(--primary); color: #fff; font-weight: 700; border-color: var(--primary); }

.site-footer { border-top: 1px solid var(--border); padding: 28px 0; margin-top: 40px; text-align: center; font-size: 0.85rem; color: var(--text-muted); }
.mobile-sticky-bar { position: fixed; bottom: 0; left: 0; right: 0; height: 50px; background: rgba(14,7,28,0.96); backdrop-filter: blur(10px); 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: 700; padding: 6px 14px; border-radius: 99px; font-size: 0.82rem; }
.sticky-close { background: none; border: none; color: var(--text-muted); font-size: 1.2rem; cursor: pointer; }

@media(max-width: 900px) {
  .bento-grid { grid-template-columns: 1fr; }
  .span-2, .span-3 { grid-column: span 1; }
  .floating-nav-inner { flex-direction: column; gap: 10px; border-radius: 16px; }
  .security-badges, .trouble-grid { grid-template-columns: 1fr; }
}

/* H1 主副标深度优化样式 */
.heading-keyword {
  display: block;
  font-size: 2.2rem;
  font-weight: 900;
  color: #ffffff;
  line-height: 1.25;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}
.heading-sub {
  display: block;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--accent);
  line-height: 1.5;
  letter-spacing: 0.5px;
}
@media (max-width: 680px) {
  .heading-keyword { font-size: 1.7rem; }
  .heading-sub { font-size: 0.92rem; }
}

/* ==========================================================================
   移动端用户体验与 APP 下载按钮专用深度优化样式 (符合 WCAG 2.1 与细雨算法)
   ========================================================================== */
.dl-btn:active {
  transform: scale(0.97); /* 移动端物理触感回弹 */
}
.dl-btn-android {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  border: 1px solid rgba(52, 211, 153, 0.4);
}
.dl-btn-android:hover {
  box-shadow: 0 6px 24px rgba(16, 185, 129, 0.45);
}
.dl-btn-ios {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.18);
}
.dl-btn-ios:hover {
  background: linear-gradient(135deg, #334155 0%, #1e293b 100%);
  border-color: rgba(255, 255, 255, 0.3);
}
.dl-icon-box {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.dl-text-wrap {
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
}
.dl-main-title {
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.25;
  color: #ffffff;
}
.dl-sub-meta {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.78);
  margin-top: 3px;
  line-height: 1.2;
}

/* 绿色安全信任提示 */
.dl-security-tip {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 10px;
  font-size: 0.78rem;
  color: #94a3b8;
  flex-wrap: wrap;
}
.sec-dot {
  color: #10b981;
  font-weight: 900;
  font-style: normal;
  margin-right: 4px;
}

/* 针对手机窄屏 (<= 680px) 深度自适应适配 */
@media (max-width: 680px) {
  .dl-actions-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .dl-btn {
    padding: 12px 16px;
    min-height: 54px;
  }
  .dl-main-title {
    font-size: 0.98rem;
  }
  .dl-sub-meta {
    font-size: 0.72rem;
  }
  .dl-security-tip {
    gap: 10px;
    font-size: 0.74rem;
  }
  /* 杜绝手机端任何表格撑破屏幕出现横向滚动条 */
  .entity-table-wrap, .rank-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
  }
  /* 确保正文字号不低于 16px，防止 iOS 聚焦输入框时强制页面放大 */
  p, li, summary, td {
    font-size: 16px !important;
  }
}


/* ==========================================================================
   高端轻奢双胶囊 APP 下载按钮组件规范 (极简、丝滑、流线、防误触)
   ========================================================================== */
.sleek-download-cluster {
  margin: 20px 0 24px;
}
.sleek-btn-group {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.sleek-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 48px;
  padding: 0 22px;
  border-radius: 9999px; /* 经典流线圆角胶囊 */
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-decoration: none;
  transition: all 0.24s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.sleek-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}
.sleek-btn:active {
  transform: scale(0.97);
}

/* 主推按钮：主题色高光渐变胶囊 */
.sleek-btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color: #070d19; /* 高对比度清晰文字 */
  border: 1px solid rgba(255, 255, 255, 0.3);
}
.sleek-btn-primary:hover {
  filter: brightness(1.08);
}

/* 次级按钮：高质感半透明毛玻璃胶囊 */
.sleek-btn-glass {
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.16);
}
.sleek-btn-glass:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.32);
}

/* 矢量图标 */
.sleek-btn-icon {
  flex-shrink: 0;
  display: block;
}

/* 小微标标签 (42.6MB / 免越狱) */
.sleek-btn-tag {
  background: rgba(0, 0, 0, 0.18);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  margin-left: 2px;
}
.sleek-btn-glass .sleek-btn-tag {
  background: rgba(255, 255, 255, 0.12);
  color: var(--accent);
}

/* 极简精致的安全信任行 */
.sleek-trust-line {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 12px;
  font-size: 0.76rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}
.trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.trust-icon {
  color: var(--accent);
  font-weight: 800;
  font-style: normal;
}

/* 移动端自适应 */
@media (max-width: 680px) {
  .sleek-btn-group {
    flex-direction: row;
    gap: 10px;
  }
  .sleek-btn {
    flex: 1 1 calc(50% - 6px);
    justify-content: center;
    padding: 0 12px;
    height: 46px;
    font-size: 0.86rem;
  }
  .sleek-btn-tag {
    display: none; /* 极窄屏隐藏微标，保持文字整洁 */
  }
  .sleek-trust-line {
    gap: 8px;
    font-size: 0.72rem;
    justify-content: flex-start;
  }
}


/* ==========================================================================
   移动端专属深度调优 (Mobile First & Zero Horizontal Scroll)
   ========================================================================== */
html, body {
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden !important;
  position: relative;
}
*, *::before, *::after {
  box-sizing: border-box;
}
img, svg, video, table {
  max-width: 100% !important;
  height: auto;
}
.main-view, .container, .app-wrapper, main, section, article {
  min-width: 0 !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

/* 屏幕宽度 <= 1024px 平板与手机端全量单列自适应 */
@media screen and (max-width: 1024px) {
  .app-wrapper {
    grid-template-columns: 1fr !important;
    max-width: 100% !important;
    border-left: none !important;
    border-right: none !important;
    box-shadow: none !important;
  }
  .sidebar-panel {
    display: none !important;
  }
  .main-view {
    padding: 0 16px 40px !important;
    width: 100% !important;
  }
  .portal-3col {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }
  .card-grid-2, .rank-grid-2, .card-grid-6, .bento-grid, .rank-tables-row,
  .news-split, .security-badges, .trouble-grid, .col-left, .col-right,
  .card-grid-mid, .matrix-links {
    grid-template-columns: 1fr !important;
    width: 100% !important;
  }
  .top-scroll-banner {
    margin: 0 0 20px !important;
  }
  .entity-table-wrap, .rank-table-wrap {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    display: block !important;
  }
}

/* 屏幕宽度 <= 680px 手机超窄屏极致体验 */
@media screen and (max-width: 680px) {
  .container, .main-view {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }
  .hero-card, .mag-cover-hero, .feature-card, .matrix-section {
    padding: 16px 14px !important;
  }
  .heading-keyword {
    font-size: 1.55rem !important;
  }
  .heading-sub {
    font-size: 0.88rem !important;
  }
  .mobile-sticky-bar {
    padding: 0 12px !important;
    height: 48px !important;
  }
}
