/* ==========================================================================
   攀岩 · 首页样式
   设计宽度 1440，内容栏 1328（左右各 56）
   ========================================================================== */

:root {
  --ink: #16222b;
  --ink-soft: #23313c;
  --muted: #5f6d76;
  --muted-2: #6a7680;
  --paper: #f7f6f3;
  --paper-2: #e9e8e4;
  --line: #e3e0d9;
  --accent: #e8873a;
  --accent-dark: #d9762b;
  --band: #1e2f3c;
  --footer: #1b2b36;
  --radius-card: 10px;
  --radius-img: 8px;
  --shadow-card: 0 2px 10px rgba(22, 34, 43, .06);
  --font-sans: 'PingFang SC','Microsoft YaHei','Noto Sans SC',-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family:'PingFang SC','Microsoft YaHei','Noto Sans SC',-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, p, ul { margin: 0; }

ul { list-style: none; padding: 0; }

svg { display: block; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 16px; top: -48px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--ink);
  color: #fff;
  border-radius: 6px;
  font-size: 14px;
  transition: top .2s ease;
}
.skip-link:focus { top: 12px; }

.container {
  width: min(1328px, 100% - 48px);
  margin-inline: auto;
}

/* ------------------------------------------------------------------- header */
.site-header {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 30;
  height: 72px;
  background: linear-gradient(180deg, rgba(247, 246, 243, .97) 0%, rgba(247, 246, 243, .82) 62%, rgba(247, 246, 243, 0) 100%);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 26px;
  height: 100%;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
}

.brand-mark { width: 27px; height: 27px; color: var(--ink); }

.brand-name {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--ink);
}

/* 页头只保留logo与导航（版式同视觉稿）；副标题保留给读屏与搜索引擎 */
.brand-tag {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 15px;
  color: var(--ink-soft);
}

.primary-nav a {
  position: relative;
  padding: 6px 0;
  white-space: nowrap;
}

.primary-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .22s ease;
}

.primary-nav a:hover::after,
.primary-nav a[aria-current="page"]::after { transform: scaleX(1); }

.primary-nav a[aria-current="page"] { font-weight: 600; color: var(--ink); }

.search {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  width: 208px;
  height: 34px;
  padding: 0 6px 0 10px;
  background: rgba(255, 255, 255, .92);
  border: 1px solid rgba(22, 34, 43, .14);
  border-radius: 999px;
  box-shadow: 0 1px 2px rgba(22, 34, 43, .05);
}

.search-icon { width: 14px; height: 14px; color: var(--muted-2); flex: none; }

.search input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  font-family: inherit;
  font-size: 12.5px;
  color: var(--ink);
}
.search input::placeholder { color: #9aa4ab; }
.search input:focus { outline: none; }
.search:focus-within { border-color: var(--accent); }

.search-go {
  flex: none;
  display: grid;
  place-items: center;
  width: 18px; height: 18px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted-2);
  cursor: pointer;
}
.search-go svg { width: 13px; height: 13px; }

.nav-toggle {
  display: none;
  flex: none;
  width: 40px; height: 40px;
  padding: 10px 8px;
  margin-left: auto;
  border: 1px solid rgba(22, 34, 43, .16);
  border-radius: 8px;
  background: rgba(255, 255, 255, .86);
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  margin: 3px 0;
  background: var(--ink);
  border-radius: 2px;
}

/* --------------------------------------------------------------------- hero */
.hero {
  position: relative;
  min-height: 461px;
  display: flex;
  align-items: center;
  padding: 110px 0 62px;
  overflow: hidden;
  isolation: isolate;
}

.hero-media { position: absolute; inset: 0; z-index: -1; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 38%; }

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(96deg, rgba(247, 246, 243, .97) 0%, rgba(247, 246, 243, .95) 30%, rgba(247, 246, 243, .74) 46%, rgba(247, 246, 243, .18) 62%, rgba(247, 246, 243, 0) 78%),
    linear-gradient(180deg, rgba(247, 246, 243, .55) 0%, rgba(247, 246, 243, 0) 26%);
}

.hero-inner { position: relative; }

.eyebrow {
  font-size: 15px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: .04em;
}

.hero .eyebrow {
  font-size: 44px;
  line-height: 1.1;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: .01em;
}

.hero h1 {
  font-size: 44px;
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: .01em;
  margin-top: 2px;
}

.hero-lead {
  max-width: 470px;
  margin-top: 20px;
  font-size: 18px;
  line-height: 1.78;
  color: #3f4d56;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 26px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  transition: transform .18s ease, background-color .18s ease, color .18s ease, border-color .18s ease;
}
.btn svg { width: 16px; height: 16px; }

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 6px 16px rgba(232, 135, 58, .28);
}
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-1px); }

