:root {
  color-scheme: light;
  --blue: #0a48a5;
  --blue-dark: #083a86;
  --blue-light: #eef5ff;
  --blue-border: #d6e7ff;
  --link: #3498db;
  --link-hover: #2980b9;
  --green: #4caf50;
  --green-hover: #45a049;
  --bg: #fafafa;
  --box: #ffffff;
  --border: #e8f4f8;
  --border-soft: #f0f0f0;
  --text: #333333;
  --muted: #666666;
  --muted-2: #888888;
  --radius-lg: 12px;
  --radius-md: 10px;
  --radius-sm: 8px;
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
  --shadow-hover: 0 6px 18px rgba(0, 0, 0, 0.06);
  --font-sans: "Microsoft YaHei", "PingFang SC", "Segoe UI", Arial, sans-serif;
  --container: 880px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding-bottom: 44px;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

main {
  position: relative;
  z-index: 1;
}

a {
  color: var(--link);
  text-decoration: none;
}

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

button {
  font: inherit;
}

:where(a, button):focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

::selection {
  background: var(--blue-light);
  color: var(--blue);
}

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

.skip-link {
  position: fixed;
  top: -100px;
  left: 12px;
  z-index: 100;
  padding: 8px 14px;
  border-radius: 6px;
  background: var(--blue);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 12px;
}

.noscript-note {
  margin: 14px 0 0;
  padding: 12px 16px;
  border: 1px dashed var(--blue-border);
  border-radius: var(--radius-sm);
  background: var(--blue-light);
  color: var(--muted);
  font-size: 13px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid #eeeeee;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 22px;
  min-height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.brand-logo {
  display: block;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  object-fit: contain;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  line-height: 1.1;
}

.brand-text strong {
  color: var(--blue);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 1px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: auto;
}

.nav a {
  color: var(--text);
  font-size: 14px;
  transition: color 0.2s ease;
}

.nav a:hover {
  color: var(--blue);
}

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  background: var(--green);
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(76, 175, 80, 0.2);
  transition: background-color 0.2s ease;
}

.header-cta svg {
  width: 14px;
  height: 14px;
}

.header-cta:hover {
  background: var(--green-hover);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.btn-primary {
  background: var(--green);
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(76, 175, 80, 0.2);
}

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

.btn-ghost {
  border-color: var(--blue-border);
  background: #ffffff;
  color: var(--blue);
}

.btn-ghost:hover {
  border-color: var(--link);
  color: var(--link);
}

.btn-small {
  padding: 8px 14px;
  font-size: 12px;
}

/* Hero */
.hero {
  padding: 22px 0 8px;
}

.hero-banner {
  padding: 20px 30px 22px;
  border-radius: var(--radius-sm);
  background: var(--blue);
  color: #ffffff;
  text-align: center;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.hero-kicker {
  margin: 0 0 8px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.hero-banner h1 {
  margin: 0;
  color: #ffffff;
  font-size: 36px;
  font-weight: 700;
  letter-spacing: 2px;
  line-height: 1.25;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.hero-banner p:not(.hero-kicker) {
  max-width: 720px;
  margin: 10px auto 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  line-height: 1.8;
}

/* Catalog */
.catalog {
  padding: 10px 0 54px;
  scroll-margin-top: 80px;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--link);
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.group-carousel {
  position: relative;
}

.group-switcher {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.group-tab {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--box);
  color: var(--text);
  text-align: left;
  font: inherit;
  cursor: pointer;
  box-shadow: var(--shadow);
  scroll-margin-top: 86px;
  transition: background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.group-tab:hover {
  border-color: var(--blue-border);
}

.group-tab:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.group-tab.is-active {
  border-color: var(--blue);
  background: var(--blue);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(10, 72, 165, 0.18);
}

.group-index {
  flex-shrink: 0;
  padding: 3px 6px;
  border: 1px solid var(--blue-border);
  border-radius: 6px;
  background: var(--blue-light);
  color: var(--blue);
  font-size: 10px;
  line-height: 1.2;
}

.group-tab-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.kicker {
  margin: 0 0 3px;
  color: var(--muted-2);
  font-size: 9px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}

.group-tab-title {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.3;
}

.count {
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--blue-light);
  color: var(--blue);
  font-size: 10px;
  font-weight: 400;
}

.group-tab.is-active .group-index {
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.group-tab.is-active .kicker {
  color: rgba(255, 255, 255, 0.72);
}

.group-tab.is-active .count {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
}

.group-viewport {
  overflow: hidden;
  transition: height 0.55s ease;
}

.group-panels {
  display: flex;
  width: 100%;
  transition: transform 0.55s ease;
  will-change: transform;
}

.group-panel {
  flex: 0 0 100%;
  min-width: 0;
}

/* Card grid */
.card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  padding: 4px 2px 6px;
}

#accelerator-panel .card-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--box);
  box-shadow: var(--shadow);
  animation: cardIn 0.5s ease backwards;
  animation-delay: calc(var(--i) * 45ms);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
  transform: translateY(-3px);
  border-color: #bcd7f5;
  box-shadow: var(--shadow-hover);
}

.card:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 4px;
}

.card--featured {
  border-color: #b7dfb9;
}

.card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 14px 16px 16px;
}

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

.series {
  color: var(--muted-2);
  font-size: 10px;
}

.badge {
  flex-shrink: 0;
  padding: 2px 8px;
  border: 1px solid #eeeeee;
  border-radius: 999px;
  font-size: 10px;
  white-space: nowrap;
}

.badge--ready {
  border-color: #c8e6c9;
  background: #e8f5e9;
  color: #2e7d32;
}

.badge--partial {
  border-color: var(--blue-border);
  background: var(--blue-light);
  color: var(--blue);
}

.badge--pending {
  background: #f5f5f5;
  color: #999999;
}

.card-title {
  margin: 0 0 6px;
  overflow-wrap: anywhere;
  color: var(--blue);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.5;
}

.card-summary {
  display: -webkit-box;
  margin: 0 0 12px;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  align-self: flex-start;
  margin-top: auto;
  padding-bottom: 1px;
  border-bottom: 1px dotted var(--link);
  color: var(--link);
  font-size: 12px;
}

.card-link svg {
  width: 14px;
  height: 14px;
  transition: transform 0.2s ease;
}

.card:hover .card-link {
  border-bottom-style: solid;
  color: var(--link-hover);
}

.card:hover .card-link svg {
  transform: translateX(2px);
}

/* Covers */
.cover {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.cover--photo {
  display: grid;
  place-items: center;
  padding: 12px;
  border-bottom: 1px solid var(--border-soft);
  background: #ffffff;
}

.cover--photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.4s ease;
}

.card:hover .cover--photo img {
  transform: scale(1.02);
}

.tone-1 {
  --tone: #4caf50;
  --tone-bg: #eef8ef;
}

.tone-2 {
  --tone: #3498db;
  --tone-bg: #eef6fc;
}

.tone-3 {
  --tone: #7e57c2;
  --tone-bg: #f4f0fb;
}

.tone-4 {
  --tone: #f39c12;
  --tone-bg: #fff6e8;
}

.tone-5 {
  --tone: #e74c3c;
  --tone-bg: #fdf0ee;
}

.cover--placeholder {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 16px;
  border-bottom: 1px solid var(--border-soft);
  background:
    radial-gradient(circle at 24% 14%, var(--tone-bg), transparent 52%),
    linear-gradient(145deg, #ffffff, #f8fbfe);
}

.cover-series,
.cover-chip,
.cover-code {
  position: relative;
  z-index: 1;
}

.cover-series {
  color: var(--tone);
  font-size: 9px;
  letter-spacing: 1px;
}

.cover-chip {
  width: 92px;
  height: 92px;
  margin: 0 auto;
  color: var(--tone);
  opacity: 0.82;
}

.cover-chip svg {
  width: 100%;
  height: 100%;
}

.cover-code {
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}

.cover-tag {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  padding: 2px 7px;
  border: 1px solid #e5e5e5;
  border-radius: 999px;
  background: #ffffff;
  color: #aaaaaa;
  font-size: 8px;
  letter-spacing: 1px;
}

/* Beian footer */
.beian-container {
  position: fixed;
  bottom: 0;
  left: 0;
  z-index: 999;
  width: 100%;
  padding: 6px 12px;
  border-top: 1px solid #eeeeee;
  background: #ffffff;
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.04);
  color: #888888;
  font-size: 11px;
  line-height: 1.9;
  text-align: center;
}

.beian-container a {
  color: #888888;
  transition: color 0.2s ease;
}

.beian-container a:hover {
  color: #2b6cb0;
}

.beian-container .sep {
  margin: 0 8px;
  color: #dddddd;
}

.beian-container img {
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-right: 3px;
  vertical-align: -2px;
}

/* Detail page */
.breadcrumb-wrap {
  padding-top: 18px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  color: var(--muted-2);
  font-size: 11px;
}

.breadcrumb a {
  color: var(--link);
  transition: color 0.2s ease;
}

.breadcrumb a:hover {
  color: var(--link-hover);
}

.breadcrumb span[aria-current="page"] {
  color: var(--text);
}

.detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  align-items: start;
  gap: 30px;
  margin-top: 10px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--box);
  box-shadow: var(--shadow);
}

