:root {
  --sky-50: #f4fbff;
  --sky-100: #e6f6ff;
  --sky-200: #c9ecff;
  --sky-300: #8fd2ff;
  --sky-500: #2f94d8;
  --sky-700: #176aa4;
  --cloud: rgba(255, 255, 255, 0.82);
  --paper: #ffffff;
  --ink: #143047;
  --muted: #60788c;
  --line: rgba(97, 159, 203, 0.2);
  --line-strong: rgba(47, 148, 216, 0.36);
  --green: #2c9b79;
  --green-soft: #e2f7ef;
  --sun: #f2b84b;
  --sun-soft: #fff2c9;
  --shadow: 0 18px 48px rgba(38, 116, 171, 0.12);
  --shadow-hover: 0 24px 62px rgba(38, 116, 171, 0.2);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(143, 210, 255, 0.45), rgba(244, 251, 255, 0.96) 420px),
    var(--sky-50);
  font-family:
    "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", system-ui, sans-serif;
  letter-spacing: 0;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 15% 16%, rgba(255, 255, 255, 0.86) 0 58px, transparent 59px),
    radial-gradient(circle at 22% 17%, rgba(255, 255, 255, 0.62) 0 42px, transparent 43px),
    radial-gradient(circle at 85% 12%, rgba(255, 244, 190, 0.9) 0 88px, transparent 90px),
    radial-gradient(circle at 78% 22%, rgba(255, 255, 255, 0.72) 0 70px, transparent 72px),
    radial-gradient(circle at 91% 24%, rgba(255, 255, 255, 0.56) 0 52px, transparent 54px);
  pointer-events: none;
}

a {
  color: inherit;
}

.app-shell {
  display: grid;
  grid-template-columns: 292px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 24px 18px;
  overflow-y: auto;
  background: linear-gradient(180deg, rgba(235, 248, 255, 0.96), rgba(255, 255, 255, 0.74));
  border-right: 1px solid var(--line);
  box-shadow: 10px 0 40px rgba(43, 133, 196, 0.08);
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  min-height: 66px;
  margin-bottom: 22px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow);
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(180deg, #ffe391, #f2b84b);
  color: #28506b;
  font-size: 20px;
  font-weight: 900;
}

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

.brand strong {
  font-size: 18px;
}

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

.section-nav {
  display: grid;
  gap: 8px;
}

.nav-link {
  display: flex;
  gap: 10px;
  align-items: center;
  min-height: 44px;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--muted);
  text-decoration: none;
}

.nav-link:hover,
.nav-link.active {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.78);
  color: var(--sky-700);
}

.nav-link span:first-child {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 7px;
  background: var(--sky-100);
  color: var(--sky-700);
  font-size: 13px;
  font-weight: 900;
}

.sidebar-note {
  margin-top: 24px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.68);
}

.sidebar-note p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.main {
  min-width: 0;
  width: 100%;
  max-width: 1500px;
  padding: 28px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  min-height: 58px;
  margin-bottom: 16px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.topbar span,
.eyebrow,
.panel-label,
.resource-count,
.tag {
  font-size: 13px;
}

.topbar span {
  display: block;
  color: var(--muted);
}

.topbar strong {
  display: block;
  margin-top: 2px;
}

.topbar a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 8px;
  background: var(--sky-500);
  color: #ffffff;
  font-weight: 800;
  text-decoration: none;
}

.topbar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
}

.theme-toggle {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--sky-700);
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 900;
}

.theme-toggle-knob {
  display: block;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--sky-500);
  box-shadow: inset -5px -3px 0 rgba(15, 36, 54, 0.22);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 38%);
  gap: 26px;
  align-items: stretch;
  min-height: 390px;
  padding: 36px;
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.88), rgba(232, 247, 255, 0.78)),
    var(--cloud);
  box-shadow: var(--shadow-hover);
  backdrop-filter: blur(16px);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.eyebrow {
  display: inline-flex;
  width: fit-content;
  min-height: 32px;
  align-items: center;
  margin: 0 0 16px;
  padding: 0 11px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--sky-700);
  font-weight: 900;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 16px;
  color: #123a5b;
  font-size: clamp(48px, 7vw, 92px);
  line-height: 0.96;
}

