:root {
  --primary: #2563eb;
  --accent: #0ea5e9;
  --ink: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --soft: #f8fafc;
  --page: #f1f5f9;
  --card: #ffffff;
  --danger: #dc2626;
  --ok: #16a34a;
  --max: 80rem;
  --radius: 0.75rem;
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body.page-body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--page);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body.modal-open {
  overflow: hidden;
}

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

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

a:hover {
  color: var(--accent);
}

button {
  font-family: inherit;
  cursor: pointer;
  border: 0;
  background: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

.section {
  padding: 3.5rem 0;
  background: var(--card);
}

.section-alt {
  padding: 3.5rem 0;
  background: var(--soft);
}

.section-dark {
  padding: 3.5rem 0;
  background: #0f172a;
  color: #e2e8f0;
  position: relative;
  overflow: hidden;
}

.section-dark a {
  color: #e0f2fe;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.grid-2,
.grid-3,
.grid-4 {
  display: grid;
  gap: 1.25rem;
}

.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: repeat(2, 1fr); }

/* Topbar + nav */
.topbar {
  display: none;
  background: #0f172a;
  color: #cbd5e1;
  font-size: 0.75rem;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.5rem 0;
}

.topbar strong {
  color: #fff;
  font-weight: 600;
}

.topbar a {
  color: #94a3b8;
}

.topbar a:hover {
  color: var(--accent);
}

.site-nav {
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4rem;
  padding: 0.65rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--ink);
  flex-shrink: 0;
}

.brand:hover {
  color: var(--ink);
  opacity: 0.92;
}

.brand img {
  height: 2.25rem;
  width: auto;
  object-fit: contain;
}

.brand-mark {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.5rem;
  background: var(--primary);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
}

.brand-title {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.2;
}

.brand-sub {
  font-size: 0.65rem;
  color: var(--muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 0.15rem;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0.9rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: #334155;
  border-radius: 0.4rem;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--primary);
}

.nav-cta {
  margin-left: 0.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1.1rem;
  background: var(--primary);
  color: #fff !important;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 0.4rem;
  transition: background 0.15s ease;
}

.nav-cta:hover {
  background: #1d4ed8;
}

.mobile-nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  color: #334155;
  border-radius: 0.4rem;
}

.mobile-nav-btn:hover {
  background: var(--soft);
}

.mobile-nav {
  display: none;
  border-top: 1px solid var(--line);
  padding: 0.5rem 0 0.75rem;
}

.mobile-nav.is-open {
  display: block;
}

.mobile-nav a {
  display: block;
  padding: 0.7rem 0.75rem;
  color: #334155;
  font-size: 0.9rem;
  border-radius: 0.4rem;
}

.mobile-nav a:hover {
  background: var(--soft);
  color: var(--primary);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.35rem;
  border-radius: 0.45rem;
  font-size: 0.9rem;
  font-weight: 600;
  border: 2px solid transparent;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.btn-primary {
  background: var(--primary);
  color: #fff !important;
  border-color: var(--primary);
}

.btn-primary:hover {
  background: #1d4ed8;
  border-color: #1d4ed8;
}

.btn-outline {
  background: transparent;
  color: var(--primary) !important;
  border-color: var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: #fff !important;
}

.btn-light {
  background: transparent;
  color: #fff !important;
  border-color: rgba(255, 255, 255, 0.4);
}

.btn-light:hover {
  background: rgba(255, 255, 255, 0.1);
}

.btn-accent {
  background: var(--accent);
  color: #fff !important;
  border-color: var(--accent);
}

.btn-accent:hover {
  background: #0284c7;
}

/* Cards */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  color: inherit;
  display: block;
}

a.card:hover,
.card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
  color: inherit;
}

.card-media {
  position: relative;
  overflow: hidden;
  background: var(--page);
  aspect-ratio: 4 / 3;
}

.card-media.video {
  aspect-ratio: 16 / 9;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

a.card:hover .card-media img {
  transform: scale(1.05);
}

.card-body {
  padding: 1.15rem 1.25rem 1.35rem;
}

.badge {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 0.3rem;
  background: var(--accent);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
}

.badge-overlay {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 1;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.75rem;
  color: var(--muted);
}

.line-clamp-1,
.line-clamp-2,
.line-clamp-3 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-1 { -webkit-line-clamp: 1; }
.line-clamp-2 { -webkit-line-clamp: 2; }
.line-clamp-3 { -webkit-line-clamp: 3; }

/* Hero */
.hero {
  position: relative;
  background: #0f172a;
  overflow: hidden;
}

.hero-track {
  position: relative;
  height: 28rem;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.7s ease;
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.92) 0%, rgba(15, 23, 42, 0.55) 55%, transparent 100%);
}

