:root {
  color-scheme: light;
  --bg: #f5f7fb;
  --panel: #ffffff;
  --panel-soft: #f9fbff;
  --text: #172033;
  --muted: #667085;
  --border: #e3e8f2;
  --accent: #246bfe;
  --accent-dark: #164cc9;
  --green: #11a36a;
  --orange: #f08a24;
  --red: #e25353;
  --shadow: 0 10px 30px rgba(23, 32, 51, 0.07);
  --shadow-strong: 0 18px 44px rgba(23, 32, 51, 0.11);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--bg);
  color: var(--text);
  letter-spacing: 0;
}

body.front-site {
  background-color: #f7f9fd;
  background-image:
    radial-gradient(circle at 14% 8%, rgba(36, 107, 254, 0.10), transparent 28rem),
    radial-gradient(circle at 88% 12%, rgba(17, 163, 106, 0.08), transparent 24rem),
    radial-gradient(circle at 52% 86%, rgba(91, 124, 180, 0.08), transparent 32rem),
    linear-gradient(180deg, #ffffff 0%, #f7faff 46%, #eef4fa 100%);
  background-size: auto;
}

body.front-site::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(31, 51, 84, 0.014) 1px, transparent 1px),
    linear-gradient(180deg, rgba(31, 51, 84, 0.012) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.20));
  background-size: 72px 72px, 72px 72px, auto;
}

body.front-site #app {
  position: relative;
  z-index: 1;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 0 30px;
  border-bottom: 1px solid rgba(227, 232, 242, 0.82);
  background: rgba(251, 253, 255, 0.88);
  backdrop-filter: blur(18px);
}

.front-site .site-header {
  border-bottom: 1px solid rgba(180, 197, 226, 0.72);
  background: rgba(248, 251, 255, 0.76);
  box-shadow: 0 12px 34px rgba(37, 71, 121, 0.07);
}

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

.brand-mark {
  position: relative;
  display: grid;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  overflow: visible;
  filter: drop-shadow(0 12px 18px rgba(28, 88, 201, 0.20));
}

.brand-logo {
  display: block;
  width: 44px;
  height: 44px;
}

.logo-bg {
  fill: url("#beaconLogoBg");
}

.logo-glow {
  fill: url("#beaconLogoGlow");
}

.logo-ring,
.logo-path {
  fill: none;
  stroke: #fff;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.logo-ring {
  opacity: 0.35;
  stroke-width: 2.2;
}

.logo-needle {
  fill: url("#beaconLogoNeedle");
  filter: drop-shadow(0 3px 7px rgba(0, 0, 0, 0.18));
}

.logo-center {
  fill: #1f6bff;
  stroke: #ffffff;
  stroke-width: 1.4;
}

.logo-star {
  fill: #ffffff;
  stroke: rgba(19, 184, 135, 0.72);
  stroke-linejoin: round;
  stroke-width: 1;
  filter: drop-shadow(0 3px 7px rgba(0, 0, 0, 0.15));
}

.logo-path {
  opacity: 0.8;
  stroke-width: 2.4;
}

.logo-node {
  fill: #d7fff5;
  stroke: rgba(255, 255, 255, 0.72);
  stroke-width: 1.2;
}

.brand-copy {
  position: relative;
  display: block;
}

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

.brand strong {
  font-size: 20px;
  font-weight: 800;
  line-height: 1.1;
}

.brand small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.top-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: 1;
}

.top-nav a {
  padding: 9px 13px;
  border-radius: 8px;
  color: #41516b;
  font-size: 14px;
  font-weight: 700;
}

.top-nav a:hover {
  background: #eef4ff;
  color: var(--accent);
}

.front-site .top-nav a {
  border: 1px solid transparent;
}

.front-site .top-nav a:hover {
  border-color: rgba(36, 107, 254, 0.12);
  background: rgba(255, 255, 255, 0.68);
  box-shadow: 0 10px 22px rgba(36, 107, 254, 0.10);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.user-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0 10px 0 6px;
  background: #fff;
  color: #253247;
  font-size: 14px;
  cursor: pointer;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

button.user-badge:hover,
button.user-badge:focus-visible {
  border-color: rgba(36, 107, 254, 0.32);
  box-shadow: 0 10px 22px rgba(36, 107, 254, 0.10);
  outline: none;
  transform: translateY(-1px);
}

.user-badge span {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: linear-gradient(135deg, var(--accent), #18b98a);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}

.user-badge strong {
  max-width: 110px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.primary-button,
.ghost-button,
.section-heading button {
  min-height: 38px;
  border: 0;
  border-radius: 8px;
  padding: 0 14px;
  white-space: nowrap;
}

.primary-button {
  background: linear-gradient(135deg, var(--accent), #138d73);
  color: #fff;
  box-shadow: 0 8px 18px rgba(36, 107, 254, 0.18);
}

.primary-button:hover {
  background: var(--accent-dark);
}

.ghost-button {
  border: 1px solid var(--border);
  background: #fff;
  color: #40506a;
}

.layout {
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr) 288px;
  gap: 20px;
  width: min(1560px, calc(100% - 40px));
  margin: 20px auto 64px;
  align-items: start;
}

.front-site .layout {
  grid-template-columns: minmax(238px, 288px) minmax(0, 1fr);
  gap: 22px;
  width: min(1680px, calc(100% - 48px));
  margin-top: 18px;
}

.front-site main {
  min-width: 0;
}

.front-site .right-rail {
  display: none;
}

.sidebar,
.right-rail {
  position: sticky;
  top: 92px;
  align-self: start;
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 5px;
  max-height: calc(100vh - 112px);
  padding: 14px;
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}

.front-site .sidebar {
  border-color: rgba(190, 205, 230, 0.82);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(247, 252, 255, 0.90));
  box-shadow: 0 14px 34px rgba(31, 62, 106, 0.08);
}

.sidebar-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 8px 12px;
  color: #2d3b52;
  font-size: 14px;
  font-weight: 700;
}

.sidebar-title strong {
  display: grid;
  place-items: center;
  min-width: 28px;
  height: 24px;
  border-radius: 7px;
  background: #eef4ff;
  color: var(--accent);
  font-size: 12px;
}

.category-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  min-height: 40px;
  border: 0;
  border-radius: 8px;
  padding: 0 10px;
  background: transparent;
  color: #3f4f68;
  text-align: left;
  font-weight: 700;
}

.category-link span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.category-link .category-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.category-link .category-label b {
  min-width: 0;
  overflow: hidden;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.category-icon,
.chip-icon,
.section-title-icon {
  display: block;
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  color: currentColor;
}

.category-icon {
  color: #66758d;
}

.category-link:hover .category-icon,
.category-link.active .category-icon {
  color: var(--accent);
}

.category-link em {
  color: #8a96a8;
  font-size: 12px;
  font-style: normal;
}

.category-link:hover,
.category-link.active {
  background: #eef4ff;
  color: var(--accent);
}

.front-site .category-link {
  min-height: 44px;
}

.front-site .category-link:hover,
.front-site .category-link.active {
  background:
    linear-gradient(135deg, rgba(234, 242, 255, 0.98), rgba(232, 250, 246, 0.92));
  box-shadow: inset 3px 0 0 var(--accent);
}

.category-link.active em {
  color: var(--accent);
}

.mobile-shell {
  display: none;
}

main {
  min-width: 0;
}

.search-panel,
.content-section,
.empty-state,
.submit-card,
.rail-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}

.search-panel {
  position: relative;
  overflow: hidden;
  padding: 34px;
  border-color: rgba(207, 218, 235, 0.88);
  background:
    radial-gradient(circle at 84% 16%, rgba(36, 107, 254, 0.09), transparent 19rem),
    radial-gradient(circle at 12% 92%, rgba(17, 163, 106, 0.06), transparent 20rem),
    linear-gradient(145deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 251, 255, 0.96) 100%);
  box-shadow: 0 20px 50px rgba(40, 67, 108, 0.08);
}

.search-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(34, 60, 96, 0.014) 1px, transparent 1px),
    linear-gradient(180deg, rgba(34, 60, 96, 0.012) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0.82));
  background-size: 72px 72px, 72px 72px, auto;
}

.search-panel > * {
  position: relative;
  z-index: 1;
}

.hero-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  gap: 22px;
  align-items: center;
}

.front-site .hero-head {
  grid-template-areas: "copy";
  grid-template-columns: minmax(0, 1fr);
  justify-content: center;
  align-items: stretch;
  gap: 0;
}

.hero-copy {
  align-self: center;
  text-align: center;
}

.front-site .hero-copy {
  grid-area: copy;
  align-self: center;
  padding: 8px 0;
}

.hero-kicker,
.eyebrow {
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 30px;
  border: 1px solid rgba(36, 107, 254, 0.14);
  border-radius: 8px;
  padding: 0 10px;
  background: rgba(255, 255, 255, 0.64);
  box-shadow: 0 10px 22px rgba(36, 107, 254, 0.06);
}

.hero-kicker em {
  color: #64748b;
  font-style: normal;
  text-transform: none;
}