.hero p:last-of-type {
  max-width: 760px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.85;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.hero-stats span {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  min-height: 42px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--muted);
}

.hero-stats strong {
  color: var(--sky-700);
  font-size: 20px;
}

.hero-art {
  position: relative;
  min-height: 285px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 8px;
  background: var(--sky-100);
  box-shadow: var(--shadow);
}

.hero-art img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 285px;
  object-fit: cover;
}

.hero-stamp {
  position: absolute;
  right: 14px;
  bottom: 14px;
  min-height: 34px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--sky-700);
  font-size: 13px;
  font-weight: 900;
  backdrop-filter: blur(10px);
}

.toolbar {
  position: sticky;
  top: 0;
  z-index: 3;
  display: grid;
  grid-template-columns: minmax(340px, 560px) 1fr;
  gap: 16px;
  align-items: center;
  margin: 18px 0;
  padding: 16px;
  border: 1px solid rgba(47, 148, 216, 0.34);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(230, 246, 255, 0.95), rgba(255, 255, 255, 0.86)),
    rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 46px rgba(38, 116, 171, 0.18);
  backdrop-filter: blur(16px);
}

.search-box {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: center;
  min-height: 62px;
  padding: 0 18px;
  border: 2px solid rgba(47, 148, 216, 0.74);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 251, 255, 0.94)),
    var(--paper);
  box-shadow:
    0 12px 30px rgba(47, 148, 216, 0.2),
    0 0 0 5px rgba(47, 148, 216, 0.1);
}

.search-box:focus-within {
  border-color: #147ec2;
  box-shadow:
    0 16px 36px rgba(47, 148, 216, 0.28),
    0 0 0 6px rgba(47, 148, 216, 0.18);
}

.search-box span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 10px;
  border-radius: 7px;
  background: linear-gradient(180deg, #43adf2, var(--sky-500));
  color: #ffffff;
  font-size: 14px;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(47, 148, 216, 0.24);
}

.search-box input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 18px;
  font-weight: 800;
}

.search-box input::placeholder {
  color: #55748d;
  opacity: 1;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-btn {
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 14px;
}

.filter-btn:hover {
  border-color: var(--line-strong);
  color: var(--sky-700);
}

.filter-btn.active {
  border-color: var(--sky-500);
  background: var(--sky-500);
  color: #ffffff;
}

.pan-search-results {
  display: grid;
  gap: 16px;
  margin: -2px 0 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.pan-search-results[hidden] {
  display: none;
}

.pan-search-header {
  display: flex;
  gap: 16px;
  justify-content: space-between;
  align-items: flex-start;
}

.pan-search-header h2 {
  margin-bottom: 8px;
  color: #123a5b;
  font-size: 22px;
}

.pan-search-header p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.7;
}

.pan-clear-button {
  flex: 0 0 auto;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--sky-700);
  cursor: pointer;
  font: inherit;
  font-weight: 900;
}

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

.pan-result-column {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(244, 251, 255, 0.72);
}

.pan-column-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(230, 246, 255, 0.95), rgba(255, 255, 255, 0.72));
}

.pan-column-heading h3 {
  margin-bottom: 0;
  color: #123a5b;
  font-size: 18px;
}

.pan-column-heading span {
  display: inline-flex;
  min-width: 32px;
  min-height: 28px;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  background: var(--sky-500);
  color: #ffffff;
  font-weight: 900;
}

.pan-result-list {
  display: grid;
  gap: 10px;
  max-height: 560px;
  overflow: auto;
  padding: 12px;
}

.pan-result-item,
.pan-empty {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
}

.pan-result-item {
  display: grid;
  gap: 10px;
  padding: 14px;
}

.pan-result-topline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
}

.pan-badge {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  padding: 0 8px;
  border-radius: 7px;
  background: var(--green-soft);
  color: var(--green);
  font-weight: 900;
}

.pan-badge.baidu {
  background: var(--sky-100);
  color: var(--sky-700);
}

