:root {
  color-scheme: light;
  --bg: #f6f7f4;
  --surface: #ffffff;
  --surface-soft: #eef3ee;
  --ink: #17201b;
  --muted: #66736d;
  --line: #dbe2dc;
  --accent: #1f7a5a;
  --accent-dark: #155c44;
  --gold: #b98724;
  --rose: #b85c73;
  --blue: #306ea8;
  --shadow: 0 18px 45px rgba(28, 44, 35, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Microsoft YaHei", sans-serif;
}

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 68px;
  padding: 0 6vw;
  border-bottom: 1px solid rgba(219, 226, 220, 0.75);
  background: rgba(246, 247, 244, 0.9);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
}

.nav a {
  padding: 8px 10px;
  border-radius: 8px;
}

.nav a:hover,
.filter:hover,
.quick-strip a:hover {
  background: var(--surface-soft);
  color: var(--ink);
}

.hero {
  position: relative;
  min-height: clamp(520px, 72vh, 760px);
  display: grid;
  align-items: center;
  overflow: hidden;
  padding: 72px 6vw 92px;
  background: #1b2a22;
  color: #fff;
}

.hero-media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(14, 24, 19, 0.9), rgba(14, 24, 19, 0.5) 45%, rgba(14, 24, 19, 0.2)),
    url("https://images.unsplash.com/photo-1497366754035-f200968a6e72?auto=format&fit=crop&w=1800&q=80")
      center / cover;
  transform: scale(1.02);
}

.hero-content {
  position: relative;
  width: min(760px, 100%);
}

.eyebrow {
  margin: 0 0 12px;
  color: #bed9cd;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  max-width: 720px;
  font-size: clamp(42px, 7vw, 84px);
  line-height: 1.02;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 620px;
  margin: 22px 0 32px;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.7;
}

.search {
  display: flex;
  align-items: center;
  gap: 12px;
  width: min(620px, 100%);
  min-height: 58px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.search svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: var(--muted);
  stroke-width: 2;
  stroke-linecap: round;
}

.search input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
}

.quick-strip,
.toolbar,
.sections,
.footer {
  width: min(1180px, calc(100% - 32px));
  margin-inline: auto;
}

.quick-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: -44px;
  position: relative;
  z-index: 2;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
  box-shadow: var(--shadow);
}

.quick-strip a {
  min-height: 88px;
  display: grid;
  place-items: center;
  background: var(--surface);
  font-weight: 800;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 38px 0 16px;
}

.filter {
  min-height: 40px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}

.filter.active {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.sections {
  display: grid;
  gap: 28px;
  padding: 12px 0 64px;
}

.link-section {
  scroll-margin-top: 92px;
}

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

.section-head h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 34px);
  letter-spacing: 0;
}

.section-head p {
  margin: 8px 0 0;
  color: var(--muted);
}

.count {
  color: var(--muted);
  font-size: 14px;
  white-space: nowrap;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}

.card {
  min-height: 154px;
  display: grid;
  align-content: space-between;
  gap: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 8px 24px rgba(28, 44, 35, 0.06);
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.card:hover {
  transform: translateY(-2px);
  border-color: rgba(31, 122, 90, 0.38);
  box-shadow: var(--shadow);
}

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

.title-row {
  min-width: 0;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.site-logo {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  object-fit: contain;
}

.site-title {
  margin: 0;
  font-size: 18px;
  line-height: 1.35;
}

.badge {
  flex: 0 0 auto;
  padding: 5px 8px;
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 800;
}

.card p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.domain {
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.open {
  flex: 0 0 auto;
  display: inline-grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
}

.open svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.empty {
  padding: 42px 18px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.55);
  color: var(--muted);
  text-align: center;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 26px 0 36px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 720px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    padding-block: 14px;
  }

  .nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .hero {
    min-height: 600px;
    padding-top: 48px;
  }

  .hero-media {
    background:
      linear-gradient(180deg, rgba(14, 24, 19, 0.86), rgba(14, 24, 19, 0.44)),
      url("https://images.unsplash.com/photo-1497366754035-f200968a6e72?auto=format&fit=crop&w=1100&q=80")
        center / cover;
  }

  .quick-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: -34px;
  }

  .quick-strip a {
    min-height: 70px;
  }

  .section-head,
  .footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
