
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  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; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p { margin: 0; }
button { font: inherit; color: inherit; }

.wrap {
  width: min(var(--wrap), calc(100% - 64px));
  margin-inline: auto;
}

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

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(249, 245, 234, .96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  min-height: 70px;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 7px;
  flex: none;
  font-family: var(--serif);
}
.brand-name {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: .04em;
}
.brand-sub {
  font-size: 14px;
  color: var(--ink-soft);
  letter-spacing: .08em;
}

.site-nav { margin-left: 100px; margin-right: auto; }
.site-nav ul {
  display: flex;
  align-items: center;
  gap: 24px;
}
.site-nav a {
  position: relative;
  display: inline-block;
  padding: 24px 0 22px;
  font-size: 13.2px;
  color: #3f3b33;
  white-space: nowrap;
  transition: color .2s;
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 14px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform .2s;
}
.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a.is-active { color: var(--accent); }
.site-nav a:hover::after,
.site-nav a:focus-visible::after,
.site-nav a.is-active::after { transform: scaleX(1); }

.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  flex: none;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  border-radius: var(--radius);
}
.icon-button:hover,
.icon-button:focus-visible { background: var(--surface-sand); color: var(--accent); }

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  margin-left: auto;
  padding: 9px;
  border: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 1.5px;
  margin: 4px 0;
  background: var(--ink);
  transition: transform .2s, opacity .2s;
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 447px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #16170f;
}
.hero-media {
  position: absolute;
  top: 0;
  right: max(0px, calc((100% - 1440px) / 2));
  width: 55%;
  height: 100%;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 52% 50%;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, #16170f 6%, rgba(22, 23, 15, .92) 34%, rgba(22, 23, 15, .48) 58%, rgba(22, 23, 15, .12) 100%),
    linear-gradient(0deg, rgba(22, 23, 15, .35), rgba(22, 23, 15, .05));
}
.hero-inner {
  position: relative;
  z-index: 1;
  padding: 78px 0 46px;
}
.hero-copy { max-width: 590px; padding-left: 15px; color: #f7f1e4; }
.eyebrow {
  margin-bottom: 13px;
  font-size: 11px;
  letter-spacing: .28em;
  color: #c8bca5;
}
.hero h1 {
  font-family: var(--serif);
  font-size: clamp(50px, 5vw, 72px);
  line-height: 1.18;
  font-weight: 700;
  letter-spacing: .04em;
}
.hero-lead {
  max-width: 540px;
  margin-top: 20px;
  font-size: 16px;
  line-height: 2;
  color: #ded5c4;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 14px;
  letter-spacing: .05em;
  transition: background .2s, color .2s, border-color .2s;
}
.button-primary { background: var(--accent); color: #fff; }
.button-primary:hover,
.button-primary:focus-visible { background: var(--accent-dark); }
.button-ghost { border-color: rgba(247, 241, 228, .55); color: #f7f1e4; }
.button-ghost:hover,
.button-ghost:focus-visible { background: rgba(247, 241, 228, .12); border-color: #f7f1e4; }

/* ---------- categories ---------- */
.categories { padding: 7px 0 37px; }

.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.cat-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow .2s, transform .2s;
}
.cat-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }

.cat-media { position: relative; }
.cat-media img {
  width: 100%;
  aspect-ratio: 302 / 146;
  object-fit: cover;
}
.cat-tag {
  position: absolute;
  left: 10px;
  bottom: 0;
  margin: 0;
  padding: 5px 10px;
  background: rgba(34, 75, 54, .94);
  color: #f2eee2;
  font-family:'PingFang SC','Microsoft YaHei','Noto Sans SC',-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: .06em;
}
.cat-body { padding: 11px 13px 13px; min-height: 132px; }
.cat-title {
  min-height: 50px;
  font-family: var(--serif);
  font-size: 18.5px;
  line-height: 1.38;
  font-weight: 700;
  letter-spacing: .01em;
}
.cat-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 10px;
  margin-top: 8px;
  color: #6f6a5f;
  font-size: 11px;
}
.cat-keywords li::before {
  content: "·";
  margin-right: 4px;
  color: var(--accent);
}

/* ---------- section title ---------- */
.section-title {
  display: flex;
  align-items: center;
  gap: 11px;
  font-family: var(--serif);
  font-size: 27px;
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: .03em;
}
.section-title::before {
  content: "";
  width: 5px;
  height: 24px;
  background: var(--accent);
  flex: none;
}

/* ---------- feature + latest ---------- */
.feature-row {
  display: grid;
  grid-template-columns: minmax(0, 1.62fr) minmax(0, 1fr);
  gap: 44px;
  padding-top: 42px;
  padding-bottom: 39px;
}
.feature-body {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: 22px;
  margin-top: 20px;
}
.pick-main-media {
  display: block;
  overflow: hidden;
  background: var(--surface-sand);
}
.pick-main-media img {
  width: 100%;
  aspect-ratio: 475 / 202;
  object-fit: cover;
  transition: transform .35s;
}
.pick-main:hover .pick-main-media img { transform: scale(1.02); }
.pick-main h3 {
  margin-top: 13px;
  font-family: var(--serif);
  font-size: 21px;
  line-height: 1.45;
  font-weight: 700;
}
.pick-main h3 a:hover { color: var(--accent); }
.pick-main p {
  margin-top: 7px;
  font-size: 13px;
  line-height: 1.8;
  color: var(--ink-soft);
}
.pick-side {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.pick-small {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}
.pick-small-media { display: block; overflow: hidden; }
.pick-small-media img {
  width: 84px;
  height: 84px;
  object-fit: cover;
}
.pick-small h3 {
  font-family: var(--serif);
  font-size: 15.5px;
  line-height: 1.45;
  font-weight: 700;
}
.pick-small h3 a:hover { color: var(--accent); }
.pick-small p {
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.65;
  color: var(--ink-soft);
}

.latest-col .section-title { margin-bottom: 12px; }
.latest-list li {
  border-bottom: 1px solid var(--line);
}
.latest-list li:first-child { border-top: 1px solid var(--line); }
.latest-list a {
  position: relative;
  display: block;
  padding: 13px 76px 13px 0;
  font-size: 14.5px;
  line-height: 1.55;
  transition: color .2s;
}
.latest-list a:hover,
.latest-list a:focus-visible { color: var(--accent); }
.latest-list li::after {
  content: attr(data-cat);
  position: absolute;
  right: 0;
  top: 15px;
  color: var(--green);
  font-size: 11.5px;
  letter-spacing: .04em;
}
.latest-list li { position: relative; }

/* ---------- path + parts ---------- */
.path-row {
  display: grid;
  grid-template-columns: 715px minmax(0, 1fr);
  gap: 70px;
  padding-top: 0;
}
.path-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin-top: 33px;
}
.path-card img {
  width: 100%;
  aspect-ratio: 147 / 80;
  object-fit: cover;
  background: var(--surface-sand);
}
.path-step {
  margin-top: 10px;
  color: var(--accent);
  font-size: 10.5px;
  line-height: 1.4;
  letter-spacing: .1em;
}
.path-step::before {
  content: "从认识到读懂";
  display: block;
  margin-bottom: 2px;
  color: var(--ink-soft);
  font-size: 10.5px;
  line-height: 1.4;
  letter-spacing: .06em;
}
.path-card h3 {
  margin-top: 2px;
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.35;
  font-weight: 700;
}
.path-card p:last-child {
  margin-top: 3px;
  font-size: 12px;
  line-height: 1.55;
  color: var(--ink-soft);
}

.parts-panel .section-title { font-size: 24px; }
.parts-body {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  gap: 14px;
  margin-top: 16px;
  align-items: start;
}
.parts-body img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  background: var(--surface-sand);
}
.parts-list li {
  position: relative;
  padding: 6px 0 6px 12px;
  border-bottom: 1px solid var(--line);
}
.parts-list li:first-child { padding-top: 0; }
.parts-list li:last-child { border-bottom: 0; }
.parts-list li::before {
  content: "";
  position: absolute;
  left: 1px;
  top: 13px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
}
.parts-list li:first-child::before { top: 7px; }
.parts-list strong {
  display: block;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
}
.parts-list span {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 11px;
  line-height: 1.5;
  color: var(--ink-soft);
}

