:root {
  --bg: #06101c;
  --surface: rgba(11, 20, 38, 0.84);
  --surface-soft: rgba(14, 27, 50, 0.92);
  --surface-strong: rgba(8, 16, 31, 0.96);
  --text: #f4fbff;
  --muted: #88a2bd;
  --line: rgba(115, 212, 255, 0.14);
  --line-strong: rgba(115, 212, 255, 0.24);
  --accent: #56e0ff;
  --accent-deep: #1ac2f0;
  --accent-soft: rgba(86, 224, 255, 0.16);
  --blue: #8bffb0;
  --blue-soft: rgba(139, 255, 176, 0.14);
  --shadow: 0 24px 64px rgba(0, 0, 0, 0.34);
  --glow: 0 0 0 1px rgba(86, 224, 255, 0.12), 0 20px 60px rgba(6, 15, 26, 0.56);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --content-width: 720px;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
}

body {
  margin: 0;
  font-family: "MiSans", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 14% 12%, rgba(86, 224, 255, 0.18), transparent 28%),
    radial-gradient(circle at 88% 8%, rgba(139, 255, 176, 0.14), transparent 24%),
    radial-gradient(circle at 50% 100%, rgba(20, 103, 255, 0.16), transparent 34%),
    linear-gradient(180deg, #07111f 0%, #091426 34%, #06101c 100%);
  min-height: 100dvh;
  overflow-x: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}

body::before {
  background:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.72), transparent 92%);
}

body::after {
  background:
    radial-gradient(circle at 20% 20%, rgba(86, 224, 255, 0.08), transparent 14%),
    radial-gradient(circle at 80% 24%, rgba(139, 255, 176, 0.08), transparent 12%),
    radial-gradient(circle at 50% 76%, rgba(255, 120, 72, 0.08), transparent 18%);
  filter: blur(28px);
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
  border: 0;
  transform: translateZ(0);
}

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

#app {
  min-height: 100dvh;
}

.boot-screen,
.page-shell {
  width: min(100%, var(--content-width));
  margin: 0 auto;
}

.boot-screen {
  min-height: 100dvh;
  padding: 88px 24px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
}

.boot-mark {
  width: fit-content;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(86, 224, 255, 0.12);
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  border: 1px solid rgba(86, 224, 255, 0.2);
  box-shadow: var(--glow);
}

.boot-title {
  font-size: 34px;
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.boot-subtitle {
  font-size: 15px;
  line-height: 1.7;
  color: var(--muted);
}

.page-shell {
  min-height: 100dvh;
  padding-bottom: 36px;
}

.hero-wrap {
  position: sticky;
  top: 0;
  z-index: 12;
  padding: max(env(safe-area-inset-top), 12px) 18px 12px;
  backdrop-filter: blur(24px);
  background: linear-gradient(180deg, rgba(6, 14, 27, 0.94), rgba(6, 14, 27, 0.62) 74%, transparent);
}

.hero-card {
  position: relative;
  overflow: hidden;
  padding: 16px 20px 14px;
  border-radius: 30px;
  background:
    radial-gradient(circle at 100% 0, rgba(86, 224, 255, 0.34), transparent 32%),
    radial-gradient(circle at 0 100%, rgba(139, 255, 176, 0.16), transparent 34%),
    linear-gradient(145deg, rgba(15, 27, 49, 0.96), rgba(8, 15, 30, 0.96));
  border: 1px solid rgba(116, 221, 255, 0.18);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  will-change: transform, opacity;
}

.hero-card::after {
  content: "";
  position: absolute;
  inset: auto 8px -18px auto;
  width: 168px;
  height: 168px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.62) 0, rgba(255, 255, 255, 0.12) 12%, transparent 28%),
    radial-gradient(circle at 60% 60%, rgba(86, 224, 255, 0.36), transparent 46%),
    linear-gradient(135deg, rgba(86, 224, 255, 0.12), rgba(139, 255, 176, 0.02));
  opacity: 1;
  transform: translate(20px, 24px);
  filter: blur(2px);
  pointer-events: none;
}

