:root {
  --bg: #fbf6ec;
  --bg-soft: #f4ecdd;
  --ink: #2a2118;
  --muted: #6f6253;
  --accent: #f2c230;
  --accent-deep: #d9a512;
  --line: #e6dac4;
  --card: #fffdf8;
  --radius-lg: 28px;
  --radius-md: 18px;
  --shadow-sm: 0 8px 22px rgba(58, 43, 20, 0.07);
  --shadow-md: 0 22px 48px rgba(58, 43, 20, 0.13);
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

section[id],
tr[id] {
  scroll-margin-top: 96px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
p,
ul,
ol {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

.wrap {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
}

/* header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(251, 246, 236, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 6px 20px rgba(58, 43, 20, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

.brand-logo {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: block;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.brand-name {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand-domain {
  font-size: 11.5px;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-left: auto;
  font-size: 15px;
  color: var(--muted);
}

.site-nav a {
  position: relative;
  padding: 4px 0;
}

.site-nav a:hover {
  color: var(--ink);
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

.site-nav a:hover::after {
  transform: scaleX(1);
}

.nowrap {
  white-space: nowrap;
}

.nav-cta {
  flex: 0 0 auto;
  align-items: center;
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff8ea;
  font-size: 14px;
  font-weight: 600;
  transition: background 0.2s ease;
}

.nav-cta:not([hidden]) {
  display: inline-flex;
}

.nav-cta:hover {
  background: #413324;
}

/* hero */
.hero {
  padding: 60px 0 84px;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 56px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.hero h1 {
  margin-top: 24px;
  font-size: clamp(2.05rem, 3.9vw, 3.3rem);
  line-height: 1.18;
  letter-spacing: -0.01em;
  font-weight: 800;
  text-wrap: balance;
}

.lead {
  margin-top: 22px;
  max-width: 34em;
  color: var(--muted);
  font-size: 16.5px;
  line-height: 1.85;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 30px;
}

.btn {
  align-items: center;
  justify-content: center;
  padding: 14px 26px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease, border-color 0.16s ease;
}

.btn:not([hidden]) {
  display: inline-flex;
}

.btn-primary {
  background: var(--accent);
  color: var(--ink);
  box-shadow: 0 10px 24px rgba(217, 165, 18, 0.28);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(217, 165, 18, 0.34);
}

.btn-ghost {
  border: 1px solid var(--line);
  color: var(--ink);
  background: transparent;
}

.btn-ghost:hover {
  border-color: var(--ink);
}

.hero-note {
  margin-top: 18px;
  font-size: 13.5px;
  color: var(--muted);
}

.hero-panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 28px;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.panel-title {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.panel-count {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-deep);
  background: rgba(242, 194, 48, 0.16);
  border-radius: 999px;
  padding: 4px 10px;
}

.panel-list {
  display: grid;
  gap: 18px;
  margin-top: 20px;
}

.panel-list li {
  display: grid;
  gap: 4px;
}

.panel-key {
  display: inline-block;
  font-size: 15px;
  font-weight: 700;
}

.panel-key::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 8px;
  border-radius: 3px;
  background: var(--accent);
  transform: rotate(45deg) translateY(-1px);
}

.panel-val {
  font-size: 13.5px;
  color: var(--muted);
  padding-left: 16px;
}

/* capability strip */
.strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--card);
}

.strip-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.strip-item {
  padding: 26px 22px;
  border-left: 1px solid var(--line);
}

.strip-item:first-child {
  border-left: 0;
  padding-left: 0;
}

.strip-label {
  display: block;
  font-size: 15px;
  font-weight: 800;
}

.strip-text {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}

/* generic section */
.section {
  padding: 88px 0;
}

.section-tag {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--accent-deep);
}

.section h2,
.download h2 {
  margin-top: 12px;
  font-size: clamp(1.65rem, 2.6vw, 2.25rem);
  line-height: 1.3;
  font-weight: 800;
  text-wrap: balance;
}

.section-lead {
  margin-top: 18px;
  max-width: 40em;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.9;
}

/* channel table */
.table-wrap {
  margin-top: 36px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--card);
  box-shadow: var(--shadow-sm);
}

.channel-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

