/* Global Styles */
:root {
  --bg: #f5f1e8;
  --paper: #fffdf8;
  --paper-strong: #ffffff;
  --ink: #171717;
  --muted: #5f5b53;
  --line: #d8cfbf;
  --accent: #b6422e;
  --accent-deep: #8f2f20;
  --accent-soft: #f2d7cf;
  --nav-height: 78px;
  --max-width: 1240px;
  --shadow: 0 18px 60px rgba(41, 27, 16, 0.08);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: Georgia, "Times New Roman", "PingFang SC", "Microsoft YaHei", serif;
  color: var(--ink);
  line-height: 1.7;
  background:
    radial-gradient(circle at top left, rgba(182, 66, 46, 0.08), transparent 28%),
    linear-gradient(180deg, #f8f5ee 0%, var(--bg) 100%);
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

img, svg {
  display: block;
  max-width: 100%;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.page-shell {
  min-height: 100vh;
}

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: rgba(255, 251, 244, 0.9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(125, 98, 69, 0.15);
  z-index: 1000;
  display: flex;
  align-items: center;
}

.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.logo {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-links {
  display: flex;
  gap: 26px;
  align-items: center;
}

.nav-item {
  font-size: 15px;
  font-weight: 700;
  color: var(--muted);
  padding: 10px 14px;
  position: relative;
  border-radius: 999px;
  transition: color 0.2s, background-color 0.2s;
}

.nav-item:hover, .nav-item.active {
  color: var(--ink);
  background: rgba(182, 66, 46, 0.08);
}

main {
  padding-top: calc(var(--nav-height) + 26px);
}

.editorial-hero {
  padding: 36px 0 24px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
  align-items: stretch;
}

.hero-panel,
.paper-card,
.stat-block,
.platform-band,
.faq-card,
.quote-card,
.timeline,
.side-note,
.cta-strip,
.compare-table,
.story-panel,
.download-focus,
.checkpoint-card,
.article-shell,
.toc-card,
.feature-slice {
  background: var(--paper);
  border: 1px solid rgba(125, 98, 69, 0.18);
  box-shadow: var(--shadow);
}

.hero-panel {
  padding: 40px;
  min-height: 540px;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  position: relative;
  overflow: hidden;
}

.hero-panel::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px dashed rgba(182, 66, 46, 0.25);
  pointer-events: none;
}

.eyebrow {
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.display-title {
  font-size: clamp(42px, 7vw, 82px);
  line-height: 0.95;
  margin-bottom: 18px;
  max-width: 9ch;
}

.lead {
  max-width: 38rem;
  color: var(--muted);
  font-size: 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 24px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  outline: none;
  font-family: inherit;
}

.btn-primary {
  background-color: var(--accent);
  color: #fff7f3;
}

.btn-primary:hover:not(:disabled) {
  background-color: var(--accent-deep);
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(182, 66, 46, 0.22);
}

.btn-large {
  font-size: 17px;
  padding: 16px 30px;
}

.btn-outline {
  background-color: transparent;
  border: 1px solid rgba(125, 98, 69, 0.3);
  color: var(--ink);
}

.btn-outline:hover {
  background-color: rgba(182, 66, 46, 0.06);
  border-color: var(--accent);
}

.btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  background-color: var(--muted);
}

.hero-aside {
  display: grid;
  gap: 24px;
}

.section-title {
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.05;
  margin-bottom: 24px;
}

.paper-card {
  padding: 30px;
}

.paper-card h3,
.story-panel h3,
.download-focus h3,
.faq-card h3,
.quote-card h3,
.toc-card h3,
.side-note h3 {
  font-size: 22px;
  margin-bottom: 12px;
}

.paper-card p,
.story-panel p,
.download-focus p,
.faq-card p,
.quote-card p,
.side-note p,
.article-shell p,
.checkpoint-card p,
.platform-band p,
.feature-slice p {
  color: var(--muted);
}

.kicker-list {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.kicker-item {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 14px;
  align-items: start;
  padding-top: 14px;
  border-top: 1px solid rgba(125, 98, 69, 0.18);
}

.kicker-num {
  color: var(--accent);
  font-size: 13px;
  letter-spacing: 0.16em;
}

.mosaic-section,
.story-section,
.download-layout,
.article-layout,
.faq-section,
.platform-stream,
.comparison-section,
.cta-section {
  padding: 28px 0 24px;
}

.mosaic-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr 0.9fr;
  gap: 24px;
  align-items: stretch;
}

.feature-slice {
  padding: 28px;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.feature-icon {
  width: 54px;
  height: 54px;
  color: var(--accent);
  margin-bottom: 18px;
}

.platform-stream {
  overflow: hidden;
}

.platform-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.platform-band {
  padding: 26px;
  min-height: 240px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.platform-icon {
  width: 42px;
  height: 42px;
  color: var(--accent);
  margin-bottom: 16px;
}

.story-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 24px;
}

.story-panel,
.download-focus,
.side-note,
.toc-card,
.article-shell,
.faq-card,
.quote-card,
.timeline,
.checkpoint-card,
.compare-table {
  padding: 30px;
}

.timeline {
  display: grid;
  gap: 16px;
}

.timeline-step {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 14px;
  align-items: start;
  padding-top: 16px;
  border-top: 1px solid rgba(125, 98, 69, 0.18);
}

.faq-item {
  border-top: 1px solid rgba(125, 98, 69, 0.18);
  padding: 18px 0 0;
  margin-top: 18px;
}

.faq-question {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--ink);
}

.faq-answer {
  color: var(--muted);
}

.article-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.toc-card {
  position: sticky;
  top: 106px;
}

.toc-list {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.toc-list a {
  color: var(--muted);
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(125, 98, 69, 0.18);
}

.article-shell h2,
.article-shell h3 {
  font-size: 28px;
  margin: 30px 0 14px;
}

.note-grid,
.checkpoint-grid,
.faq-grid,
.download-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.quote-card {
  font-size: 22px;
  line-height: 1.5;
}

.quote-mark {
  font-size: 60px;
  line-height: 1;
  color: var(--accent);
  margin-bottom: 8px;
}

.mini-label {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.download-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
}

.download-focus {
  min-height: 420px;
  display: grid;
  align-content: start;
}

.spec-list,
.marker-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.marker-list li,
.spec-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(125, 98, 69, 0.18);
}

.cta-strip {
  padding: 34px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
}

.compare-table {
  overflow-x: auto;
}

.compare-table table {
  width: 100%;
  border-collapse: collapse;
}

.compare-table th,
.compare-table td {
  text-align: left;
  padding: 14px 0;
  border-bottom: 1px solid rgba(125, 98, 69, 0.18);
}

footer {
  background-color: rgba(255, 251, 244, 0.75);
  padding: 56px 0 28px;
  margin-top: auto;
  font-size: 14px;
  color: var(--muted);
  text-align: center;
  border-top: 1px solid rgba(125, 98, 69, 0.18);
}

.footer-links {
  margin-bottom: 24px;
}

.footer-link {
  margin: 0 12px;
  color: var(--muted);
}

.security-badge {
  display: inline-flex;
  align-items: center;
  background: var(--paper-strong);
  padding: 8px 16px;
  border-radius: 20px;
  margin-bottom: 24px;
  border: 1px solid rgba(125, 98, 69, 0.18);
  font-weight: 500;
  color: var(--accent);
}

.security-icon {
  width: 16px;
  height: 16px;
  margin-right: 8px;
}

/* Spin Animation */
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@media (max-width: 1024px) {
  .hero-grid,
  .mosaic-grid,
  .story-grid,
  .download-layout,
  .article-layout,
  .platform-row,
  .faq-grid,
  .note-grid,
  .checkpoint-grid,
  .download-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .article-layout {
    grid-template-columns: 1fr;
  }

  .toc-card {
    position: static;
  }
}

@media (max-width: 768px) {
  .hero-grid,
  .mosaic-grid,
  .story-grid,
  .download-layout,
  .platform-row,
  .faq-grid,
  .note-grid,
  .checkpoint-grid,
  .download-grid {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    min-height: auto;
    padding: 30px 24px;
  }

  .display-title {
    max-width: none;
  }

  .cta-strip {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-links {
    gap: 10px;
    flex-wrap: wrap;
  }
}

@media (max-width: 480px) {
  .nav-content {
    flex-direction: column;
    gap: 12px;
  }
  .navbar {
    height: auto;
    padding: 14px 0;
  }

  main {
    padding-top: 132px;
  }

  .marker-list li,
  .spec-row,
  .timeline-step,
  .kicker-item {
    grid-template-columns: 1fr;
  }
}
