/* 搬家知识中心 - 共用样式（浅色主题 / 响应式 / 无外部依赖） */
:root {
  --brand: #ea6512;
  --brand-dark: #c24e08;
  --brand-soft: #fff4ec;
  --brand-line: #ffd9bd;
  --ink: #1f2937;
  --ink-2: #4b5563;
  --ink-3: #6b7280;
  --line: #e6e9ee;
  --bg: #f7f8fa;
  --card: #ffffff;
  --green: #0f8a5f;
  --green-soft: #ecfdf4;
  --shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 8px 24px rgba(16, 24, 40, .05);
  --radius: 12px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Source Han Sans SC", "Noto Sans CJK SC", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--brand-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }

.container { width: min(1160px, calc(100% - 40px)); margin: 0 auto; }

/* ---------- header ---------- */
.site-header {
  background: var(--card);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 20;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; height: 66px;
}
.logo { display: flex; align-items: center; gap: 10px; font-size: 19px; font-weight: 800; color: var(--ink); letter-spacing: .3px; }
.logo:hover { text-decoration: none; }
.logo-mark {
  width: 32px; height: 32px; border-radius: 9px;
  background: linear-gradient(135deg, #ff8a3d, var(--brand));
  display: grid; place-items: center; color: #fff; font-size: 17px; font-weight: 700;
  box-shadow: 0 4px 10px rgba(234, 101, 18, .25);
}
.site-nav { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.site-nav a { color: var(--ink-2); font-size: 14.5px; }
.site-nav a:hover { color: var(--brand-dark); text-decoration: none; }
.nav-cta {
  background: var(--brand); color: #fff !important; padding: 8px 16px;
  border-radius: 8px; font-weight: 600;
}
.nav-cta:hover { background: var(--brand-dark); }

/* ---------- breadcrumb ---------- */
.breadcrumb { font-size: 13.5px; color: var(--ink-3); padding: 18px 0 0; }
.breadcrumb a { color: var(--ink-3); }
.breadcrumb a:hover { color: var(--brand-dark); }
.breadcrumb .sep { margin: 0 8px; color: #c3c9d2; }
.breadcrumb .current { color: var(--ink-2); }

/* ---------- layout ---------- */
.layout {
  display: grid; grid-template-columns: minmax(0, 1fr) 286px;
  gap: 32px; align-items: start; padding: 26px 0 64px;
}
.paper {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 40px 44px 48px;
}
.paper--hub { padding: 44px 48px 52px; }

/* ---------- article head ---------- */
.badge {
  display: inline-block; background: var(--brand-soft); color: var(--brand-dark);
  border: 1px solid var(--brand-line); border-radius: 999px;
  font-size: 13px; font-weight: 600; padding: 3px 12px; line-height: 1.7;
}
h1 {
  font-size: 32px; line-height: 1.42; margin: 16px 0 14px;
  letter-spacing: -.3px; color: #16202e;
}
.post-meta { color: var(--ink-3); font-size: 13.5px; display: flex; flex-wrap: wrap; gap: 8px 18px; }
.post-meta span { display: inline-flex; align-items: center; gap: 5px; }
.lead {
  background: var(--brand-soft); border-left: 3px solid var(--brand);
  border-radius: 0 8px 8px 0; padding: 16px 20px; margin: 26px 0 8px;
  color: #5a4636; font-size: 15.5px; line-height: 1.85;
}
.divider { height: 1px; background: var(--line); margin: 26px 0 8px; }

/* ---------- typography ---------- */
.content h2 {
  font-size: 22px; line-height: 1.5; margin: 42px 0 16px;
  padding-left: 14px; border-left: 4px solid var(--brand); color: #16202e;
  scroll-margin-top: 90px;
}
.content h3 {
  font-size: 17.5px; margin: 28px 0 10px; color: #243044; line-height: 1.6;
}
.content p { margin: 0 0 16px; color: #374151; }
.content ul, .content ol { margin: 0 0 18px; padding-left: 24px; color: #374151; }
.content li { margin: 7px 0; }
.content li::marker { color: var(--brand); }
.content strong { color: #16202e; font-weight: 700; }
.content a { border-bottom: 1px solid var(--brand-line); }
.content a:hover { border-bottom-color: var(--brand); text-decoration: none; }

.checklist { list-style: none; padding-left: 0 !important; }
.checklist li {
  position: relative; padding-left: 28px; margin: 9px 0;
}
.checklist li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  width: 18px; height: 18px; margin-top: 7px;
  border-radius: 5px; background: var(--green-soft); color: var(--green);
  font-size: 12px; font-weight: 800; line-height: 18px; text-align: center;
}

.tbl-wrap { overflow-x: auto; margin: 0 0 22px; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 520px; }
.tbl th, .tbl td { border: 1px solid var(--line); padding: 10px 13px; text-align: left; vertical-align: top; line-height: 1.7; }
.tbl thead th { background: #f3f5f8; color: #243044; font-weight: 700; white-space: nowrap; }
.tbl tbody tr:nth-child(even) { background: #fbfcfd; }
.tbl td:first-child { font-weight: 600; color: #243044; }

.tip, .warn {
  border-radius: 8px; padding: 14px 18px; margin: 20px 0 22px;
  font-size: 14.8px; line-height: 1.8;
}
.tip { background: var(--green-soft); border: 1px solid #c8ecd9; color: #1c5c44; }
.warn { background: #fff7ed; border: 1px solid #fbd9a8; color: #7a4a12; }

/* ---------- faq ---------- */
.faq-section { margin-top: 48px; border-top: 1px solid var(--line); padding-top: 12px; }
.faq-section > h2 { border-left-color: #94a3b8; }
.faq-item { padding: 14px 0 16px; border-bottom: 1px dashed var(--line); }
.faq-item h3 { margin: 0 0 8px; font-size: 16.5px; color: #243044; }
.faq-item h3::before {
  content: "Q"; display: inline-grid; place-items: center;
  width: 21px; height: 21px; border-radius: 6px; background: var(--brand-soft);
  color: var(--brand-dark); font-size: 12px; font-weight: 800; margin-right: 9px;
}
.faq-item p { margin: 0; color: var(--ink-2); font-size: 15px; }

/* ---------- related & cta ---------- */
.related-section { margin-top: 44px; }
.related-section > h2 { font-size: 20px; border: 0; padding-left: 0; margin: 0 0 18px; }
.related-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.related-card {
  display: block; border: 1px solid var(--line); border-radius: 9px;
  padding: 14px 16px; background: #fcfdfe; transition: .18s ease;
}
.related-card:hover { border-color: var(--brand-line); background: var(--brand-soft); text-decoration: none; transform: translateY(-1px); }
.related-card .rc-cat { font-size: 12px; color: var(--brand-dark); font-weight: 600; }
.related-card .rc-title { display: block; color: #243044; font-weight: 650; font-size: 15px; margin-top: 3px; line-height: 1.6; }
.related-card:hover .rc-title { color: var(--brand-dark); }

.cta-box {
  margin-top: 40px; border-radius: 12px; padding: 26px 28px;
  background: linear-gradient(120deg, #fff4ec, #fff9f4);
  border: 1px solid var(--brand-line); display: flex;
  align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
.cta-box h3 { margin: 0 0 4px; font-size: 18px; }
.cta-box p { margin: 0; color: var(--ink-2); font-size: 14.5px; }
.btn {
  display: inline-block; background: var(--brand); color: #fff; font-weight: 650;
  padding: 11px 22px; border-radius: 8px; white-space: nowrap; font-size: 15px;
}
.btn:hover { background: var(--brand-dark); text-decoration: none; }

/* ---------- sidebar ---------- */
.sidebar { position: sticky; top: 88px; display: grid; gap: 16px; }
.side-card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px 20px;
}
.side-card h2 { font-size: 15px; margin: 0 0 12px; color: #243044; font-weight: 700; }
.toc { list-style: none; margin: 0; padding: 0; counter-reset: toc; }
.toc li { counter-increment: toc; margin: 0; }
.toc a {
  display: flex; gap: 9px; font-size: 13.6px; color: var(--ink-2);
  padding: 6px 0; line-height: 1.6; border-bottom: 1px dashed #f0f2f5;
}
.toc li:last-child a { border-bottom: 0; }
.toc a::before { content: counter(toc, decimal-leading-zero); color: #b9c0ca; font-size: 12px; font-variant-numeric: tabular-nums; }
.toc a:hover { color: var(--brand-dark); text-decoration: none; }
.hot-list { list-style: none; margin: 0; padding: 0; }
.hot-list li { font-size: 13.8px; padding: 7px 0; border-bottom: 1px dashed #f0f2f5; line-height: 1.6; }
.hot-list li:last-child { border-bottom: 0; }
.hot-list a { color: var(--ink-2); }
.hot-list a:hover { color: var(--brand-dark); }
.side-cta { background: var(--brand-soft); border-color: var(--brand-line); }
.side-cta h2 { color: var(--brand-dark); }
.side-cta p { font-size: 13.5px; color: #7a5540; margin: 0 0 14px; }

/* ---------- hub page ---------- */
.hub-hero h1 { font-size: 34px; }
.hub-hero .hub-sub { color: var(--ink-2); font-size: 16px; max-width: 760px; margin: 0 0 8px; }
.hub-note {
  display: flex; gap: 10px; align-items: flex-start; background: #f3f6fa;
  border: 1px solid var(--line); border-radius: 9px; padding: 14px 18px;
  font-size: 14.5px; color: var(--ink-2); margin: 26px 0 10px;
}
.hub-section-title {
  font-size: 21px; margin: 40px 0 18px; padding-left: 14px;
  border-left: 4px solid var(--brand); color: #16202e;
}
.article-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.article-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 10px;
  padding: 20px 22px; transition: .18s ease; display: flex; flex-direction: column;
}
.article-card:hover { border-color: var(--brand-line); box-shadow: var(--shadow); transform: translateY(-2px); }
.article-card .ac-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.article-card h3 { margin: 0 0 8px; font-size: 17px; line-height: 1.55; }
.article-card h3 a { color: #1d2a3b; }
.article-card:hover h3 a { color: var(--brand-dark); text-decoration: none; }
.article-card p { color: var(--ink-2); font-size: 14px; line-height: 1.75; margin: 0 0 14px; flex: 1; }
.article-card .ac-foot { font-size: 12.5px; color: var(--ink-3); border-top: 1px solid var(--line); padding-top: 10px; }
.article-card .ac-more { color: var(--brand-dark); font-weight: 600; }

.hub-faq { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 24px; }
.hub-faq .hf-item { border-left: 3px solid var(--brand-line); padding-left: 14px; }
.hub-faq h3 { font-size: 15.5px; margin: 0 0 5px; }
.hub-faq p { font-size: 14px; color: var(--ink-2); margin: 0; }

/* ---------- 栏目页：主题折叠 / 文章索引（可扩展到数百篇） ---------- */
.hub-hint { color: var(--ink-3); font-size: 13.5px; margin: -8px 0 16px; }
.topic-group {
  border: 1px solid var(--line); border-radius: 10px;
  background: var(--card); margin-bottom: 12px; overflow: hidden;
}
.topic-group[open] { border-color: var(--brand-line); }
.topic-summary {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 14px 18px; cursor: pointer; list-style: none;
  font-size: 16px; font-weight: 700; color: #1d2a3b; background: #fbfcfe;
}
.topic-summary::-webkit-details-marker { display: none; }
.topic-summary::after {
  content: "+"; margin-left: auto; font-size: 20px; font-weight: 400;
  line-height: 1; color: var(--brand-dark);
}
.topic-group[open] > .topic-summary::after { content: "\2212"; }
.topic-summary:hover { background: #f4f8ff; }
.topic-summary .ts-desc {
  flex: 1 1 240px; font-size: 13px; font-weight: 400; color: var(--ink-3);
}
.topic-summary .ts-count {
  flex: 0 0 auto; font-size: 12px; font-weight: 600; color: var(--brand-dark);
  background: var(--brand-soft); border-radius: 20px; padding: 3px 11px; white-space: nowrap;
}
.topic-list, .index-list {
  list-style: none; margin: 0; padding: 6px 18px 16px;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px;
}
.topic-list li, .index-list li { border-bottom: 1px dashed #eef1f5; }
.topic-list li a, .index-list li a {
  display: flex; align-items: baseline; gap: 10px; padding: 9px 0;
  font-size: 14px; line-height: 1.5; color: var(--ink-2);
}
.topic-list li a:hover, .index-list li a:hover { color: var(--brand-dark); text-decoration: none; }
.topic-more {
  margin: 2px 18px 16px; padding-top: 8px; border-top: 1px dashed var(--line);
}
.topic-more > summary {
  cursor: pointer; list-style: none; padding: 6px 0; font-size: 13.5px;
  font-weight: 600; color: var(--brand-dark);
}
.topic-more > summary::-webkit-details-marker { display: none; }
.topic-more > summary::before { content: "\FF0B  "; }
.topic-more[open] > summary::before { content: "\FF0D  "; }
.topic-more > .topic-list { padding: 2px 0 0; }
.index-group { margin-top: 22px; }
.index-group > .topic-summary { background: #f7f9fc; font-size: 15px; }
.index-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 20px; }
.index-list li a { font-size: 13.2px; padding: 6px 0; }

/* ---------- footer ---------- */
.site-footer {
  background: #fff; border-top: 1px solid var(--line); padding: 30px 0 40px;
  font-size: 13.5px; color: var(--ink-3);
}
.footer-inner { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-links a { color: var(--ink-3); }
.footer-links a:hover { color: var(--brand-dark); }
.footer-note { margin-top: 12px; font-size: 12.5px; color: #9aa3af; line-height: 1.8; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .layout { grid-template-columns: 1fr; }
  .sidebar { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sidebar .side-card:first-child { grid-column: 1 / -1; }
}
@media (max-width: 700px) {
  .container { width: min(100% - 28px, 1160px); }
  .header-inner { height: auto; padding: 12px 0; flex-direction: column; align-items: flex-start; gap: 10px; }
  .site-nav { gap: 14px; }
  .site-nav a { font-size: 13.5px; }
  .paper, .paper--hub { padding: 26px 20px 34px; }
  h1, .hub-hero h1 { font-size: 25px; }
  .content h2 { font-size: 19.5px; margin-top: 34px; }
  .related-grid, .article-grid, .hub-faq, .sidebar { grid-template-columns: 1fr; }
  .topic-list, .index-list { grid-template-columns: 1fr; }
  .topic-summary { padding: 13px 14px; font-size: 15px; gap: 8px; }
  .topic-summary .ts-desc { flex-basis: 100%; }
  .cta-box { padding: 20px; }
}

/* ---------- print ---------- */
@media print {
  body { background: #fff; font-size: 12pt; }
  .site-header, .breadcrumb, .sidebar, .cta-box, .related-section, .site-footer, .nav-cta { display: none !important; }
  .layout { display: block; padding: 0; }
  .paper { border: 0; box-shadow: none; padding: 0; }
  .content h2 { break-after: avoid; }
  .tbl, .faq-item { break-inside: avoid; }
  a { color: inherit; border: 0; }
}
