/* RoamHoliday Blog v2 — Component Styles
   Brand: orange #f97316 (--accent: 249,115,22)
   Theme: warm-white light, NOT dark
*/

/* ── 主题变量 ── */
:root {
  --bg:     #fffbf7;
  --bg-alt: #fff7f0;
  --surf:   #ffffff;
  --accent: 249, 115, 22;
  --amber:  245, 158, 11;
  --text:   #1c1917;
  --muted:  rgba(87,83,78,.65);
  --border: rgba(249,115,22,.14);
}

*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: 'Inter', 'Noto Sans SC', 'PingFang SC', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  background: var(--bg);
  color: var(--text);
  margin: 0;
  overflow-x: hidden;
}

/* ── Hero ── */
.article-hero {
  position: relative;
  overflow: hidden;
  margin-top: 68px;
  min-height: 58vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 1.5rem 4.5rem;
  background-color: #fff7f0;
  background-size: cover;
  background-position: center;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(255,247,237,.85) 0%,
    rgba(255,251,247,.55) 45%,
    rgba(255,251,247,1) 100%
  );
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
  width: 100%;
  padding-top: 6rem;
}
.hero-h1 {
  font-size: clamp(1.75rem, 5vw, 3.25rem);
  font-weight: 900;
  letter-spacing: -.04em;
  line-height: 1.1;
  color: #1c1917;
  margin: 0 0 1.25rem;
}
.hero-h1-sub {
  display: block;
  margin-top: .5rem;
  font-size: clamp(1.125rem, 2.5vw, 1.875rem);
  font-weight: 600;
  letter-spacing: -.025em;
  background: linear-gradient(90deg, rgb(249,115,22), rgb(245,158,11));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Meta chips ── */
.meta-chip {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: .63rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.meta-chip.cat  { background: rgba(249,115,22,.1);  color: rgb(194,65,12); }
.meta-chip.date { background: rgba(87,83,78,.07);   color: rgba(87,83,78,.7); }
.meta-chip.time { background: rgba(245,158,11,.1);  color: rgb(146,64,14); }

/* ── Article layout ── */
.article-wrap  { position: relative; background: var(--bg); }
.bg-alt        { background: var(--bg-alt); border-top: 1px solid rgba(249,115,22,.07); border-bottom: 1px solid rgba(249,115,22,.07); }
.article-inner { max-width: 900px; margin: 0 auto; padding: 0 1.5rem; }

/* ── Lead paragraph ── */
.article-lead {
  font-size: 1.0625rem;
  line-height: 1.9;
  color: #57534e;
  border-left: 3px solid rgba(249,115,22,.6);
  padding: 1.125rem 1.5rem;
  background: rgba(249,115,22,.04);
  border-radius: 0 1.25rem 1.25rem 0;
  margin-bottom: 3rem;
  position: relative;
}
.article-lead::before {
  content: '"';
  position: absolute;
  top: -.75rem;
  left: .75rem;
  font-size: 4rem;
  line-height: 1;
  color: rgba(249,115,22,.15);
  font-family: Georgia, serif;
  pointer-events: none;
}
.article-lead strong { color: #1c1917; font-weight: 600; }

/* ── Section number ── */
.prose-section { margin-bottom: 4rem; }
.sec-num {
  font-size: 4.5rem;
  font-weight: 900;
  letter-spacing: -.06em;
  line-height: 1;
  display: block;
  margin-bottom: -.375rem;
  background: linear-gradient(135deg, rgba(249,115,22,.2) 0%, transparent 70%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Headings ── */
.prose-h2 {
  font-size: clamp(1.2rem, 2.8vw, 1.625rem);
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1.25;
  color: #1c1917;
  margin: 0 0 1.25rem;
  padding-left: .875rem;
  border-left: 3px solid rgb(249,115,22);
  scroll-margin-top: 86px;
}
.prose-h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -.02em;
  color: #292524;
  margin: 1.875rem 0 .5rem;
}

/* ── Prose ── */
.prose-p { font-size: 1rem; line-height: 1.9; color: var(--muted); margin: 0 0 1.125rem; }
.prose-p:last-child { margin-bottom: 0; }
.prose-p strong { color: #1c1917; font-weight: 600; }
.prose-p a { color: rgb(249,115,22); font-weight: 500; text-decoration: none; }
.prose-p a:hover { text-decoration: underline; }
.prose-ul, .prose-ol { padding-left: 1.25rem; margin: 0 0 1.125rem; color: var(--muted); font-size: 1rem; line-height: 1.9; }
.prose-li { margin-bottom: .5rem; }
.prose-li strong { color: #1c1917; font-weight: 600; }

/* ── Steps list ── */
.steps-list { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.steps-list li {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: .875rem 1.125rem;
  border-radius: 1rem;
  margin-bottom: .5rem;
  background: rgba(249,115,22,.03);
  border: 1px solid rgba(249,115,22,.1);
  transition: background .2s, border-color .2s;
}
.steps-list li:hover { background: rgba(249,115,22,.06); border-color: rgba(249,115,22,.2); }
.step-badge {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  flex-shrink: 0;
  background: rgba(249,115,22,.12);
  border: 1px solid rgba(249,115,22,.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .63rem;
  font-weight: 800;
  letter-spacing: .06em;
  color: rgb(249,115,22);
}
.steps-list li p { margin: 0; font-size: .9375rem; line-height: 1.8; color: var(--muted); }
.steps-list li p strong { color: #1c1917; }

/* ── Table ── */
.tbl-wrap {
  overflow-x: auto;
  border-radius: 1.25rem;
  overflow: hidden;
  border: 1px solid rgba(249,115,22,.15);
  margin: 2rem 0;
  box-shadow: 0 4px 24px rgba(249,115,22,.07);
}
.tbl { width: 100%; border-collapse: collapse; font-size: .875rem; }
.tbl thead tr { background: rgba(249,115,22,.08); }
.tbl th {
  text-align: left;
  padding: .8rem 1.125rem;
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgb(180,60,0);
  border-bottom: 1px solid rgba(249,115,22,.18);
}
.tbl td {
  padding: .8rem 1.125rem;
  color: #78716c;
  border-bottom: 1px solid rgba(249,115,22,.06);
  background: #fff;
  line-height: 1.7;
  vertical-align: top;
}
.tbl tr:last-child td { border-bottom: none; }
.tbl tr:hover td { background: rgba(249,115,22,.03); color: #57534e; }
.tbl td strong { color: #1c1917; font-weight: 600; }
.tbl .yes { color: #16a34a; font-weight: 700; }
.tbl .no  { color: #dc2626; font-weight: 600; }
.tbl .ok  { color: #d97706; font-weight: 600; }

/* ── Callout ── */
.callout {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  border-radius: 1.125rem;
  padding: 1.125rem 1.375rem;
  margin: 1.75rem 0;
  border: 1px solid;
}
.callout p { margin: 0; font-size: .9375rem; line-height: 1.8; color: #78716c; }
.callout p strong { color: #1c1917; }
.callout p a { color: rgb(249,115,22); font-weight: 500; text-decoration: none; }
.callout p a:hover { text-decoration: underline; }
.ci { background: rgba(249,115,22,.05); border-color: rgba(249,115,22,.2); }
.cw { background: rgba(245,158,11,.05); border-color: rgba(245,158,11,.25); }
.ci .cico { color: rgb(249,115,22); font-size: 20px; flex-shrink: 0; margin-top: 2px; }
.cw .cico { color: rgb(180,100,0); font-size: 20px; flex-shrink: 0; margin-top: 2px; }

/* ── Pull quote ── */
.pull-quote {
  margin: 2.25rem 0;
  padding: 1.25rem 1.75rem;
  border-left: 4px solid rgb(249,115,22);
  background: linear-gradient(to right, rgba(249,115,22,.06), transparent);
  border-radius: 0 1.25rem 1.25rem 0;
}
.pull-quote p { font-size: 1.0625rem; line-height: 1.8; font-weight: 500; color: #44403c; font-style: italic; margin: 0; }

/* ── FAQ ── */
.faq-item {
  background: #fff;
  border: 1px solid rgba(249,115,22,.1);
  border-radius: 1.125rem;
  overflow: hidden;
  transition: background .2s, border-color .2s;
}
.faq-item + .faq-item { margin-top: .5rem; }
.faq-item.open { border-color: rgba(249,115,22,.3); background: rgba(249,115,22,.02); }
.faq-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.125rem 1.375rem;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
}
.faq-q { font-size: .9375rem; font-weight: 500; color: #292524; line-height: 1.5; }
.faq-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(249,115,22,.08);
  color: rgb(249,115,22);
  font-size: 18px;
  font-weight: 400;
  transition: background .2s, transform .3s cubic-bezier(.16,1,.3,1);
}
.faq-item.open .faq-icon { background: rgba(249,115,22,.15); transform: rotate(45deg); }
.faq-body { max-height: 0; overflow: hidden; transition: max-height .4s cubic-bezier(.4,0,.2,1); }
.faq-item.open .faq-body { max-height: 600px; }
.faq-ans { padding: .25rem 1.375rem 1.375rem; font-size: .9rem; line-height: 1.85; color: #78716c; }
.faq-ans a { color: rgb(249,115,22); font-weight: 500; text-decoration: none; }
.faq-ans a:hover { text-decoration: underline; }

/* ── Breadcrumb ── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: .35rem;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(87,83,78,.5);
}
.breadcrumb a { color: rgba(87,83,78,.5); text-decoration: none; transition: color .18s; }
.breadcrumb a:hover { color: rgb(249,115,22); }
.breadcrumb-sep { color: rgba(87,83,78,.28); }
.breadcrumb-cur { color: rgba(87,83,78,.38); }

/* ── Reveal animation ── */
.reveal-up {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity .85s cubic-bezier(.16,1,.3,1), transform .85s cubic-bezier(.16,1,.3,1);
}
.reveal-up.is-visible { opacity: 1; transform: translateY(0); }

/* ── Bracket label ── */
.bracket-text { color: rgba(87,83,78,.4); font-weight: 600; letter-spacing: .18em; }
.bracket-text::before { content: "[ "; }
.bracket-text::after  { content: " ]"; }

/* ── Responsive ── */
@media (max-width: 640px) {
  .article-hero { padding-bottom: 3rem; }
  .tbl-wrap { border-radius: .875rem; }
  .article-inner { padding: 0 1rem; }
  .hero-h1 { letter-spacing: -.03em; }
}
