/* ═══════════════════════════════════════════════════════════
   Preteridea — company portal (preteridea.com / preteridea.cn)
   白底明亮风：与产品站 reudex.com（深色玻璃质感）刻意区分——
   公司站是「纸面」，产品站是「桌面」。
   Palette（品牌渐变加深以保白底对比度）: purple #8a4de8 · blue #3b6ef0 · teal #0ea895
   ═══════════════════════════════════════════════════════════ */

@font-face {
  font-family: "Sora";
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url("assets/fonts/sora-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Sora";
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url("assets/fonts/sora-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #ffffff;
  --bg-2: #f7f8fb;
  --panel: #f7f8fb;
  --panel-2: #eef0f5;
  --line: rgba(18, 21, 34, 0.12);
  --line-soft: rgba(18, 21, 34, 0.075);
  --text: #171a24;
  --text-soft: #565c6e;
  --text-faint: #8a90a2;
  --purple: #8a4de8;
  --blue: #3b6ef0;
  --teal: #0ea895;
  --grad: linear-gradient(120deg, var(--purple), var(--blue) 52%, var(--teal));
  --radius: 14px;
  --font: "Sora", "PingFang SC", "Noto Sans SC", "Helvetica Neue", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
::selection { background: rgba(59, 110, 240, 0.18); }

body::before {
  content: "";
  position: fixed; top: 0; left: 0; right: 0; height: 2px;
  background: var(--grad);
  opacity: 0.9;
  z-index: 100;
}

/* ── 通用 ── */
.section { padding: clamp(64px, 11vh, 120px) clamp(20px, 5vw, 48px); max-width: 1080px; margin: 0 auto; }
.section-title {
  font-size: clamp(26px, 3.6vw, 40px);
  font-weight: 800;
  letter-spacing: -0.015em;
  line-height: 1.2;
  margin-bottom: clamp(28px, 5vh, 48px);
}
.section-title.left { text-align: left; }
.section-sub { color: var(--text-soft); max-width: 640px; margin: -16px 0 40px; font-size: 16px; }

/* ── 导航 ── */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(255, 255, 255, 0.82);
  border-bottom: 1px solid var(--line-soft);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px clamp(20px, 5vw, 48px);
  max-width: 1080px; margin: 0 auto;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--text);
  font-weight: 700; font-size: 17px; letter-spacing: 0.01em;
}
.brand-chip { width: 22px; height: 22px; border-radius: 6px; }
.nav-links { display: flex; align-items: center; gap: clamp(16px, 3vw, 32px); }
.nav-links a {
  color: var(--text-soft); text-decoration: none; font-size: 14.5px; font-weight: 500;
  transition: color 0.25s var(--ease);
}
.nav-links a:hover { color: var(--text); }
@media (max-width: 640px) { .nav-links a { display: none; } }

/* ── Hero ── */
.hero {
  padding: clamp(76px, 14vh, 160px) clamp(20px, 5vw, 48px) clamp(48px, 8vh, 90px);
  max-width: 1080px; margin: 0 auto;
  text-align: center;
}
.hero-mark { width: 68px; height: 68px; margin: 0 auto 26px; display: block; border-radius: 16px; }
.eyebrow {
  font-size: 12.5px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-faint); margin-bottom: 18px;
}
h1 {
  font-size: clamp(38px, 6.5vw, 68px);
  font-weight: 800; letter-spacing: -0.02em; line-height: 1.12;
  margin-bottom: 22px;
}
h1 .grad {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.hero-sub {
  color: var(--text-soft); font-size: clamp(15.5px, 2vw, 18px);
  max-width: 620px; margin: 0 auto 34px;
}
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px; border-radius: 99px;
  font-size: 15px; font-weight: 600; text-decoration: none;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}
.btn-primary {
  color: #fff; background: var(--grad);
  box-shadow: 0 6px 24px rgba(59, 110, 240, 0.24);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(59, 110, 240, 0.34); }
.btn-ghost {
  color: var(--text); background: #fff;
  border: 1px solid var(--line);
}
.btn-ghost:hover { border-color: rgba(18, 21, 34, 0.28); transform: translateY(-2px); }

