/* ============================================================
   NEKOSS · oldcatY  —  工业机能风个人主页
   设计语言：黑白灰打底 + 警戒橙点睛；拉丁/数字用等宽体、
             中英双标签、"//"分隔、菱形几何、斜切、警示条纹、
             瞄准十字线与刻意的错落感
   ============================================================ */

:root {
  /* 枪灰阶层 */
  --bg: #0f1114;
  --bg-2: #16191e;
  --bg-3: #1d2127;
  /* 墨 */
  --ink: #eceded;
  --ink-2: #a7adb4;
  --ink-3: #6d747c;
  --line: rgba(236, 237, 237, .14);
  --line-soft: rgba(236, 237, 237, .07);
  /* 警戒橙 */
  --accent: #f7a600;
  --accent-2: #ffbe3d;
  --accent-dim: rgba(247, 166, 0, .14);

  /* 三种声音：正文黑体 / 展示工业粗体(DIN) / 元信息等宽 */
  --sans: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", "Noto Sans SC",
          -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --display: "Bahnschrift", "DIN Alternate", "Franklin Gothic Medium",
             "Arial Narrow", "Segoe UI", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas,
          "Liberation Mono", monospace;

  --wrap: 1200px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; scroll-padding-top: 24px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection { background: var(--accent); color: #141005; }

h1, h2, h3 { margin: 0; }
p { margin: 0; }
dl, dd, figure { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button { font: inherit; color: inherit; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: clamp(22px, 5.5vw, 64px);
}

/* ---------- 背景：点阵 + 十字线 + 漂移菱形（canvas） ---------- */
#dots {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0,0,0,.75) 46%, rgba(0,0,0,.3) 100%);
  mask-image: linear-gradient(180deg, #000 0%, rgba(0,0,0,.75) 46%, rgba(0,0,0,.3) 100%);
}

.page { position: relative; z-index: 2; }

/* ---------- 报头 ---------- */
.masthead { padding-top: 26px; }
.masthead__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
/* 细线下压一段粗橙条 —— 加载条意向 */
.masthead__inner::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 132px;
  height: 2px;
  background: var(--accent);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 11px;
}
.wordmark__rh {
  width: 10px; height: 10px;
  border: 1.6px solid var(--accent);
  transform: rotate(45deg);
  flex: none;
}
.wordmark__text {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .24em;
}
.wordmark__tag {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .14em;
  color: var(--ink-3);
}

.masthead__nav { display: flex; align-items: center; gap: 26px; }
.masthead__nav a {
  font-size: 13px;
  color: var(--ink-2);
  padding-bottom: 2px;
  background-image: linear-gradient(var(--accent), var(--accent));
  background-size: 0% 1px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size .3s var(--ease), color .3s var(--ease);
}
.masthead__nav a:hover { color: var(--ink); background-size: 100% 1px; }
.nav-en {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: .12em;
  color: var(--ink-3);
  margin-left: 4px;
}
.masthead__nav a:hover .nav-en { color: var(--accent); }

/* ---------- 首屏 ---------- */
.hero {
  position: relative;
  padding-top: clamp(56px, 9vw, 108px);
  padding-bottom: clamp(20px, 3vw, 40px);
}

/* 背景大菱形线框装饰 */
.hero__deco {
  position: absolute;
  top: clamp(20px, 4vw, 54px);
  right: clamp(0px, 5vw, 70px);
  width: clamp(180px, 24vw, 320px);
  height: clamp(180px, 24vw, 320px);
  border: 1px solid var(--line);
  transform: rotate(45deg);
  opacity: .5;
  pointer-events: none;
}
.hero__deco-inner {
  position: absolute;
  inset: 13%;
  border: 1px solid var(--line-soft);
}
.hero__deco-dot {
  position: absolute;
  left: -3.5px;
  top: 50%;
  width: 7px; height: 7px;
  background: var(--accent);
  transform: translateY(-50%);
}
@media (max-width: 900px) { .hero__deco { display: none; } }

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 20px;
}
.hero__meta-item {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--ink-3);
}
.hero__meta-rh {
  width: 6px; height: 6px;
  background: var(--accent);
  transform: rotate(45deg);
  flex: none;
}
.hero__meta-item--right { color: var(--ink-3); }

.hero__name {
  margin: clamp(20px, 3vw, 34px) 0 0;
}
.hero__name-mask { display: block; overflow: hidden; padding-bottom: .04em; }
.hero__name-text {
  display: block;
  font-family: var(--display);
  font-size: clamp(58px, 6vw, 192px);
  font-weight: 700;
  font-stretch: condensed;
  line-height: .98;
  letter-spacing: -.01em;
  color: var(--ink);
  transform: translateY(104%);
  transition: transform 1.05s cubic-bezier(.16, 1, .3, 1);
}
.hero__name.is-in .hero__name-text { transform: none; }

