/* ============================================================
   ReloGuideHub — shared.css
   Used across: moving-costs, choose-movers, checklist, 
   ============================================================ */
 
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #1a5f7a;
  --primary-light: #2a7f9e;
  --primary-dark: #0f3f52;
  --accent: #f59e0b;
  --accent-hover: #d97706;
  --bg: #f8fafc;
  --white: #ffffff;
  --text: #1e293b;
  --text-light: #64748b;
  --text-lighter: #94a3b8;
  --border: #e2e8f0;
  --green: #10b981;
  --red: #ef4444;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow: 0 4px 14px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 32px rgba(0,0,0,0.12);
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* ===== Base (6/6 pages) ===== */
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
[id] { scroll-margin-top: 84px; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--primary); color: #fff;
  padding: 10px 16px; border-radius: 0 0 8px 0; z-index: 200;
  font-size: 0.9rem; font-weight: 600;
}
.skip-link:focus { left: 0; text-decoration: none; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); border: 0;
}

/* ===== Header (6/6 pages) ===== */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 100;
  box-shadow: var(--shadow-sm);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.logo {
  display: flex; align-items: center; gap: 8px;
  font-weight: 800; font-size: 1.25rem;
  color: var(--primary-dark); letter-spacing: -0.02em; flex-shrink: 0;
}
.logo:hover { text-decoration: none; }
.logo-icon {
  width: 34px; height: 34px;
  background: var(--primary); border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1.1rem; flex-shrink: 0;
}
.nav-links { display: flex; gap: 4px; list-style: none; align-items: center; }
.nav-links a {
  padding: 8px 14px; border-radius: 8px;
  font-size: 0.9rem; font-weight: 500;
  color: var(--text-light); transition: all 0.15s; white-space: nowrap;
}
.nav-links a:hover { background: var(--bg); color: var(--primary); text-decoration: none; }
.nav-links a.active,
.nav-links a[aria-current="page"] { color: var(--primary); font-weight: 600; }
.nav-cta {
  background: var(--primary) !important; color: #fff !important;
  font-weight: 600 !important; padding: 8px 18px !important;
}
.nav-cta:hover { background: var(--primary-dark) !important; }

.header-right { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }

