:root {
  --page: #fbfcff;
  --surface: rgba(255, 255, 255, 0.86);
  --surface-solid: #ffffff;
  --ink: #142033;
  --muted: #667085;
  --line: rgba(35, 48, 74, 0.12);
  --blue: #3168f4;
  --cyan: #2c9bea;
  --violet: #7065f0;
  --soft-blue: rgba(49, 104, 244, 0.1);
  --shadow: 0 24px 70px rgba(35, 48, 74, 0.12);
  --card-shadow: 0 14px 34px rgba(35, 48, 74, 0.08);
}

.theme-dark {
  --page: #101827;
  --surface: rgba(21, 31, 49, 0.86);
  --surface-solid: #172238;
  --ink: #edf4ff;
  --muted: #9ca9bd;
  --line: rgba(220, 231, 255, 0.14);
  --soft-blue: rgba(85, 136, 255, 0.16);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.26);
  --card-shadow: 0 14px 34px rgba(0, 0, 0, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 50% 34%, rgba(49, 104, 244, 0.032), transparent 32%),
    radial-gradient(circle at 12% 36%, rgba(49, 104, 244, 0.018), transparent 24%),
    radial-gradient(circle at 88% 38%, rgba(18, 167, 200, 0.018), transparent 24%),
    linear-gradient(180deg, #ffffff 0%, #ffffff 42%, #fbfcff 100%);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  line-height: 1.6;
}

.theme-dark body {
  background:
    radial-gradient(circle at 18% 10%, rgba(49, 104, 244, 0.2), transparent 34%),
    radial-gradient(circle at 86% 18%, rgba(18, 167, 200, 0.18), transparent 30%),
    var(--page);
}

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

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

img {
  display: block;
  max-width: 100%;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  min-height: 72px;
  padding: 12px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(18px);
}

.theme-dark .site-header {
  background: rgba(16, 24, 39, 0.78);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-cats {
  width: 48px;
  height: 42px;
  object-fit: contain;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  font-weight: 900;
  box-shadow: 0 12px 28px rgba(49, 104, 244, 0.24);
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 1rem;
}

.brand small {
  color: var(--muted);
  font-size: 0.76rem;
}

.top-nav,
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.top-nav {
  justify-content: center;
  min-width: 0;
  overflow-x: auto;
}

.top-nav a,
.header-actions button {
  flex: 0 0 auto;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 8px 12px;
  color: var(--muted);
  background: transparent;
  white-space: nowrap;
}

.top-nav a:hover,
.header-actions button:hover {
  border-color: var(--line);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.58);
}

.theme-dark .top-nav a:hover,
.theme-dark .header-actions button:hover {
  background: rgba(255, 255, 255, 0.06);
}

.hero {
  position: relative;
  display: grid;
  width: min(1180px, calc(100% - 36px));
  min-height: calc(100vh - 72px);
  margin: 0 auto;
  padding: clamp(44px, 6vw, 76px) 0 34px;
  place-items: center;
  overflow: hidden;
}

.hero::before {
  position: absolute;
  inset: 120px 0 auto;
  height: 360px;
  border-radius: 999px;
  background:
    radial-gradient(ellipse at 50% 54%, rgba(49, 104, 244, 0.035), transparent 64%),
    linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.78), transparent);
  content: "";
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: center;
  gap: 12px;
  margin-bottom: 34px;
  text-align: center;
}

.hero-cat {
  position: absolute;
  z-index: 0;
  max-width: none;
  opacity: 0.9;
  filter: saturate(0.8) contrast(1.06) drop-shadow(0 18px 28px rgba(35, 48, 74, 0.07));
  pointer-events: none;
  transform: translate3d(0, 0, 0) scaleX(var(--cat-facing, 1));
  transform-origin: 50% 100%;
}

.hero-cat-black {
  --cat-facing: -1;
  top: 242px;
  left: max(28px, calc(50% - 620px));
  width: clamp(168px, 16vw, 226px);
}

.hero-cat-white {
  --cat-facing: -1;
  opacity: 0.9;
  filter: saturate(0.78) contrast(1.12) brightness(0.98) drop-shadow(0 18px 30px rgba(35, 48, 74, 0.08));
  top: 246px;
  right: max(4px, calc(50% - 650px));
  width: clamp(242px, 26vw, 356px);
}

