html,
body {
  margin: 0;
  padding: 0;
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: #f5f7fa;
  color: #0f172a;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.18s ease, background-color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

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

.site-shell {
  min-height: 100vh;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid #d8dee8;
}

.site-header-inner,
.site-main,
.site-footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header-inner {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.locale-switcher {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.locale-label {
  font-size: 12px;
  color: #64748b;
}

.locale-switcher a {
  min-height: 34px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  border: 1px solid #d8dee8;
  border-radius: 999px;
  font-size: 13px;
  color: #475569;
}

.locale-switcher a.active {
  border-color: #2563eb;
  color: #1d4ed8;
  background: #e8f0ff;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-title {
  font-size: 20px;
  font-weight: 700;
  color: #0f172a;
}

.brand-subtitle {
  font-size: 12px;
  color: #64748b;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.site-nav a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: #334155;
}

.site-nav a.active,
.site-nav a:hover {
  background: #e8f0ff;
  color: #1d4ed8;
}

.site-main {
  padding: 28px 0 48px;
}

.breadcrumbs {
  margin: 0 0 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-size: 13px;
  color: #64748b;
}

.breadcrumbs a {
  color: #475569;
}

.breadcrumbs-current {
  color: #0f172a;
  font-weight: 600;
}

.breadcrumbs-sep {
  color: #94a3b8;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(300px, 0.9fr);
  gap: 20px;
  margin-bottom: 24px;
}

.hero-copy,
.hero-side,
.panel,
.card,
.metric-card {
  background: #ffffff;
  border: 1px solid #d8dee8;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.03);
}

.hero-copy {
  padding: 28px;
}

.hero-eyebrow {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 700;
  color: #2563eb;
}

.hero-title {
  margin: 0 0 16px;
  font-size: 38px;
  line-height: 1.15;
}

.hero-lead {
  margin: 0 0 20px;
  font-size: 16px;
  line-height: 1.8;
  color: #334155;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

.search-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button,
.button-secondary {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.button {
  background: #2563eb;
  color: #ffffff;
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.18);
}

.button-secondary {
  background: #eef2ff;
  color: #3730a3;
}

.button:hover,
.button-secondary:hover {
  transform: translateY(-1px);
}

.button:hover {
  background: #1d4ed8;
}

.button-secondary:hover {
  background: #e0e7ff;
}

.hero-side {
  padding: 24px;
}

.hero-side h2 {
  margin: 0 0 16px;
  font-size: 18px;
}

.hero-side-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hero-side-item {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px;
  margin: -10px;
  border-radius: 8px;
}

.hero-side-item:hover {
  background: #f8fafc;
}

.hero-side-rank {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 18px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-side-name {
  font-size: 15px;
  font-weight: 700;
}

.hero-side-meta {
  margin-top: 4px;
  font-size: 12px;
  color: #64748b;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.info-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.info-strip-card {
  padding: 18px 20px;
  border: 1px solid #d8dee8;
  border-radius: 8px;
  background: #ffffff;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.info-strip-card:hover {
  transform: translateY(-1px);
  border-color: #cbd5e1;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.info-strip-title {
  font-size: 15px;
  font-weight: 700;
}

.info-strip-copy {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.7;
  color: #64748b;
}

.metric-card {
  padding: 20px;
}

.metric-label {
  font-size: 13px;
  color: #64748b;
}

.metric-value {
  margin-top: 10px;
  font-size: 30px;
  font-weight: 700;
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.section-title {
  margin: 0;
  font-size: 24px;
}

.section-desc {
  margin: 6px 0 0;
  font-size: 14px;
  color: #64748b;
}

.grid-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.catalog-copy {
  margin-top: 12px;
  max-width: 760px;
  font-size: 14px;
  line-height: 1.8;
  color: #475569;
}

.catalog-points {
  margin: 0 0 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.catalog-point {
  min-height: 34px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  border: 1px solid #d8dee8;
  border-radius: 999px;
  background: #f8fafc;
  font-size: 13px;
  font-weight: 600;
  color: #334155;
}

.catalog-seo-panel {
  margin-top: 20px;
}

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

.catalog-seo-item {
  padding: 16px;
  border: 1px solid #d8dee8;
  border-radius: 8px;
  background: #f8fafc;
}

.catalog-seo-item h3 {
  margin: 0 0 10px;
  font-size: 16px;
}

.catalog-seo-item p {
  margin: 0;
  font-size: 14px;
  line-height: 1.75;
  color: #475569;
}

.detail-link-panel {
  margin-top: 0;
}

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

.detail-link-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  border: 1px solid #d8dee8;
  border-radius: 8px;
  background: #f8fafc;
}

.detail-link-card strong {
  font-size: 15px;
  color: #0f172a;
}

.detail-link-card span {
  font-size: 14px;
  line-height: 1.7;
  color: #475569;
}

.detail-link-card:hover {
  border-color: #2563eb;
  background: #eff6ff;
}

.card {
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.card:hover {
  transform: translateY(-2px);
  border-color: #cbd5e1;
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.08);
}

.card-media {
  position: relative;
  aspect-ratio: 16 / 11;
  background: #e2e8f0;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #f8fafc;
}

.card-media-cover {
  min-height: 220px;
  max-height: 220px;
  overflow: hidden;
}

.card-media-cover img {
  object-fit: cover;
  background: #e2e8f0;
}

.card-media-label {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.72);
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  text-align: left;
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.18);
}

.card-media-placeholder,
.detail-media-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
  text-align: center;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
  color: #475569;
  background: linear-gradient(180deg, #f8fbff 0%, #eef4fb 100%);
}

.card-body {
  padding: 16px;
}

.card-title {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.45;
}

.card-meta,
.card-copy,
.muted {
  color: #64748b;
}

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

.card-copy {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.7;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.panel {
  padding: 20px;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.field-input,
.field-select {
  min-height: 42px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #ffffff;
  padding: 0 14px;
  font-size: 14px;
  color: #0f172a;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.field-input:focus,
.field-select:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
  background: #ffffff;
}

.search-input {
  min-width: min(100%, 420px);
  flex: 1 1 320px;
}

.table-note {
  margin-top: 12px;
  font-size: 13px;
  color: #64748b;
}

.pagination {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pagination a {
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #ffffff;
  color: #334155;
  font-size: 14px;
  font-weight: 600;
}

.pagination a.active,
.pagination a:hover {
  border-color: #2563eb;
  background: #e8f0ff;
  color: #1d4ed8;
}

.empty-state {
  text-align: center;
  padding-top: 32px;
  padding-bottom: 32px;
}

.detail {
  display: grid;
  grid-template-columns: minmax(300px, 420px) minmax(0, 1fr);
  gap: 24px;
}

.detail-media {
  border: 1px solid #d8dee8;
  border-radius: 8px;
  background: #ffffff;
  padding: 20px;
}

.detail-media-frame {
  aspect-ratio: 1 / 1;
  background: #f8fafc;
  border-radius: 8px;
  overflow: hidden;
}

.detail-media-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.detail-media-meta {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.detail-media-name {
  font-size: 18px;
  font-weight: 700;
  color: #0f172a;
}

.detail-media-sub {
  font-size: 13px;
  line-height: 1.6;
  color: #64748b;
}

.detail-body {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.detail-card {
  background: #ffffff;
  border: 1px solid #d8dee8;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.03);
}

.detail-title {
  margin: 0 0 8px;
  font-size: 30px;
}

.detail-intro {
  font-size: 15px;
  line-height: 1.8;
  color: #334155;
}

.detail-actions {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.link-chip {
  min-height: 38px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  border: 1px solid #d8dee8;
  border-radius: 999px;
  background: #f8fafc;
  font-size: 13px;
  font-weight: 600;
  color: #334155;
}

.link-chip:hover {
  border-color: #2563eb;
  color: #1d4ed8;
  background: #eff6ff;
}

.detail-summary-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.summary-chip {
  min-height: 72px;
  padding: 12px 14px;
  border: 1px solid #dbe4f0;
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.summary-chip-label {
  display: block;
  font-size: 12px;
  color: #64748b;
}

.summary-chip-value {
  display: block;
  margin-top: 8px;
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
}

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

.fact {
  min-height: 68px;
  padding: 14px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
}

.fact-label {
  font-size: 12px;
  color: #64748b;
}

.fact-value {
  margin-top: 8px;
  font-size: 15px;
  font-weight: 600;
}

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

.trait {
  padding: 14px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #ffffff;
}

.trait-name {
  font-size: 13px;
  color: #64748b;
}

.trait-score {
  margin-top: 8px;
  font-size: 22px;
  font-weight: 700;
}

.article-content {
  font-size: 15px;
  line-height: 1.9;
  color: #1e293b;
}

@media (max-width: 720px) {
  .catalog-seo-grid {
    grid-template-columns: 1fr;
  }

  .detail-link-grid {
    grid-template-columns: 1fr;
  }
}

.article-body-card {
  overflow: hidden;
}

.article-content-empty {
  color: #64748b;
}

.article-content > *:first-child {
  margin-top: 0;
}

.article-content > *:last-child {
  margin-bottom: 0;
}

.article-content h2,
.article-content h3,
.article-content h4 {
  color: #0f172a;
  line-height: 1.35;
}

.article-content p,
.article-content li,
.article-content blockquote {
  font-size: 15px;
  line-height: 1.9;
}

.article-content ul,
.article-content ol {
  padding-left: 22px;
}

.article-content a {
  color: #1d4ed8;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.article-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.site-footer {
  border-top: 1px solid #d8dee8;
  background: #ffffff;
}

.site-footer-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #64748b;
  font-size: 13px;
}

.footer-meta,
.footer-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-nav a {
  color: #475569;
}

.footer-nav a:hover {
  color: #1d4ed8;
}

.prose-page {
  max-width: 900px;
}

.prose-block + .prose-block {
  margin-top: 24px;
}

.prose-block h2 {
  margin: 0 0 10px;
  font-size: 18px;
}

.prose-block p {
  margin: 0;
  font-size: 15px;
  line-height: 1.9;
  color: #334155;
}

.contact-grid {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

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

.sitemap-section {
  padding: 18px 20px;
  border: 1px solid #d8dee8;
  border-radius: 8px;
  background: #ffffff;
}

.sitemap-section h2 {
  margin: 0 0 14px;
  font-size: 18px;
}

.sitemap-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sitemap-link {
  font-size: 14px;
  color: #334155;
}

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

.admin-auth-shell {
  min-height: calc(100vh - 220px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.admin-auth-card {
  width: min(100%, 460px);
  padding: 28px;
  border: 1px solid #d8dee8;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.06);
}

.admin-auth-head {
  margin-bottom: 18px;
}

.admin-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.admin-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.admin-label {
  font-size: 13px;
  font-weight: 600;
  color: #475569;
}

.admin-input {
  width: 100%;
  box-sizing: border-box;
}

.admin-submit {
  width: 100%;
  margin-top: 6px;
}

.admin-alert {
  margin-bottom: 14px;
  padding: 12px 14px;
  border: 1px solid #fecaca;
  border-radius: 8px;
  background: #fff1f2;
  color: #b91c1c;
  font-size: 14px;
}

.admin-shell {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.admin-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.admin-sidebar {
  position: sticky;
  top: 24px;
  display: grid;
  gap: 16px;
}

.admin-sidebar-card,
.admin-sidebar-nav,
.admin-sidebar-actions {
  background: #ffffff;
  border: 1px solid #dbe4f0;
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.06);
}

.admin-sidebar-title {
  font-size: 13px;
  font-weight: 700;
  color: #3b4b65;
  text-transform: uppercase;
}

.admin-sidebar-user {
  margin-top: 10px;
  display: grid;
  gap: 4px;
  color: #1e293b;
}

.admin-sidebar-user-label {
  font-size: 13px;
  color: #64748b;
}

.admin-sidebar-nav {
  display: grid;
  gap: 8px;
}

.admin-sidebar-link {
  display: block;
  padding: 12px 14px;
  border-radius: 12px;
  color: #1e293b;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.admin-sidebar-link:hover {
  background: #eef4ff;
  border-color: #c9d8f4;
  color: #0f172a;
  transform: translateY(-1px);
}

.admin-sidebar-link.active {
  background: #1d4ed8;
  border-color: #1d4ed8;
  color: #ffffff;
}

.admin-sidebar-actions {
  display: grid;
  gap: 10px;
}

.admin-sidebar-actions form {
  margin: 0;
}

.admin-sidebar-button {
  width: 100%;
  justify-content: center;
}

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

.admin-overview-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.admin-head-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.admin-metrics {
  margin-bottom: 0;
}

.admin-metric-text {
  font-size: 22px;
  line-height: 1.4;
}

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

.admin-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.admin-list-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
}

.admin-list-item:hover {
  border-color: #cbd5e1;
  background: #ffffff;
}

.admin-list-title {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
}

.admin-list-meta {
  font-size: 12px;
  color: #64748b;
}

.admin-table {
  display: flex;
  flex-direction: column;
}

.admin-table-head,
.admin-table-row {
  display: grid;
  grid-template-columns: 90px minmax(0, 2fr) minmax(160px, 1.2fr) minmax(140px, 1fr) 110px;
  gap: 14px;
  align-items: center;
}

.admin-table-head-articles,
.admin-table-row-articles {
  grid-template-columns: 90px minmax(0, 2.4fr) minmax(180px, 1fr) 110px;
}

.admin-table-head {
  padding: 0 0 12px;
  border-bottom: 1px solid #d8dee8;
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
}

.admin-table-row {
  padding: 14px 0;
  border-bottom: 1px solid #eef2f7;
  font-size: 14px;
  color: #334155;
}

.admin-cell-muted {
  color: #64748b;
}

.admin-cell-strong {
  font-weight: 700;
  color: #0f172a;
}

.admin-inline-link {
  font-size: 13px;
  font-weight: 600;
  color: #1d4ed8;
}

.admin-inline-link:hover {
  color: #1e40af;
}

.admin-inline-link-danger {
  color: #dc2626;
}

.admin-inline-link-danger:hover {
  color: #991b1b;
}

.admin-notice {
  padding: 12px 14px;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  background: #f0fdf4;
  color: #166534;
  font-size: 14px;
}

.admin-edit-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

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

.admin-form-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.admin-field-span-2 {
  grid-column: span 2;
}

.admin-textarea {
  min-height: 120px;
  width: 100%;
  box-sizing: border-box;
  padding: 12px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #ffffff;
  font-size: 14px;
  line-height: 1.7;
  color: #0f172a;
  resize: vertical;
}

.admin-textarea:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.admin-textarea-code {
  font-family: Consolas, "Courier New", monospace;
  font-size: 13px;
  line-height: 1.65;
}

.admin-article-editor {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 16px;
  align-items: start;
}

.admin-article-editor-main {
  display: grid;
  gap: 10px;
}

.admin-article-preview {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #ffffff;
  padding: 14px;
}

.admin-article-preview-body {
  min-height: 420px;
  margin-top: 10px;
}

.admin-editor-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.admin-editor-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-editor-tool {
  min-width: 54px;
}

.admin-editor-note {
  font-size: 13px;
  line-height: 1.7;
  color: #64748b;
}

.admin-editor-helper {
  padding: 12px 14px;
  border: 1px solid #dbe4f0;
  border-radius: 10px;
  background: #f8fbff;
}

.admin-editor-helper-title {
  font-size: 13px;
  font-weight: 700;
  color: #334155;
}

.admin-editor-helper-body {
  margin-top: 8px;
  display: grid;
  gap: 8px;
  font-size: 13px;
  line-height: 1.7;
  color: #64748b;
}

.admin-editor-helper code {
  display: inline-block;
  width: fit-content;
  max-width: 100%;
  padding: 4px 8px;
  border-radius: 6px;
  background: #eaf2ff;
  color: #1e3a8a;
  word-break: break-all;
}

.admin-form-actions {
  display: flex;
  justify-content: flex-end;
}

.admin-row-actions {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 10px;
}

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

.admin-section-block {
  padding: 16px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
}

.admin-section-block-new {
  border-style: dashed;
  border-color: #bfdbfe;
  background: #f8fbff;
}

.admin-section-key {
  margin-bottom: 12px;
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
}

.admin-comment-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.admin-comment-card {
  padding: 16px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #ffffff;
}

.admin-comment-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.admin-comment-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 12px;
  color: #64748b;
}

.admin-comment-id {
  font-weight: 700;
  color: #0f172a;
}

.admin-comment-body {
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.8;
  color: #334155;
}

.admin-comment-parent {
  margin-top: 12px;
  padding: 12px 14px;
  border-left: 3px solid #94a3b8;
  border-radius: 10px;
  background: #f8fafc;
}

.admin-comment-parent-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
  color: #64748b;
}

.admin-comment-parent-body {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.7;
  color: #475569;
}

.admin-comment-actions {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.admin-comment-actions form {
  margin: 0;
}

.admin-filter-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 12px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #ffffff;
  color: #334155;
  font-size: 14px;
}

.admin-filter-check input {
  margin: 0;
}

.admin-active-filters {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.admin-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  background: #f8fafc;
  color: #334155;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.admin-filter-chip:hover {
  border-color: #94a3b8;
  background: #f1f5f9;
}

.admin-filter-chip strong {
  font-size: 16px;
  line-height: 1;
  color: #64748b;
}

.admin-delete-panel {
  display: grid;
  gap: 20px;
}

.admin-delete-record {
  display: grid;
  gap: 8px;
}

.admin-delete-label {
  font-size: 13px;
  color: #64748b;
  font-weight: 700;
}

.admin-delete-value {
  font-size: 22px;
  line-height: 1.4;
  color: #0f172a;
  font-weight: 700;
}

.admin-delete-meta {
  font-size: 14px;
  color: #475569;
}

.admin-delete-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
}

.button-danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid #dc2626;
  border-radius: 8px;
  background: #dc2626;
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.button-danger:hover {
  background: #b91c1c;
  border-color: #b91c1c;
}

.admin-empty-state {
  display: grid;
  gap: 10px;
  justify-items: center;
  color: #475569;
}

.admin-empty-state h2 {
  margin: 0;
  font-size: 20px;
  line-height: 1.4;
  color: #0f172a;
}

.admin-empty-state p {
  margin: 0;
  max-width: 520px;
  font-size: 14px;
  line-height: 1.8;
}

.admin-empty-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.admin-status-card {
  color: inherit;
  text-decoration: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.admin-status-card:hover {
  border-color: #94a3b8;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  transform: translateY(-1px);
}

.admin-status-card.is-active {
  border-color: #0f172a;
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.12);
}

.admin-editor-hints {
  margin: 8px 0 0;
  padding-left: 18px;
  display: grid;
  gap: 6px;
  color: #475569;
  font-size: 13px;
  line-height: 1.7;
}

.admin-section-remove {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid #fecaca;
  border-radius: 999px;
  background: #fef2f2;
  color: #991b1b;
  font-size: 13px;
  font-weight: 600;
}

.admin-section-remove input {
  margin: 0;
}

@media (max-width: 1100px) {
  .hero,
  .detail {
    grid-template-columns: 1fr;
  }

  .metrics,
  .grid-cards,
  .info-strip,
  .sitemap-grid,
  .admin-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .admin-sidebar {
    position: static;
  }

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

  .admin-table-head,
  .admin-table-row,
  .admin-table-head-articles,
  .admin-table-row-articles {
    grid-template-columns: 80px minmax(0, 2fr) minmax(140px, 1fr) 100px;
  }

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

  .admin-article-editor {
    grid-template-columns: 1fr;
  }

  .admin-field-span-2 {
    grid-column: span 1;
  }

  .admin-trait-grid {
    grid-template-columns: 1fr;
  }

  .admin-comment-top {
    flex-direction: column;
  }

  .admin-table-head span:nth-child(4),
  .admin-table-row span:nth-child(4) {
    display: none;
  }
}

@media (max-width: 700px) {
  .site-header-inner,
  .site-main,
  .site-footer-inner {
    width: min(100%, calc(100% - 20px));
  }

  .site-header-inner {
    align-items: flex-start;
    flex-direction: column;
    padding: 12px 0;
  }

  .hero-copy,
  .hero-side,
  .panel,
  .detail-card,
  .detail-media,
  .metric-card {
    padding: 16px;
  }

  .hero-title {
    font-size: 30px;
  }

  .metrics,
  .grid-cards,
  .info-strip,
  .detail-facts,
  .detail-summary-grid,
  .trait-grid,
  .contact-grid,
  .sitemap-grid,
  .admin-grid {
    grid-template-columns: 1fr;
  }

  .admin-overview-head {
    flex-direction: column;
    align-items: stretch;
  }

  .admin-sidebar-card,
  .admin-sidebar-nav,
  .admin-sidebar-actions {
    padding: 16px;
  }

  .admin-table-head,
  .admin-table-row,
  .admin-table-head-articles,
  .admin-table-row-articles {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .admin-table-head {
    display: none;
  }

  .admin-table-row {
    padding: 14px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #ffffff;
    margin-bottom: 10px;
  }

  .site-footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}
