/* Spirit Gravity Labs — 共享样式 v3
   桌面 55/45 两栏 · 编辑式分隔线 · 大头西贴纸舞台 · 平板/手机响应式 */

/* ===== 颜色、宽度与可访问性基础 ===== */
:root {
  --paper: #f4f0e8;
  --paper-deep: #e8e2d7;
  --ink: #232321;
  --ink-soft: #55534d;
  --muted: #69665f;
  --line: #d5cec1;
  --sage: #819987;
  --sage-dark: #435d4c;
  --blush: #d99b9d;
  --white: #fffdf8;
  --radius: 28px;
  --shadow: 0 24px 70px rgb(49 58 50 / 12%);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  min-width: 320px;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: "Noto Sans SC", -apple-system, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

.wrap { width: min(1180px, calc(100% - 64px)); margin-inline: auto; }

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

a:focus-visible { outline: 3px solid var(--blush); outline-offset: 4px; }

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

/* ===== 顶栏 ===== */
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 24px 0;
}
.logo {
  font-family: "Fraunces", "Noto Serif SC", serif;
  font-size: 20px;
  font-weight: 400;
  letter-spacing: -0.02em;
}
.logo i { font-style: italic; color: var(--sage-dark); }
.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 4px 24px;
}
.nav-links a,
.button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  font-size: 14px;
  color: var(--ink-soft);
  transition: color 0.2s ease;
}
.nav-links a:hover { color: var(--ink); }

/* ===== Eyebrow 小标 ===== */
.eyebrow {
  font-family: "Fraunces", "Noto Serif SC", serif;
  font-style: italic;
  font-size: 15px;
  color: var(--sage-dark);
  margin-bottom: 16px;
  letter-spacing: 0.01em;
}

/* ===== 首屏 Hero ===== */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(380px, 0.9fr);
  align-items: center;
  gap: clamp(40px, 7vw, 96px);
  min-height: 680px;
  padding: 72px 0 112px;
}
.hero-copy { max-width: 620px; }
.hero h1 {
  font-family: "Fraunces", "Noto Serif SC", serif;
  font-weight: 400;
  font-size: clamp(40px, 5.4vw, 72px);
  line-height: 1.12;
  letter-spacing: -0.025em;
}
.hero h1 em { font-style: italic; color: var(--sage-dark); }
.hero .lede {
  margin-top: 28px;
  font-size: clamp(17px, 1.4vw, 19px);
  line-height: 1.8;
  color: var(--ink-soft);
}
.hero-actions {
  margin-top: 36px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* 按钮 */
.button {
  padding: 0 24px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}
.button-primary {
  background: var(--sage-dark);
  color: var(--white);
}
.button-primary:hover {
  background: var(--sage);
  transform: translateY(-1px);
}
.button-secondary {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}
.button-secondary:hover {
  border-color: var(--sage-dark);
  color: var(--sage-dark);
  transform: translateY(-1px);
}

/* 主体说明小字 */
.entity-line {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 16px;
  line-height: 1.8;
  color: var(--ink-soft);
}

/* 首屏视觉 */
.hero-visual {
  border-radius: 40px;
  overflow: hidden;
  background: var(--paper-deep);
  box-shadow: var(--shadow);
}
.hero-visual img { width: 100%; height: auto; }

/* ===== 通用 section（main 在 .wrap 外，需自定宽度） ===== */
.section {
  width: min(1180px, calc(100% - 64px));
  margin-inline: auto;
  padding: clamp(96px, 10vw, 128px) 0;
  border-top: 1px solid var(--line);
}
.section-heading { margin-bottom: 56px; }
.section h2 {
  font-family: "Fraunces", "Noto Serif SC", serif;
  font-weight: 400;
  font-size: clamp(30px, 3.8vw, 46px);
  line-height: 1.18;
  letter-spacing: -0.025em;
}
.section h2 em { font-style: italic; color: var(--sage-dark); }

/* ===== 编辑式业务列表 ===== */
.editorial-list { margin-top: 8px; }
.editorial-row {
  display: grid;
  grid-template-columns: 72px minmax(180px, 0.55fr) 1fr;
  gap: 24px;
  align-items: baseline;
  padding: 28px 0;
  border-top: 1px solid var(--line);
}
.editorial-row:last-child { border-bottom: 1px solid var(--line); }
.row-index {
  font-family: "Fraunces", "Noto Serif SC", serif;
  font-style: italic;
  font-size: 22px;
  color: var(--sage-dark);
}
.editorial-row h3 {
  font-family: "Fraunces", "Noto Serif SC", serif;
  font-weight: 400;
  font-size: clamp(20px, 1.8vw, 24px);
  color: var(--ink);
}
.editorial-row p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--ink-soft);
}

/* ===== 大头西产品 ===== */
.product-section {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
  gap: clamp(48px, 8vw, 112px);
  align-items: center;
}
.product-copy { max-width: 560px; }
.product-intro {
  margin-top: 24px;
  font-size: clamp(17px, 1.4vw, 19px);
  line-height: 1.8;
  color: var(--ink-soft);
}
.capability-list {
  list-style: none;
  margin-top: 32px;
}
.capability-list li {
  display: grid;
  grid-template-columns: minmax(96px, 0.4fr) 1fr;
  gap: 16px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-soft);
}
.capability-list li:last-child { border-bottom: 1px solid var(--line); }
.capability-list li strong {
  font-family: "Fraunces", "Noto Serif SC", serif;
  font-weight: 400;
  font-size: 17px;
  color: var(--ink);
}
.medical-note {
  margin-top: 24px;
  padding: 16px 20px;
  background: var(--paper-deep);
  border-radius: 16px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-soft);
}
.text-links {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
}
.text-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 16px;
  color: var(--sage-dark);
  border-bottom: 1px solid var(--line);
  padding: 8px 0;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.text-links a:hover { border-color: var(--sage-dark); }