.channel-table th,
.channel-table td {
  text-align: left;
  vertical-align: top;
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
}

.channel-table thead th {
  background: var(--bg-soft);
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-weight: 700;
}

.channel-table tbody tr:last-child th,
.channel-table tbody tr:last-child td {
  border-bottom: 0;
}

.channel-table tbody th {
  font-weight: 800;
  white-space: nowrap;
  width: 22%;
}

.channel-table td {
  color: var(--muted);
  line-height: 1.8;
}

.cell-key {
  display: none;
}

/* screenshots */
.section-screens {
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.screens-track {
  display: flex;
  justify-content: center;
  gap: 26px;
  margin-top: 44px;
}

.screen {
  flex: 0 0 200px;
  width: 200px;
  aspect-ratio: 9 / 16;
  border-radius: 22px;
  overflow: hidden;
  background: #211a12;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.screen img {
  display: block;
  width: 100%;
  height: auto;
}

/* flow */
.flow-list {
  display: grid;
  gap: 16px;
  margin-top: 40px;
  counter-reset: step;
}

.flow-list li {
  display: flex;
  gap: 22px;
  align-items: flex-start;
  padding: 26px 28px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.flow-num {
  flex: 0 0 auto;
  font-size: 15px;
  font-weight: 800;
  color: var(--accent-deep);
  letter-spacing: 0.08em;
  padding-top: 2px;
}

.flow-body h3 {
  font-size: 17px;
  font-weight: 800;
  line-height: 1.5;
}

.flow-body p {
  margin-top: 6px;
  font-size: 15px;
  color: var(--muted);
  line-height: 1.8;
  max-width: 46em;
}

/* board */
.section-board {
  background: var(--card);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.board-inner {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 64px;
  align-items: center;
}

.board-list {
  display: grid;
  gap: 14px;
}

.board-list li {
  padding: 20px 22px;
  border-radius: var(--radius-md);
  background: var(--bg);
  border: 1px solid var(--line);
}

.board-key {
  display: block;
  font-size: 15px;
  font-weight: 800;
}

.board-text {
  display: block;
  margin-top: 4px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.75;
}

/* faq */
.faq-list {
  margin-top: 36px;
  display: grid;
  gap: 12px;
  max-width: 860px;
}

.faq-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 0 24px;
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  flex: 0 0 auto;
  font-size: 20px;
  font-weight: 700;
  color: var(--accent-deep);
  line-height: 1;
}

.faq-item[open] summary::after {
  content: "–";
}

.faq-item p {
  padding: 0 0 22px;
  font-size: 15px;
  color: var(--muted);
  line-height: 1.85;
  max-width: 46em;
}

/* download */
.download {
  padding: 88px 0 96px;
  background: var(--ink);
  color: #f8f0df;
}

.download .section-tag {
  color: var(--accent);
}

.download-head {
  max-width: 620px;
}

.download-lead {
  margin-top: 16px;
  color: #c8bba6;
  font-size: 15px;
}

.download-list {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.download-list:has(.channel:not([hidden])) {
  margin-top: 36px;
}

.channel {
  flex: 1 1 240px;
  min-width: 0;
  align-items: center;
  gap: 16px;
  padding: 22px;
  border-radius: var(--radius-md);
  background: #342a1e;
  border: 1px solid #4a3c2b;
  color: #f8f0df;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.channel:not([hidden]) {
  display: flex;
}

.channel:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  background: #3d3122;
}

.channel-icon {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: rgba(242, 194, 48, 0.14);
  color: var(--accent);
}

.channel-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.channel-label {
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--accent);
  font-weight: 700;
}

.channel-name {
  font-size: 16px;
  font-weight: 700;
}

.channel-desc {
  font-size: 12.5px;
  color: #b6a892;
  line-height: 1.6;
}

.channel-arrow {
  margin-left: auto;
  font-size: 18px;
  color: var(--accent);
}

/* footer */
.site-footer {
  background: var(--bg);
  padding: 52px 0 28px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--line);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  line-height: 1.4;
}

.footer-brand .brand-domain {
  margin-top: 2px;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  font-size: 14px;
  color: var(--muted);
}