.search-panel h1 {
  max-width: 760px;
  margin: 14px 0 10px;
  margin-right: auto;
  margin-left: auto;
  color: #142033;
  font-size: 38px;
  line-height: 1.16;
  letter-spacing: 0;
}

.front-site .search-panel h1 {
  max-width: 880px;
  font-size: clamp(34px, 3vw, 52px);
  line-height: 1.14;
}

.search-panel h1 span {
  display: block;
}

.search-panel p {
  max-width: 720px;
  margin: 0;
  margin-right: auto;
  margin-left: auto;
  color: #4e5e75;
  font-size: 15px;
  line-height: 1.8;
}

.hero-badges {
  justify-content: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.hero-badges span {
  display: grid;
  min-width: 112px;
  border: 1px solid rgba(36, 107, 254, 0.14);
  border-radius: 8px;
  padding: 9px 12px;
  background: rgba(255, 255, 255, 0.78);
  color: #2f4770;
  font-size: 13px;
  font-weight: 800;
  text-align: center;
}

.hero-badges strong {
  color: var(--accent);
  font-size: 20px;
  line-height: 1.1;
}

.hero-badges small {
  margin-top: 2px;
  color: #66758d;
  font-size: 12px;
  font-weight: 800;
}

.hero-search-area {
  width: 100%;
  max-width: 760px;
  margin-right: auto;
  margin-left: auto;
  margin-top: 18px;
}

.hero-sponsor {
  position: relative;
  overflow: hidden;
  align-self: stretch;
  display: grid;
  align-content: center;
  min-height: 220px;
  border: 1px solid rgba(191, 211, 239, 0.80);
  border-radius: 8px;
  padding: 22px;
  background:
    radial-gradient(circle at 100% 0%, rgba(36, 107, 254, 0.18), transparent 14rem),
    linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(239, 247, 255, 0.88));
  box-shadow: 0 18px 40px rgba(36, 107, 254, 0.10);
}

.front-site .hero-sponsor {
  grid-area: sponsor;
  min-height: 250px;
  padding: 30px;
}

.hero-sponsor::after {
  content: "";
  position: absolute;
  right: -42px;
  bottom: -50px;
  width: 170px;
  height: 170px;
  border-radius: 999px;
  background: rgba(17, 163, 106, 0.12);
}

.hero-sponsor > * {
  position: relative;
  z-index: 1;
}

.hero-sponsor span {
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
}

.hero-sponsor h2 {
  margin: 8px 0 10px;
  color: #142033;
  font-size: 24px;
}

.front-site .hero-sponsor h2 {
  font-size: 28px;
}

.hero-sponsor p {
  margin: 0 0 18px;
  color: #4e5e75;
  line-height: 1.7;
}

.front-site .hero-sponsor p {
  font-size: 16px;
}

.hero-sponsor .primary-button {
  justify-self: start;
}

.ad-media-card {
  padding: 0;
  background: #fff;
}

.ad-media-card::after {
  display: none;
}

.ad-image-link {
  display: block;
  width: 100%;
  height: 100%;
  min-height: inherit;
  overflow: hidden;
  border: 0;
  border-radius: inherit;
  padding: 0;
  background: transparent;
  cursor: pointer;
}

.ad-image-link img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-primary-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  border: 1px solid rgba(177, 196, 225, 0.80);
  border-radius: 8px;
  padding: 6px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 16px 34px rgba(23, 32, 51, 0.08);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.hero-primary-search:focus-within {
  border-color: rgba(36, 107, 254, 0.45);
  box-shadow: 0 20px 46px rgba(36, 107, 254, 0.14);
}

.hero-search-input {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-width: 0;
  padding: 0 12px;
}

.hero-search-icon {
  width: 21px;
  height: 21px;
  color: var(--accent);
}

.hero-search-input input {
  width: 100%;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 15px;
  font-weight: 800;
  outline: 0;
}

.hero-search-input input::placeholder {
  color: #7a8798;
  opacity: 1;
}

.hero-primary-search button {
  min-height: 42px;
  border: 0;
  border-radius: 8px;
  padding: 0 16px;
  background: #edf4ff;
  color: #315072;
  font-weight: 900;
}

.hero-primary-search button:hover {
  background: var(--accent);
  color: #fff;
}

.hero-search-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 9px;
  color: var(--muted);
  font-size: 13px;
}

.hero-search-meta strong {
  color: var(--accent);
}

.hero-article-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 880px;
  margin: 16px auto 0;
}

.hero-article-label,
.hero-article-item {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  border: 1px solid rgba(195, 209, 230, 0.82);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 8px 18px rgba(31, 62, 106, 0.05);
}

.hero-article-label {
  gap: 6px;
  padding: 0 12px;
  color: #2f4770;
  font-size: 13px;
  font-weight: 900;
}

.hero-article-icon {
  width: 15px;
  height: 15px;
  color: var(--accent);
}

.hero-article-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  min-width: 0;
}

.hero-article-item {
  gap: 8px;
  padding: 0 12px;
  color: #40506a;
  font-size: 13px;
  font-weight: 850;
  cursor: pointer;
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    color 0.18s ease,
    transform 0.18s ease;
}

.hero-article-item strong {
  color: var(--accent);
  font-size: 12px;
}

.hero-article-item span {
  overflow: hidden;
  max-width: 220px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hero-article-item:hover,
.hero-article-item:focus-visible {
  border-color: rgba(36, 107, 254, 0.34);
  background: rgba(244, 248, 255, 0.96);
  color: var(--accent);
  box-shadow: 0 12px 24px rgba(36, 107, 254, 0.10);
  outline: none;
  transform: translateY(-1px);
}

.hero-visual {
  position: relative;
  width: 100%;
  min-height: 0;
  overflow: hidden;
  border: 1px solid rgba(195, 211, 235, 0.78);
  border-radius: 8px;
  background:
    radial-gradient(circle at 0% 0%, rgba(36, 107, 254, 0.12), transparent 16rem),
    radial-gradient(circle at 100% 8%, rgba(17, 163, 106, 0.10), transparent 14rem),
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(248, 251, 255, 0.92));
  box-shadow: 0 18px 42px rgba(38, 67, 109, 0.09);
}

.front-site .hero-visual {
  grid-area: showcase;
  align-self: stretch;
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.50));
  opacity: 0.8;
}

.hero-showcase {
  display: grid;
  gap: 13px;
  align-content: start;
  padding: 16px;
}

.front-site .hero-showcase {
  gap: 16px;
  padding: 22px;
}

.hero-showcase > * {
  position: relative;
  z-index: 1;
}

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

.showcase-head span {
  color: #41516b;
  font-size: 14px;
  font-weight: 900;
}

.showcase-head strong {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  border: 1px solid rgba(36, 107, 254, 0.18);
  border-radius: 8px;
  padding: 0 10px;
  background: rgba(255, 255, 255, 0.76);
  color: var(--accent);
  font-size: 20px;
}

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

.front-site .showcase-list {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.showcase-item {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  width: 100%;
  min-height: 70px;
  border: 1px solid rgba(204, 216, 234, 0.76);
  border-radius: 8px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.78);
  text-align: left;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.front-site .showcase-item {
  min-height: 82px;
  padding: 14px;
}

.showcase-item-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #eef4ff;
  color: var(--accent);
}

.showcase-item-svg {
  width: 17px;
  height: 17px;
}

.showcase-item strong,
.showcase-item small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.showcase-item strong {
  color: #1f2c43;
  font-size: 14px;
}

.showcase-item small {
  margin-top: 4px;
  color: #78869a;
  font-size: 12px;
}

.showcase-foot {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.showcase-foot button {
  display: grid;
  min-height: 38px;
  place-items: center;
  border: 1px solid rgba(204, 216, 234, 0.72);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.74);
  color: #52627a;
  font-size: 12px;
  font-weight: 900;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.showcase-item:hover,
.showcase-item:focus-visible,
.showcase-foot button:hover,
.showcase-foot button:focus-visible {
  border-color: rgba(36, 107, 254, 0.42);
  color: var(--accent);
  box-shadow: 0 14px 28px rgba(36, 107, 254, 0.10);
  outline: none;
  transform: translateY(-1px);
}

.ai-console::before {
  content: "";
  position: absolute;
  inset: 48px 22px 54px;
  z-index: 1;
  border: 1px solid rgba(229, 245, 250, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(229, 245, 250, 0.045) 1px, transparent 1px),
    linear-gradient(180deg, rgba(229, 245, 250, 0.045) 1px, transparent 1px);
  background-size: 48px 48px;
}

.console-topbar {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 6px;
  height: 40px;
  padding: 0 14px;
  border-bottom: 1px solid rgba(221, 250, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(236, 255, 251, 0.8);
  font-size: 12px;
  font-weight: 800;
}

.console-topbar span {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: rgba(217, 250, 255, 0.74);
}

.console-topbar strong {
  margin-left: auto;
  letter-spacing: 0;
}

.console-map {
  position: absolute;
  inset: 40px 0 46px;
  z-index: 2;
}

.console-core {
  position: absolute;
  top: 58px;
  left: 50%;
  display: grid;
  place-items: center;
  width: 118px;
  height: 96px;
  border: 1px solid rgba(226, 255, 250, 0.48);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.24);
  transform: translateX(-50%);
}

.console-core strong {
  font-size: 36px;
  line-height: 1;
}

.console-core span {
  margin-top: -20px;
  color: rgba(230, 255, 249, 0.74);
  font-size: 12px;
  font-weight: 800;
}

.console-card {
  position: absolute;
  z-index: 3;
  min-width: 94px;
  border: 1px solid rgba(229, 255, 250, 0.38);
  border-radius: 8px;
  padding: 9px 10px;
  background: rgba(255, 255, 255, 0.11);
  color: #effffd;
  font-size: 13px;
  font-weight: 900;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(10px);
}

.card-dialogue {
  top: 28px;
  left: 34px;
}

.card-image {
  top: 36px;
  right: 34px;
}

.card-code {
  left: 42px;
  bottom: 36px;
}

.card-agent {
  right: 42px;
  bottom: 42px;
}

.console-line {
  position: absolute;
  z-index: 2;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(215, 255, 245, 0), rgba(215, 255, 245, 0.74), rgba(255, 255, 255, 0));
  transform-origin: left center;
}

