/* =========================================================
   雁英 · 汽车研发 OPC 社区
   设计系统：深墨蓝 + 铜色强调，工程制图感的细线与等宽注记
   本项目设计值，可按品牌需要调整
   ========================================================= */

:root {
  --ink: #0b1622;
  --ink-2: #14222f;
  --ink-3: #1e303d;
  --slate: #566573;
  --slate-2: #8b98a3;
  --line: #e2e7ea;
  --line-strong: #cfd7db;
  --paper: #ffffff;
  --mist: #f4f6f6;
  --sand: #f1ece3;
  --copper: #b25a34;
  --copper-dark: #93451f;
  --copper-light: #e0996f;
  --copper-wash: rgba(178, 90, 52, 0.08);

  --font-sans: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei",
    "Hiragino Sans GB", "Noto Sans SC", system-ui, -apple-system, sans-serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", Consolas, "Liberation Mono",
    Menlo, monospace;

  --wrap: 1240px;
  --gutter: 28px;
  --radius: 2px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
svg {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

::selection {
  background: var(--copper);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--copper);
  outline-offset: 3px;
}

/* ---------- 版式基础 ---------- */

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.25;
}

h1,
h2,
h3 {
  text-wrap: balance;
}

h1 {
  font-size: clamp(34px, 4.4vw, 58px);
  letter-spacing: -0.03em;
  line-height: 1.14;
}

h2 {
  font-size: clamp(26px, 2.6vw, 36px);
  line-height: 1.24;
}

h3 {
  font-size: 19px;
}

p {
  margin: 0 0 1em;
}

p:last-child {
  margin-bottom: 0;
}

.lead {
  font-size: clamp(16px, 1.3vw, 18px);
  line-height: 1.85;
  color: var(--slate);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 20px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--copper);
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: currentColor;
  flex: none;
}

.eyebrow--plain::before {
  display: none;
}

.eyebrow--light {
  color: var(--copper-light);
}

.section {
  padding: 96px 0;
  border-top: 1px solid var(--line);
  scroll-margin-top: 92px;
}

.section--mist {
  background: var(--mist);
}

.section--sand {
  background: var(--sand);
}

.section--ink {
  background: var(--ink);
  color: #eef2f4;
  border-top-color: transparent;
}

.section--ink .lead,
.section--ink p {
  color: #b9c5cd;
}

.section--tight {
  padding: 64px 0;
}

.section--flush {
  border-top: none;
}

.sec-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  gap: 48px;
  align-items: end;
  margin-bottom: 52px;
}

.sec-head__aside {
  text-align: right;
  padding-bottom: 6px;
}

@media (max-width: 900px) {
  .section {
    padding: 64px 0;
  }

  .sec-head {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 36px;
  }

  .sec-head__aside {
    text-align: left;
  }
}