.pan-result-item h4 {
  margin: 0;
  color: #123a5b;
  font-size: 17px;
  line-height: 1.45;
}

.pan-result-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.pan-result-item mark {
  border-radius: 4px;
  background: var(--sun-soft);
  color: #7b530f;
}

.pan-code {
  color: #7b530f !important;
  font-weight: 900;
}

.pan-result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pan-result-actions a,
.pan-result-actions button {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 11px;
  border-radius: 8px;
  font: inherit;
  font-size: 14px;
  font-weight: 900;
  text-decoration: none;
}

.pan-result-actions a {
  border: 1px solid var(--sky-500);
  background: var(--sky-500);
  color: #ffffff;
}

.pan-result-actions button {
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--sky-700);
  cursor: pointer;
}

.pan-empty {
  padding: 18px;
  color: var(--muted);
  text-align: center;
}

.quick-panel,
.notice {
  display: grid;
  gap: 16px;
  margin-bottom: 18px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.quick-panel {
  grid-template-columns: minmax(260px, 1fr) minmax(300px, 1.4fr);
  align-items: center;
}

.panel-label {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  margin-bottom: 10px;
  padding: 0 9px;
  border-radius: 7px;
  background: var(--sun-soft);
  color: #8a5d10;
  font-weight: 900;
}

.quick-panel h2,
.notice h2 {
  margin-bottom: 0;
  color: #123a5b;
  font-size: 22px;
}

.quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.quick-link,
.open-link,
.section-link {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  min-height: 38px;
  padding: 0 12px;
  border-radius: 8px;
  background: var(--sky-500);
  color: #ffffff;
  font-size: 14px;
  font-weight: 900;
  text-decoration: none;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease;
}

.quick-link:hover,
.open-link:hover,
.section-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(47, 148, 216, 0.2);
}

.resource-sections {
  display: grid;
  gap: 18px;
}

.section-block {
  scroll-margin-top: 110px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.section-header {
  display: flex;
  gap: 18px;
  justify-content: space-between;
  align-items: start;
  padding: 22px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(230, 246, 255, 0.9), rgba(255, 255, 255, 0.62));
}

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

.section-icon {
  display: grid;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 8px;
  background: var(--sky-100);
  color: var(--sky-700);
  font-weight: 900;
}

.section-header h2 {
  margin-bottom: 6px;
  color: #123a5b;
  font-size: 24px;
}

.section-header p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.7;
}

.section-actions {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
  align-items: center;
}

.resource-count {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.76);
  color: var(--muted);
  font-weight: 800;
}

.section-link.quark,
.open-link.quark {
  background: var(--green);
}

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

.resource-card {
  position: relative;
  display: grid;
  gap: 14px;
  align-content: space-between;
  min-height: 178px;
  padding: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 28px rgba(47, 148, 216, 0.08);
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.resource-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--sky-300), #ffffff, var(--sky-500));
}

.resource-card:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}

.resource-card h3 {
  margin-bottom: 8px;
  color: #123a5b;
  font-size: 18px;
  line-height: 1.35;
}

.resource-card p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.65;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
}

.tag {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--sky-100);
  color: var(--sky-700);
  font-weight: 800;
}

.empty-state {
  display: none;
  padding: 40px 18px;
  border: 1px dashed var(--line-strong);
  border-radius: 8px;
  color: var(--muted);
  text-align: center;
}

.notice {
  margin-top: 18px;
  background: rgba(255, 248, 225, 0.82);
}

.notice p {
  margin-bottom: 0;
  color: #705b2a;
  line-height: 1.8;
}

.hidden {
  display: none;
}

.search-welcome-modal {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(14, 37, 56, 0.44);
  backdrop-filter: blur(16px);
}

.search-welcome-modal.is-hidden {
  display: none;
}

.search-welcome-card {
  position: relative;
  width: min(620px, 100%);
  padding: 28px;
  border: 1px solid rgba(143, 210, 255, 0.78);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(230, 246, 255, 0.96)),
    #ffffff;
  box-shadow: 0 30px 90px rgba(14, 69, 109, 0.32);
}