.line-dialogue {
  top: 82px;
  left: 126px;
  width: 136px;
  transform: rotate(15deg);
}

.line-image {
  top: 82px;
  right: 126px;
  width: 126px;
  transform: rotate(164deg);
}

.line-code {
  left: 132px;
  bottom: 88px;
  width: 132px;
  transform: rotate(-14deg);
}

.line-agent {
  right: 130px;
  bottom: 92px;
  width: 122px;
  transform: rotate(197deg);
}

.console-bottom {
  position: absolute;
  right: 14px;
  bottom: 12px;
  left: 14px;
  z-index: 4;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.console-bottom span {
  border: 1px solid rgba(222, 247, 255, 0.22);
  border-radius: 8px;
  padding: 8px 9px;
  background: rgba(8, 20, 38, 0.30);
  color: rgba(237, 248, 255, 0.78);
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.console-bottom strong {
  color: #fff;
}

.visual-grid {
  position: absolute;
  inset: 22px;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-rows: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.visual-grid span {
  border: 1px solid rgba(222, 247, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
}

.visual-node {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  border: 1px solid rgba(220, 248, 255, 0.52);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  color: #ecfffb;
  font-weight: 900;
  box-shadow: 0 14px 30px rgba(4, 20, 41, 0.20);
}

.node-primary {
  top: 58px;
  left: 36px;
  width: 74px;
  height: 74px;
  font-size: 28px;
}

.node-secondary {
  top: 36px;
  right: 52px;
  width: 52px;
  height: 52px;
  color: #d7fff4;
}

.node-tertiary {
  right: 88px;
  bottom: 44px;
  width: 48px;
  height: 48px;
  color: #dce9ff;
}

.visual-line {
  position: absolute;
  z-index: 1;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(215, 255, 245, 0), rgba(215, 255, 245, 0.78), rgba(255, 255, 255, 0));
  transform-origin: left center;
}

.line-a {
  top: 90px;
  left: 104px;
  width: 170px;
  transform: rotate(-12deg);
}

.line-b {
  right: 100px;
  bottom: 72px;
  width: 130px;
  transform: rotate(29deg);
}

.visual-panel {
  position: absolute;
  right: 18px;
  bottom: 18px;
  z-index: 3;
  width: 150px;
  border: 1px solid rgba(222, 247, 255, 0.36);
  border-radius: 8px;
  padding: 12px;
  background: rgba(8, 20, 38, 0.36);
  color: #fff;
  backdrop-filter: blur(10px);
}

.visual-panel span,
.visual-panel em {
  display: block;
  color: rgba(237, 248, 255, 0.74);
  font-size: 12px;
  font-style: normal;
}

.visual-panel strong {
  display: block;
  margin: 4px 0;
  font-size: 34px;
  line-height: 1;
}

.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 34px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0 12px;
  background: #fff;
  color: #46566f;
  font-weight: 700;
}

.front-site .chip {
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 8px 18px rgba(23, 32, 51, 0.04);
}

.chip-icon {
  width: 15px;
  height: 15px;
}

.chip.active {
  border-color: rgba(36, 107, 254, 0.28);
  background: #eaf2ff;
  color: var(--accent);
}

.section-heading button {
  background: #f1f5fb;
  color: #485871;
}

.scenario-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.front-site .scenario-strip {
  display: none;
}

.scenario-strip button {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 86px;
  border: 1px solid rgba(193, 211, 238, 0.86);
  border-radius: 8px;
  padding: 13px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(244, 249, 255, 0.90));
  color: #31435d;
  text-align: left;
  box-shadow: 0 16px 32px rgba(23, 32, 51, 0.08);
}

.scenario-strip button::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 3px;
  background: linear-gradient(90deg, var(--scenario-a, #246bfe), var(--scenario-b, #11a36a));
}

.scenario-blue {
  --scenario-a: #246bfe;
  --scenario-b: #0f9fad;
}

.scenario-green {
  --scenario-a: #11a36a;
  --scenario-b: #24a0fe;
}

.scenario-violet {
  --scenario-a: #8b5cf6;
  --scenario-b: #246bfe;
}

.scenario-slate {
  --scenario-a: #334155;
  --scenario-b: #11a36a;
}

.scenario-strip button:hover {
  border-color: rgba(36, 107, 254, 0.34);
  color: var(--accent);
  transform: translateY(-1px);
}

.scenario-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--scenario-a, #246bfe) 14%, white), color-mix(in srgb, var(--scenario-b, #11a36a) 12%, white));
  color: var(--scenario-a, var(--accent));
}

.scenario-icon-svg {
  width: 18px;
  height: 18px;
}

.scenario-strip strong,
.scenario-strip small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.scenario-strip strong {
  font-size: 14px;
}

.scenario-strip small {
  margin-top: 4px;
  color: #78869a;
  font-size: 12px;
}

.content-section,
.empty-state {
  margin-top: 20px;
  padding: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(249, 252, 255, 0.94));
}

.front-site .content-section,
.front-site .empty-state {
  border-color: rgba(194, 209, 232, 0.82);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(249, 252, 255, 0.94));
  box-shadow: 0 14px 34px rgba(31, 62, 106, 0.07);
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.section-heading span {
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
}

.section-heading h2 {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 2px 0 0;
  font-size: 23px;
}

.section-title-icon {
  width: 19px;
  height: 19px;
  color: var(--accent);
}

.front-site .section-heading h2 {
  font-size: 23px;
}

.front-site .section-heading span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border-radius: 8px;
  padding: 0 8px;
  background: rgba(234, 242, 255, 0.86);
}

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

.tool-card {
  position: relative;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 13px;
  min-height: 154px;
  padding: 15px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(250, 253, 255, 0.95));
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.front-site .tool-card {
  border-color: rgba(211, 221, 236, 0.92);
  min-height: 168px;
  box-shadow: 0 8px 22px rgba(36, 68, 112, 0.045);
}

.tool-card::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  border-radius: 8px 0 0 8px;
  background: linear-gradient(180deg, rgba(36, 107, 254, 0.78), rgba(17, 163, 106, 0.68));
  opacity: 0;
  transition: opacity 160ms ease;
}

.tool-card:hover {
  border-color: rgba(36, 107, 254, 0.35);
  box-shadow: var(--shadow-strong);
  transform: translateY(-2px);
}

.front-site .tool-card:hover {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 1), rgba(244, 250, 255, 0.98));
  box-shadow: 0 18px 38px rgba(36, 68, 112, 0.10);
}

.tool-card:hover::after {
  opacity: 1;
}

.category-ad-card {
  position: relative;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 13px;
  align-items: start;
  min-height: 154px;
  overflow: hidden;
  border: 1px dashed rgba(36, 107, 254, 0.38);
  border-radius: 8px;
  padding: 15px;
  background:
    radial-gradient(circle at 92% 18%, rgba(17, 163, 106, 0.14), transparent 34%),
    linear-gradient(135deg, rgba(239, 246, 255, 0.94), rgba(255, 255, 255, 0.98) 45%, rgba(245, 255, 251, 0.92));
  box-shadow: 0 14px 34px rgba(36, 68, 112, 0.06);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.front-site .category-ad-card {
  min-height: 168px;
}

.category-ad-card::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, rgba(36, 107, 254, 0.78), rgba(17, 163, 106, 0.74));
}

.category-ad-badge {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(36, 107, 254, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(36, 107, 254, 0.12), rgba(17, 163, 106, 0.12)),
    rgba(255, 255, 255, 0.86);
  color: var(--accent);
  font-size: 14px;
  font-weight: 900;
}

.category-ad-copy {
  min-width: 0;
}

.category-ad-copy span {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  border-radius: 8px;
  padding: 0 7px;
  background: rgba(234, 242, 255, 0.9);
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
}