/* ---------- 按钮 ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s var(--ease),
    border-color 0.25s var(--ease), transform 0.25s var(--ease);
}

.btn::after {
  content: "";
  width: 14px;
  height: 1px;
  background: currentColor;
  transition: width 0.25s var(--ease);
}

.btn:hover::after {
  width: 22px;
}

.btn--primary {
  background: var(--ink);
  color: #fff;
}

.btn--primary:hover {
  background: var(--copper);
}

.btn--copper {
  background: var(--copper);
  color: #fff;
}

.btn--copper:hover {
  background: var(--copper-dark);
}

.btn--ghost {
  border-color: var(--line-strong);
  color: var(--ink);
  background: transparent;
}

.btn--ghost:hover {
  border-color: var(--ink);
}

.btn--onDark {
  border-color: rgba(255, 255, 255, 0.28);
  color: #fff;
}

.btn--onDark:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.btn--sm {
  min-height: 40px;
  padding: 0 18px;
  font-size: 14px;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--copper);
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: border-color 0.25s var(--ease), gap 0.25s var(--ease);
}

.link-arrow:hover {
  border-color: var(--copper);
  gap: 12px;
}

.link-arrow span {
  font-family: var(--font-mono);
}

/* ---------- 顶部导航 ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.3s var(--ease);
}

.site-header.is-scrolled {
  box-shadow: 0 8px 30px rgba(11, 22, 34, 0.07);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: none;
}

.brand-mark {
  display: block;
  flex: none;
  width: 40px;
  height: 40px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-text strong {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.brand-text em {
  font-family: var(--font-mono);
  font-style: normal;
  font-size: 9px;
  letter-spacing: 0.16em;
  color: var(--slate-2);
  margin-top: 3px;
  white-space: nowrap;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.nav a {
  position: relative;
  padding: 8px 12px;
  font-size: 14.5px;
  color: var(--slate);
  transition: color 0.2s var(--ease);
  white-space: nowrap;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 2px;
  height: 1px;
  background: var(--copper);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease);
}

.nav a:hover {
  color: var(--ink);
}

.nav a:hover::after,
.nav a.is-active::after {
  transform: scaleX(1);
}

.nav a.is-active {
  color: var(--ink);
  font-weight: 500;
}

.nav > .btn {
  display: none;
}

.header-cta {
  flex: none;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  margin-left: auto;
  padding: 0;
  border: 1px solid var(--line-strong);
  background: transparent;
  cursor: pointer;
  position: relative;
}

.nav-toggle span {
  position: absolute;
  left: 12px;
  right: 12px;
  height: 1px;
  background: var(--ink);
  transition: transform 0.25s var(--ease), opacity 0.2s;
}

.nav-toggle span:nth-child(1) {
  top: 15px;
}

.nav-toggle span:nth-child(2) {
  top: 21px;
}

.nav-toggle span:nth-child(3) {
  top: 27px;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

@media (max-width: 1100px) {
  .nav {
    gap: 0;
  }

  .nav a {
    padding: 8px 9px;
    font-size: 14px;
  }

  .brand-text em {
    display: none;
  }
}

@media (max-width: 960px) {
  .header-inner {
    height: 64px;
  }

  .nav-toggle {
    display: block;
  }

  .header-cta {
    display: none;
  }

  .nav {
    position: fixed;
    inset: 64px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 20px 28px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px rgba(11, 22, 34, 0.1);
    max-height: calc(100vh - 64px);
    overflow-y: auto;
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.22s var(--ease), transform 0.22s var(--ease),
      visibility 0.22s;
  }

  .nav.is-open {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
  }

  .nav a {
    padding: 15px 4px;
    font-size: 16px;
    border-bottom: 1px solid var(--line);
  }

  .nav a::after {
    display: none;
  }

  .nav a.is-active {
    color: var(--copper);
  }

  .nav .btn {
    display: inline-flex;
    margin-top: 18px;
  }
}

/* ---------- 首页 HERO ---------- */

.hero {
  padding: 84px 0 0;
  background:
    linear-gradient(180deg, #fbfbfa 0%, #ffffff 62%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(
      to right,
      rgba(11, 22, 34, 0.045) 1px,
      transparent 1px
    ),
    linear-gradient(to bottom, rgba(11, 22, 34, 0.045) 1px, transparent 1px);
  background-size: 88px 88px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 78%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 78%);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  gap: 52px;
  align-items: center;
  padding-bottom: 72px;
}

.hero h1 {
  margin-bottom: 26px;
  font-size: clamp(30px, 3.2vw, 46px);
  line-height: 1.28;
}

.hero h1 em {
  font-style: normal;
  color: var(--copper);
}

.hero__copy .lead {
  max-width: 34em;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  margin-top: 36px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: var(--slate);
  text-transform: uppercase;
}

.hero__meta span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero__meta span::before {
  content: "";
  width: 5px;
  height: 5px;
  background: var(--copper);
  flex: none;
}

@media (max-width: 1000px) {
  .hero__inner {
    grid-template-columns: 1fr;
    gap: 44px;
    padding-bottom: 56px;
  }
}

/* 架构面板 */

.stack-panel {
  background: var(--ink);
  color: #e9eef1;
  padding: 30px 28px 26px;
  position: relative;
  box-shadow: 0 30px 60px -30px rgba(11, 22, 34, 0.5);
}

.stack-panel::after {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  pointer-events: none;
}

.stack-panel__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding-bottom: 16px;
  margin-bottom: 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

.stack-panel__head b {
  color: var(--copper-light);
  font-weight: 500;
}

.stack-layer {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 14px;
  padding: 20px 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.13);
}

.stack-layer:last-of-type {
  border-bottom: none;
}

.stack-layer__no {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--copper-light);
  padding-top: 3px;
}

.stack-layer h4 {
  font-size: 15.5px;
  font-weight: 500;
  margin-bottom: 6px;
  letter-spacing: 0.02em;
}

.stack-layer p {
  font-size: 12.5px;
  line-height: 1.7;
  color: #93a3ae;
  margin: 0;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.tag {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.05em;
  padding: 3px 8px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #c3cdd4;
  white-space: nowrap;
}

.stack-panel__foot {
  margin-top: 6px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.42);
  text-transform: uppercase;
}

