/* ==========================================================================
   万游启衡 · 资料库 / WANYOU QIHENG ESPORTS LIBRARY
   Design system: dark HUD, cyan primary, magenta strike, cut-corner geometry
   ========================================================================== */

/* ---------- fonts ---------- */
@font-face {
  font-family: 'Orbitron';
  src: url('../fonts/orbitron.woff2') format('woff2');
  font-weight: 400 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+2000-206F, U+2122, U+2191, U+2193, U+2212, U+2215;
}
@font-face {
  font-family: 'Rajdhani';
  src: url('../fonts/rajdhani-500.woff2') format('woff2');
  font-weight: 500;
  font-display: swap;
  unicode-range: U+0000-00FF, U+2000-206F, U+2122;
}
@font-face {
  font-family: 'Rajdhani';
  src: url('../fonts/rajdhani-700.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
  unicode-range: U+0000-00FF, U+2000-206F, U+2122;
}

/* ---------- tokens ---------- */
:root {
  --bg: #08060d;
  --bg-2: #0c0812;
  --panel: #120c1a;
  --panel-2: #150e1f;
  --line: rgba(255, 90, 43, 0.18);
  --line-soft: rgba(200, 130, 220, 0.10);
  --line-hard: rgba(255, 255, 255, 0.06);
  --ink: #f6edf5;
  --ink-2: #dbc9da;
  --muted: #9c87a2;
  --dim: #6a5670;
  --cyan: #ff5a2b;
  --cyan-deep: #c2411f;
  --magenta: #a24bff;
  --violet: #7b5cff;
  --lime: #b6ff3c;
  --amber: #ffc247;

  --font-display: 'Orbitron', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-body: 'Rajdhani', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;

  --n: 12px;
  --r: 2px;
  --maxw: 1080px;
  --ease: cubic-bezier(0.22, 0.8, 0.2, 1);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  text-wrap: pretty;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 15px;
  line-height: 1.65;
  letter-spacing: 0.01em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: rgba(255, 90, 43, 0.28); color: #fff; }

/* scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #08060d; }
::-webkit-scrollbar-thumb { background: #3a2030; border: 2px solid #08060d; }
::-webkit-scrollbar-thumb:hover { background: #5a2a44; }

/* ---------- background FX ---------- */
.fx { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }

.fx-grid {
  position: absolute; inset: -10%;
  background-image:
    linear-gradient(to right, rgba(255, 90, 43, 0.055) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 90, 43, 0.055) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 78% 62% at 50% 24%, #000 0%, transparent 82%);
  -webkit-mask-image: radial-gradient(ellipse 78% 62% at 50% 24%, #000 0%, transparent 82%);
}

.fx-glow { position: absolute; inset: 0; }
.fx-glow::before,
.fx-glow::after { content: ''; position: absolute; border-radius: 50%; filter: blur(90px); }
.fx-glow::before {
  width: 52vw; height: 52vw; left: -16vw; top: -22vw;
  background: radial-gradient(circle, rgba(255, 90, 43, 0.30), transparent 68%);
}
.fx-glow::after {
  width: 44vw; height: 44vw; right: -14vw; top: 8vw;
  background: radial-gradient(circle, rgba(162, 75, 255, 0.16), transparent 70%);
}

.fx-scan {
  position: absolute; inset: 0;
  background: repeating-linear-gradient(to bottom, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 3px);
  opacity: 0.35;
  mix-blend-mode: overlay;
}

.fx-noise {
  position: absolute; inset: 0; opacity: 0.055;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/></filter><rect width='140' height='140' filter='url(%23n)' opacity='0.55'/></svg>");
  mix-blend-mode: overlay;
}

/* ---------- shell ---------- */
.shell {
  position: relative; z-index: 1;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 16px 40px;
}

/* ---------- topbar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; gap: 12px;
  padding: 12px 0 11px;
  margin: 0 -16px;
  padding-left: 16px; padding-right: 16px;
  background: linear-gradient(to bottom, rgba(8, 6, 13, 0.94), rgba(8, 6, 13, 0.72) 70%, transparent);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s;
}
.topbar.stuck { border-bottom-color: var(--line-soft); background: rgba(8, 6, 13, 0.93); }

.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand img, .brand svg { height: 42px; width: auto; flex: none; filter: drop-shadow(0 0 1.5px rgba(255, 236, 226, 0.45)) drop-shadow(0 0 12px rgba(255, 90, 43, 0.42)) drop-shadow(0 2px 6px rgba(0, 0, 0, 0.7)); }
.brand { position: relative; }
.brand::before { content: ''; position: absolute; left: -6px; top: 50%; width: 62px; height: 62px; transform: translateY(-50%); border-radius: 50%; background: radial-gradient(circle, rgba(255, 90, 43, 0.16), transparent 68%); pointer-events: none; }
.brand-txt { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.brand-cn { font-size: 15px; font-weight: 700; letter-spacing: 0.14em; }
.brand-en {
  font-family: var(--font-display); font-size: 8px; font-weight: 700;
  letter-spacing: 0.24em; color: var(--dim); margin-top: 2px;
}

.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }

.status {
  display: flex; align-items: center; gap: 6px;
  font-family: var(--font-display); font-size: 8px; font-weight: 700;
  letter-spacing: 0.16em; color: var(--muted);
  border: 1px solid var(--line-soft); padding: 5px 9px;
  clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
}
.status i {
  width: 5px; height: 5px; background: var(--lime); border-radius: 50%;
  box-shadow: 0 0 7px var(--lime); animation: pulse 2.4s var(--ease) infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

.top-cta {
  font-family: var(--font-display); font-size: 9px; font-weight: 700; letter-spacing: 0.14em;
  color: #1a0803; background: var(--cyan); padding: 7px 13px;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
  transition: box-shadow 0.25s, transform 0.25s, background 0.25s;
}
.top-cta:hover { box-shadow: 0 0 22px rgba(255, 90, 43, 0.55); transform: translateY(-1px); }

/* ---------- hero ---------- */
.hero {
  position: relative; margin-top: 14px; overflow: hidden; isolation: isolate;
  width: 100%; aspect-ratio: 16 / 11;
  clip-path: polygon(20px 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%, 0 20px);
  background: #0a0710;
}
.hero::after {
  content: ''; position: absolute; inset: 0; z-index: 3; pointer-events: none;
  border: 1px solid rgba(255, 90, 43, 0.32);
  clip-path: polygon(20px 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%, 0 20px);
  background: linear-gradient(180deg, rgba(8, 6, 13, 0.1), rgba(8, 6, 13, 0.05));
}

.hero-slide {
  position: absolute; inset: 0;
  opacity: 0; transform: scale(1.045);
  transition: opacity 1s var(--ease), transform 7s linear;
  will-change: opacity, transform;
}
.hero-slide.on { opacity: 1; transform: scale(1); }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; filter: saturate(1.12) contrast(1.05); }
.hero-slide::after {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 6, 13, 0.95) 0%, rgba(8, 6, 13, 0.78) 34%, rgba(8, 6, 13, 0.28) 68%, rgba(8, 6, 13, 0.5) 100%),
    linear-gradient(0deg, rgba(8, 6, 13, 0.9) 0%, transparent 52%);
}