.category-ad-copy h3 {
  margin: 7px 0 6px;
  color: var(--text);
  font-size: 17px;
  line-height: 1.35;
}

.category-ad-copy p {
  display: -webkit-box;
  min-height: 46px;
  margin: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.category-ad-card .visit-link {
  grid-column: 2;
  justify-self: start;
  align-self: start;
  min-height: 32px;
  margin-top: 8px;
  border-color: rgba(36, 107, 254, 0.22);
  background: rgba(255, 255, 255, 0.9);
  color: var(--accent);
  font-weight: 800;
  white-space: nowrap;
}

.category-ad-card.ad-media-card {
  display: block;
  min-height: 168px;
  border-style: solid;
  background: #fff;
}

.tool-logo {
  position: relative;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 8px;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  overflow: hidden;
}

.tool-logo::before {
  content: attr(data-initials);
}

.tool-logo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 8px;
  background: #fff;
  object-fit: contain;
}

.color-0 { background: #246bfe; }
.color-1 { background: #11a36a; }
.color-2 { background: #f08a24; }
.color-3 { background: #8b5cf6; }
.color-4 { background: #e25353; }
.color-5 { background: #0f9fad; }
.color-6 { background: #334155; }
.color-7 { background: #c026d3; }

.tool-content {
  min-width: 0;
}

.tool-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.tool-title-row h3 {
  margin: 0;
  font-size: 17px;
  line-height: 1.35;
}

.tool-title-row > div {
  min-width: 0;
}

.tool-flags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  min-height: 20px;
  margin-top: 5px;
}

.tool-flag {
  border-radius: 7px;
  padding: 2px 6px;
  font-size: 11px;
  font-weight: 800;
}

.tool-flag.hot {
  background: #fff4e8;
  color: #b95f05;
}

.tool-flag.new {
  background: #eafaf4;
  color: #117454;
}

.price-tag {
  flex: 0 0 auto;
  border-radius: 8px;
  padding: 3px 7px;
  background: #eef4ff;
  color: var(--accent);
  font-size: 12px;
}

.tool-card p {
  display: -webkit-box;
  min-height: 46px;
  margin: 8px 0 11px;
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag-row span {
  border: 1px solid #dbe4ef;
  border-radius: 8px;
  padding: 3px 7px;
  background: #fff;
  color: #607089;
  font-size: 12px;
}

.front-site .tag-row span {
  background: rgba(255, 255, 255, 0.72);
}

.visit-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: start;
  border: 1px solid #cbd7ea;
  border-radius: 8px;
  background: #fff;
  padding: 7px 10px;
  color: #2f4770;
  font-size: 13px;
}

.visit-link:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.tool-actions {
  display: flex;
  grid-column: 2;
  gap: 8px;
  align-items: stretch;
  flex-wrap: wrap;
}

.favorite-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  border: 1px solid #d8e0ec;
  border-radius: 8px;
  padding: 0 10px;
  background: #fff;
  color: #4c5d78;
  font-size: 13px;
}

.favorite-button:hover,
.favorite-button.active {
  border-color: rgba(240, 138, 36, 0.35);
  background: #fff6eb;
  color: #b95f05;
}

.right-rail {
  display: grid;
  gap: 14px;
  max-height: calc(100vh - 112px);
  overflow-x: hidden;
  overflow-y: auto;
  padding-right: 4px;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  scrollbar-color: rgba(36, 107, 254, 0.28) transparent;
  scrollbar-width: thin;
}

.right-rail::-webkit-scrollbar {
  width: 6px;
}

.right-rail::-webkit-scrollbar-track {
  background: transparent;
}

.right-rail::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(36, 107, 254, 0.20);
}

.right-rail:hover::-webkit-scrollbar-thumb {
  background: rgba(36, 107, 254, 0.36);
}

.submit-card,
.rail-card {
  padding: 16px;
}

.submit-card {
  background:
    linear-gradient(145deg, rgba(18, 59, 130, 0.98) 0%, rgba(36, 107, 254, 0.95) 56%, rgba(19, 137, 115, 0.96) 100%);
  color: #fff;
}

.front-site .submit-card {
  position: relative;
  overflow: hidden;
  min-height: 160px;
  border-color: rgba(255, 255, 255, 0.26);
  background:
    linear-gradient(135deg, rgba(21, 44, 90, 0.98), rgba(36, 107, 254, 0.96) 48%, rgba(17, 163, 106, 0.92));
  box-shadow: 0 24px 50px rgba(36, 107, 254, 0.20);
}

.front-site .submit-card::after {
  content: "";
  position: absolute;
  inset: auto -20px -34px;
  height: 86px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.16) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.12) 1px, transparent 1px);
  background-size: 22px 22px;
  transform: rotate(-8deg);
}

.front-site .submit-card > * {
  position: relative;
  z-index: 1;
}

.submit-card span {
  font-size: 12px;
  font-weight: 800;
}

.submit-card h2,
.rail-card h2 {
  margin: 4px 0 0;
  font-size: 18px;
}

.submit-card p {
  margin: 12px 0 14px;
  line-height: 1.65;
}

.submit-card .primary-button {
  background: #fff;
  color: var(--accent);
  box-shadow: none;
}

.rail-card-head {
  margin-bottom: 8px;
}

.front-site .rail-card {
  border-color: rgba(196, 211, 234, 0.78);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 16px 34px rgba(31, 62, 106, 0.08);
}

.rail-card-head span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.rail-card a,
.rail-card button {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 38px;
  border: 0;
  border-top: 1px solid var(--border);
  background: transparent;
  color: #41516b;
  font-size: 14px;
  text-align: left;
}

.rail-card a:hover,
.rail-card button:hover {
  color: var(--accent);
}

.rail-card a:first-of-type,
.rail-card button:first-of-type {
  border-top: 0;
}

.rail-card strong {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background: #f0f4fa;
  color: var(--accent);
  font-size: 12px;
}

.rail-item-copy {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.rail-item-copy em {
  overflow: hidden;
  color: #41516b;
  font-style: normal;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rail-item-copy small {
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rail-notice strong {
  background: #fff4e8;
  color: #b95f05;
}

.rail-empty {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

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

.article-card {
  min-height: 160px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
}

.article-card span {
  color: var(--green);
  font-size: 12px;
  font-weight: 700;
}

.article-card h3 {
  margin: 9px 0 8px;
  font-size: 16px;
  line-height: 1.45;
}

.article-card p,
.empty-state p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.site-footer {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 14px;
  width: min(1680px, calc(100% - 48px));
  margin: -28px auto 56px;
  align-items: stretch;
}

.footer-card {
  border: 1px solid rgba(202, 215, 235, 0.86);
  border-radius: 8px;
  padding: 18px;
  background:
    radial-gradient(circle at 100% 0%, rgba(36, 107, 254, 0.08), transparent 14rem),
    rgba(255, 255, 255, 0.92);
  box-shadow: 0 16px 40px rgba(31, 62, 106, 0.07);
}

.footer-card span {
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
}

.footer-card h2 {
  margin: 8px 0 10px;
  color: #172033;
  font-size: 18px;
}

.footer-card p {
  margin: 0;
  color: #607089;
  font-size: 14px;
  line-height: 1.8;
}

.footer-contact-row {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
}

.footer-contact-button {
  min-height: 42px;
  border: 1px solid rgba(36, 107, 254, 0.22);
  border-radius: 8px;
  padding: 0 24px;
  background: linear-gradient(135deg, rgba(239, 246, 255, 0.96), rgba(237, 252, 248, 0.96));
  color: var(--accent);
  font-size: 15px;
  font-weight: 900;
  box-shadow: 0 12px 26px rgba(36, 107, 254, 0.08);
}

.footer-contact-button:hover,
.footer-contact-button:focus-visible {
  border-color: rgba(36, 107, 254, 0.36);
  background: #eef4ff;
  outline: none;
  transform: translateY(-1px);
}

.contact-modal {
  position: relative;
  width: min(420px, 100%);
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 8px;
  padding: 26px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 26px 70px rgba(15, 23, 42, 0.22);
}

.contact-brand-mark {
  width: 56px;
  height: 56px;
}

.contact-brand-mark .brand-logo {
  width: 56px;
  height: 56px;
}

.contact-brand-mark .logo-bg {
  fill: url("#contactLogoBg");
}

.contact-brand-mark .logo-glow {
  fill: url("#contactLogoGlow");
}

.contact-brand-mark .logo-needle {
  fill: url("#contactLogoNeedle");
}

.contact-modal h2 {
  margin: 16px 0 8px;
  font-size: 26px;
}

.contact-modal p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.contact-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.contact-list a,
.contact-list button {
  display: grid;
  gap: 4px;
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px;
  background: #f8fbff;
  color: #22304a;
  font: inherit;
  text-align: left;
  text-decoration: none;
}

.contact-list button {
  cursor: pointer;
}

.contact-list a:hover,
.contact-list button:hover,
.contact-list button:focus-visible {
  border-color: rgba(36, 107, 254, 0.32);
  background: #eef4ff;
  outline: none;
}

.contact-list span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.contact-list strong {
  overflow-wrap: anywhere;
  font-size: 16px;
}

.contact-list small {
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
}

.empty-state {
  text-align: center;
}

.empty-state h2 {
  margin: 0 0 8px;
}

.empty-state button {
  margin-top: 16px;
}

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 50;
  max-width: min(360px, calc(100vw - 32px));
  border-radius: 8px;
  padding: 12px 14px;
  background: #172033;
  color: #fff;
  box-shadow: var(--shadow);
  font-size: 14px;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(15, 23, 42, 0.42);
  backdrop-filter: blur(10px);
}

.login-modal,
.submit-modal,
.profile-modal {
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 8px;
  padding: 26px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 26px 70px rgba(15, 23, 42, 0.22);
}

.login-modal {
  width: min(420px, 100%);
}

.submit-modal {
  width: min(640px, 100%);
}

.profile-modal {
  width: min(720px, 100%);
  max-height: min(78vh, 760px);
  overflow: auto;
}

.tool-detail-modal {
  position: relative;
  width: min(560px, 100%);
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 8px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 26px 70px rgba(15, 23, 42, 0.24);
}

.detail-head {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding-right: 34px;
}

.detail-logo {
  width: 58px;
  height: 58px;
  border-radius: 12px;
}

.detail-head span {
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
}

.detail-head h2 {
  margin: 5px 0 6px;
  font-size: 26px;
}

.detail-head p,
.detail-section p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.detail-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.detail-meta div {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 11px 12px;
  background: #f8fbff;
}

.detail-meta span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.detail-meta strong {
  display: block;
  margin-top: 4px;
  color: #22304a;
}

.detail-section {
  margin-top: 18px;
}

.detail-section h3 {
  margin: 0 0 8px;
  font-size: 16px;
}

.article-detail-modal {
  width: min(680px, 100%);
  max-height: min(82vh, 760px);
  overflow: auto;
}

.article-detail-head .login-mark {
  width: 58px;
  height: 58px;
  border-radius: 14px;
  font-size: 24px;
}

.article-content {
  display: grid;
  gap: 12px;
}

.article-content p {
  border-left: 3px solid rgba(36, 107, 254, 0.24);
  padding-left: 12px;
  color: #40506a;
}

.article-detail-note {
  display: grid;
  gap: 4px;
  margin-top: 18px;
  border: 1px solid rgba(196, 211, 234, 0.82);
  border-radius: 8px;
  padding: 12px 14px;
  background:
    radial-gradient(circle at 100% 0%, rgba(36, 107, 254, 0.08), transparent 12rem),
    #f8fbff;
  color: #53637a;
  line-height: 1.65;
}

.article-detail-note strong {
  color: var(--accent);
}

.detail-tags {
  margin-top: 14px;
}

.detail-actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.detail-actions .primary-button,
.detail-actions .favorite-button {
  min-height: 40px;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  color: #667085;
  font-size: 20px;
  line-height: 1;
}

.login-mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), #18b98a);
  color: #fff;
  font-weight: 900;
}

.login-modal h2,
.submit-modal h2 {
  margin: 16px 0 8px;
  font-size: 26px;
}

.login-modal p,
.submit-modal p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.login-form,
.submit-form,
.profile-form {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.login-form label,
.submit-form label,
.profile-form label {
  display: grid;
  gap: 7px;
  color: #344054;
  font-size: 14px;
  font-weight: 700;
}

.login-form input,
.profile-form input,
.submit-form input,
.submit-form select,
.submit-form textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid #cfd8e6;
  border-radius: 8px;
  padding: 0 12px;
  background: #fff;
  color: var(--text);
  outline: 0;
}

.submit-form textarea {
  min-height: 104px;
  padding: 12px;
  resize: vertical;
}

.login-form input:focus,
.profile-form input:focus,
.submit-form input:focus,
.submit-form select:focus,
.submit-form textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(36, 107, 254, 0.10);
}

.login-form .primary-button,
.submit-form .primary-button,
.profile-form .primary-button {
  width: 100%;
  margin-top: 2px;
}

.profile-head {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding-right: 36px;
}

.profile-head span {
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.profile-head h2 {
  margin: 3px 0;
  font-size: 28px;
}

.profile-head p {
  margin: 0;
  color: var(--muted);
}

.profile-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 20px;
}

.profile-tabs button {
  min-height: 42px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  color: #344054;
  font-weight: 800;
}

.profile-tabs button.active,
.profile-tabs button:hover,
.profile-tabs button:focus-visible {
  border-color: rgba(36, 107, 254, 0.34);
  background: #eef4ff;
  color: var(--accent);
  outline: none;
}

.profile-records {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.profile-record-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px;
  background: #fff;
}

.profile-record-card h3 {
  margin: 0 0 5px;
  font-size: 18px;
}

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

.profile-record-card small {
  display: block;
  margin-top: 7px;
  color: #7b8798;
}

.profile-empty {
  border: 1px dashed rgba(36, 107, 254, 0.26);
  border-radius: 8px;
  padding: 22px;
  background: #f8fbff;
  color: #344054;
}

.profile-empty strong {
  display: block;
  margin-bottom: 6px;
  color: var(--text);
  font-size: 18px;
}

.profile-empty p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

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

.form-error {
  border: 1px solid rgba(226, 83, 83, 0.22);
  border-radius: 8px;
  padding: 10px 12px;
  background: #fff3f3;
  color: var(--red);
  font-size: 14px;
}

.demo-account {
  margin-top: 14px;
  border-radius: 8px;
  padding: 10px 12px;
  background: #f4f7fb;
  color: #667085;
  font-size: 13px;
  line-height: 1.6;
}

.admin-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 76px;
  padding: 0 28px;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(18px);
}

.admin-header span,
.admin-panel-head span {
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
}

.admin-header h1,
.admin-panel-head h2 {
  margin: 2px 0 0;
}

.admin-header nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-layout {
  width: min(1400px, calc(100% - 36px));
  margin: 18px auto 56px;
}

.admin-shell {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.admin-main {
  min-width: 0;
}

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

.admin-stats .stat-card,
.admin-panel,
.admin-gate section {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}

.admin-stats .stat-card {
  padding: 16px;
}

.admin-stats button.stat-card {
  width: 100%;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.admin-stats button.stat-card:hover,
.admin-stats button.stat-card.active {
  border-color: rgba(36, 107, 254, 0.45);
  box-shadow: 0 18px 45px rgba(36, 107, 254, 0.14);
  transform: translateY(-1px);
}

.admin-stats span {
  color: var(--muted);
  font-size: 13px;
}

.admin-stats strong {
  display: block;
  margin-top: 8px;
  color: #172033;
  font-size: 30px;
}

.admin-module-nav {
  position: sticky;
  top: 92px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  max-height: calc(100vh - 110px);
  margin-top: 0;
  overflow: auto;
  border: 1px solid rgba(202, 215, 235, 0.92);
  border-radius: 8px;
  padding: 12px;
  background:
    radial-gradient(circle at 100% 0%, rgba(36, 107, 254, 0.10), transparent 13rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 250, 255, 0.94));
  box-shadow: 0 18px 44px rgba(31, 62, 106, 0.08);
  scrollbar-width: thin;
  scrollbar-color: rgba(36, 107, 254, 0.26) transparent;
}

.admin-module-nav::-webkit-scrollbar {
  width: 6px;
}

.admin-module-nav::-webkit-scrollbar-track {
  background: transparent;
}

.admin-module-nav::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(36, 107, 254, 0.22);
}

.admin-module-title {
  display: grid;
  gap: 4px;
  border-bottom: 1px solid rgba(216, 226, 240, 0.86);
  padding: 4px 4px 12px;
}

.admin-module-title span {
  color: var(--accent);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-module-title strong {
  color: #172033;
  font-size: 22px;
  line-height: 1.2;
}

.admin-module-title p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.admin-module-nav button {
  position: relative;
  overflow: hidden;
  display: grid;
  min-height: 118px;
  border: 1px solid rgba(202, 215, 235, 0.92);
  border-radius: 8px;
  padding: 16px;
  background:
    radial-gradient(circle at 100% 0%, rgba(36, 107, 254, 0.10), transparent 11rem),
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 255, 0.94));
  color: #172033;
  text-align: left;
  box-shadow: 0 14px 34px rgba(31, 62, 106, 0.07);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.admin-module-nav button::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, var(--accent), #18b98a);
  opacity: 0;
  transition: opacity 0.18s ease;
}

