/* ============================================================
   旭禾色谱 · style.css
   极简暗黑基调 #0A0A0A / Hero 50vh 巨幕 / 统一不等宽比例轨道
   ============================================================ */

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

body {
  /* 暗色实验页的页面级变量（token 唯一源仍是 tokens.css，此处仅做本页覆盖） */
  --bg: #0A0A0A;
  --line: #1d1d1f;
  --ink: #f2f2f0;
  --dim: #8a8a8f;
  --faint: #5c5c62;
  --ease: cubic-bezier(0.25, 1, 0.5, 1);
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.7;
  min-height: 100vh;
}

/* ---------- Hero 巨幕:50vh 康保三色带 ---------- */
.hero {
  position: relative;
  height: 50vh;
  min-height: 300px;
  width: 100%;
}

.hero-track {
  display: flex;
  height: 100%;
  width: 100%;
}

/* ---------- 色块(全局复用:Hero 与大师轨道同一逻辑) ---------- */
.cblock {
  position: relative;
  border: none;
  cursor: pointer;
  min-width: 0;
  flex-basis: 0;
  min-height: 100%;
  overflow: hidden;
  outline: none;
  transition: transform .3s var(--ease);
}
.cblock:focus-visible { outline: 2px solid #fff; outline-offset: -4px; z-index: 2; }

/* 果冻微动效:hover scaleY(1.05) */
.cblock:hover { transform: scaleY(1.05); z-index: 2; }

.cblock-hex {
  position: absolute; left: 0; right: 0; bottom: 12px;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  opacity: 0;
  transition: opacity .3s var(--ease);
  pointer-events: none;
}
.cblock:hover .cblock-hex, .cblock:focus-visible .cblock-hex { opacity: .95; }
.cblock-dark  .cblock-hex { color: #0A0A0A; }
.cblock-light .cblock-hex { color: #f2f2f0; }

/* ---------- Hero 文案:绝对定位正中 ---------- */
.hero-copy {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 5;
  pointer-events: none;
}
.hero-copy h1 {
  color: #fff;
  font-size: 4rem;
  font-weight: 800;
  letter-spacing: -2px;
  line-height: 1.15;
  text-shadow: 0 2px 24px rgba(0,0,0,.35);
}
.hero-copy p {
  color: rgba(255,255,255,.7);
  font-size: 1.2rem;
  margin-top: 10px;
  letter-spacing: .2em;
  text-shadow: 0 1px 12px rgba(0,0,0,.4);
}

/* ---------- 大师灵感 ---------- */
main { padding: 56px clamp(20px, 5vw, 72px) 32px; }

.masters-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 20px; margin-bottom: 28px; }
.masters-head h2 { font-size: 26px; font-weight: 700; letter-spacing: .02em; }
.masters-sub { font-size: 13px; color: var(--dim); }

.masters-list { display: flex; flex-direction: column; gap: 44px; }

.master-head {
  display: flex; align-items: center; gap: 18px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.master-thumb {
  width: 72px; height: 72px;
  object-fit: cover;
  border-radius: 8px;
  flex: none;
  background: #161616;
}
.master-meta h2 { font-size: 19px; font-weight: 700; }
.master-meta p { font-size: 12.5px; color: var(--dim); margin-top: 2px; letter-spacing: .04em; }
.master-note {
  font-size: 12.5px; color: var(--faint);
  max-width: 380px; margin-left: auto;
  align-self: center;
}

/* 统一不等宽轨道:80px 高 / 8px 圆角 / 零 gap 零 border */
.strip {
  display: flex;
  height: 80px;
  border-radius: 8px;
  overflow: hidden;
}

.masters-count {
  margin-top: 40px;
  font-size: 12px; color: var(--faint);
  letter-spacing: .1em;
  text-align: center;
}
.masters-count b { color: var(--ink); }

/* ---------- Toast ---------- */
.toast {
  position: fixed; z-index: 10;
  font-size: 13px; letter-spacing: .04em;
  padding: 12px 20px;
  border-radius: 8px;
  opacity: 0; transform: translateY(12px);
  transition: opacity .3s var(--ease), transform .3s var(--ease);
  pointer-events: none;
  max-width: min(82vw, 400px);
  background: #1c1c1e;
  color: var(--ink);
  border: 1px solid var(--line);
}
.toast.show { opacity: 1; transform: translateY(0); }
.toast-copy { left: 22px; bottom: 22px; }
.toast-copy.fail { border-color: #d95555; color: #ffb4a6; }
.toast-warn {
  right: 22px; bottom: 22px;
  background: #2a2018; color: #f3d9ac;
  border: 1px solid #5a4630;
  border-left: 3px solid #D48C45;
}

/* ---------- 页脚（已接入 partials/foot.html 共享片段，此处补暗色最小样式） ---------- */
.site-foot {
  padding: 36px 24px 44px;
  border-top: 1px solid var(--line);
  font-size: 12px; color: var(--faint);
  text-align: center;
  letter-spacing: .06em;
}
.foot-in { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 32px; }
.foot-brand h4, .foot-col h5 { color: var(--ink); font-size: 12.5px; margin-bottom: 6px; }
.foot-brand p { line-height: 1.8; }
.foot-col a { display: block; color: var(--dim); text-decoration: none; padding: 4px 0; }
.foot-col a:hover { color: #D92525; }
.foot-base { margin-top: 20px; }

/* ---------- 响应式 ---------- */
@media (max-width: 768px) {
  .hero-copy h1 { font-size: 2.6rem; }
  .hero-copy p { font-size: 1rem; }
  .master-note { display: none; }
  .strip { height: 64px; }
  .cblock-hex { font-size: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .cblock, .cblock-hex, .toast { transition: none !important; }
  .cblock:hover { transform: none; }
}