.detail-hero--pending {
  align-items: center;
}

.detail-cover {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: #ffffff;
}

.detail-cover .cover {
  aspect-ratio: 1 / 1;
}

.detail-cover .cover--photo {
  padding: 18px;
  border-bottom: 0;
}

.detail-cover .cover--placeholder {
  padding: 24px;
  border-bottom: 0;
}

.detail-cover .cover-chip {
  width: 150px;
  height: 150px;
}

.detail-info h1 {
  margin: 0 0 8px;
  overflow-wrap: anywhere;
  color: var(--blue);
  font-size: 30px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.25;
}

.detail-subtitle {
  margin: 0 0 14px;
  color: var(--link);
  font-size: 14px;
}

.detail-summary {
  max-width: 100%;
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.9;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 18px;
}

.chip {
  padding: 4px 10px;
  border: 1px solid var(--blue-border);
  border-radius: 10px;
  background: var(--blue-light);
  color: #2b6cb0;
  font-size: 11px;
}

.manual-card {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 14px;
  border: 1px solid #d9ead9;
  border-radius: var(--radius-md);
  background: #f3fbf5;
}

.manual-card--pending {
  border-color: #eeeeee;
  background: #fafafa;
}

.manual-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 46px;
  border-radius: 7px;
  background: var(--green);
  color: #ffffff;
  font-size: 9px;
  font-weight: 700;
}

