/* houjun.dev — company site. Same layout system as /lab/ and /voxstage/, own hue. */
:root {
  --ink: #18212b; --muted: #4d5a66; --faint: #6f7b88; --line: #dbe2e8;
  --paper: #f4f6f8; --card: #ffffff; --brand: #1f5f99; --brand-dark: #10263d;
  --tint: #e3edf6; --accent: #2b78c2; --warm: #b8661f;
  --btn: #10263d; --btn-hover: #071420; --btn-ink: #ffffff;
  --todo-bg: #fff1b8; --todo-ink: #5a4300;
  --max: 1080px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #e4ebf2; --muted: #a8b6c4; --faint: #8593a1; --line: #26323f;
    --paper: #0c131b; --card: #121c27; --brand: #8cc3f2; --brand-dark: #c1defa;
    --tint: #152536; --accent: #8cc3f2; --warm: #f0a660;
    --btn: #8cc3f2; --btn-hover: #b5d9f7; --btn-ink: #0c131b;
    --todo-bg: #4a3b00; --todo-ink: #ffe9a3;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 16px/1.7 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  overflow-wrap: break-word;
}
a { color: var(--brand); }
a:hover { color: var(--brand-dark); }
img { max-width: 100%; height: auto; display: block; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; background: var(--card); padding: 8px 12px; border-radius: 8px; z-index: 9; }

