/* 基础样式、页面组件与响应式布局 */
* {
  box-sizing: border-box;
}
:root {
  --ink: #182321;
  --paper: #f5f1e8;
  --accent: #e8a54b;
  --muted: #53625e;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.8 system-ui,"Microsoft YaHei",sans-serif;
}
a {
  color: inherit;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
a:focus-visible {
  outline: 3px solid #b56c12;
  outline-offset: 4px;
}
.wrap {
  width: min(1200px,92%);
  margin: auto;
}
header {
  background: #172623;
  color: #fff;
}
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 0;
  flex-wrap: wrap;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 24px;
  font-weight: 800;
}
nav {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 14px;
}
.hero {
  background: #172623;
  color: #fff;
  padding: 38px 0 48px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 40px;
  align-items: center;
}
.eyebrow {
  color: #e8a54b;
  letter-spacing: .14em;
  font-size: 13px;
  font-weight: 700;
}
h1 {
  font-size: clamp(30px,4.4vw,56px);
  line-height: 1.23;
  margin: 12px 0 20px;
}
h2 {
  font-size: 27px;
  line-height: 1.35;
}
h3 {
  font-size: 20px;
  line-height: 1.4;
  margin: 8px 0;
}
p {
  margin: 0 0 16px;
}
.hero p {
  color: #d6dfd8;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
.hero img {
  width: 100%;
  border: 1px solid #6d8176;
}
.button {
  display: inline-block;
  padding: 10px 20px;
  background: var(--accent);
  color: #182321;
  font-weight: 700;
}
.section {
  padding: 35px 0;
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  border-bottom: 2px solid var(--ink);
  margin-bottom: 24px;
}
.section-head span {
  color: var(--muted);
  font-size: 13px;
}
.layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 28px;
}
.features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.entry {
  border-bottom: 1px solid #c8c8bb;
  padding-bottom: 18px;
}
.entry img {
  width: 100%;
  aspect-ratio: 3/2;
  object-fit: cover;
}
.entry p,.side p {
  color: var(--muted);
}
.tag {
  color: #81500e;
  font-size: 13px;
  font-weight: 700;
}
.side {
  background: #e5e7dc;
  padding: 24px;
  align-self: start;
}
.side li {
  margin-bottom: 12px;
}
.strip {
  background: #e4ded0;
  padding: 24px;
  border-left: 5px solid #b56c12;
}
footer {
  background: #172623;
  color: #e0e6e0;
  padding: 30px 0;
}
footer a {
  text-decoration: underline;
}
.article {
  max-width: 850px;
  padding: 36px 0;
}
.article h1 {
  font-size: clamp(30px,4vw,46px);
}
.article h2 {
  margin-top: 32px;
}
.article img {
  width: 100%;
  margin: 24px 0;
}
.crumb {
  color: var(--muted);
  font-size: 14px;
}
.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 10px;
  top: 10px;
  background: white;
  color: black;
  padding: 10px;
  z-index: 10;
}
@media (max-width:760px) {
  .hero-grid,.layout {
    grid-template-columns: 1fr;
  }
  .features {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }
  nav {
    gap: 12px;
  }
  .section-head {
    flex-wrap: wrap;
  }
}
@media (max-width:420px) {
  .features {
    grid-template-columns: 1fr;
  }
}

/* 可读性与窄屏修正 */
.hero-grid > *, .layout > *, .features > * {
  min-width: 0;
}
.entry h3, .hero h1, .article h1 {
  overflow-wrap: anywhere;
}
.entry .tag {
  display: inline-block;
  margin-top: 12px;
}
@media (max-width: 760px) {
  .hero-grid { gap: 24px; }
  .top { gap: 12px; }
  .section { padding: 24px 0; }
}