.manual-icon--muted {
  background: #eeeeee;
  color: #999999;
}

.manual-copy {
  flex: 1;
  min-width: 180px;
}

.manual-copy h2 {
  margin: 2px 0 3px;
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
}

.manual-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}

.manual-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.status-pill {
  padding: 3px 9px;
  border: 1px solid #dddddd;
  border-radius: 999px;
  color: #999999;
  font-size: 10px;
  white-space: nowrap;
}

.status-pill--ready {
  border-color: #c8e6c9;
  background: #e8f5e9;
  color: #2e7d32;
}

.detail-section {
  margin-top: 26px;
  padding: 26px 0 12px;
  border-top: 1px solid #eeeeee;
}

.section-head {
  margin-bottom: 18px;
}

.section-head h2 {
  margin: 0;
  color: var(--blue);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0;
}

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

.spec-card {
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--box);
  box-shadow: var(--shadow);
  animation: cardIn 0.5s ease backwards;
  animation-delay: calc(var(--i) * 55ms);
}

.spec-card h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  color: var(--blue);
  font-size: 14px;
  font-weight: 700;
}

.spec-card h3 span {
  padding: 1px 5px;
  border: 1px solid var(--blue-border);
  border-radius: 4px;
  background: var(--blue-light);
  color: var(--blue);
  font-size: 9px;
  font-weight: 400;
}

.spec-card dl {
  display: grid;
  gap: 8px;
  margin: 0;
}

.spec-card dl > div {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  gap: 10px;
  padding-top: 8px;
  border-top: 1px solid #f2f2f2;
}

.spec-card dl > div:first-child {
  padding-top: 0;
  border-top: 0;
}

