:root {
  --bg: #0c0d10;
  --bg-soft: #13151a;
  --card: #181b21;
  --line: #262a33;
  --text: #e8eaef;
  --muted: #9aa1ad;
  --accent: #ffd23f;
  --accent-2: #6ee7b7;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Noto Sans SC", system-ui, sans-serif;
  line-height: 1.6;
}

.wrap { max-width: 1280px; margin: 0 auto; padding: 0 32px; }

/* ---------- header ---------- */
header {
  border-bottom: 1px solid var(--line);
  padding: 72px 0 48px;
  background:
    radial-gradient(800px 400px at 80% -10%, rgba(255, 210, 63, .07), transparent 60%),
    radial-gradient(600px 300px at 10% 0%, rgba(110, 231, 183, .05), transparent 60%);
}
.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .18em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 16px;
}
h1 {
  font-size: clamp(28px, 4.5vw, 52px);
  font-weight: 900;
  letter-spacing: -.02em;
  line-height: 1.15;
  max-width: 18em;
}
h1 em { font-style: normal; color: var(--accent); }
.lede { color: var(--muted); max-width: 46em; margin-top: 18px; font-size: 15px; }
.stats { display: flex; gap: 40px; margin-top: 36px; flex-wrap: wrap; }
.stat .num { font-family: var(--mono); font-size: 30px; font-weight: 700; color: var(--text); }
.stat .lbl { font-size: 12px; color: var(--muted); letter-spacing: .08em; }

/* ---------- section ---------- */
section { padding: 64px 0; border-bottom: 1px solid var(--line); }
h2 { font-size: 24px; font-weight: 800; margin-bottom: 6px; }
h2 .idx { font-family: var(--mono); color: var(--accent); font-size: 15px; margin-right: 10px; }
.sec-desc { color: var(--muted); font-size: 14px; margin-bottom: 28px; max-width: 52em; }

/* ---------- skill table ---------- */
.table-scroll {
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  -webkit-overflow-scrolling: touch;
}
.table-scroll table {
  min-width: 720px;
}
.skill-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.skill-table,
.verdict-table {
  max-width: 100%;
}
.skill-table th, .skill-table td {
  text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top;
}
.skill-table th { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; color: var(--muted); text-transform: uppercase; }
.skill-table td:first-child { font-family: var(--mono); white-space: nowrap; color: var(--accent-2); }
.skill-table .src { font-family: var(--mono); font-size: 12px; color: var(--muted); white-space: nowrap; }
.tag {
  display: inline-block; font-family: var(--mono); font-size: 11px; padding: 1px 8px;
  border: 1px solid var(--line); border-radius: 99px; color: var(--muted); margin-right: 6px;
}
.tag.hot { color: var(--accent); border-color: rgba(255, 210, 63, .35); }

