/* ==========================================================================
   无刻度科技 NOSCAL — 单页展示站
   视觉参考：Anthropic（奶油底、衬线大标题、珊瑚点缀、细线卡片）
   ========================================================================== */

:root {
  --bg:        #FAF9F5;
  --bg-soft:   #F0EEE6;
  --bg-card:   #FFFFFF;
  --bg-dark:   #141413;
  --ink:       #141413;
  --ink-soft:  #6E6C68;
  --accent:    #C15F3C;
  --accent-2:  #D9A08B;
  --line:      rgba(20, 20, 19, .12);
  --line-dark: rgba(240, 238, 230, .14);
  --serif: "Iowan Old Style", "Baskerville", "Palatino Linotype", Georgia, "Times New Roman", "Songti SC", "STSong", "SimSun", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

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

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
.nowrap { white-space: nowrap; }

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ---------- 导航 ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  background: rgba(250, 249, 245, .82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark { height: 32px; width: 32px; border-radius: 9px; display: block; box-shadow: 0 6px 16px -8px rgba(20,20,19,.45); }
.brand-logo { height: 30px; width: auto; display: block; }

.menu { display: flex; align-items: center; gap: 34px; }
.menu-link {
  font-size: 14px; font-weight: 500; color: var(--ink-soft);
  padding: 6px 2px; border-bottom: 2px solid transparent; transition: color .2s, border-color .2s;
}
.menu-link i { font-style: normal; font-size: 10px; letter-spacing: .14em; opacity: .65; margin-left: 4px; }
.menu-link:hover { color: var(--ink); }
.menu-link.active { color: var(--ink); border-color: var(--accent); }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px 0; transition: transform .25s var(--ease); }
.nav-toggle.open span:first-child { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:last-child  { transform: translateY(-7px) rotate(-45deg); }

/* ---------- HERO ---------- */
.hero { min-height: 100vh; display: flex; align-items: center; padding: 140px 0 90px; }

.hero-inner { text-align: center; width: 100%; }

.hero-mark {
  width: 72px; height: 72px;
  margin: 0 auto 30px;
  border-radius: 20px;
  box-shadow: 0 20px 44px -22px rgba(20,20,19,.5);
}

.eyebrow {
  font-size: 12px; letter-spacing: .28em; text-transform: uppercase;
  color: var(--ink-soft); font-weight: 600;
}

.hero-title {
  font-family: var(--serif);
  font-size: clamp(48px, 8vw, 92px);
  line-height: 1.05;
  font-weight: 500;
  letter-spacing: .02em;
  margin-top: 30px;
}

.hero-title-en {
  font-size: 13px; letter-spacing: .5em; color: var(--accent);
  margin-top: 16px; font-weight: 600;
}

.hero-sub { margin: 36px auto 0; max-width: 760px; font-size: 18px; }
.hero-sub-en { margin: 12px auto 0; max-width: 760px; font-size: 13px; color: var(--ink-soft); }

/* 断尺：桌面固定上限，移动端自适应列宽，不溢出 */
.ruler { width: 100%; max-width: 720px; margin: 56px auto 0; opacity: .9; }

/* 产品总览 */
.hero-products {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 720px;
  margin: 60px auto 0;
}

.hero-product {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 30px 16px 26px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 18px;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}
.hero-product:hover { transform: translateY(-6px); box-shadow: 0 24px 50px -28px rgba(20,20,19,.28); border-color: rgba(20,20,19,.22); }
.hero-product-icon { width: 64px; height: 64px; border-radius: 16px; box-shadow: 0 10px 24px -12px rgba(20,20,19,.3); }
.hero-product-name { font-family: var(--serif); font-size: 20px; margin-top: 4px; }
.hero-product-en { font-size: 10px; letter-spacing: .3em; color: var(--ink-soft); }

.hero-scroll { margin-top: 46px; }
.hero-scroll a { font-size: 13px; color: var(--ink-soft); transition: color .2s; }
.hero-scroll a:hover { color: var(--accent); }

/* ---------- 通用板块 ---------- */
.section { padding: 130px 0; scroll-margin-top: 68px; }
.section-soft { background: var(--bg-soft); }
.section-dark { background: var(--bg-dark); color: #F0EEE6; }

.section-head { max-width: 760px; }
.head-row { display: flex; align-items: center; gap: 22px; margin-bottom: 44px; }
.head-icon { width: 74px; height: 74px; border-radius: 19px; box-shadow: 0 16px 34px -18px rgba(20,20,19,.35); }

h2 { font-family: var(--serif); font-size: clamp(36px, 5vw, 54px); font-weight: 500; line-height: 1.1; }
.h2-en { font-size: .5em; color: var(--ink-soft); font-weight: 400; letter-spacing: .04em; margin-left: 6px; }
.section-dark .h2-en { color: rgba(240,238,230,.55); }

.quote {
  font-family: var(--serif); font-size: clamp(20px, 3vw, 28px); line-height: 1.6;
  color: var(--ink); margin: 0 0 36px; padding-left: 26px; border-left: 3px solid var(--accent);
}
.quote-src { display: block; margin-top: 12px; font-size: 13px; font-family: var(--sans); color: var(--ink-soft); }

.lead { font-size: 19px; line-height: 1.85; max-width: 700px; }
.section-dark .lead { color: rgba(240,238,230,.85); }

/* ---------- 猫邮：场景 ---------- */
.scene-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px;
  margin-top: 64px;
}
.scene {
  background: var(--bg-card); border: 1px solid var(--line); border-radius: 20px;
  overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.scene:hover { transform: translateY(-5px); box-shadow: 0 30px 60px -30px rgba(20,20,19,.3); }
.scene img { width: 100%; height: 480px; object-fit: cover; object-position: center top; }
.scene figcaption { padding: 24px 26px 30px; }
.scene h3 { font-family: var(--serif); font-size: 21px; font-weight: 500; margin-bottom: 10px; }
.scene p { font-size: 14px; color: var(--ink-soft); line-height: 1.75; }

.note {
  margin-top: 60px; padding: 30px 36px;
  background: #F7E7DF; border: 1px solid rgba(193,95,60,.22); border-radius: 16px;
}
.note-kicker { font-size: 11px; letter-spacing: .28em; color: var(--accent); font-weight: 700; margin-bottom: 8px; }
.note-text { font-size: 16px; max-width: 640px; }

/* 猫邮：介绍文案在桌面端充分利用列宽，避免留白处中途换行 */
#meowmail .lead-wide { max-width: 1060px; margin-top: 36px; }
#meowmail .note-text { max-width: 760px; }

.cta { margin-top: 56px; display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
.cta-hint { font-size: 11px; letter-spacing: .22em; color: var(--ink-soft); }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 15px 30px; border-radius: 999px;
  font-size: 15px; font-weight: 600; letter-spacing: .02em;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn-icon { width: 26px; height: 26px; border-radius: 6px; }

.btn-dark { background: var(--ink); color: var(--bg); }
.btn-dark:hover { box-shadow: 0 18px 38px -18px rgba(20,20,19,.6); }

.btn-light { background: #F0EEE6; color: var(--ink); }
.btn-light:hover { box-shadow: 0 18px 38px -18px rgba(0,0,0,.6); }

.btn-ghost-light { border: 1px solid var(--line-dark); color: #F0EEE6; }
.btn-ghost-light:hover { background: rgba(240,238,230,.06); }

/* ---------- 小事：分栏 ---------- */
.split {
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px;
  margin-top: 60px;
}
.split-text p { font-size: 15.5px; color: rgba(20,20,19,.82); margin-bottom: 18px; }
.split-text .lead { color: var(--ink); }

/* 截图画廊 */
.gallery { margin-top: 70px; }
.gallery-row {
  display: flex; gap: 26px; overflow-x: auto;
  scroll-snap-type: x mandatory; padding: 10px 4px 26px;
  scrollbar-width: thin;
}
.gallery-row::-webkit-scrollbar { height: 6px; }
.gallery-row::-webkit-scrollbar-thumb { background: rgba(20,20,19,.18); border-radius: 99px; }
.gallery-row img {
  flex: 0 0 auto; width: 250px; height: 445px; object-fit: cover;
  border-radius: 20px; border: 1px solid var(--line);
  scroll-snap-align: center;
  box-shadow: 0 26px 56px -30px rgba(20,20,19,.4);
}

/* 下载卡片 */
.downloads { margin-top: 70px; }
.download-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 26px; }

.dl-card {
  position: relative;
  display: flex; align-items: center; gap: 22px;
  background: var(--bg-card); border: 1px solid var(--line); border-radius: 16px;
  padding: 24px 28px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
  overflow: hidden;
}
a.dl-card:hover { transform: translateY(-4px); box-shadow: 0 22px 44px -26px rgba(20,20,19,.32); border-color: rgba(20,20,19,.2); }
.dl-num { font-family: var(--serif); font-size: 30px; color: var(--accent); line-height: 1; }
.dl-name { font-size: 16px; font-weight: 600; display: flex; flex-direction: column; }
.dl-name i { font-style: normal; font-size: 11px; letter-spacing: .16em; color: var(--ink-soft); text-transform: uppercase; }
.dl-arrow { margin-left: auto; font-size: 20px; color: var(--ink-soft); }
.dl-card-static .dl-qr { width: 72px; height: 72px; margin-left: auto; border-radius: 8px; border: 1px solid var(--line); }

.legal { margin-top: 34px; display: flex; gap: 28px; flex-wrap: wrap; }
.legal-link { font-size: 13px; color: var(--ink-soft); transition: color .2s; border-bottom: 1px solid transparent; }
.legal-link:hover { color: var(--accent); }

/* ---------- 一日归来：暗色 ---------- */
.head-row-dark .head-icon { box-shadow: 0 16px 40px -16px rgba(0,0,0,.7); }
.eyebrow-light { color: rgba(240,238,230,.55); }

.riod-motto { text-align: center; margin: 70px 0 46px; }
.riod-line-1, .riod-line-2 {
  font-family: var(--serif);
  font-size: clamp(34px, 5.5vw, 64px);
  line-height: 1.2; font-weight: 400; letter-spacing: .06em;
}
.riod-line-2 { color: var(--accent-2); }
.riod-poem { margin-top: 40px; font-family: var(--serif); font-size: clamp(17px, 2.4vw, 22px); line-height: 2; color: rgba(240,238,230,.9); }
.riod-en { margin-top: 26px; font-size: 11px; letter-spacing: .4em; color: rgba(240,238,230,.5); }

.lead-center { text-align: center; margin: 0 auto; }
/* 一日归来：引言整行排完，避免「还。」被挤到孤行 */
#riod .lead-center { max-width: none; }

.riod-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
  margin-top: 70px;
}
.riod-grid img {
  width: 100%; aspect-ratio: 9/19; object-fit: cover;
  border-radius: 18px; border: 1px solid var(--line-dark);
  box-shadow: 0 30px 60px -34px rgba(0,0,0,.8);
  transition: transform .35s var(--ease);
}
.riod-grid img:hover { transform: translateY(-6px) scale(1.01); }

.cta-dark { margin-top: 64px; }
.legal-dark { justify-content: center; }
.legal-dark .legal-link { color: rgba(240,238,230,.55); }
.legal-dark .legal-link:hover { color: var(--accent-2); }

/* ---------- 页脚 ---------- */
.footer { background: var(--bg-dark); color: #F0EEE6; padding: 90px 0 40px; }
.footer-inner { display: flex; flex-direction: column; gap: 60px; }

.footer-brand { text-align: center; }
.footer-logo { height: 46px; width: auto; margin: 0 auto 26px; }
.footer-word { font-family: var(--serif); font-size: 34px; letter-spacing: .04em; }
.footer-word-en { font-size: 11px; letter-spacing: .4em; color: rgba(240,238,230,.5); margin-top: 10px; }

.footer-cols {
  display: grid; grid-template-columns: 1fr 1fr 1.4fr; gap: 40px;
  border-top: 1px solid var(--line-dark); padding-top: 46px;
}
.footer-col h4 { font-size: 12px; letter-spacing: .22em; color: rgba(240,238,230,.5); margin-bottom: 18px; font-weight: 600; }
.footer-col a { display: block; font-size: 14px; color: rgba(240,238,230,.82); padding: 5px 0; transition: color .2s; }
.footer-col a:hover { color: var(--accent-2); }
.footer-note p { font-size: 13px; color: rgba(240,238,230,.6); margin-bottom: 6px; }
.footer-note p:first-child { font-size: 14px; color: rgba(240,238,230,.82); }

.footer-bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  border-top: 1px solid var(--line-dark); padding-top: 30px;
  font-size: 12px; color: rgba(240,238,230,.45);
}
.footer-bottom a { color: rgba(240,238,230,.6); }
.footer-bottom a:hover { color: var(--accent-2); }

/* ---------- 滚动渐显 ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- 子页面（协议/隐私/FAQ） ---------- */
.legal-page { padding: 150px 0 100px; min-height: 70vh; }
.legal-wrap { max-width: 780px; margin: 0 auto; }
.legal-title { font-family: var(--serif); font-size: clamp(34px, 5vw, 52px); font-weight: 500; margin-top: 18px; }
.legal-meta { color: var(--ink-soft); font-size: 13px; margin: 14px 0 40px; }

.legal-wrap h2 { font-family: var(--serif); font-size: 24px; font-weight: 500; margin: 44px 0 14px; }
.legal-wrap h3 { font-size: 16px; font-weight: 600; margin: 26px 0 8px; }
.legal-wrap p { color: rgba(20,20,19,.82); font-size: 15px; line-height: 1.9; margin-bottom: 16px; }
.legal-wrap ul { padding-left: 22px; margin-bottom: 16px; }
.legal-wrap li { color: rgba(20,20,19,.82); font-size: 15px; line-height: 1.9; margin-bottom: 8px; }
.legal-wrap strong { color: var(--ink); }

.legal-back { margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--line); }
.legal-back a { font-size: 14px; font-weight: 600; color: var(--ink); transition: color .2s; }
.legal-back a:hover { color: var(--accent); }

/* FAQ 手风琴 */
.faq-group { margin-bottom: 10px; }
.faq-group h2 { margin-top: 40px; }
.faq-group details {
  border: 1px solid var(--line); border-radius: 14px;
  background: var(--bg-card); margin-bottom: 14px; overflow: hidden;
}
.faq-group summary {
  cursor: pointer; list-style: none; padding: 20px 26px;
  font-size: 16px; font-weight: 600; position: relative; padding-right: 46px;
  transition: color .2s;
}
.faq-group summary::-webkit-details-marker { display: none; }
.faq-group summary:hover { color: var(--accent); }
.faq-group summary::after {
  content: "+"; position: absolute; right: 24px; top: 50%;
  transform: translateY(-50%); font-size: 22px; font-weight: 300;
  color: var(--ink-soft); transition: transform .25s var(--ease);
}
.faq-group details[open] summary::after { transform: translateY(-50%) rotate(45deg); color: var(--accent); }
.faq-group details[open] summary { border-bottom: 1px solid var(--line-soft); }
.faq-group details p {
  padding: 8px 26px 22px; margin: 0;
  font-size: 15px; color: var(--ink-soft); line-height: 1.9;
}

/* ---------- 响应式 ---------- */
@media (max-width: 960px) {
  .scene-grid { grid-template-columns: 1fr; }
  .scene img { height: auto; max-height: 620px; }
  .riod-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .footer-note { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  .section { padding: 90px 0; }
  .hero-sub { font-size: 16px; }
  .nav-toggle { display: block; }
  .menu {
    position: fixed; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 10px 28px 20px;
    transform: translateY(-8px); opacity: 0; pointer-events: none;
    transition: opacity .25s var(--ease), transform .25s var(--ease);
  }
  .menu.open { opacity: 1; transform: none; pointer-events: auto; }
  .menu-link { padding: 14px 2px; border-bottom: 1px solid var(--line); }
  .menu-link.active { border-color: var(--accent); }

  .hero-products { grid-template-columns: 1fr; max-width: 340px; }
  .split { grid-template-columns: 1fr; gap: 26px; }
  .download-grid { grid-template-columns: 1fr; }
  .riod-grid { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