/* 名下加载条：实橙段 + 警示斜纹段，载入后自左展开 */
.hero__name-mark {
  display: block;
  margin-top: clamp(10px, 1.4vw, 16px);
  width: min(50%, 520px);
  height: 8px;
  background:
    linear-gradient(90deg, var(--accent) 0 34%, transparent 34%),
    repeating-linear-gradient(-45deg, rgba(247,166,0,.55) 0 8px, transparent 8px 16px);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 1s cubic-bezier(.22, .61, .36, 1) .25s;
}
.hero__name.is-drawn .hero__name-mark { transform: scaleX(1); }

.hero__lead {
  margin-top: clamp(30px, 4.2vw, 46px);
  max-width: 46ch;
  font-size: clamp(15px, 1.15vw, 17px);
  line-height: 1.9;
  color: var(--ink-2);
}

/* 属性块：边框面板 + 角标 + 错落 */
.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: clamp(40px, 5.4vw, 62px);
}
.fact {
  position: relative;
  flex: 1 1 220px;
  min-width: 200px;
  padding: 15px 18px 16px;
  border: 1px solid var(--line);
  background: var(--bg-2);
}
.fact:nth-child(2) { margin-top: 16px; }
.fact:nth-child(3) { margin-top: 32px; }
/* 右上角注册十字 */
.fact::after {
  content: "+";
  position: absolute;
  top: 6px; right: 9px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-3);
}
.fact__key {
  display: block;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .14em;
  color: var(--accent);
}
.fact__val {
  display: block;
  margin-top: 7px;
  font-size: 14.5px;
  color: var(--ink);
}
.fact__val a {
  color: var(--ink);
  background-image: linear-gradient(var(--accent), var(--accent));
  background-size: 100% 1px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: color .25s var(--ease);
}
.fact__val a:hover { color: var(--accent-2); }
@media (max-width: 700px) {
  .fact:nth-child(2), .fact:nth-child(3) { margin-top: 0; }
}

/* ---------- 区块头：反白斜切标签 + 细线 + 终端码 ---------- */
.section { margin-top: clamp(86px, 12vw, 152px); }
.section__head {
  display: flex;
  align-items: center;
  gap: 16px;
}
.section__tab {
  font-family: var(--display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--bg);
  background: var(--ink);
  padding: 6px 20px 6px 15px;
  clip-path: polygon(0 0, 100% 0, calc(100% - 13px) 100%, 0 100%);
  flex: none;
}
.section__rule {
  position: relative;
  flex: 1;
  height: 1px;
  background: var(--line);
}
.section__rule::after {
  content: "";
  position: absolute;
  right: 0;
  top: -3px;
  width: 7px; height: 7px;
  background: var(--accent);
  transform: rotate(45deg);
}
.section__code {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .16em;
  color: var(--ink-3);
  flex: none;
}

/* ---------- 关于我 ---------- */
.about {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(26px, 4.6vw, 60px);
  align-items: start;
  margin-top: 40px;
}
/* 瞄准框 */
.frame {
  position: relative;
  width: 128px;
  height: 128px;
  padding: 6px;
  border: 1px solid var(--line);
  background: var(--bg-2);
}
.frame img,
.frame__fallback {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(.15) contrast(1.03);
}
.frame:hover img { filter: none; }
.frame__fallback {
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-size: 46px;
  font-weight: 700;
  color: var(--ink-3);
}
.frame__c {
  position: absolute;
  width: 15px; height: 15px;
  border-color: var(--accent);
  border-style: solid;
}
.frame__c--tl { top: -2px; left: -2px; border-width: 2px 0 0 2px; }
.frame__c--tr { top: -2px; right: -2px; border-width: 2px 2px 0 0; }
.frame__c--bl { bottom: -2px; left: -2px; border-width: 0 0 2px 2px; }
.frame__c--br { bottom: -2px; right: -2px; border-width: 0 2px 2px 0; }
.about__cap {
  display: block;
  margin-top: 14px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .14em;
  color: var(--ink-3);
}

.about__text p {
  max-width: 58ch;
  font-size: 15.5px;
  line-height: 1.92;
  color: var(--ink-2);
}
.about__text em {
  font-style: normal;
  color: var(--ink);
  background-image: linear-gradient(180deg, transparent 70%, var(--accent-dim) 70%);
}
.about__note {
  margin-top: 24px;
  padding-left: 14px;
  border-left: 2px solid var(--accent);
  font-family: var(--mono);
  font-size: 12.5px !important;
  letter-spacing: .04em;
  color: var(--ink-3) !important;
}
@media (max-width: 700px) { .about { grid-template-columns: 1fr; } }

