/* ==========================================================================
   双优甄选 · 官网
   --------------------------------------------------------------------------
   设计判读：企业信息平台的品牌官网，受众为求职者与企业方。
   语言：编辑式 / 瑞士网格，冷峻可信；用分栏、细线、大字数字建立秩序，
   不使用渐变光晕、玻璃卡片、悬浮投影与图标堆砌。

   形状规则（全站唯一一套）：交互元素圆角 2px，图片与容器 0 圆角。
   ========================================================================== */

:root {
  --paper: #f7f7f5;
  --paper-2: #efefeb;
  --ink: #14161a;
  --ink-2: #3d424a;
  --muted: #5e636b;
  --muted-2: #676c74;
  --rule: #dadad4;
  --rule-soft: #e7e7e1;
  --accent: #2c6db5;
  --accent-ink: #235a99;

  --max: 1180px;
  --gap: 24px;

  --font-sans: "PingFang SC", "HarmonyOS Sans SC", "Source Han Sans SC",
    "Noto Sans CJK SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "SFMono-Regular", "JetBrains Mono", "Cascadia Mono", Menlo,
    Consolas, ui-monospace, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 15.5px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
h4,
p,
dl,
dd,
dt,
figure {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

::selection {
  background: #d8e1fb;
  color: var(--ink);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ---------- 骨架 ---------- */

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gap);
}

.band {
  padding-block: 96px;
}

.band--tight {
  padding-block: 64px;
}

.band--tint {
  background: var(--paper-2);
}

.band--ink {
  background: var(--ink);
  color: #f2f2ef;
}

/* 章节标题：只有标题，没有小标签（全站 0 个 eyebrow） */
.h-sec {
  font-size: clamp(23px, 2.5vw, 31px);
  line-height: 1.32;
  letter-spacing: -0.02em;
  font-weight: 600;
  max-width: 22em;
}

.h-sec__sub {
  margin-top: 16px;
  max-width: 46ch;
  color: var(--ink-2);
  font-size: 15.5px;
  line-height: 1.85;
}

.mono {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

/* ---------- 顶栏 ---------- */

.hd {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}

.hd__in {
  display: flex;
  align-items: center;
  gap: 40px;
  height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.brand__mark {
  width: 26px;
  height: 26px;
  object-fit: contain;
  flex: none;
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14.5px;
  color: var(--ink-2);
}

.nav a {
  padding: 4px 0;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.nav a:hover {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

.hd__actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 20px;
}

.link-quiet {
  font-size: 14.5px;
  color: var(--ink-2);
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.link-quiet:hover {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

.menu-btn {
  display: none;
  font: inherit;
  font-size: 14.5px;
  color: var(--ink-2);
  background: none;
  border: 1px solid var(--rule);
  border-radius: 2px;
  height: 34px;
  padding: 0 12px;
  cursor: pointer;
}

/* ---------- 按钮 ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 20px;
  border-radius: 2px;
  border: 1px solid transparent;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: background-color 0.16s ease, color 0.16s ease,
    border-color 0.16s ease, transform 0.12s ease;
  white-space: nowrap;
}

.btn:active {
  transform: translateY(1px);
}

.btn--solid {
  background: var(--accent);
  color: #fff;
}

.btn--solid:hover {
  background: var(--accent-ink);
}

.btn--line {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}

.btn--line:hover {
  background: var(--ink);
  color: var(--paper);
}

.btn--sm {
  height: 36px;
  padding: 0 14px;
  font-size: 14px;
}

.btn--onink {
  background: transparent;
  color: #f2f2ef;
  border-color: rgba(242, 242, 239, 0.45);
}

.btn--onink:hover {
  background: #f2f2ef;
  color: var(--ink);
  border-color: #f2f2ef;
}

/* ---------- Hero ---------- */

.hero {
  padding: 64px 0 56px;
}

.hero__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 40px 48px;
  align-items: end;
}

.hero__text {
  grid-column: 1 / span 7;
}

.hero__fig {
  grid-column: 8 / span 5;
}

.hero h1 {
  font-size: clamp(32px, 4.4vw, 56px);
  line-height: 1.16;
  letter-spacing: -0.035em;
  font-weight: 600;
  max-width: 15em;
}

.hero__lead {
  margin-top: 22px;
  max-width: 34em;
  color: var(--ink-2);
  font-size: 16.5px;
  line-height: 1.85;
}

.hero__cta {
  margin-top: 32px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.hero__fig img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: var(--paper-2);
}

.hero__cap {
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--muted-2);
  letter-spacing: 0.02em;
}

/* ---------- 事实栏 ---------- */

.facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.fact {
  padding: 26px 32px 4px 0;
  border-top: 1px solid var(--rule);
}

.fact + .fact {
  padding-left: 32px;
  border-left: 1px solid var(--rule);
}

.fact__n {
  font-size: clamp(30px, 3.2vw, 42px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.fact__n span {
  font-size: 0.45em;
  letter-spacing: 0;
  margin-left: 4px;
  color: var(--muted);
  font-weight: 500;
}

.fact__t {
  margin-top: 10px;
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.7;
}

/* ---------- 板块清单（细线行，不用卡片） ---------- */

.rows {
  margin-top: 40px;
  border-top: 1px solid var(--rule);
}

.row {
  display: grid;
  grid-template-columns: 56px minmax(0, 7fr) minmax(0, 5fr);
  gap: 24px;
  align-items: baseline;
  padding: 26px 0;
  border-bottom: 1px solid var(--rule);
}

.row__idx {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted-2);
  font-variant-numeric: tabular-nums;
}

.row__name {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.row__note {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.75;
}

/* ---------- 评分表 ---------- */

.table {
  margin-top: 40px;
  border-top: 1px solid var(--ink);
}

.table__hd,
.table__tr {
  display: grid;
  /* 只有两列：维度 + 看什么。评分是 5 分制，各维度等权，不再列权重 */
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: 24px;
  align-items: baseline;
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
}

.table__hd {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--muted-2);
  text-transform: uppercase;
}

.table__tr {
  padding: 22px 0;
}

.table__name {
  font-size: 17px;
  font-weight: 600;
}

.table__note {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.75;
}

.gate {
  margin-top: 28px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
}

.gate__k {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--muted-2);
  white-space: nowrap;
  padding-top: 5px;
}

.gate__v {
  font-size: 15px;
  color: var(--ink-2);
  line-height: 1.8;
  max-width: 52ch;
}

.gate__v b {
  color: var(--ink);
  font-weight: 600;
}

/* ---------- 整幅图片 ---------- */

.figure-wide img {
  width: 100%;
  aspect-ratio: 21 / 9;
  object-fit: cover;
  background: var(--paper-2);
}

.figure-wide figcaption {
  padding: 14px var(--gap) 0;
  max-width: var(--max);
  margin: 0 auto;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--muted-2);
  letter-spacing: 0.02em;
}

/* ---------- 原则（竖排引文） ---------- */

.creed {
  margin-top: 40px;
  border-top: 1px solid var(--rule);
}

.creed__i {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 24px;
  padding: 32px 0;
  border-bottom: 1px solid var(--rule);
}

.creed__n {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted-2);
  padding-top: 6px;
  font-variant-numeric: tabular-nums;
}

.creed__t {
  font-size: clamp(19px, 2vw, 24px);
  line-height: 1.5;
  letter-spacing: -0.015em;
  font-weight: 600;
  max-width: 30em;
}

.creed__d {
  margin-top: 12px;
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.8;
  max-width: 44ch;
}

/* ---------- 关于（定义列表） ---------- */

.facts-list {
  margin-top: 36px;
  border-top: 1px solid var(--rule);
  max-width: 46em;
}

.facts-list__r {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 24px;
  padding: 18px 0;
  border-bottom: 1px solid var(--rule);
  align-items: baseline;
}

.facts-list__k {
  font-size: 13px;
  color: var(--muted);
}

.facts-list__v {
  font-size: 15.5px;
  color: var(--ink);
  line-height: 1.7;
}

.facts-list__v a {
  border-bottom: 1px solid var(--rule);
  transition: border-color 0.15s ease, color 0.15s ease;
}

.facts-list__v a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* ---------- 收尾 ---------- */

.close {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 40px;
  align-items: center;
}

.close h2 {
  font-size: clamp(24px, 2.8vw, 34px);
  line-height: 1.3;
  letter-spacing: -0.025em;
  font-weight: 600;
}

.close p {
  margin-top: 14px;
  color: rgba(242, 242, 239, 0.72);
  font-size: 15px;
  line-height: 1.8;
  max-width: 40ch;
}

.close__act {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* ---------- 页脚 ---------- */

.ft {
  border-top: 1px solid var(--rule);
  padding: 48px 0 32px;
}

.ft__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) repeat(3, minmax(0, 2fr));
  gap: 32px;
}

.ft__about {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.8;
  max-width: 30ch;
  margin-top: 14px;
}

.ft h4 {
  font-size: 12px;
  font-family: var(--font-mono);
  letter-spacing: 0.06em;
  color: var(--muted-2);
  text-transform: uppercase;
  margin-bottom: 14px;
}

.ft li + li {
  margin-top: 9px;
}

.ft a {
  font-size: 14px;
  color: var(--ink-2);
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.ft a:hover {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

.ft__end {
  margin-top: 44px;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
  color: var(--muted-2);
}

.ft__end nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.ft__end a:hover {
  color: var(--ink);
}

/* ---------- 内页 ---------- */

.page-head {
  padding-block: 56px 40px;
  border-bottom: 1px solid var(--rule);
}

.page-head h1 {
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.2;
  letter-spacing: -0.03em;
  font-weight: 600;
}

.page-head p {
  margin-top: 16px;
  color: var(--muted);
  font-size: 15.5px;
  max-width: 40em;
  line-height: 1.85;
}

.prose {
  max-width: 42em;
  padding: 56px 0 88px;
  font-size: 15.5px;
  line-height: 1.95;
  color: var(--ink-2);
}

.prose h2 {
  margin: 44px 0 14px;
  font-size: 19px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose p + p {
  margin-top: 12px;
}

.prose ol,
.prose ul {
  margin-top: 12px;
  padding-left: 20px;
  list-style: decimal;
}

.prose ul {
  list-style: disc;
}

.prose li + li {
  margin-top: 8px;
}

/* 核心理念：作为一句独立陈述，用细线托住，不做装饰 */
.prose .mission {
  margin: 0 0 20px;
  padding-left: 18px;
  border-left: 2px solid var(--accent);
  font-size: 21px;
  line-height: 1.7;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.prose .meta {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted-2);
  margin-bottom: 28px;
}

.prose .note {
  margin-top: 36px;
  padding: 18px 20px;
  background: var(--paper-2);
  border-left: 2px solid var(--ink);
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.8;
}

/* ---------- 动效（克制） ---------- */

.reveal {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
  }
}

/* ---------- 响应式 ---------- */

@media (max-width: 1024px) {
  .hero__grid {
    grid-template-columns: repeat(6, 1fr);
    gap: 32px;
  }

  .hero__text {
    grid-column: 1 / span 6;
  }

  .hero__fig {
    grid-column: 1 / span 6;
  }

  .hero__fig img {
    aspect-ratio: 16 / 10;
  }

  .ft__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
  }
}

@media (max-width: 900px) {
  .nav,
  .hd__actions .link-quiet {
    display: none;
  }

  .menu-btn {
    display: inline-flex;
    align-items: center;
  }

  .hd.is-open .nav {
    display: flex;
    position: absolute;
    left: 0;
    right: 0;
    top: 64px;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px var(--gap) 16px;
    background: var(--paper);
    border-bottom: 1px solid var(--rule);
  }

  .hd.is-open .nav a {
    width: 100%;
    padding: 12px 0;
    border-bottom: 1px solid var(--rule-soft);
  }

  .band {
    padding-block: 64px;
  }

  .row {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 12px 16px;
  }

  .row__note {
    grid-column: 2;
  }

  .facts {
    grid-template-columns: 1fr;
  }

  .fact {
    padding: 22px 0 18px;
    border-left: none !important;
  }

  .fact + .fact {
    padding-left: 0;
  }

  .table__hd {
    display: none;
  }

  .table__tr {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }

  .table__note {
    grid-column: 1;
  }

  .creed__i {
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 14px;
  }

  .facts-list__r {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .close {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
  }
}

@media (max-width: 560px) {
  .wrap {
    padding: 0 20px;
  }

  .hero {
    padding: 40px 0;
  }

  .figure-wide img {
    aspect-ratio: 4 / 3;
  }

  .ft__end {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}

/* ==========================================================================
   交互层
   原则：只用 transform / opacity / background-color，不做无限循环动画，
   全部尊重 prefers-reduced-motion。
   ========================================================================== */

/* 顶栏：hover 下划线由左展开；当前区块高亮 */
.nav a {
  position: relative;
  border-bottom-color: transparent !important;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.18s ease;
}

.nav a:hover::after,
.nav a.is-active::after {
  transform: scaleX(1);
}

.nav a.is-active {
  color: var(--ink);
}

/* 文字链：下划线从左展开 */
.link-quiet {
  position: relative;
  border-bottom-color: transparent !important;
}

.link-quiet::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.18s ease;
}

.link-quiet:hover::after {
  transform: scaleX(1);
}

/* 按钮：轻微抬起 + 品牌色投影（阴影带色相，不用纯黑） */
.btn--solid:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(44, 109, 181, 0.24);
}

.btn--solid:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(44, 109, 181, 0.2);
}

.btn--line:hover {
  transform: translateY(-1px);
}

/* 复制按钮反馈态 */
.btn.is-done {
  background: #1f7a52 !important;
  color: #fff !important;
}

/* 数字栏：hover 时数字转强调色（只是强调，不暗示可点） */
.fact {
  transition: border-color 0.2s ease;
}

.fact:hover .fact__n {
  color: var(--accent);
}

.fact__n {
  transition: color 0.2s ease;
}

/* 评分表：悬停整行提亮，分数转强调色 */
.table__tr {
  transition: background-color 0.18s ease;
  margin-inline: calc(var(--gap) * -0.5);
  padding-inline: calc(var(--gap) * 0.5);
}

.table__tr:hover {
  background: rgba(20, 22, 26, 0.022);
}

/* 原则：悬停时序号变强调色 */
.creed__n {
  transition: color 0.18s ease;
}

.creed__i:hover .creed__n {
  color: var(--accent);
}

/* Hero 图片：进入时轻微放大归位；滚动视差由 JS 挂 --py */
.hero__fig {
  overflow: hidden;
}

.hero__fig img {
  transform: scale(1.06) translate3d(0, var(--py, 0px), 0);
  transition: transform 0.15s linear;
  will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
  .hero__fig img {
    transform: none;
    transition: none;
  }
}

/* 移动端菜单：展开时淡入下移 */
@keyframes navIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 900px) {
  .hd.is-open .nav {
    animation: navIn 0.18s ease both;
  }
}

/* 键盘可达：所有可交互元素统一焦点环 */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}
