:root {
  --bg: #f6f0e6;
  --bg-strong: #efe4d3;
  --surface: rgba(255, 252, 247, 0.78);
  --surface-strong: #fffaf2;
  --line: rgba(31, 39, 56, 0.1);
  --text: #1f2738;
  --text-soft: rgba(31, 39, 56, 0.72);
  --shadow: 0 24px 80px rgba(73, 52, 24, 0.12);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 16px;
  --accent: #e46f47;
  --accent-soft: rgba(228, 111, 71, 0.14);
  --success: #15796c;
  --max-width: 1240px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(235, 131, 63, 0.22), transparent 30%),
    radial-gradient(circle at top right, rgba(39, 132, 113, 0.18), transparent 28%),
    linear-gradient(180deg, #fcf7ef 0%, var(--bg) 42%, #f3ecdf 100%);
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

button,
input {
  font: inherit;
}

.page-noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.42;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31, 39, 56, 0.04) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(circle at center, black 55%, transparent 100%);
}

.hero,
.layout,
.footer {
  width: min(calc(100% - 32px), var(--max-width));
  margin: 0 auto;
}

.hero {
  position: relative;
  padding: 24px 0 24px;
}

.hero__halo {
  position: absolute;
  z-index: -1;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  filter: blur(30px);
  opacity: 0.6;
}

.hero__halo--left {
  left: -32px;
  top: 64px;
  background: rgba(241, 142, 66, 0.36);
}

.hero__halo--right {
  right: -12px;
  top: 96px;
  background: rgba(24, 148, 129, 0.26);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 44px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.brand__mark {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(31, 39, 56, 0.12);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(228, 111, 71, 0.92), rgba(232, 181, 77, 0.92));
  color: #fff;
  font-family: "Space Grotesk", "Noto Sans SC", sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  box-shadow: var(--shadow);
}

.brand__text {
  display: flex;
  flex-direction: column;
}

.brand__text strong,
.eyebrow,
h1,
h2,
h3,
.card__badge,
.stat__value,
.button {
  font-family: "Space Grotesk", "Noto Sans SC", sans-serif;
}

.brand__text strong {
  font-size: 1.05rem;
}

.brand__text small {
  color: var(--text-soft);
}

.topbar__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: linear-gradient(135deg, #1f2738, #314566);
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
  box-shadow: 0 14px 32px rgba(31, 39, 56, 0.15);
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button--ghost {
  border-color: rgba(31, 39, 56, 0.12);
  background: rgba(255, 255, 255, 0.48);
  color: var(--text);
  box-shadow: none;
}

.hero__content {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 24px;
  align-items: stretch;
}

.hero__copy,
.hero__panel-card,
.sidebar__card,
.section-card,
.card {
  border: 1px solid var(--line);
  background: var(--surface);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}

.hero__copy {
  padding: 40px;
  border-radius: var(--radius-xl);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  max-width: 12ch;
  font-size: clamp(2.8rem, 6vw, 5.6rem);
  line-height: 0.96;
  letter-spacing: -0.05em;
}

.hero__subtitle {
  max-width: 50ch;
  margin: 22px 0 28px;
  color: var(--text-soft);
  font-size: 1.08rem;
}

.searchbar {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: end;
}

.searchbar__label {
  grid-column: 1 / -1;
  font-size: 0.9rem;
  color: var(--text-soft);
}

.searchbar__input {
  min-width: 0;
  height: 56px;
  padding: 0 18px;
  border: 1px solid rgba(31, 39, 56, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--text);
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.searchbar__input:focus {
  border-color: rgba(228, 111, 71, 0.65);
  box-shadow: 0 0 0 4px rgba(228, 111, 71, 0.12);
}

.searchbar__button {
  min-width: 112px;
}

.searchbar__hint {
  margin: 14px 0 0;
  color: var(--text-soft);
}

.hero__panel {
  display: grid;
  gap: 18px;
}

.hero__panel-card {
  padding: 24px;
  border-radius: var(--radius-lg);
}

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

.stat {
  padding: 16px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(255, 246, 236, 0.72));
  border: 1px solid rgba(31, 39, 56, 0.08);
}

.stat__value {
  display: block;
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.stat__label {
  color: var(--text-soft);
  font-size: 0.92rem;
}

.tip-list {
  margin: 0;
  padding-left: 18px;
  color: var(--text-soft);
}

.layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 24px;
  padding: 18px 0 48px;
}

.sidebar {
  display: grid;
  gap: 18px;
  align-content: start;
  position: sticky;
  top: 24px;
  height: fit-content;
}

.sidebar__card {
  padding: 22px;
  border-radius: var(--radius-lg);
}

.sidebar__text {
  margin: 0 0 14px;
  color: var(--text-soft);
}

.sidebar__link {
  color: var(--accent);
  font-weight: 700;
}

.category-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.category-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid rgba(31, 39, 56, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  color: var(--text);
  transition: transform 160ms ease, border-color 160ms ease;
}

.category-pill:hover,
.category-pill:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(31, 39, 56, 0.2);
}