.hero-copy {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
}

.hero-copy-inner {
  max-width: 36rem;
  color: #fff;
}

.hero-eyebrow {
  display: inline-block;
  padding: 0.3rem 0.7rem;
  background: rgba(37, 99, 235, 0.9);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  border-radius: 0.3rem;
  margin-bottom: 1.1rem;
}

.hero-copy h1 {
  margin: 0 0 1rem;
  font-size: 2rem;
  line-height: 1.2;
  font-weight: 700;
}

.hero-copy p {
  margin: 0 0 1.5rem;
  font-size: 1.05rem;
  color: #e2e8f0;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 1.25rem;
  display: flex;
  justify-content: center;
  gap: 0.55rem;
  z-index: 2;
}

.hero-dot {
  width: 2.25rem;
  height: 0.3rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.4);
  padding: 0;
  transition: background 0.15s ease;
}

.hero-dot.is-active,
.hero-dot:hover {
  background: var(--accent);
}

/* Page banner */
.page-banner {
  background: #0f172a;
  color: #fff;
  padding: 2.5rem 0;
}

.page-banner h1 {
  margin: 0 0 0.5rem;
  font-size: 1.85rem;
  font-weight: 700;
}

.page-banner p {
  margin: 0;
  color: #cbd5e1;
  max-width: 48rem;
}

.page-banner.media {
  position: relative;
  min-height: 16rem;
  padding: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.page-banner.media > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-banner.media .page-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.4));
}

.page-banner.media .container {
  position: relative;
  z-index: 1;
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.eyebrow {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 0.6rem;
  text-transform: uppercase;
}

.section-title {
  margin: 0 0 0.5rem;
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--ink);
}

.section-dark .section-title {
  color: #fff;
}

.section-desc {
  margin: 0;
  color: var(--muted);
  max-width: 36rem;
}

.section-dark .section-desc {
  color: #94a3b8;
}

.section-head {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-head .section-desc {
  margin: 0.5rem auto 0;
}

.section-head-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
}

/* Stats */
.stats-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  padding: 2.25rem 0;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.stat-item {
  text-align: center;
}

.stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.1;
  margin-bottom: 0.35rem;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--muted);
}

.stat-swatch {
  width: 2.5rem;
  height: 0.25rem;
  border-radius: 999px;
  margin: 0 auto 0.75rem;
}

/* Spec / filters / tags */
.spec-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  padding: 1.15rem;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.spec-grid .spec-full {
  grid-column: 1 / -1;
}

.spec-label {
  font-size: 0.7rem;
  color: var(--muted);
  margin-bottom: 0.25rem;
}

.spec-value {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
}

.filter-bar {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
  margin-bottom: 1.5rem;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.75rem;
}

.filter-row:last-child {
  margin-bottom: 0;
}

.filter-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #334155;
  min-width: 4rem;
}

.filter-chip {
  display: inline-flex;
  padding: 0.3rem 0.7rem;
  font-size: 0.75rem;
  border-radius: 0.35rem;
  border: 1px solid var(--line);
  background: var(--soft);
  color: #475569;
}

.filter-chip:hover,
.filter-chip.is-active {
  border-color: var(--primary);
  color: #fff;
  background: var(--primary);
}

.tag {
  display: inline-flex;
  padding: 0.25rem 0.65rem;
  background: var(--soft);
  color: #475569;
  font-size: 0.8rem;
  border-radius: 999px;
  border: 1px solid var(--line);
}

.tag:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.chip {
  display: inline-flex;
  padding: 0.25rem 0.6rem;
  background: #1e293b;
  color: #e2e8f0;
  font-size: 0.75rem;
  border-radius: 0.3rem;
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  color: var(--muted);
  padding: 0.9rem 0;
}

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

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

.breadcrumb-bar {
  background: var(--soft);
  border-bottom: 1px solid var(--line);
}

/* Pager */
.pager {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 2.5rem;
}

.pager a,
.pager span {
  min-width: 2.4rem;
  text-align: center;
  padding: 0.45rem 0.7rem;
  border-radius: 0.35rem;
  font-size: 0.875rem;
  border: 1px solid var(--line);
  color: #334155;
  background: #fff;
}

.pager a:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.pager .is-active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.pager .is-disabled,
.pager .is-gap {
  border-color: transparent;
  background: transparent;
  color: #94a3b8;
}

.empty-state {
  text-align: center;
  color: var(--muted);
  padding: 4rem 1rem;
}

.empty-state .empty-icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
  opacity: 0.5;
}

/* Prose */
.prose {
  color: #334155;
  line-height: 1.8;
  font-size: 1rem;
}