/* header */
.top { border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--paper) 92%, transparent); }
.top .wrap { display: flex; align-items: center; gap: 8px 18px; min-height: 64px; flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 21px; letter-spacing: -.6px; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.mark { width: 32px; height: 32px; border-radius: 8px; display: block; }
.top nav { margin-left: auto; display: flex; gap: 6px 18px; flex-wrap: wrap; font-size: 14px; }
.top nav a { text-decoration: none; color: var(--muted); }
.top nav a:hover, .top nav a[aria-current="page"] { color: var(--ink); }
.top nav a[aria-current="page"] { font-weight: 600; }

/* hero */
.hero { padding: 72px 0 40px; }
.eyebrow { font-size: 11px; letter-spacing: 1.8px; text-transform: uppercase; color: var(--faint); font-weight: 600; margin: 0; }
h1 { font-size: clamp(36px, 6vw, 58px); line-height: 1.12; letter-spacing: -1.6px; font-weight: 600; margin: 14px 0 18px; }
h1 em { font-style: normal; color: var(--accent); }
.lead { font-size: clamp(17px, 2vw, 20px); color: var(--muted); max-width: 740px; margin: 0 0 26px; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.button { display: inline-block; padding: 11px 18px; border-radius: 10px; background: var(--btn); color: var(--btn-ink); text-decoration: none; font-weight: 600; font-size: 15px; border: 0; font-family: inherit; cursor: pointer; line-height: 1.4; }
.button:hover { background: var(--btn-hover); color: var(--btn-ink); }
.button.ghost { background: transparent; color: var(--brand); border: 1px solid var(--line); }
.button.ghost:hover { border-color: var(--accent); color: var(--brand-dark); }
.note { font-size: 13px; color: var(--faint); }
.mt-m { margin-top: 18px; }
.mt-l { margin-top: 22px; }

/* hero with illustration: text left, picture right; stacked on narrow screens */
.hero.split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 32px 44px; align-items: center; }
.hero.split h1 { font-size: clamp(36px, 5vw, 54px); }
.hero-art { margin: 0; }
.hero-art img { width: 100%; height: auto; border-radius: 16px; border: 1px solid var(--line); }
@media (max-width: 860px) { .hero.split { grid-template-columns: minmax(0, 1fr); } }

/* sections */
section { padding: 44px 0; }
section + section { border-top: 1px solid var(--line); }
h2 { font-size: clamp(26px, 3.4vw, 34px); letter-spacing: -.8px; line-height: 1.25; margin: 0 0 12px; font-weight: 600; }
h3 { font-size: 18px; margin: 0 0 6px; letter-spacing: -.2px; line-height: 1.4; }
.sub { color: var(--muted); max-width: 760px; margin: 0 0 26px; }
.more { display: inline-block; margin-top: 14px; font-weight: 600; font-size: 15px; text-decoration: none; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.grid.small { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 20px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.card p + p { margin-top: 10px; }
.card .meta { font-size: 13px; color: var(--faint); margin-bottom: 8px; }
a.card { display: block; text-decoration: none; color: inherit; transition: border-color .15s; }
a.card:hover { border-color: var(--accent); color: inherit; }
a.card .go { display: inline-block; margin-top: 12px; color: var(--brand); font-weight: 600; font-size: 14px; }
.card h3 { margin-top: 8px; font-size: 20px; }
.tag { display: inline-block; font-size: 11px; padding: 2px 8px; border-radius: 999px; background: var(--tint); color: var(--brand); margin: 0 6px 4px 0; font-weight: 600; letter-spacing: .3px; }
.tag.warm { background: color-mix(in srgb, var(--warm) 16%, transparent); color: var(--warm); }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; counter-reset: step; padding: 0; margin: 0; }
.steps li { list-style: none; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 18px; }
.steps li::before { counter-increment: step; content: "0" counter(step); display: block; font: 600 12px/1 ui-monospace, Menlo, monospace; color: var(--warm); margin-bottom: 10px; }
.steps li p { margin: 0; color: var(--muted); font-size: 15px; }

.plain { padding-left: 20px; margin: 0; }
.plain li { margin: 6px 0; color: var(--muted); }
.plain li strong { color: var(--ink); }

.callout { background: var(--tint); border-left: 3px solid var(--accent); padding: 14px 18px; border-radius: 0 10px 10px 0; margin: 22px 0 0; max-width: 760px; }
.callout p { margin: 0; }

/* card visuals: real screenshots from the product sites on this domain */
.shot { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top left; border-radius: 8px; border: 1px solid var(--line); margin: 0 0 14px; background: var(--tint); }
.shot.art { object-position: center; }
.shot-icon { display: flex; align-items: center; justify-content: center; aspect-ratio: 16 / 10; border-radius: 8px; border: 1px solid var(--line); margin: 0 0 14px; background: var(--tint); }
.shot-icon img { width: 30%; max-width: 120px; height: auto; }

/* app screenshots */
.phones { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; max-width: 760px; }
.phones img { width: 100%; height: auto; border-radius: 18px; border: 1px solid var(--line); background: var(--card); }

/* wide illustration above the About timeline */
.wide-art { margin: 0 0 30px; max-width: 900px; }
.wide-art img { width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--line); }

/* timeline */
.timeline { list-style: none; padding: 0; margin: 0; border-left: 2px solid var(--line); max-width: 800px; }
.timeline li { position: relative; padding: 0 0 26px 24px; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: 7px; width: 12px; height: 12px; border-radius: 50%; background: var(--paper); border: 2px solid var(--accent); }
.timeline li:last-child::before { background: var(--accent); }
.timeline .year { font: 600 13px/1.4 ui-monospace, Menlo, monospace; color: var(--warm); display: block; }
.timeline h3 { margin: 2px 0 4px; }
.timeline p { margin: 0; color: var(--muted); }

/* tables */
.facts { border-collapse: collapse; width: 100%; max-width: 760px; font-size: 15px; }
.facts th, .facts td { text-align: left; padding: 10px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.facts th { color: var(--faint); font-weight: 600; width: 34%; }

/* long-form pages (policies, support) */
.doc { max-width: 760px; padding: 56px 0 40px; }
.doc h1 { font-size: clamp(32px, 5vw, 44px); }
.doc h2 { font-size: 22px; margin: 34px 0 8px; letter-spacing: -.3px; }
.doc h3 { margin-top: 20px; }
.doc p, .doc li { color: var(--ink); }
.doc .updated { color: var(--faint); font-size: 13px; }
.doc ul { padding-left: 22px; }

/* draft markers — must be gone before upload (see 02_交付说明.md) */
.todo { background: var(--todo-bg); color: var(--todo-ink); border-radius: 4px; padding: 1px 5px; font-size: .92em; }
.todo::before { content: "TO CONFIRM · "; font-weight: 700; font-size: .8em; letter-spacing: .5px; }

/* footer */
.foot { border-top: 1px solid var(--line); padding: 30px 0 40px; font-size: 14px; color: var(--faint); margin-top: 20px; }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 10px 24px; align-items: baseline; }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-left: auto; }
.foot a { color: var(--muted); text-decoration: none; }
.foot a:hover { color: var(--ink); }

@media (max-width: 560px) {
  .hero { padding: 48px 0 28px; }
  .top nav { margin-left: 0; width: 100%; }
  .foot nav { margin-left: 0; }
  .facts th { width: 40%; }
}