.btn-ghost {
  background: rgba(255, 255, 255, .88);
  color: var(--ink);
  border: 1px solid rgba(22, 34, 43, .16);
}
.btn-ghost:hover { border-color: var(--ink); }

.btn-outline {
  height: 40px;
  padding: 0 18px;
  font-size: 14px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .45);
  background: transparent;
}
.btn-outline:hover { background: rgba(255, 255, 255, .12); border-color: #fff; }

/* ----------------------------------------------------------------- sections */
.section { padding: 30px 0 34px; }

.section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  line-height: 1.3;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 20px;
}

.section-title::before {
  content: "";
  width: 4px;
  height: 20px;
  border-radius: 2px;
  background: var(--accent);
}

/* --------------------------------------------------------- M2 categories */
.categories { background: var(--paper-2); padding: 28px 0 32px; }

.cat-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 12px;
}

.cat-card { display: block; }

.cat-media {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-img);
  overflow: hidden;
  background: #d8d6d0;
}

.cat-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}

.cat-name {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 20px 8px 8px;
  text-align: center;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .04em;
  color: #fff;
  background: linear-gradient(180deg, rgba(20, 28, 34, 0) 0%, rgba(20, 28, 34, .82) 100%);
}

.cat-desc {
  display: block;
  margin-top: 10px;
  font-size: 13.5px;
  line-height: 1.6;
  color: #54616a;
}

.cat-card:hover .cat-media img { transform: scale(1.05); }
.cat-card:hover .cat-name { color: #ffd9b8; }

/* ----------------------------------------------------------- M3 featured */
.featured { background: var(--paper); padding: 30px 0 33px; }

.feat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feat-link {
  position: relative;
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 14px;
  align-items: center;
  height: 100%;
  padding: 11px;
  background: #fff;
  border: 1px solid #eae6df;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  transition: transform .2s ease, box-shadow .2s ease;
}

.feat-link:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(22, 34, 43, .1); }

.feat-thumb {
  display: block;
  aspect-ratio: 4 / 3;
  border-radius: 6px;
  overflow: hidden;
  background: #dedbd4;
}
.feat-thumb img { width: 100%; height: 100%; object-fit: cover; }

.feat-body { display: block; padding-right: 4px; }

.feat-body h3 {
  font-size: 15.5px;
  line-height: 1.5;
  font-weight: 700;
  color: var(--ink);
}

.feat-body p {
  margin-top: 6px;
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--muted-2);
}

.feat-more {
  position: absolute;
  right: 10px; bottom: 10px;
  display: grid;
  place-items: center;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: #f4f1ec;
  color: var(--accent);
}
.feat-more svg { width: 12px; height: 12px; }
.feat-link:hover .feat-more { background: var(--accent); color: #fff; }

/* ---------------------------------------------------------- M4 technique */
.technique {
  position: relative;
  background: var(--band);
  color: #fff;
  padding: 29px 0;
  overflow: hidden;
}

.technique-inner {
  position: relative;
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 40px;
  align-items: center;
  min-height: 181px;
}

.eyebrow-light {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #f2b483;
}

.eyebrow-light::before {
  content: "";
  width: 4px; height: 16px;
  border-radius: 2px;
  background: var(--accent);
}

.technique h2 {
  margin-top: 10px;
  font-size: 34px;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: .02em;
}

.technique-lead {
  margin: 12px 0 18px;
  font-size: 15px;
  line-height: 1.75;
  color: rgba(255, 255, 255, .82);
  max-width: 430px;
}

.technique-visual { position: relative; align-self: stretch; min-height: 181px; }

.technique-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(30, 47, 60, .86) 0%, rgba(30, 47, 60, .58) 34%, rgba(30, 47, 60, .12) 62%, rgba(30, 47, 60, 0) 100%);
  pointer-events: none;
}

.technique-visual img {
  position: absolute;
  top: -29px;
  bottom: -29px;
  left: 0;
  width: calc(100% + max(0px, (100vw - 1328px) / 2));
  height: auto;
  object-fit: cover;
  border-radius: 0;
}

.technique-list {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 30px;
  transform: translateY(-50%);
  display: grid;
  gap: 10px;
  font-size: 14.5px;
  color: #fff;
  text-shadow: 0 1px 6px rgba(10, 18, 24, .55);
}

.technique-list li { display: flex; align-items: center; gap: 10px; }

.technique-list li::before {
  content: "";
  flex: none;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(232, 135, 58, .25);
}

/* --------------------------------------------------------------- M5 gear */
.gear { background: var(--paper); padding: 32px 0 29px; }