.prose h1,
.prose h2,
.prose h3,
.prose h4 {
  color: var(--ink);
  line-height: 1.3;
  margin: 1.5rem 0 0.75rem;
}

.prose p {
  margin: 0 0 1rem;
}

.prose img {
  border-radius: 0.5rem;
  margin: 1rem 0;
}

.prose ul,
.prose ol {
  padding-left: 1.25rem;
  margin: 0 0 1rem;
}

.prose a {
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
}

.prose th,
.prose td {
  border: 1px solid var(--line);
  padding: 0.5rem 0.75rem;
  text-align: left;
}

/* FAQ */
.faq-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  overflow: hidden;
  margin-bottom: 0.65rem;
}

.faq-q {
  width: 100%;
  text-align: left;
  padding: 0.95rem 1.15rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: #1e293b;
}

.faq-q svg {
  width: 1.1rem;
  height: 1.1rem;
  color: #94a3b8;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.faq-a {
  display: none;
  padding: 0 1.15rem 1rem;
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.7;
}

.faq-item.is-open .faq-a {
  display: block;
}

.faq-item.is-open .faq-q svg {
  transform: rotate(180deg);
}

/* Forms */
.form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-row label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: #334155;
  margin-bottom: 0.35rem;
}

.input,
.textarea {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1px solid #cbd5e1;
  border-radius: 0.45rem;
  font: inherit;
  color: var(--ink);
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.input:focus,
.textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.textarea {
  min-height: 8rem;
  resize: vertical;
}

.form-msg {
  display: none;
  padding: 0.7rem 0.85rem;
  border-radius: 0.4rem;
  font-size: 0.85rem;
  border: 1px solid transparent;
}

.form-msg.is-ok {
  display: block;
  background: #f0fdf4;
  color: #166534;
  border-color: #bbf7d0;
}

.form-msg.is-err {
  display: block;
  background: #fef2f2;
  color: #991b1b;
  border-color: #fecaca;
}

.captcha-row {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.captcha-row img {
  height: 2.5rem;
  border-radius: 0.35rem;
  cursor: pointer;
  border: 1px solid var(--line);
}

/* Footer */
.site-footer {
  background: #0f172a;
  color: #94a3b8;
  margin-top: 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding: 3rem 0 2.5rem;
}

.footer-brand-title {
  color: #fff;
  font-size: 1.05rem;
  font-weight: 600;
}

.footer-text {
  font-size: 0.875rem;
  line-height: 1.7;
  margin: 0.85rem 0 1rem;
  color: #94a3b8;
}

.footer-heading {
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  margin: 0 0 1rem;
  letter-spacing: 0.04em;
}

.footer-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  font-size: 0.875rem;
}

.footer-list a {
  color: #94a3b8;
}

.footer-list a:hover {
  color: var(--accent);
}

.footer-qr {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-qr img {
  width: 5rem;
  height: 5rem;
  object-fit: cover;
  border-radius: 0.35rem;
  border: 1px solid #334155;
  background: #1e293b;
}

.footer-links {
  border-top: 1px solid #1e293b;
  padding: 1rem 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  font-size: 0.75rem;
  color: #64748b;
}

.footer-links a {
  color: #64748b;
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-bottom {
  border-top: 1px solid #1e293b;
  padding: 1.1rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: #64748b;
}

/* Layout helpers */
.layout-2 {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}

.layout-main {
  min-width: 0;
}

.layout-side {
  min-width: 0;
}

.side-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-bottom: 1rem;
}

.side-card h3 {
  margin: 0 0 1rem;
  font-size: 1rem;
  font-weight: 700;
}

.side-cta {
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius);
  padding: 1.35rem;
}

.side-cta h3 {
  margin: 0 0 0.5rem;
  color: #fff;
}

.side-cta p {
  margin: 0 0 1rem;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.875rem;
}

.cta-band {
  position: relative;
  overflow: hidden;
  padding: 3.5rem 0;
  background: linear-gradient(135deg, var(--primary), #1e3a8a);
  color: #fff;
  text-align: center;
}

.cta-band h2 {
  margin: 0 0 0.75rem;
  font-size: 1.85rem;
}

.cta-band p {
  margin: 0 0 1.5rem;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.05rem;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.icon-box {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.5rem;
  background: rgba(37, 99, 235, 0.1);
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.icon-box svg {
  width: 1.25rem;
  height: 1.25rem;
}

.icon-box.dark {
  background: rgba(14, 165, 233, 0.2);
  color: var(--accent);
}

.step-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem;
}

.step-num {
  font-size: 1.75rem;
  font-weight: 700;
  color: rgba(14, 165, 233, 0.35);
  margin-bottom: 0.5rem;
}

.partner-tile {
  aspect-ratio: 3 / 2;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem;
}

.partner-tile img {
  max-height: 100%;
  max-width: 100%;
  object-fit: cover;
  opacity: 0.75;
  border-radius: 0.25rem;
}

.partner-tile:hover img {
  opacity: 1;
}

.quote-card {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.quote-mark {
  color: var(--accent);
  font-size: 2rem;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.quote-person {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1rem;
}

.quote-person img {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  object-fit: cover;
}

.media-frame {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--page);
  border: 1px solid var(--line);
}

.media-frame img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.media-frame.square img {
  aspect-ratio: 1;
}

.thumb-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.thumb {
  aspect-ratio: 1;
  border-radius: 0.4rem;
  overflow: hidden;
  border: 2px solid transparent;
  padding: 0;
  background: var(--page);
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thumb.is-active,
.thumb:hover {
  border-color: var(--accent);
}

.album-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(2, 6, 23, 0.88);
  padding: 2rem 1rem;
  align-items: center;
  justify-content: center;
}

.album-modal.is-open {
  display: flex;
}

.album-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
}

.album-modal img {
  max-height: 88vh;
  max-width: 100%;
  width: auto;
  margin: 0 auto;
  border-radius: 1rem;
  object-fit: contain;
}

.detail-banner {
  position: relative;
  min-height: 16rem;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #0f172a;
  color: #fff;
}

.detail-banner > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.88), rgba(15, 23, 42, 0.35));
}