.footer-nav a:hover {
  color: var(--ink);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  padding-top: 20px;
  font-size: 12.5px;
  color: var(--muted);
}

/* responsive */
@media (max-width: 980px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-panel {
    max-width: 620px;
  }

  .board-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .strip-inner {
    grid-template-columns: repeat(2, 1fr);
  }

  .strip-item:nth-child(3) {
    border-left: 0;
    padding-left: 0;
  }

  .strip-item:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 860px) {
  .screens-track {
    justify-content: flex-start;
    overflow-x: auto;
    padding: 4px 2px 14px;
  }
}

@media (max-width: 720px) {
  .wrap {
    padding: 0 20px;
  }

  .header-inner {
    flex-wrap: wrap;
    gap: 10px 16px;
    min-height: 64px;
    padding-top: 12px;
  }

  .brand {
    margin-right: auto;
  }

  .site-nav {
    order: 3;
    flex: 1 1 100%;
    gap: 18px;
    margin-left: 0;
    padding-bottom: 10px;
    overflow-x: auto;
    scrollbar-width: none;
    font-size: 14px;
  }

  .site-nav::-webkit-scrollbar {
    display: none;
  }

  .nav-cta {
    padding: 8px 16px;
    font-size: 13px;
  }

  .hero {
    padding: 36px 0 56px;
  }

  .hero h1 {
    font-size: 1.95rem;
  }

  .lead {
    font-size: 15.5px;
  }

  .hero-panel {
    padding: 22px;
    border-radius: 22px;
  }

  .section {
    padding: 60px 0;
  }

  .section h2,
  .download h2 {
    font-size: 1.55rem;
  }

  .section-lead {
    font-size: 15px;
  }

  .table-wrap {
    margin-top: 26px;
  }

  .channel-table,
  .channel-table tbody,
  .channel-table tr,
  .channel-table th,
  .channel-table td {
    display: block;
    width: 100%;
  }

  .channel-table thead {
    display: none;
  }

  .channel-table tbody tr {
    border-bottom: 1px solid var(--line);
  }

  .channel-table tbody th {
    width: auto;
    padding: 16px 20px 4px;
    font-size: 15.5px;
    white-space: normal;
  }

  .channel-table tbody td {
    padding: 6px 20px;
  }

  .channel-table tbody tr td:last-child {
    padding-bottom: 18px;
  }

  .cell-key {
    display: block;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--accent-deep);
    margin-bottom: 2px;
  }

  .screens-track {
    gap: 14px;
    margin-top: 28px;
    scroll-snap-type: x mandatory;
  }

  .screen {
    flex: 0 0 164px;
    width: 164px;
    scroll-snap-align: start;
  }

  .flow-list {
    margin-top: 28px;
  }

  .flow-list li {
    gap: 16px;
    padding: 20px;
  }

  .flow-body h3 {
    font-size: 16px;
  }

  .download {
    padding: 60px 0 68px;
  }

  .download-list {
    margin-top: 28px;
  }

  .channel {
    flex: 1 1 100%;
  }

  .faq-item {
    padding: 0 18px;
  }

  .footer-inner {
    flex-direction: column;
  }
}

@media (max-width: 420px) {
  .brand-name {
    font-size: 17px;
  }

  .site-nav {
    gap: 14px;
  }

  .strip-inner {
    grid-template-columns: 1fr;
  }

  .strip-item {
    border-left: 0;
    padding-left: 0;
  }

  .strip-item + .strip-item {
    border-top: 1px solid var(--line);
  }
}

/* 404 */
.error-main {
  padding: 100px 0 120px;
}

.error-inner {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 48px;
  align-items: center;
}

.error-code {
  font-size: clamp(4.5rem, 12vw, 8rem);
  font-weight: 800;
  line-height: 1;
  color: var(--accent);
  letter-spacing: -0.04em;
}

.error-copy h1 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  line-height: 1.3;
}

.error-copy p {
  margin-top: 14px;
  max-width: 32em;
  color: var(--muted);
}

.error-copy .btn {
  margin-top: 26px;
  background: var(--ink);
  color: #fff8ea;
}

@media (max-width: 720px) {
  .error-main {
    padding: 72px 0 88px;
  }

  .error-inner {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}