.search-welcome-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 22px;
  font-weight: 900;
}

.search-welcome-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: rgba(230, 246, 255, 0.92);
  color: var(--sky-700);
  font-size: 13px;
  font-weight: 900;
}

.search-welcome-card h2 {
  margin: 16px 46px 10px 0;
  color: #123a5b;
  font-size: 32px;
  line-height: 1.18;
}

.search-welcome-card p {
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 18px;
  font-weight: 700;
}

.search-welcome-input {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: center;
  min-height: 64px;
  padding: 0 16px;
  border: 2px solid rgba(47, 148, 216, 0.78);
  border-radius: 8px;
  background: #ffffff;
  box-shadow:
    0 14px 34px rgba(47, 148, 216, 0.2),
    0 0 0 5px rgba(47, 148, 216, 0.1);
}

.search-welcome-input:focus-within {
  border-color: #147ec2;
  box-shadow:
    0 18px 42px rgba(47, 148, 216, 0.28),
    0 0 0 6px rgba(47, 148, 216, 0.16);
}

.search-welcome-input span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 10px;
  border-radius: 7px;
  background: linear-gradient(180deg, #43adf2, var(--sky-500));
  color: #ffffff;
  font-size: 14px;
  font-weight: 900;
}

.search-welcome-input input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 18px;
  font-weight: 800;
}

.search-welcome-input input::placeholder {
  color: #55748d;
  opacity: 1;
}

.search-welcome-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 20px;
}

.search-welcome-primary,
.search-welcome-secondary {
  min-height: 42px;
  padding: 0 16px;
  border-radius: 8px;
  cursor: pointer;
  font: inherit;
  font-weight: 900;
}

.search-welcome-primary {
  border: 1px solid var(--sky-500);
  background: var(--sky-500);
  color: #ffffff;
  box-shadow: 0 12px 26px rgba(47, 148, 216, 0.24);
}

.search-welcome-secondary {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.88);
  color: var(--sky-700);
}

@media (max-width: 1000px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
  }

  .section-nav {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }

  .hero,
  .toolbar,
  .quick-panel,
  .pan-result-grid {
    grid-template-columns: 1fr;
  }

  .quick-links {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .main {
    padding: 14px;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero {
    padding: 20px;
  }

  h1 {
    font-size: 46px;
  }

  .hero-art,
  .hero-art img {
    min-height: 200px;
  }

  .toolbar {
    position: static;
    padding: 12px;
  }

  .search-box {
    min-height: 68px;
    padding: 0 12px;
  }

  .search-box input {
    font-size: 17px;
  }

  .section-header {
    display: grid;
  }

  .pan-search-header {
    display: grid;
  }

  .section-actions {
    justify-content: flex-start;
  }

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

  .search-welcome-card {
    padding: 22px;
  }

  .search-welcome-card h2 {
    font-size: 26px;
  }

  .search-welcome-input {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 12px;
  }

  .search-welcome-input span {
    width: fit-content;
  }

  .search-welcome-actions {
    justify-content: stretch;
  }

  .search-welcome-primary,
  .search-welcome-secondary {
    flex: 1 1 150px;
  }
}

/* iOS glass skin */
:root {
  --ios-ink: #f4fbff;
  --ios-muted: rgba(221, 237, 244, 0.74);
  --ios-soft: rgba(232, 249, 255, 0.1);
  --ios-glass: rgba(29, 47, 48, 0.72);
  --ios-glass-strong: rgba(37, 58, 60, 0.86);
  --ios-line: rgba(222, 247, 255, 0.24);
  --ios-line-strong: rgba(151, 224, 255, 0.48);
  --ios-cyan: #82d8ff;
  --ios-blue: #5d8dff;
  --ios-mint: #c8ffdc;
  --ios-shadow: 0 28px 80px rgba(0, 0, 0, 0.36);
}

body {
  color: var(--ios-ink);
  background:
    linear-gradient(90deg, rgba(5, 10, 10, 0.9), rgba(10, 17, 19, 0.7)),
    linear-gradient(180deg, rgba(4, 9, 10, 0.74), rgba(4, 10, 11, 0.94)),
    url("assets/my-cover.jpg") center / cover fixed;
}

body::before {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 140px),
    radial-gradient(circle at 72% 13%, rgba(200, 255, 220, 0.18), transparent 190px),
    radial-gradient(circle at 18% 28%, rgba(130, 216, 255, 0.12), transparent 220px);
}