.detail-banner .container {
  position: relative;
  z-index: 1;
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.highlight-box {
  padding: 1rem 1.15rem;
  background: rgba(37, 99, 235, 0.06);
  border-left: 4px solid var(--primary);
  border-radius: 0 0.4rem 0.4rem 0;
  color: #334155;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.result-box {
  padding: 1.1rem 1.25rem;
  background: rgba(14, 165, 233, 0.1);
  border-left: 4px solid var(--accent);
  border-radius: 0 0.4rem 0.4rem 0;
  margin-bottom: 1.5rem;
}

.about-float {
  display: none;
  position: absolute;
  bottom: -1.25rem;
  left: -1.25rem;
  background: var(--primary);
  color: #fff;
  padding: 1.1rem 1.35rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.prev-next {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-size: 0.875rem;
}

.prev-next a {
  color: #475569;
  max-width: 45%;
}

.prev-next a:hover {
  color: var(--primary);
}

.prev-next .label {
  display: block;
  font-size: 0.7rem;
  color: var(--muted);
  margin-bottom: 0.2rem;
}

.comment-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  padding: 1rem;
  margin-bottom: 0.75rem;
}

.comment-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.reply-hint {
  display: none;
  padding: 0.65rem 0.85rem;
  background: #eff6ff;
  color: #1d4ed8;
  border-radius: 0.4rem;
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
}

.reply-hint.is-show {
  display: block;
}

.not-found {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 1rem;
}

.not-found-code {
  font-size: 4.5rem;
  font-weight: 800;
  color: rgba(37, 99, 235, 0.25);
  line-height: 1;
  margin-bottom: 0.75rem;
}

@media (min-width: 768px) {
  .container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  .topbar {
    display: block;
  }

  .nav-links {
    display: flex;
  }

  .mobile-nav-btn {
    display: none;
  }

  .mobile-nav,
  .mobile-nav.is-open {
    display: none;
  }

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

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

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

  .stats-row {
    grid-template-columns: repeat(4, 1fr);
  }

  .hero-track {
    height: 36rem;
  }

  .hero-copy h1 {
    font-size: 2.75rem;
  }

  .page-banner h1 {
    font-size: 2.25rem;
  }

  .page-banner.media {
    min-height: 20rem;
  }

  .section-title {
    font-size: 2.15rem;
  }

  .footer-grid {
    grid-template-columns: 2fr 1fr 1.4fr 1.4fr;
  }

  .footer-bottom {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .layout-2.side-right {
    grid-template-columns: minmax(0, 1.6fr) minmax(16rem, 0.9fr);
  }

  .layout-2.side-left {
    grid-template-columns: minmax(16rem, 0.9fr) minmax(0, 1.6fr);
  }

  .layout-2.equal {
    grid-template-columns: 1fr 1fr;
  }

  .about-float {
    display: block;
  }

  .detail-banner {
    min-height: 22rem;
  }
}

@media (min-width: 1024px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .layout-2.article {
    grid-template-columns: minmax(0, 2fr) minmax(16rem, 0.85fr);
  }

  .layout-2.contact {
    grid-template-columns: minmax(0, 1.4fr) minmax(18rem, 0.9fr);
  }
}
