:root {
  --bg: #f8fafc;
  --bg-panel: rgba(255, 255, 255, 0.82);
  --bg-panel-strong: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --muted-2: #94a3b8;
  --line: rgba(15, 23, 42, 0.08);
  --line-strong: rgba(15, 23, 42, 0.14);
  --primary: #0f172a;
  --primary-2: #1e293b;
  --accent: #cbd5e1;
  --soft-shadow: 0 18px 55px rgba(15, 23, 42, 0.06);
  --strong-shadow: 0 24px 70px rgba(15, 23, 42, 0.11);
  --max: 1240px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(226, 232, 240, 0.86), transparent 28%),
    linear-gradient(180deg, #ffffff 0%, #f8fafc 46%, #eef2ff 100%);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

main {
  padding-top: 132px;
}

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

button,
input {
  font: inherit;
}

button {
  border: 0;
  background: none;
  cursor: pointer;
}

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

.container,
.header-shell {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
}

.header-bar {
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-top: 0;
  border-radius: 0 0 28px 28px;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: var(--strong-shadow);
  outline: 1px solid rgba(15, 23, 42, 0.05);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 22px;
}

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

.brand-mark,
.footer-brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 60%, #334155 100%);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.22);
  position: relative;
  overflow: hidden;
  flex: 0 0 auto;
}

.brand-mark::before,
.footer-brand-mark::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top, rgba(255, 255, 255, 0.22), transparent 55%);
}

.brand-mark::after,
.footer-brand-mark::after {
  content: "";
  position: relative;
  z-index: 1;
  width: 24px;
  height: 24px;
  background: center / contain no-repeat url("../brand/junzhuo-logo-mark.svg");
}

.brand-mark svg,
.footer-brand-mark svg {
  display: none;
}

.brand-title,
.footer-brand-title {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand-subtitle {
  margin-top: 3px;
  font-size: 10px;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: 0.12em;
  color: #94a3b8;
  text-transform: uppercase;
  white-space: nowrap;
}
.nav-desktop {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: var(--text);
}

.nav-home-link {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(255, 255, 255, 0.92);
  color: var(--muted);
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-home-link:hover {
  background: #fff;
  color: var(--text);
  transform: translateY(-1px);
}

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

.btn-ghost,
.btn-dark,
.btn-light,
.topic-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  transition: 0.25s ease;
}

.btn-ghost {
  height: 40px;
  padding: 0 16px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.btn-ghost:hover {
  background: #f8fafc;
  color: var(--text);
}

.header-actions .btn-ghost.lang-entry {
  gap: 8px;
  padding: 0 14px 0 12px;
  color: var(--text);
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.035);
}

.header-actions .btn-ghost.lang-entry::before {
  content: "";
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  background: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M12 21a9 9 0 1 0 0-18 9 9 0 0 0 0 18Z' stroke='%2364758b' stroke-width='1.8'/%3E%3Cpath d='M3.8 9h16.4M3.8 15h16.4M12 3.4c2.1 2.25 3.2 5.28 3.2 8.6S14.1 18.35 12 20.6M12 3.4C9.9 5.65 8.8 8.68 8.8 12S9.9 18.35 12 20.6' stroke='%2364758b' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
}

.header-actions .btn-ghost.lang-entry:hover {
  background: #ffffff;
  border-color: rgba(100, 116, 139, 0.34);
}

.btn-dark,
.btn-light {
  height: 44px;
  padding: 0 18px;
  font-size: 14px;
  font-weight: 600;
}

.btn-dark {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.16);
}

.btn-dark:hover {
  background: var(--primary-2);
  transform: translateY(-1px);
}