@keyframes cat-breathe {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scaleX(var(--cat-facing, 1));
  }
  50% {
    transform: translate3d(0, -5px, 0) scaleX(var(--cat-facing, 1));
  }
}

.hero-topic-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(49, 104, 244, 0.16);
  border-radius: 999px;
  padding: 7px 12px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 12px 28px rgba(49, 104, 244, 0.1);
  backdrop-filter: blur(14px);
}

.hero-topic-badge strong {
  font-size: 0.92rem;
}

.hero-topic-badge span:last-child {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 760;
}

.badge-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  box-shadow: 0 0 0 5px var(--soft-blue);
}

.eyebrow {
  margin: 0;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p,
strong,
span {
  overflow-wrap: break-word;
}

h1 {
  max-width: 1040px;
  margin: 0;
  font-size: clamp(2.1rem, 4.1vw, 3.55rem);
  line-height: 1.06;
  letter-spacing: 0;
  text-wrap: balance;
}

.title-accent {
  display: inline-block;
  margin-left: 0.12em;
  color: #2f6ff6;
}

.hero-copy p:last-child {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.18rem);
}

.orbit-stage {
  position: relative;
  display: grid;
  width: min(760px, 100%);
  min-height: 0;
  margin-top: 28px;
  place-items: center;
  isolation: isolate;
  z-index: 1;
}

.orbit-stage::before {
  position: absolute;
  inset: 18px 8%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(49, 104, 244, 0.055), rgba(255, 255, 255, 0.22) 58%, transparent 72%);
  content: "";
  filter: blur(18px);
}

.orbit-ring {
  display: none;
}

.orbit-ring-one {
  width: 660px;
  height: 660px;
}

.orbit-ring-two {
  width: 750px;
  height: 750px;
}

.orbit-ring-three {
  width: 840px;
  height: 840px;
}

.orbit-layer {
  display: none;
}

.orbit-item {
  position: absolute;
  left: 0;
  top: 0;
  transform:
    rotate(var(--angle))
    translateX(var(--radius));
}

.orbit-pill {
  display: block;
}

.orbit-tag {
  display: inline-flex;
  width: 118px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  padding: 0 12px;
  color: #24304a;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 10px 24px rgba(35, 48, 74, 0.08);
  backdrop-filter: blur(16px);
  font-size: 0.95rem;
  font-weight: 760;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.theme-dark .orbit-tag {
  border-color: rgba(220, 231, 255, 0.14);
  color: var(--ink);
  background: rgba(23, 34, 56, 0.84);
}

.orbit-tag {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.orbit-tag.weight-3 {
  border-color: rgba(49, 104, 244, 0.2);
  background: rgba(255, 255, 255, 0.92);
}

.orbit-tag.weight-2 {
  background: rgba(255, 255, 255, 0.86);
}

.orbit-item:hover .orbit-tag {
  z-index: 4;
  border-color: rgba(49, 104, 244, 0.28);
  box-shadow: 0 18px 38px rgba(49, 104, 244, 0.18);
  transform: scale(1.08);
}

.search-panel {
  position: relative;
  z-index: 3;
  display: grid;
  width: min(760px, calc(100% - 32px));
  gap: 12px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 24px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
}

.search-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 96px;
  gap: 10px;
}

.search-field input {
  min-width: 0;
  min-height: 58px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0 18px;
  color: var(--ink);
  background: var(--surface-solid);
  outline: 0;
}

.search-field input:focus {
  border-color: rgba(49, 104, 244, 0.58);
  box-shadow: 0 0 0 5px var(--soft-blue);
}

.search-field button {
  min-height: 58px;
  border: 0;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  font-weight: 850;
}

.engine-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.engine-tab {
  flex: 0 0 auto;
  min-height: 36px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 7px 12px;
  color: var(--muted);
  background: transparent;
}

.engine-tab[aria-selected="true"] {
  border-color: rgba(49, 104, 244, 0.22);
  color: var(--blue);
  background: var(--soft-blue);
  font-weight: 800;
}

.mobile-tags {
  position: relative;
  z-index: 2;
  display: flex;
  width: min(760px, calc(100% - 32px));
  margin: 18px auto 0;
  gap: 10px;
  justify-content: center;
  overflow-x: auto;
  padding: 8px 2px 14px;
  scrollbar-width: none;
}

.mobile-tags::-webkit-scrollbar {
  display: none;
}

.mobile-tags a {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 14px;
  color: #24304a;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 8px 20px rgba(35, 48, 74, 0.06);
  font-size: 0.92rem;
  font-weight: 760;
}

.home-picks-section,
.daily-preview-section,
.category-section {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(60px, 8vw, 96px) 0;
}

.home-picks-section {
  padding-top: 18px;
  padding-bottom: 24px;
}

.daily-preview-section {
  padding-top: 24px;
}

.section-heading {
  display: grid;
  max-width: 720px;
  gap: 8px;
  margin-bottom: 26px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.12;
}

.section-heading p:last-child {
  margin: 0;
  color: var(--muted);
}

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

.home-pick-card {
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 22px;
  background: var(--surface-solid);
  box-shadow: var(--card-shadow);
}

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

.mini-link {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 11px;
  background: rgba(247, 249, 253, 0.72);
  color: var(--ink);
  font-weight: 780;
}

.theme-dark .mini-link {
  background: rgba(255, 255, 255, 0.035);
}

.mini-icon,
.fallback-icon {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  font-size: 0.78rem;
  font-weight: 900;
}

.daily-preview-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: end;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: clamp(22px, 4vw, 34px);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(242, 247, 255, 0.86));
  box-shadow: var(--card-shadow);
}

