* {
  box-sizing: border-box;
}

:root {
  --bg: #f4efe7;
  --paper: #fffdf9;
  --ink: #1f2430;
  --muted: #6a707c;
  --line: #dfd4c6;
  --accent: #c65c38;
  --accent-deep: #9e4325;
  --accent-soft: #f7d7c9;
  --panel: #fbf6ee;
  --shadow: 0 18px 48px rgba(62, 38, 25, 0.12);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --wrap: 1180px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(198, 92, 56, 0.14), transparent 28%),
    linear-gradient(180deg, #f7f1e8 0%, #f3ede4 100%);
  line-height: 1.7;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

button {
  font: inherit;
}

.container {
  width: min(var(--wrap), calc(100% - 32px));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(12px);
  background: rgba(255, 252, 247, 0.88);
  border-bottom: 1px solid rgba(157, 121, 95, 0.18);
}

.topbar-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: 0.02em;
}

.brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent) 0%, #e28c61 100%);
  color: #fff;
  box-shadow: 0 10px 24px rgba(198, 92, 56, 0.25);
}

.navlist {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.navlist a {
  padding: 10px 16px;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 600;
  transition: 0.25s ease;
}

.navlist a:hover,
.navlist a.on {
  background: #fff;
  color: var(--accent-deep);
  box-shadow: 0 10px 24px rgba(130, 88, 56, 0.14);
}

.hero {
  padding: 54px 0 28px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 26px;
  align-items: stretch;
}

.hero-copy,
.hero-board,
.surface,
.quote-card,
.side-card,
.timeline,
.compare-box,
.cta-card,
.guide-card,
.req-card,
.log-card,
.faq-item,
.article-layout,
.article-card,
.tips-grid .tip-card,
.kicker-row .kicker-card {
  background: rgba(255, 253, 249, 0.88);
  border: 1px solid rgba(132, 101, 77, 0.14);
  box-shadow: var(--shadow);
}

.hero-copy {
  padding: 38px;
  border-radius: var(--radius-xl);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: #fff;
  color: var(--accent-deep);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero h1,
.page-hero h1,
.article-hero h1 {
  margin: 18px 0 14px;
  line-height: 1.15;
  font-size: clamp(34px, 5vw, 58px);
  letter-spacing: -0.04em;
}

.hero p,
.page-hero p,
.article-hero p,
.sec-sub {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
}

.hero-actions,
.cta-actions,
.download-actions,
.article-actions {
  margin-top: 26px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  border: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, #de845f 100%);
  color: #fff;
  box-shadow: 0 18px 28px rgba(198, 92, 56, 0.25);
}

.btn-secondary {
  background: #fff;
  color: var(--ink);
  border: 1px solid rgba(132, 101, 77, 0.18);
}

.btn-ghost {
  background: transparent;
  color: var(--accent-deep);
  border: 1px dashed rgba(198, 92, 56, 0.42);
}

.hero-metrics {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.metric {
  padding: 16px;
  border-radius: 18px;
  background: linear-gradient(180deg, #fff 0%, #faf3ea 100%);
  border: 1px solid rgba(132, 101, 77, 0.12);
}

.metric strong {
  display: block;
  font-size: 28px;
  line-height: 1;
  margin-bottom: 6px;
}

.metric span {
  color: var(--muted);
  font-size: 14px;
}

.hero-board {
  border-radius: var(--radius-xl);
  padding: 28px;
  display: grid;
  gap: 18px;
}

.board-head,
.board-row,
.doc-item,
.feature-row,
.platform-card,
.review-card,
.guide-step,
.version-item,
.sidebar-download,
.keyword-box,
.compare-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.board-head {
  justify-content: space-between;
}

.badge-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 18px 0 0 #efbf6f, 36px 0 0 #7ab8a6;
}

.board-surface {
  background: linear-gradient(180deg, #fff 0%, #f7efe6 100%);
  border: 1px solid rgba(132, 101, 77, 0.12);
  border-radius: 20px;
  padding: 18px;
}

.board-row {
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px dashed rgba(132, 101, 77, 0.16);
}

.board-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.row-title small,
.muted,
.review-card p,
.faq-a,
.req-card p,
.log-card p,
.article-card p,
.tip-card p,
.side-card p,
.sidebar-download p,
.compare-row span,
.compare-row small {
  color: var(--muted);
}

.row-tag {
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  background: var(--accent-soft);
  color: var(--accent-deep);
}

.sec {
  padding: 34px 0;
}

.sec-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.sec-title {
  margin: 0;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.2;
}

.sec-label {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--accent-deep);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 12px;
}

.kicker-row,
.platform-grid,
.review-grid,
.req-grid,
.tips-grid {
  display: grid;
  gap: 18px;
}

.kicker-row {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.kicker-card,
.platform-card,
.review-card,
.tip-card {
  padding: 22px;
  border-radius: 22px;
}

.kicker-card svg,
.platform-card svg,
.side-card svg,
.req-card svg,
.tip-card svg,
.guide-step svg {
  flex: 0 0 auto;
}

.story-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 18px;
}

.surface {
  border-radius: 24px;
  padding: 28px;
}

.doc-list {
  display: grid;
  gap: 14px;
}

.doc-item {
  justify-content: space-between;
  padding: 16px 18px;
  border-radius: 18px;
  background: linear-gradient(180deg, #fff 0%, #f9f3ec 100%);
  border: 1px solid rgba(132, 101, 77, 0.12);
}

.doc-left {
  display: flex;
  gap: 14px;
  align-items: center;
}

.doc-icon,
.icon-shell,
.step-num {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: #fff;
  color: var(--accent-deep);
  border: 1px solid rgba(132, 101, 77, 0.16);
}

.side-stack {
  display: grid;
  gap: 18px;
}

.side-card,
.timeline,
.compare-box,
.cta-card,
.article-card,
.keyword-box,
.sidebar-download {
  border-radius: 24px;
  padding: 24px;
}

.mini-list,
.check-list,
.faq-list,
.log-list,
.keyword-list,
.toc-list {
  display: grid;
  gap: 12px;
}

.mini-item,
.check-list li,
.keyword-list span,
.toc-list a {
  display: flex;
  align-items: center;
  gap: 10px;
}

.check-list,
.toc-list {
  padding: 0;
  list-style: none;
  margin: 16px 0 0;
}

.platform-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.platform-card {
  align-items: flex-start;
  flex-direction: column;
}

.platform-card .btn {
  width: 100%;
  margin-top: auto;
}

.platform-card.featured {
  background: linear-gradient(180deg, #fff6f0 0%, #fff 100%);
  border: 1px solid rgba(198, 92, 56, 0.22);
}

.review-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.review-card {
  flex-direction: column;
  align-items: flex-start;
}

.review-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, var(--accent) 0%, #e29a6a 100%);
}

.stars {
  display: inline-flex;
  gap: 6px;
  color: #f0a94b;
}

.compare-box {
  display: grid;
  gap: 14px;
}

.compare-row {
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px dashed rgba(132, 101, 77, 0.16);
}

.compare-row:last-child {
  border-bottom: 0;
}

.tick,
.cross {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
}

.tick {
  background: rgba(74, 166, 123, 0.15);
  color: #2f7d57;
}

.cross {
  background: rgba(195, 79, 73, 0.12);
  color: #b1443e;
}

.faq-wrap {
  display: grid;
  gap: 14px;
}

.faq-item {
  border-radius: 20px;
  overflow: hidden;
}

.faq-q {
  width: 100%;
  border: 0;
  background: transparent;
  padding: 20px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  text-align: left;
  cursor: pointer;
  font-weight: 700;
  color: var(--ink);
}

.faq-a {
  padding: 0 22px 20px;
  display: none;
}

.faq-item.open .faq-a {
  display: block;
}

.faq-item.open .faq-chevron {
  transform: rotate(180deg);
}

.faq-chevron {
  transition: transform 0.2s ease;
}

.page-hero,
.article-hero {
  padding: 54px 0 20px;
}

.page-hero-inner,
.article-layout {
  display: grid;
  gap: 22px;
}

.page-hero-inner {
  grid-template-columns: 1.05fr 0.95fr;
}

.download-panel,
.guide-card,
.log-card,
.req-card,
.article-card,
.sidebar-download {
  border-radius: 24px;
  padding: 26px;
  background: rgba(255, 253, 249, 0.9);
  border: 1px solid rgba(132, 101, 77, 0.14);
  box-shadow: var(--shadow);
}

.download-panel .btn {
  width: 100%;
}

.download-list,
.guide-steps,
.log-list {
  display: grid;
  gap: 14px;
}

.guide-grid,
.log-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.guide-step {
  align-items: flex-start;
  padding: 16px 0;
  border-bottom: 1px dashed rgba(132, 101, 77, 0.16);
}

.guide-step:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.step-num {
  font-weight: 800;
}

.req-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.version-item {
  align-items: flex-start;
  padding: 14px 0;
  border-bottom: 1px dashed rgba(132, 101, 77, 0.16);
}

.version-item:last-child {
  border-bottom: 0;
}

.version-tag {
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-deep);
  font-size: 12px;
  font-weight: 700;
}

.article-layout {
  grid-template-columns: minmax(0, 1fr) 320px;
  align-items: start;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.article-main {
  display: grid;
  gap: 18px;
}

.article-card h2,
.article-card h3,
.side-card h3,
.surface h3,
.download-panel h3,
.guide-card h3,
.log-card h3,
.keyword-box h3,
.sidebar-download h3,
.compare-box h3,
.cta-card h3 {
  margin-top: 0;
  margin-bottom: 10px;
}

.article-card h2 {
  font-size: 28px;
}

.article-card h3 {
  font-size: 22px;
}

.keyword-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.keyword-list span {
  padding: 10px 12px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(132, 101, 77, 0.12);
  justify-content: center;
}

.sidebar {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 18px;
}

.sidebar-download .btn,
.cta-card .btn {
  width: 100%;
}

.tips-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tip-card {
  display: grid;
  gap: 10px;
}

.cta-card {
  display: grid;
  gap: 12px;
  background: linear-gradient(135deg, #fff6ef 0%, #fffdf9 100%);
}

.site-footer {
  padding: 18px 0 42px;
}

.footer-shell {
  padding: 22px 24px;
  border-radius: 22px;
  background: rgba(255, 253, 249, 0.88);
  border: 1px solid rgba(132, 101, 77, 0.14);
  box-shadow: var(--shadow);
}

.security-line {
  font-weight: 700;
  color: var(--accent-deep);
  margin-bottom: 8px;
}

.footer-copy {
  color: var(--muted);
  font-size: 14px;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 1080px) {
  .hero-grid,
  .story-grid,
  .page-hero-inner,
  .article-layout,
  .guide-grid,
  .log-grid {
    grid-template-columns: 1fr;
  }

  .platform-grid,
  .req-grid,
  .review-grid,
  .kicker-row,
  .tips-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sidebar {
    position: static;
  }
}

@media (max-width: 720px) {
  .topbar-inner,
  .sec-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-copy,
  .hero-board,
  .surface,
  .side-card,
  .download-panel,
  .guide-card,
  .req-card,
  .log-card,
  .article-card,
  .sidebar-download,
  .keyword-box,
  .cta-card,
  .footer-shell {
    padding: 20px;
  }

  .hero-metrics,
  .platform-grid,
  .req-grid,
  .review-grid,
  .kicker-row,
  .tips-grid,
  .keyword-list {
    grid-template-columns: 1fr;
  }

  .navlist {
    width: 100%;
  }

  .navlist a {
    flex: 1 1 auto;
    text-align: center;
  }
}