/* 数据条 */

.hero-stats {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}

.hero-stats__item {
  padding: 26px 26px 30px 0;
  border-right: 1px solid var(--line);
}

.hero-stats__item:last-child {
  border-right: none;
}

.hero-stats__num {
  display: flex;
  align-items: baseline;
  gap: 4px;
  font-family: var(--font-mono);
  font-size: 34px;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.hero-stats__num i {
  font-style: normal;
  font-size: 15px;
  color: var(--copper);
  letter-spacing: 0;
}

.hero-stats__label {
  margin-top: 10px;
  font-size: 13px;
  color: var(--slate);
  line-height: 1.5;
}

@media (max-width: 760px) {
  .brand-mark {
    width: 34px;
    height: 34px;
  }

  .brand-text em {
    font-size: 8px;
    letter-spacing: 0.12em;
  }

  .hero {
    padding-top: 48px;
  }

  .hero-stats {
    grid-template-columns: 1fr 1fr;
  }

  .hero-stats__item {
    padding: 20px 16px 22px 0;
  }

  .hero-stats__item:nth-child(2n) {
    border-right: none;
  }

  .hero-stats__item:nth-child(1),
  .hero-stats__item:nth-child(2) {
    border-bottom: 1px solid var(--line);
  }

  .hero-stats__num {
    font-size: 27px;
  }
}

/* ---------- 通用卡片网格 ---------- */

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.card {
  background: #fff;
  padding: 34px 30px 32px;
  display: flex;
  flex-direction: column;
  transition: background 0.25s var(--ease);
}

.card--hover:hover {
  background: #fbfaf8;
}

.card__no {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--copper);
  margin-bottom: 20px;
}

.card__title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
  letter-spacing: 0;
}

.card__text {
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--slate);
  margin: 0;
}

.card__foot {
  margin-top: auto;
  padding-top: 22px;
}

.card__foot .link-arrow {
  font-size: 13.5px;
}

.card ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.card ul li {
  position: relative;
  padding-left: 16px;
  font-size: 14px;
  color: var(--slate);
  line-height: 1.9;
}

.card ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  width: 5px;
  height: 1px;
  background: var(--slate-2);
}

@media (max-width: 1000px) {
  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .card {
    padding: 26px 22px;
  }
}

/* ---------- 分栏 ---------- */

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: 64px;
  align-items: start;
}

.split--even {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.split__aside {
  position: sticky;
  top: 108px;
}

@media (max-width: 960px) {
  .split,
  .split--even {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .split__aside {
    position: static;
  }
}

/* 列表 */

.list-check {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.list-check li {
  position: relative;
  padding: 16px 0 16px 30px;
  border-bottom: 1px solid var(--line);
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--slate);
}

.list-check li strong {
  color: var(--ink);
  font-weight: 600;
}

.list-check li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 25px;
  width: 11px;
  height: 6px;
  border-left: 1.5px solid var(--copper);
  border-bottom: 1.5px solid var(--copper);
  transform: rotate(-45deg);
}

.list-plain {
  list-style: none;
  margin: 0;
  padding: 0;
}

.list-plain li {
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14.5px;
  color: var(--slate);
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.list-plain li span {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--slate-2);
  flex: none;
  padding-top: 2px;
}

/* ---------- 步骤 ---------- */

.steps {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  counter-reset: step;
}

.step {
  background: #fff;
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) minmax(0, 0.85fr);
  gap: 28px;
  padding: 30px 30px;
  align-items: start;
}

.step__no {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--copper);
  letter-spacing: 0.1em;
  padding-top: 4px;
}

.step__body h3 {
  font-size: 17px;
  margin-bottom: 8px;
}

.step__body p {
  font-size: 14.5px;
  color: var(--slate);
  margin: 0;
  line-height: 1.8;
}

.step__meta {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--slate-2);
  text-transform: uppercase;
  text-align: right;
  padding-top: 6px;
  line-height: 1.9;
}

@media (max-width: 820px) {
  .step {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 16px;
    padding: 24px 20px;
  }

  .step__meta {
    grid-column: 2;
    text-align: left;
    padding-top: 12px;
  }
}

/* ---------- 时间轴 ---------- */

.timeline {
  border-left: 1px solid var(--line-strong);
  margin: 0;
  padding: 0 0 0 30px;
  list-style: none;
}

.tl-item {
  position: relative;
  padding-bottom: 30px;
}

.tl-item:last-child {
  padding-bottom: 0;
}