.gear-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
}

.gear-item { display: flex; align-items: center; gap: 14px; }

.gear-item img {
  flex: none;
  width: 96px; height: 96px;
  object-fit: cover;
  border-radius: 6px;
  background: #eeeae4;
}

.gear-text h3 { font-size: 16px; line-height: 1.4; font-weight: 700; }

.gear-text p {
  margin-top: 4px;
  font-size: 13px;
  line-height: 1.65;
  color: var(--muted-2);
}

/* ------------------------------------------------------------- M6 safety */
.safety { background: var(--band); color: #fff; padding: 24px 0; }

.safety-inner { display: flex; align-items: center; gap: 24px; }

.safety-label {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
  padding-right: 22px;
  border-right: 1px solid rgba(255, 255, 255, .22);
  font-size: 16px;
  font-weight: 700;
}
.safety-label svg { width: 26px; height: 26px; color: #fff; opacity: .92; }

.safety-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  flex: 1;
}

.safety-list li {
  display: grid;
  gap: 3px;
  padding-left: 20px;
  position: relative;
}

.safety-list li::before {
  content: "✓";
  position: absolute;
  left: 0; top: 0;
  color: var(--accent);
  font-size: 13px;
  line-height: 1.6;
}

.safety-list strong { font-size: 14.5px; font-weight: 700; }
.safety-list span { font-size: 12.5px; line-height: 1.5; color: rgba(255, 255, 255, .74); }

/* ------------------------------------------------------------- M7 latest */
.latest { padding: 28px 0 28px; background: var(--paper); }

.latest-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 44px;
}

.latest-row {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 12px;
  align-items: center;
  padding: 5px 0;
  border-bottom: 1px solid var(--line);
  transition: background-color .18s ease;
}

.latest-thumb {
  display: block;
  width: 44px; height: 44px;
  border-radius: 6px;
  overflow: hidden;
  background: #e2ded7;
}
.latest-thumb img { width: 100%; height: 100%; object-fit: cover; }

.latest-body {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas: "tag title" "tag desc";
  column-gap: 10px;
  row-gap: 1px;
  align-items: center;
}

.tag {
  grid-area: tag;
  align-self: center;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11.5px;
  line-height: 1.5;
  font-weight: 600;
  color: #8a5a15;
  background: #f4e6c8;
  white-space: nowrap;
}

