/* YINO brand system — implements the YINO Brand Guide v2.0 (see /brand/). Tokens match brand/tokens.css. */
@font-face { font-family: "Manrope"; src: url("fonts/Manrope.woff2") format("woff2"), url("fonts/Manrope.ttf") format("truetype"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("fonts/DMSans.woff2") format("woff2"), url("fonts/DMSans.ttf") format("truetype"); font-weight: 100 1000; font-display: swap; }

:root {
  /* Colour — guide §02 */
  --orange: #FF5A24;      /* 活力橘 · brand · 15% */
  --paper: #F8F5ED;       /* 奶油纸 · background · 55% */
  --ink: #242321;         /* 暖炭黑 · text / dark areas · 25% */
  --sky: #CEE7F2;         /* 浅天蓝 · accent · 5% */
  --card: #FFFDF8;        /* 卡片白 · panels, inputs */
  --muted: #68645E;       /* 次要文字 */
  --line: #DED9CF;        /* 分隔线 (decorative only) */
  --brand-text: #B83612;  /* 深橘 · emphasis text, errors on paper */
  --focus: #5AA9D6;       /* keyboard focus ring (guide §07: 3px blue) */

  /* Type — guide §03 */
  --f-display: "Manrope", "PingFang SC", "HarmonyOS Sans SC", "Noto Sans SC", "Microsoft YaHei UI", "Microsoft YaHei", system-ui, sans-serif;
  --f-body: "DM Sans", "PingFang SC", "HarmonyOS Sans SC", "Noto Sans SC", "Microsoft YaHei UI", "Microsoft YaHei", system-ui, sans-serif;

  /* Shape & space — tokens.css */
  --radius-sm: 12px;
  --radius-card: 28px;
  --radius-feature: 48px;
  --shadow: 0 8px 24px #2423210A;
  --space-1: 8px; --space-2: 16px; --space-3: 24px; --space-4: 32px; --space-6: 48px; --space-8: 64px; --space-12: 96px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --nav-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 18px/30px var(--f-body); -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
img, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
@media (max-width: 640px) { body { font-size: 16px; line-height: 28px; } }

h1, h2, h3 { text-wrap: balance; }
p, li { text-wrap: pretty; }
/* Keyboard users jump straight to the content */
.skip { position: fixed; left: 12px; top: -80px; z-index: 100; padding: 12px 18px; border-radius: var(--radius-sm); background: var(--ink); color: var(--paper); font: 700 15px/1.2 var(--f-body); }
.skip:focus { top: 12px; }
/* Chinese system fonts have no 500/600: those weights fall on Bold and clog up at small sizes */
:lang(zh) .label, :lang(zh) .pill { letter-spacing: .04em; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
/* Type scale — H1 64/68 800 · H2 40/48 700 · label 12/18 700 +0.12em. Chinese never gets negative tracking. */
.h1 { margin: 0; font: 800 64px/68px var(--f-display); letter-spacing: -.035em; }
.h2 { margin: 0; font: 700 40px/48px var(--f-display); letter-spacing: -.02em; }
:lang(zh) .h1, :lang(zh) .h2 { letter-spacing: 0; }
@media (max-width: 640px) { .h1 { font-size: 40px; line-height: 44px; } .h2 { font-size: 28px; line-height: 36px; } }
.label { font: 700 12px/18px var(--f-body); letter-spacing: .12em; text-transform: uppercase; }

/* Logo lockup — 标准横版: wordmark | Web Studio */
.lockup { display: inline-flex; align-items: center; gap: 14px; color: var(--ink); }
.lockup img { height: 30px; width: auto; }
.lockup .rule { width: 1px; align-self: stretch; margin: 2px 0; background: currentColor; opacity: .35; }
.lockup .sub { font: 600 14px/1.05 var(--f-display); letter-spacing: -.01em; }
/* The logo link in a top bar is a full-size tap target on phones (padding, so the divider keeps its height) */
.nav .lockup, .top .lockup { padding-block: 10px; }
.lockup.on-dark { color: var(--paper); }

/* Buttons — height ≥ 48, padding 16×24, orange with ink text; one primary per area */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 14px 24px; border: 1px solid var(--orange); border-radius: var(--radius-sm);
  background: var(--orange); color: var(--ink); font: 700 16px/1.2 var(--f-body); cursor: pointer;
  transition: background .15s, border-color .15s, transform .15s var(--ease);
}
.btn:hover { background: #E84A16; border-color: #E84A16; }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn-line { background: transparent; border-color: var(--ink); }
.btn-line:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.btn-ink { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.btn-ink:hover { background: #000; border-color: #000; }
.on-ink .btn-line { border-color: var(--paper); color: var(--paper); }
.on-ink .btn-line:hover { background: var(--paper); color: var(--ink); }
.btn-sm { min-height: 44px; padding: 10px 18px; font-size: 15px; }
.btn .arr { font-size: 1.05em; transition: transform .15s var(--ease); }
.btn:hover .arr { transform: translate(2px, -2px); }

/* Labels / tags — small sky chips */
.tag { display: inline-flex; align-items: center; padding: 6px 12px; border-radius: 8px; background: var(--sky); color: var(--ink); font: 700 13px/1.3 var(--f-body); }
.pill { display: inline-flex; align-items: center; padding: 8px 16px; border: 1px solid var(--ink); border-radius: 999px; font: 700 12px/1 var(--f-body); letter-spacing: .04em; text-transform: uppercase; }

/* Auxiliary shapes — guide §04 (shapes/shape.css). Text stays horizontal; one shape per area. */
.arch { border-radius: 72px 72px 18px 18px; }                 /* 圆弧肩: titles, info cards, mascot backdrops */
.tail {                                                       /* 卷尾侧翼: CTAs, horizontal info bars */
  border-radius: 36px 90px 90px 36px; padding-right: 72px;
  -webkit-mask: radial-gradient(circle 15px at 100% 50%, transparent 99%, #000 100%);
          mask: radial-gradient(circle 15px at 100% 50%, transparent 99%, #000 100%);
}

/* Choice chips (radio) */
.chip { position: relative; display: inline-flex; cursor: pointer; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px;
  border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--card);
  font: 600 15px/1.2 var(--f-body); transition: border-color .15s, background .15s, color .15s;
}
.chip:hover span { border-color: var(--ink); }
.chip input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.chip input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }

/* Inputs — label above, never placeholder-only */
.field { display: grid; gap: 8px; }
.field label, .legend { font: 500 15px/1.4 var(--f-body); }
.input {
  width: 100%; min-height: 54px; padding: 12px 16px; border: 1px solid #8F8A82; border-radius: var(--radius-sm);
  background: var(--card); font-size: 16px; transition: border-color .15s, box-shadow .15s;
}
.input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px var(--focus); }
textarea.input { min-height: 96px; resize: vertical; }

/* Mascot: transparent PNG/WebP at original ratio; can break out of its backdrop; never cropped */
.mascot { width: 100%; height: auto; user-select: none; -webkit-user-drag: none; }