.mobile-toggle {
  display: none; background: none; border: 1px solid var(--border);
  border-radius: 8px; padding: 8px 10px; cursor: pointer;
  font-size: 1.2rem; color: var(--text);
  min-width: 44px; min-height: 44px;
  align-items: center; justify-content: center;
}
.nav-links a.active {
    color: var(--primary);
    font-weight: 600;
}
/* ===== Breadcrumb (6/6 pages) ===== */
.breadcrumb {
  background: var(--white); border-bottom: 1px solid var(--border);
  padding: 12px 0; font-size: 0.83rem; color: var(--text-lighter);
}
.breadcrumb a { color: var(--text-light); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb span { margin: 0 6px; }

/* ===== Page hero (6/6 pages) ===== */
.page-hero {
  background: linear-gradient(160deg, #f0f7fa 0%, #e4f0f5 50%, #f8fafc 100%);
  padding: 40px 0 44px; border-bottom: 1px solid var(--border);
}
.page-hero h1 {
  font-size: 2rem; font-weight: 800;
  color: var(--primary-dark); letter-spacing: -0.03em;
  line-height: 1.2; margin-bottom: 12px; max-width: 780px;
}
.page-hero .lead {
  font-size: 1.05rem; color: var(--text-light);
  max-width: 720px; margin-bottom: 20px; line-height: 1.7;
}
.meta-row {
  display: flex; flex-wrap: wrap; gap: 20px;
  font-size: 0.83rem; color: var(--text-lighter);
}
.meta-row .meta-item { display: flex; align-items: center; gap: 6px; }
.meta-row .meta-item svg {
  width: 16px; height: 16px;
  color: var(--primary-light); flex-shrink: 0;
}

/* ===== Author box (5/6 pages; not used on calculator) ===== */
.author-box {
  display: flex; align-items: center; gap: 14px;
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px 20px;
  margin-top: 24px; max-width: 680px; box-shadow: var(--shadow-sm);
}
.author-avatar {
  width: 48px; height: 48px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 1.1rem; flex-shrink: 0;
}
.author-info strong { display: block; font-size: 0.9rem; font-weight: 700; color: var(--text); }
.author-info strong a { color: var(--text); }
.author-info strong a:hover { color: var(--primary); }
.author-info span { display: block; font-size: 0.8rem; color: var(--text-light); line-height: 1.5; }
.author-info span a { color: var(--primary); font-weight: 600; }
  .header-cta {
      background: var(--primary) !important;
      color: #fff !important;
      font-weight: 600 !important;
      padding: 8px 18px !important;
      border-radius: 8px;
      font-size: 0.9rem;
      white-space: nowrap;
    }
/* ===== TOC (4/6 pages; not used on checklist & calculator) ===== */
.toc {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 22px 26px;
  margin: 32px 0; box-shadow: var(--shadow-sm);
}
.toc h2 {
  font-size: 0.85rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--text-lighter); margin-bottom: 12px;
}
.toc ol {
  list-style: none; counter-reset: toc;
  display: grid; grid-template-columns: 1fr 1fr; gap: 6px 24px;
}
.toc li { counter-increment: toc; }
.toc li a {
  display: flex; align-items: baseline; gap: 8px;
  font-size: 0.9rem; color: var(--text-light);
  padding: 5px 0; border-bottom: 1px solid transparent; transition: color 0.15s;
}
.toc li a::before {
  content: counter(toc, decimal-leading-zero);
  font-weight: 700; color: var(--primary-light);
  font-size: 0.75rem; min-width: 20px; flex-shrink: 0;
}
.toc li a:hover { color: var(--primary); text-decoration: none; }

/* ===== Content sections (6/6 pages) ===== */
.content-section { padding: 24px 0; }
.content-section.alt { background: var(--white); }

.content-section h2 {
  font-size: 1.5rem; font-weight: 800;
  color: var(--primary-dark); letter-spacing: -0.02em;
  margin-bottom: 8px; line-height: 1.3;
}
.content-section .section-sub {
  font-size: 0.95rem; color: var(--text-light);
  margin-bottom: 28px; max-width: 720px;
}
.content-section h3 {
  font-size: 1.1rem; font-weight: 700;
  color: var(--primary-dark); margin: 28px 0 10px;
}
.content-section p {
  font-size: 0.95rem; color: var(--text);
  margin-bottom: 14px; line-height: 1.7; max-width: 760px;
}
.content-section ul, .content-section ol {
  margin: 0 0 18px 22px;
  font-size: 0.95rem; line-height: 1.7;
  color: var(--text); max-width: 760px;
}
.content-section li { margin-bottom: 6px; }
.content-section strong { color: var(--text); }

/* ===== Table (6/6 pages) ===== */
.table-wrap {
  overflow-x: auto; margin: 20px 0 28px;
  border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); -webkit-overflow-scrolling: touch;
}
.cost-table {
  width: 100%; border-collapse: collapse;
  font-size: 0.9rem; min-width: 600px; background: var(--white);
}
.cost-table caption {
  caption-side: top; text-align: left;
  padding: 12px 16px; font-size: 0.8rem;
  color: var(--text-lighter); font-weight: 600;
  letter-spacing: 0.02em; background: #fafbfc;
  border-bottom: 1px solid var(--border);
}
.cost-table thead th {
  background: var(--primary-dark); color: #fff;
  font-weight: 600; font-size: 0.8rem;
  text-transform: uppercase; letter-spacing: 0.04em;
  padding: 12px 16px; text-align: left; white-space: nowrap;
}
.cost-table tbody td {
  padding: 12px 16px; border-bottom: 1px solid var(--border);
  color: var(--text); vertical-align: top;
}
.cost-table tbody tr:last-child td { border-bottom: none; }
.cost-table tbody tr:nth-child(even) { background: #fafbfc; }
.cost-table tbody tr:hover { background: #f0f7fa; }
.cost-table .price { font-weight: 700; color: var(--primary-dark); white-space: nowrap; }

/* ===== Callout (6/6 pages) ===== */
.callout {
  background: #f0f7fa; border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 18px 22px; margin: 24px 0; max-width: 760px;
}
.callout.warning { background: #fef9e7; border-left-color: var(--accent); }
.callout.green   { background: #ecfdf5; border-left-color: var(--green); }
.callout.danger  { background: #fef2f2; border-left-color: var(--red); }
.callout strong {
  display: block; font-size: 0.9rem;
  color: var(--primary-dark); margin-bottom: 4px;
}
.callout p { font-size: 0.88rem; color: var(--text-light); margin: 0; line-height: 1.65; }

/* ===== FAQ (6/6 pages) ===== */
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border); padding: 10px 0; }
.faq-item:first-child { border-top: 1px solid var(--border); }

.faq-q {
  display: flex; justify-content: space-between; align-items: center;
  cursor: pointer; font-weight: 600; font-size: 0.95rem;
  color: var(--text); gap: 12px;
  background: none; border: none; width: 100%; text-align: left;
  font-family: var(--font); padding: 0; line-height: 1.5;
  min-height: 44px;
}
.faq-q:hover { color: var(--primary); }
.faq-q:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.faq-q .arrow {
  font-size: 0.8rem; color: var(--text-lighter);
  transition: transform 0.2s; flex-shrink: 0;
}
.faq-item.open .faq-q .arrow { transform: rotate(180deg); }

.faq-a {
  max-height: 0; overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  font-size: 0.9rem; color: var(--text-light); line-height: 1.65;
}
.faq-item.open .faq-a { max-height: 700px; padding-top: 12px; }

/* ===== Related cards (6/6 pages) ===== */
.related-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px; margin-top: 20px;
}
.related-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s, transform 0.2s;
  text-decoration: none; color: var(--text); display: block;
}
.related-card:hover {
  box-shadow: var(--shadow); transform: translateY(-2px);
  text-decoration: none; color: var(--text);
}
.related-card .emoji { font-size: 1.5rem; margin-bottom: 8px; }
.related-card h4 {
  font-size: 0.95rem; font-weight: 700;
  color: var(--primary-dark); margin-bottom: 4px;
}
.related-card p { font-size: 0.82rem; color: var(--text-light); line-height: 1.5; margin: 0; }
.related-card .tag {
  display: inline-block; font-size: 0.68rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--primary); background: rgba(26,95,122,0.08);
  padding: 2px 8px; border-radius: 10px; margin-top: 10px;
}