.hero-body {
  position: absolute; z-index: 4; left: 20px; right: 20px; bottom: 30px;
  display: flex; flex-direction: column; align-items: flex-start; gap: 9px;
  max-width: 620px;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-size: 8.5px; font-weight: 700;
  letter-spacing: 0.3em; color: var(--cyan); text-transform: uppercase;
}
.eyebrow::before {
  content: ''; width: 20px; height: 1px;
  background: var(--cyan); box-shadow: 0 0 8px var(--cyan);
}
.hero-title {
  margin: 0; font-size: clamp(28px, 7.6vw, 50px); line-height: 1.04;
  font-weight: 700; letter-spacing: 0.04em;
  text-shadow: 0 0 28px rgba(255, 90, 43, 0.28), 0 4px 18px rgba(0, 0, 0, 0.7);
}
.hero-title em {
  font-style: normal;
  background: linear-gradient(100deg, #ffffff 12%, #ffd2bd 58%, #ff7a4a 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p {
  margin: 0; font-size: 12.5px; color: #d3bfcd; letter-spacing: 0.05em; max-width: 30em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.8);
}
.hero-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.hero-tags span {
  font-family: var(--font-display); font-size: 8px; font-weight: 700; letter-spacing: 0.14em;
  color: #d8c4d6; border: 1px solid rgba(255, 90, 43, 0.28);
  padding: 3px 7px; background: rgba(255, 90, 43, 0.07);
}
.hero-tags span.hot { color: #e0c8ff; border-color: rgba(162, 75, 255, 0.4); background: rgba(162, 75, 255, 0.1); }

.btn {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 8px;
  font-size: 12.5px; font-weight: 700; letter-spacing: 0.1em;
  padding: 10px 18px; color: #1a0803; background: var(--cyan);
  clip-path: polygon(9px 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%, 0 9px);
  transition: box-shadow 0.25s, transform 0.2s, background 0.2s;
}
.btn:hover { background: #ff9a6b; box-shadow: 0 0 26px rgba(255, 90, 43, 0.5); transform: translateY(-1px); }
.btn.ghost {
  background: transparent; color: var(--ink); border: 1px solid var(--line);
  clip-path: none; padding: 9px 16px;
}
.btn.ghost:hover { border-color: var(--cyan); box-shadow: 0 0 18px rgba(255, 90, 43, 0.25); }

.hero-counter {
  position: absolute; z-index: 5; top: 16px; right: 18px;
  font-family: var(--font-display); font-size: 9px; font-weight: 700; letter-spacing: 0.16em;
  color: #cbb6c9; display: flex; align-items: center; gap: 6px;
}
.hero-counter b { color: var(--cyan); font-size: 13px; }
.hero-counter s { display: block; width: 14px; height: 1px; background: rgba(255, 255, 255, 0.35); }

.hero-dots {
  position: absolute; z-index: 5; right: 18px; bottom: 18px;
  display: flex; gap: 6px;
}
.hero-dots button {
  width: 18px; height: 3px; background: rgba(255, 255, 255, 0.28); padding: 0;
  transition: background 0.3s, width 0.3s;
}
.hero-dots button.on { width: 30px; background: var(--cyan); box-shadow: 0 0 10px rgba(255, 90, 43, 0.8); }

.hero-progress {
  position: absolute; z-index: 5; left: 0; bottom: 0; height: 2px; width: 100%;
  background: rgba(255, 255, 255, 0.06);
}
.hero-progress i {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--cyan), var(--magenta));
  box-shadow: 0 0 10px rgba(255, 90, 43, 0.6);
}

/* corner brackets */
.brk { position: relative; }
.brk::before, .brk::after {
  content: ''; position: absolute; width: 12px; height: 12px; pointer-events: none;
  border-color: var(--cyan); border-style: solid; opacity: 0.7;
}
.brk::before { top: -1px; left: -1px; border-width: 1.5px 0 0 1.5px; }
.brk::after { bottom: -1px; right: -1px; border-width: 0 1.5px 1.5px 0; }

/* ---------- ticker ---------- */
.ticker {
  margin-top: 12px; border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft);
  overflow: hidden; padding: 7px 0; position: relative;
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.ticker-track { display: flex; width: max-content; animation: slide 34s linear infinite; }
.ticker-track span {
  font-family: var(--font-display); font-size: 8.5px; font-weight: 700; letter-spacing: 0.22em;
  color: #b09ab5; white-space: nowrap; padding-right: 26px;
}
.ticker-track span b { color: var(--cyan); font-weight: 700; }
.ticker-track span i { color: var(--magenta); font-style: normal; }
@keyframes slide { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- panels ---------- */
.panel {
  position: relative; margin-top: 16px;
  background:
    linear-gradient(180deg, rgba(20, 13, 28, 0.92), rgba(7, 11, 20, 0.9));
  border: 1px solid var(--line-soft);
  padding: 14px 13px 13px;
}
.panel::before {
  content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 90, 43, 0.55), rgba(255, 90, 43, 0) 72%);
}

.ph { display: flex; align-items: center; gap: 9px; padding-bottom: 11px; border-bottom: 1px solid var(--line-hard); }
.ph .mark { width: 3px; height: 15px; background: var(--cyan); box-shadow: 0 0 10px rgba(255, 90, 43, 0.9); flex: none; }
.ph h2 { margin: 0; font-size: 15px; font-weight: 700; letter-spacing: 0.1em; white-space: nowrap; }
.ph .en {
  font-family: var(--font-display); font-size: 8px; font-weight: 700; letter-spacing: 0.22em;
  color: var(--dim); margin-top: 3px;
}
.ph .r {
  margin-left: auto; font-family: var(--font-display); font-size: 9px; font-weight: 700;
  letter-spacing: 0.16em; color: var(--cyan-deep); white-space: nowrap;
}

/* ---------- card grid ---------- */
.grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin-top: 12px;
}

