:root {
  --bg: #f4efe4;
  --bg-strong: #efe5d4;
  --surface: rgba(255, 252, 246, 0.92);
  --surface-strong: #fffdf8;
  --text: #1d2630;
  --muted: #62707c;
  --line: rgba(36, 54, 71, 0.12);
  --primary: #0f766e;
  --primary-strong: #0c5d57;
  --accent: #c76b2a;
  --danger: #a93d2e;
  --shadow: 0 24px 60px rgba(33, 41, 52, 0.12);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --font-sans: "Noto Sans SC", "Microsoft YaHei UI", "PingFang SC", sans-serif;
  --font-display: "YouYuan", "STZhongsong", "Noto Serif SC", serif;
}

* {
  box-sizing: border-box;
}

html, body {
  min-height: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(15, 118, 110, 0.18), transparent 28%),
    radial-gradient(circle at top right, rgba(199, 107, 42, 0.16), transparent 24%),
    linear-gradient(180deg, #f8f4eb 0%, #f2eadc 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

button, input {
  font: inherit;
}

.extendShell {
  position: relative;
  overflow-x: hidden;
}

.shellBackdrop {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(15, 118, 110, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 118, 110, 0.05) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.6), transparent 90%);
}

.landingPage,
.placeholderPage,
.dropRatePage {
  width: min(1360px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 28px 0 48px;
}

.heroPanel,
.moduleCard,
.placeholderCard,
.shellCard,
.detailSection,
.resultSection,
.sidebarSection,
.routePanel,
.entityHero {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.heroPanel {
  padding: 32px;
  margin-bottom: 22px;
}

.heroPanelWide {
  display: grid;
  gap: 18px;
}

.heroEyebrow,
.sectionEyebrow,
.moduleTag,
.badge,
.routeBadge,
.typeBadge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.heroEyebrow,
.sectionEyebrow,
.moduleTag,
.badgeInfo,
.routeBadgeFound,
.typeBadge {
  background: rgba(15, 118, 110, 0.12);
  color: var(--primary-strong);
}

.moduleTagMuted,
.badgeMuted,
.routeBadgeMissing {
  background: rgba(99, 116, 131, 0.12);
  color: var(--muted);
}

.badgeWarn {
  background: rgba(169, 61, 46, 0.12);
  color: var(--danger);
}

h1, h2, h3, h4 {
  margin: 0;
  line-height: 1.15;
}

h1, h2 {
  font-family: var(--font-display);
}

.heroLead,
.sectionLead,
.placeholderHint,
.emptyHint,
.entityMetaText,
.resultSubtitle,
.metaHint,
.panelHint {
  color: var(--muted);
  line-height: 1.7;
}

.heroMetaGrid,
.moduleGrid,
.placeholderGrid,
.statsGrid,
.detailGrid,
.relationGrid,
.summaryGrid {
  display: grid;
  gap: 16px;
}

.heroMetaGrid,
.moduleGrid,
.placeholderGrid,
.statsGrid,
.summaryGrid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.metaBlock,
.statTile,
.summaryTile {
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(36, 54, 71, 0.08);
  border-radius: var(--radius-lg);
  padding: 18px;
  display: grid;
  gap: 6px;
}

.metaLabel,
.statLabel,
.summaryLabel {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.moduleCard {
  padding: 24px;
  display: grid;
  gap: 16px;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.moduleCard:hover {
  transform: translateY(-4px);
  border-color: rgba(15, 118, 110, 0.22);
  box-shadow: 0 30px 70px rgba(20, 31, 42, 0.16);
}

.moduleCardPrimary {
  background: linear-gradient(135deg, rgba(15, 118, 110, 0.12), rgba(255, 255, 255, 0.9));
}

.modulePoints {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.7;
}

.moduleAction,
.textLink {
  color: var(--primary-strong);
  font-weight: 700;
}

.topNav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.topNav a {
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
  transition: 160ms ease;
}

.topNav a.active,
.topNav a:hover {
  border-color: rgba(15, 118, 110, 0.26);
  color: var(--primary-strong);
  background: rgba(15, 118, 110, 0.12);
}

.placeholderCard {
  padding: 28px;
}

.placeholderActions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.ghostButton,
.solidButton,
.filterChip,
.entityChip,
.resultCard,
.miniButton {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.85);
  color: var(--text);
  border-radius: 14px;
  transition: 160ms ease;
}

.solidButton,
.ghostButton,
.miniButton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  cursor: pointer;
}

.solidButton {
  background: var(--primary);
  color: #fff;
  border-color: transparent;
}

.solidButton:hover,
.miniButton:hover,
.ghostButton:hover,
.filterChip:hover,
.entityChip:hover,
.resultCard:hover {
  transform: translateY(-1px);
  border-color: rgba(15, 118, 110, 0.22);
}

.dropRateLayout {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.sidebarColumn,
.contentColumn {
  display: grid;
  gap: 18px;
}

.sidebarSection,
.shellCard,
.detailSection,
.entityHero,
.routePanel,
.resultSection {
  padding: 22px;
}

.searchBox {
  width: 100%;
  border: 1px solid rgba(36, 54, 71, 0.14);
  background: rgba(255, 255, 255, 0.88);
  border-radius: 18px;
  padding: 15px 16px;
  color: var(--text);
}

.searchBox:focus {
  outline: 2px solid rgba(15, 118, 110, 0.24);
  border-color: rgba(15, 118, 110, 0.24);
}

.filterRow,
.chipRow,
.inlineMeta,
.routeBadgeRow,
.entityHeroMeta,
.cardActions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filterChip,
.entityChip,
.resultCard,
.miniButton {
  cursor: pointer;
}

.filterChip,
.entityChip {
  padding: 10px 14px;
}

.filterChip.active,
.entityChip.active,
.resultCard.active {
  background: rgba(15, 118, 110, 0.14);
  border-color: rgba(15, 118, 110, 0.22);
  color: var(--primary-strong);
}

.resultGroup {
  display: grid;
  gap: 12px;
}

.resultGroupHead,
.sectionHead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.resultList,
.stackList,
.routeList,
.bulletList {
  display: grid;
  gap: 10px;
}

.resultCard {
  width: 100%;
  text-align: left;
  padding: 14px 16px;
}

.resultTitle,
.entityTitle,
.cardTitle {
  font-weight: 700;
}

.detailGrid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.relationGrid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.detailCard,
.relationCard,
.routeStep,
.emptyPanel {
  border: 1px solid rgba(36, 54, 71, 0.1);
  background: rgba(255, 255, 255, 0.72);
  border-radius: 18px;
  padding: 18px;
}

.detailCard,
.relationCard {
  display: grid;
  gap: 14px;
}

.routeList {
  position: relative;
  padding-left: 0;
}

.routeStep {
  display: grid;
  gap: 8px;
}

.routeStepIndex {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.kvList {
  display: grid;
  gap: 10px;
}

.kvItem {
  display: grid;
  gap: 6px;
}

.kvLabel {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tagList {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag,
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.09);
  color: var(--primary-strong);
  border: 1px solid rgba(15, 118, 110, 0.12);
  font-size: 13px;
}

.pillMuted {
  background: rgba(99, 116, 131, 0.08);
  color: var(--muted);
  border-color: rgba(99, 116, 131, 0.12);
}

.emptyPanel {
  color: var(--muted);
}

.loadingText,
.errorText {
  font-weight: 700;
}

.errorText {
  color: var(--danger);
}