/* TikTok Matrix Page Styles */
@font-face { font-family: 'Bricolage'; src: url('../_shared/fonts/BricolageGrotesque-Regular.ttf') format('truetype'); font-display: swap; }
@font-face { font-family: 'Bricolage'; font-weight: 700; src: url('../_shared/fonts/BricolageGrotesque-Bold.ttf') format('truetype'); font-display: swap; }
@font-face { font-family: 'Instrument'; src: url('../_shared/fonts/InstrumentSans-Regular.ttf') format('truetype'); font-display: swap; }
@font-face { font-family: 'Instrument'; font-weight: 700; src: url('../_shared/fonts/InstrumentSans-Bold.ttf') format('truetype'); font-display: swap; }
@font-face { font-family: 'JetBrains'; src: url('../_shared/fonts/JetBrainsMono-Regular.ttf') format('truetype'); font-display: swap; }
@font-face { font-family: 'JetBrains'; font-weight: 700; src: url('../_shared/fonts/JetBrainsMono-Bold.ttf') format('truetype'); font-display: swap; }
:root {
  --bg: #0B0B0F;
  --bg2: #16181D;
  --bg3: #1E2128;
  --ink: #F5F5F7;
  /* 正文分层：标题保持 --ink，正文 / 表格 / 次要文字依次降亮 */
  --text-body: rgba(245, 245, 247, 0.86);
  --text-table: rgba(245, 245, 247, 0.72);
  --text-dim: rgba(245, 245, 247, 0.6);
  /* 楼层标题比 --ink 再压一档，贴近正文灰白体系但高于正文 */
  --heading: #E0E1E4;
  --badge-ink: #22DAD5;
  --muted: #9AA0A6;
  --rule: #2A2D34;
  --accent: #FE2C55;     /* TikTok 粉红 */
  --accent2: #25F4EE;    /* TikTok 青蓝 */
  --warn: #FFCC00;
}
body.residential-page {
  background: var(--bg);
  color: var(--text-body);
  font-family: 'Instrument', -apple-system, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  padding-top: 52px;
}
.residential-page a { color: var(--accent2); text-decoration: none; }
.residential-page a:hover { text-decoration: underline; }
.residential-page .promo-link { white-space: nowrap; }
.residential-page .promo-line { margin-top: 1.1rem; }
.residential-page .promo-src {
  margin-left: 0.5rem; font-size: 0.78rem; color: var(--text-dim);
  font-family: 'JetBrains', 'JetBrains Mono', monospace;
}
.residential-page code, .residential-page .mono { font-family: 'JetBrains', 'JetBrains Mono', 'Courier New', monospace; font-size: 0.92em; }
/* ============== HERO ============== */
.residential-page .hero {
  position: relative;
  padding: 5rem 1.5rem 3.5rem;
  background:
    radial-gradient(ellipse 36% 30% at 16% 45%, rgba(11,11,15,0.62) 0%, rgba(11,11,15,0.34) 55%, rgba(11,11,15,0) 86%),
    radial-gradient(ellipse 32% 11% at 22% 73%, rgba(11,11,15,0.66) 0%, rgba(11,11,15,0.32) 55%, rgba(11,11,15,0) 100%),
    linear-gradient(90deg, rgba(11,11,15,0.7) 0%, rgba(11,11,15,0.28) 7%, rgba(11,11,15,0) 18%),
    linear-gradient(180deg, rgba(11,11,15,0) 66%, rgba(11,11,15,0.16) 88%, rgba(11,11,15,0.28) 100%),
    url('/TikTok/ResidentialIP/assets/img/residential-hero-desktop-2848-v20261114-3.webp?v=20261114-3') right center / auto 100% no-repeat,
    var(--bg);
  background-origin: border-box;
  border-bottom: 1px solid var(--rule);
  overflow: hidden;
}
.residential-page .hero-inner { max-width: 1400px; margin: 0 auto; position: relative; grid-template-columns: 1fr; gap: 0; }
/* ============== BREADCRUMB ============== */
.residential-page .breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 1rem;
}
.residential-page .breadcrumb a {
  color: var(--accent2);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  transition: color 0.2s;
}
.residential-page .breadcrumb a:hover {
  color: var(--accent);
}
.residential-page .breadcrumb .sep {
  color: var(--rule);
}
.residential-page .breadcrumb .current {
  color: var(--ink);
  font-weight: 500;
}
.residential-page h1 {
  font-family: 'Bricolage', sans-serif;
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  line-height: 1.1; margin: 0 0 1rem;
  font-weight: 700; letter-spacing: -0.02em;
}
.residential-page h1 .accent { color: var(--accent); }
.residential-page h1 .accent2 { color: var(--accent2); }
.residential-page .meta-row {
  display: flex; flex-wrap: wrap; gap: 1.5rem;
  font-family: 'JetBrains', monospace; font-size: 0.85rem; color: var(--muted);
}
.residential-page .meta-row span strong { color: var(--ink); font-weight: 700; }
/* ============== TOC ============== */
.residential-page .toc-wrap { 
  position: sticky; top: 68px;
  float: left;
  width: 260px;
  margin: 2.5rem 0 2rem max(8px, calc((100% - 1200px) / 2 - 272px));
  padding: 0 1rem;
  max-height: calc(100vh - 84px);
  overflow-y: auto; overflow-x: hidden;
}
.residential-page .toc-wrap::-webkit-scrollbar { width: 4px; }
.residential-page .toc-wrap::-webkit-scrollbar-track { background: transparent; }
.residential-page .toc-wrap::-webkit-scrollbar-thumb { background: var(--rule); border-radius: 2px; }
.residential-page .toc {
  background: var(--bg2); border: 1px solid var(--rule); border-radius: 14px;
  padding: 1.2rem 1.5rem;
}
.residential-page .toc h2 {
  font-family: 'JetBrains', monospace; font-size: 0.8rem;
  color: var(--accent2); margin: 0 0 1rem; letter-spacing: 0.1em;
  padding-bottom: 0.5rem; border-bottom: 1px solid var(--rule);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.residential-page .toc h2 i {
  font-size: 0.9rem;
}
.residential-page .toc ol {
  list-style: none; padding: 0; margin: 0;
  columns: 1;
}
.residential-page .toc li { margin-bottom: 0.35rem; }
.residential-page .toc a { 
  color: var(--muted); font-size: 0.85rem; 
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.25rem 0.5rem; border-radius: 6px;
  transition: all 0.2s;
}
.residential-page .toc a:hover { color: var(--accent2); background: rgba(37,244,238,0.1); text-decoration: none; }
.residential-page .toc a.active { color: var(--accent2); background: rgba(37,244,238,0.15); font-weight: 600; }
.residential-page .toc .num { color: var(--accent); font-family: 'JetBrains', monospace; font-size: 0.75rem; }
/* ============== MAIN ============== */
.residential-page main { max-width: 1200px; box-sizing: border-box; margin-left: max(280px, calc((100% - 1200px) / 2)); margin-right: auto; padding: 2.5rem 2rem 4rem; }
.residential-page section[id] { scroll-margin-top: 68px; }
.residential-page h2 {
  font-family: 'Bricolage', sans-serif;
  font-size: 2rem; line-height: 1.2; margin: 4rem 0 1rem;
  padding-bottom: calc(0.6rem + 1px); border-bottom: 1px solid rgba(245, 245, 247, 0.32);
  letter-spacing: -0.01em;
}
.residential-page h2 .sec-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  height: 2rem;
  aspect-ratio: 31 / 16;
  padding: 0;
  background: var(--accent);
  clip-path: polygon(34.4% 0, 100% 0, 65.6% 100%, 0 100%);
  font-family: 'JetBrains', 'JetBrains Mono', monospace;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.06em;
  color: #fff;
  vertical-align: middle;
  position: relative;
  top: -2px;
  margin-right: 0.55rem;
}
.residential-page h2 .badge {
  display: inline-block; font-family: 'JetBrains', monospace;
  font-size: 0.7rem; color: var(--badge-ink);
  background: rgba(37,244,238,0.1); padding: 0.2rem 0.6rem;
  border-radius: 99px; margin-left: 0.8rem; vertical-align: middle;
}
.residential-page h3 {
  font-family: 'Bricolage', sans-serif;
  font-size: 1.35rem; color: var(--ink);
  margin: 2.5rem 0 0.8rem; padding-left: 1rem;
  border-left: 4px solid var(--accent2);
}
.residential-page h4 {
  font-family: 'Bricolage', sans-serif;
  font-size: 1.05rem; color: var(--accent2);
  margin: 1.5rem 0 0.5rem; text-transform: uppercase; letter-spacing: 0.06em;
}
.residential-page p { margin: 0.8rem 0; }
.residential-page ul, .residential-page ol { padding-left: 1.4rem; margin: 0.8rem 0; }
.residential-page li { margin-bottom: 0.4rem; }
.residential-page mark.key { background: rgba(254,44,85,0.15); color: var(--accent); font-weight: 600; padding: 0 0.2rem; border-radius: 3px; }
.residential-page blockquote {
  margin: 1.5rem 0; padding: 1rem 1.2rem;
  background: var(--bg2); border-left: 4px solid var(--accent);
  border-radius: 0 8px 8px 0; color: var(--muted);
  font-style: italic;
}
.residential-page blockquote strong { color: var(--ink); font-style: normal; }
/* ============== CARDS ============== */
.residential-page .grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; margin: 1.5rem 0; }
.residential-page .grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; margin: 1.5rem 0; }
.residential-page .card {
  background: var(--bg2); border: 1px solid var(--rule);
  border-radius: 12px; padding: 1.2rem;
  transition: transform 0.2s, border-color 0.2s;
}
.residential-page .card:hover { transform: translateY(-2px); border-color: var(--accent2); }
.residential-page .card h4 { margin-top: 0; color: var(--accent2); }
.residential-page .card .tag {
  display: inline-block; font-family: 'JetBrains', monospace;
  font-size: 0.7rem; color: var(--bg); background: var(--accent);
  padding: 0.15rem 0.5rem; border-radius: 4px; margin-bottom: 0.6rem;
}
/* 卡片头：标签退为灰白辅助信息，与 h4 同行（标签左、标题右），按文字基线对齐 */
.residential-page .card-head { display: flex; align-items: baseline; gap: 0.625rem; margin-bottom: 0.8rem; }
.residential-page .card-head .tag {
  flex: 0 0 auto; margin-bottom: 0;
  color: rgba(245, 245, 247, 0.72);
  background: rgba(245, 245, 247, 0.06);
  border: 1px solid rgba(245, 245, 247, 0.1);
  /* 基线对齐后小字号 CJK 的落点比标题高约 0.5px，做轻微内部补偿 */
  position: relative; top: 1px;
}
.residential-page .card-head h4 { margin: 0; min-width: 0; }
/* ============== TABLE ============== */
.residential-page .table-wrap { overflow-x: auto; overflow-y: auto; max-height: 600px; margin: 1.5rem 0; border: 1px solid var(--rule); border-radius: 8px; }
.residential-page table { width: 100%; min-width: 600px; border-collapse: collapse; font-size: 0.88rem; }
.residential-page thead { background: var(--bg3); position: sticky; top: 0; }
.residential-page th {
  text-align: left; padding: 0.8rem 1rem; color: var(--accent2);
  font-family: 'JetBrains', monospace; font-size: 0.75rem;
  letter-spacing: 0.06em; text-transform: uppercase;
  border-bottom: 2px solid var(--accent);
}
.residential-page td { padding: 0.7rem 1rem; border-bottom: 1px solid var(--rule); vertical-align: top; color: var(--ink); }
.residential-page tbody tr:hover { background: var(--bg2); }
.residential-page td.mono, .residential-page th.mono { font-family: 'JetBrains', monospace; font-size: 0.85rem; }
.residential-page td .hl { color: var(--accent); font-weight: 600; }
/* ============== FIGURES ============== */
.residential-page figure { margin: 2rem 0; text-align: center; }
.residential-page figure img, .residential-page figure .mermaid { max-width: 100%; height: auto; }
.residential-page .mermaid { background: var(--bg2); padding: 1.5rem; border-radius: 8px; }
/* ---- 图3：工具栈全景（自绘结构图） ---- */
.residential-page .toolstack { max-width: 980px; margin: 0 auto; text-align: left; }
.residential-page .ts-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.residential-page .ts-panel { background: var(--bg2); border: 1px solid var(--rule); border-radius: 14px; padding: 1.1rem 1.2rem 1.2rem; }
.residential-page .ts-panel-head { display: flex; align-items: center; gap: 0.55rem; font-family: 'JetBrains', monospace; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.12em; color: var(--ink); margin-bottom: 0.4rem; }
.residential-page .ts-panel-head em { font-style: normal; font-weight: 400; color: var(--muted); font-size: 0.66rem; }
.residential-page .ts-panel-head .dot { width: 8px; height: 8px; border-radius: 50%; flex: 0 0 8px; }
.residential-page .ts-core .ts-panel-head .dot { background: var(--accent); box-shadow: 0 0 10px rgba(254,44,85,0.9); }
.residential-page .ts-sup .ts-panel-head .dot { background: var(--accent2); box-shadow: 0 0 10px rgba(37,244,238,0.9); }
.residential-page .ts-item { display: flex; align-items: center; gap: 0.8rem; background: var(--bg3); border: 1px solid var(--rule); border-radius: 10px; padding: 0.6rem 0.85rem; margin-top: 0.6rem; transition: border-color 0.2s, transform 0.2s; }
.residential-page .ts-item:hover { transform: translateY(-2px); }
.residential-page .ts-core .ts-item:hover { border-color: rgba(254,44,85,0.55); }
.residential-page .ts-sup .ts-item:hover { border-color: rgba(37,244,238,0.55); }
.residential-page .ts-item i { width: 36px; height: 36px; flex: 0 0 36px; display: flex; align-items: center; justify-content: center; border-radius: 9px; font-size: 0.95rem; }
.residential-page .ts-core .ts-item i { color: var(--accent); background: rgba(254,44,85,0.13); }
.residential-page .ts-sup .ts-item i { color: var(--accent2); background: rgba(37,244,238,0.13); }
.residential-page .ts-item strong { display: block; font-size: 0.92rem; line-height: 1.3; }
.residential-page .ts-item span { display: block; font-family: 'JetBrains', monospace; font-size: 0.66rem; color: var(--muted); letter-spacing: 0.02em; }
.residential-page .ts-linker { position: relative; height: 64px; }
.residential-page .ts-linker .l-drop { position: absolute; top: 0; left: 25%; width: 0; height: 26px; border-left: 2px solid rgba(254,44,85,0.65); }
.residential-page .ts-linker .l-dash { left: 75%; border-left: 2px dashed rgba(37,244,238,0.6); }
.residential-page .ts-linker .l-tag { position: absolute; top: 3px; left: calc(75% + 10px); font-family: 'JetBrains', monospace; font-size: 0.62rem; color: var(--accent2); background: var(--bg2); border: 1px solid var(--rule); padding: 0.12rem 0.5rem; border-radius: 99px; white-space: nowrap; }
.residential-page .ts-linker .l-bus { position: absolute; top: 26px; left: 25%; width: 50%; height: 2px; background: linear-gradient(90deg, rgba(254,44,85,0.6), rgba(37,244,238,0.6)); border-radius: 2px; }
.residential-page .ts-linker .l-stem { position: absolute; top: 26px; left: 50%; width: 0; height: 38px; border-left: 2px solid rgba(37,244,238,0.75); }
.residential-page .ts-hub { display: flex; align-items: center; justify-content: center; gap: 0.6rem; width: max-content; margin: 0 auto; padding: 0.85rem 2.4rem; background: linear-gradient(135deg, rgba(254,44,85,0.16), rgba(37,244,238,0.14)), var(--bg2); border: 1px solid var(--accent2); border-radius: 99px; font-family: 'JetBrains', monospace; font-weight: 700; font-size: 1.02rem; letter-spacing: 0.04em; box-shadow: 0 0 28px rgba(37,244,238,0.18), 0 6px 24px rgba(0,0,0,0.4); }
.residential-page .ts-hub i { color: var(--accent); font-size: 1.1rem; }
.residential-page .ts-stem2 { width: 0; height: 34px; margin: 0 auto; border-left: 2px solid rgba(37,244,238,0.75); }
.residential-page .ts-goal { display: flex; flex-direction: column; align-items: center; gap: 0.15rem; max-width: 520px; margin: 0 auto; padding: 0.85rem 1.4rem; text-align: center; background: var(--bg2); border: 1px solid var(--accent); border-radius: 14px; box-shadow: 0 0 24px rgba(254,44,85,0.12); }
.residential-page .ts-goal strong { font-size: 1rem; letter-spacing: 0.02em; }
.residential-page .ts-goal span { font-family: 'JetBrains', monospace; font-size: 0.66rem; color: var(--muted); letter-spacing: 0.06em; }
@media (max-width: 768px) {
  .residential-page .ts-grid { grid-template-columns: 1fr; }
  .residential-page .ts-linker { display: none; }
  .residential-page .ts-hub { margin-top: 1.4rem; }
}
.residential-page figcaption { font-size: 0.82rem; color: var(--muted); margin-top: 0.6rem; font-style: italic; }
.residential-page .chart-figure figcaption { font-size: 0.9rem; color: var(--ink); font-weight: 600; font-style: normal; margin-bottom: 0.75rem; }
/* ============== CALLOUTS ============== */
.residential-page .callout {
  background: linear-gradient(135deg, rgba(254,44,85,0.08), rgba(37,244,238,0.06));
  border: 1px solid var(--rule); border-radius: 10px;
  padding: 1rem 1.2rem; margin: 1.5rem 0;
}
.residential-page .callout .label {
  display: inline-block; font-family: 'JetBrains', monospace;
  font-size: 0.7rem; color: var(--bg); background: var(--accent2);
  padding: 0.2rem 0.6rem; border-radius: 4px; margin-bottom: 0.5rem;
  letter-spacing: 0.08em;
}
.residential-page .callout strong { color: var(--accent2); }
/* ============== POLICY NEWS（后台资讯联动） ============== */
.residential-page .policy-news {
  background: var(--bg2); border: 1px solid var(--rule); border-radius: 10px;
  padding: 1.2rem 1.5rem; margin: 1.5rem 0 0;
}
.residential-page .policy-news h3 {
  font-family: 'JetBrains', monospace; font-size: 0.85rem; color: var(--accent2);
  letter-spacing: 0.08em; margin: 0 0 0.8rem;
  display: flex; align-items: center; gap: 0.5rem;
}
.residential-page .policy-news ol { list-style: none; margin: 0; padding: 0; }
.residential-page .policy-news li { border-bottom: 1px dashed var(--rule); }
.residential-page .policy-news li:last-child { border-bottom: none; }
.residential-page .policy-news li a {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  padding: 0.55rem 0.25rem; color: var(--muted); font-size: 0.92rem;
  transition: color 0.2s;
}
.residential-page .policy-news li a:hover { color: var(--accent2); text-decoration: none; }
.residential-page .policy-news time {
  font-family: 'JetBrains', monospace; font-size: 0.72rem; color: var(--accent);
  flex: none;
}
.residential-page .policy-news .more {
  display: inline-flex; align-items: center; gap: 0.4rem;
  margin-top: 0.8rem; font-size: 0.85rem; color: var(--accent2);
}
/* ============== STEPS ============== */
.residential-page .steps { counter-reset: step; list-style: none; padding: 0; }
.residential-page .steps li {
  counter-increment: step;
  position: relative; padding: 0.8rem 0 0.8rem 3.2rem;
  border-left: 2px solid var(--rule);
  margin-left: 0.8rem;
}
.residential-page .steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute; left: -1.3rem; top: 0.8rem;
  width: 2.2rem; height: 2.2rem; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--accent);
  color: var(--accent); font-family: 'JetBrains', monospace;
  font-weight: 700; font-size: 0.85rem;
  display: flex; align-items: center; justify-content: center;
}
.residential-page .steps li strong { display: block; color: var(--accent2); margin-bottom: 0.2rem; }
/* ============== CHECKLIST ============== */
.residential-page .checklist { list-style: none; padding-left: 0; }
.residential-page .checklist li {
  padding: 0.5rem 0 0.5rem 2rem; position: relative;
  border-bottom: 1px dashed var(--rule);
}
/* 清单勾选：CSS 细线勾，替代 '☐' 字符（该字符在部分字体下显示为空心方框） */
.residential-page .checklist li::before {
  content: ''; position: absolute; left: 4px; top: 1.12rem;
  width: 11px; height: 6px; border-left: 1.5px solid var(--accent2);
  border-bottom: 1.5px solid var(--accent2);
  transform: rotate(-45deg);
}
.residential-page .checklist li:last-child { border-bottom: none; }
/* ============== SOURCES（正文栏内的来源区，不单独成块） ============== */
.residential-page .sources-footer { margin: 3.5rem 0 0; padding: 0; background: none; border: 0; }
.residential-page .sources-footer .sources-wrap { max-width: 100%; margin: 0; }
/* 来源区默认折叠：原生 details/summary，禁用 JS 仍可展开 */
.residential-page .sources-footer .sources-fold { max-width: 100%; }
.residential-page .sources-footer .sources-summary {
  display: flex; align-items: center; gap: 0.5rem;
  min-height: 44px; margin: 0; padding: 0 0 0.6rem;
  font-family: 'Bricolage', sans-serif; font-size: 1.1rem; font-weight: 600;
  color: var(--ink); border-bottom: 1px solid var(--rule);
  cursor: pointer; list-style: none; user-select: none;
}
.residential-page .sources-footer .sources-summary::-webkit-details-marker { display: none; }
.residential-page .sources-footer .sources-summary::marker { content: ''; }
.residential-page .sources-footer .sources-summary:focus-visible {
  outline: 2px solid var(--accent2); outline-offset: 4px; border-radius: 4px;
}
.residential-page .sources-footer .sources-title { display: flex; align-items: center; gap: 0.55rem; min-width: 0; }
/* 细线图标：内联 SVG，无字体依赖，不会出现方框 */
.residential-page .sources-footer .sources-icon {
  flex: 0 0 auto; width: 18px; height: 18px;
  fill: none; stroke: currentColor; stroke-width: 1.3;
  stroke-linecap: round; stroke-linejoin: round;
}
/* chevron：CSS 绘制的 9px 折角，收起朝下、展开朝上 */
.residential-page .sources-footer .sources-chevron {
  flex: 0 0 auto; margin-left: auto;
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
}
.residential-page .sources-footer .sources-chevron::before {
  content: ''; width: 9px; height: 9px;
  border-right: 2px solid var(--accent2); border-bottom: 2px solid var(--accent2);
  transform: rotate(45deg);
  transition: transform 0.18s ease;
}
.residential-page .sources-fold[open] .sources-chevron::before { transform: rotate(225deg); }
.residential-page .sources-footer .sources { padding-top: 1.5rem; }
.residential-page .sources-footer .sources ol {
  padding-left: 1.2rem; font-size: 0.85rem; color: var(--muted);
}
.residential-page .sources-footer .sources li {
  margin-bottom: 0.6rem; line-height: 1.5;
  border-radius: 4px; outline: 1px solid transparent; outline-offset: 3px;
  transition: background 0.2s ease, outline-color 0.2s ease;
  scroll-margin-top: 90px;
}
.residential-page .sources-footer .sources li.is-cite-flash {
  background: rgba(254, 44, 85, 0.1); outline-color: rgba(254, 44, 85, 0.38);
}
.residential-page .sources-footer .sources .src-title { color: var(--ink); display: block; margin-bottom: 0.15rem; }
.residential-page .sources-footer .sources .src-url {
  display: block; font-size: 0.78rem; color: var(--accent2);
  word-break: break-all; overflow-wrap: anywhere; font-family: 'JetBrains', monospace;
}
.residential-page .sources-footer .copyright {
  text-align: center; margin: 1.5rem 0 0;
  font-size: 0.85rem; font-family: 'JetBrains', monospace;
}
/* ============== RESPONSIVE ============== */
@media (max-width: 1024px) {
  .residential-page .toc-wrap { display: none; }
  .residential-page main { margin-left: 0; padding: 0 1.5rem 4rem; max-width: 900px; }
}
@media (max-width: 768px) {
  .residential-page .hero {
    padding: 3.5rem 1rem 2.5rem;
    background:
      linear-gradient(180deg, rgba(11,11,15,0) 44%, rgba(11,11,15,0.5) 60%, rgba(11,11,15,0.5) 86%, rgba(11,11,15,0) 98%),
      linear-gradient(180deg, rgba(11,11,15,0.74) 0%, rgba(11,11,15,0.68) 34%, rgba(11,11,15,0.56) 60%, rgba(11,11,15,0.46) 82%, rgba(11,11,15,0.4) 100%),
      linear-gradient(90deg, rgba(11,11,15,0.38) 0%, rgba(11,11,15,0.16) 55%, rgba(11,11,15,0.1) 100%),
      url('/TikTok/ResidentialIP/assets/img/residential-hero-desktop-2848-v20261114-3.webp?v=20261114-3') right center / auto 100% no-repeat,
      var(--bg);
    background-origin: border-box;
  }
  .residential-page h1 { font-size: 2rem; }
  .residential-page .grid-2, .residential-page .grid-3 { grid-template-columns: 1fr; }
  .residential-page h2 { font-size: 1.5rem; }
  .residential-page h2 .sec-num { height: 1.5rem; top: -1px; }
  .residential-page main { padding: 0 1rem 3rem; }
  .residential-page .sources-footer { margin-top: 2.8rem; }
  .residential-page .sources-footer .sources-summary { font-size: 1.02rem; gap: 0.4rem; }
  .residential-page .sources-footer .sources-title { gap: 0.45rem; }
  .residential-page .sources-footer .sources-icon { width: 17px; height: 17px; }
}
/* 移动端单独构图：主体落在右下，上缘为暗场 */
@media (max-width: 480px) {
  .residential-page .hero {
    background:
      linear-gradient(180deg, rgba(11,11,15,0) 42%, rgba(11,11,15,0.55) 60%, rgba(11,11,15,0.55) 84%, rgba(11,11,15,0) 98%),
      linear-gradient(180deg, rgba(11,11,15,0.8) 0%, rgba(11,11,15,0.72) 26%, rgba(11,11,15,0.6) 52%, rgba(11,11,15,0.48) 74%, rgba(11,11,15,0.4) 100%),
      linear-gradient(90deg, rgba(11,11,15,0.34) 0%, rgba(11,11,15,0.16) 55%, rgba(11,11,15,0.12) 100%),
      url('/TikTok/ResidentialIP/assets/img/residential-hero-mobile-748-v20261114-3.webp?v=20261114-3') center / cover no-repeat,
      var(--bg);
    background-origin: border-box;
  }
}
/* ============== SITE HEADER & FOOTER INTEGRATION ============== */
.residential-page .topbar {
  background: rgba(11, 11, 15, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: transparent;
}
.residential-page .topbar-search {
  background: var(--bg3);
  border-color: var(--rule);
}
.residential-page .topbar-search:focus-within {
  border-color: rgba(37, 244, 238, 0.5);
  box-shadow: 0 0 0 3px rgba(37, 244, 238, 0.1);
}
.residential-page .topbar-right a:hover {
  background: rgba(255, 255, 255, 0.05);
}
.residential-page .topbar-right a.active {
  background: rgba(254, 44, 85, 0.15);
  color: var(--accent);
}
.residential-page .topbar-right .btn-reg {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
}
.residential-page .topbar-right .btn-reg:hover {
  box-shadow: 0 4px 16px rgba(254, 44, 85, 0.4);
}
.residential-page .topbar-right .avatar {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
}
.residential-page .topbar-right .avatar:hover {
  box-shadow: 0 0 0 3px rgba(254, 44, 85, 0.3);
}
.residential-page .footer {
  background: var(--bg2);
  border-top-color: var(--rule);
  margin-top: 0;
  padding-top: 2.5rem;
}
.residential-page .footer-section h4 {
  color: var(--accent2);
  font-family: 'Bricolage', sans-serif;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 0.85rem;
}
.residential-page .footer-section ul li a {
  color: var(--muted);
  font-size: 0.85rem;
}
.residential-page .footer-section ul li a:hover {
  color: var(--accent2);
}
.residential-page .footer-logo .dot {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.residential-page .footer-desc {
  color: var(--muted);
}
.residential-page .footer-desc a {
  color: var(--accent2);
}

/* ============== TEXT TONE（正文降亮，标题为最亮层但已压一档） ============== */
.residential-page h1, .residential-page h3 { color: var(--ink); }
.residential-page h2 { color: var(--heading); }
.residential-page strong { color: var(--ink); }
.residential-page td { color: var(--text-table); }
.residential-page figcaption { color: var(--text-table); }
.residential-page .chart-figure figcaption { color: var(--text-table); }
.residential-page .ts-panel-head { color: var(--text-table); }
.residential-page .ts-panel-head em {
  color: var(--text-table);
}
.residential-page .ts-item span, .residential-page .ts-goal span { color: var(--text-table); }
/* 来源区 / 版权：次要文字 */
.residential-page .sources-footer .sources ol,
.residential-page .sources-footer .sources .src-title,
.residential-page .sources-footer .copyright { color: var(--text-dim); }