.admin-module-nav button:hover,
.admin-module-nav button:focus-visible,
.admin-module-nav button.active {
  border-color: rgba(36, 107, 254, 0.36);
  box-shadow: 0 20px 46px rgba(36, 107, 254, 0.13);
  outline: none;
  transform: translateY(-1px);
}

.admin-module-nav button:hover::before,
.admin-module-nav button:focus-visible::before,
.admin-module-nav button.active::before {
  opacity: 1;
}

.admin-module-nav button.active {
  background:
    radial-gradient(circle at 100% 0%, rgba(36, 107, 254, 0.16), transparent 12rem),
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(241, 247, 255, 0.96));
}

.admin-module-nav button.active em {
  border-color: rgba(36, 107, 254, 0.32);
  background: #2563eb;
  color: #fff;
}

.admin-module-nav span {
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
}

.admin-module-nav strong {
  display: block;
  margin-top: 7px;
  font-size: 20px;
}

.admin-module-nav p {
  max-width: 220px;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.admin-module-nav em {
  position: absolute;
  top: 18px;
  right: 18px;
  min-width: 44px;
  border: 1px solid rgba(36, 107, 254, 0.16);
  border-radius: 8px;
  padding: 6px 9px;
  background: #eef4ff;
  color: var(--accent);
  font-size: 14px;
  font-style: normal;
  font-weight: 900;
  text-align: center;
}

.admin-workspace {
  display: grid;
  gap: 22px;
  margin-top: 18px;
  min-height: 520px;
}

.admin-module-block {
  border: 1px solid rgba(200, 214, 235, 0.92);
  border-radius: 8px;
  padding: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 250, 255, 0.92));
  box-shadow: 0 18px 44px rgba(31, 62, 106, 0.08);
  scroll-margin-top: 96px;
}

