:root {
  color-scheme: light;
  --bg: #f7f7f2;
  --ink: #171a1f;
  --muted: #5f6673;
  --line: #dadfd6;
  --panel: #ffffff;
  --accent: #1e6b5c;
  --accent-2: #c7472d;
  --soft: #e6efe9;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Arial, "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
}

.site-header {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  padding: 18px clamp(18px, 5vw, 64px);
}

.brand {
  align-items: center;
  display: flex;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  align-items: center;
  background: var(--accent);
  border-radius: 8px;
  color: white;
  display: inline-flex;
  font-weight: 700;
  height: 40px;
  justify-content: center;
  width: 40px;
}

.brand small {
  color: var(--muted);
  display: block;
  font-size: 12px;
}

nav {
  align-items: center;
  display: flex;
  gap: 18px;
}

nav a {
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
}

.nav-cta {
  background: var(--ink);
  border-radius: 6px;
  color: white;
  padding: 8px 12px;
}

.hero {
  align-items: stretch;
  display: grid;
  gap: 32px;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
  min-height: 560px;
  padding: clamp(48px, 9vw, 104px) clamp(18px, 5vw, 64px) 44px;
}

.hero-copy h1,
.page-hero h1,
.article h1 {
  font-size: clamp(40px, 7vw, 76px);
  letter-spacing: 0;
  line-height: 1.05;
  margin: 8px 0 18px;
}

.hero-copy p,
.page-hero p,
.lead {
  color: var(--muted);
  font-size: 18px;
  max-width: 760px;
}

.eyebrow {
  color: var(--accent-2);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  margin: 0;
}

.hero-actions,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  border: 1px solid var(--ink);
  border-radius: 6px;
  display: inline-flex;
  font-weight: 700;
  padding: 13px 18px;
  text-decoration: none;
}

.button-dark {
  background: var(--ink);
  color: white;
}

.button-light {
  background: transparent;
}

.search-panel {
  align-self: center;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(23, 26, 31, 0.08);
  display: grid;
  gap: 12px;
  padding: 28px;
}

.search-panel span,
.tag-row span {
  background: var(--soft);
  border-radius: 6px;
  color: #29443c;
  display: inline-flex;
  padding: 10px 12px;
}

.section,
.page-hero,
.article {
  padding: 56px clamp(18px, 5vw, 64px);
}

.section-heading {
  margin-bottom: 24px;
}

.section h2,
.article h2 {
  font-size: clamp(26px, 4vw, 42px);
  line-height: 1.15;
  margin: 8px 0 14px;
}

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

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 210px;
  padding: 24px;
  text-decoration: none;
}

.card span {
  color: var(--accent-2);
  font-size: 13px;
  font-weight: 700;
}

.card h3 {
  font-size: 24px;
  margin: 12px 0;
}

.card p,
.guide-list span,
.tips p {
  color: var(--muted);
}

.cta-band {
  align-items: center;
  background: var(--accent);
  color: white;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  padding: 42px clamp(18px, 5vw, 64px);
}

.cta-band p {
  color: rgba(255, 255, 255, 0.82);
  max-width: 680px;
}

.cta-band .eyebrow {
  color: #f6d9b8;
}

.cta-band .button {
  border-color: white;
  flex: 0 0 auto;
}

.guide-list {
  display: grid;
  gap: 14px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.guide-list li {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 4px;
  padding: 18px;
}

.guide-list a {
  font-weight: 700;
  text-decoration: none;
}

.two-column {
  display: grid;
  gap: 32px;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 1.1fr);
}

.keyword-list {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  margin: 0;
  padding: 24px 24px 24px 48px;
}

.tips {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tips p {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  margin: 0;
  padding: 20px;
}

.article {
  margin: 0 auto;
  max-width: 920px;
}

.article p,
.article li {
  color: var(--muted);
  font-size: 17px;
}

.site-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  padding: 28px clamp(18px, 5vw, 64px);
}

@media (max-width: 820px) {
  .site-header,
  .cta-band {
    align-items: flex-start;
    flex-direction: column;
  }

  nav {
    flex-wrap: wrap;
  }

  .hero,
  .grid,
  .two-column,
  .tips {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }
}
