/* GoodVibeLab · C 方向：编辑部式的克制排版 + 真实界面 + 丝滑动效 */

:root {
  --bg: #f6f4ef;
  --surface: #fffefb;
  --ink: #16150f;
  --ink-2: #4d4a43;
  --muted: #8b857a;
  --line: #e3ded3;
  --line-2: #d3cbbb;
  --accent: #b8431a;
  --serif: "Iowan Old Style", "Palatino", "Times New Roman", "Songti SC", "Noto Serif SC", serif;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --wrap: 1040px;
  --shadow-1: 0 1px 2px rgba(28, 24, 16, .04), 0 8px 24px -16px rgba(28, 24, 16, .18);
  --shadow-2: 0 2px 6px rgba(28, 24, 16, .06), 0 28px 50px -28px rgba(28, 24, 16, .34);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #131210;
    --surface: #1a1916;
    --ink: #f3f0ea;
    --ink-2: #c6c0b5;
    --muted: #8c8579;
    --line: #2a2824;
    --line-2: #3a3630;
    --accent: #e2632c;
    --shadow-1: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px -16px rgba(0, 0, 0, .6);
    --shadow-2: 0 2px 6px rgba(0, 0, 0, .35), 0 28px 50px -28px rgba(0, 0, 0, .7);
  }
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--serif);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: clamp(18px, 2.6vw, 32px) clamp(20px, 5vw, 60px) 0;
  position: relative;
}
/* 很淡的纸纹：让大面积底色不那么"数字" */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: .35;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.055'/%3E%3C/svg%3E");
}

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; position: relative; z-index: 1; }

/* ---------- 顶栏 ---------- */
header.site {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.brand {
  font-size: clamp(16px, 1.5vw, 19px);
  font-weight: 700;
  letter-spacing: -0.01em;
  cursor: pointer;
  background: none;
  border: none;
  color: var(--ink);
  font-family: inherit;
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
}
.brand .dot { color: var(--accent); }

nav { display: flex; gap: clamp(16px, 2vw, 30px); position: relative; }
.nav-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--sans);
  font-size: 12.5px;
  letter-spacing: .05em;
  color: var(--muted);
  padding: 6px 0;
  transition: color .16s linear;
}
.nav-btn:hover, .nav-btn.active { color: var(--ink); }
.nav-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 3px; }

/* 一条会滑动的下划线，代替每个按钮各自的下划线 */
.nav-ink {
  position: absolute;
  bottom: -1px;
  height: 1px;
  background: var(--accent);
  transition: left .34s var(--ease-out), width .34s var(--ease-out), opacity .2s linear;
  opacity: 0;
}
.nav-ink.on { opacity: 1; }

/* ---------- 舞台 ---------- */
main { flex: 1; padding: clamp(36px, 5.6vw, 76px) 0 clamp(36px, 5vw, 64px); }
.panel { display: none; }
.panel.active { display: block; animation: panelIn .34s var(--ease-out) both; }
@keyframes panelIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

/* ---------- 首页 ---------- */
.eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: .22em;
  color: var(--muted);
  margin-bottom: clamp(18px, 2.4vw, 26px);
}
h1 {
  font-size: clamp(34px, 5vw, 66px);
  font-weight: 600;
  line-height: 1.26;
  letter-spacing: .02em;
  margin-bottom: clamp(22px, 2.6vw, 30px);
}
h1 em { font-style: normal; color: var(--accent); }

/* 每行文字从遮罩里升起 */
.mask { display: block; overflow: hidden; }
.mask > span {
  display: block;
  transform: translateY(108%);
  transition: transform .86s var(--ease-out);
  transition-delay: var(--d, 0s);
}
body.ready .mask > span { transform: none; }

.lede {
  font-size: clamp(15px, 1.45vw, 17.5px);
  color: var(--ink-2);
  max-width: 44ch;
  line-height: 1.95;
}
.lede strong { color: var(--ink); font-weight: 600; }

.fade { opacity: 0; transform: translateY(8px); transition: opacity .5s var(--ease), transform .5s var(--ease); transition-delay: var(--d, 0s); }
body.ready .fade { opacity: 1; transform: none; }

/* 首页底部：现在 */
.now { margin-top: clamp(46px, 5.4vw, 72px); padding-top: 20px; border-top: 1px solid var(--line); }
.now__label { font-family: var(--sans); font-size: 10.5px; letter-spacing: .2em; color: var(--muted); margin-bottom: 14px; }
.now__row { display: flex; flex-wrap: wrap; gap: 8px 30px; }
.now__item {
  display: inline-flex; align-items: baseline; gap: 9px;
  font-size: 15px; color: var(--ink-2); text-decoration: none;
  transition: color .16s linear;
}
.now__item i { font-style: normal; font-family: var(--sans); font-size: 10.5px; letter-spacing: .1em; color: var(--muted); transition: color .16s linear; }
.now__item:hover { color: var(--accent); }
.now__item:hover i { color: var(--accent); }

/* ---------- 小节标题 ---------- */
.sec-head { margin-bottom: clamp(24px, 3vw, 36px); }
.sec-title { font-size: clamp(22px, 2.5vw, 30px); font-weight: 600; letter-spacing: .01em; line-height: 1.4; }

/* ---------- 产品 ---------- */
.showcase { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(26px, 3vw, 40px) clamp(18px, 2.2vw, 26px); }