.admin-module-head {
  display: grid;
  gap: 6px;
  margin-bottom: 16px;
  border-bottom: 1px solid rgba(216, 226, 240, 0.86);
  padding-bottom: 16px;
}

.admin-module-head span {
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-module-head h2 {
  margin: 0;
  color: #172033;
  font-size: 28px;
}

.admin-module-head p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.admin-module-block .admin-panel {
  box-shadow: none;
}

.admin-module-block .admin-panel + .admin-panel {
  margin-top: 16px;
}

.admin-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 18px;
  margin-top: 18px;
  align-items: start;
}

.admin-grid > div {
  display: grid;
  gap: 18px;
}

.admin-grid aside {
  position: sticky;
  top: 94px;
}

.admin-panel {
  padding: 18px;
}

.admin-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.panel-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.admin-panel-head strong {
  border-radius: 8px;
  padding: 6px 10px;
  background: #eef4ff;
  color: var(--accent);
  font-size: 13px;
}

.admin-filters {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 190px;
  gap: 10px;
  margin-bottom: 12px;
}

.admin-filters input,
.admin-filters select {
  min-height: 42px;
  border: 1px solid #cfd8e6;
  border-radius: 8px;
  padding: 0 12px;
  background: #fff;
  color: var(--text);
  outline: 0;
}

.admin-table,
.review-list,
.category-bars,
.ad-manager-list {
  display: grid;
  gap: 10px;
}

.ad-manager-card {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px;
  background: #fff;
}

.ad-preview {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border: 1px dashed #cbd7ea;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(234, 242, 255, 0.9), rgba(237, 250, 246, 0.9));
  color: var(--accent);
  font-weight: 900;
}

.ad-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ad-manager-copy span {
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
}

.ad-manager-copy h3 {
  margin: 4px 0 6px;
  font-size: 17px;
}

.ad-manager-copy p {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.ad-manager-copy small,
.ad-manager-copy em {
  display: inline-flex;
  margin-right: 8px;
  margin-bottom: 10px;
  border: 1px solid #dbe4ef;
  border-radius: 8px;
  padding: 4px 8px;
  background: #f8fbff;
  color: #52627a;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.ad-form {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto auto;
  gap: 8px;
}

.ad-form input[name="link"] {
  min-height: 38px;
  border: 1px solid #cfd8e6;
  border-radius: 8px;
  padding: 0 10px;
  outline: 0;
}

.ad-upload-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  overflow: hidden;
  border: 1px solid #cbd7ea;
  border-radius: 8px;
  padding: 0 12px;
  background: #fff;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.ad-upload-button input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.ad-publish-button {
  min-height: 38px;
  box-shadow: none;
}

.review-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: -2px 0 12px;
}

.review-tabs button {
  min-height: 34px;
  border: 1px solid #d8e1ee;
  border-radius: 8px;
  padding: 0 12px;
  background: #fff;
  color: #52627a;
  font-weight: 800;
}

.review-tabs button.active {
  border-color: rgba(36, 107, 254, 0.35);
  background: #eef4ff;
  color: var(--accent);
}

.admin-table article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 130px 92px 180px;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px;
  background: #fff;
}

.admin-table h3,
.review-card h3 {
  margin: 0 0 5px;
  font-size: 16px;
}

.admin-table p,
.review-card p {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.admin-table span,
.admin-table em,
.admin-table a,
.admin-table button {
  color: #52627a;
  font-size: 13px;
  font-style: normal;
}

.admin-table a,
.admin-table button {
  border: 0;
  background: transparent;
  color: var(--accent);
}

.admin-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.admin-row-actions span {
  color: var(--muted);
}

.review-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px;
  background: #fff;
}

.review-actions {
  display: grid;
  gap: 8px;
  align-content: start;
}

.review-actions .visit-link {
  min-height: 32px;
  font-weight: 700;
}

.submission-detail-modal {
  width: min(680px, 100%);
}

.submission-detail-meta strong {
  overflow-wrap: anywhere;
}

.status-pill {
  display: inline-flex;
  margin-bottom: 8px;
  border-radius: 8px;
  padding: 4px 8px;
  background: #fff8ec;
  color: #a65f12;
  font-size: 12px;
  font-weight: 800;
}

.status-已通过 {
  background: #eafaf4;
  color: #117454;
}

.status-已驳回 {
  background: #fff0f0;
  color: #b42323;
}

.category-bars div {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px;
  background: #fff;
}

.category-bars span,
.category-bars strong {
  position: relative;
  z-index: 1;
}

.category-bars span {
  color: #39485f;
  font-size: 14px;
}

.category-bars strong {
  color: var(--accent);
}

