:root {
  --bg: #f3efe6;
  --panel: rgba(255, 251, 245, 0.92);
  --panel-strong: #fffaf2;
  --text: #1d1b18;
  --muted: #645e57;
  --line: rgba(63, 52, 40, 0.12);
  --accent: #c65f2d;
  --accent-soft: rgba(198, 95, 45, 0.14);
  --accent-deep: #7d3213;
  --shadow: 0 24px 60px rgba(87, 57, 31, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(198, 95, 45, 0.16), transparent 28%),
    radial-gradient(circle at top right, rgba(79, 117, 93, 0.12), transparent 24%),
    linear-gradient(180deg, #f9f5ee 0%, var(--bg) 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.28) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.22) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.55), transparent 88%);
}

.page-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 36px 0 72px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.8fr);
  gap: 22px;
  align-items: stretch;
  margin-bottom: 28px;
}

.hero-copy,
.hero-panel,
.overview-card,
.category-section,
.keywords-section,
.notes-section {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.hero-copy {
  padding: 34px 34px 30px;
  position: relative;
  overflow: hidden;
}

.hero-copy::after {
  content: "";
  position: absolute;
  right: -40px;
  top: -46px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(198, 95, 45, 0.18), transparent 68%);
}

.eyebrow,
.section-tag,
.panel-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-deep);
  background: var(--accent-soft);
  border-radius: 999px;
  padding: 8px 12px;
}

.hero h1 {
  margin: 18px 0 16px;
  font-size: clamp(34px, 4.8vw, 58px);
  line-height: 1.02;
}

.hero p,
.section-head p,
.account-card p,
.note-card p,
.hero-panel li,
.hero-panel strong,
.keyword-pill,
.overview-head p {
  color: var(--muted);
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.primary-btn,
.ghost-btn,
.link-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.primary-btn,
.ghost-btn {
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  font-weight: 700;
}

.primary-btn {
  background: var(--accent);
  color: #fff8f3;
}

.ghost-btn {
  color: var(--accent-deep);
  border: 1px solid rgba(198, 95, 45, 0.24);
  background: rgba(255, 255, 255, 0.56);
}

.hero-panel {
  padding: 28px 24px;
}

.panel-list {
  margin: 18px 0 0;
  padding-left: 18px;
}

.panel-meta {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.panel-meta span {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 8px;
}

.content-grid {
  display: grid;
  gap: 24px;
}

.overview-card,
.category-section,
.keywords-section,
.notes-section {
  padding: 26px;
}

.overview-head,
.section-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: end;
  margin-bottom: 20px;
}

.overview-head h2,
.section-head h2 {
  margin: 12px 0 0;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.1;
}

.quick-picks,
.card-grid,
.notes-grid,
.keyword-groups {
  display: grid;
  gap: 16px;
}

.quick-picks {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.quick-pick {
  display: block;
  padding: 18px 16px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(248, 239, 228, 0.84));
  border: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.quick-pick:hover,
.quick-pick:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(198, 95, 45, 0.38);
  outline: none;
}

.quick-pick span {
  display: block;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin-bottom: 10px;
}

.quick-pick strong {
  font-size: 18px;
}

.card-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.account-card,
.keyword-group,
.note-card {
  border-radius: 22px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(250, 243, 233, 0.92));
}

.account-card {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.account-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
}

.account-top h3 {
  margin: 0;
  font-size: 22px;
}

.badge {
  flex-shrink: 0;
  font-size: 12px;
  color: var(--accent-deep);
  background: var(--accent-soft);
  border-radius: 999px;
  padding: 8px 10px;
}

.meta-list {
  display: grid;
  gap: 10px;
}

.meta-item {
  padding-top: 10px;
  border-top: 1px solid rgba(63, 52, 40, 0.08);
}

.meta-label {
  display: block;
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
}

.link-btn {
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--text);
  border: 1px solid rgba(63, 52, 40, 0.12);
  background: rgba(255, 255, 255, 0.92);
}

.keyword-groups {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.keyword-group {
  padding: 20px;
}

.keyword-group h3,
.note-card h3 {
  margin: 0 0 14px;
  font-size: 21px;
}

.keyword-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.keyword-pill {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  background: #fffdf9;
  border: 1px solid rgba(63, 52, 40, 0.12);
}

.notes-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.note-card {
  padding: 20px;
}

.site-footer {
  margin-top: 34px;
  padding: 22px 2px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.site-footer p {
  max-width: 860px;
  margin: 0;
  line-height: 1.8;
}

.site-footer p + p {
  margin-top: 8px;
}

.site-footer a {
  color: var(--accent-deep);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid rgba(125, 50, 19, 0.28);
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--accent);
  border-bottom-color: rgba(198, 95, 45, 0.5);
  outline: none;
}

.primary-btn:hover,
.ghost-btn:hover,
.link-btn:hover {
  transform: translateY(-2px);
}

@media (max-width: 1040px) {
  .hero,
  .overview-head,
  .section-head {
    grid-template-columns: 1fr;
  }

  .quick-picks,
  .card-grid,
  .notes-grid,
  .keyword-groups {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .page-shell {
    width: min(100% - 20px, 1180px);
    padding: 20px 0 44px;
  }

  .hero-copy,
  .hero-panel,
  .overview-card,
  .category-section,
  .keywords-section,
  .notes-section {
    border-radius: 22px;
  }

  .hero-copy,
  .hero-panel,
  .overview-card,
  .category-section,
  .keywords-section,
  .notes-section,
  .account-card,
  .keyword-group,
  .note-card {
    padding: 18px;
  }

  .quick-picks,
  .card-grid,
  .notes-grid,
  .keyword-groups {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 36px;
  }
}
