/* ============================================
 * 网关伪装样式 — 模拟正规内容站点
 * ============================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; }
body {
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", -apple-system, sans-serif;
  background: #f5f6f8; color: #333;
  -webkit-text-size-adjust: 100%;
  display: block !important;
}

/* ---------- 网关遮罩层 ---------- */
#gateway-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex; align-items: center; justify-content: center;
}
.gateway-center { text-align: center; color: white; padding: 40px; }
.gateway-icon {
  width: 64px; height: 64px;
  background: rgba(255,255,255,0.2); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px; font-size: 32px;
}
.gateway-title { font-size: 26px; font-weight: 700; margin-bottom: 10px; }
.gateway-subtitle { font-size: 14px; opacity: 0.85; margin-bottom: 32px; }
.gateway-btn {
  background: #fff; color: #667eea; border: none;
  padding: 14px 44px; font-size: 16px; font-weight: 700;
  border-radius: 32px; cursor: pointer;
  transition: all 0.25s; box-shadow: 0 4px 18px rgba(0,0,0,0.18);
}
.gateway-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.22); }
.gateway-btn:active { transform: translateY(0); }

.gateway-loading {
  margin-top: 22px; width: 230px; max-width: 80vw;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: rgba(255,255,255,0.92); font-size: 13px;
}
.gateway-progress-bar {
  width: 100%; height: 5px;
  background: rgba(255,255,255,0.22); border-radius: 99px; overflow: hidden;
}
.gateway-progress-fill {
  width: 0%; height: 100%;
  background: linear-gradient(90deg, #fff 0%, #ffe4f1 100%);
  border-radius: 99px; transition: width 0.25s ease-out;
}

/* ---------- 伪装层：顶部导航 ---------- */
.site-header {
  background: #fff; border-bottom: 2px solid #c00;
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}
.site-header-inner {
  max-width: 1100px; margin: 0 auto; padding: 0 16px;
  display: flex; align-items: center; height: 52px; gap: 28px;
}
.site-logo {
  font-size: 22px; font-weight: 900; color: #c00; letter-spacing: -1px;
  flex-shrink: 0; text-decoration: none;
}
.site-nav {
  display: flex; gap: 4px; overflow-x: auto;
  -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.site-nav::-webkit-scrollbar { display: none; }
.site-nav a {
  text-decoration: none; color: #444; font-size: 14px; font-weight: 500;
  padding: 6px 10px; border-radius: 4px; white-space: nowrap;
  transition: color 0.15s, background 0.15s;
}
.site-nav a:hover, .site-nav a.active { color: #c00; background: #fff5f5; }

/* ---------- 伪装层：主体布局 ---------- */
.page-body {
  max-width: 1100px; margin: 20px auto; padding: 0 16px;
  display: grid; grid-template-columns: 1fr 320px; gap: 20px; align-items: start;
}
.article-card {
  background: #fff; border-radius: 6px; box-shadow: 0 1px 6px rgba(0,0,0,0.07);
  padding: 28px 30px 32px;
}
.article-breadcrumb { font-size: 12px; color: #999; margin-bottom: 18px; }
.article-breadcrumb a { color: #999; text-decoration: none; }
.article-breadcrumb a:hover { color: #c00; }
.article-breadcrumb span { margin: 0 4px; }
.article-title { font-size: 24px; font-weight: 700; color: #111; line-height: 1.45; margin-bottom: 14px; }
.article-meta {
  display: flex; align-items: center; flex-wrap: wrap; gap: 14px;
  font-size: 13px; color: #999; padding-bottom: 16px;
  border-bottom: 1px solid #f0f0f0; margin-bottom: 22px;
}
.article-meta .meta-source { color: #c00; font-weight: 600; }
.article-meta .meta-dot { color: #ddd; }
.article-body { font-size: 17px; line-height: 1.9; color: #222; }
.article-body p { text-indent: 2em; margin-bottom: 18px; }
.article-tags {
  margin-top: 24px; padding-top: 16px;
  border-top: 1px solid #f0f0f0;
  display: flex; flex-wrap: wrap; gap: 8px;
}
.article-tag {
  font-size: 12px; color: #666; background: #f5f5f5;
  border-radius: 3px; padding: 3px 10px; text-decoration: none;
}
.article-tag:hover { color: #c00; background: #fff0f0; }

/* ---------- 伪装层：侧边栏 ---------- */
.sidebar { display: flex; flex-direction: column; gap: 16px; }
.rank-card {
  background: #fff; border-radius: 6px;
  box-shadow: 0 1px 6px rgba(0,0,0,0.07); overflow: hidden;
}
.rank-card-header {
  display: flex; align-items: center;
  padding: 13px 16px 12px; border-bottom: 1px solid #f0f0f0; gap: 8px;
}
.rank-card-header::before {
  content: ''; width: 3px; height: 16px;
  background: #c00; border-radius: 2px; flex-shrink: 0;
}
.rank-card-title { font-size: 15px; font-weight: 700; color: #1a1a1a; }
.rank-list { list-style: none; padding: 4px 0 6px; }
.rank-item {
  display: flex; align-items: flex-start;
  padding: 9px 16px; gap: 10px; border-bottom: 1px solid #f7f7f7;
  cursor: pointer; transition: background 0.15s;
}
.rank-item:last-child { border-bottom: none; }
.rank-item:hover { background: #fafafa; }
.rank-num {
  flex-shrink: 0; width: 20px; height: 20px; border-radius: 3px;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; margin-top: 2px;
}
.rank-num.n1 { background: #c00; color: #fff; }
.rank-num.n2 { background: #e05c00; color: #fff; }
.rank-num.n3 { background: #e09000; color: #fff; }
.rank-num.nx { background: #eee; color: #999; }
.rank-title {
  font-size: 13px; color: #333; line-height: 1.55;
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}
.rank-item:hover .rank-title { color: #c00; }

/* ---------- 伪装层：页脚 ---------- */
.site-footer {
  background: #2b2b2b; color: #888; text-align: center;
  padding: 28px 16px; font-size: 12px; line-height: 2; margin-top: 32px;
}

/* ---------- 响应式 ---------- */
@media (max-width: 760px) {
  .page-body { grid-template-columns: 1fr; margin: 12px auto; gap: 12px; }
  .article-card { padding: 18px 16px 22px; }
  .article-title { font-size: 20px; }
  .article-body { font-size: 15px; }
  .sidebar { flex-direction: row; flex-wrap: wrap; }
  .rank-card { flex: 1 1 280px; }
}
