/* 王林老师实验室 · 招新网站（极简留白） */

:root {
  --bg: #fbfaf7;
  --ink: #15181b;
  --muted: #71767f;
  --line: #e7e3da;
  --panel: #ffffff;
  --brand: #1f6f4a;
  --qr-bg: #16181c;
  --radius: 10px;
  --radius-lg: 14px;
  --gutter: clamp(18px, 4.5vw, 40px);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei",
    "PingFang SC", "Hiragino Sans GB", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

.wrap {
  width: min(1080px, 100% - var(--gutter) * 2);
  margin-inline: auto;
}

/* ── 顶部 ───────────────────────────────── */

.top {
  border-bottom: 1px solid var(--line);
}

.top .row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 0;
}

.brand {
  display: flex;
  gap: 10px;
  align-items: center;
  color: var(--ink);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-decoration: none;
}

.mark {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  color: var(--brand);
}

.nav {
  display: flex;
  gap: 26px;
  font-size: 14px;
}

.nav a {
  padding-bottom: 3px;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  text-decoration: none;
}

.nav a:hover {
  color: var(--ink);
}

.nav a[aria-current="page"] {
  border-bottom-color: var(--brand);
  color: var(--ink);
}

/* ── 常驻二维码 ─────────────────────────── */

.qr {
  position: fixed;
  z-index: 20;
  top: 86px;
  right: 26px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  width: 132px;
  padding: 10px 10px 9px;
  border-radius: var(--radius-lg);
  background: var(--qr-bg);
  box-shadow: 0 18px 34px -22px rgba(12, 18, 30, 0.7);
}

.qr img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.qr span {
  color: #e8ecf2;
  font-size: 12px;
  letter-spacing: 0.1em;
}

/* ── 首屏 ───────────────────────────────── */

.hero {
  padding: clamp(52px, 8vw, 92px) 0 clamp(36px, 5vw, 56px);
  text-align: center;
}

.hero h1 {
  margin: 0;
  font-size: clamp(28px, 4.2vw, 46px);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.34;
}

.hero .lead {
  margin: 22px 0 0;
}

.pill {
  display: inline-block;
  padding: 6px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  font-size: 14px;
  letter-spacing: 0.06em;
}

/* ── 主攻比赛 ───────────────────────────── */

.block {
  padding-top: clamp(26px, 4vw, 42px);
}

.label {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 12.5px;
  letter-spacing: 0.18em;
}

.label-note {
  letter-spacing: 0.02em;
}

.contests {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.contest {
  display: block;
  padding: 22px 26px 22px 0;
  color: inherit;
  text-decoration: none;
}

.contest:nth-child(odd) {
  border-right: 1px solid var(--line);
}

.contest:nth-child(even) {
  padding-left: 26px;
}

.contest:nth-child(-n + 2) {
  border-bottom: 1px solid var(--line);
}

.contest h3 {
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 0;
  font-size: 15px;
  font-weight: 600;
}

.contest p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13.5px;
}

.contest .t {
  color: var(--brand);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}

.ext {
  width: 15px;
  height: 15px;
  transition: transform 0.15s ease;
}

@media (hover: hover) {
  .contest:hover .t {
    text-decoration-thickness: 2px;
  }

  .contest:hover .ext {
    transform: translate(2px, -2px);
  }
}

.contest-note {
  grid-column: 1 / -1;
  margin: 0;
  padding: 16px 0 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13.5px;
}

.ico {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  color: var(--brand);
}

/* ── 实验室氛围 ─────────────────────────── */

.people {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  padding: clamp(30px, 4.5vw, 50px) 0;
}

.person h3 {
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 0;
  font-size: 15px;
  font-weight: 600;
}

.person p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13.5px;
}

/* ── 页脚 ───────────────────────────────── */

.foot {
  border-top: 1px solid var(--line);
}

.foot .row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  padding: 22px 0 30px;
  color: var(--muted);
  font-size: 13.5px;
}

.wx {
  display: inline-flex;
  gap: 7px;
  align-items: center;
}

.wx b {
  color: var(--ink);
  font-weight: 600;
}

.wx .ico {
  color: var(--muted);
}

/* ── 优势条目 ───────────────────────────── */

.points {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.point {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 18px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.point .num {
  padding-top: 2px;
  color: var(--brand);
  font-size: 13px;
  letter-spacing: 0.08em;
}

.point h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
}

.point p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13.5px;
}

.point .tip {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12.5px;
}

/* ── 自适应 ─────────────────────────────── */

@media (max-width: 1023px) {
  .qr {
    top: auto;
    right: 18px;
    bottom: 18px;
    width: 112px;
  }
}

@media (max-width: 860px) {
  .contests {
    grid-template-columns: 1fr;
  }

  .contest,
  .contest:nth-child(even) {
    padding: 18px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .contest-note {
    padding: 14px 0 16px;
    border-top: 0;
  }

  .people {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

@media (max-width: 560px) {
  body {
    padding-bottom: 128px;
  }

  .qr {
    right: 12px;
    bottom: 12px;
    gap: 6px;
    width: 92px;
    padding: 8px;
    border-radius: 12px;
  }

  .qr span {
    font-size: 11px;
    letter-spacing: 0.06em;
  }

  .brand {
    font-size: 15px;
  }

  .mark {
    width: 36px;
    height: 36px;
  }

  .nav {
    gap: 18px;
  }

  .point {
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 10px;
  }
}
