:root {
  color-scheme: light;
  --background: #f4f5f7;
  --surface: #ffffff;
  --ink: #1c2738;
  --muted: #667085;
  --line: #dfe3e8;
  --brand: #9b2f2f;
  --brand-dark: #762323;
  --gold: #a88035;
  --soft-gold: #f8f2e7;
  --soft-red: #fff4f2;
  --radius: 8px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--background);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.75;
  letter-spacing: 0;
}
a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; }

.content-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 66px;
  padding: 0 max(16px, calc((100vw - 1040px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(14px);
}

.content-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 900;
}

.content-brand > span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: #efd595;
  font-family: "Songti SC", "SimSun", serif;
  font-size: 20px;
}

.content-brand em {
  color: var(--gold);
  font-size: 12px;
  font-style: normal;
}

.content-topbar nav { display: flex; align-items: center; gap: 18px; font-size: 14px; font-weight: 800; }
.content-topbar nav a.active { color: var(--brand); }

.content-page {
  width: min(920px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0 38px;
}

.content-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 13px;
}

.content-article {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 12px 30px rgba(28, 39, 56, .07);
}

.content-hero {
  padding: clamp(22px, 5vw, 42px);
  border-bottom: 1px solid var(--line);
  background: var(--soft-gold);
}

.content-kicker { margin: 0 0 8px; color: var(--brand); font-size: 14px; font-weight: 900; }
.content-hero h1 { margin: 0; font-family: Georgia, "Songti SC", "SimSun", serif; font-size: 40px; line-height: 1.3; letter-spacing: 0; }
.content-hero time { display: block; margin-top: 14px; color: var(--muted); font-size: 14px; }

.content-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.content-meta span { padding: 5px 10px; border: 1px solid #dfcfac; border-radius: var(--radius); background: #fff; color: #624c23; font-size: 13px; font-weight: 800; }

.content-cover { margin: 0; background: #eceff2; }
.content-cover img { max-height: 580px; object-fit: contain; }
.content-cover figcaption,
.content-gallery figcaption { padding: 7px 10px; color: var(--muted); font-size: 12px; text-align: center; }

.content-section { padding: clamp(20px, 4vw, 34px); border-top: 1px solid var(--line); }
.content-section:first-of-type { border-top: 0; }
.content-section h2 { margin: 0 0 12px; font-size: 21px; letter-spacing: 0; }
.content-section p { margin: 0 0 13px; }
.content-section p:last-child { margin-bottom: 0; }
.content-copy { font-size: 17px; }
.content-note { background: var(--soft-red); }

.content-checks,
.content-steps { margin: 0; padding-left: 24px; }
.content-checks li,
.content-steps li { margin: 8px 0; padding-left: 4px; }

.content-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  border-bottom: 1px solid var(--line);
  background: var(--line);
}
.content-gallery figure { margin: 0; background: var(--surface); }
.content-gallery img { aspect-ratio: 4 / 3; object-fit: contain; background: #f1f2f4; }

.content-actions {
  display: flex;
  gap: 10px;
  padding: 0 clamp(20px, 4vw, 34px) clamp(24px, 4vw, 36px);
}
.content-actions a {
  min-height: 46px;
  padding: 10px 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  font-weight: 900;
}
.content-actions a.primary { border-color: var(--brand); background: var(--brand); color: #fff; }
.content-actions a.primary:hover { background: var(--brand-dark); }

.content-related { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.content-related a { min-height: 46px; padding: 10px 12px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); font-weight: 800; text-align: center; }

.content-footer { padding: 24px 16px 34px; display: flex; justify-content: center; gap: 14px; color: var(--muted); font-size: 13px; }
.content-bottom { display: none; }

@media (max-width: 700px) {
  body { padding-bottom: 64px; }
  .content-topbar { min-height: 58px; }
  .content-brand > span { width: 34px; height: 34px; font-size: 18px; }
  .content-brand strong { font-size: 16px; }
  .content-brand em,
  .content-topbar nav { display: none; }
  .content-page { width: min(100% - 20px, 920px); padding-top: 12px; }
  .content-hero { padding: 22px 18px; }
  .content-hero h1 { font-size: 28px; }
  .content-section { padding: 20px 18px; }
  .content-copy { font-size: 16px; }
  .content-gallery { grid-template-columns: 1fr; }
  .content-actions { padding: 0 18px 24px; }
  .content-actions a { flex: 1; padding-inline: 8px; }
  .content-related { grid-template-columns: 1fr; }
  .content-footer { display: grid; gap: 2px; padding-bottom: 22px; text-align: center; }
  .content-bottom {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 30;
    height: 58px;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    border-top: 1px solid var(--line);
    background: rgba(255, 255, 255, .98);
  }
  .content-bottom a { display: grid; place-items: center; color: var(--muted); font-size: 12px; font-weight: 800; }
  .content-bottom a.active { color: var(--brand); }
}