/* ---------- editorial note ---------- */
.editorial-note {
  margin-top: 12px;
  background: var(--surface-sand);
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}
.note-inner {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 32px;
  align-items: start;
  padding-top: 37px;
  padding-bottom: 37px;
}
.note-inner h2 {
  font-family: var(--serif);
  font-size: 27px;
  font-weight: 700;
  letter-spacing: .03em;
}
.note-inner p {
  max-width: 900px;
  font-size: 13.5px;
  line-height: 1.9;
  color: #4c463b;
}

/* ---------- footer ---------- */
.site-footer {
  background: var(--footer);
  color: var(--footer-ink);
  margin-top: 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr;
  gap: 36px;
  padding-top: 16px;
  padding-bottom: 8px;
}
.footer-logo {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: .03em;
}
.footer-logo span {
  font-size: 17px;
  font-weight: 400;
  color: #d8cfbc;
}
.footer-brand > p:last-child {
  margin-top: 9px;
  max-width: 300px;
  font-size: 12.5px;
  line-height: 1.8;
  color: var(--footer-soft);
}
.footer-grid h2 {
  margin-bottom: 8px;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: .14em;
  color: #cfc7b5;
}
.footer-nav ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px 20px;
}
.footer-nav a {
  font-size: 12px;
  line-height: 1.6;
  color: var(--footer-ink);
  transition: color .2s;
}
.footer-nav a:hover,
.footer-nav a:focus-visible { color: #e0b9a9; }
.footer-note p {
  max-width: 280px;
  font-size: 12.5px;
  line-height: 1.85;
  color: var(--footer-soft);
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 6px;
  padding-bottom: 8px;
  border-top: 1px solid rgba(243, 236, 221, .16);
  color: #9d9788;
  font-size: 11.5px;
}

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .site-nav ul { gap: 14px; }
  .site-nav a { font-size: 12.2px; }
  .brand-sub { display: none; }
}