.tl-item::before {
  content: "";
  position: absolute;
  left: -35px;
  top: 8px;
  width: 9px;
  height: 9px;
  background: #fff;
  border: 1px solid var(--copper);
  border-radius: 50%;
}

.tl-year {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  color: var(--copper);
  margin-bottom: 4px;
}

.section--ink .timeline {
  border-color: rgba(255, 255, 255, 0.22);
}

.section--ink .tl-item::before {
  background: var(--ink);
  border-color: var(--copper-light);
}

.section--ink .tl-year {
  color: var(--copper-light);
}

.tl-item h4 {
  font-size: 15.5px;
  margin-bottom: 4px;
}

.tl-item p {
  font-size: 14px;
  color: var(--slate);
  margin: 0;
  line-height: 1.75;
}

/* ---------- 资质 / 数据块 ---------- */

.cred-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.cred {
  background: #fff;
  padding: 22px 20px;
}

.cred__k {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  color: var(--copper);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.cred__v {
  font-size: 14.5px;
  font-weight: 500;
  line-height: 1.6;
}

.cred__d {
  font-size: 12.5px;
  color: var(--slate-2);
  margin-top: 4px;
  line-height: 1.6;
}

/* ---------- 表格 ---------- */

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  -webkit-overflow-scrolling: touch;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 620px;
  font-size: 14px;
}

th,
td {
  text-align: left;
  padding: 15px 18px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  line-height: 1.7;
}

th {
  background: var(--mist);
  font-weight: 600;
  font-size: 12.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--slate);
  white-space: nowrap;
}

tbody tr:last-child td {
  border-bottom: none;
}

td strong {
  font-weight: 600;
}

table.table--kv {
  min-width: 0;
}

table.table--kv th {
  background: transparent;
  color: var(--slate);
  font-size: 13px;
  letter-spacing: 0;
  text-transform: none;
  font-weight: 500;
  white-space: normal;
  width: 30%;
}

/* 深色区块内的表格 */
.section--ink .table-wrap {
  border-color: rgba(255, 255, 255, 0.15);
}

.table--ink {
  color: #c3cdd4;
}

.table--ink th {
  background: rgba(255, 255, 255, 0.06);
  color: #93a3ae;
  border-color: rgba(255, 255, 255, 0.15);
}

.table--ink td {
  border-color: rgba(255, 255, 255, 0.12);
}

.table--ink td strong {
  color: #fff;
}

/* 窄屏：表格转为纵向卡片 */
@media (max-width: 720px) {
  .table-wrap {
    border: 0;
    overflow: visible;
  }

  .table-wrap table {
    min-width: 0;
    display: block;
  }

  .table-wrap thead {
    display: none;
  }

  .table-wrap tbody,
  .table-wrap tr,
  .table-wrap td,
  .table-wrap th {
    display: block;
    width: auto;
  }

  .table-wrap tr {
    border: 1px solid var(--line);
    background: #fff;
    margin-bottom: 12px;
    padding: 6px 0;
  }

  .table-wrap td,
  .table-wrap th {
    border: 0;
    padding: 9px 18px;
    font-size: 14px;
  }

  .table-wrap td::before {
    content: attr(data-label);
    display: block;
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--slate-2);
    margin-bottom: 2px;
  }

  .table-wrap th[scope="row"] {
    background: transparent;
    color: var(--slate-2);
    font-size: 11px;
    font-family: var(--font-mono);
    letter-spacing: 0.08em;
    padding-bottom: 0;
  }

  .table-wrap td:first-of-type {
    font-size: 15.5px;
    padding-top: 12px;
  }

  .table-wrap td:first-of-type::before,
  .table--kv td::before {
    display: none;
  }

  .table-wrap.table--kv tr {
    border-color: var(--line);
  }

  .section--ink .table-wrap tr {
    background: var(--ink-2);
    border-color: rgba(255, 255, 255, 0.14);
  }
}

/* ---------- 折叠 ---------- */

.accordion {
  border-top: 1px solid var(--line);
}

.accordion details {
  border-bottom: 1px solid var(--line);
}

.accordion summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 40px 20px 0;
  position: relative;
  font-size: 15.5px;
  font-weight: 500;
  line-height: 1.6;
}

.accordion summary::-webkit-details-marker {
  display: none;
}

.accordion summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 18px;
  font-family: var(--font-mono);
  font-size: 18px;
  color: var(--copper);
  font-weight: 400;
}

.accordion details[open] summary::after {
  content: "\2212";
}

