@font-face {
  font-family: "Playfair Display";
  src: url("/assets/PlayfairDisplay.ttf") format("truetype");
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #f9f7f3;
  --white: #fffefa;
  --ink: #201d1b;
  --muted: #6b625d;
  --line: #ded8d1;
  --red: #d83440;
  --pink: #fae9e9;
  --serif: "Songti SC", "Noto Serif CJK SC", "Source Han Serif SC", serif;
  --sans: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
figure, h1, h2, h3, p { margin: 0; }
.wrap { width: min(100% - 80px, 1420px); margin-inline: auto; }
.skip-link { position: absolute; left: 12px; top: -80px; z-index: 20; padding: 10px 15px; background: var(--ink); color: white; }
.skip-link:focus { top: 10px; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 4px; }

.site-header { position: relative; z-index: 2; border-bottom: 1px solid var(--line); background: var(--paper); }
.header-inner { min-height: 88px; display: flex; align-items: center; gap: 42px; }
.brand, .footer-brand { display: inline-flex; align-items: center; gap: 12px; white-space: nowrap; }
.brand span, .footer-brand span { font-family: "Playfair Display", Georgia, serif; font-style: italic; font-weight: 700; font-size: 28px; line-height: 1; }
.brand img, .footer-brand img { flex: 0 0 auto; }
.main-nav { display: flex; align-items: center; gap: 36px; margin-left: auto; }
.main-nav a { font-size: 13px; font-weight: 600; color: #514a45; transition: color .18s ease; }
.main-nav a:hover, .site-footer a:hover { color: var(--red); }
.header-download { display: inline-flex; align-items: center; justify-content: space-between; gap: 28px; min-width: 138px; padding: 13px 16px; border: 1px solid var(--ink); font-size: 13px; font-weight: 700; transition: background .18s ease, color .18s ease; }
.header-download:hover { color: white; background: var(--ink); }
.header-download span, .primary-link span, .download-item a span { font-size: 18px; line-height: .8; }

.hero { padding-top: 90px; }
.hero-copy { display: grid; grid-template-columns: 1.25fr .65fr; gap: 10%; align-items: end; padding-bottom: 64px; }
.hero h1 { font-family: var(--serif); font-size: clamp(58px, 7vw, 112px); line-height: 1.18; font-weight: 600; letter-spacing: -.055em; }
.hero h1 span { color: var(--red); }
.hero-side { max-width: 350px; margin-bottom: 9px; }
.hero-side p { font-size: 17px; line-height: 1.9; color: #514b46; }
.primary-link { display: inline-flex; justify-content: space-between; align-items: center; min-width: 224px; gap: 20px; margin-top: 32px; padding: 17px 20px; color: white; background: var(--red); font-size: 15px; font-weight: 700; transition: background .18s ease, transform .18s ease; }
.primary-link:hover { background: #b72430; transform: translateY(-2px); }
.hero-art { border-top: 1px solid var(--line); padding-top: 22px; }
.hero-art img { width: 100%; height: auto; border: 1px solid #efe4e2; }
.hero-art figcaption { padding-top: 12px; color: var(--muted); font-size: 12px; letter-spacing: .04em; text-align: right; }

.editorial-section, .demo-section { padding-top: 142px; padding-bottom: 142px; }
.section-head { display: grid; grid-template-columns: 140px minmax(0, 1fr) 290px; align-items: end; gap: 35px; padding-bottom: 44px; border-bottom: 1px solid var(--line); }
.section-number { align-self: start; color: var(--red); font: 700 12px/1.4 var(--sans); letter-spacing: .13em; white-space: nowrap; }
.section-head h2, .download-header h2 { font-family: var(--serif); font-size: clamp(42px, 4.6vw, 74px); line-height: 1.26; letter-spacing: -.045em; font-weight: 600; }
.section-head > p { max-width: 310px; padding-bottom: 10px; font-size: 15px; line-height: 1.9; color: var(--muted); }
.feature-row { padding: 60px 0 80px; }
.feature-row + .feature-row { padding-top: 0; }
.feature-copy { display: grid; grid-template-columns: 140px minmax(0, 1fr) 290px; gap: 35px; align-items: end; margin-bottom: 34px; }
.feature-index { color: var(--red); font-size: 13px; font-weight: 700; letter-spacing: .1em; }
.feature-copy h3 { font: 600 clamp(28px, 2.5vw, 40px)/1.45 var(--serif); letter-spacing: -.03em; }
.feature-copy p { max-width: 300px; color: var(--muted); font-size: 14px; line-height: 2; }
.feature-visual { min-width: 0; width: 100%; }
.feature-visual img { display: block; width: 100%; height: auto; border: 1px solid var(--line); background: white; }
.feature-visual figcaption { margin-top: 10px; color: var(--muted); font-size: 11px; letter-spacing: .1em; }
.platform-strip { display: flex; align-items: center; flex-wrap: wrap; gap: 24px; padding-top: 29px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.platform-strip span::before { content: "•"; color: var(--red); padding-right: 13px; }
.platform-strip a { margin-left: auto; font-weight: 700; color: var(--ink); border-bottom: 1px solid currentColor; padding-bottom: 4px; }
.platform-strip a:hover { color: var(--red); }

.ai-section { padding: 125px 0 115px; background: #f6eded; }
.ai-head { border-color: #e6d4d3; }
.ai-art { margin-top: 56px; }
.ai-art img { width: 100%; height: auto; border: 1px solid #ead9d8; }
.ai-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 40px; }
.ai-facts p { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: start; padding-top: 22px; border-top: 1px solid #dcc9c7; }
.ai-facts strong { font-family: var(--serif); font-size: 20px; white-space: nowrap; }
.ai-facts span { padding-top: 3px; color: var(--muted); font-size: 13px; line-height: 1.75; }

.demo-head { grid-template-columns: 140px minmax(0, 1fr) 290px; }
.demo-layout { display: grid; grid-template-columns: 235px minmax(0, 1fr); gap: 52px; margin-top: 54px; }
.demo-tabs { display: flex; flex-direction: column; }
.demo-tab { width: 100%; display: flex; align-items: center; gap: 24px; padding: 18px 10px; background: transparent; color: #706761; border: 0; border-bottom: 1px solid var(--line); text-align: left; cursor: pointer; font-size: 16px; transition: color .18s ease, padding-left .18s ease; }
.demo-tab:first-child { border-top: 1px solid var(--line); }
.demo-tab:hover, .demo-tab.active { color: var(--red); padding-left: 16px; }
.demo-tab span { font-size: 11px; font-weight: 700; letter-spacing: .08em; }
.demo-screen { min-width: 0; }
.demo-screen video { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: contain; background: #eee8e2; border: 1px solid var(--line); }
.demo-caption { display: flex; align-items: baseline; gap: 25px; padding-top: 19px; }
.demo-caption strong { font-family: var(--serif); font-size: 23px; }
.demo-caption p { color: var(--muted); font-size: 13px; line-height: 1.7; }

.download-section { background: var(--ink); color: white; padding: 116px 0 92px; }
.download-header { display: grid; grid-template-columns: 140px minmax(0, 1fr) 290px; gap: 35px; align-items: end; padding-bottom: 43px; }
.download-header .section-number { color: #fb747e; }
.download-header p { color: #cbc4bd; font-size: 14px; line-height: 1.9; padding-bottom: 8px; }
.download-pending { display: flex; justify-content: space-between; align-items: center; padding: 34px 0; border-top: 1px solid #5a5551; border-bottom: 1px solid #5a5551; color: #d6ceca; font-size: 18px; }
.download-pending span { color: #f1858c; }
.download-list { border-top: 1px solid #5a5551; }
.download-item { display: grid; grid-template-columns: minmax(0, 1fr) 170px 220px; gap: 25px; align-items: center; min-height: 140px; padding: 25px 0; border-bottom: 1px solid #5a5551; }
.download-system { color: #f1858c; font: 700 11px/1.4 var(--sans); letter-spacing: .14em; }
.download-item h3 { margin-top: 7px; font: 600 29px/1.2 var(--serif); }
.download-item p { margin-top: 8px; color: #aaa29c; font-size: 12px; }
.download-item a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; background: var(--red); color: white; font-size: 13px; font-weight: 700; transition: background .18s ease; }
.download-item a:hover { background: #f04a55; }
.hash-button { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; padding: 13px 0; color: #d6ceca; background: none; border: 0; cursor: pointer; font-size: 12px; text-align: left; }
.hash-button:hover { color: white; }
.hash-button span { color: #8c8580; font-family: ui-monospace, Consolas, monospace; }
.download-note { max-width: 780px; margin-top: 28px; color: #a9a19a; font-size: 12px; line-height: 1.85; }

.site-footer { display: flex; align-items: center; gap: 36px; min-height: 112px; }
.footer-brand span { font-size: 23px; }
.site-footer p { color: var(--muted); font-size: 12px; }
.site-footer a { margin-left: auto; color: var(--muted); font-size: 12px; }
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 10; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; color: white; background: var(--ink); padding: 12px 18px; font-size: 13px; transition: opacity .2s ease, transform .2s ease; }
.toast.visible { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 1100px) {
  .wrap { width: min(100% - 52px, 1420px); }
  .section-head, .demo-head, .download-header { grid-template-columns: 110px minmax(0, 1fr); }
  .section-head > p, .download-header > p { grid-column: 2; max-width: 620px; }
  .feature-copy { grid-template-columns: 110px minmax(0, 1fr); }
  .feature-copy p { grid-column: 2; max-width: 500px; }
  .ai-facts p { grid-template-columns: 1fr; gap: 6px; }
  .download-item { grid-template-columns: minmax(0, 1fr) 150px 145px; }
}

@media (max-width: 700px) {
  .wrap { width: min(100% - 36px, 1420px); }
  .header-inner { min-height: 68px; gap: 12px; }
  .brand span { font-size: 23px; }
  .brand img { width: 28px; height: 28px; }
  .main-nav { display: none; }
  .header-download { margin-left: auto; min-width: 0; gap: 9px; padding: 10px 11px; font-size: 11px; }
  .hero { padding-top: 64px; }
  .hero-copy { display: block; padding-bottom: 46px; }
  .hero h1 { font-size: clamp(50px, 11vw, 75px); }
  .hero-side { max-width: 450px; margin: 26px 0 0; }
  .hero-side p { font-size: 14px; line-height: 1.85; }
  .primary-link { margin-top: 22px; }
  .hero-art { padding-top: 12px; }
  .hero-art img { width: 100%; min-height: 265px; object-fit: cover; object-position: 48% center; }
  .hero-art figcaption { font-size: 10px; }
  .editorial-section, .demo-section { padding-top: 90px; padding-bottom: 90px; }
  .section-head, .demo-head, .download-header { display: block; padding-bottom: 30px; }
  .section-head h2, .download-header h2 { margin-top: 22px; font-size: clamp(40px, 9vw, 60px); }
  .section-head > p, .download-header > p { margin-top: 18px; padding: 0; font-size: 13px; }
  .feature-row { padding: 40px 0 42px; }
  .feature-row + .feature-row { padding-top: 0; }
  .feature-copy { display: block; margin-bottom: 24px; }
  .feature-copy h3 { margin-top: 17px; font-size: 30px; }
  .feature-copy p { max-width: 500px; margin-top: 12px; }
  .platform-strip { gap: 14px 18px; }
  .platform-strip a { width: 100%; margin-left: 0; margin-top: 8px; border: 0; }
  .ai-section { padding: 82px 0; }
  .ai-art { margin-top: 34px; overflow: hidden; }
  .ai-art img { width: 175%; max-width: none; }
  .ai-facts { display: block; margin-top: 28px; }
  .ai-facts p { display: grid; grid-template-columns: 104px 1fr; gap: 10px; margin-top: 0; padding: 17px 0; }
  .ai-facts strong { font-size: 17px; }
  .demo-layout { display: block; margin-top: 26px; }
  .demo-tabs { flex-direction: row; gap: 9px; overflow-x: auto; padding-bottom: 12px; scrollbar-width: thin; }
  .demo-tab, .demo-tab:first-child { width: auto; min-width: max-content; gap: 10px; padding: 11px 12px; border: 1px solid var(--line); font-size: 13px; }
  .demo-tab:hover, .demo-tab.active { padding-left: 12px; border-color: var(--red); }
  .demo-screen { margin-top: 14px; }
  .demo-caption { display: block; }
  .demo-caption strong { font-size: 20px; }
  .demo-caption p { margin-top: 6px; }
  .download-section { padding: 82px 0 65px; }
  .download-item { grid-template-columns: minmax(0, 1fr) 122px; gap: 10px; min-height: 130px; padding: 21px 0; }
  .download-item h3 { font-size: 24px; }
  .download-item a { padding: 13px 12px; }
  .hash-button { grid-column: 1 / -1; max-width: 300px; padding: 1px 0 0; }
  .site-footer { min-height: 120px; flex-wrap: wrap; gap: 12px 22px; padding-top: 25px; padding-bottom: 25px; }
  .site-footer p { width: calc(100% - 150px); }
  .site-footer a { margin: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