.category-bars em {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  border-radius: 0 999px 999px 0;
  background: linear-gradient(90deg, var(--accent), #18b98a);
}

.admin-gate {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px;
}

.admin-gate section {
  width: min(420px, 100%);
  padding: 28px;
  text-align: center;
}

.admin-gate .brand-mark {
  margin: 0 auto 16px;
}

.admin-gate h1 {
  margin: 0 0 8px;
}

.admin-gate p {
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.7;
}

.admin-logo-bg {
  fill: url("#adminLogoBg");
}

.admin-checks {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.admin-checks label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0 10px;
  background: #fff;
  color: #40506a;
  font-size: 14px;
  font-weight: 700;
}

.admin-checks input {
  width: 15px;
  height: 15px;
}

@media (max-width: 1180px) {
  .layout {
    grid-template-columns: 210px minmax(0, 1fr);
  }

  .front-site .layout {
    grid-template-columns: minmax(220px, 260px) minmax(0, 1fr);
    gap: 18px;
    width: min(100% - 28px, 1120px);
  }

  .hero-head {
    grid-template-columns: minmax(0, 1fr);
  }

  .front-site .hero-head {
    grid-template-areas: "copy";
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-sponsor {
    min-height: 150px;
  }

  .front-site .hero-sponsor {
    min-height: 190px;
    padding: 24px;
    text-align: center;
  }

  .front-site .showcase-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .front-site .hero-sponsor .primary-button {
    justify-self: center;
  }

  .hero-visual {
    min-height: 0;
  }

  .right-rail {
    display: none;
  }

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

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

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

  .admin-grid aside {
    position: static;
  }

  .admin-shell {
    grid-template-columns: 1fr;
  }

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

  .admin-module-nav {
    position: static;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-height: none;
    overflow: visible;
  }

  .admin-module-title {
    grid-column: 1 / -1;
  }

  .admin-module-nav button {
    min-height: 132px;
  }
}

@media (min-width: 1440px) {
  .hero-visual {
    align-self: start;
    min-height: 0;
  }
}

@media (max-width: 820px) {
  .site-header {
    min-height: 62px;
    padding: 0 14px;
  }

  .top-nav {
    display: none;
  }

  .header-actions {
    gap: 6px;
  }

  .ghost-button {
    display: none;
  }

  .front-site .header-actions .auth-login-link {
    display: inline-flex;
  }

  .user-badge {
    display: none;
  }

  .front-site .user-badge {
    display: inline-flex;
  }

  .front-site .user-badge strong {
    max-width: 76px;
  }

  .mobile-shell {
    position: sticky;
    top: 62px;
    z-index: 15;
    display: block;
    border-bottom: 1px solid var(--border);
    background: rgba(245, 247, 251, 0.92);
    backdrop-filter: blur(12px);
  }

  .front-site .mobile-shell {
    border-color: rgba(190, 205, 230, 0.76);
    background: rgba(248, 251, 255, 0.92);
    box-shadow: 0 10px 24px rgba(37, 71, 121, 0.08);
  }

  .mobile-categories {
    display: flex;
    gap: 8px;
    width: 100%;
    padding: 10px 14px;
    overflow-x: auto;
  }

  .chip {
    flex: 0 0 auto;
  }

  .front-site .chip {
    min-height: 34px;
    border-color: rgba(202, 215, 236, 0.86);
    background: rgba(255, 255, 255, 0.9);
  }

  .layout {
    display: block;
    width: min(100% - 24px, 720px);
    margin-top: 12px;
  }

  .front-site .layout {
    display: block;
    width: min(100% - 24px, 760px);
    margin: 12px auto 44px;
  }

  .site-footer {
    grid-template-columns: 1fr;
    width: min(100% - 24px, 760px);
    margin: -18px auto 42px;
  }

  .sidebar {
    display: none;
  }

  .search-panel {
    padding: 18px;
  }

  .front-site .search-panel {
    padding: 20px;
  }

  .front-site .hero-head {
    grid-template-areas: "copy";
    grid-template-columns: 1fr;
    gap: 0;
  }

  .hero-sponsor {
    min-height: auto;
    padding: 18px;
    text-align: center;
  }

  .front-site .hero-sponsor {
    min-height: 170px;
    padding: 22px 18px;
  }

  .hero-sponsor .primary-button {
    justify-self: center;
  }

  .hero-visual {
    display: grid;
    margin-top: 2px;
  }

  .search-panel h1 {
    font-size: 30px;
    line-height: 1.2;
  }

  .front-site .search-panel h1 {
    font-size: clamp(28px, 6vw, 34px);
  }

  .hero-badges span {
    flex: 1 1 120px;
    min-width: 0;
  }

  .front-site .search-panel p {
    font-size: 14px;
  }

  .hero-primary-search {
    min-height: 56px;
  }

  .hero-search-input input {
    font-size: 15px;
  }

  .showcase-list,
  .front-site .showcase-list {
    grid-template-columns: 1fr;
  }

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

  .tool-grid,
  .article-list {
    grid-template-columns: 1fr;
  }

  .scenario-strip {
    grid-template-columns: 1fr 1fr;
  }

  .tool-card {
    grid-template-columns: 40px minmax(0, 1fr);
    min-height: auto;
  }

  .front-site .tool-card {
    min-height: auto;
  }

  .category-ad-card {
    grid-template-columns: 40px minmax(0, 1fr);
    min-height: auto;
  }

  .front-site .category-ad-card,
  .category-ad-card.ad-media-card {
    min-height: auto;
  }

  .category-ad-badge {
    width: 40px;
    height: 40px;
    font-size: 12px;
  }

  .category-ad-card .visit-link {
    grid-column: 2;
    justify-self: start;
  }

  .tool-logo {
    width: 40px;
    height: 40px;
  }

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

  .tool-actions {
    grid-column: 2;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .tool-detail-modal {
    padding: 20px;
  }

  .admin-header {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px;
  }

  .admin-layout {
    width: min(100% - 24px, 720px);
  }

  .admin-shell {
    grid-template-columns: 1fr;
  }

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

  .admin-module-nav {
    grid-template-columns: 1fr;
    padding: 10px;
  }

  .admin-module-block {
    padding: 14px;
  }

  .admin-filters,
  .ad-manager-card,
  .ad-form,
  .admin-table article,
  .review-card,
  .profile-record-card {
    grid-template-columns: 1fr;
  }

  .profile-modal {
    padding: 20px;
  }

  .profile-tabs {
    grid-template-columns: 1fr;
  }

  .profile-record-card .visit-link {
    justify-self: start;
  }

  .panel-actions,
  .admin-row-actions {
    justify-content: flex-start;
  }

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

  .detail-head {
    grid-template-columns: 48px minmax(0, 1fr);
    padding-right: 28px;
  }

  .detail-logo {
    width: 48px;
    height: 48px;
  }

  .detail-meta,
  .detail-actions {
    grid-template-columns: 1fr;
  }

  .detail-actions {
    flex-direction: column;
  }

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

@media (max-width: 480px) {
  .brand {
    min-width: auto;
    gap: 9px;
  }

  .brand small {
    display: none;
  }

  .primary-button,
  .ghost-button,
  .section-heading button {
    padding: 0 10px;
  }
}

.auth-site {
  min-height: 100vh;
  background:
    radial-gradient(circle at 20% 8%, rgba(236, 72, 153, 0.18), transparent 30rem),
    radial-gradient(circle at 80% 20%, rgba(36, 107, 254, 0.16), transparent 34rem),
    linear-gradient(135deg, #fff7fc 0%, #eef5ff 52%, #f3fff8 100%);
  color: var(--text);
}

.auth-site::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(36, 107, 254, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(36, 107, 254, 0.055) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.72), transparent 78%);
}

#auth-app {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 40px 18px;
}

.auth-card {
  width: min(560px, 100%);
  border: 1px solid rgba(185, 199, 222, 0.75);
  border-radius: 18px;
  padding: 34px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 28px 90px rgba(41, 59, 92, 0.16);
  backdrop-filter: blur(18px);
}

.auth-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
}

.auth-brand .brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 14px;
}

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

.auth-brand strong {
  font-size: 20px;
}

.auth-brand small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 13px;
}

.auth-card h1 {
  margin: 28px 0 8px;
  font-size: 42px;
  line-height: 1.1;
  letter-spacing: 0;
}