.accordion .acc-body {
  padding: 0 40px 22px 0;
  font-size: 14.5px;
  color: var(--slate);
  line-height: 1.85;
}

/* ---------- 新闻列表 ---------- */

.news-list {
  border-top: 1px solid var(--line);
}

.news-item {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr) 90px;
  gap: 26px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
  transition: background 0.2s var(--ease);
}

a.news-item:hover {
  background: #fbfaf8;
}

.news-item__date {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--slate-2);
  padding-top: 4px;
}

.news-item h3 {
  font-size: 16.5px;
  font-weight: 600;
  margin-bottom: 6px;
  line-height: 1.5;
}

.news-item p {
  font-size: 14px;
  color: var(--slate);
  margin: 0;
  line-height: 1.8;
}

.news-item__cat {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: var(--copper);
  border: 1px solid rgba(178, 90, 52, 0.28);
  padding: 4px 8px;
  text-align: center;
  white-space: nowrap;
  justify-self: end;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 30px;
}

.filter-bar button {
  font-family: var(--font-sans);
  font-size: 13.5px;
  padding: 8px 16px;
  background: transparent;
  border: 1px solid var(--line-strong);
  color: var(--slate);
  cursor: pointer;
  transition: all 0.2s var(--ease);
}

.filter-bar button:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.filter-bar button.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

@media (max-width: 760px) {
  .news-item {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 20px 0;
  }

  .news-item__date {
    padding-top: 0;
  }

  .news-item__cat {
    justify-self: start;
    order: -1;
    margin-bottom: 4px;
  }
}

/* ---------- CTA 横幅 ---------- */

.cta-band {
  background: var(--ink);
  color: #fff;
  padding: 66px 0;
  position: relative;
  overflow: hidden;
}

.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(
    circle at 88% 20%,
    rgba(224, 153, 111, 0.18),
    transparent 55%
  );
  pointer-events: none;
}

.cta-band__inner {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
}

.cta-band h2 {
  font-size: clamp(24px, 2.4vw, 32px);
  max-width: 22em;
}

.cta-band p {
  color: #b9c5cd;
  font-size: 14.5px;
  margin: 14px 0 0;
  max-width: 46em;
}

/* ---------- 内页页头 ---------- */

.page-hero {
  padding: 52px 0 56px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #fbfbfa, #fff);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--slate-2);
  margin-bottom: 26px;
}

.breadcrumb a:hover {
  color: var(--copper);
}

.page-hero h1 {
  max-width: 22em;
  font-size: clamp(30px, 3.4vw, 46px);
}

.page-hero .lead {
  margin-top: 20px;
  max-width: 48em;
}

.page-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-top: 28px;
}

.pill {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  padding: 5px 11px;
  border: 1px solid var(--line-strong);
  color: var(--slate);
  background: #fff;
}

/* ---------- 表单 ---------- */

.form {
  display: grid;
  gap: 18px;
}

.form > .btn {
  justify-self: start;
  min-width: 180px;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.field label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 7px;
  letter-spacing: 0.02em;
}

.field label .req {
  color: var(--copper);
  margin-left: 3px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  font-family: var(--font-sans);
  font-size: 14.5px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 0;
  padding: 12px 13px;
  line-height: 1.5;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
  appearance: none;
}

.field textarea {
  min-height: 118px;
  resize: vertical;
}

.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23566573'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(11, 22, 34, 0.06);
}

.field.has-error input,
.field.has-error select,
.field.has-error textarea {
  border-color: #c0392b;
  background: #fdf6f5;
}

.field__err {
  display: none;
  margin-top: 6px;
  font-size: 12.5px;
  color: #b03427;
}

.field.has-error .field__err {
  display: block;
}

.form-note {
  font-size: 12.5px;
  color: var(--slate-2);
  line-height: 1.75;
  margin: 0;
}

.form-status {
  display: none;
  padding: 16px 18px;
  border: 1px solid var(--line-strong);
  border-left-width: 3px;
  font-size: 14px;
  line-height: 1.8;
}

.form-status.is-visible {
  display: block;
}

.form-status--error {
  border-color: #e2c3bf;
  border-left-color: #b03427;
  background: #fdf6f5;
  color: #8d2a20;
}

.form-status--info {
  border-color: #cbd6de;
  border-left-color: var(--ink);
  background: var(--mist);
  color: var(--ink);
}

.form-status--ok {
  border-color: #dcc8bb;
  border-left-color: var(--copper);
  background: #fbf4ef;
  color: #6b2f16;
}