/* 单个内文强调链接（法律/支持/联系页正文中的邮箱与跳转链接） */
.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--sage-dark);
  border-bottom: 1px solid var(--line);
  padding: 8px 0;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.text-link:hover { border-color: var(--sage-dark); }

/* ===== 贴纸舞台 ===== */
.sticker-stage {
  position: relative;
  min-height: 560px;
  border-radius: 40px;
  background: linear-gradient(145deg, var(--paper-deep), var(--white));
  overflow: hidden;
}
.sticker {
  position: absolute;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: transform 0.3s ease;
}
.sticker:hover { transform: scale(1.03); }
.sticker-main { width: 67%; left: 16.5%; top: 9%; }
.sticker-logged { width: 29%; left: 7%; bottom: 8%; transform: rotate(-7deg); }
.sticker-strong { width: 27%; right: 6%; top: 10%; transform: rotate(7deg); }
.sticker-working { width: 29%; right: 8%; bottom: 7%; transform: rotate(5deg); }
.sticker-logged:hover { transform: rotate(-7deg) scale(1.04); }
.sticker-strong:hover { transform: rotate(7deg) scale(1.04); }
.sticker-working:hover { transform: rotate(5deg) scale(1.04); }

/* ===== 公司可信信息 ===== */
.trust-section .eyebrow { margin-bottom: 12px; }
.trust-section h2 {
  max-width: 640px;
  margin-bottom: 40px;
}
.company-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px 48px;
  margin-bottom: 40px;
}
.company-facts > div {
  padding: 20px 0;
  border-top: 1px solid var(--line);
}
.company-facts dt {
  font-size: 13px;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin-bottom: 6px;
}
.company-facts dd {
  font-family: "Fraunces", "Noto Serif SC", serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
}

/* ===== 页脚 ===== */
footer {
  background: var(--ink);
  color: #c5bfb5;
  padding: 64px 0 32px;
  margin-top: 80px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
}
.footer-brand {
  font-family: "Fraunces", "Noto Serif SC", serif;
  font-size: 22px;
  color: #e8e3d9;
  margin-bottom: 8px;
}
.footer-brand i { font-style: italic; color: var(--sage); }
footer p,
footer a {
  font-size: 13px;
  line-height: 1.8;
  color: #9a948a;
}
footer a:hover { color: #e8e3d9; }
.footer-label {
  color: #e8e3d9 !important;
  margin-bottom: 6px !important;
}
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 0; }
.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.footer-legal {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid #3a3833;
  font-size: 12px;
  color: #9a948a;
  line-height: 1.7;
}

/* ===== 法律 / 支持 / 联系信息页 ===== */
.legal-page {
  max-width: 820px;
  padding: 56px 0 80px;
}
.legal-page h1 {
  font-family: "Fraunces", "Noto Serif SC", serif;
  font-weight: 400;
  font-size: clamp(28px, 3.6vw, 42px);
  letter-spacing: -0.025em;
  margin-bottom: 8px;
}
.legal-page .updated {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 32px;
}
.legal-banner {
  background: var(--paper-deep);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 20px 24px;
  margin: 24px 0;
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.8;
  border-radius: 4px;
}
.legal-banner strong { color: var(--ink); font-weight: 500; }
.legal-page h2 {
  font-family: "Fraunces", "Noto Serif SC", serif;
  font-weight: 400;
  font-size: 22px;
  margin: 36px 0 14px;
}
.legal-page h3 {
  font-family: "Fraunces", "Noto Serif SC", serif;
  font-weight: 400;
  font-size: 18px;
  margin: 28px 0 10px;
}
.legal-page p,
.legal-page li {
  font-size: 16px;
  line-height: 1.8;
  color: var(--ink-soft);
  margin-bottom: 12px;
}
.legal-page ul { padding-left: 22px; margin-bottom: 16px; }

/* 联系页（contact.html 使用） */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
  margin-top: 24px;
}
.contact-item {
  padding: 20px 0;
  border-top: 1px solid var(--line);
}
.contact-item:last-child { border-bottom: 1px solid var(--line); }
.contact-item .label {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
.contact-item .value {
  font-family: "Fraunces", "Noto Serif SC", serif;
  font-size: 18px;
  color: var(--ink);
}
.contact-item .value a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  border-bottom: 1px solid var(--line);
  padding: 8px 0;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.contact-item .value a:hover { border-color: var(--sage-dark); color: var(--sage-dark); }

/* ===== 平板 ===== */
@media (max-width: 900px) {
  .wrap { width: min(100% - 48px, 760px); }
  .section { width: min(100% - 48px, 760px); }
  .hero,
  .product-section { grid-template-columns: 1fr; }
  .hero { min-height: auto; padding: 56px 0 88px; }
  .hero-visual { max-width: 640px; }
  .sticker-stage { min-height: 520px; }
  .company-facts { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* ===== 手机 ===== */
@media (max-width: 600px) {
  .wrap { width: calc(100% - 32px); }
  .section { width: calc(100% - 32px); }
  .topbar { align-items: flex-start; gap: 16px; }
  .nav-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px 12px; }
  .nav-links a { min-height: 44px; font-size: 13px; }
  .hero { padding: 40px 0 72px; }
  .hero h1 { font-size: clamp(38px, 12vw, 54px); }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .button { justify-content: center; width: 100%; }
  .section { padding: 72px 0; }
  .editorial-row { grid-template-columns: 42px 1fr; }
  .editorial-row p { grid-column: 2; }
  .sticker-stage { min-height: 360px; }
  .capability-list li { grid-template-columns: 1fr; gap: 4px; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* ===== 减少动效 ===== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
