:root {
  --bg: #f4f8ff;
  --bg-soft: #eef5ff;
  --panel: rgba(255, 255, 255, 0.92);
  --panel-2: rgba(247, 251, 255, 0.96);
  --line: rgba(36, 99, 235, 0.12);
  --text: #12304f;
  --muted: #5f7c9d;
  --primary: #2563eb;
  --primary-2: #60a5fa;
  --primary-3: #93c5fd;
  --shadow: 0 18px 40px rgba(37, 99, 235, 0.10);
  --radius: 20px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  color: var(--text);
  min-height: 100vh;
  line-height: 1.75;
  background:
    radial-gradient(circle at top left, rgba(147, 197, 253, 0.42), transparent 18%),
    radial-gradient(circle at top right, rgba(96, 165, 250, 0.18), transparent 20%),
    linear-gradient(180deg, #f7fbff 0%, #eef5ff 45%, #f6faff 100%);
}

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

button,
input {
  font: inherit;
}

button {
  border: none;
  cursor: pointer;
}

.container {
  width: min(1160px, 92%);
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.topbar-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 22px;
  font-weight: 700;
  color: #16355a;
}

.brand-logo {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: white;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  box-shadow: 0 12px 26px rgba(37, 99, 235, 0.22);
}

.nav {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.nav a {
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--muted);
  transition: 0.25s ease;
}

.nav a:hover,
.nav a.active {
  color: white;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
}

.hero {
  padding: 56px 0 28px;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  gap: 24px;
  align-items: stretch;
}

.hero-left,
.hero-card,
.card,
.detail-card {
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--panel), var(--panel-2));
  border: 1px solid rgba(147, 197, 253, 0.18);
  box-shadow: var(--shadow);
}

.hero-left {
  padding: 38px;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-tag {
  display: inline-flex;
  align-self: flex-start;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--primary);
  background: rgba(37, 99, 235, 0.08);
  border: 1px solid rgba(37, 99, 235, 0.12);
  font-size: 14px;
  margin-bottom: 18px;
  font-weight: 700;
}

.hero-left h1 {
  font-size: 42px;
  line-height: 1.28;
  margin-bottom: 18px;
}

.hero-left p {
  color: var(--muted);
  font-size: 16px;
  max-width: 730px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 120px;
  padding: 12px 20px;
  border-radius: 12px;
  transition: 0.25s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: white;
  font-weight: 700;
}

.btn-primary:hover {
  transform: translateY(-1px);
  filter: brightness(1.04);
}

.btn-ghost {
  background: rgba(37, 99, 235, 0.05);
  border: 1px solid rgba(37, 99, 235, 0.12);
  color: var(--text);
}

.btn-ghost:hover {
  background: rgba(37, 99, 235, 0.10);
}

.hero-card {
  padding: 30px;
  position: relative;
  overflow: hidden;
}

.hero-card::after {
  content: "";
  position: absolute;
  right: -35px;
  bottom: -35px;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(96, 165, 250, 0.18), transparent 65%);
  pointer-events: none;
}

.hero-card h3 {
  font-size: 22px;
  margin-bottom: 16px;
}

.hero-card ul {
  padding-left: 18px;
  color: var(--muted);
}

.hero-card li + li {
  margin-top: 10px;
}

.main-area {
  padding-bottom: 42px;
}

.card {
  padding: 24px;
}

.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-bottom: 18px;
}

.toolbar-left h2 {
  font-size: 28px;
  margin-bottom: 6px;
}

.toolbar-left p {
  color: var(--muted);
}

.toolbar-right {
  min-width: 280px;
}

.search-input {
  width: 100%;
  padding: 13px 16px;
  border-radius: 14px;
  border: 1px solid rgba(37, 99, 235, 0.12);
  background: #ffffff;
  color: var(--text);
  outline: none;
  transition: 0.25s ease;
}

.search-input::placeholder {
  color: #86a0bc;
}