.theme-dark .daily-preview-card {
  background: linear-gradient(135deg, rgba(23, 34, 56, 0.96), rgba(24, 43, 68, 0.86));
}

.daily-preview-card h3 {
  max-width: 920px;
  margin: 8px 0 18px;
  font-size: clamp(1.18rem, 2.4vw, 1.8rem);
  line-height: 1.35;
}

.preview-event-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 22px;
  color: var(--muted);
}

.primary-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 10px 16px;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  font-weight: 850;
  white-space: nowrap;
  box-shadow: 0 12px 28px rgba(49, 104, 244, 0.18);
}

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

.category-card {
  scroll-margin-top: 92px;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 22px;
  background: var(--surface-solid);
  box-shadow: var(--card-shadow);
}

.category-head {
  margin-bottom: 16px;
}

.category-head h3 {
  margin: 0;
  font-size: 1.35rem;
}

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

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

.site-card {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px;
  background: rgba(247, 249, 253, 0.72);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.theme-dark .site-card {
  background: rgba(255, 255, 255, 0.035);
}

.site-card:hover {
  border-color: rgba(49, 104, 244, 0.28);
  box-shadow: 0 14px 28px rgba(49, 104, 244, 0.12);
  transform: translateY(-2px);
}

.card-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 12px;
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--line);
}

.theme-dark .card-icon {
  background: rgba(255, 255, 255, 0.08);
}