.card {
  display: block; position: relative; padding: 1px; height: 100%;
  background: linear-gradient(150deg, rgba(255, 90, 43, 0.34), rgba(255, 90, 43, 0.08) 42%, rgba(162, 75, 255, 0.16));
  clip-path: polygon(var(--n) 0, 100% 0, 100% calc(100% - var(--n)), calc(100% - var(--n)) 100%, 0 100%, 0 var(--n));
  transition: transform 0.28s var(--ease), filter 0.28s;
}
.card-in {
  position: relative; height: 100%; min-height: 104px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 10px;
  padding: 11px 11px 12px;
  background: linear-gradient(165deg, #150e1f 0%, #0b0813 62%, #0a0710 100%);
  clip-path: polygon(var(--n) 0, 100% 0, 100% calc(100% - var(--n)), calc(100% - var(--n)) 100%, 0 100%, 0 var(--n));
  overflow: hidden;
}
.card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 6px; }
.card-body { display: flex; flex-direction: column; gap: 1px; }
.card-brief { display: none; font-size: 11px; line-height: 1.55; color: #a08aa6; margin-top: 5px; font-style: normal; letter-spacing: 0.01em; }
.card .arr {
  position: absolute; right: 10px; bottom: 10px; width: 12px; height: 12px;
  color: var(--cyan); opacity: 0; transform: translateX(-4px);
  transition: opacity 0.25s, transform 0.25s;
}
.card .arr svg { width: 100%; height: 100%; }
.card:hover .arr { opacity: 1; transform: none; }
.card-in::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 88% -10%, rgba(255, 90, 43, 0.16), transparent 62%);
  opacity: 0; transition: opacity 0.3s;
}
.card:hover { transform: translateY(-3px); filter: drop-shadow(0 8px 20px rgba(255, 90, 43, 0.22)); }
.card:hover .card-in::before { opacity: 1; }

.card .idx {
  font-family: var(--font-display); font-size: 18px; font-weight: 900; line-height: 1;
  color: rgba(120, 190, 225, 0.16); letter-spacing: 0.02em;
  transition: color 0.3s; margin-top: -1px;
}
.card:hover .idx { color: rgba(255, 90, 43, 0.4); }

.card .ico { width: 17px; height: 17px; flex: none; color: var(--cyan-deep); transition: color 0.3s, transform 0.3s; }
.card:hover .ico { color: var(--cyan); transform: translateY(-1px); }
.card .ico svg { width: 100%; height: 100%; }

.card .cn { font-size: 13.5px; font-weight: 700; letter-spacing: 0.04em; line-height: 1.25; }
.card .en {
  font-family: var(--font-display); font-size: 7.5px; font-weight: 700;
  letter-spacing: 0.2em; color: var(--dim); transition: color 0.3s;
}
.card:hover .en { color: #ffb49a; }
.card .bar {
  position: absolute; left: 0; bottom: 0; width: 100%; height: 1px;
  background: linear-gradient(90deg, var(--cyan), transparent);
  transform: scaleX(0); transform-origin: left; transition: transform 0.4s var(--ease);
}
.card:hover .bar { transform: scaleX(1); }

/* ---------- stats strip ---------- */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  margin-top: 14px; background: var(--line-soft);
  border: 1px solid var(--line-soft);
}
.stat { background: rgba(12, 8, 18, 0.92); padding: 11px 8px 10px; text-align: center; }
.stat b {
  display: block; font-family: var(--font-display); font-size: 18px; font-weight: 900;
  color: #fff; line-height: 1; letter-spacing: 0; white-space: nowrap;
}
.stat b i { font-style: normal; font-size: 9px; color: var(--cyan); margin-left: 2px; letter-spacing: 0.02em; }
@media (max-width: 400px) {
  .stat b { font-size: 16px; }
  .stat b i { font-size: 8.5px; }
}
.stat span {
  display: block; margin-top: 5px; font-size: 10px; color: var(--muted);
  letter-spacing: 0.04em; line-height: 1.4;
}

/* ---------- content / detail page ---------- */
.page-head { margin-top: 16px; }
.back {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 16px;
  font-family: var(--font-display); font-size: 9px; font-weight: 700; letter-spacing: 0.18em;
  color: var(--muted); transition: color 0.25s;
}
.back .bi {
  width: 30px; height: 30px; display: grid; place-items: center;
  border: 1px solid var(--line-soft); color: var(--cyan);
  clip-path: polygon(7px 0, 100% 0, 100% calc(100% - 7px), calc(100% - 7px) 100%, 0 100%, 0 7px);
  transition: border-color 0.25s, box-shadow 0.25s;
}
.back:hover { color: var(--ink); }
.back:hover .bi { border-color: var(--cyan); box-shadow: 0 0 16px rgba(255, 90, 43, 0.28); }