.search-input:focus {
  border-color: rgba(37, 99, 235, 0.35);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.10);
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}

.chip {
  padding: 9px 16px;
  border-radius: 999px;
  color: var(--muted);
  background: #ffffff;
  border: 1px solid rgba(37, 99, 235, 0.10);
  transition: 0.25s ease;
}

.chip:hover,
.chip.active {
  color: white;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
}

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

.model-card {
  position: relative;
  overflow: hidden;
}

.model-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background: linear-gradient(180deg, var(--primary), var(--primary-2), var(--primary-3));
}

.model-card-inner {
  padding-left: 8px;
}

.model-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.model-title {
  font-size: 24px;
  margin-bottom: 6px;
  line-height: 1.35;
}

.model-sub {
  color: var(--muted);
  font-size: 14px;
}

.model-desc {
  color: var(--muted);
  margin: 14px 0 16px;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.grade-badge,
.meta-badge {
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 13px;
}

.grade-badge {
  background: rgba(37, 99, 235, 0.10);
  color: var(--primary);
  border: 1px solid rgba(37, 99, 235, 0.12);
  font-weight: 700;
}

.meta-badge {
  background: rgba(96, 165, 250, 0.10);
  color: #2e5c92;
  border: 1px solid rgba(96, 165, 250, 0.12);
}

.reason-box {
  padding: 14px;
  border-radius: 14px;
  background: rgba(37, 99, 235, 0.05);
  color: #2a4870;
  margin-bottom: 18px;
}

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

.light-note {
  color: var(--muted);
  font-size: 13px;
}

.link-btn {
  color: var(--primary);
  font-weight: 700;
}

.link-btn:hover {
  color: #1d4ed8;
}

.about-section {
  margin-top: 22px;
}

.about-section h2 {
  font-size: 28px;
  margin-bottom: 14px;
}

.about-section > p {
  color: var(--muted);
}

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

.about-item {
  padding: 18px;
  border-radius: 16px;
  background: rgba(245, 250, 255, 0.96);
  border: 1px solid rgba(37, 99, 235, 0.10);
}

.about-item h3 {
  margin-bottom: 8px;
  font-size: 18px;
}

.about-item p {
  color: var(--muted);
}

.detail-page {
  padding: 42px 0 18px;
}

.detail-card {
  padding: 30px;
}

.detail-title {
  font-size: 40px;
  margin-bottom: 8px;
  line-height: 1.3;
}

.detail-sub {
  color: var(--muted);
  margin-bottom: 18px;
}

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

.detail-section h3 {
  font-size: 22px;
  margin-bottom: 10px;
}

.detail-section p,
.detail-section li {
  color: #2f4c73;
}

.detail-section ul {
  padding-left: 18px;
}

.detail-section li + li {
  margin-top: 8px;
}

.footer {
  margin-top: 36px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.80);
  padding: 22px 0;
  text-align: center;
  color: var(--muted);
}

.empty-box {
  grid-column: 1 / -1;
  padding: 46px 20px;
  text-align: center;
  border-radius: 20px;
  background: linear-gradient(180deg, var(--panel), var(--panel-2));
  border: 1px solid rgba(37, 99, 235, 0.10);
  box-shadow: var(--shadow);
  color: var(--muted);
}

@media (max-width: 1000px) {
  .hero-inner,
  .about-grid,
  .model-list {
    grid-template-columns: 1fr;
  }

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

  .toolbar-right {
    min-width: 100%;
  }
}

@media (max-width: 720px) {
  .topbar-inner {
    flex-direction: column;
    justify-content: center;
    padding: 16px 0;
  }

  .hero-left,
  .hero-card,
  .card,
  .detail-card {
    padding: 20px;
  }

  .hero-left h1,
  .detail-title {
    font-size: 30px;
  }

  .model-title {
    font-size: 21px;
  }

  .toolbar-left h2,
  .about-section h2 {
    font-size: 24px;
  }
}