.app {
  display: flex;
  flex-direction: column;
  gap: 14px;
  color: inherit;
  text-decoration: none;
}
/* 面板一出现，卡片依次升起；纯 CSS，不依赖 JS 观察器 */
.panel.active .app { animation: rise .62s var(--ease-out) both; animation-delay: var(--d, 0s); }
@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

.app--feature { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: clamp(26px, 3.4vw, 48px); }
.app--feature .app__screen { flex: 1 1 56%; }
.app--feature .app__body { flex: 1 1 40%; }
.app--feature .app__name { font-size: clamp(26px, 3.2vw, 40px); }

.app__screen {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: 13px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-1);
  transition: transform .38s var(--ease-out), box-shadow .38s var(--ease-out), border-color .3s linear;
}
.app__screen img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: top center;
  display: block;
  transition: transform .6s var(--ease-out);
}
.app:hover .app__screen { transform: translateY(-4px); box-shadow: var(--shadow-2); border-color: var(--line-2); }
.app:hover .app__screen img { transform: scale(1.018); }

/* 还没上线的：用柔色底 + 一个大字，不假装有界面 */
.app__screen--blank {
  display: grid;
  place-items: center;
  background: var(--wash, #ece7dc);
}
.app__letter {
  font-size: clamp(40px, 5vw, 62px);
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--ink);
  opacity: .55;
  transition: opacity .4s var(--ease);
}
.app:hover .app__letter { opacity: .78; }

.app__body { display: flex; flex-direction: column; gap: 8px; }
.app__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--sans);
  font-size: 10.5px;
  letter-spacing: .14em;
  color: var(--muted);
}
.st { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.app--soon .st { background: var(--line-2); }
.app__no { margin-left: auto; color: var(--line-2); font-variant-numeric: tabular-nums; }

.app__name {
  display: flex;
  align-items: baseline;
  gap: 9px;
  font-size: clamp(18px, 1.9vw, 22px);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.3;
}
.app__arrow {
  font-size: .72em;
  color: var(--muted);
  opacity: 0;
  transform: translate(-4px, 4px);
  transition: transform .3s var(--ease-out), opacity .3s var(--ease-out), color .2s linear;
}
.app:hover .app__arrow { opacity: 1; transform: none; color: var(--accent); }
.app__desc { font-size: 14px; line-height: 1.75; color: var(--muted); }

/* ---------- 关于 ---------- */
.lead-line { font-size: clamp(22px, 2.8vw, 34px); font-weight: 600; letter-spacing: .02em; line-height: 1.5; margin-bottom: clamp(26px, 3.2vw, 40px); }
.principles { max-width: 700px; border-top: 1px solid var(--line); }
.principle {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  line-height: 1.85;
  color: var(--muted);
}
.principle b { font-weight: 600; color: var(--ink); }

/* ---------- Blog ---------- */
.b-tag { font-family: var(--sans); font-size: 11px; letter-spacing: .2em; color: var(--muted); margin-bottom: clamp(24px, 3vw, 36px); }
.b-post { padding: clamp(24px, 3vw, 34px) 0; border-top: 1px solid var(--line); max-width: 640px; }
.b-post:first-of-type { border-top: 0; padding-top: 0; }
.b-post h3 { font-size: clamp(19px, 2vw, 23px); font-weight: 600; letter-spacing: .01em; line-height: 1.5; margin-bottom: 8px; }
.b-post time { display: block; font-family: "SFMono-Regular", Menlo, Consolas, monospace; font-size: 10.5px; letter-spacing: .1em; color: var(--muted); margin-bottom: 16px; }
.b-post p { font-size: 15.5px; line-height: 1.95; color: var(--ink-2); margin-bottom: 12px; }
.b-post p:last-child { margin-bottom: 0; }

/* ---------- 联系 ---------- */
.contact-intro { font-size: clamp(17px, 1.9vw, 22px); color: var(--muted); letter-spacing: .02em; margin-bottom: clamp(20px, 2.6vw, 28px); }
.c-link {
  display: inline-flex;
  align-items: baseline;
  gap: 14px;
  color: var(--ink);
  text-decoration: none;
  font-size: clamp(26px, 3.6vw, 44px);
  font-weight: 600;
  letter-spacing: -0.01em;
  border-bottom: 1px solid var(--line);
  padding-bottom: 8px;
  transition: color .18s linear, border-color .18s linear;
}
.c-link .arrow { font-size: .5em; color: var(--muted); transition: transform .34s var(--ease-out), color .18s linear; }
.c-link:hover { color: var(--accent); border-color: var(--accent); }
.c-link:hover .arrow { transform: translate(6px, -6px); color: var(--accent); }

/* ---------- 页脚 ---------- */
footer.site {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-family: var(--sans);
  font-size: 11.5px;
  color: var(--muted);
  letter-spacing: .02em;
  padding: 20px 0 30px;
  border-top: 1px solid var(--line);
}
.beian { color: var(--muted); text-decoration: none; transition: color .16s linear; }
.beian:hover { color: var(--ink); }

@media (max-width: 900px) {
  .showcase { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .principle { grid-template-columns: 1fr; gap: 4px; }
}
@media (max-width: 600px) {
  .showcase { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  header.site { flex-direction: column; align-items: flex-start; gap: 10px; }
  nav { gap: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .mask > span { transform: none !important; }
  .app, .fade { opacity: 1 !important; transform: none !important; }
  .panel.active { animation: none !important; }
}