.btn-light {
  background: rgba(255, 255, 255, 0.94);
  color: #475569;
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.btn-light:hover {
  background: #fff;
  color: var(--text);
}

.menu-btn {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  background: white;
  color: var(--text);
}

.mobile-nav {
  display: none;
  border-top: 1px solid var(--line);
  padding: 0 22px 18px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.mobile-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mobile-link {
  padding: 12px 14px;
  border-radius: 16px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.mobile-link:hover,
.mobile-link.current {
  background: #f8fafc;
  color: var(--text);
}

.mobile-home-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.search-hero {
  padding: 8px 0 20px;
}

.search-shell {
  position: relative;
  overflow: hidden;
  padding: 48px;
  border-radius: 36px;
  background:
    radial-gradient(circle at top right, rgba(226, 232, 240, 0.96), transparent 32%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(248, 250, 252, 0.9));
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: var(--strong-shadow);
}

.search-shell::after {
  content: "";
  position: absolute;
  inset: auto -60px -90px auto;
  width: 240px;
  height: 240px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(15, 23, 42, 0.08), transparent 68%);
  pointer-events: none;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.badge.subtle {
  color: #334155;
  background: rgba(226, 232, 240, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.22);
}

.search-shell h1 {
  max-width: 760px;
  margin: 18px 0 0;
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.hero-copy {
  max-width: 720px;
  margin: 18px 0 0;
  font-size: 16px;
  line-height: 1.8;
  color: var(--muted);
}

.search-form {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 28px;
}

.search-field {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 0 18px;
  border-radius: 20px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--soft-shadow);
  color: var(--muted);
}

.search-field:focus-within {
  border-color: rgba(15, 23, 42, 0.18);
  box-shadow: 0 0 0 4px rgba(15, 23, 42, 0.05);
}

.search-field input {
  width: 100%;
  border: 0;
  outline: none;
  padding: 0;
  background: transparent;
  color: var(--text);
  font-size: 15px;
}

.search-field input::placeholder {
  color: var(--muted-2);
}

.topic-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.topic-chip {
  min-height: 38px;
  padding: 0 16px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  background: rgba(255, 255, 255, 0.7);
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.topic-chip:hover {
  color: var(--text);
  background: #fff;
}

.section {
  padding: 48px 0 84px;
}

.section-head {
  display: grid;
  gap: 16px;
  margin-bottom: 28px;
}

.section-head.split {
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  align-items: end;
}

.section-title {
  margin: 18px 0 0;
  font-size: clamp(36px, 5vw, 60px);
  line-height: 1.08;
  letter-spacing: -0.045em;
  font-weight: 700;
}

.section-desc {
  max-width: 720px;
  margin-top: 22px;
  color: #475569;
  line-height: 1.9;
  font-size: 17px;
}

.results-meta {
  min-height: 28px;
  margin-bottom: 18px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
}

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

.result-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  border-radius: 28px;
  overflow: hidden;
  background: var(--bg-panel-strong);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: var(--soft-shadow);
}

.result-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #e2e8f0;
}

.result-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.result-body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  padding: 22px 22px 24px;
}

.result-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #334155;
  background: rgba(226, 232, 240, 0.7);
}

.pill.outline {
  background: transparent;
  border: 1px solid rgba(148, 163, 184, 0.28);
  color: var(--muted);
}

.result-card h3 {
  margin: 0;
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.result-card p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
}

.post-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding-top: 20px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}

.post-link svg {
  flex: 0 0 auto;
}

.empty-state {
  padding: 32px;
  border-radius: 28px;
  border: 1px dashed rgba(148, 163, 184, 0.42);
  background: rgba(255, 255, 255, 0.68);
}

.empty-state h3 {
  margin: 0;
  font-size: 24px;
  letter-spacing: -0.03em;
}

.empty-state p {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.8;
}

.empty-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.footer-section {
  background: linear-gradient(180deg, #f8fbff 0%, #eef7ff 36%, #0f172a 100%);
  border-top: 1px solid var(--line);
}

.footer-wrap {
  padding: 0 0 40px;
}

.footer-card {
  overflow: hidden;
  border-radius: 36px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.92) 0%, rgba(15, 23, 42, 0.98) 100%);
  color: #fff;
  box-shadow: 0 24px 80px rgba(15, 23, 42, 0.18);
  padding: 34px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  color: inherit;
  text-decoration: none;
}
.footer-copy {
  max-width: 720px;
  margin-top: 16px;
  color: #94a3b8;
  font-size: 14px;
  line-height: 1.9;
}

.footer-nav,
.footer-links {
  display: flex;
  flex-wrap: wrap;
}

.footer-nav {
  justify-content: flex-end;
  gap: 8px;
}

.footer-nav a {
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: #cbd5e1;
  padding: 10px 16px;
  font-size: 14px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.footer-nav a:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.footer-bottom {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: #94a3b8;
  font-size: 14px;
  flex-wrap: wrap;
}

.footer-meta-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-record {
  color: #94a3b8;
  font-size: 14px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 20px;
}

.footer-links a {
  color: #94a3b8;
}

.footer-links a:hover,
.footer-record a:hover {
  color: #fff;
}

@media (max-width: 1024px) {
  .nav-desktop,
  .header-actions {
    display: none;
  }

  .menu-btn {
    display: inline-flex;
  }

  .mobile-nav.open {
    display: block;
  }

  .footer-top,
  .section-head.split {
    grid-template-columns: 1fr;
  }

  .section-head.split {
    display: grid;
  }

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

@media (max-width: 1080px) {
  .search-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  main {
    padding-top: 112px;
  }

  .container,
  .header-shell {
    width: min(var(--max), calc(100% - 20px));
  }

  .header-row {
    padding: 14px 16px;
  }

  .brand-title,
  .footer-brand-title {
    white-space: normal;
  }

  .brand-subtitle {
    display: none;
  }
  .search-shell,
  .footer-card {
    padding: 24px;
    border-radius: 26px;
  }

  .search-form {
    flex-direction: column;
    align-items: stretch;
  }

  .topic-row {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .topic-chip {
    white-space: nowrap;
    flex: 0 0 auto;
  }

  .search-field,
  .btn-dark,
  .btn-light {
    width: 100%;
  }

  .section {
    padding: 34px 0 64px;
  }

  .section-title {
    font-size: 34px;
    line-height: 1.12;
  }

  .section-desc {
    font-size: 15px;
    line-height: 1.78;
  }

  .result-card {
    border-radius: 22px;
  }

  .result-body {
    padding: 18px 18px 20px;
  }

  .result-card h3,
  .empty-state h3 {
    font-size: 20px;
  }

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

  .footer-copy {
    font-size: 13px;
    line-height: 1.85;
  }
}