.category-pill__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--pill-color, var(--accent));
}

.content__header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.content__header h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

.content__note {
  margin: 0;
  color: var(--text-soft);
}

.sections {
  display: grid;
  gap: 22px;
}

.section-card {
  padding: 24px;
  border-radius: var(--radius-xl);
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 360ms ease, transform 360ms ease;
}

.section-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.section-card.is-hidden {
  display: none;
}

.section-card__header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.section-card__title-wrap h3 {
  margin: 0 0 6px;
  font-size: 1.6rem;
  letter-spacing: -0.04em;
}

.section-card__title-wrap p {
  margin: 0;
  color: var(--text-soft);
}

.section-card__count {
  min-width: 88px;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--section-accent, var(--accent));
  text-align: center;
  font-weight: 700;
}

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

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 190px;
  padding: 20px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.card::after {
  content: "";
  position: absolute;
  inset: auto -20% -45% auto;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--card-accent) 24%, transparent), transparent 70%);
}

.card:hover,
.card:focus-visible {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--card-accent) 38%, rgba(31, 39, 56, 0.14));
  box-shadow: 0 20px 34px rgba(31, 39, 56, 0.12);
}

.card__header,
.card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.card__badge,
.card__tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
}

.card__badge {
  min-width: 52px;
  height: 36px;
  padding: 0 14px;
  background: color-mix(in srgb, var(--card-accent) 14%, white);
  color: color-mix(in srgb, var(--card-accent) 72%, #1f2738);
  font-size: 0.95rem;
  font-weight: 700;
}

.card__tag {
  padding: 6px 10px;
  background: rgba(31, 39, 56, 0.06);
  color: var(--text-soft);
  font-size: 0.82rem;
}

.card__body h4 {
  margin: 0 0 10px;
  font-size: 1.28rem;
  letter-spacing: -0.03em;
}

.card__body p {
  margin: 0;
  color: var(--text-soft);
}

.card__footer {
  margin-top: auto;
  color: color-mix(in srgb, var(--card-accent) 76%, #1f2738);
  font-weight: 700;
}

.footer {
  padding: 0 0 38px;
  color: var(--text-soft);
}

.empty-state {
  padding: 34px 24px;
  border: 1px dashed rgba(31, 39, 56, 0.18);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.42);
  color: var(--text-soft);
  text-align: center;
}

.noscript-banner {
  width: min(calc(100% - 32px), var(--max-width));
  margin: 0 auto 24px;
  padding: 14px 18px;
  border-radius: 16px;
  background: #fff1d8;
  color: #7c4f12;
  border: 1px solid rgba(124, 79, 18, 0.16);
}

code {
  padding: 2px 6px;
  border-radius: 8px;
  background: rgba(31, 39, 56, 0.08);
}

@media (max-width: 1060px) {
  .hero__content,
  .layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
  }
}

@media (max-width: 760px) {
  .hero,
  .layout,
  .footer {
    width: min(calc(100% - 20px), var(--max-width));
  }

  .topbar,
  .content__header,
  .section-card__header {
    flex-direction: column;
    align-items: stretch;
  }

  .topbar__actions {
    width: 100%;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .hero__copy,
  .hero__panel-card,
  .sidebar__card,
  .section-card {
    padding: 20px;
  }

  .searchbar {
    grid-template-columns: 1fr;
  }

  .stats,
  .card-grid {
    grid-template-columns: 1fr;
  }

  h1 {
    max-width: none;
  }
}