.hero-title {
  position: relative;
  z-index: 1;
  margin: 0 0 8px;
  font-size: 27px;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.hero-desc {
  position: relative;
  z-index: 1;
  margin: 0 0 12px;
  max-width: 44ch;
  font-size: 13px;
  line-height: 1.5;
  color: rgba(226, 245, 255, 0.72);
}

.top-nav {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 10px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(115, 212, 255, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  width: fit-content;
}

.top-nav button {
  min-width: 94px;
  padding: 12px 18px;
  border-radius: 999px;
  background: transparent;
  color: rgba(220, 238, 255, 0.68);
  font-size: 14px;
  font-weight: 700;
  transition: background-color 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.top-nav button.is-active {
  background: linear-gradient(135deg, rgba(86, 224, 255, 0.26), rgba(139, 255, 176, 0.18));
  color: var(--accent);
  box-shadow: 0 10px 24px rgba(86, 224, 255, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.content-panel {
  position: relative;
  margin-top: -8px;
  padding: 26px 16px 6px;
  border-radius: 30px 30px 0 0;
  background: linear-gradient(180deg, rgba(6, 13, 26, 0.82), rgba(6, 13, 26, 0.58));
}

.section-stack {
  display: grid;
  gap: 22px;
}

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

.summary-card {
  padding: 16px 14px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(15, 28, 52, 0.9), rgba(10, 19, 38, 0.9));
  border: 1px solid rgba(115, 212, 255, 0.14);
  box-shadow: var(--glow);
  will-change: transform, opacity;
}

.summary-label {
  margin: 0 0 8px;
  font-size: 12px;
  color: var(--muted);
}

.summary-value {
  margin: 0;
  font-size: 25px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #f4fbff;
}

.summary-note {
  margin-top: 6px;
  font-size: 12px;
  color: var(--muted);
}

.filter-card,
.targeted-card,
.targeted-sheet-card,
.school-card,
.detail-card,
.detail-hero,
.targeted-head {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(20px);
  box-shadow: var(--glow);
}

.filter-card {
  padding: 16px;
}

.filter-row {
  display: grid;
  gap: 12px;
}

.targeted-search-form {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.search-input {
  width: 100%;
  height: 48px;
  padding: 0 16px;
  border-radius: 16px;
  border: 1px solid rgba(115, 212, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  transition: border-color 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.search-input:focus {
  outline: none;
  border-color: rgba(86, 224, 255, 0.46);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 0 0 4px rgba(86, 224, 255, 0.1), 0 0 28px rgba(86, 224, 255, 0.12);
}

.search-submit-button {
  min-width: 96px;
  height: 48px;
  padding: 0 18px;
  border-radius: 16px;
  border: 1px solid rgba(115, 212, 255, 0.18);
  background: linear-gradient(135deg, rgba(86, 224, 255, 0.26), rgba(128, 255, 214, 0.18));
  color: #dbfbff;
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 18px 28px rgba(17, 60, 102, 0.28);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.search-submit-button:hover,
.search-submit-button:focus-visible {
  border-color: rgba(86, 224, 255, 0.46);
  box-shadow: 0 22px 34px rgba(28, 89, 146, 0.34);
}

.search-submit-button:active {
  transform: translateY(1px) scale(0.985);
}

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

.chip {
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(231, 245, 255, 0.74);
  border: 1px solid rgba(115, 212, 255, 0.1);
  font-size: 13px;
  font-weight: 700;
  transition: background-color 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.chip.is-active {
  background: var(--accent-soft);
  color: var(--accent);
  box-shadow: 0 10px 24px rgba(86, 224, 255, 0.12);
}

.school-list {
  display: grid;
  gap: 18px;
}

.school-card {
  overflow: hidden;
  will-change: transform, opacity;
}

.school-card button.school-link {
  width: 100%;
  padding: 0;
  text-align: left;
  background: transparent;
}

.school-cover {
  aspect-ratio: 16 / 9;
  width: 100%;
  object-fit: cover;
  background: linear-gradient(135deg, rgba(86, 224, 255, 0.16), rgba(139, 255, 176, 0.12));
  filter: saturate(1.08) contrast(1.04);
}

.school-body {
  padding: 16px;
}

.school-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
}

.school-name {
  margin: 0 0 8px;
  font-size: 21px;
  line-height: 1.18;
  font-weight: 800;
  color: #f4fbff;
}

.school-address {
  display: flex;
  gap: 7px;
  align-items: center;
  margin: 12px 0 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
}

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

.tag {
  padding: 6px 10px;
  border-radius: 12px;
  border: 1px solid rgba(115, 212, 255, 0.18);
  background: rgba(86, 224, 255, 0.08);
  color: #bff3ff;
  font-size: 12px;
  font-weight: 700;
}

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

.score-box {
  padding: 12px 13px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(86, 224, 255, 0.03));
  border: 1px solid rgba(115, 212, 255, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.score-box .label {
  margin: 0 0 5px;
  font-size: 12px;
  color: var(--muted);
}

.score-box .value {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #f4fbff;
}

.detail-page {
  padding: max(env(safe-area-inset-top), 16px) 16px 30px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  padding: 0;
  background: transparent;
  color: var(--text);
  font-size: 15px;
  font-weight: 700;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at top right, rgba(86, 224, 255, 0.3), transparent 28%),
    radial-gradient(circle at 10% 100%, rgba(139, 255, 176, 0.14), transparent 34%),
    linear-gradient(180deg, rgba(15, 28, 53, 0.98), rgba(8, 16, 31, 0.98));
  will-change: transform, opacity;
}

.detail-hero::after {
  content: "";
  position: absolute;
  right: -16px;
  top: 18px;
  width: 168px;
  height: 168px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 42% 34%, rgba(255, 255, 255, 0.62) 0, rgba(255, 255, 255, 0.1) 14%, transparent 26%),
    radial-gradient(circle at 60% 66%, rgba(86, 224, 255, 0.3), transparent 48%);
  transform: rotate(6deg);
  filter: blur(2px);
  pointer-events: none;
}

.detail-inner {
  position: relative;
  padding: 24px 16px 16px;
  z-index: 1;
}

.detail-title {
  margin: 0 0 10px;
  font-size: 30px;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.seg-tabs {
  display: flex;
  gap: 8px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(115, 212, 255, 0.1);
}

.seg-tabs button {
  flex: 1;
  min-height: 46px;
  padding: 0 12px;
  border-radius: 999px;
  background: transparent;
  color: rgba(214, 234, 248, 0.58);
  font-size: 14px;
  font-weight: 700;
  transition: background-color 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.seg-tabs button:hover {
  color: rgba(244, 251, 255, 0.9);
}

.seg-tabs button.is-active {
  background: linear-gradient(135deg, rgba(86, 224, 255, 0.24), rgba(139, 255, 176, 0.16));
  color: #effcff;
  box-shadow: 0 10px 24px rgba(86, 224, 255, 0.14);
}

.detail-content {
  display: grid;
  gap: 18px;
  margin-top: 18px;
}

.detail-card {
  padding: 16px;
  will-change: transform, opacity;
}

.detail-card h3 {
  margin: 0 0 12px;
  font-size: 18px;
  line-height: 1.24;
}

.detail-card p,
.detail-card li,
.detail-card td,
.detail-card th {
  font-size: 14px;
  line-height: 1.74;
  color: rgba(227, 242, 252, 0.9);
}

.detail-card p {
  margin: 0;
  white-space: pre-wrap;
}

.detail-overview-card {
  background: linear-gradient(180deg, rgba(16, 31, 58, 0.92), rgba(9, 18, 35, 0.92));
}

.detail-overview-stack {
  display: grid;
  gap: 14px;
}

.detail-overview-item {
  display: grid;
  gap: 6px;
  padding: 14px 14px 0;
  border-top: 1px solid rgba(115, 212, 255, 0.12);
}

.detail-overview-item:first-child {
  padding-top: 0;
  border-top: 0;
}

.detail-overview-item strong {
  color: #c8f5ff;
  font-size: 13px;
}

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

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

.kv-item {
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(115, 212, 255, 0.1);
}

.kv-item strong {
  display: block;
  margin-bottom: 4px;
  font-size: 12px;
  color: var(--muted);
}

.track-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.track-pill {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(231, 245, 255, 0.72);
  font-size: 13px;
  font-weight: 700;
  transition: background-color 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.track-pill.is-active {
  background: var(--blue-soft);
  color: var(--blue);
  box-shadow: 0 10px 24px rgba(139, 255, 176, 0.12);
}

.echarts-host {
  padding: 8px 0 2px;
}

.echarts-chart {
  width: 100%;
  min-height: 320px;
}

.chart-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}

.chart-table td,
.chart-table th,
.excel-table td,
.excel-table th {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.chart-table td,
.excel-table td {
  color: rgba(227, 242, 252, 0.82);
}

.chart-table th,
.excel-table th {
  color: #b8d8ed;
}

.excel-table {
  width: 100%;
  border-collapse: collapse;
}

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

.gallery-grid img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(115, 212, 255, 0.1);
}

.targeted-head,
.targeted-card,
.targeted-sheet-card {
  padding: 18px 16px;
  will-change: transform, opacity;
}

.targeted-head h2,
.targeted-card h3 {
  margin: 0;
}

.targeted-head p {
  margin: 10px 0 0;
  font-size: 14px;
  line-height: 1.7;
  color: rgba(220, 238, 252, 0.86);
}

.hero-desc-single-line {
  max-width: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.targeted-head strong {
  color: var(--accent);
}

.recommend-form-card,
.recommend-group-card,
.recommend-warning-card {
  padding: 18px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--glow);
}

.recommend-meta-grid,
.recommend-input-grid,
.recommend-rating-grid,
.recommend-kv-grid,
.recommend-quick-grid {
  display: grid;
  gap: 12px;
}

.recommend-meta-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 12px;
}

.field-stack {
  display: grid;
  gap: 8px;
}

.field-label {
  font-size: 13px;
  font-weight: 700;
  color: rgba(235, 248, 255, 0.84);
}

.field-label em {
  margin-left: 4px;
  font-style: normal;
  font-weight: 500;
  color: var(--muted);
}

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

.recommend-quick-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 12px;
}

.recommend-rating-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 12px;
}

.recommend-total-card {
  height: 100%;
}

.recommend-action-row {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.recommend-action-row-inline {
  margin: 12px 0;
}

.primary-action {
  width: 100%;
  min-height: 52px;
  padding: 0 18px;
  border-radius: 18px;
  background: linear-gradient(135deg, #4edbff, #1dbef0 58%, #8bffb0);
  color: #041018;
  font-size: 16px;
  font-weight: 800;
  box-shadow: 0 18px 32px rgba(86, 224, 255, 0.24);
}

.secondary-action {
  width: 100%;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--accent);
  border: 1px solid rgba(115, 212, 255, 0.16);
  font-size: 15px;
  font-weight: 700;
}

.search-textarea {
  min-height: 120px;
  padding-top: 14px;
  padding-bottom: 14px;
  resize: vertical;
}

.recommend-subject-card {
  display: grid;
  gap: 10px;
  padding: 12px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(14, 28, 52, 0.84), rgba(10, 19, 38, 0.72));
  border: 1px solid rgba(115, 212, 255, 0.12);
}

.recommend-note,
.recommend-item-note,
.recommend-group-head p,
.recommend-warning-card p {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
}

.recommend-warning-card {
  display: grid;
  gap: 6px;
  background: linear-gradient(180deg, rgba(31, 23, 12, 0.92), rgba(20, 18, 16, 0.9));
  border-color: rgba(255, 186, 94, 0.22);
}

.recommend-group-head,
.recommend-item-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.recommend-browser {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.recommend-group-rail {
  position: sticky;
  top: calc(env(safe-area-inset-top) + 96px);
  display: grid;
  gap: 10px;
  align-self: start;
}

.recommend-group-pill {
  display: grid;
  gap: 6px;
  justify-items: center;
  padding: 14px 8px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(12, 22, 42, 0.94), rgba(8, 16, 30, 0.94));
  border: 1px solid rgba(115, 212, 255, 0.1);
  color: var(--muted);
  box-shadow: var(--glow);
}

.recommend-group-pill span {
  font-size: 14px;
  font-weight: 800;
}

.recommend-group-pill strong {
  font-size: 20px;
  line-height: 1;
  color: var(--text);
}

.recommend-group-pill.is-active {
  background: linear-gradient(135deg, rgba(86, 224, 255, 0.18), rgba(139, 255, 176, 0.12));
  border-color: rgba(86, 224, 255, 0.28);
  color: var(--accent);
  box-shadow: 0 16px 30px rgba(86, 224, 255, 0.18);
}

.recommend-group-pill.is-active strong {
  color: var(--accent);
}

.recommend-group-head h2,
.recommend-item-head h3 {
  margin: 0;
}

.recommend-group-count,
.recommend-order {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
}

.recommend-list {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.recommend-group-panel-scroll {
  max-height: none;
  overflow: visible;
  overscroll-behavior: auto;
}

.recommend-filter-preview-card {
  display: grid;
  gap: 12px;
}

.recommend-filter-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.recommend-inline-link {
  padding: 0;
  background: transparent;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  transition: color 180ms ease;
}

.recommend-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 20px 12px;
  background: rgba(2, 7, 15, 0.56);
  backdrop-filter: blur(18px);
  will-change: opacity;
}

.recommend-modal-card {
  width: min(100%, 720px);
  max-height: min(80dvh, 920px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  border-radius: 28px;
  background: rgba(7, 16, 31, 0.97);
  border: 1px solid rgba(115, 212, 255, 0.16);
  box-shadow: 0 28px 64px rgba(0, 0, 0, 0.4);
  overflow: hidden;
  will-change: transform, opacity;
  transform-origin: center bottom;
}

.recommend-modal-head,
.recommend-modal-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}

.recommend-modal-actions {
  border-top: 1px solid var(--line);
  border-bottom: 0;
}

.recommend-modal-head h2 {
  margin: 0;
  font-size: 22px;
}

.recommend-modal-head p {
  margin: 6px 0 0;
  font-size: 13px;
  color: var(--muted);
}

.recommend-modal-body {
  overflow-y: auto;
  padding: 16px 18px 8px;
}

.recommend-modal-close {
  min-width: 72px;
  height: 38px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  transition: background-color 180ms ease, color 180ms ease;
}

.recommend-modal-actions .secondary-action,
.recommend-modal-actions .primary-action {
  width: auto;
  min-width: 120px;
}

.recommend-item-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(14, 28, 52, 0.92), rgba(9, 18, 35, 0.92));
  border: 1px solid rgba(115, 212, 255, 0.12);
  box-shadow: var(--glow);
  will-change: transform, opacity;
}

.recommend-item-head p {
  margin: 6px 0 0;
  font-size: 14px;
  color: var(--muted);
}

.recommend-link {
  min-width: 86px;
  height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(115, 212, 255, 0.18);
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}

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

.targeted-sheet-card {
  overflow: hidden;
  padding: 0;
}

.targeted-sheet-wrap {
  overflow-x: auto;
}

.targeted-sheet-table {
  width: 100%;
  border-collapse: collapse;
  background: linear-gradient(180deg, rgba(11, 22, 42, 0.94), rgba(8, 16, 31, 0.96) 68%);
}

.targeted-sheet-table th,
.targeted-sheet-table td {
  padding: 14px 12px;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  text-align: center;
  vertical-align: middle;
}

.targeted-sheet-table th:last-child,
.targeted-sheet-table td:last-child {
  border-right: 0;
}

.targeted-sheet-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(14, 29, 54, 0.98), rgba(10, 20, 38, 0.98));
  font-size: 16px;
  font-weight: 800;
}

.targeted-sheet-table tbody tr:nth-child(5n + 1),
.targeted-sheet-table tbody tr:nth-child(5n + 2),
.targeted-sheet-table tbody tr:nth-child(5n + 3),
.targeted-sheet-table tbody tr:nth-child(5n + 4),
.targeted-sheet-table tbody tr:nth-child(5n + 5) {
  background: rgba(255, 255, 255, 0.02);
}

.targeted-school-cell {
  min-width: 132px;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.4;
  background: rgba(255, 255, 255, 0.04);
  color: #eef8ff;
}

.targeted-type-cell {
  min-width: 92px;
  color: rgba(176, 208, 230, 0.84);
}

.targeted-sheet-table td {
  font-size: 16px;
  font-weight: 700;
  color: #f4fbff;
}

.targeted-sheet-table td.is-accent {
  color: #8bffb0;
}

.section-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.section-title {
  margin: 0;
  font-size: 18px;
  line-height: 1.2;
  font-weight: 800;
  color: #eefbff;
}

.section-help {
  font-size: 12px;
  color: var(--muted);
}

.empty-card {
  padding: 22px 16px;
  border-radius: var(--radius-xl);
  background: var(--surface);
  border: 1px dashed var(--line-strong);
  color: var(--muted);
  box-shadow: var(--glow);
  text-align: center;
  line-height: 1.8;
}

.footer-note {
  margin-top: 14px;
  padding: 0 8px;
  text-align: center;
  font-size: 12px;
  line-height: 1.8;
  color: rgba(136, 162, 189, 0.82);
}

.summary-grid,
.school-card,
.detail-card,
.detail-overview-card,
.targeted-head,
.targeted-sheet-card,
.recommend-warning-card,
.recommend-filter-preview-card,
.recommend-browser,
.recommend-group-card,
.recommend-item-card,
.empty-card,
.footer-note {
  scroll-margin-top: 120px;
}

@media (min-width: 768px) {
  .page-shell {
    padding-bottom: 44px;
  }

  .content-panel {
    padding-left: 22px;
    padding-right: 22px;
  }

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

  .detail-page {
    padding-left: 22px;
    padding-right: 22px;
  }

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

  .recommend-input-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .recommend-rating-grid {
    grid-template-columns: repeat(3, minmax(0, 180px));
  }

  .recommend-quick-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .hero-desc-single-line {
    display: block;
  }

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

  .search-submit-button {
    width: 100%;
  }

  .recommend-meta-grid,
  .recommend-rating-grid,
  .recommend-kv-grid,
  .recommend-quick-grid {
    grid-template-columns: 1fr;
  }

  .recommend-browser {
    grid-template-columns: 78px minmax(0, 1fr);
    gap: 10px;
  }

  .recommend-item-head,
  .recommend-group-head {
    flex-direction: column;
  }

  .recommend-link {
    width: fit-content;
  }

  .recommend-group-panel-scroll {
    max-height: none;
    overflow: visible;
  }

  .recommend-modal-backdrop {
    padding: 12px;
  }

  .recommend-modal-card {
    max-height: min(86dvh, 920px);
  }

  .recommend-modal-actions {
    flex-wrap: wrap;
  }

  .recommend-modal-actions .secondary-action,
  .recommend-modal-actions .primary-action {
    width: 100%;
  }
}