.btn:disabled,
.btn[aria-disabled="true"] {
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
}

.form-status strong {
  display: block;
  margin-bottom: 4px;
}

.form-status pre {
  white-space: pre-wrap;
  word-break: break-word;
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.85;
  color: var(--ink-2);
  background: #fff;
  border: 1px solid var(--line);
  padding: 12px 14px;
  margin: 12px 0 0;
  max-height: 240px;
  overflow: auto;
}

@media (max-width: 680px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

/* ---------- 页脚 ---------- */

.site-footer {
  background: var(--ink);
  color: #9fb0ba;
  padding: 68px 0 28px;
  font-size: 14px;
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 0.75fr));
  gap: 44px;
  padding-bottom: 46px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-brand p {
  margin: 18px 0 0;
  max-width: 34em;
  font-size: 13.5px;
  line-height: 1.85;
  color: #8c9ca7;
}

.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  font-weight: 400;
  margin-bottom: 16px;
}

.footer-col a,
.footer-col p {
  display: block;
  font-size: 13.5px;
  line-height: 2.1;
  color: #b9c5cd;
  margin: 0;
}

.footer-col a:hover {
  color: #fff;
}

.footer-col a small,
.footer-col p small {
  display: block;
  font-size: 11.5px;
  color: #7c8d99;
  line-height: 1.6;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 25px;
  justify-content: space-between;
  padding-top: 24px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: #6f818d;
}

@media (max-width: 960px) {
  .footer-top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 34px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  .footer-top {
    grid-template-columns: 1fr;
  }
}

/* ---------- 动效 ---------- */

.reveal {
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

/* 仅在脚本正常运行时隐藏，避免脚本失效导致内容不可见 */
.js .reveal {
  opacity: 0;
  transform: translateY(16px);
}

.js .reveal.is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .js .reveal,
  .js .reveal.is-in {
    opacity: 1;
    transform: none;
    transition: none;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

/* ---------- 辅助 ---------- */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.mono {
  font-family: var(--font-mono);
}

.muted {
  color: var(--slate);
}

.small {
  font-size: 13px;
  line-height: 1.8;
  color: var(--slate-2);
}

.mt-0 {
  margin-top: 0;
}

.mt-2 {
  margin-top: 18px;
}

.mt-3 {
  margin-top: 28px;
}

.mt-4 {
  margin-top: 44px;
}

.mb-0 {
  margin-bottom: 0;
}

.divider {
  height: 1px;
  background: var(--line);
  border: 0;
  margin: 40px 0;
}

.note-box {
  border-left: 2px solid var(--copper);
  background: var(--copper-wash);
  padding: 18px 22px;
  font-size: 14px;
  line-height: 1.85;
  color: var(--ink-2);
}

.note-box strong {
  font-weight: 600;
}

/* 竖向流程条（用于培训路径等） */

.path {
  display: grid;
  gap: 14px;
}

.path-step {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.path-step:last-child {
  border-bottom: none;
}

.path-step__dot {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid var(--copper);
  color: var(--copper);
  font-family: var(--font-mono);
  font-size: 12px;
  border-radius: 50%;
  margin-top: 2px;
}

.path-step h4 {
  font-size: 15px;
  margin-bottom: 4px;
}

.path-step p {
  font-size: 14px;
  color: var(--slate);
  margin: 0;
  line-height: 1.8;
}

/* 论坛期卡 */

.forum-card {
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr);
  background: #fff;
  border: 1px solid var(--line);
}

.forum-card__side {
  background: var(--ink);
  color: #fff;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
}

.forum-card__issue {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  color: var(--copper-light);
}

.forum-card__date {
  font-family: var(--font-mono);
  font-size: 30px;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.forum-card__date small {
  display: block;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: #93a3ae;
  margin-top: 8px;
}

.forum-card__body {
  padding: 28px 30px;
}

.forum-card__body h3 {
  font-size: 20px;
  margin-bottom: 12px;
}

@media (max-width: 680px) {
  .forum-card {
    grid-template-columns: 1fr;
  }

  .forum-card__side {
    flex-direction: row;
    align-items: center;
    gap: 14px;
    padding: 18px 22px;
  }

  .forum-card__date {
    font-size: 22px;
  }

  .forum-card__date small {
    display: inline;
    margin: 0 0 0 8px;
  }
}

/* 双色标题块 */

.kicker-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 26px;
}

.kicker-row h3 {
  font-size: 15px;
  font-family: var(--font-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 400;
  color: var(--slate);
}

.kicker-row span {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--slate-2);
}