.auth-card p {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

.auth-form {
  display: grid;
  gap: 16px;
}

.auth-form label {
  display: grid;
  gap: 8px;
  color: #364762;
  font-size: 14px;
  font-weight: 800;
}

.auth-form input {
  width: 100%;
  min-height: 58px;
  border: 1px solid #cfd8e6;
  border-radius: 10px;
  padding: 0 16px;
  background: #f8fafc;
  color: var(--text);
  font-size: 17px;
  outline: 0;
}

.auth-form input::placeholder {
  color: #9aa4b2;
}

.auth-form input:focus {
  border-color: var(--accent);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(36, 107, 254, 0.10);
}

.password-field,
.captcha-field {
  position: relative;
  display: grid;
}

.password-field input {
  padding-right: 56px;
}

.password-eye {
  position: absolute;
  right: 10px;
  top: 50%;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  transform: translateY(-50%);
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #7b8798;
}

.password-eye svg {
  width: 22px;
  height: 22px;
}

.captcha-field {
  grid-template-columns: minmax(0, 1fr) 152px;
  gap: 12px;
}

.captcha-code {
  display: flex;
  min-height: 58px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid #cfd8e6;
  border-radius: 10px;
  background:
    repeating-linear-gradient(35deg, rgba(36, 107, 254, 0.10) 0 5px, transparent 5px 12px),
    linear-gradient(135deg, #f8fbff, #e7fff7);
  color: #1d314f;
  font-size: 28px;
  font-weight: 900;
  line-height: 1;
}

.captcha-code span {
  display: inline-block;
  transform: rotate(var(--r));
}

.remember-row {
  display: inline-flex !important;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 10px !important;
  margin: 2px 0 4px;
  font-size: 15px !important;
}

.remember-row input {
  width: 22px;
  min-height: 22px;
  accent-color: var(--accent);
}

.auth-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 4px;
}

.auth-actions .primary-button,
.auth-actions .ghost-button {
  display: inline-flex;
  min-height: 58px;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-size: 18px;
  font-weight: 900;
  text-decoration: none;
}

.form-success {
  border: 1px solid rgba(19, 141, 115, 0.2);
  border-radius: 8px;
  padding: 10px 12px;
  background: rgba(19, 141, 115, 0.08);
  color: #08735e;
  font-size: 14px;
}

.auth-links {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  color: #7a879a;
  font-size: 15px;
}

.auth-links a,
.auth-links button {
  border: 0;
  background: transparent;
  color: #667085;
  text-decoration: none;
}

.auth-links a:hover,
.auth-links button:hover {
  color: var(--accent);
}

@media (max-width: 620px) {
  #auth-app {
    align-items: start;
    padding: 18px 14px 28px;
  }

  .auth-card {
    padding: 24px;
    border-radius: 14px;
  }

  .auth-card h1 {
    font-size: 34px;
  }

  .captcha-field,
  .auth-actions {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .search-panel h1 {
    font-size: 26px;
  }

  .front-site .search-panel {
    padding: 16px;
  }

  .front-site .hero-head {
    gap: 0;
  }

  .front-site .hero-copy {
    padding: 0;
  }

  .hero-kicker {
    max-width: 100%;
  }

  .hero-primary-search {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 6px;
    min-height: 50px;
  }

  .hero-primary-search button {
    width: auto;
    min-height: 38px;
    padding: 0 12px;
  }

  .hero-search-input {
    grid-template-columns: 20px minmax(0, 1fr);
    gap: 9px;
    min-height: 38px;
    padding: 0 10px;
  }

  .hero-search-input input {
    font-size: 13px;
  }

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

  .hero-badges span {
    min-width: 0;
    padding: 7px 4px;
  }

  .hero-badges strong {
    font-size: 16px;
  }

  .hero-badges small {
    font-size: 10px;
  }

  .hero-search-meta {
    gap: 6px;
  }

  .hero-article-strip {
    align-items: stretch;
    flex-direction: column;
    margin-top: 14px;
  }

  .hero-article-label {
    justify-content: center;
  }

  .hero-article-links {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hero-article-item {
    justify-content: flex-start;
    width: 100%;
  }

  .hero-article-item span {
    max-width: none;
  }

  .hero-sponsor h2 {
    font-size: 20px;
  }

  .front-site .hero-sponsor {
    min-height: 136px;
    padding: 18px;
  }

  .front-site .hero-sponsor h2 {
    font-size: 22px;
  }

  .front-site .hero-sponsor p {
    font-size: 13px;
    line-height: 1.55;
  }

  .hero-sponsor .primary-button {
    width: 100%;
  }

  .front-site .hero-visual {
    display: none;
  }

  .showcase-list {
    gap: 8px;
  }

  .showcase-item {
    grid-template-columns: 34px minmax(0, 1fr);
    min-height: 64px;
  }

  .showcase-item-icon {
    width: 34px;
    height: 34px;
  }

  .scenario-strip {
    grid-template-columns: 1fr;
  }

  .tool-title-row {
    display: block;
  }

  .price-tag {
    display: inline-block;
    margin-top: 6px;
  }

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

  .category-ad-card .visit-link {
    grid-column: 2;
    width: auto;
  }
}

.front-site button,
.front-site .primary-button,
.front-site .ghost-button,
.front-site .visit-link {
  -webkit-tap-highlight-color: transparent;
}

.front-site .primary-button,
.front-site .ghost-button,
.front-site .section-heading button,
.front-site .hero-primary-search button,
.front-site .showcase-foot button,
.front-site .visit-link,
.front-site .favorite-button,
.front-site .rail-card a,
.front-site .rail-card button {
  min-height: 40px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 850;
  letter-spacing: 0;
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    color 0.18s ease,
    transform 0.18s ease;
}

.front-site .primary-button {
  border: 1px solid rgba(36, 107, 254, 0.12);
  background: linear-gradient(135deg, #246bfe 0%, #148f7c 100%);
  color: #fff;
  box-shadow: 0 10px 22px rgba(36, 107, 254, 0.18);
}

.front-site .primary-button:hover,
.front-site .primary-button:focus-visible {
  border-color: rgba(36, 107, 254, 0.18);
  background: linear-gradient(135deg, #1d5fe8 0%, #0f7d70 100%);
  box-shadow: 0 14px 28px rgba(36, 107, 254, 0.22);
  outline: none;
  transform: translateY(-1px);
}

.front-site .ghost-button,
.front-site .section-heading button,
.front-site .visit-link,
.front-site .showcase-foot button,
.front-site .rail-card a,
.front-site .rail-card button {
  border: 1px solid rgba(195, 209, 230, 0.86);
  background: rgba(255, 255, 255, 0.84);
  color: #3d4d66;
  box-shadow: 0 8px 18px rgba(31, 62, 106, 0.045);
}

.front-site .ghost-button:hover,
.front-site .ghost-button:focus-visible,
.front-site .section-heading button:hover,
.front-site .section-heading button:focus-visible,
.front-site .visit-link:hover,
.front-site .visit-link:focus-visible,
.front-site .showcase-foot button:hover,
.front-site .showcase-foot button:focus-visible,
.front-site .rail-card a:hover,
.front-site .rail-card a:focus-visible,
.front-site .rail-card button:hover,
.front-site .rail-card button:focus-visible {
  border-color: rgba(36, 107, 254, 0.34);
  background: rgba(244, 248, 255, 0.96);
  color: var(--accent);
  box-shadow: 0 12px 24px rgba(36, 107, 254, 0.10);
  outline: none;
  transform: translateY(-1px);
}

.front-site .header-actions {
  gap: 8px;
}

.front-site .header-actions .ghost-button,
.front-site .header-actions .primary-button {
  min-height: 42px;
  padding: 0 16px;
}

.front-site .header-actions .auth-login-link {
  background: rgba(255, 255, 255, 0.72);
}

.front-site .header-actions .auth-entry-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 18px;
  white-space: nowrap;
}

.auth-entry-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.front-site .header-actions .auth-register-link {
  border-color: rgba(36, 107, 254, 0.20);
  background: rgba(236, 243, 255, 0.96);
  color: var(--accent);
  box-shadow: 0 8px 18px rgba(36, 107, 254, 0.08);
}

.front-site .header-actions .auth-register-link:hover,
.front-site .header-actions .auth-register-link:focus-visible {
  background: rgba(226, 238, 255, 0.98);
  color: #1456dc;
}

.front-site .header-actions [data-open-submit] {
  background: linear-gradient(135deg, #246bfe 0%, #0f9f8f 100%);
}

.front-site .hero-primary-search {
  border-radius: 8px;
  padding: 7px;
}

.front-site .hero-primary-search button {
  min-height: 42px;
  border: 1px solid transparent;
  background: #edf4ff;
  color: #30445f;
  box-shadow: none;
}

.front-site .hero-primary-search button:hover,
.front-site .hero-primary-search button:focus-visible {
  border-color: rgba(36, 107, 254, 0.12);
  background: #e3eeff;
  color: var(--accent);
  box-shadow: none;
  outline: none;
  transform: none;
}

.front-site .category-link,
.front-site .chip,
.front-site .showcase-item {
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    color 0.18s ease,
    transform 0.18s ease;
}

.front-site .category-link {
  border: 1px solid transparent;
  padding: 0 12px;
}

.front-site .category-link:hover,
.front-site .category-link.active {
  border-color: rgba(36, 107, 254, 0.12);
  background: linear-gradient(135deg, rgba(236, 243, 255, 0.98), rgba(236, 251, 247, 0.92));
  box-shadow: inset 3px 0 0 var(--accent), 0 10px 22px rgba(36, 107, 254, 0.07);
}

.front-site .chip {
  min-height: 36px;
  border-color: rgba(195, 209, 230, 0.86);
  background: rgba(255, 255, 255, 0.88);
  color: #44556f;
}

.front-site .chip:hover,
.front-site .chip.active {
  border-color: rgba(36, 107, 254, 0.30);
  background: #eaf2ff;
  color: var(--accent);
  box-shadow: 0 10px 22px rgba(36, 107, 254, 0.10);
}

.front-site .showcase-item {
  border-color: rgba(202, 216, 236, 0.88);
  background: rgba(255, 255, 255, 0.84);
}

.front-site .showcase-item:hover,
.front-site .showcase-item:focus-visible {
  border-color: rgba(36, 107, 254, 0.34);
  background: rgba(247, 250, 255, 0.98);
  box-shadow: 0 14px 30px rgba(36, 107, 254, 0.10);
}

.front-site .showcase-foot button {
  min-height: 42px;
}

.front-site .tool-actions {
  gap: 7px;
}

.front-site .visit-link,
.front-site .favorite-button {
  min-height: 34px;
  padding: 0 12px;
  line-height: 1;
}

.front-site .visit-link {
  border-color: rgba(36, 107, 254, 0.20);
  background: rgba(246, 250, 255, 0.96);
  color: #244f90;
}

.front-site .favorite-button {
  border-color: rgba(195, 209, 230, 0.88);
  background: rgba(255, 255, 255, 0.86);
  color: #53637a;
}

.front-site .favorite-button:hover,
.front-site .favorite-button:focus-visible,
.front-site .favorite-button.active {
  border-color: rgba(240, 138, 36, 0.28);
  background: #fff7ed;
  color: #af5c08;
  box-shadow: 0 10px 20px rgba(240, 138, 36, 0.10);
  outline: none;
}

.front-site .category-ad-card .visit-link {
  min-height: 36px;
  padding: 0 14px;
}

.front-site .modal-close {
  border: 1px solid rgba(195, 209, 230, 0.86);
  background: rgba(255, 255, 255, 0.92);
  color: #596981;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.front-site .modal-close:hover,
.front-site .modal-close:focus-visible {
  border-color: rgba(36, 107, 254, 0.26);
  background: #eef4ff;
  color: var(--accent);
  outline: none;
}

@media (max-width: 820px) {
  .front-site .header-actions {
    gap: 6px;
  }

  .front-site .header-actions .ghost-button,
  .front-site .header-actions .primary-button {
    min-height: 38px;
    padding: 0 11px;
    font-size: 13px;
  }

  .front-site .showcase-foot button {
    min-height: 40px;
  }
}

@media (max-width: 480px) {
  .front-site .header-actions [data-open-submit] {
    padding: 0 10px;
  }

  .front-site .header-actions .auth-entry-link {
    padding: 0 10px;
  }

  .front-site .header-actions .auth-entry-link span {
    max-width: 54px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .front-site .primary-button,
  .front-site .ghost-button,
  .front-site .section-heading button,
  .front-site .hero-primary-search button,
  .front-site .showcase-foot button,
  .front-site .visit-link,
  .front-site .favorite-button {
    font-size: 13px;
  }
}