/* ---------- 站点索引 ---------- */
.index { margin-top: 30px; }
.index__item + .index__item { border-top: 1px solid var(--line-soft); }

.index__row {
  position: relative;
  display: grid;
  grid-template-columns: 22px minmax(0, 16rem) minmax(0, 1fr) 1.5rem;
  align-items: center;
  gap: clamp(16px, 2.6vw, 34px);
  padding: 21px 2px;
  transition: padding-left .32s var(--ease), background-color .32s var(--ease);
}
.index__row::before {
  content: "";
  position: absolute;
  left: 0;
  top: 16px;
  bottom: 16px;
  width: 3px;
  background: var(--accent);
  transform: scaleY(0);
  transition: transform .32s var(--ease);
}
.index__row:hover { padding-left: 18px; background-color: rgba(236, 237, 237, .03); }
.index__row:hover::before { transform: scaleY(1); }

.index__mark {
  width: 9px; height: 9px;
  border: 1.4px solid var(--ink-3);
  transform: rotate(45deg);
  transition: background-color .32s var(--ease), border-color .32s var(--ease);
}
.index__row:hover .index__mark { background: var(--accent); border-color: var(--accent); }

.index__id { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; min-width: 0; }
.index__name {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0;
  background-image: linear-gradient(var(--accent), var(--accent));
  background-size: 0% 1px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size .32s var(--ease);
}
.index__row:hover .index__name { background-size: 100% 1px; }
.index__host {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-3);
  word-break: break-all;
}
.index__desc { font-size: 14px; color: var(--ink-2); }
.index__arrow {
  justify-self: end;
  font-size: 17px;
  color: var(--ink-3);
  transition: transform .32s var(--ease), color .32s var(--ease);
}
.index__row:hover .index__arrow { transform: translateX(5px); color: var(--accent); }

/* ---------- 页脚 ---------- */
.footer { margin-top: clamp(84px, 11vw, 146px); }
.footer__inner {
  padding-top: 22px;
  padding-bottom: 40px;
  border-top: 1px solid var(--line);
}
.footer__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.footer__copy {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .1em;
  color: var(--ink-3);
}

/* 斜切群号芯片（用 skew 保证描边跟随斜边） */
.groupnum {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  padding: 9px 18px;
  border: 1px solid var(--line);
  background: var(--bg-2);
  color: var(--ink);
  cursor: pointer;
  transform: skewX(-9deg);
  transition: border-color .25s var(--ease), background-color .25s var(--ease);
}
.groupnum > span { transform: skewX(9deg); }
.groupnum:hover { border-color: var(--accent); background: var(--bg-3); }
.groupnum__key {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .1em;
  color: var(--ink-3);
}
.groupnum__value {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--accent);
}
.groupnum__hint {
  padding-left: 13px;
  border-left: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .12em;
  color: var(--ink-3);
  transition: color .25s var(--ease);
}
.groupnum.is-done { border-color: var(--accent); }
.groupnum.is-done .groupnum__hint { color: var(--accent); }

.footer__beian {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 24px;
  margin-top: 22px;
}
.footer__beian a {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .03em;
  color: var(--ink-3);
  transition: color .25s var(--ease);
}
.footer__beian a:hover { color: var(--ink); }

/* 底部警示条纹带 */
.footer__stripe {
  height: 7px;
  background: repeating-linear-gradient(-45deg, var(--accent) 0 12px, var(--bg) 12px 24px);
}

/* ---------- 进场 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .75s var(--ease), transform .75s var(--ease);
}
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__name-text { transform: none !important; }
  .hero__name-mark { transform: none !important; transition: none; }
  * { transition-duration: .01ms !important; }
}

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .index__row {
    grid-template-columns: 20px minmax(0, 1fr) 1.4rem;
    row-gap: 6px;
    padding: 20px 2px;
  }
  .index__desc { grid-column: 2; }
  .index__arrow { grid-row: 1; grid-column: 3; align-self: start; }
  .index__row:hover { padding-left: 14px; }
}

@media (max-width: 620px) {
  .masthead__nav { gap: 16px; }
  .nav-en { display: none; }
  .hero__meta { flex-direction: column; align-items: flex-start; gap: 8px; }
  .footer__top { flex-direction: column; align-items: flex-start; }
  .groupnum { flex-wrap: wrap; gap: 8px 13px; }
  .groupnum__hint { border-left: 0; padding-left: 0; }
}

@media print {
  #dots, .hero__deco, .footer__stripe { display: none; }
  body { background: #fff; color: #000; }
  .page { position: static; }
  .section__tab { background: #000; color: #fff; }
}