/* ── 产品卡 ── */
.product-grid { display: grid; gap: 22px; }
.product-card {
  display: block; text-decoration: none; color: var(--text);
  background: var(--panel); border: 1px solid var(--line-soft);
  border-radius: var(--radius); padding: clamp(28px, 4vw, 44px);
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease), background 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.product-card:hover {
  border-color: rgba(138, 77, 232, 0.38);
  transform: translateY(-3px);
  background: #fff;
  box-shadow: 0 14px 40px rgba(24, 28, 48, 0.08);
}
.product-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.product-name { font-size: clamp(21px, 2.6vw, 28px); font-weight: 800; letter-spacing: -0.01em; }
.product-tag { font-size: 12.5px; font-weight: 600; color: var(--teal); letter-spacing: 0.06em; }
.product-desc { color: var(--text-soft); margin: 12px 0 18px; max-width: 560px; }
.product-feats { display: flex; gap: 10px; flex-wrap: wrap; }
.feat-chip {
  font-size: 12.5px; font-weight: 600; color: var(--text-soft);
  background: #fff; border: 1px solid var(--line);
  border-radius: 99px; padding: 5px 13px;
}
.product-link { margin-top: 20px; font-weight: 700; font-size: 14.5px; }
.product-link .arr { color: var(--blue); }
.product-card.soon { opacity: 0.72; }
.product-card.soon:hover { transform: none; border-color: var(--line-soft); background: var(--panel); box-shadow: none; }

/* ── 工作室 / 关于 ── */
.studio-cols { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
@media (max-width: 760px) { .studio-cols { grid-template-columns: 1fr; } }
.studio-cols p { color: var(--text-soft); margin-bottom: 16px; }
.studio-cols b { color: var(--text); }
.studio-facts { display: grid; gap: 12px; }
.fact {
  background: var(--panel); border: 1px solid var(--line-soft);
  border-radius: var(--radius); padding: 18px 22px;
}
.fact b { display: block; font-size: 14.5px; margin-bottom: 3px; }
.fact span { font-size: 13.5px; color: var(--text-soft); }

/* ── 词源 ── */
.etym {
  text-align: center; max-width: 720px; margin: 0 auto;
}
.etym .word {
  font-size: clamp(30px, 5vw, 52px); font-weight: 800; letter-spacing: -0.01em;
  background: var(--grad); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  margin-bottom: 14px;
}
.etym p { color: var(--text-soft); }
.etym .say { color: var(--text-faint); font-size: 14px; margin-top: 10px; }

/* ── 联系 ── */
.contact { text-align: center; }
.contact .mail {
  display: inline-block; margin: 6px 0 18px;
  font-size: clamp(18px, 3vw, 26px); font-weight: 700; text-decoration: none;
  background: var(--grad); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.contact .mail:hover { text-decoration: underline; }
.contact p { color: var(--text-soft); }

/* ── 页脚 ── */
footer { border-top: 1px solid var(--line-soft); margin-top: clamp(48px, 8vh, 90px); background: var(--bg-2); }
.footer-inner {
  max-width: 1080px; margin: 0 auto;
  padding: 34px clamp(20px, 5vw, 48px);
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; flex-wrap: wrap;
  color: var(--text-faint); font-size: 13.5px;
}
.footer-inner a { color: var(--text-soft); text-decoration: none; }
.footer-inner a:hover { color: var(--text); }

/* ── 法律页 ── */
.legal-body { max-width: 760px; margin: 0 auto; padding: clamp(48px, 8vh, 90px) clamp(20px, 5vw, 48px); }
.legal-body h1 { font-size: clamp(28px, 4vw, 40px); margin-bottom: 28px; }
.legal-body h2 { font-size: 19px; margin: 30px 0 10px; }
.legal-body p, .legal-body li { color: var(--text-soft); font-size: 15px; margin-bottom: 10px; }
.legal-body a { color: var(--blue); text-decoration: none; }
.legal-body a:hover { text-decoration: underline; }
.legal-body ul { padding-left: 22px; }
