:root {
  --bg: #f5f2eb;
  --bg-2: #ece6dc;
  --paper: #fcfbf7;
  --ink: #2b2a27;
  --mute: #6b675f;
  --line: #dad3c7;
  --accent: #1e3a5f;
  --accent-hover: #152942;
  --accent-soft: #eaf0f6;
  --warn: #94442a;
  --serif: "Songti SC", "STSong", "Iowan Old Style", Palatino, "Noto Serif CJK SC", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --radius: 4px;
}

*, ::before, ::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: var(--sans);
  font-size: 15.5px;
  line-height: 1.68;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--accent-hover);
}

.wrap {
  width: min(920px, 100% - 48px);
  margin: 0 auto;
}

.wrap-wide {
  width: min(1040px, 100% - 48px);
  margin: 0 auto;
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 50;
}

.site-header .wrap {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px 32px;
  min-height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 18px;
  color: var(--ink);
  text-decoration: none;
}

.brand:hover {
  color: var(--accent);
}

.brand-symbol {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  background: var(--ink);
  color: var(--bg);
  border-radius: var(--radius);
}

.site-nav {
  display: flex;
  gap: 20px;
  font-size: 14px;
}

.site-nav a {
  color: var(--mute);
  text-decoration: none;
  padding: 4px 0;
}

.site-nav a:hover, .site-nav a.is-current {
  color: var(--ink);
  border-bottom: 2px solid var(--ink);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 16px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--bg) !important;
  text-decoration: none !important;
  font-size: 14px;
  font-weight: 500;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn:hover {
  background: var(--accent);
  border-color: var(--accent);
}

.btn-ghost {
  background: transparent;
  color: var(--ink) !important;
  border: 1px solid var(--line);
}

.btn-ghost:hover {
  background: var(--bg-2);
  border-color: var(--ink);
}

/* Hero Section */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  gap: 48px;
  align-items: start;
  padding: 56px 0 40px;
}

.kicker {
  display: inline-block;
  font-size: 13px;
  color: var(--mute);
  margin-bottom: 12px;
  font-family: var(--serif);
  letter-spacing: 0.02em;
}

.hero h1 {
  margin: 0 0 16px;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(28px, 4vw, 38px);
  line-height: 1.3;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.hero-note {
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  padding: 16px 20px;
  font-size: 14.5px;
  color: var(--ink);
  line-height: 1.65;
  margin: 16px 0 20px;
  border-radius: var(--radius);
}

.hero p {
  margin: 0 0 14px;
  color: var(--mute);
  font-size: 14.5px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

/* Device Preview Card in Hero */
.device-preview {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px 14px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.04);
  font-size: 12px;
}

.preview-top {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding-bottom: 8px;
  margin-bottom: 10px;
  font-family: var(--serif);
  font-weight: 600;
}

.preview-status {
  background: var(--bg-2);
  padding: 8px 10px;
  border-radius: 4px;
  margin-bottom: 10px;
  text-align: center;
}

.preview-item {
  border-bottom: 1px dotted var(--line);
  padding: 6px 0;
  display: flex;
  justify-content: space-between;
  color: var(--mute);
}

.preview-item strong {
  color: var(--ink);
}

/* Sections */
.section {
  padding: 52px 0;
}

.section-alt {
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section h2 {
  margin: 0 0 12px;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(24px, 3.2vw, 30px);
  color: var(--ink);
}

.section-lead {
  font-size: 15.5px;
  color: var(--mute);
  margin-bottom: 28px;
  max-width: 740px;
}

/* Check list */
.checklist {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
  border-top: 1px solid var(--line);
}

.checklist li {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  color: var(--ink);
}

.checklist svg {
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--accent);
}

/* Feature 4-grid */
.grid-4 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 24px;
}

.grid-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}

.grid-card h3 {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
}

.grid-card p {
  margin: 0;
  color: var(--mute);
  font-size: 14px;
  line-height: 1.6;
}

/* FAQ List */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 24px;
}

.faq-item {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 24px;
}

.faq-item h3 {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
}

.faq-item p {
  margin: 0;
  color: var(--mute);
  font-size: 14.5px;
  line-height: 1.65;
}

/* Platform Download Cards */
.dl-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 20px;
  margin: 28px 0 40px;
}

.dl-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.dl-card.highlight {
  border: 2px solid var(--accent);
}

.dl-card-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  background: var(--accent);
  color: #fff;
  padding: 2px 8px;
  border-radius: 2px;
  margin-bottom: 12px;
  width: fit-content;
}

.dl-card h3 {
  margin: 0 0 4px;
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 600;
}

.dl-card-sub {
  font-size: 12.5px;
  color: var(--mute);
  margin-bottom: 12px;
}

.dl-card p {
  font-size: 14px;
  color: var(--mute);
  margin: 0 0 20px;
  flex-grow: 1;
}

.dl-card .btn {
  width: 100%;
}

/* Tables */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: var(--radius);
  margin: 24px 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 14px;
}

th {
  background: var(--bg-2);
  color: var(--ink);
  font-family: var(--serif);
  font-weight: 600;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}

td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  color: var(--mute);
}

tr:last-child td {
  border-bottom: none;
}

td strong {
  color: var(--ink);
}

/* Warning Callout */
.callout-warn {
  border: 1px solid var(--line);
  border-left: 4px solid var(--warn);
  background: var(--paper);
  padding: 18px 20px;
  margin: 24px 0;
  border-radius: var(--radius);
}

.callout-warn h4 {
  margin: 0 0 6px;
  color: var(--warn);
  font-size: 15px;
  font-weight: 600;
}

.callout-warn p {
  margin: 0;
  font-size: 14px;
  color: var(--mute);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg);
  padding: 40px 0 56px;
  font-size: 13.5px;
  color: var(--mute);
}

.site-footer .wrap {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-nav a {
  color: var(--mute);
  text-decoration: none;
}

.footer-nav a:hover {
  color: var(--ink);
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
  .site-header .wrap {
    grid-template-columns: 1fr auto;
  }
  .site-nav {
    display: none;
  }
  .hero {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .device-preview {
    max-width: 240px;
  }
  .grid-4 {
    grid-template-columns: 1fr;
  }
}
