/* PORTAL CSS */
.portal-container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.portal-page-wrapper { padding-top: 86px; min-height: calc(100vh - 120px); }
.breadcrumb-nav { padding: 16px 0; border-bottom: 1px solid var(--line); background: #ffffff; margin-bottom: 24px; }
.breadcrumb-list { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; list-style: none; font-size: 13px; color: var(--muted); }
.breadcrumb-list a { color: var(--muted); text-decoration: none; transition: color 0.2s; }
.breadcrumb-list a:hover { color: var(--blue); }
.breadcrumb-list .sep { color: #94a3b8; font-size: 11px; }
.breadcrumb-list .current { color: var(--ink); font-weight: 600; }
.portal-hero { background: linear-gradient(180deg, rgba(239, 246, 255, 0.7) 0%, rgba(248, 250, 252, 1) 100%); border-bottom: 1px solid var(--line); padding: 48px 0 36px; text-align: center; }
.portal-hero__badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 14px; border-radius: 999px; background: var(--blue-soft); color: var(--blue); font-size: 12px; font-weight: 700; border: 1px solid #bfdbfe; margin-bottom: 14px; }
.portal-hero__title { font-size: clamp(26px, 3.2vw, 36px); font-weight: 800; color: var(--ink); letter-spacing: -0.5px; margin-bottom: 10px; }
.portal-hero__desc { font-size: 14.5px; color: var(--muted); max-width: 680px; margin: 0 auto 24px; line-height: 1.6; }
.portal-search-box { max-width: 640px; margin: 0 auto; }
.portal-search-form { display: flex; align-items: center; background: #ffffff; border: 2px solid #cbd5e1; border-radius: 14px; padding: 4px 6px 4px 16px; box-shadow: 0 10px 25px rgba(15, 23, 42, 0.05); transition: all 0.25s ease; }
.portal-search-form:focus-within { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12), 0 12px 30px rgba(15, 23, 42, 0.08); }
.portal-search-icon { font-size: 18px; color: #94a3b8; margin-right: 8px; }
.portal-search-input { flex: 1; border: none; outline: none; font-size: 14.5px; color: var(--ink); background: transparent; padding: 8px 0; }
.portal-search-btn { background: linear-gradient(135deg, var(--blue), var(--blue-dark)); color: #ffffff; border: none; border-radius: 10px; padding: 10px 20px; font-size: 13.5px; font-weight: 700; cursor: pointer; transition: all 0.2s; white-space: nowrap; }
.portal-search-btn:hover { opacity: 0.95; transform: translateY(-1px); }
.portal-hot-tags { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; margin-top: 14px; font-size: 12.5px; }
.portal-hot-tags .tag-label { color: #94a3b8; }
.portal-hot-tags a { background: #ffffff; border: 1px solid var(--line); color: #475569; padding: 3px 10px; border-radius: 6px; text-decoration: none; transition: all 0.2s; }
.portal-hot-tags a:hover { border-color: var(--blue); color: var(--blue); background: var(--blue-soft); }
.category-matrix-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(350px, 1fr)); gap: 24px; margin: 32px 0 48px; }
.cat-card { background: #ffffff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: 0 4px 12px rgba(15, 23, 42, 0.03); transition: all 0.25s ease; display: flex; flex-direction: column; }
.cat-card:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(15, 23, 42, 0.07); border-color: #cbd5e1; }
.cat-card__header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.cat-card__icon { width: 44px; height: 44px; border-radius: 12px; background: var(--blue-soft); color: var(--blue); display: flex; align-items: center; justify-content: center; font-size: 22px; }
.cat-card__count { font-size: 11.5px; font-weight: 700; color: var(--blue); background: var(--blue-soft); padding: 3px 8px; border-radius: 6px; }
.cat-card__title { font-size: 17px; font-weight: 800; color: var(--ink); margin-bottom: 6px; }
.cat-card__desc { font-size: 13px; color: var(--muted); line-height: 1.5; margin-bottom: 16px; }
.cat-card__articles { list-style: none; margin-bottom: 18px; flex: 1; }
.cat-card__articles li { margin-bottom: 8px; }
.cat-card__articles li a { font-size: 13px; color: #334155; text-decoration: none; display: flex; align-items: center; justify-content: space-between; padding: 4px 0; transition: color 0.2s; }
.cat-card__articles li a:hover { color: var(--blue); }
.cat-card__articles li a .arrow { color: #94a3b8; font-size: 12px; transition: transform 0.2s; }
.cat-card__articles li a:hover .arrow { transform: translateX(3px); color: var(--blue); }
.cat-card__footer a { display: inline-block; font-size: 12.5px; font-weight: 700; color: var(--blue); text-decoration: none; }
.cat-card__footer a:hover { text-decoration: underline; }
.portal-layout-grid { display: grid; grid-template-columns: 1fr 340px; gap: 32px; align-items: start; margin-bottom: 60px; }
@media (max-width: 1024px) { .portal-layout-grid { grid-template-columns: 1fr; } }
.list-filter-bar { background: #ffffff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 18px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 20px; }
.list-filter-tabs { display: flex; align-items: center; gap: 8px; list-style: none; flex-wrap: wrap; }
.list-filter-tabs a { padding: 6px 14px; border-radius: 8px; font-size: 13px; font-weight: 600; text-decoration: none; color: #475569; transition: all 0.2s; }
.list-filter-tabs a:hover { background: #f1f5f9; color: var(--ink); }
.list-filter-tabs a.active { background: var(--blue-soft); color: var(--blue); }
.list-sort-select { font-size: 12.5px; padding: 6px 10px; border-radius: 6px; border: 1px solid var(--line); color: #475569; background: #ffffff; outline: none; }
.article-stream { display: flex; flex-direction: column; gap: 16px; margin-bottom: 32px; }
.article-card { background: #ffffff; border: 1px solid var(--line); border-radius: 14px; padding: 20px 24px; transition: all 0.25s ease; text-decoration: none; display: block; }
.article-card:hover { border-color: #cbd5e1; box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05); transform: translateY(-2px); }
.article-card__meta-top { display: flex; align-items: center; gap: 10px; font-size: 12px; margin-bottom: 8px; }
.article-badge { background: var(--blue-soft); color: var(--blue); font-weight: 700; padding: 2px 8px; border-radius: 4px; font-size: 11px; }
.article-card__title { font-size: 18px; font-weight: 800; color: var(--ink); line-height: 1.4; margin-bottom: 8px; transition: color 0.2s; }
.article-card:hover .article-card__title { color: var(--blue); }
.article-card__desc { font-size: 13.5px; color: var(--muted); line-height: 1.6; margin-bottom: 12px; }
.article-card__footer { display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: #94a3b8; border-top: 1px dashed #f1f5f9; padding-top: 10px; }
.article-card__tags { display: flex; gap: 6px; }
.article-card__tags span { background: #f8fafc; border: 1px solid #e2e8f0; color: #64748b; padding: 1px 6px; border-radius: 4px; font-size: 11px; }
.pagination-container { background: #ffffff; border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; margin-top: 24px; }
.pagination-info { font-size: 13px; color: var(--muted); }
.pagination-info strong { color: var(--ink); }
.pagination-controls { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.page-btn { display: inline-flex; align-items: center; justify-content: center; min-width: 36px; height: 36px; padding: 0 10px; border-radius: 8px; border: 1px solid var(--line); background: #ffffff; color: #334155; font-size: 13px; font-weight: 600; text-decoration: none; cursor: pointer; transition: all 0.2s ease; }
.page-btn:hover:not(.disabled) { border-color: var(--blue); color: var(--blue); background: var(--blue-soft); }
.page-btn.active { background: var(--blue); border-color: var(--blue); color: #ffffff; font-weight: 700; box-shadow: 0 2px 6px rgba(37, 99, 235, 0.3); }
.page-btn.disabled { opacity: 0.4; cursor: not-allowed; }
.page-dots { color: #94a3b8; padding: 0 4px; font-size: 14px; }
.page-jump-box { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.page-jump-input { width: 54px; height: 34px; text-align: center; border: 1px solid var(--line); border-radius: 6px; outline: none; font-size: 13px; font-weight: 600; color: var(--ink); }
.page-jump-input:focus { border-color: var(--blue); }
.page-jump-btn { height: 34px; padding: 0 12px; background: #f1f5f9; border: 1px solid var(--line); border-radius: 6px; color: #334155; font-size: 12.5px; font-weight: 600; cursor: pointer; transition: all 0.2s; }
.page-jump-btn:hover { background: var(--blue); color: #ffffff; border-color: var(--blue); }
.article-detail-wrap { background: #ffffff; border: 1px solid var(--line); border-radius: var(--radius); padding: 36px 40px; box-shadow: 0 4px 16px rgba(15, 23, 42, 0.02); }
@media (max-width: 768px) { .article-detail-wrap { padding: 24px 18px; } }
.detail-header { border-bottom: 1px solid var(--line); padding-bottom: 24px; margin-bottom: 24px; }
.detail-title { font-size: clamp(24px, 3.2vw, 32px); font-weight: 800; color: var(--ink); line-height: 1.3; margin: 12px 0 16px; letter-spacing: -0.5px; }
.detail-meta-row { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; font-size: 13px; color: var(--muted); }
.detail-meta-item { display: flex; align-items: center; gap: 5px; }
.detail-lead-summary { background: #f8fafc; border-left: 4px solid var(--blue); border-radius: 0 10px 10px 0; padding: 16px 20px; font-size: 14.5px; color: #334155; line-height: 1.7; margin: 20px 0 24px; }
.detail-lead-summary strong { color: var(--ink); }
.wal-official-banner { background: linear-gradient(135deg, #0f172a 0%, #1e293b 55%, #172554 100%); border-radius: 16px; padding: 22px 28px; color: #ffffff; box-shadow: 0 16px 36px rgba(15, 23, 42, 0.12); margin: 24px 0 32px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border: 1px solid rgba(255, 255, 255, 0.12); position: relative; overflow: hidden; }
.wal-official-banner::after { content: ''; position: absolute; right: -50px; bottom: -50px; width: 220px; height: 220px; background: radial-gradient(circle, rgba(37, 99, 235, 0.35) 0%, transparent 70%); pointer-events: none; }
.banner-left { display: flex; align-items: center; gap: 18px; flex: 1; }
.banner-logo-icon { width: 50px; height: 50px; border-radius: 12px; background: linear-gradient(135deg, #2563eb, #3b82f6); display: flex; align-items: center; justify-content: center; font-size: 24px; font-weight: 900; color: #ffffff; box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4); flex-shrink: 0; }
.banner-text h3 { font-size: 17.5px; font-weight: 800; color: #ffffff; margin-bottom: 4px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.banner-badge-free { background: #10b981; color: #ffffff; font-size: 11px; font-weight: 800; padding: 2px 7px; border-radius: 4px; }
.banner-text p { font-size: 13px; color: #cbd5e1; line-height: 1.5; }
.banner-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.banner-btn-cws { background: #2563eb; color: #ffffff; font-size: 13px; font-weight: 700; padding: 10px 18px; border-radius: 10px; text-decoration: none; transition: all 0.2s; box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35); display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.banner-btn-cws:hover { background: #1d4ed8; transform: translateY(-1px); }
.banner-btn-zip { background: rgba(255, 255, 255, 0.1); color: #f8fafc; border: 1px solid rgba(255, 255, 255, 0.2); font-size: 13px; font-weight: 600; padding: 10px 16px; border-radius: 10px; text-decoration: none; transition: all 0.2s; white-space: nowrap; }
.banner-btn-zip:hover { background: rgba(255, 255, 255, 0.2); }
@media (max-width: 768px) { .wal-official-banner { flex-direction: column; align-items: flex-start; padding: 20px; } .banner-actions { width: 100%; flex-direction: column; } .banner-btn-cws, .banner-btn-zip { width: 100%; justify-content: center; } }
.detail-content { font-size: 15px; color: #334155; line-height: 1.8; }
.detail-content h2 { font-size: 21px; font-weight: 800; color: var(--ink); margin: 36px 0 16px; padding-bottom: 10px; border-bottom: 1px solid #f1f5f9; display: flex; align-items: center; gap: 8px; }
.detail-content h2::before { content: ''; display: inline-block; width: 4px; height: 20px; background: var(--blue); border-radius: 2px; }
.detail-content h3 { font-size: 17px; font-weight: 700; color: var(--ink); margin: 24px 0 12px; }
.detail-content p { margin-bottom: 16px; }
.detail-content ul, .detail-content ol { margin: 16px 0 20px 24px; }
.detail-content li { margin-bottom: 8px; }
.detail-content .highlight-box { background: #eff6ff; border: 1px solid #bfdbfe; border-radius: 10px; padding: 16px 20px; margin: 20px 0; font-size: 14px; color: #1e3a8a; }
.detail-content table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 13.5px; }
.detail-content th, .detail-content td { border: 1px solid #e2e8f0; padding: 10px 14px; text-align: left; }
.detail-content th { background: #f8fafc; font-weight: 700; color: var(--ink); }
.detail-footer-actions { border-top: 1px solid var(--line); padding-top: 24px; margin-top: 40px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.detail-tag-list { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.detail-tag-list span { font-size: 12px; color: var(--muted); }
.detail-tag-list a { background: #f1f5f9; color: #475569; font-size: 12px; padding: 4px 10px; border-radius: 6px; text-decoration: none; transition: all 0.2s; }
.detail-tag-list a:hover { background: var(--blue-soft); color: var(--blue); }
.detail-share-btns { display: flex; gap: 8px; }
.btn-action-pill { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: #ffffff; padding: 6px 14px; border-radius: 8px; font-size: 13px; color: #334155; cursor: pointer; transition: all 0.2s; }
.btn-action-pill:hover { border-color: var(--blue); color: var(--blue); background: var(--blue-soft); }
.prev-next-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 32px 0; }
@media (max-width: 640px) { .prev-next-nav { grid-template-columns: 1fr; } }
.prev-next-card { background: #ffffff; border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px; text-decoration: none; transition: all 0.2s; display: flex; flex-direction: column; }
.prev-next-card:hover { border-color: var(--blue); box-shadow: 0 4px 12px rgba(37, 99, 235, 0.06); }
.prev-next-label { font-size: 11.5px; color: #94a3b8; margin-bottom: 4px; font-weight: 600; }
.prev-next-title { font-size: 13.5px; font-weight: 700; color: var(--ink); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.portal-sidebar { display: flex; flex-direction: column; gap: 24px; }
.sidebar-widget { background: #ffffff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: 0 4px 12px rgba(15, 23, 42, 0.02); }
.sidebar-widget__title { font-size: 15px; font-weight: 800; color: var(--ink); margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }
.sidebar-rank-list { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.sidebar-rank-item { display: flex; align-items: flex-start; gap: 10px; text-decoration: none; }
.rank-num { width: 20px; height: 20px; border-radius: 4px; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 800; flex-shrink: 0; margin-top: 1px; }
.rank-1 { background: #ef4444; color: #ffffff; }
.rank-2 { background: #f97316; color: #ffffff; }
.rank-3 { background: #eab308; color: #ffffff; }
.rank-other { background: #f1f5f9; color: #64748b; }
.rank-text { font-size: 13px; color: #334155; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; transition: color 0.2s; }
.sidebar-rank-item:hover .rank-text { color: var(--blue); }
.sidebar-toc { position: sticky; top: 96px; }
.toc-list { list-style: none; border-left: 2px solid #e2e8f0; padding-left: 12px; display: flex; flex-direction: column; gap: 10px; }
.toc-list li a { font-size: 13px; color: #64748b; text-decoration: none; display: block; transition: all 0.2s; }
.toc-list li a:hover, .toc-list li.active a { color: var(--blue); font-weight: 700; transform: translateX(2px); }
.toc-list li.active { position: relative; }
.toc-list li.active::before { content: ''; position: absolute; left: -14px; top: 4px; width: 2px; height: 14px; background: var(--blue); }

/* ===== 重新设计的官方高质感 BANNER ===== */

/* 方案 A: 现代轻奢蓝白卡片 (推荐: 与正文完全融合，不突兀) */
.wal-banner-light {
  background: linear-gradient(135deg, #eff6ff 0%, #f8fafc 50%, #ffffff 100%);
  border: 1px solid #bfdbfe;
  border-radius: 12px;
  padding: 16px 20px;
  margin: 20px 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.04);
  transition: all 0.2s ease;
}
.wal-banner-light:hover {
  border-color: #93c5fd;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.08);
}
.wal-banner-light .b-left {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
}
.wal-banner-light .b-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 900;
  color: #ffffff;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
}
.wal-banner-light .b-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.wal-banner-light .b-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.wal-banner-light .b-title {
  font-size: 15.5px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.2px;
}
.wal-banner-light .b-badge {
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #bbf7d0;
  font-size: 11px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 4px;
}
.wal-banner-light .b-desc {
  font-size: 12.5px;
  color: #64748b;
  line-height: 1.4;
}
.wal-banner-light .b-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.wal-banner-light .btn-install {
  background: #2563eb;
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  padding: 9px 18px;
  border-radius: 8px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.25);
  white-space: nowrap;
}
.wal-banner-light .btn-install:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
}
.wal-banner-light .btn-zip {
  background: #ffffff;
  color: #475569;
  border: 1px solid #cbd5e1;
  font-size: 12.5px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s;
  white-space: nowrap;
}
.wal-banner-light .btn-zip:hover {
  background: #f8fafc;
  color: #0f172a;
  border-color: #94a3b8;
}

/* 方案 B: 极简紧凑单行条 */
.wal-banner-compact {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 10px 16px;
  margin: 18px 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.wal-banner-compact .b-compact-left {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: #334155;
  flex-wrap: wrap;
}
.wal-banner-compact .b-compact-icon {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: #2563eb;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 900;
}
.wal-banner-compact .b-compact-title {
  font-weight: 800;
  color: #0f172a;
}
.wal-banner-compact .b-compact-desc {
  color: #64748b;
  font-size: 12.5px;
}
.wal-banner-compact .b-compact-btn {
  background: #2563eb;
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 6px;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.2s;
}
.wal-banner-compact .b-compact-btn:hover {
  background: #1d4ed8;
}

/* 方案 C: 精致深色科技卡片 */
.wal-banner-dark {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  border-radius: 12px;
  padding: 18px 22px;
  margin: 20px 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
  color: #ffffff;
}
.wal-banner-dark .b-left {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
}
.wal-banner-dark .b-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 900;
  color: #ffffff;
  flex-shrink: 0;
}
.wal-banner-dark .b-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.wal-banner-dark .b-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.wal-banner-dark .b-title {
  font-size: 15.5px;
  font-weight: 800;
  color: #ffffff;
}
.wal-banner-dark .b-badge {
  background: #10b981;
  color: #ffffff;
  font-size: 10.5px;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 4px;
}
.wal-banner-dark .b-desc {
  font-size: 12.5px;
  color: #cbd5e1;
}
.wal-banner-dark .b-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.wal-banner-dark .btn-install {
  background: #2563eb;
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  padding: 9px 18px;
  border-radius: 8px;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.2s;
}
.wal-banner-dark .btn-install:hover {
  background: #1d4ed8;
}
.wal-banner-dark .btn-zip {
  background: rgba(255, 255, 255, 0.1);
  color: #f1f5f9;
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 12.5px;
  padding: 8px 14px;
  border-radius: 8px;
  text-decoration: none;
  white-space: nowrap;
}
.wal-banner-dark .btn-zip:hover {
  background: rgba(255, 255, 255, 0.2);
}

@media (max-width: 768px) {
  .wal-banner-light, .wal-banner-dark, .wal-banner-compact {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .wal-banner-light .b-actions, .wal-banner-dark .b-actions {
    width: 100%;
  }
}

/* 清洗后的正文图片与段落排版优化 */
.detail-content .article-img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
  margin: 18px 0;
  display: block;
}
.detail-content p {
  font-size: 15px;
  color: #334155;
  line-height: 1.8;
  margin-bottom: 14px;
}
.detail-content h2 {
  font-size: 20px;
  font-weight: 800;
  color: var(--ink);
  margin: 32px 0 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid #f1f5f9;
}
.detail-content h3 {
  font-size: 16.5px;
  font-weight: 700;
  color: var(--ink);
  margin: 20px 0 10px;
}
.detail-content strong {
  color: var(--ink);
  font-weight: 700;
}


/* ===== 内页移动端自适应强化 (Portal Mobile Optimization) ===== */
@media (max-width: 768px) {
  /* 面包屑横向滑动，杜绝多行折行 */
  .breadcrumb-nav {
    padding: 8px 0 !important;
  }
  .breadcrumb-list {
    display: flex !important;
    overflow-x: auto !important;
    white-space: nowrap !important;
    -webkit-overflow-scrolling: touch !important;
    font-size: 12px !important;
    gap: 6px !important;
    padding: 2px 4px !important;
  }
  .breadcrumb-list::-webkit-scrollbar {
    display: none;
  }

  /* 页面容器边距紧凑化 */
  .portal-container {
    padding: 0 10px !important;
  }
  .portal-layout-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  /* 文章包裹卡片 */
  .article-detail-wrap {
    padding: 18px 14px !important;
    border-radius: 12px !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03) !important;
  }

  /* 文章大标题 */
  .detail-title {
    font-size: 20px !important;
    line-height: 1.35 !important;
    letter-spacing: -0.3px !important;
    margin: 8px 0 10px !important;
  }

  /* 文章元数据行 */
  .detail-meta-row {
    font-size: 12px !important;
    gap: 6px !important;
    flex-wrap: wrap !important;
    margin-bottom: 14px !important;
    line-height: 1.5 !important;
  }

  /* 官方 Banner 卡片移动端优化 */
  .wal-banner-light {
    padding: 14px 12px !important;
    margin: 14px 0 20px !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 10px !important;
  }
  .wal-banner-light .b-left {
    width: 100% !important;
    gap: 10px !important;
  }
  .wal-banner-light .b-icon {
    width: 36px !important;
    height: 36px !important;
    font-size: 17px !important;
    border-radius: 8px !important;
  }
  .wal-banner-light .b-title {
    font-size: 14px !important;
    line-height: 1.4 !important;
  }
  .wal-banner-light .b-desc {
    font-size: 11.5px !important;
    line-height: 1.4 !important;
  }
  .wal-banner-light .b-actions {
    width: 100% !important;
    display: flex !important;
    gap: 8px !important;
  }
  .wal-banner-light .btn-install,
  .wal-banner-light .btn-zip {
    flex: 1 !important;
    text-align: center !important;
    justify-content: center !important;
    padding: 8px 4px !important;
    font-size: 12px !important;
  }

  /* 正文与配图 */
  .detail-content p {
    font-size: 14.5px !important;
    line-height: 1.7 !important;
    margin-bottom: 12px !important;
  }
  .detail-content h2 {
    font-size: 17px !important;
    margin: 22px 0 12px !important;
  }
  .detail-content .article-img {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    border-radius: 8px !important;
    margin: 12px 0 !important;
  }

  /* 上一篇 / 下一篇 */
  .prev-next-nav {
    flex-direction: column !important;
    gap: 10px !important;
  }
  .prev-next-card {
    width: 100% !important;
    text-align: left !important;
  }
}

/* ===== 24小时跨境实时热点雷达图 (HOT RADAR) ===== */
.hot-radar-wrap {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  border: 1px solid rgba(59, 130, 246, 0.25);
  border-radius: 16px;
  padding: 24px;
  margin: 24px auto 32px;
  color: #ffffff;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.2), 0 0 20px rgba(37, 99, 235, 0.1);
  position: relative;
  overflow: hidden;
}
.hot-radar-wrap::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, transparent 70%);
  pointer-events: none;
}
.hot-radar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  flex-wrap: wrap;
  gap: 12px;
}
.hot-radar-title-box {
  display: flex;
  align-items: center;
  gap: 10px;
}
.radar-pulse-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: #ef4444;
}
.hot-radar-heading {
  font-size: 18px;
  font-weight: 800;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 8px;
}
.radar-live-tag {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #34d399;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.radar-live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 6px #10b981;
  animation: pulse 1.5s infinite;
}
.radar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}
.radar-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 12px 14px;
  text-decoration: none;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: all 0.2s ease;
  position: relative;
}
.radar-card:hover {
  background: rgba(59, 130, 246, 0.12);
  border-color: #3b82f6;
  transform: translateY(-2px);
}
.radar-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.radar-rank {
  font-size: 11px;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.1);
  color: #94a3b8;
}
.radar-rank.top1 { background: #ef4444; color: #fff; }
.radar-rank.top2 { background: #f97316; color: #fff; }
.radar-rank.top3 { background: #eab308; color: #fff; }
.radar-heat {
  font-size: 11.5px;
  font-weight: 700;
  color: #f59e0b;
  display: flex;
  align-items: center;
  gap: 3px;
}
.radar-card-title {
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.4;
  color: #f1f5f9;
}
.radar-bar-track {
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 2px;
  overflow: hidden;
  margin-top: 4px;
}
.radar-bar-fill {
  height: 100%;
  border-radius: 2px;
  background: linear-gradient(90deg, #3b82f6, #60a5fa);
}
.radar-card:hover .radar-bar-fill {
  background: linear-gradient(90deg, #f59e0b, #ef4444);
}
@media (max-width: 768px) {
  .hot-radar-wrap { padding: 16px 12px; margin: 16px 0 24px; border-radius: 12px; }
  .radar-grid { grid-template-columns: 1fr; gap: 8px; }
  .hot-radar-heading { font-size: 16px; }
}


/* ========================================================
   GLOBAL IMAGE CONSTRAINT & ANTI-DISTORTION SAFEGUARDS
   彻底杜绝富文本图片过大撑爆布局与变形
======================================================== */
.detail-wrap-box,
.news-detail-box,
.article-detail-wrap,
.detail-sec-card,
.detail-sec-p,
.article-body-content {
  max-width: 100% !important;
  overflow: hidden !important;
  overflow-wrap: break-word !important;
  word-wrap: break-word !important;
  word-break: break-word !important;
}

.detail-wrap-box img,
.news-detail-box img,
.article-detail-wrap img,
.detail-sec-card img,
.detail-sec-p img,
.article-body-content img,
.article-img {
  max-width: 100% !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
  display: block !important;
  margin: 16px auto !important;
  border-radius: 8px !important;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.05) !important;
}

.detail-img-banner {
  width: 100% !important;
  max-width: 100% !important;
  max-height: 380px !important;
  overflow: hidden !important;
  border-radius: 12px !important;
  background: #f8fafc !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border: 1px solid #e2e8f0 !important;
  margin: 20px 0 24px !important;
}

.detail-img-banner img {
  max-width: 100% !important;
  max-height: 380px !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
  margin: 0 auto !important;
}

/* ========================================================
   资讯与百科内页纯净样式组件 (全部外部引入，杜绝内联 style)
   ======================================================== */
.news-detail-box {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 36px 40px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.02);
  max-width: 100%;
  overflow: hidden;
}
@media (max-width: 768px) {
  .news-detail-box { padding: 20px 16px; }
}

.news-h1 {
  font-size: 28px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.35;
  margin-bottom: 14px;
  word-break: break-word;
}

.news-meta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 13px;
  color: #64748b;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 18px;
  margin-bottom: 24px;
}
.news-meta-tags {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}
.tag-badge {
  background: #eff6ff;
  color: #2563eb;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s ease;
}
.tag-badge:hover {
  background: #2563eb;
  color: #ffffff;
}

/* 官方推广 Banner (大厂旗舰版，全响应式) */
.wal-promo-card {
  background: linear-gradient(135deg, #f0f7ff 0%, #e0f2fe 100%);
  border: 1px solid #bfdbfe;
  border-radius: 12px;
  padding: 18px 24px;
  margin-bottom: 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.05);
}
@media (max-width: 860px) {
  .wal-promo-card {
    flex-direction: column;
    align-items: flex-start;
  }
}
.wal-promo-left {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
  min-width: 0;
}
.wal-promo-logo {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.15);
  flex-shrink: 0;
}
.wal-promo-info {
  flex: 1;
  min-width: 0;
}
.wal-promo-title {
  font-size: 16.5px;
  font-weight: 800;
  color: #1e3a8a;
  letter-spacing: -0.2px;
  margin: 0 0 5px 0;
  line-height: 1.35;
}
.wal-promo-desc {
  font-size: 13.5px;
  color: #475569;
  line-height: 1.5;
  margin: 0;
}
.wal-promo-desc strong {
  color: #1d4ed8;
}
.wal-promo-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.btn-promo-primary {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #ffffff !important;
  padding: 9px 18px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
  transition: all 0.2s ease;
}
.btn-promo-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.35);
}
.btn-promo-secondary {
  background: #ffffff;
  color: #1e40af !important;
  border: 1px solid #bfdbfe;
  padding: 9px 16px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.2s ease;
}
.btn-promo-secondary:hover {
  background: #eff6ff;
  border-color: #93c5fd;
}

/* 顶部 16:9 出海大片封面 (纯白大片，绝无黑框) */
.news-banner-cover {
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 420px;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 28px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.03);
}
.news-banner-cover img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block;
}

/* 正文排版 */
.news-body-text {
  font-size: 15px;
  line-height: 1.85;
  color: #334155;
  max-width: 100%;
  overflow: hidden;
}
.news-body-text h2, .news-body-text h3 {
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
  margin: 28px 0 12px;
  padding-left: 10px;
  border-left: 4px solid #2563eb;
}
.news-body-text p {
  margin-bottom: 14px;
}
.news-body-text img {
  max-width: 100% !important;
  height: auto !important;
  display: block;
  margin: 16px auto;
  border-radius: 8px;
}

/* 底部相关聚合标签 */
.news-tags-block {
  margin-top: 32px;
  padding: 18px 22px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.tags-block-label {
  font-size: 13.5px;
  font-weight: 700;
  color: #475569;
}
.tag-pill {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #2563eb;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 13px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s ease;
}
.tag-pill:hover {
  background: #2563eb;
  color: #ffffff;
  border-color: #2563eb;
}

/* 底部导航链接 */
.news-footer-nav {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid #e2e8f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.btn-back-link {
  background: #f1f5f9;
  color: #334155;
  border: 1px solid #cbd5e1;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 13px;
  text-decoration: none;
  font-weight: 500;
}
.btn-back-link:hover {
  background: #e2e8f0;
}
.btn-baike-link {
  color: #2563eb;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}
.btn-baike-link:hover {
  text-decoration: underline;
}

/* 侧边栏纯净组件样式 */
.sidebar-promo-card {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border: 1px solid #bfdbfe;
  border-radius: 12px;
  padding: 22px;
  margin-bottom: 24px;
}
.sidebar-promo-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.sidebar-promo-icon {
  width: 32px;
  height: 32px;
}
.sidebar-promo-title {
  font-size: 15.5px;
  font-weight: 800;
  color: #1e3a8a;
  margin: 0;
}
.sidebar-promo-desc {
  font-size: 13px;
  color: #334155;
  line-height: 1.6;
  margin-bottom: 16px;
}
.sidebar-promo-btn {
  display: block;
  text-align: center;
}
.sidebar-hot-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 22px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}
.sidebar-hot-title {
  font-size: 15.5px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.sidebar-hot-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.sidebar-hot-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13.5px;
}
.sidebar-rank-num {
  font-weight: 800;
  font-size: 14px;
  min-width: 16px;
}
.sidebar-hot-content {
  flex: 1;
  min-width: 0;
}
.sidebar-hot-link {
  color: #334155;
  text-decoration: none;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-weight: 500;
}
.sidebar-hot-link:hover {
  color: #2563eb;
}
.sidebar-views-count {
  display: none !important;
}

/* ========================================================
   跨境百科详情页专属纯净组件 (baike/detail.php)
   ======================================================== */
.detail-wrap-box {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 36px 40px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.02);
  max-width: 100%;
  overflow: hidden;
}
@media (max-width: 768px) {
  .detail-wrap-box { padding: 20px 16px; }
}

.detail-head {
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 20px;
  margin-bottom: 24px;
}
.detail-h1 {
  font-size: 28px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.35;
  margin-bottom: 14px;
  word-break: break-word;
}
.detail-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: #64748b;
}

.detail-sec-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 20px 24px;
  margin-bottom: 20px;
  max-width: 100%;
  overflow: hidden;
  transition: all 0.2s ease;
}
.detail-sec-card:hover {
  border-color: #cbd5e1;
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.03);
}
.detail-sec-title {
  font-size: 16px;
  font-weight: 700;
  color: #2563eb;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.detail-sec-p {
  font-size: 14.5px;
  line-height: 1.85;
  color: #334155;
  margin: 0;
  word-break: break-word;
}

/* 百科大图展示 (优雅纯净 16:9，无黑框) */
.detail-img-banner {
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 400px;
  border-radius: 12px;
  overflow: hidden;
  margin: 20px 0 24px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.03);
}
.detail-img-banner img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block;
}

/* 免责声明卡片 */
.detail-disclaimer-card {
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 10px;
  padding: 16px 20px;
  margin-top: 24px;
}
.detail-disclaimer-title {
  color: #64748b;
  font-size: 13.5px;
  font-weight: 700;
  margin-bottom: 6px;
}
.detail-disclaimer-desc {
  color: #64748b;
  font-size: 12.5px;
  margin: 0;
  line-height: 1.7;
}

/* 底部操作导航栏 */
.detail-footer-bar {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid #e2e8f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.btn-back-link {
  background: #f1f5f9;
  color: #334155 !important;
  border: 1px solid #cbd5e1;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 500;
  transition: all 0.2s;
}
.btn-back-link:hover {
  background: #e2e8f0;
  color: #0f172a !important;
}
.btn-baike-link {
  color: #2563eb;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: color 0.2s;
}
.btn-baike-link:hover {
  color: #1d4ed8;
  text-decoration: underline;
}