.spec-card dt {
  color: #999999;
  font-size: 11px;
}

.spec-card dd {
  margin: 0;
  color: var(--text);
  font-size: 12px;
  line-height: 1.7;
}

.source-note {
  margin: 14px 0 0;
  color: #999999;
  font-size: 10px;
}

.detail-gallery-list {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: #ffffff;
}

.detail-gallery-item {
  margin: 0;
}

.detail-gallery-item img {
  display: block;
  width: 100%;
  height: auto;
}

.gallery-note {
  margin: 8px 0 0;
  color: #999999;
  font-size: 10px;
  text-align: right;
}

.pending-panel {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 22px;
  border: 1px dashed #cfe3f7;
  border-radius: var(--radius-md);
  background: #fbfdff;
}

.pending-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border: 1px solid var(--blue-border);
  border-radius: 50%;
  background: var(--blue-light);
  color: var(--link);
}

.pending-icon svg {
  width: 20px;
  height: 20px;
}

.pending-copy {
  flex: 1;
  min-width: 220px;
}

.pending-copy h2 {
  margin: 0 0 4px;
  color: var(--blue);
  font-size: 18px;
  font-weight: 700;
}

.pending-copy > p:not(.kicker) {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.status-list {
  display: grid;
  gap: 6px;
  margin: 12px 0 0;
}

.status-list > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 6px;
  border-top: 1px solid #f2f2f2;
}

.status-list dt {
  color: #999999;
  font-size: 11px;
}

.status-list dd {
  margin: 0;
}

.detail-back {
  padding: 20px 0 40px;
}

/* Motion */
@keyframes cardIn {
  from {
    transform: translateY(10px);
  }
  to {
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* Responsive */
@media (max-width: 768px) {
  .container {
    width: calc(100% - 20px);
  }

  .header-inner {
    min-height: 56px;
  }

  .nav {
    display: none;
  }

  .header-cta {
    margin-left: auto;
  }

  .hero {
    padding-top: 14px;
  }

  .hero-banner {
    padding: 16px 18px 18px;
  }

  .hero-banner h1 {
    font-size: 24px;
    letter-spacing: 1px;
  }

  .hero-banner p:not(.hero-kicker) {
    font-size: 13px;
  }

  .group-switcher {
    gap: 8px;
  }

  .group-tab {
    gap: 8px;
    padding: 10px 12px;
  }

  .group-tab-title {
    font-size: 17px;
  }

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

  .detail-hero {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 16px;
  }

  .detail-cover {
    max-width: 520px;
  }

  .detail-info h1 {
    font-size: 24px;
  }

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

  .manual-card {
    align-items: flex-start;
  }

  .manual-actions {
    width: 100%;
  }

  .pending-panel {
    align-items: flex-start;
  }

  .beian-container {
    padding: 6px 8px;
    font-size: 10px;
  }

  body {
    padding-bottom: 56px;
  }
}

@media (max-width: 560px) {
  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .card-body {
    padding: 12px;
  }

  .card-title {
    font-size: 13px;
  }

  .card-summary {
    font-size: 11px;
  }

  .card-link {
    font-size: 11px;
  }

  .badge {
    padding: 2px 6px;
    font-size: 9px;
  }
}

@media (max-width: 480px) {
  .hero-banner h1 {
    font-size: 20px;
  }

  .group-switcher {
    gap: 6px;
  }

  .group-tab {
    gap: 6px;
    padding: 10px;
  }

  .group-index {
    display: none;
  }

  .group-tab-title {
    font-size: 15px;
  }

  .kicker {
    font-size: 8px;
  }

  .count {
    padding: 1px 5px;
    font-size: 9px;
  }

  .detail-info h1 {
    font-size: 22px;
  }

  .spec-card {
    padding: 14px 16px;
  }

  .spec-card dl > div {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .manual-actions .btn {
    flex: 1;
  }

  .pending-panel {
    padding: 16px;
  }

  .pending-panel > .btn {
    width: 100%;
  }

  .beian-container {
    font-size: 9px;
    line-height: 1.8;
  }

  body {
    padding-bottom: 64px;
  }
}