.main {
  max-width: 1520px;
}

.sidebar,
.topbar,
.hero,
.toolbar,
.quick-panel,
.notice,
.section-block,
.pan-search-results,
.search-welcome-card {
  border: 1px solid var(--ios-line);
  background:
    linear-gradient(135deg, rgba(75, 98, 100, 0.76), rgba(26, 45, 45, 0.7)),
    var(--ios-glass);
  box-shadow: var(--ios-shadow);
  backdrop-filter: blur(24px) saturate(130%);
}

.sidebar {
  background:
    linear-gradient(180deg, rgba(46, 71, 74, 0.84), rgba(14, 25, 26, 0.78)),
    var(--ios-glass);
}

.brand,
.nav-link:hover,
.nav-link.active,
.sidebar-note,
.eyebrow,
.hero-stats span,
.filter-btn,
.pan-result-column,
.pan-result-item,
.pan-empty,
.resource-card,
.search-welcome-close,
.search-welcome-secondary {
  border-color: var(--ios-line);
  background: rgba(255, 255, 255, 0.08);
  color: var(--ios-muted);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.brand-mark {
  background: linear-gradient(180deg, rgba(130, 216, 255, 0.95), rgba(93, 141, 255, 0.8));
  color: #071314;
}

.brand strong,
.topbar strong,
h1,
.hero-stats strong,
.quick-panel h2,
.notice h2,
.section-header h2,
.resource-card h3,
.pan-search-header h2,
.pan-column-heading h3,
.pan-result-item h4,
.search-welcome-card h2 {
  color: var(--ios-ink);
  text-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
}

.brand small,
.topbar span,
.hero p:last-of-type,
.section-header p,
.resource-card p,
.pan-search-header p,
.pan-result-item p,
.pan-empty,
.notice p,
.sidebar-note p,
.nav-link {
  color: var(--ios-muted);
}

.nav-link span:first-child,
.section-icon {
  background: rgba(130, 216, 255, 0.12);
  color: var(--ios-cyan);
}

.topbar {
  position: sticky;
  top: 22px;
  z-index: 6;
  margin-bottom: 22px;
}

.topbar a,
.quick-link,
.open-link,
.section-link,
.filter-btn.active,
.pan-result-actions a,
.search-welcome-primary {
  border: 1px solid rgba(130, 216, 255, 0.68);
  background: linear-gradient(135deg, rgba(130, 216, 255, 0.9), rgba(93, 141, 255, 0.82));
  color: #071314;
  box-shadow:
    0 16px 34px rgba(93, 141, 255, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.theme-toggle {
  border-color: var(--ios-line);
  background: rgba(255, 255, 255, 0.08);
  color: var(--ios-ink);
}

.theme-toggle-knob {
  background: var(--ios-ink);
  box-shadow: inset -6px -4px 0 #24343d;
}

.hero {
  min-height: 430px;
}

.eyebrow,
.panel-label,
.tag,
.pan-badge,
.search-welcome-kicker {
  background: rgba(200, 255, 220, 0.16);
  color: var(--ios-mint);
  border-color: rgba(200, 255, 220, 0.34);
}

h1 {
  color: #ffffff;
  font-size: 82px;
  letter-spacing: 0;
}

.hero-art {
  border-color: var(--ios-line);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
}

.hero-art img {
  filter: saturate(1.05) contrast(1.04);
}

.hero-stamp {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(15, 26, 27, 0.72);
  color: var(--ios-cyan);
}

.toolbar {
  grid-template-columns: minmax(420px, 680px) 1fr;
  top: 96px;
  z-index: 5;
  background:
    linear-gradient(135deg, rgba(70, 95, 98, 0.82), rgba(16, 30, 31, 0.78)),
    var(--ios-glass);
}

.search-box,
.search-welcome-input {
  border-color: var(--ios-line-strong);
  background: rgba(4, 11, 12, 0.44);
  box-shadow:
    0 18px 52px rgba(0, 0, 0, 0.34),
    0 0 0 5px rgba(130, 216, 255, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.search-box:focus-within,
.search-welcome-input:focus-within {
  border-color: var(--ios-cyan);
  box-shadow:
    0 22px 58px rgba(0, 0, 0, 0.4),
    0 0 0 6px rgba(130, 216, 255, 0.16);
}

.search-box span,
.search-welcome-input span,
.pan-column-heading span {
  background: linear-gradient(135deg, rgba(130, 216, 255, 0.94), rgba(93, 141, 255, 0.84));
  color: #071314;
}

.search-box input,
.search-welcome-input input {
  color: #ffffff;
}

.search-box input::placeholder,
.search-welcome-input input::placeholder {
  color: rgba(229, 243, 249, 0.72);
}

.filter-btn {
  min-height: 40px;
}

.filter-btn:hover {
  border-color: var(--ios-line-strong);
  color: #ffffff;
}

.quick-panel,
.section-block,
.pan-search-results {
  margin-bottom: 22px;
}

.section-header,
.pan-column-heading {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--ios-line);
}

.resource-card::before {
  background: linear-gradient(90deg, var(--ios-cyan), var(--ios-blue));
}

.resource-card:hover {
  transform: translateY(-3px);
  border-color: var(--ios-line-strong);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.34);
}

.pan-result-actions button {
  border-color: var(--ios-line);
  background: rgba(255, 255, 255, 0.08);
  color: var(--ios-cyan);
}

.pan-result-item mark {
  background: rgba(200, 255, 220, 0.22);
  color: var(--ios-mint);
}

.pan-code {
  color: var(--ios-mint) !important;
}

.search-welcome-modal {
  background:
    linear-gradient(180deg, rgba(2, 8, 9, 0.38), rgba(2, 8, 9, 0.72)),
    rgba(0, 0, 0, 0.42);
}

.search-welcome-card {
  background:
    linear-gradient(135deg, rgba(78, 101, 103, 0.88), rgba(22, 37, 38, 0.92)),
    var(--ios-glass-strong);
}

.search-welcome-card p {
  color: var(--ios-muted);
}

@media (max-width: 1000px) {
  .topbar {
    position: static;
  }

  .toolbar {
    top: 0;
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  body {
    background:
      linear-gradient(180deg, rgba(5, 10, 10, 0.92), rgba(5, 10, 10, 0.9)),
      url("assets/my-cover.jpg") center / cover fixed;
  }

  h1 {
    font-size: 50px;
  }

  .hero,
  .toolbar,
  .quick-panel,
  .section-block,
  .pan-search-results {
    box-shadow: 0 18px 46px rgba(0, 0, 0, 0.34);
  }
}

body.theme-light {
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(143, 210, 255, 0.45), rgba(244, 251, 255, 0.96) 420px),
    var(--sky-50);
}

body.theme-light::before {
  background:
    radial-gradient(circle at 15% 16%, rgba(255, 255, 255, 0.86) 0 58px, transparent 59px),
    radial-gradient(circle at 22% 17%, rgba(255, 255, 255, 0.62) 0 42px, transparent 43px),
    radial-gradient(circle at 85% 12%, rgba(255, 244, 190, 0.9) 0 88px, transparent 90px),
    radial-gradient(circle at 78% 22%, rgba(255, 255, 255, 0.72) 0 70px, transparent 72px),
    radial-gradient(circle at 91% 24%, rgba(255, 255, 255, 0.56) 0 52px, transparent 54px);
}

body.theme-light .sidebar,
body.theme-light .topbar,
body.theme-light .hero,
body.theme-light .toolbar,
body.theme-light .quick-panel,
body.theme-light .notice,
body.theme-light .section-block,
body.theme-light .pan-search-results,
body.theme-light .search-welcome-card {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.84);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

body.theme-light .sidebar {
  background: linear-gradient(180deg, rgba(235, 248, 255, 0.96), rgba(255, 255, 255, 0.74));
}

body.theme-light .brand,
body.theme-light .nav-link:hover,
body.theme-light .nav-link.active,
body.theme-light .sidebar-note,
body.theme-light .eyebrow,
body.theme-light .hero-stats span,
body.theme-light .filter-btn,
body.theme-light .pan-result-column,
body.theme-light .pan-result-item,
body.theme-light .pan-empty,
body.theme-light .resource-card,
body.theme-light .search-welcome-close,
body.theme-light .search-welcome-secondary {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.86);
  color: var(--muted);
  box-shadow: none;
}

body.theme-light .brand-mark {
  background: linear-gradient(180deg, #ffe391, #f2b84b);
  color: #28506b;
}

body.theme-light .brand strong,
body.theme-light .topbar strong,
body.theme-light .quick-panel h2,
body.theme-light .notice h2,
body.theme-light .section-header h2,
body.theme-light .resource-card h3,
body.theme-light .pan-search-header h2,
body.theme-light .pan-column-heading h3,
body.theme-light .pan-result-item h4,
body.theme-light .search-welcome-card h2 {
  color: #123a5b;
  text-shadow: none;
}

body.theme-light h1 {
  color: #123a5b;
  text-shadow: none;
}

body.theme-light .brand small,
body.theme-light .topbar span,
body.theme-light .hero p:last-of-type,
body.theme-light .section-header p,
body.theme-light .resource-card p,
body.theme-light .pan-search-header p,
body.theme-light .pan-result-item p,
body.theme-light .pan-empty,
body.theme-light .notice p,
body.theme-light .sidebar-note p,
body.theme-light .nav-link {
  color: var(--muted);
}

body.theme-light .nav-link span:first-child,
body.theme-light .section-icon {
  background: var(--sky-100);
  color: var(--sky-700);
}

body.theme-light .topbar a,
body.theme-light .quick-link,
body.theme-light .open-link,
body.theme-light .section-link,
body.theme-light .filter-btn.active,
body.theme-light .pan-result-actions a,
body.theme-light .search-welcome-primary {
  border-color: var(--sky-500);
  background: var(--sky-500);
  color: #ffffff;
  box-shadow: 0 14px 28px rgba(47, 148, 216, 0.2);
}

body.theme-light .eyebrow,
body.theme-light .panel-label,
body.theme-light .tag,
body.theme-light .pan-badge,
body.theme-light .search-welcome-kicker {
  background: var(--green-soft);
  color: var(--green);
  border-color: var(--line);
}

body.theme-light .search-box,
body.theme-light .search-welcome-input {
  border-color: rgba(47, 148, 216, 0.74);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 251, 255, 0.94)),
    var(--paper);
  box-shadow:
    0 12px 30px rgba(47, 148, 216, 0.2),
    0 0 0 5px rgba(47, 148, 216, 0.1);
}

body.theme-light .search-box input,
body.theme-light .search-welcome-input input {
  color: var(--ink);
}

body.theme-light .search-box input::placeholder,
body.theme-light .search-welcome-input input::placeholder {
  color: #55748d;
}

body.theme-light .section-header,
body.theme-light .pan-column-heading {
  background: linear-gradient(90deg, rgba(230, 246, 255, 0.9), rgba(255, 255, 255, 0.62));
  border-color: var(--line);
}

body.theme-light .hero-art,
body.theme-light .pan-result-actions button {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.9);
  color: var(--sky-700);
}

body.theme-light .hero-stamp {
  background: rgba(255, 255, 255, 0.72);
  color: var(--sky-700);
}

body.theme-light .pan-result-item mark {
  background: var(--sun-soft);
  color: #7b530f;
}

body.theme-light .pan-code {
  color: #7b530f !important;
}

body.theme-light .theme-toggle {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.86);
  color: var(--sky-700);
}

body.theme-light .theme-toggle-knob {
  background: linear-gradient(180deg, #ffe391, #f2b84b);
  box-shadow: 0 0 0 3px rgba(242, 184, 75, 0.18);
}
