/* ============================================================
   Protocol 8 — 站点样式
   奶油底色 + 衬线标题 + 单一暖色点缀（Claude × OpenAI 融合风格）
   ============================================================ */

:root {
  --bg: #F5F2EA;
  --bg-alt: #EEEAE0;
  --ink: #1A1915;
  --muted: #6B675E;
  --accent: #C96442;
  --accent-soft: #E08D6D;
  --border: #DDD7C9;
  --serif: "Newsreader", "Noto Serif SC", Georgia, "Songti SC", "SimSun", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
          Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

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

/* ---------- 双语显隐 ---------- */
html[data-lang="zh"] .en { display: none !important; }
html[data-lang="en"] .zh { display: none !important; }

/* ---------- 基础元素 ---------- */
h1, h2, h3 {
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-weight: 500;
  line-height: 1.3;
  margin: 0 0 0.5em;
}

p { margin: 0 0 1em; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; display: block; }

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

section[id], footer[id] { scroll-margin-top: 84px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(245, 242, 234, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 64px;
}

.wordmark {
  font-family: var(--serif);
  font-size: 22px;
  color: var(--ink);
  letter-spacing: 0.01em;
}
.wordmark:hover { text-decoration: none; }
.wordmark-dot { color: var(--accent); }

.site-nav {
  display: flex;
  gap: 28px;
  margin-left: auto;
}

.site-nav a {
  color: var(--ink);
  font-size: 14.5px;
  font-weight: 500;
  opacity: 0.85;
}
.site-nav a:hover { opacity: 1; color: var(--accent); text-decoration: none; }

.lang-switch {
  display: flex;
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
  flex-shrink: 0;
}

.lang-switch button {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 13px;
  padding: 5px 14px;
  cursor: pointer;
  line-height: 1.4;
}

html[data-lang="zh"] .lang-switch [data-setlang="zh"],
html[data-lang="en"] .lang-switch [data-setlang="en"] {
  background: var(--ink);
  color: var(--bg);
}

/* ---------- Hero ---------- */
.hero {
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 48px;
  padding-top: 88px;
  padding-bottom: 88px;
}

.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 22px;
}

.hero h1 {
  font-size: clamp(38px, 4.8vw, 58px);
  letter-spacing: 0.01em;
  line-height: 1.22;
  margin-bottom: 30px;
}

.hero h1 .zh,
.hero h1 .en { display: block; }

.hero h1 .en {
  font-size: 0.78em;
  line-height: 1.28;
  text-wrap: balance;
  max-width: 12em;
}

.slogan-block { margin: 0 0 30px; }

.slogan-block::before {
  content: "";
  display: block;
  width: 56px;
  height: 2px;
  background: var(--accent);
  margin-bottom: 22px;
}

.slogan {
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-style: italic;
  font-weight: 500;
  font-size: clamp(23px, 2.6vw, 30px);
  line-height: 1.35;
  margin: 0;
}

.slogan-sub {
  font-family: var(--serif);
  font-size: clamp(15px, 1.8vw, 19px);
  color: var(--muted);
  letter-spacing: 0.42em;
  margin: 8px 0 0;
}

.lede {
  font-size: 18px;
  color: var(--muted);
  max-width: 34em;
  margin-bottom: 36px;
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  display: inline-block;
  border-radius: 999px;
  padding: 10px 26px;
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.5;
  transition: opacity 0.15s ease, background 0.15s ease;
}
.btn:hover { text-decoration: none; }

.btn-solid {
  background: var(--ink);
  color: var(--bg);
}
.btn-solid:hover { opacity: 0.85; }

.btn-ghost {
  border: 1px solid var(--ink);
  color: var(--ink);
}
.btn-ghost:hover { background: rgba(26, 25, 21, 0.06); }

.hero-art { justify-self: center; width: 100%; max-width: 400px; }
.hero-art svg { width: 100%; height: auto; }

/* ---------- 通用 Section ---------- */
.section {
  padding: 88px 0;
}

.section-alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-head { max-width: 720px; margin-bottom: 52px; }

.section-no {
  font-weight: 600;
  color: var(--accent);
  font-size: 12px;
  letter-spacing: 0.24em;
  margin-bottom: 12px;
}

.section-head h2 { font-size: clamp(28px, 3.4vw, 38px); }

.section-lede { color: var(--muted); font-size: 17px; margin: 0; }

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 64px;
  align-items: start;
}

.about-body p { font-size: 18px; }
.about-body p:last-child { margin-bottom: 0; }

.about-aside {
  border-left: 1px solid var(--border);
  padding-left: 32px;
  display: grid;
  gap: 26px;
}

.aside-item h3 { font-size: 19px; margin-bottom: 6px; }
.aside-item h3 .zh::before,
.aside-item h3 .en::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  margin-right: 10px;
  vertical-align: 2px;
}
.aside-item p { color: var(--muted); font-size: 15px; margin: 0; }

/* ---------- Focus ---------- */
.focus-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.focus-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.focus-card img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-bottom: 1px solid var(--border);
}

.focus-card h3 {
  font-size: 19px;
  margin: 20px 22px 8px;
}
.focus-card h3 small {
  display: block;
  font-size: 13px;
  color: var(--muted);
  font-weight: normal;
  margin-top: 2px;
}

.focus-card p {
  color: var(--muted);
  font-size: 15px;
  margin: 0 22px 22px;
}

/* ---------- Output ---------- */
.output-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.output-card {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 30px 28px;
  display: flex;
  flex-direction: column;
}

.output-icon { margin-bottom: 18px; }
.output-icon svg { width: 44px; height: 44px; }

.output-card h3 {
  font-size: 22px;
  margin-bottom: 10px;
}

.output-card p { color: var(--muted); font-size: 15px; }

.coming-soon {
  margin-top: auto;
  align-self: flex-start;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px dashed var(--border);
  border-radius: 999px;
  padding: 4px 14px;
  margin-bottom: 0 !important;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: #A8A296;
}

.site-footer a { color: var(--accent-soft); }

.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  padding-top: 64px;
  padding-bottom: 40px;
}

.footer-brand .wordmark { color: #F5F2EA; font-size: 26px; margin: 0 0 14px; }

.footer-slogan {
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  color: #CFC9BC;
  margin: 0;
}
.footer-slogan-sub {
  font-family: var(--serif);
  font-size: 14px;
  letter-spacing: 0.3em;
  margin: 4px 0 0;
}

.footer-contact h3 {
  color: #F5F2EA;
  font-size: 17px;
  margin-bottom: 14px;
}
.footer-contact p { margin: 0 0 6px; font-size: 15px; }

.footer-bottom {
  border-top: 1px solid rgba(245, 242, 234, 0.15);
  padding-top: 20px;
  padding-bottom: 28px;
}
.footer-bottom p { font-size: 13px; margin: 0; }

/* ---------- 响应式 ---------- */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; padding-top: 64px; padding-bottom: 64px; }
  .hero-art { max-width: 340px; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-aside { border-left: 0; padding-left: 0; border-top: 1px solid var(--border); padding-top: 32px; }
  .focus-grid, .output-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .site-nav { display: none; }
  .header-inner { gap: 16px; }
  .lang-switch { margin-left: auto; }
  .section { padding: 64px 0; }
  .focus-grid, .output-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
}