.page-title h1 {
  margin: 6px 0 0; font-size: clamp(23px, 6vw, 34px); line-height: 1.16;
  font-weight: 700; letter-spacing: 0.03em;
}
.page-title h1 span { color: var(--cyan); }
.title-rule {
  width: 46px; height: 2px; margin-top: 12px;
  background: linear-gradient(90deg, var(--cyan), rgba(255, 90, 43, 0));
  box-shadow: 0 0 10px rgba(255, 90, 43, 0.5);
}
.page-meta { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.chip-sm {
  font-family: var(--font-display); font-size: 8px; font-weight: 700; letter-spacing: 0.16em;
  color: #c4b0c6; border: 1px solid var(--line-hard); background: rgba(255, 255, 255, 0.02);
  padding: 4px 8px;
}
.chip-sm.cy { color: var(--cyan); border-color: rgba(255, 90, 43, 0.3); background: rgba(255, 90, 43, 0.06); }

.lead {
  margin-top: 16px; padding: 15px 15px 15px 16px;
  background: linear-gradient(120deg, rgba(255, 90, 43, 0.07), rgba(17, 11, 24, 0.86) 45%);
  border: 1px solid rgba(255, 90, 43, 0.16);
  font-size: 14px; color: var(--ink-2); line-height: 1.85;
}
.lead strong { color: #fff; font-weight: 700; }

.block { margin-top: 18px; }
.block-h { display: flex; align-items: center; gap: 9px; margin-bottom: 11px; }
.block-h .num {
  font-family: var(--font-display); font-size: 9px; font-weight: 700; color: var(--cyan);
  letter-spacing: 0.1em; border: 1px solid rgba(255, 90, 43, 0.3); padding: 2px 5px;
}
.block-h h3 { margin: 0; font-size: 14.5px; font-weight: 700; letter-spacing: 0.09em; }
.block-h .line { flex: 1; height: 1px; background: linear-gradient(90deg, var(--line-soft), transparent); }

/* mechanism list */
.mech { display: grid; grid-template-columns: 1fr; gap: 8px; }
.mech-i {
  position: relative; padding: 12px 13px 12px 15px;
  background: linear-gradient(120deg, rgba(22, 14, 31, 0.95), rgba(12, 8, 18, 0.9));
  border: 1px solid var(--line-hard);
  transition: border-color 0.25s, background 0.25s, transform 0.25s;
}
.mech-i::before {
  content: ''; position: absolute; left: 0; top: 0; height: 100%; width: 2px;
  background: linear-gradient(180deg, var(--cyan), rgba(255, 90, 43, 0.05));
  opacity: 0.55;
}
.mech-i:hover { border-color: rgba(255, 90, 43, 0.28); background: rgba(20, 14, 29, 0.95); transform: translateX(2px); }
.mech-i .n {
  position: absolute; top: 9px; right: 11px;
  font-family: var(--font-display); font-size: 15px; font-weight: 900;
  color: rgba(255, 90, 43, 0.3);
}
.mech-i h4 { margin: 0 0 3px; font-size: 13.5px; font-weight: 700; letter-spacing: 0.05em; color: #fff; }
.mech-i p { margin: 0; font-size: 12.5px; color: var(--muted); line-height: 1.72; padding-right: 26px; }

/* table */
.tbl-wrap { overflow-x: auto; border: 1px solid var(--line-hard); background: rgba(12, 8, 18, 0.9); }
table.tbl { width: 100%; border-collapse: collapse; font-size: 12.5px; min-width: 460px; }
table.tbl thead th {
  text-align: left; padding: 9px 11px;
  font-family: var(--font-display); font-size: 8.5px; font-weight: 700;
  letter-spacing: 0.16em; color: var(--cyan); text-transform: uppercase;
  background: rgba(255, 90, 43, 0.06);
  border-bottom: 1px solid rgba(255, 90, 43, 0.2);
  white-space: nowrap;
}
table.tbl tbody td {
  padding: 9px 11px; border-bottom: 1px solid rgba(255, 255, 255, 0.045);
  color: var(--ink-2); vertical-align: top;
}
table.tbl tbody tr:last-child td { border-bottom: 0; }
table.tbl tbody tr:hover td { background: rgba(255, 90, 43, 0.045); }
table.tbl td:first-child { color: #fff; font-weight: 700; white-space: nowrap; }
table.tbl td.mono, table.tbl td .mono { font-family: var(--font-display); font-size: 11px; letter-spacing: 0.08em; }

/* steps */
.steps { display: grid; gap: 8px; }
.step {
  display: grid; grid-template-columns: 34px 1fr; gap: 11px; align-items: start;
  padding: 11px 12px; background: rgba(15, 10, 22, 0.85); border: 1px solid var(--line-hard);
  position: relative;
}
.step .s-n {
  width: 30px; height: 30px; display: grid; place-items: center;
  font-family: var(--font-display); font-size: 11px; font-weight: 900; color: var(--cyan);
  border: 1px solid rgba(255, 90, 43, 0.35); background: rgba(255, 90, 43, 0.07);
  clip-path: polygon(7px 0, 100% 0, 100% calc(100% - 7px), calc(100% - 7px) 100%, 0 100%, 0 7px);
}
.step h4 { margin: 2px 0 2px; font-size: 13px; font-weight: 700; }
.step p { margin: 0; font-size: 12.5px; color: var(--muted); line-height: 1.7; }

/* note */
.note {
  margin-top: 14px; padding: 11px 13px;
  border: 1px solid rgba(162, 75, 255, 0.26); border-left-width: 2px;
  background: linear-gradient(100deg, rgba(162, 75, 255, 0.08), rgba(17, 11, 24, 0.7));
  font-size: 12.5px; color: #d3c4dc; line-height: 1.75;
}
.note b { color: var(--magenta); font-family: var(--font-display); font-size: 9px; letter-spacing: 0.18em; margin-right: 7px; }

/* kv facts */
.kv { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line-hard); border: 1px solid var(--line-hard); }
.kv div { background: rgba(12, 8, 18, 0.94); padding: 10px 11px; }
.kv dt { font-size: 10px; color: var(--dim); letter-spacing: 0.12em; margin: 0 0 3px; }
.kv dd { margin: 0; font-size: 13px; font-weight: 700; color: #fff; }
.kv dd small { color: var(--cyan); font-family: var(--font-display); font-size: 9px; letter-spacing: 0.1em; margin-left: 4px; }

/* pager */
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 22px; }
.pg {
  padding: 12px; border: 1px solid var(--line-hard); background: rgba(14, 10, 21, 0.9);
  display: flex; flex-direction: column; gap: 2px; transition: border-color 0.25s, background 0.25s;
}
.pg:hover { border-color: rgba(255, 90, 43, 0.34); background: rgba(21, 14, 30, 0.95); }
.pg span { font-family: var(--font-display); font-size: 8px; letter-spacing: 0.2em; color: var(--dim); }
.pg b { font-size: 13px; font-weight: 700; }
.pg.next { text-align: right; }

/* ---------- gallery ---------- */
.filters { display: flex; gap: 6px; margin-top: 14px; overflow-x: auto; padding-bottom: 3px; scrollbar-width: none; }
.filters::-webkit-scrollbar { display: none; }
.chip {
  flex: none; font-size: 11.5px; font-weight: 700; letter-spacing: 0.08em; padding: 6px 12px;
  color: var(--muted); border: 1px solid var(--line-hard); background: rgba(255, 255, 255, 0.02);
  clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
  transition: all 0.22s;
}
.chip:hover { color: var(--ink); border-color: rgba(255, 90, 43, 0.3); }
.chip.on { color: #1a0803; background: var(--cyan); border-color: var(--cyan); box-shadow: 0 0 16px rgba(255, 90, 43, 0.35); }

.gal { display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px; margin-top: 12px; }
.tile {
  position: relative; overflow: hidden; aspect-ratio: 4 / 5; background: #0a0710;
  border: 1px solid var(--line-hard); cursor: zoom-in;
}
.tile.wide { grid-column: span 2; aspect-ratio: 16 / 9; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease), filter 0.4s; filter: saturate(1.05); }
.tile:hover img { transform: scale(1.055); filter: saturate(1.2) brightness(1.06); }
.tile .ov {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end;
  padding: 12px; background: linear-gradient(0deg, rgba(8, 6, 13, 0.92) 4%, rgba(8, 6, 13, 0.15) 52%, transparent);
  transition: opacity 0.3s;
}
.tile .ov em {
  font-family: var(--font-display); font-style: normal; font-size: 7.5px; font-weight: 700;
  letter-spacing: 0.2em; color: var(--cyan); margin-bottom: 4px;
}
.tile .ov b { font-size: 13px; font-weight: 700; letter-spacing: 0.04em; }
.tile .ov i { font-style: normal; font-size: 10.5px; color: var(--muted); margin-top: 3px; }
.tile .dl {
  position: absolute; top: 9px; right: 9px; width: 28px; height: 28px; display: grid; place-items: center;
  background: rgba(8, 6, 13, 0.7); border: 1px solid var(--line-soft); color: var(--cyan);
  opacity: 0; transform: translateY(-4px); transition: all 0.25s;
}
.tile:hover .dl { opacity: 1; transform: none; }

/* vector cards inside gallery */
.spec-card {
  position: relative; aspect-ratio: 4 / 5; overflow: hidden; cursor: pointer;
  display: flex; flex-direction: column; justify-content: space-between; padding: 14px;
  background:
    radial-gradient(circle at 78% 12%, rgba(255, 90, 43, 0.16), transparent 58%),
    linear-gradient(160deg, #150e20, #0a0710);
  border: 1px solid var(--line-hard);
}
.spec-card .sc-top { font-family: var(--font-display); font-size: 7.5px; letter-spacing: 0.2em; color: var(--cyan); font-weight: 700; }
.spec-card .sc-mid { display: grid; place-items: center; }
.spec-card .sc-mid svg, .spec-card .sc-mid img { width: 74%; max-width: 120px; height: auto; filter: drop-shadow(0 0 14px rgba(255, 90, 43, 0.4)); }
.spec-card b { font-size: 13px; display: block; font-weight: 700; }
.spec-card i { font-style: normal; font-size: 10.5px; color: var(--muted); }
.swatches { display: flex; gap: 4px; margin-top: 8px; }
.swatches span { height: 14px; flex: 1; }

/* ---------- download page ---------- */
.dl-grid { display: grid; grid-template-columns: 1fr; gap: 9px; margin-top: 14px; }
.dl-card {
  display: grid; grid-template-columns: 42px 1fr auto; gap: 12px; align-items: center;
  padding: 13px; border: 1px solid var(--line-hard); background: rgba(15, 10, 22, 0.9);
  transition: border-color 0.25s, background 0.25s;
}
.dl-card:hover { border-color: rgba(255, 90, 43, 0.3); background: rgba(20, 13, 29, 0.95); }
.dl-card .dico {
  width: 42px; height: 42px; display: grid; place-items: center; color: var(--cyan);
  border: 1px solid var(--line-soft); background: rgba(255, 90, 43, 0.05);
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}
.dl-card .dico svg { width: 20px; height: 20px; }
.dl-card h4 { margin: 0; font-size: 13.5px; font-weight: 700; }
.dl-card p { margin: 2px 0 0; font-size: 11px; color: var(--dim); font-family: var(--font-display); letter-spacing: 0.1em; }
.dl-btn {
  font-size: 11px; font-weight: 700; letter-spacing: 0.1em; padding: 7px 13px;
  color: var(--cyan); border: 1px solid rgba(255, 90, 43, 0.35); background: rgba(255, 90, 43, 0.07);
  white-space: nowrap; transition: all 0.22s;
}
.dl-btn:hover { background: var(--cyan); color: #1a0803; box-shadow: 0 0 18px rgba(255, 90, 43, 0.4); }

.qr-box {
  margin-top: 14px; display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center;
  padding: 15px; border: 1px dashed rgba(255, 90, 43, 0.25); background: rgba(255, 90, 43, 0.035);
}
.qr-box h4 { margin: 0 0 4px; font-size: 13.5px; }
.qr-box p { margin: 0; font-size: 11.5px; color: var(--muted); line-height: 1.65; }
.qr-slot {
  width: 96px; height: 96px; display: grid; place-items: center; text-align: center;
  border: 1px solid var(--line-soft); background:
    repeating-linear-gradient(45deg, rgba(255, 90, 43, 0.06) 0 6px, transparent 6px 12px);
  font-family: var(--font-display); font-size: 7.5px; letter-spacing: 0.12em; color: var(--dim);
  padding: 6px; line-height: 1.6;
}

/* ---------- footer ---------- */
.foot { margin-top: 34px; padding-top: 18px; border-top: 1px solid var(--line-hard); text-align: center; }
.foot .fbrand {
  display: flex; align-items: center; justify-content: center; gap: 9px;
  font-size: 13px; font-weight: 700; letter-spacing: 0.22em; color: #eee0ec;
}
.foot .fbrand img, .foot .fbrand svg { height: 26px; width: auto; opacity: 0.9; }
.foot .fen {
  font-family: var(--font-display); font-size: 8px; font-weight: 700; letter-spacing: 0.34em;
  color: var(--dim); margin-top: 7px;
}
.foot .fnote { font-size: 10.5px; color: #6a5670; letter-spacing: 0.06em; margin-top: 12px; }
.foot .fnote a { color: #8a7590; }
.foot .fnote a:hover { color: var(--cyan); }
.foot .fsep { width: 40px; height: 1px; background: var(--line-soft); margin: 14px auto 0; }

/* ---------- lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 90; display: grid; place-items: center;
  background: rgba(6, 4, 10, 0.94); backdrop-filter: blur(10px);
  padding: 20px; opacity: 0; pointer-events: none; transition: opacity 0.3s;
}
.lightbox.on { opacity: 1; pointer-events: auto; }
.lightbox figure { margin: 0; max-width: 900px; width: 100%; }
.lightbox img { width: 100%; max-height: 76vh; object-fit: contain; border: 1px solid var(--line-soft); }
.lightbox figcaption { display: flex; align-items: center; gap: 10px; margin-top: 10px; font-size: 12px; color: var(--muted); }
.lightbox figcaption b { color: #fff; font-size: 13px; }
.lb-close {
  position: absolute; top: 18px; right: 18px; width: 38px; height: 38px;
  display: grid; place-items: center; border: 1px solid var(--line-soft); color: var(--ink);
}
.lb-close:hover { border-color: var(--cyan); color: var(--cyan); }

/* ---------- reveal ---------- */
.rv { opacity: 0; transform: translateY(14px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.rv.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (min-width: 560px) {
  .card-brief { display: block; }
}

@media (min-width: 700px) {
  .shell { padding: 0 28px 54px; }
  .topbar { margin: 0 -28px; padding-left: 28px; padding-right: 28px; }
  .brand img, .brand svg { height: 46px; }
  .brand-cn { font-size: 16px; }
  .hero { aspect-ratio: 21 / 8; margin-top: 20px; }
  .hero-body { left: 34px; right: 34px; bottom: 38px; gap: 11px; }
  .hero p { font-size: 13.5px; }
  .panel { padding: 18px 18px 17px; margin-top: 20px; }
  .grid { gap: 12px; margin-top: 15px; }
  .card-in { min-height: 138px; padding: 14px 15px 15px; gap: 12px; }
  .card .cn { font-size: 15.5px; }
  .card .idx { font-size: 24px; }
  .card-brief { display: block; }
  .card .bar { display: none; }
  .mech { grid-template-columns: 1fr 1fr; }
  .gal { grid-template-columns: repeat(3, 1fr); }
  .dl-grid { grid-template-columns: 1fr 1fr; }
  .stats .stat b { font-size: 24px; }
  .block { margin-top: 22px; }
  .lead { padding: 18px 20px; font-size: 14.5px; }
  .pager { margin-top: 26px; }
}

@media (min-width: 980px) {
  .hero { aspect-ratio: 2.6 / 1; }
  .hero-title { font-size: 52px; }
}

@media (max-width: 380px) {
  .brand-en { display: none; }
  .status { display: none; }
  .card .cn { font-size: 12.5px; }
  .stat span { font-size: 9px; }
  .page-title h1 { font-size: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
  .rv { opacity: 1; transform: none; }
  .hero-slide { transform: none !important; }
}

/* ---------- top nav ---------- */
.topnav { display: none; margin-left: auto; margin-right: 14px; gap: 2px; }
.topnav a {
  position: relative; font-size: 12.5px; font-weight: 700; letter-spacing: 0.1em;
  color: var(--muted); padding: 7px 11px; transition: color 0.22s, background 0.22s;
}
.topnav a:hover { color: var(--ink); background: rgba(255, 90, 43, 0.06); }
.topnav a.on { color: var(--cyan); }
.topnav a.on::after {
  content: ''; position: absolute; left: 11px; right: 11px; bottom: 1px; height: 1px;
  background: var(--cyan); box-shadow: 0 0 8px var(--cyan);
}
@media (min-width: 640px) { .topnav { display: flex; } }

/* ---------- inline icon sizing ---------- */
.btn svg { width: 13px; height: 13px; stroke-width: 2; }
.back .bi svg { width: 14px; height: 14px; }
.tile .dl svg { width: 14px; height: 14px; }

/* ---------- notices ---------- */
.notices { display: grid; gap: 1px; margin-top: 10px; background: var(--line-hard); }
.notice {
  display: grid; grid-template-columns: 44px auto 1fr; gap: 10px; align-items: baseline;
  padding: 11px 12px; background: rgba(12, 8, 18, 0.92);
  transition: background 0.22s;
}
.notice:hover { background: rgba(21, 14, 30, 0.96); }
.n-date {
  font-family: var(--font-display); font-size: 10px; font-weight: 700;
  letter-spacing: 0.08em; color: var(--dim);
}
.n-tag {
  font-size: 10px; font-weight: 700; letter-spacing: 0.1em; color: var(--cyan);
  border: 1px solid rgba(255, 90, 43, 0.28); padding: 1px 6px; white-space: nowrap;
  background: rgba(255, 90, 43, 0.06);
}
.n-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.n-txt b { font-size: 13px; font-weight: 700; color: var(--ink); }
.n-txt i { font-style: normal; font-size: 11.5px; color: #bfa9bd; line-height: 1.6; }

/* ---------- a11y ---------- */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

@media (min-width: 700px) {
  .notice { grid-template-columns: 52px auto 1fr; padding: 12px 14px; }
  .n-txt { flex-direction: row; align-items: baseline; gap: 10px; }
  .n-txt i { font-size: 12px; }
}

/* ---------- table scroll hint ---------- */
.tbl-hint {
  display: none; margin-top: 7px; text-align: center;
  font-family: var(--font-display); font-size: 8.5px; font-weight: 700;
  letter-spacing: 0.2em; color: #6a5670;
}
@media (max-width: 699px) { .tbl-hint { display: block; } }

/* ---------- gallery spec internals ---------- */
.spec-card .sc-mid { align-self: stretch; }
.palette-mid { display: flex; flex-direction: column; gap: 6px; justify-content: center; width: 100%; }
.palette-mid .pr { display: flex; align-items: center; gap: 8px; }
.palette-mid .pr i { width: 26px; height: 20px; flex: none; border: 1px solid rgba(255, 255, 255, 0.14); }
.palette-mid .pr span {
  font-family: var(--font-display); font-size: 7.5px; font-weight: 700;
  letter-spacing: 0.14em; color: #8a7590;
}
.type-mid { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; }
.type-sample {
  font-family: var(--font-display); font-size: 40px; font-weight: 900;
  line-height: 1; letter-spacing: -0.02em; color: #fff;
  text-shadow: 0 0 22px rgba(255, 90, 43, 0.35);
}
.type-cn { font-size: 15px; font-weight: 700; letter-spacing: 0.2em; color: var(--cyan); text-indent: 0.2em; }
.type-meta {
  font-family: var(--font-display); font-size: 6.5px; font-weight: 700;
  letter-spacing: 0.14em; color: #7a6480; text-align: center;
}
.icon-mid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
  width: 100%; place-items: center; padding: 4px 0;
}
.icon-mid span { width: 22px; height: 22px; color: var(--cyan-deep); }
.icon-mid svg { width: 100%; height: 100%; }

/* ---------- download cards: no squeeze on narrow screens ---------- */
.dl-card > div { min-width: 0; }
.dl-card p { line-height: 1.5; }
@media (max-width: 520px) {
  .dl-card { grid-template-columns: 40px 1fr; row-gap: 9px; }
  .dl-card .dico { width: 40px; height: 40px; }
  .dl-btn { grid-column: 2; justify-self: start; margin-top: 2px; }
}

/* ---------- block numbering: lighter than step boxes ---------- */
.block-h .num {
  border: 0; background: none; padding: 0; color: var(--cyan);
  opacity: 0.75; position: relative; letter-spacing: 0.14em;
}
.block-h .num::after {
  content: '/'; margin-left: 3px; color: var(--dim); opacity: 0.8;
}

/* ---------- footer icp ---------- */
.foot .fnote-icp { margin-top: 6px; font-size: 10px; color: #5f4d66; letter-spacing: 0.08em; }

/* ---------- focus visibility ---------- */
a:focus-visible, button:focus-visible, .tile:focus-visible, .spec-card:focus-visible {
  outline: 2px solid var(--cyan); outline-offset: 3px;
}
.card:focus-visible { outline-offset: 2px; }

/* ---------- spec card download badge ---------- */
.sc-dl {
  display: inline-flex; align-items: center; gap: 4px; margin-top: 7px;
  font-style: normal; font-family: var(--font-display); font-size: 7.5px;
  font-weight: 700; letter-spacing: 0.14em; color: var(--cyan);
}
.sc-dl svg { width: 10px; height: 10px; }
a.spec-card:hover .sc-dl { color: #ffc2a8; }

/* ================= v2 : brand logo / documents ================= */

/* hero brand logo overlay */
.hero-slide img.hero-title-logo {
  height: 68px; width: auto; max-width: 62%; object-fit: contain;
  margin: 2px 0 4px; display: block;
  filter: drop-shadow(0 0 1.5px rgba(255, 236, 226, 0.5)) drop-shadow(0 10px 26px rgba(0, 0, 0, 0.85));
}
@media (min-width: 700px) { .hero-slide img.hero-title-logo { height: 92px; max-width: 46%; } }
@media (min-width: 980px) { .hero-slide img.hero-title-logo { height: 108px; max-width: 40%; } }

/* download / documents */
.file-grid { display: grid; gap: 10px; margin-top: 14px; }
@media (min-width: 700px) { .file-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; } }

.file-card {
  display: flex; flex-direction: column; gap: 5px; padding: 15px 14px 14px;
  border: 1px solid var(--line-hard);
  background: linear-gradient(165deg, rgba(21, 14, 31, 0.95), rgba(11, 8, 19, 0.92));
  position: relative; overflow: hidden;
}
.file-card::before {
  content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 1px;
  background: linear-gradient(90deg, rgba(255, 90, 43, 0.6), transparent 70%);
}
.file-card .fc-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.file-card .dico {
  width: 40px; height: 40px; display: grid; place-items: center; color: var(--cyan);
  border: 1px solid var(--line-soft); background: rgba(255, 90, 43, 0.06);
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}
.file-card .dico svg { width: 19px; height: 19px; }
.fc-tag {
  font-family: var(--font-display); font-size: 7.5px; font-weight: 700; letter-spacing: 0.16em;
  color: #b09ab5; border: 1px solid var(--line-soft); padding: 3px 7px;
}
.fc-tag.lock { color: #e0c8ff; border-color: rgba(162, 75, 255, 0.42); background: rgba(162, 75, 255, 0.1); }
.fc-tag.def { color: #ffe0d2; border-color: rgba(255, 90, 43, 0.55); background: rgba(255, 90, 43, 0.16); }
.fc-actions {
  display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; padding-top: 10px;
  border-top: 1px solid var(--line-hard);
}
.fc-actions .dl-btn { flex: 1 1 auto; text-align: center; padding: 7px 10px; font-size: 10.5px; }
.file-card h4 { margin: 0; font-size: 15px; font-weight: 700; letter-spacing: 0.03em; color: #fff; }
.fc-en {
  font-family: var(--font-display); font-size: 7.5px; font-weight: 700;
  letter-spacing: 0.2em; color: var(--dim);
}
.file-card p { margin: 4px 0 0; font-size: 12px; line-height: 1.7; color: var(--muted); flex: 1; }
.fc-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin-top: 8px; padding-top: 10px; border-top: 1px solid var(--line-hard);
}
.fc-meta { font-family: var(--font-display); font-size: 7.5px; letter-spacing: 0.1em; color: var(--dim); }

.terms { margin: 4px 0 0; padding-left: 18px; font-size: 12.5px; line-height: 1.85; color: var(--muted); }
.terms li { margin-bottom: 7px; }
.terms li::marker { color: var(--cyan); }

/* print */
@media print {
  .fx, .topbar, .ticker, .hero-dots, .hero-counter, .hero-progress, .pager, .btn, .filters { display: none !important; }
  body { background: #fff !important; color: #111 !important; }
  .shell { max-width: none; padding: 0 12mm; }
  .hero { aspect-ratio: auto; height: auto; background: none; clip-path: none; }
  .hero-slide { position: relative; opacity: 1 !important; transform: none !important; }
  .hero-slide:not(.on) { display: none; }
  .hero-slide img, .hero-logo { display: none; }
  .hero-slide::after { display: none; }
  .hero-body { position: relative; inset: auto; padding: 0 0 14px; max-width: none; }
  .hero-title em { color: #111 !important; -webkit-text-fill-color: #111 !important; background: none; }
  .panel, .mech-i, .step, .lead, .tbl-wrap, .note, .file-card, .kv div, .card-in, .stats, .stat {
    background: #fff !important; color: #111 !important; border-color: #d8d8d8 !important; box-shadow: none !important;
  }
  .card { background: none !important; }
  .page-title h1, .block-h h3, .mech-i h4, .step h4, .card .cn, .file-card h4, td, dd { color: #111 !important; }
  a, .n-txt i, .terms, .card-brief { color: #333 !important; }
  .eyebrow, .block-h .num, .fc-tag { color: #b03a12 !important; }
  .card-brief { display: block !important; }
}

/* ================= v3 : asset library ================= */

.lib-toolbar {
  display: flex; flex-direction: column; align-items: stretch; gap: 9px; margin-top: 14px;
}
.lib-toolbar .filters { margin-top: 0; flex: 1; min-width: 0; }
.chip em {
  font-style: normal; font-family: var(--font-display); font-size: 8px;
  margin-left: 5px; opacity: 0.55;
}
.chip.on em { opacity: 0.8; }

.lib-search {
  display: flex; align-items: center; gap: 7px; flex: none;
  border: 1px solid rgba(255, 90, 43, 0.22); background: rgba(255, 90, 43, 0.05);
  padding: 7px 11px; color: var(--cyan);
}
.lib-search svg { width: 14px; height: 14px; flex: none; stroke-width: 2; }
.lib-toolbar .filters {
  mask-image: linear-gradient(90deg, #000 0, #000 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, #000 0, #000 92%, transparent 100%);
  padding-right: 14px;
}
.lib-search input {
  border: 0; background: none; color: var(--ink); font: inherit; font-size: 12px;
  flex: 1; width: auto; min-width: 0; outline: none;
}
.lib-search input::placeholder { color: var(--dim); }
.lib-search:focus-within { border-color: rgba(255, 90, 43, 0.4); }

.lib-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px; margin-top: 12px; }
@media (min-width: 700px) {
  .lib-toolbar { flex-direction: row; align-items: center; }
  .lib-search { width: 190px; }
}
@media (min-width: 700px) { .lib-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; } }
@media (min-width: 1024px) { .lib-grid { grid-template-columns: repeat(4, 1fr); } }

.lib-tile {
  display: block; padding: 0; text-align: left; position: relative; cursor: pointer;
  border: 1px solid var(--line-hard); background: linear-gradient(165deg, rgba(21, 14, 31, 0.9), rgba(9, 7, 15, 0.95));
  overflow: hidden; transition: transform 0.28s var(--ease), border-color 0.28s, box-shadow 0.28s;
}
.lib-tile:hover { transform: translateY(-3px); border-color: rgba(255, 90, 43, 0.4); box-shadow: 0 10px 26px rgba(0, 0, 0, 0.5); }
.lt-media { display: block; position: relative; aspect-ratio: 3 / 4; overflow: hidden; background: #0a0710; }
.lt-media img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform 0.7s var(--ease); }
.lib-tile:hover .lt-media img { transform: scale(1.04); }
.lt-info { display: block; padding: 9px 10px 10px; border-top: 1px solid var(--line-hard); }
.lt-info b { display: block; font-size: 12.5px; font-weight: 700; color: var(--ink); letter-spacing: 0.02em; }
.lt-info i {
  display: block; margin-top: 2px; font-style: normal; font-size: 9.5px;
  color: var(--dim); letter-spacing: 0.03em; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
}
.lt-badge {
  position: absolute; top: 8px; right: 8px; z-index: 2;
  font-family: var(--font-display); font-size: 7.5px; font-weight: 700; letter-spacing: 0.12em;
  color: #ffd9c9; background: rgba(8, 4, 8, 0.72); border: 1px solid rgba(255, 90, 43, 0.4);
  padding: 3px 6px; backdrop-filter: blur(4px);
}
.lt-badge.play {
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  padding: 0; color: #fff; border-color: rgba(255, 255, 255, 0.35); background: rgba(8, 4, 8, 0.55);
}
.lt-badge.play svg { width: 12px; height: 12px; fill: currentColor; stroke: none; margin-left: 2px; }

.spec-media { display: flex; align-items: center; justify-content: center; padding: 18px 16px; aspect-ratio: 3 / 4; }
.spec-media .palette-mid { width: 100%; }
.spec-media .icon-mid { width: 100%; }

.lib-empty {
  margin-top: 26px; padding: 34px 16px; text-align: center; font-size: 12.5px; color: var(--muted);
  border: 1px dashed var(--line-hard);
}

/* asset modal */
.asset-modal {
  position: fixed; inset: 0; z-index: 95; display: flex; align-items: center; justify-content: center;
  padding: 16px; background: rgba(4, 3, 7, 0.95); backdrop-filter: blur(10px);
  opacity: 0; pointer-events: none; transition: opacity 0.28s;
}
.asset-modal.on { opacity: 1; pointer-events: auto; }
.am-card {
  position: relative; width: 100%; max-width: 980px; max-height: calc(100vh - 32px);
  display: flex; flex-direction: column; overflow: hidden;
  background: linear-gradient(180deg, rgba(20, 13, 28, 0.98), rgba(9, 7, 15, 0.99));
  border: 1px solid rgba(255, 90, 43, 0.25);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7);
}
@media (min-width: 860px) { .am-card { flex-direction: row; } }
.am-media {
  flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center;
  background: #060409; overflow: auto; padding: 10px;
}
.am-media img { max-width: 100%; max-height: 62vh; object-fit: contain; }
@media (min-width: 860px) { .am-media img { max-height: calc(100vh - 60px); } }
.am-media video { width: 100%; max-height: 62vh; background: #000; }
.am-spec { width: 100%; max-width: 260px; }
.am-info {
  flex: none; width: 100%; padding: 16px 16px 14px; border-top: 1px solid var(--line-hard);
  display: flex; flex-direction: column; gap: 4px;
}
@media (min-width: 860px) {
  .am-info { width: 288px; border-top: 0; border-left: 1px solid var(--line-hard); padding: 18px 18px 16px; }
}
.am-cat {
  align-self: flex-start; font-family: var(--font-display); font-size: 7.5px; font-weight: 700;
  letter-spacing: 0.16em; color: var(--cyan); border: 1px solid rgba(255, 90, 43, 0.35);
  padding: 3px 7px; background: rgba(255, 90, 43, 0.08);
}
.am-info h3 { margin: 8px 0 0; font-size: 17px; font-weight: 700; color: #fff; }
.am-en { margin: 0; font-family: var(--font-display); font-size: 8px; letter-spacing: 0.18em; color: var(--dim); }
.am-note { margin: 6px 0 0; font-size: 11.5px; color: var(--muted); line-height: 1.6; }
.am-files { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; }
.am-file {
  display: flex; align-items: center; gap: 8px; padding: 9px 10px;
  border: 1px solid rgba(255, 90, 43, 0.28); background: rgba(255, 90, 43, 0.06);
  color: var(--ink); font-size: 11.5px; transition: background 0.2s, border-color 0.2s;
}
.am-file:hover { background: rgba(255, 90, 43, 0.14); border-color: rgba(255, 90, 43, 0.55); }
.am-file svg { width: 13px; height: 13px; color: var(--cyan); flex: none; }
.am-file span { flex: 1; }
.am-file em { font-style: normal; font-family: var(--font-display); font-size: 7.5px; color: var(--dim); }
.am-nav {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  margin-top: auto; padding-top: 14px;
}
.am-nav button {
  width: 34px; height: 34px; display: grid; place-items: center; color: var(--ink);
  border: 1px solid var(--line-soft); transition: border-color 0.2s, color 0.2s;
}
.am-nav button:hover { border-color: var(--cyan); color: var(--cyan); }
.am-nav button svg { width: 14px; height: 14px; }
.am-count { font-family: var(--font-display); font-size: 9px; letter-spacing: 0.14em; color: var(--dim); }
.am-hint { margin: 10px 0 0; font-size: 9.5px; color: #5f4d66; letter-spacing: 0.02em; }
.am-close {
  position: absolute; top: 10px; right: 10px; z-index: 3; width: 32px; height: 32px;
  display: grid; place-items: center; color: #fff; background: rgba(8, 4, 8, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.am-close:hover { border-color: var(--cyan); color: var(--cyan); }
.am-close svg { width: 13px; height: 13px; }