@media (max-width: 1080px) {
  .nav-toggle { display: block; }
  .icon-button { margin-left: 0; }
  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    margin-left: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 24px -24px rgba(27, 26, 22, .5);
    display: none;
  }
  .site-nav.is-open { display: block; }
  .site-nav ul {
    display: block;
    padding: 8px 32px 18px;
  }
  .site-nav li { border-bottom: 1px solid var(--line); }
  .site-nav li:last-child { border-bottom: 0; }
  .site-nav a { display: block; padding: 12px 0; font-size: 14px; }
  .site-nav a::after { bottom: 8px; right: auto; width: 36px; }

  .hero-media { width: 62%; }
  .cat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .feature-row,
  .path-row { grid-template-columns: 1fr; gap: 34px; }
  .latest-list { max-width: 720px; }
  .footer-grid { grid-template-columns: 1.2fr 1fr; }
  .footer-note { grid-column: 1 / -1; }
}

@media (max-width: 780px) {
  .wrap { width: calc(100% - 40px); }
  .header-inner { min-height: 62px; gap: 12px; }
  .brand-name { font-size: 20px; }
  .hero { min-height: 0; }
  .hero-media { width: 100%; opacity: .55; }
  .hero::after {
    background: linear-gradient(180deg, rgba(22, 23, 15, .55) 0%, rgba(22, 23, 15, .86) 70%, #16170f 100%);
  }
  .hero-inner { padding: 54px 0 46px; }
  .hero h1 { font-size: clamp(42px, 12vw, 58px); }
  .hero-lead { font-size: 14.5px; line-height: 1.85; }
  .categories { padding-top: 26px; }
  .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .cat-body h3 { font-size: 17px; }
  .cat-body p { min-height: 0; font-size: 12.5px; }
  .feature-body { grid-template-columns: 1fr; }
  .pick-side { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .path-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .note-inner { grid-template-columns: 1fr; gap: 10px; padding-top: 24px; padding-bottom: 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; padding-top: 32px; }
  .footer-nav ul { gap: 8px 24px; }
  .footer-bottom { flex-direction: column; gap: 4px; }
}

@media (max-width: 520px) {
  .cat-grid { grid-template-columns: 1fr; }
  .pick-side { grid-template-columns: 1fr; }
  .path-grid { grid-template-columns: 1fr; }
  .latest-list a { padding-right: 0; padding-bottom: 26px; }
  .latest-list li::after { top: auto; bottom: 9px; }
  .hero-actions .button { flex: 1 1 auto; }
}

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

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

.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;
}