.latest-row:nth-child(2) .tag { color: #2a5478; background: #dde8f2; }
.latest-row:nth-child(3) .tag { color: #1f6570; background: #d8ecec; }
.latest-row:nth-child(4) .tag { color: #5a6470; background: #e6e4e0; }
.latest-row:nth-child(5) .tag { color: #2f6042; background: #dcecdf; }
.latest-row:nth-child(6) .tag { color: #55407a; background: #e8e1f3; }

.latest-title {
  grid-area: title;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--ink);
}

.latest-desc {
  grid-area: desc;
  font-size: 12px;
  line-height: 1.45;
  color: var(--muted-2);
}

.latest-row:hover .latest-title { color: var(--accent-dark); }

/* ---------------------------------------------------------------- M8 cta */
.cta {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 152px;
  padding: 28px 0;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}

.cta-media { position: absolute; inset: 0; z-index: -1; }
.cta-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; }
.cta-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(14, 24, 32, .88) 0%, rgba(14, 24, 32, .74) 44%, rgba(14, 24, 32, .45) 72%, rgba(14, 24, 32, .3) 100%);
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.cta h2 { font-size: 30px; line-height: 1.3; font-weight: 700; letter-spacing: .02em; }

.cta p {
  margin-top: 8px;
  max-width: 640px;
  font-size: 13.5px;
  line-height: 1.7;
  color: rgba(255, 255, 255, .82);
}

/* ------------------------------------------------------------- M9 footer */
.site-footer { background: var(--footer); color: #fff; padding: 48px 0 36px; }

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
}
.footer-brand { flex: 1 1 280px; min-width: 240px; }
.footer-nav, .footer-col, .footer-about { flex: 1 1 180px; min-width: 150px; }

.brand-footer .brand-name { color: #fff; font-size: 20px; }
.brand-footer .brand-mark { color: #fff; }

.footer-brand p {
  margin-top: 14px;
  max-width: 380px;
  font-size: 12.5px;
  line-height: 1.75;
  color: rgba(255, 255, 255, .58);
}

.footer-nav h2,
.footer-col h2,
.footer-about h2 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  color: rgba(255, 255, 255, .95);
  margin-bottom: 12px;
}

.footer-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  font-size: 13px;
  color: rgba(255, 255, 255, .72);
}
.footer-nav a:hover { color: var(--accent); }

.footer-about p { font-size: 12.5px; line-height: 1.7; color: rgba(255, 255, 255, .55); }

/* ---------------------------------------------------------- responsive */
@media (max-width: 1240px) {
  .cat-grid { grid-template-columns: repeat(4, 1fr); gap: 14px; }
  .feat-grid { grid-template-columns: repeat(2, 1fr); }
  .feat-grid .feat-card:last-child { grid-column: span 2; }
  .gear-grid { grid-template-columns: repeat(2, 1fr); gap: 22px; }
  .technique-inner { grid-template-columns: 1fr 1fr; gap: 28px; }
}

@media (max-width: 1080px) {
  .primary-nav { gap: 16px; font-size: 14px; }
  .search { width: 170px; }
  .hero .eyebrow, .hero h1 { font-size: 38px; }
  .hero-lead { font-size: 16px; max-width: 430px; }
}

@media (max-width: 980px) {
  .site-header { position: sticky; top: 0; height: auto; background: rgba(247, 246, 243, .96); }
  .header-inner { flex-wrap: wrap; gap: 4px 16px; padding-block: 8px; }

  .primary-nav {
    position: static;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    width: 100%;
    flex: 1 1 100%;
    gap: 2px 14px;
    padding: 4px 0 2px;
    background: none;
    border: none;
    border-radius: 0;
    box-shadow: none;
  }
  .primary-nav a { padding: 5px 0; border-radius: 0; font-size: 12.5px; }
  .primary-nav a::after { display: none; }
  .primary-nav a:hover { background: none; }

  .hero { padding: 28px 0 56px; min-height: 0; }
  .hero-media::after {
    background:
      linear-gradient(180deg, rgba(247, 246, 243, .96) 0%, rgba(247, 246, 243, .92) 52%, rgba(247, 246, 243, .78) 82%, rgba(247, 246, 243, .68) 100%);
  }
  .technique-inner { grid-template-columns: 1fr; }
  .technique-visual { min-height: 220px; }
  .technique-visual img { position: static; width: 100%; height: 220px; border-radius: var(--radius-img); }
  .technique-visual::after { content: none; }
  .technique-list { position: static; transform: none; margin-top: 14px; text-shadow: none; color: rgba(255, 255, 255, .92); }
  .technique-lead { max-width: none; }
  .safety-inner { flex-direction: column; align-items: flex-start; gap: 14px; }
  .safety-label { border-right: 0; padding-right: 0; }
  .safety-list { grid-template-columns: 1fr; gap: 12px; width: 100%; }
  .latest-grid { grid-template-columns: 1fr; column-gap: 0; }
  .cta-inner { flex-direction: column; align-items: flex-start; gap: 20px; }
  .footer-inner { flex-direction: column; gap: 26px; }
  .footer-brand, .footer-nav, .footer-col, .footer-about { flex: 1 1 auto; width: 100%; min-width: 0; }
}

@media (max-width: 760px) {
  .container { width: calc(100% - 40px); }
  .hero { padding: 84px 0 44px; min-height: 0; }
  .hero .eyebrow, .hero h1 { font-size: 32px; }
  .hero-lead { font-size: 15px; margin-top: 14px; }
  .hero-actions { flex-wrap: wrap; gap: 10px; margin-top: 20px; }
  .btn { height: 42px; padding: 0 18px; font-size: 14px; }
  .section { padding: 24px 0 26px; }
  .section-title { font-size: 19px; margin-bottom: 16px; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .cat-name { font-size: 14px; padding: 16px 6px 6px; }
  .cat-desc { font-size: 12.5px; }
  .feat-grid { grid-template-columns: 1fr; }
  .feat-grid .feat-card:last-child { grid-column: auto; }
  .feat-link { grid-template-columns: 104px 1fr; }
  .technique { padding: 28px 0; }
  .technique h2 { font-size: 26px; }
  .gear-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .gear-item img { width: 68px; height: 68px; }
  .gear-text h3 { font-size: 14.5px; }
  .gear-text p { font-size: 12px; }
  .safety { padding: 22px 0; }
  .safety-list strong { font-size: 13.5px; }
  .latest { padding: 22px 0 26px; }
  .latest-row { grid-template-columns: 44px 1fr; }
  .latest-thumb { width: 44px; height: 44px; }
  .latest-title { font-size: 14.5px; }
  .latest-desc { font-size: 12px; }
  .cta { padding: 28px 0; min-height: 0; }
  .cta h2 { font-size: 24px; }
  .footer-inner { grid-template-columns: 1fr; gap: 22px; }
  .footer-about { grid-column: auto; }
  .search { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  html { scroll-behavior: auto; }
}