/* ===== Footer (6/6 pages) ===== */
.site-footer {
  background: var(--primary-dark); color: rgba(255,255,255,0.75);
  padding: 48px 0 28px; font-size: 0.88rem;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 36px; margin-bottom: 36px;
}
.footer-brand .logo { color: #fff; margin-bottom: 12px; }
.footer-brand p {
  font-size: 0.85rem; line-height: 1.6;
  color: rgba(255,255,255,0.6); max-width: 320px;
}
.footer-coverage {
  font-size: 0.8rem; color: rgba(255,255,255,0.55);
  line-height: 1.6; margin-top: 12px; max-width: 320px;
}
.footer-col h4 {
  color: #fff; font-size: 0.85rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 14px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; }
.footer-col a {
  color: rgba(255,255,255,0.65); font-size: 0.85rem; transition: color 0.15s;
}
.footer-col a:hover { color: #fff; text-decoration: none; }
.footer-col .partner-link { color: rgba(255,255,255,0.55); font-size: 0.8rem; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 22px; display: flex; justify-content: space-between;
  align-items: center; flex-wrap: wrap; gap: 12px;
  font-size: 0.8rem; color: rgba(255,255,255,0.45);
}
.footer-bottom a { color: rgba(255,255,255,0.55); }

/* ===== Responsive (6/6 pages) ===== */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: absolute; top: 64px; left: 0; right: 0;
    background: var(--white); border-bottom: 1px solid var(--border);
    padding: 12px 20px 18px; box-shadow: var(--shadow); gap: 2px;
  }
  .nav-links.open a { padding: 10px 12px; width: 100%; }
  .mobile-toggle { display: inline-flex; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .toc ol { grid-template-columns: 1fr; }
  
}
 
@media (max-width: 600px) {	.header-cta{display:none!important}
  .page-hero h1 { font-size: 1.5rem; }
  .page-hero .lead { font-size: 0.95rem; }
  .content-section { padding: 32px 0; }
  .content-section h2 { font-size: 1.25rem; }
  .related-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .author-box { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 380px) {
  .related-grid { grid-template-columns: 1fr; }
  .page-hero h1 { font-size: 1.3rem; }
}

/* ===== Print (基础规则; 各页可追加) ===== */
@media print {
  body { background: #fff; color: #000; }
  .site-header, .breadcrumb, .site-footer,
  .related-grid, .no-print { display: none !important; }
  .page-hero { padding: 0 0 12px; border: none; background: none; }
  .page-hero h1 { font-size: 20pt; color: #000; }
  .page-hero .lead { font-size: 11pt; color: #333; }
  .content-section { padding: 16px 0; }
  .content-section.alt { background: none; }
  .container { max-width: 100%; padding: 0; }
  a { color: #000; text-decoration: none; }
  .table-wrap { overflow: visible; }
  .cost-table { font-size: 9pt; }
  .callout { page-break-inside: avoid; }
}

/* ===== Reduced motion (6/6 pages) ===== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
  }
}