/* ---------- task tabs ---------- */
.tabs { display: flex; gap: 10px; margin-bottom: 26px; flex-wrap: wrap; }
.tab {
  font-family: var(--mono); font-size: 13px; padding: 10px 18px; cursor: pointer;
  border: 1px solid var(--line); border-radius: 10px; background: var(--bg-soft); color: var(--muted);
  transition: all .18s ease;
}
.tab:hover { color: var(--text); border-color: #3a4150; }
.tab.active { background: var(--accent); color: #111; border-color: var(--accent); font-weight: 700; }

.task-brief {
  font-size: 13px; color: var(--muted); background: var(--bg-soft);
  border: 1px solid var(--line); border-left: 3px solid var(--accent);
  padding: 14px 18px; border-radius: 0 10px 10px 0; margin-bottom: 30px;
}
.task-brief b { color: var(--text); }

/* ---------- variant grid ---------- */
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
@media (min-width: 1080px) { .grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .grid { grid-template-columns: 1fr; } }

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  overflow: hidden; display: flex; flex-direction: column;
  transition: border-color .2s ease, transform .2s ease;
}
.card:hover { border-color: #3d4453; transform: translateY(-2px); }

.preview {
  position: relative; aspect-ratio: 16 / 10.5; overflow: hidden;
  background: #0a0b0d; cursor: zoom-in;
}
.preview iframe {
  width: 1280px; height: 860px; border: 0; transform-origin: 0 0;
  pointer-events: none; background: #fff;
}
.preview .hint {
  position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: flex-end;
  padding: 10px; opacity: 0; transition: opacity .2s ease;
  background: linear-gradient(transparent 70%, rgba(0,0,0,.45));
}
.preview:hover .hint { opacity: 1; }
.hint span {
  font-family: var(--mono); font-size: 11px; background: rgba(0,0,0,.7);
  color: #fff; padding: 4px 10px; border-radius: 6px;
}

.card-meta { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-meta .name { font-family: var(--mono); font-size: 14px; font-weight: 700; }
.card-meta .name .base { color: var(--muted); }
.card-meta .src2 { font-family: var(--mono); font-size: 11px; color: var(--muted); }
.card-meta .note { font-size: 12.5px; color: var(--muted); flex: 1; }
.card-actions { display: flex; gap: 10px; margin-top: 6px; }
.btn {
  font-family: var(--mono); font-size: 12px; text-decoration: none; cursor: pointer;
  padding: 7px 14px; border-radius: 8px; border: 1px solid var(--line);
  color: var(--text); background: transparent; transition: all .15s ease;
}
.btn:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- analysis ---------- */
.analysis { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
@media (max-width: 860px) { .analysis { grid-template-columns: 1fr; } }
.a-card { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 14px; padding: 22px 24px; }
.a-card h3 { font-family: var(--mono); font-size: 14px; color: var(--accent-2); margin-bottom: 10px; }
.a-card p, .a-card li { font-size: 13.5px; color: var(--muted); }
.a-card ul { padding-left: 18px; display: flex; flex-direction: column; gap: 6px; }
.a-card b { color: var(--text); }

.verdict-table { width: 100%; border-collapse: collapse; font-size: 13px; margin-top: 8px; }
.verdict-table th, .verdict-table td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; }
.verdict-table th { font-family: var(--mono); font-size: 11px; color: var(--muted); letter-spacing: .1em; }
.verdict-table td:first-child { font-family: var(--mono); color: var(--accent-2); white-space: nowrap; }
.dots { font-family: var(--mono); color: var(--accent); letter-spacing: 2px; }
.dots .off { color: #333842; }

/* ---------- modal ---------- */
.modal {
  position: fixed; inset: 0; background: rgba(5, 6, 8, .88); z-index: 50;
  display: none; flex-direction: column; backdrop-filter: blur(4px);
}
.modal.open { display: flex; }
.modal-bar {
  display: flex; align-items: center; gap: 14px; padding: 12px 20px;
  border-bottom: 1px solid var(--line); background: var(--bg);
}
.modal-bar .t { font-family: var(--mono); font-size: 13px; color: var(--text); flex: 1; }
.modal iframe { flex: 1; border: 0; background: #fff; width: 100%; }

footer { padding: 40px 0 64px; color: var(--muted); font-size: 12.5px; font-family: var(--mono); }
footer a { color: var(--accent-2); text-decoration: none; }

/* ---------- qiaomu site chrome ---------- */
.qiaomu-rail {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 40;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 8px;
  border: 1px solid rgba(232, 234, 239, .12);
  border-radius: 18px;
  background: rgba(12, 13, 16, .78);
  box-shadow: 0 18px 48px rgba(0, 0, 0, .35);
  backdrop-filter: blur(16px);
}

.qiaomu-action {
  position: relative;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid transparent;
  border-radius: 13px;
  color: var(--text);
  background: transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}

.qiaomu-action:hover,
.qiaomu-action:focus-visible {
  color: #111;
  background: var(--accent);
  border-color: var(--accent);
  outline: none;
  transform: translateY(-1px);
}

.qiaomu-action::after {
  content: attr(data-label);
  position: absolute;
  right: calc(100% + 10px);
  top: 50%;
  transform: translateY(-50%);
  width: max-content;
  max-width: 160px;
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  background: #111318;
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1;
  opacity: 0;
  pointer-events: none;
  transition: opacity .16s ease, transform .16s ease;
}

.qiaomu-action:hover::after,
.qiaomu-action:focus-visible::after {
  opacity: 1;
  transform: translate(-2px, -50%);
}

.qiaomu-action svg {
  width: 20px;
  height: 20px;
}

.qiaomu-action svg path {
  fill: currentColor;
}

.qiaomu-modal {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 22px;
}

.qiaomu-modal.open {
  display: flex;
}

.qiaomu-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 6, 8, .74);
  backdrop-filter: blur(7px);
}

.qiaomu-dialog {
  position: relative;
  width: min(420px, 100%);
  max-height: min(720px, calc(100vh - 44px));
  overflow: auto;
  padding: 26px;
  border: 1px solid rgba(232, 234, 239, .13);
  border-radius: 18px;
  background:
    radial-gradient(260px 160px at 85% 0%, rgba(255, 210, 63, .09), transparent 65%),
    var(--bg-soft);
  box-shadow: 0 24px 80px rgba(0, 0, 0, .48);
}

.qiaomu-dialog h2 {
  margin: 0 34px 8px 0;
  font-size: 20px;
}

.qiaomu-dialog p {
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 13.5px;
}

.qiaomu-dialog img {
  display: block;
  width: min(260px, 100%);
  max-height: 360px;
  object-fit: contain;
  margin: 0 auto;
  border-radius: 12px;
  background: #fff;
}

.qiaomu-close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  transition: color .16s ease, border-color .16s ease, background .16s ease;
}

.qiaomu-close:hover,
.qiaomu-close:focus-visible {
  color: var(--accent);
  border-color: rgba(255, 210, 63, .42);
  background: rgba(255, 210, 63, .06);
  outline: none;
}

.qiaomu-close svg {
  width: 18px;
  height: 18px;
}

.qiaomu-close svg path {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

.qiaomu-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
}

.qiaomu-links a {
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--accent-2);
  font-family: var(--mono);
  font-size: 12px;
  text-decoration: none;
  transition: color .16s ease, border-color .16s ease;
}

.qiaomu-links a:hover,
.qiaomu-links a:focus-visible {
  color: var(--accent);
  border-color: rgba(255, 210, 63, .38);
  outline: none;
}

@media (max-width: 640px) {
  .wrap { padding: 0 20px; }
  header { padding-top: 56px; }
  .table-scroll table {
    min-width: 640px;
  }
  .qiaomu-rail {
    right: 12px;
    bottom: 12px;
    flex-direction: row;
    border-radius: 16px;
  }
  .qiaomu-action {
    width: 38px;
    height: 38px;
  }
  .qiaomu-action::after {
    display: none;
  }
  .qiaomu-dialog {
    padding: 22px;
  }
}