.card-icon img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.card-body {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.card-body strong {
  line-height: 1.25;
}

.card-body em {
  color: var(--muted);
  font-size: 0.9rem;
  font-style: normal;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.card-tags span {
  border-radius: 999px;
  padding: 2px 7px;
  color: var(--blue);
  background: var(--soft-blue);
  font-size: 0.74rem;
}

.visit-button {
  border-radius: 999px;
  padding: 7px 10px;
  color: var(--blue);
  background: var(--soft-blue);
  font-size: 0.86rem;
  font-weight: 800;
  white-space: nowrap;
}

.more-button {
  display: inline-flex;
  width: fit-content;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  margin-top: 14px;
  border-radius: 999px;
  padding: 8px 13px;
  color: var(--blue);
  background: var(--soft-blue);
  font-weight: 850;
}

.site-footer {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 28px clamp(18px, 4vw, 56px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  overflow: hidden;
}

.footer-cats {
  position: absolute;
  right: clamp(18px, 6vw, 96px);
  bottom: -18px;
  width: clamp(64px, 8vw, 112px);
  opacity: 0.22;
  pointer-events: none;
}

.daily-hero {
  display: grid;
  width: min(980px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(58px, 8vw, 96px) 0 34px;
  gap: 12px;
  text-align: center;
}

.daily-hero h1 {
  justify-self: center;
}

.daily-hero p:last-child {
  max-width: 720px;
  margin: 0 auto;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.16rem);
}

.daily-layout {
  display: grid;
  width: min(1180px, calc(100% - 36px));
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 18px;
  align-items: start;
  margin: 0 auto;
  padding: 28px 0 clamp(64px, 8vw, 100px);
}

.report-card,
.aside-card {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface-solid);
  box-shadow: var(--card-shadow);
}

.report-card {
  padding: clamp(22px, 4vw, 38px);
}

.report-meta {
  display: inline-flex;
  width: fit-content;
  border-radius: 999px;
  padding: 5px 10px;
  color: var(--blue);
  background: var(--soft-blue);
  font-size: 0.84rem;
  font-weight: 800;
}

.focus-meta {
  width: fit-content;
  margin-top: 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 10px;
  color: var(--muted);
  background: rgba(247, 249, 253, 0.72);
  font-size: 0.84rem;
  font-weight: 760;
}

.report-card h2 {
  margin: 28px 0 10px;
  font-size: clamp(1.32rem, 2.6vw, 2rem);
}

.report-summary {
  margin: 0;
  color: var(--ink);
  font-size: 1.08rem;
}

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

.event-item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
  background: rgba(247, 249, 253, 0.72);
}

.theme-dark .event-item {
  background: rgba(255, 255, 255, 0.035);
}

.event-index {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 10px;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  font-weight: 900;
}

.event-item h3 {
  margin: 0 0 6px;
  font-size: 1.08rem;
}

.event-item p {
  margin: 0;
  color: var(--muted);
}

.event-sources {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.86rem;
}

.event-sources a,
.source-cloud a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 3px 8px;
  color: var(--blue);
  background: var(--soft-blue);
  font-weight: 800;
}

.event-sources a span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 720;
}

.daily-quote {
  margin-top: 28px;
  border-radius: 18px;
  padding: 18px;
  background: linear-gradient(135deg, var(--soft-blue), rgba(18, 167, 200, 0.1));
}

.daily-quote h2 {
  margin-top: 0;
}

.daily-quote p {
  margin: 0;
  font-size: 1.12rem;
  font-weight: 800;
}

.source-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.daily-aside {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 14px;
}

.aside-card {
  padding: 18px;
}

.aside-card h2 {
  margin: 0 0 8px;
  font-size: 1.12rem;
}

.aside-card p {
  margin: 0;
  color: var(--muted);
}

.archive-list {
  display: grid;
  gap: 8px;
}

.archive-item {
  display: grid;
  gap: 4px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px;
  color: var(--ink);
  background: rgba(247, 249, 253, 0.72);
  text-align: left;
}

.archive-item small {
  color: var(--muted);
  font-size: 0.78rem;
}

.archive-item.is-active {
  border-color: rgba(49, 104, 244, 0.28);
  background: var(--soft-blue);
}

.theme-dark .archive-item {
  background: rgba(255, 255, 255, 0.035);
}

