/* shiyo.me —— 点阵招牌。
   整站只有两种"材料"：点（亮/灭）和底板。点阵是身份，不是点缀：招牌、图标、滚动字幕都由点组成。
   每个产品用它自己官网的品牌色（词妖朱砂、Mirato 墨绿），这一页是把它们串起来的地方。 */

@font-face {
  font-family: "Doto";
  src: url("fonts/doto.woff2") format("woff2");
  font-weight: 500 900;
  font-display: swap;
}

:root {
  --kotobake: #d2493a;
  --mirato: #2fae7c;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Noto Sans CJK SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  --dot: "Doto", ui-monospace, "SF Mono", Menlo, monospace;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

[data-theme="dark"] {
  --bg: #0b0b0c;
  --panel: #111113;
  --ink: #f2efe8;
  --soft: #a5a29b;
  --muted: #6c6a66;
  --line: #222225;
  --dot-off: #1b1b1e;
  --dot-on: #f2efe8;
  --accent: #ff6b8b;
  --glow: rgba(255, 220, 200, 0.35);
}

[data-theme="light"] {
  --bg: #f4f1ea;
  --panel: #ebe7de;
  --ink: #1a1917;
  --soft: #55524c;
  --muted: #8d897f;
  --line: #d9d4c8;
  --dot-off: #ddd8cc;
  --dot-on: #1a1917;
  --accent: #d6336c;
  --glow: rgba(0, 0, 0, 0);
  --mirato: #0b6e4f;
  --kotobake: #c23b2e;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.75 var(--sans);
  -webkit-font-smoothing: antialiased;
  transition: background .3s, color .3s;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
canvas { display: block; }

/* ---------- 顶栏 ---------- */
.bar {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; gap: 28px;
  padding: 14px max(24px, calc((100vw - 1040px) / 2));
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.mark .dot-icon { width: 26px; height: 26px; }
.bar nav { display: flex; gap: 22px; flex: 1; }
.bar nav a { color: var(--soft); font-size: 14px; letter-spacing: .04em; }
.bar nav a:hover { color: var(--ink); }
.switches { display: flex; align-items: center; gap: 14px; }
.langs { display: flex; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; }
.langs button { padding: 3px 10px; font-size: 12px; color: var(--muted); font-family: var(--mono); }
.langs button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.theme { width: 30px; height: 30px; border: 1px solid var(--line); border-radius: 50%; display: grid; place-items: center; }
.theme span { width: 12px; height: 12px; border-radius: 50%; background: var(--ink); box-shadow: inset -4px -2px 0 0 var(--bg); }
[data-theme="light"] .theme span { box-shadow: none; outline: 2px dotted var(--ink); outline-offset: 3px; }

/* ---------- 招牌 ---------- */
main { max-width: 1040px; margin: 0 auto; padding: 0 24px; }
.hero { padding: 72px 0 40px; }
.board {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: clamp(16px, 3vw, 34px);
}
#sign { width: 100%; height: auto; aspect-ratio: 39 / 11; }
.screw { position: absolute; width: 7px; height: 7px; border-radius: 50%; background: var(--line); }
.screw.tl { top: 10px; left: 10px; } .screw.tr { top: 10px; right: 10px; }
.screw.bl { bottom: 10px; left: 10px; } .screw.br { bottom: 10px; right: 10px; }
.tagline { font-size: clamp(22px, 3.2vw, 32px); line-height: 1.4; margin: 36px 0 8px; letter-spacing: .02em; font-weight: 600; }
.sub { color: var(--soft); margin: 0; max-width: 40em; }

/* ---------- LED 滚动字幕 ---------- */
.ticker {
  display: flex; align-items: stretch;
  border: 1px solid var(--line); border-radius: 6px; overflow: hidden;
  background: var(--panel);
  font-family: var(--dot); font-weight: 800; font-size: 20px; letter-spacing: .06em;
}
.ticker-key { padding: 10px 16px; background: var(--accent); color: var(--bg); }
.ticker-window { flex: 1; overflow: hidden; display: flex; align-items: center; mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.ticker-track { display: flex; white-space: nowrap; animation: ticker 38s linear infinite; }
.ticker-track span { padding-right: 4em; color: var(--accent); text-shadow: 0 0 8px var(--glow); }
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- 区块 ---------- */
.section { padding: 64px 0 8px; }
.label {
  font-family: var(--dot); font-weight: 800; font-size: 15px; letter-spacing: .24em;
  text-transform: uppercase; color: var(--muted); margin: 0 0 22px;
}

/* 铭牌 */
.plates { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.plate {
  --brand: var(--accent);
  display: flex; gap: 20px; align-items: flex-start;
  padding: 22px; border: 1px solid var(--line); border-radius: 8px;
  background: var(--panel);
  position: relative; overflow: hidden;
  transition: border-color .2s, transform .2s;
}
.plate::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--brand); }
a.plate:hover { border-color: var(--brand); transform: translateY(-2px); }
.plate .dot-icon.big { width: 64px; height: 64px; flex: none; }
.plate-body { min-width: 0; }
.plate-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.plate h3 { margin: 0; font-size: 20px; font-weight: 650; }
.plate h3 .latin { font-family: var(--dot); font-weight: 800; color: var(--brand); font-size: 17px; letter-spacing: .04em; }
.plate p { margin: 6px 0 10px; color: var(--soft); font-size: 15px; }
.chip { font-size: 12px; padding: 1px 8px; border: 1px solid var(--brand); color: var(--brand); border-radius: 3px; }
.go { font-family: var(--mono); font-size: 13px; color: var(--brand); }
.plate.quiet p { margin-bottom: 0; }

/* 进展日志 */
.log { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.log li { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.log time { font-family: var(--dot); font-weight: 800; color: var(--accent); letter-spacing: .04em; }
.log .what { color: var(--ink); }
.log .tag { color: var(--muted); font-size: 13px; margin-left: 8px; }

/* 联系 */
.contact-lines { display: flex; flex-wrap: wrap; gap: 12px 28px; font-family: var(--mono); font-size: 15px; margin: 0; }
.contact-lines a { border-bottom: 1px dotted var(--soft); }
.contact-lines a:hover { color: var(--accent); border-color: var(--accent); }

.foot {
  max-width: 1040px; margin: 72px auto 0; padding: 22px 24px 40px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
  color: var(--muted); font-size: 13px; border-top: 1px solid var(--line);
}

/* 进场：区块逐个亮起 */
.reveal { opacity: 0; transform: translateY(10px); transition: opacity .6s, transform .6s; }
.reveal.on { opacity: 1; transform: none; }

@media (max-width: 720px) {
  .bar { gap: 14px; }
  .bar nav { display: none; }
  .switches { margin-left: auto; }
  .hero { padding-top: 40px; }
  .plates { grid-template-columns: 1fr; }
  .log li { grid-template-columns: 1fr; gap: 2px; }
  .ticker { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