.archive-item span {
  display: -webkit-box;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.86rem;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.directory-page {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding-bottom: clamp(64px, 8vw, 100px);
}

.directory-hero {
  display: grid;
  gap: 12px;
  padding: clamp(54px, 8vw, 86px) 0 26px;
  text-align: center;
}

.directory-hero h1 {
  justify-self: center;
}

.directory-hero p {
  max-width: 760px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 1.08rem;
}

.directory-hero .report-meta {
  justify-self: center;
}

.directory-toolbar,
.search-controls {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 16px;
  background: var(--surface-solid);
  box-shadow: var(--card-shadow);
}

.directory-toolbar {
  position: sticky;
  top: 84px;
  z-index: 20;
  margin-bottom: 18px;
}

.directory-toolbar input,
.search-controls input,
.search-controls select {
  min-height: 48px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0 14px;
  color: var(--ink);
  background: var(--surface-solid);
  outline: 0;
}

.directory-toolbar input:focus,
.search-controls input:focus,
.search-controls select:focus {
  border-color: rgba(49, 104, 244, 0.58);
  box-shadow: 0 0 0 4px var(--soft-blue);
}

.directory-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.directory-tab {
  flex: 0 0 auto;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 11px;
  color: var(--muted);
  background: transparent;
}

.directory-tab[aria-selected="true"] {
  border-color: rgba(49, 104, 244, 0.26);
  color: var(--blue);
  background: var(--soft-blue);
  font-weight: 850;
}

.directory-groups {
  display: grid;
  gap: 18px;
}

.directory-group-card {
  scroll-margin-top: 170px;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 22px;
  background: var(--surface-solid);
  box-shadow: var(--card-shadow);
}

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

.directory-site-card {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px;
  background: rgba(247, 249, 253, 0.72);
}

.theme-dark .directory-site-card {
  background: rgba(255, 255, 255, 0.035);
}

.directory-site-body {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.directory-site-body em {
  color: var(--muted);
  font-size: 0.9rem;
  font-style: normal;
}

.empty-state {
  border: 1px dashed var(--line);
  border-radius: 18px;
  padding: 28px;
  color: var(--muted);
  background: var(--surface-solid);
  text-align: center;
}

.search-controls {
  grid-template-columns: minmax(0, 1fr) 190px 210px;
  margin-bottom: 18px;
}

@media (prefers-reduced-motion: reduce) {
  .orbit-item {
    transition: none;
  }
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr;
  }

  .top-nav {
    justify-content: flex-start;
  }

  .header-actions {
    display: none;
  }

  .orbit-ring-three,
  .orbit-layer-three {
    display: none;
  }

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

  .home-picks-grid,
  .directory-site-grid {
    grid-template-columns: 1fr;
  }

  .daily-layout {
    grid-template-columns: 1fr;
  }

  .daily-aside {
    position: static;
  }
}

@media (max-width: 720px) {
  .hero {
    min-height: auto;
    padding-top: 40px;
  }

  .brand-cats {
    width: 42px;
    height: 38px;
  }

  .hero-cat {
    opacity: 0.76;
  }

  .hero-cat-black {
    top: 210px;
    left: -8px;
    width: 108px;
  }

  .hero-cat-white {
    opacity: 0.86;
    filter: saturate(0.78) contrast(1.12) brightness(0.98) drop-shadow(0 14px 22px rgba(35, 48, 74, 0.08));
    top: 206px;
    right: -42px;
    width: 158px;
  }

  .engine-tabs {
    flex-wrap: wrap;
    overflow: visible;
  }

  .engine-tab {
    min-height: 34px;
    padding: 6px 10px;
  }

  .hero-topic-badge {
    max-width: 100%;
    flex-wrap: wrap;
    justify-content: center;
  }

  .orbit-stage {
    height: auto;
    padding: 18px 0 8px;
  }

  .orbit-ring,
  .orbit-layer {
    display: none;
  }

  .search-panel {
    width: 100%;
    border-radius: 20px;
  }

  .search-field {
    grid-template-columns: 1fr;
  }

  .daily-preview-card {
    grid-template-columns: 1fr;
  }

  .primary-link {
    justify-self: start;
  }

  .search-controls {
    grid-template-columns: 1fr;
  }

  .directory-toolbar {
    position: static;
  }

  .mobile-tags {
    display: flex;
    width: 100%;
    gap: 8px;
    overflow-x: auto;
    padding: 12px 0 2px;
  }

  .mobile-tags a {
    flex: 0 0 auto;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 8px 12px;
    color: var(--ink);
    background: var(--surface-solid);
    box-shadow: 0 8px 18px rgba(35, 48, 74, 0.06);
  }

  .site-card {
    grid-template-columns: 40px minmax(0, 1fr);
  }

  .directory-site-card {
    grid-template-columns: 40px minmax(0, 1fr);
  }

  .visit-button {
    grid-column: 2;
    justify-self: start;
  }

  .site-footer {
    flex-direction: column;
    padding-right: 116px;
  }

  .footer-cats {
    right: 16px;
    width: 78px;
    opacity: 0.24;
  }
}
