/* 乐在云 — 大气蓝色科技感设计体系（克制、清晰、偏商务） */
:root {
  --color-primary: #1A56DB;
  --color-primary-hover: #1347C0;
  --color-primary-deep: #0F3A9E;
  --color-primary-soft: #E8F0FE;
  --color-primary-mute: #D6E4FF;
  --color-accent: #0E7490;
  --color-bg: #F3F6FB;
  --color-bg-elevated: #EEF3FA;
  --color-surface: #FFFFFF;
  --color-text: #0F1C2E;
  --color-text-secondary: #5B6B7C;
  --color-text-muted: #8494A7;
  --color-border: #D8E0EC;
  --color-border-strong: #B8C5D6;
  --color-danger: #C62828;
  --color-warning: #B45309;
  --color-success: #0F766E;
  --color-footer: #0B1A2E;
  --radius-sm: 6px;
  --radius: 8px;
  --radius-lg: 12px;
  --shadow-sm: 0 1px 2px rgba(15, 28, 46, 0.04);
  --shadow: 0 8px 24px rgba(15, 28, 46, 0.06);
  --shadow-focus: 0 0 0 3px rgba(26, 86, 219, 0.18);
  --max-width: 1200px;
  --header-h: 72px;
  /* 拉丁：本地 IBM Plex；中文：系统字体（不拉 Google Noto SC） */
  --font-sans: "IBM Plex Sans", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", "Sarasa Mono SC", "Consolas", "Microsoft YaHei Mono", ui-monospace, monospace;
  --transition: 0.16s ease;
  --line: 1px solid var(--color-border);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--color-text);
  background-color: var(--color-bg);
  background-image:
    linear-gradient(180deg, rgba(232, 240, 254, 0.55) 0%, transparent 220px),
    radial-gradient(ellipse 90% 50% at 100% 0%, rgba(26, 86, 219, 0.06), transparent 55%),
    linear-gradient(rgba(26, 86, 219, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26, 86, 219, 0.035) 1px, transparent 1px);
  background-size: auto, auto, 48px 48px, 48px 48px;
  background-attachment: fixed;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  background: var(--color-primary-mute);
  color: var(--color-text);
}

:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 300;
  background: var(--color-primary);
  color: #fff;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
}

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

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

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

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

button,
input,
select,
textarea {
  font: inherit;
}

h1, h2, h3, h4 {
  margin: 0 0 0.45em;
  line-height: 1.28;
  color: var(--color-text);
  letter-spacing: -0.015em;
  font-weight: 700;
}

p {
  margin: 0 0 1em;
  color: var(--color-text-secondary);
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.demo-banner {
  background: linear-gradient(90deg, #0F3A9E, #1A56DB);
  color: #E8F0FE;
  font-size: 12.5px;
  text-align: center;
  padding: 7px 16px;
  letter-spacing: 0.01em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px) saturate(1.2);
  border-bottom: 1px solid rgba(216, 224, 236, 0.9);
  box-shadow: 0 1px 0 rgba(15, 28, 46, 0.03);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 20px;
  padding-top: 8px;
  padding-bottom: 8px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--color-text);
  flex-shrink: 0;
  min-width: 0;
}

.brand:hover {
  color: var(--color-text);
}

.brand-logo {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(145deg, #2B6DE8 0%, #1A56DB 55%, #0F3A9E 100%);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 6px 14px rgba(26, 86, 219, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.22);
  flex-shrink: 0;
  overflow: hidden;
}

.brand-logo.has-image {
  background: transparent;
  box-shadow: none;
  color: inherit;
}

.brand-logo.has-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

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

.brand-name {
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.brand-name small {
  margin-left: 4px;
  font-size: 11px;
  font-weight: 500;
  color: var(--color-text-muted);
  letter-spacing: 0;
}

.brand-tagline {
  font-size: 12px;
  color: var(--color-text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 240px;
}

.nav-desktop {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex: 1;
}

.nav-link {
  position: relative;
  color: var(--color-text-secondary);
  padding: 10px 12px;
  border-radius: 0;
  font-size: 14px;
  font-weight: 500;
  transition: color var(--transition);
  background: transparent;
}

.nav-link:hover {
  color: var(--color-primary);
  background: transparent;
}

.nav-link.is-active {
  color: var(--color-primary);
  font-weight: 600;
  background: transparent;
}

.nav-link.is-active::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 2px;
  height: 2px;
  border-radius: 2px;
  background: var(--color-primary);
}

.nav-item {
  position: relative;
}

.nav-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 0;
  cursor: pointer;
  font: inherit;
}

.nav-caret {
  transition: transform var(--transition);
}

.nav-item.is-open .nav-caret,
.nav-mobile-toggle[aria-expanded="true"] .nav-caret {
  transform: rotate(180deg);
}

.nav-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 196px;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
  z-index: 40;
}

.nav-dropdown[hidden] {
  display: none !important;
}

.nav-dropdown-link {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--color-text-secondary);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
}

.nav-dropdown-link:hover,
.nav-dropdown-link:focus-visible {
  background: var(--color-primary-soft);
  color: var(--color-primary);
  outline: none;
}

.nav-mobile-group {
  display: block;
}

.nav-mobile-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 0;
  background: transparent;
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.nav-mobile-submenu {
  padding: 0 0 6px 12px;
}

.nav-mobile-submenu[hidden] {
  display: none !important;
}

.nav-mobile-submenu .nav-dropdown-link {
  padding: 10px 10px;
}

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

.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
  width: min(260px, 28vw);
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: #F7F9FC;
  color: var(--color-text-muted);
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}

.header-search:focus-within {
  border-color: var(--color-primary-mute);
  background: #fff;
  box-shadow: var(--shadow-focus);
  color: var(--color-primary);
}

.header-search input {
  width: 100%;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--color-text);
  font-size: 13px;
}

.header-search input::placeholder {
  color: var(--color-text-muted);
}

.header-search.is-mobile {
  width: 100%;
  margin-bottom: 8px;
}

.btn-icon {
  width: 38px;
  height: 38px;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  cursor: pointer;
  color: var(--color-text-secondary);
  transition: border-color var(--transition), color var(--transition), background var(--transition);
}

.btn-icon:hover {
  border-color: var(--color-primary-mute);
  color: var(--color-primary);
  background: var(--color-primary-soft);
}

.nav-toggle {
  display: none;
}

.nav-mobile {
  display: none;
  border-top: var(--line);
  background: var(--color-surface);
  padding: 10px 20px 18px;
}

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

.nav-mobile .nav-link {
  display: block;
  padding: 12px 10px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition), color var(--transition), box-shadow var(--transition);
  white-space: nowrap;
  text-decoration: none;
  line-height: 1.2;
}

.btn-primary {
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 1px 0 rgba(15, 58, 158, 0.25);
}

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

.btn-secondary {
  background: var(--color-surface);
  color: var(--color-text);
  border-color: var(--color-border);
}

.btn-secondary:hover {
  border-color: var(--color-primary-mute);
  color: var(--color-primary);
  background: var(--color-primary-soft);
}

.btn-ghost {
  background: transparent;
  color: var(--color-text-secondary);
}

.btn-ghost:hover {
  color: var(--color-primary);
  background: var(--color-primary-soft);
}

.btn-sm {
  padding: 6px 11px;
  font-size: 13px;
}

.btn-block {
  width: 100%;
}

/* Search */
.search-bar {
  display: flex;
  gap: 8px;
  width: 100%;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 5px;
  box-shadow: var(--shadow-sm);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.search-bar:focus-within {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-focus);
}

.search-bar input {
  flex: 1;
  border: none;
  outline: none;
  padding: 10px 14px;
  background: transparent;
  min-width: 0;
  color: var(--color-text);
}

.search-bar input::placeholder {
  color: var(--color-text-muted);
}

.search-bar.lg {
  padding: 7px;
  border-radius: var(--radius-lg);
}

.search-bar.lg input {
  font-size: 16px;
  padding: 12px 14px;
}

/* Hero */
.hero {
  padding: 64px 0 48px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 80% at 15% 20%, rgba(26, 86, 219, 0.09), transparent 50%),
    radial-gradient(ellipse 50% 60% at 90% 10%, rgba(14, 116, 144, 0.06), transparent 45%),
    linear-gradient(180deg, #FFFFFF 0%, rgba(243, 246, 251, 0.4) 100%);
  border-bottom: var(--line);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(26, 86, 219, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26, 86, 219, 0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: linear-gradient(180deg, #000 30%, transparent 95%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  text-align: center;
  max-width: 860px;
  margin: 0 auto;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: var(--color-primary);
  background: var(--color-primary-soft);
  border: 1px solid var(--color-primary-mute);
  border-radius: 999px;
  padding: 7px 14px;
  margin-bottom: 20px;
}

.hero-kicker svg {
  flex-shrink: 0;
}

.hero h1 {
  font-size: clamp(30px, 4.4vw, 42px);
  font-weight: 750;
  letter-spacing: -0.03em;
  margin-bottom: 14px;
  color: var(--color-text);
}

.hero-desc {
  font-size: 16px;
  margin: 0 auto 28px;
  max-width: 640px;
  color: var(--color-text-secondary);
  line-height: 1.7;
}

.hero .search-bar,
.hero .hero-search {
  max-width: 680px;
  margin: 0 auto;
}

.hero-search.search-bar,
.search-bar.lg.hero-search {
  align-items: center;
  gap: 6px;
  padding: 6px 6px 6px 16px;
  border-radius: 999px;
  box-shadow: 0 10px 28px rgba(15, 28, 46, 0.08);
}

.hero-search-icon {
  display: grid;
  place-items: center;
  color: var(--color-text-muted);
  flex-shrink: 0;
}

.hero-search input {
  padding-left: 8px;
}

.hero-search-btn {
  border-radius: 999px;
  padding-inline: 18px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.hero-quick {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 12px;
  margin-top: 18px;
}

.hero-quick-label {
  font-size: 13px;
  color: var(--color-text-muted);
  font-weight: 500;
}

.hero-quick-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.hero-quick-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: border-color var(--transition), color var(--transition), box-shadow var(--transition);
}

.hero-quick-link svg {
  color: var(--color-primary);
  flex-shrink: 0;
}

.hero-quick-link:hover {
  border-color: var(--color-primary-mute);
  color: var(--color-primary-deep);
  box-shadow: 0 6px 16px rgba(26, 86, 219, 0.08);
}

.hero-quick-link.is-soon {
  opacity: 0.72;
  cursor: default;
  pointer-events: none;
}

/* Sections */
.section {
  padding: 52px 0;
}

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

.section-header h2 {
  font-size: 22px;
  margin-bottom: 4px;
}

.section-header p {
  margin: 0;
  font-size: 14px;
}

/* Cards / grids */
.grid-categories {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.category-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 20px;
  transition: border-color var(--transition), box-shadow var(--transition);
  color: inherit;
  display: block;
  position: relative;
  box-shadow: var(--shadow-sm);
}

.category-card:hover {
  border-color: var(--color-primary-mute);
  box-shadow: var(--shadow);
  color: inherit;
}

.category-card.is-disabled {
  opacity: 0.72;
  cursor: not-allowed;
  pointer-events: none;
  background: linear-gradient(180deg, #fff, var(--color-bg-elevated));
}

.category-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--color-primary-soft);
  color: var(--color-primary);
  border: 1px solid var(--color-primary-mute);
  display: grid;
  place-items: center;
  margin-bottom: 14px;
}

.category-card h3 {
  font-size: 15px;
  margin-bottom: 6px;
}

.category-card p {
  margin: 0;
  font-size: 13px;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  background: var(--color-bg-elevated);
  color: var(--color-text-secondary);
  border: 1px solid var(--color-border);
}

.badge-soon {
  background: #FFF8E8;
  color: #8A5A00;
  border-color: #F0D9A0;
}

.badge-demo {
  background: var(--color-primary-soft);
  color: var(--color-primary-deep);
  border-color: var(--color-primary-mute);
}

.badge-network {
  background: #E6F7F4;
  color: var(--color-success);
  border-color: #B7E4DB;
}

.badge-network.is-cn2 {
  background: #D7E6FF;
  color: var(--color-primary-deep);
  border-color: #B7CFFF;
}

.category-card .badge {
  position: absolute;
  top: 14px;
  right: 14px;
}

/* Quick filter */
.quick-filter {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}

.quick-filter.is-embedded {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
}

.quick-filter-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr) auto;
  gap: 12px;
  align-items: end;
}

.form-group label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--color-text-secondary);
  margin-bottom: 6px;
  letter-spacing: 0.01em;
}

.form-control {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  color: var(--color-text);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-control:focus {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-focus);
}

/* Provider cards */
.grid-providers {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.home-providers-grid {
  gap: 16px;
}

.providers-index-pager {
  margin-top: 22px;
  display: flex;
  justify-content: center;
}

.home-provider-card {
  position: relative;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 14px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: box-shadow var(--transition), border-color var(--transition), transform var(--transition);
  box-shadow: var(--shadow-sm);
  min-width: 0;
}

.home-provider-card:hover {
  border-color: var(--color-primary-mute);
  box-shadow: 0 10px 24px rgba(15, 28, 46, 0.08);
  transform: translateY(-1px);
}

.home-provider-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px 8px;
  border-radius: 999px;
  background: #D7E6FF;
  color: var(--color-primary-deep);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.3;
}

.home-provider-top {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.home-provider-card:has(.home-provider-badge) .home-provider-top {
  padding-right: 56px;
}

.home-provider-logo {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.02em;
  flex-shrink: 0;
  overflow: hidden;
  line-height: 0;
}

.home-provider-card.tone-1 .home-provider-logo { background: linear-gradient(145deg, #3B82F6, #1A56DB); }
.home-provider-card.tone-2 .home-provider-logo { background: linear-gradient(145deg, #2563EB, #0F3A9E); }
.home-provider-card.tone-3 .home-provider-logo { background: linear-gradient(145deg, #7C6CF0, #4F46E5); }
.home-provider-card.tone-4 .home-provider-logo { background: linear-gradient(145deg, #14B8A6, #0F766E); }

.home-provider-logo.has-logo {
  background: #fff;
  border: 1px solid var(--color-border);
}

.home-provider-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.home-provider-identity {
  min-width: 0;
}

.home-provider-identity h3 {
  margin: 0 0 6px;
  font-size: 16px;
  line-height: 1.3;
}

.home-provider-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  font-size: 12px;
  color: var(--color-text-muted);
}

.home-provider-meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.home-provider-meta svg {
  flex-shrink: 0;
  color: var(--color-text-muted);
}

.home-provider-desc {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--color-text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.home-provider-tags {
  margin-top: 2px;
}

.home-provider-actions {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}

.home-provider-actions .btn {
  flex: 1;
  justify-content: center;
  gap: 5px;
}

.provider-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: box-shadow var(--transition), border-color var(--transition);
  box-shadow: var(--shadow-sm);
}

.provider-card:hover {
  border-color: var(--color-primary-mute);
  box-shadow: var(--shadow);
}

.provider-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.provider-avatar {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: linear-gradient(145deg, #1A56DB, #0F3A9E);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  object-fit: cover;
  font-size: 13px;
  flex-shrink: 0;
  border: 1px solid rgba(15, 58, 158, 0.2);
  line-height: 0;
}

.provider-avatar.lg {
  width: 60px;
  height: 60px;
  font-size: 18px;
  border-radius: 10px;
}

.provider-card h3 {
  font-size: 15px;
  margin: 0 0 2px;
}

.provider-card .meta {
  font-size: 12px;
  color: var(--color-text-muted);
  font-variant-numeric: tabular-nums;
}

.provider-card p {
  font-size: 13px;
  margin: 0;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.tag {
  font-size: 12px;
  padding: 3px 8px;
  border-radius: 4px;
  background: var(--color-bg-elevated);
  color: var(--color-text-secondary);
  border: 1px solid var(--color-border);
}

/* Tables */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface);
  -webkit-overflow-scrolling: touch;
  box-shadow: var(--shadow-sm);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 1180px;
  font-size: 13.5px;
}

.data-table-home,
.data-table-compact {
  min-width: 960px;
}

.data-table .col-bench-simple {
  width: 64px;
  min-width: 64px;
  max-width: 72px;
  white-space: nowrap;
  text-align: center;
  padding-left: 6px;
  padding-right: 6px;
}

.data-table .col-actions-compact {
  width: 72px;
  min-width: 72px;
  white-space: nowrap;
}

.data-table .col-provider-text {
  max-width: 120px;
}

.cell-provider.is-text-only {
  gap: 0;
}

.bench-cell.is-simple {
  display: inline-flex;
  min-width: 0;
  max-width: none;
  justify-content: center;
  padding: 0;
  margin: 0;
}

.bench-cell.is-simple .bench-pill {
  white-space: nowrap;
  padding: 2px 6px;
  font-size: 10px;
}

.data-table th {
  text-align: left;
  padding: 11px 14px;
  background: linear-gradient(180deg, #F7FAFF, #F0F5FC);
  color: var(--color-text-secondary);
  font-weight: 600;
  font-size: 12px;
  border-bottom: 1px solid var(--color-border);
  white-space: nowrap;
  letter-spacing: 0.01em;
}

.data-table td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--color-border);
  vertical-align: middle;
}

.data-table tr:last-child td {
  border-bottom: none;
}

.data-table tbody tr {
  transition: background var(--transition);
}

.data-table tbody tr:hover {
  background: #F7FAFF;
}

.cell-provider {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: var(--color-text);
}

.cell-provider:hover {
  color: var(--color-primary);
}

.cell-provider .provider-avatar {
  width: 30px;
  height: 30px;
  font-size: 10px;
  border-radius: 6px;
}

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

.price-main {
  font-weight: 700;
  color: var(--color-text);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  font-family: var(--font-mono);
  font-size: 13px;
}

.price-period {
  font-size: 12px;
  color: var(--color-text-secondary);
}

.price-equiv {
  font-size: 11px;
  color: var(--color-accent);
  font-variant-numeric: tabular-nums;
}

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

/* Home section panels (shared head style) */
.home-panel {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 18px;
  box-shadow: 0 10px 28px rgba(15, 28, 46, 0.06);
  overflow: hidden;
}

.home-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px 16px;
  border-bottom: 1px solid var(--color-border);
}

.home-panel-head.is-flush {
  border-bottom: 0;
  padding-bottom: 0;
}

.home-panel-title {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
}

.home-panel-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(145deg, #2B6DE8 0%, #1A56DB 55%, #0F3A9E 100%);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 8px 16px rgba(26, 86, 219, 0.24);
  line-height: 0;
}

.home-panel-icon svg {
  display: block;
}

.home-panel-title h2 {
  margin: 0 0 4px;
  font-size: 20px;
  line-height: 1.3;
}

.home-panel-title p {
  margin: 0;
  font-size: 13px;
  color: var(--color-text-secondary);
  line-height: 1.55;
}

.home-panel-more {
  flex-shrink: 0;
  white-space: nowrap;
}

.home-panel-body {
  padding: 18px 22px 22px;
}

.home-panel-body.is-flush {
  padding: 0;
}

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

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

.home-mini-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 100%;
  padding: 16px;
  border: 1px solid var(--color-border);
  border-radius: 14px;
  background: #FBFCFE;
}

.home-mini-card h3 {
  margin: 0;
  font-size: 16px;
  line-height: 1.4;
}

.home-mini-card h3 a {
  color: var(--color-text);
  text-decoration: none;
}

.home-mini-card h3 a:hover {
  color: var(--color-primary);
}

.home-mini-card > p {
  margin: 0;
  flex: 1;
  color: var(--color-text-secondary);
  font-size: 13px;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.home-mini-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--color-text-muted);
  font-size: 12px;
}

.home-mini-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--color-primary-soft);
  color: var(--color-primary);
  font-size: 11px;
  font-weight: 600;
}

.home-mini-badge.is-soft {
  background: #EEF2F7;
  color: var(--color-text-secondary);
}

.home-mini-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 4px;
  font-size: 13px;
}

.home-mini-card-foot strong {
  color: var(--color-primary);
  font-weight: 700;
}

.home-mini-card-foot a {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 600;
  white-space: nowrap;
}

.featured-section {
  padding-top: 12px;
}

/* Shared rich plan table (home featured / VPS / provider) */
.plan-rich-wrap {
  border-radius: 14px;
  overflow: auto;
}

.home-panel .plan-rich-wrap {
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
}

.plan-rich-table {
  min-width: 1080px;
}

.plan-rich-table th {
  background: #F5F8FD;
}

.plan-rich-table td {
  padding-top: 16px;
  padding-bottom: 16px;
}

.plan-rich-table .col-compare {
  width: 64px;
  min-width: 64px;
  white-space: nowrap;
}

.plan-rich-provider {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.plan-rich-logo {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(145deg, #2B6DE8, #1A56DB);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  flex-shrink: 0;
  overflow: hidden;
  line-height: 0;
}

.plan-rich-logo.has-logo {
  background: #fff;
  border: 1px solid var(--color-border);
}

.plan-rich-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.plan-rich-copy {
  min-width: 0;
}

.plan-rich-provider-name {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 650;
  color: var(--color-text);
  text-decoration: none;
  font-size: 13px;
}

.plan-rich-provider-name:hover {
  color: var(--color-primary);
}

.plan-rich-provider-name svg {
  color: var(--color-text-muted);
}

.plan-rich-plan-name {
  margin-top: 2px;
  font-size: 12px;
  color: var(--color-text-secondary);
}

.plan-rich-plan-name.is-solo {
  display: block;
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--color-text);
}

.plan-rich-plan-sub {
  margin-top: 2px;
  font-size: 12px;
  color: var(--color-text-secondary);
}

.plan-rich-spec {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--color-text);
  white-space: nowrap;
}

.plan-rich-spec svg {
  color: var(--color-primary);
  flex-shrink: 0;
}

.plan-rich-price {
  display: flex;
  flex-direction: column;
  gap: 2px;
  white-space: nowrap;
}

.plan-rich-price strong {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-primary);
  font-variant-numeric: tabular-nums;
  font-family: var(--font-mono);
  letter-spacing: -0.02em;
}

.plan-rich-price span {
  font-size: 12px;
  color: var(--color-text-muted);
}

.plan-rich-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.plan-rich-cards {
  display: grid;
  gap: 12px;
}

.plan-rich-card .plan-rich-actions {
  margin-top: 12px;
}

.plan-card-bench {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

@media (max-width: 900px) {
  .home-panel-head {
    flex-direction: column;
    align-items: stretch;
  }

  .home-panel-more {
    align-self: flex-start;
  }
}

/* Featured / intro */
.intro-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.intro-item {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.intro-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--color-primary);
  opacity: 0.85;
}

.intro-item h3 {
  font-size: 15px;
  margin-bottom: 8px;
}

.intro-item p {
  margin: 0;
  font-size: 13px;
}

.intro-num {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: var(--color-primary-soft);
  color: var(--color-primary);
  border: 1px solid var(--color-primary-mute);
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
  font-family: var(--font-mono);
  margin-bottom: 12px;
}

/* Footer */
.site-footer {
  position: relative;
  z-index: 20;
  overflow: visible;
  background:
    radial-gradient(ellipse 55% 70% at 8% 100%, rgba(43, 109, 232, 0.28), transparent 55%),
    radial-gradient(ellipse 45% 55% at 92% 0%, rgba(14, 116, 144, 0.18), transparent 50%),
    linear-gradient(180deg, #0D1B2E 0%, #0B1626 100%);
  color: #A8B8CC;
  padding: 56px 0 24px;
  margin-top: 56px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 50% 60% at 68% 100%, rgba(26, 86, 219, 0.22), transparent 70%);
  pointer-events: none;
}

.footer-main {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(260px, 1.2fr) minmax(420px, 2.2fr) minmax(168px, 0.85fr);
  gap: 36px 40px;
  align-items: start;
  margin-bottom: 28px;
}

.footer-brand-col {
  min-width: 0;
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px 24px;
  min-width: 0;
}

.footer-links-col {
  min-width: 0;
}

.footer-brand {
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  text-decoration: none;
}

.footer-brand:hover {
  color: #fff;
}

.footer-brand-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.2;
}

.footer-brand-copy strong {
  font-size: 17px;
  letter-spacing: -0.02em;
}

.footer-brand-copy small {
  font-size: 11px;
  color: #8FA0B5;
  font-weight: 500;
}

.footer-brand-col > p,
.footer-follow-col > p {
  color: #8FA0B5;
  font-size: 13px;
  margin: 0 0 16px;
  max-width: 360px;
  line-height: 1.7;
}

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

.footer-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
}

.footer-stat strong {
  color: #fff;
  font-size: 16px;
  font-family: var(--font-mono);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.footer-stat span {
  font-size: 11px;
  color: #7E90A8;
}

.footer-links-col h4,
.footer-follow-col h4 {
  color: #F0F5FC;
  font-size: 13px;
  margin: 0 0 14px;
  letter-spacing: 0.02em;
  position: relative;
  padding-bottom: 8px;
}

.footer-links-col h4::after,
.footer-follow-col h4::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: #2B6DE8;
}

.site-footer .footer-links-col a,
.site-footer .footer-bottom-links a {
  color: #8FA0B5;
  display: block;
  font-size: 13px;
  margin-bottom: 9px;
  transition: color var(--transition);
}

.site-footer .footer-links-col a:hover,
.site-footer .footer-bottom-links a:hover {
  color: #fff;
}

.site-footer .footer-links-col a.is-soon,
.site-footer .footer-bottom-links a.is-soon {
  opacity: 0.55;
  cursor: default;
}

.footer-follow-col {
  min-width: 0;
  padding-left: 24px;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-follow-col > p {
  max-width: 200px;
}

.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-social-item {
  position: relative;
  display: inline-flex;
}

.footer-social-link {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: #D5E0EE;
  display: grid;
  place-items: center;
  text-decoration: none;
  cursor: pointer;
  padding: 0;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}

.footer-social-link:hover,
.footer-social-item:hover .footer-social-link,
.footer-social-item:focus-within .footer-social-link {
  color: #fff;
  border-color: rgba(43, 109, 232, 0.6);
  background: rgba(43, 109, 232, 0.22);
}

.footer-social-link.is-disabled {
  opacity: 0.72;
}

.footer-qr-popover {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 12px);
  transform: translateX(-50%) translateY(6px);
  width: 148px;
  padding: 12px 12px 10px;
  border-radius: 14px;
  background: #fff;
  color: #1F2937;
  box-shadow: 0 14px 36px rgba(8, 20, 40, 0.28);
  text-align: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
  z-index: 60;
}

.footer-qr-popover::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -6px;
  width: 12px;
  height: 12px;
  background: #fff;
  transform: translateX(-50%) rotate(45deg);
}

.footer-qr-popover img {
  width: 120px;
  height: 120px;
  object-fit: contain;
  border-radius: 8px;
  display: block;
  margin: 0 auto 8px;
  background: #F3F6FB;
}

.footer-qr-popover span {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #475569;
}

.footer-social-item:hover .footer-qr-popover,
.footer-social-item:focus-within .footer-qr-popover {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.footer-bottom {
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 12px;
  color: #6B7C91;
}

.footer-copyright {
  min-width: 0;
  flex: 1 1 auto;
  line-height: 1.5;
}

.footer-copyright a {
  color: #8FA0B5;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-copyright a:hover {
  color: #fff;
}

.footer-bottom-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
}

.footer-bottom-links a {
  margin: 0 !important;
  padding: 0 10px;
  border-left: 1px solid rgba(255, 255, 255, 0.14);
  display: inline !important;
}

.footer-bottom-links a:first-child {
  border-left: 0;
  padding-left: 0;
}

/* Page header (VPS / Provider) */
.page-hero {
  padding: 36px 0 28px;
  background:
    linear-gradient(180deg, #FFFFFF 0%, #F7FAFF 100%);
  border-bottom: var(--line);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--color-text-muted);
  margin-bottom: 14px;
}

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

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

.breadcrumb span.sep {
  color: var(--color-border-strong);
}

.page-hero h1 {
  font-size: clamp(24px, 3vw, 32px);
  margin-bottom: 10px;
}

.page-hero .lead {
  max-width: 720px;
  margin-bottom: 20px;
}

.stats-row {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
}

.stat-item strong {
  display: block;
  font-size: 24px;
  color: var(--color-text);
  font-variant-numeric: tabular-nums;
  font-family: var(--font-mono);
  letter-spacing: -0.02em;
}

.stat-item span {
  font-size: 13px;
  color: var(--color-text-secondary);
}

/* VPS layout — 筛选在上，列表在下 */
.vps-layout,
.vps-layout-top {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 16px 0 48px;
}

.filter-panel {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 16px 18px;
  box-shadow: var(--shadow-sm);
}

.bench-catalog-layout .filter-panel {
  position: sticky;
  top: calc(var(--header-h) + 16px);
  max-height: calc(100vh - var(--header-h) - 32px);
  overflow-y: auto;
}

.filter-panel-top {
  position: static;
  max-height: none;
  overflow: visible;
  scroll-margin-top: calc(var(--header-h) + 12px);
}

.filter-panel-top-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.filter-panel h3,
.filter-panel-top-head h3 {
  font-size: 14px;
  margin: 0;
  letter-spacing: 0.01em;
}

.filter-top-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px 14px;
}

.filter-section {
  margin: 0;
  padding: 0;
  border: none;
  min-width: 0;
}

.filter-section-span {
  grid-column: span 3;
}

.filter-section > label,
.filter-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 7px;
  color: var(--color-text);
  letter-spacing: 0.01em;
}

.check-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
  max-height: 160px;
  overflow-y: auto;
}

.check-list-inline {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 8px 12px;
  max-height: none;
  overflow: visible;
}

.check-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--color-text-secondary);
  cursor: pointer;
  white-space: nowrap;
}

.check-item:hover {
  color: var(--color-text);
}

.check-item input {
  accent-color: var(--color-primary);
}

.filter-top-more {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--color-border);
}

.filter-hint {
  margin: 10px 0 0;
  font-size: 12px;
  color: var(--color-text-muted);
}

.filter-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}

.filter-actions-top {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.vps-results {
  min-width: 0;
}

.list-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
  padding: 10px 12px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.list-meta {
  font-size: 13px;
  color: var(--color-text-secondary);
}

.list-meta strong {
  color: var(--color-text);
  font-variant-numeric: tabular-nums;
}

.sort-control {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--color-text-secondary);
}

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

/* Cards for mobile plans */
.plan-cards {
  display: none;
  flex-direction: column;
  gap: 12px;
}

.plan-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow-sm);
}

.plan-card-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.plan-card-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 14px;
}

.plan-card-specs div {
  font-size: 12px;
  color: var(--color-text-secondary);
  background: var(--color-bg-elevated);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
}

.plan-card-specs strong {
  display: block;
  color: var(--color-text);
  font-size: 13px;
  margin-top: 2px;
}

/* Pagination */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.pagination .page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--color-border);
  background: #fff;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  color: var(--color-text);
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(15, 28, 46, 0.03);
  transition: background var(--transition), border-color var(--transition), color var(--transition), box-shadow var(--transition);
}

.pagination .page-btn:not(.is-nav):not(.is-disabled):not(.is-active) {
  min-width: 40px;
  padding: 0;
}

.pagination .page-btn.is-nav {
  min-width: 72px;
  padding: 0 14px;
}

.pagination .page-btn:hover:not(.is-active):not(.is-disabled) {
  border-color: var(--color-primary-mute);
  color: var(--color-primary);
  background: #F7FAFF;
}

.pagination .page-btn.is-active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
  box-shadow: 0 6px 14px rgba(26, 86, 219, 0.22);
}

.pagination .page-btn.is-disabled {
  color: var(--color-text-muted);
  background: #fff;
  border-color: var(--color-border);
  opacity: 0.7;
  cursor: not-allowed;
  box-shadow: none;
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: 64px 24px;
  background: var(--color-surface);
  border: 1px dashed var(--color-border-strong);
  border-radius: var(--radius);
}

.empty-state h3 {
  margin-bottom: 8px;
}

.empty-state p {
  margin-bottom: 20px;
}

/* Shared page hero panel (VPS catalog / provider) */
.catalog-page-hero,
.provider-page-hero {
  padding: 28px 0 8px;
  background: transparent;
  border-bottom: 0;
}

.page-hero-panel,
.provider-hero-panel {
  position: relative;
  overflow: hidden;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(15, 28, 46, 0.06);
  padding: 22px 24px 20px;
}

.page-hero-panel::after,
.provider-hero-panel::after {
  content: "";
  position: absolute;
  right: -40px;
  bottom: -60px;
  width: 320px;
  height: 220px;
  background:
    radial-gradient(circle at 30% 40%, rgba(26, 86, 219, 0.16), transparent 55%),
    radial-gradient(circle at 70% 70%, rgba(14, 116, 144, 0.1), transparent 50%);
  pointer-events: none;
}

.page-hero-panel .breadcrumb,
.provider-hero-panel .breadcrumb {
  margin-bottom: 18px;
}

/* VPS catalog hero */
.catalog-hero-top {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(200px, 0.75fr);
  gap: 20px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.catalog-hero-heading {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 14px;
}

.catalog-hero-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(145deg, #2B6DE8 0%, #1A56DB 55%, #0F3A9E 100%);
  color: #fff;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  box-shadow: 0 10px 20px rgba(26, 86, 219, 0.28);
}

.catalog-hero-copy h1 {
  font-size: clamp(26px, 3vw, 34px);
  margin-bottom: 8px;
}

.catalog-hero-copy .lead {
  margin-bottom: 0;
  max-width: 620px;
  font-size: 14px;
  line-height: 1.7;
}

.catalog-hero-tags {
  margin-top: 14px;
}

.catalog-hero-tags .tag.is-accent {
  background: #D7E6FF;
  color: var(--color-primary-deep);
  font-weight: 600;
}

.catalog-hero-art {
  position: relative;
  min-height: 150px;
  display: grid;
  place-items: center;
}

.catalog-hero-cloud {
  position: absolute;
  border-radius: 999px;
  background: rgba(26, 86, 219, 0.12);
  filter: blur(0.2px);
}

.catalog-hero-cloud-a {
  width: 88px;
  height: 42px;
  top: 18px;
  right: 28px;
}

.catalog-hero-cloud-b {
  width: 64px;
  height: 30px;
  top: 46px;
  right: 96px;
  background: rgba(43, 109, 232, 0.16);
}

.catalog-hero-server {
  width: 118px;
  height: 34px;
  border-radius: 8px;
  background:
    linear-gradient(90deg, #EEF4FF 0%, #FFFFFF 40%, #F7FAFF 100%);
  border: 1px solid #D6E4FF;
  box-shadow: 0 8px 16px rgba(15, 28, 46, 0.08);
  position: relative;
}

.catalog-hero-server::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  transform: translateY(-50%);
  background: #1A56DB;
  box-shadow: 18px 0 0 #60A5FA, 36px 0 0 #93C5FD;
}

.catalog-hero-server::after {
  content: "";
  position: absolute;
  right: 12px;
  top: 50%;
  width: 36px;
  height: 8px;
  border-radius: 4px;
  transform: translateY(-50%);
  background: linear-gradient(90deg, #1A56DB, #60A5FA);
}

.catalog-hero-server-1 { transform: translate(18px, -28px); }
.catalog-hero-server-2 { transform: translate(0, 0); width: 130px; }
.catalog-hero-server-3 { transform: translate(12px, 28px); width: 124px; }

.catalog-hero-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--color-border);
  position: relative;
  z-index: 1;
}

.catalog-hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 0;
}

.catalog-hero-stat {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 18px;
  border-right: 1px solid var(--color-border);
}

.catalog-hero-stat:first-child {
  padding-left: 0;
}

.catalog-hero-stat:last-child {
  border-right: 0;
}

.catalog-hero-stat-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--color-primary-soft);
  color: var(--color-primary);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.catalog-hero-stat strong {
  display: block;
  font-size: 20px;
  line-height: 1.15;
  font-family: var(--font-mono);
  letter-spacing: -0.02em;
  color: var(--color-text);
}

.catalog-hero-stat span {
  font-size: 12px;
  color: var(--color-text-muted);
}

.catalog-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.catalog-hero-actions .btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.breadcrumb-home {
  display: inline-grid;
  place-items: center;
  color: var(--color-text-muted);
}

.provider-hero-top {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(220px, 0.9fr);
  gap: 24px;
  align-items: start;
  position: relative;
  z-index: 1;
}

.provider-hero-copy h1 {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: clamp(28px, 3.2vw, 36px);
  margin-bottom: 10px;
}

.provider-verified {
  display: inline-flex;
  flex-shrink: 0;
}

.provider-hero-copy .lead {
  max-width: 640px;
  margin-bottom: 14px;
  font-size: 14px;
  line-height: 1.7;
}

.provider-hero-tags .tag {
  border-radius: 999px;
  background: var(--color-primary-soft);
  border-color: transparent;
  color: var(--color-primary);
  font-weight: 500;
  padding: 5px 10px;
}

.provider-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 14px;
  font-size: 13px;
  color: var(--color-text-secondary);
}

.provider-hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.provider-hero-meta svg {
  color: var(--color-text-muted);
  flex-shrink: 0;
}

.provider-hero-brand {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  min-height: 96px;
  padding: 8px 4px;
}

.provider-hero-brand-mark {
  width: 88px;
  height: 88px;
  border-radius: 20px;
  background: linear-gradient(145deg, #2B6DE8 0%, #1A56DB 55%, #0F3A9E 100%);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.03em;
  box-shadow: 0 12px 24px rgba(26, 86, 219, 0.28);
  overflow: hidden;
  flex-shrink: 0;
}

.provider-hero-brand-mark.has-logo {
  background: #fff;
  border: 1px solid var(--color-border);
  box-shadow: 0 10px 22px rgba(15, 28, 46, 0.08);
  padding: 10px;
}

.provider-hero-brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.provider-hero-brand-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.provider-hero-brand-text strong {
  font-size: 18px;
  color: var(--color-text);
}

.provider-hero-brand-text span {
  font-size: 13px;
  color: var(--color-text-muted);
}

.provider-hero-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--color-border);
  position: relative;
  z-index: 1;
}

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

.provider-actions .btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-hero-primary {
  padding-inline: 18px;
  box-shadow: 0 8px 18px rgba(26, 86, 219, 0.22);
}

.provider-hero-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(72px, auto));
  gap: 0;
}

.provider-metric {
  padding: 0 16px;
  border-left: 1px solid var(--color-border);
  text-align: left;
}

.provider-metric:first-child {
  border-left: 0;
  padding-left: 0;
}

.provider-metric strong {
  display: block;
  font-size: 20px;
  line-height: 1.2;
  font-family: var(--font-mono);
  letter-spacing: -0.02em;
  color: var(--color-text);
}

.provider-metric span {
  font-size: 12px;
  color: var(--color-text-muted);
}

.stat-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 24px 0;
}

.stat-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 16px 18px;
  box-shadow: var(--shadow-sm);
}

.stat-card strong {
  display: block;
  font-size: 24px;
  margin-bottom: 4px;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.stat-card span {
  font-size: 13px;
  color: var(--color-text-secondary);
}

.provider-info-panel {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 0;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(15, 28, 46, 0.04);
  overflow: hidden;
}

.provider-info-col {
  padding: 22px 24px;
  min-width: 0;
}

.provider-info-col + .provider-info-col {
  border-left: 1px solid var(--color-border);
  background: linear-gradient(180deg, #FBFCFE 0%, #F7FAFF 100%);
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.provider-info-title {
  margin: 0 0 14px;
  font-size: 15px;
  font-weight: 700;
  color: var(--color-text);
}

.provider-info-group .provider-info-title {
  margin-bottom: 12px;
}

.provider-feature-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.provider-feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--color-text-secondary);
}

.provider-feature-list li::before {
  content: "";
  width: 7px;
  height: 7px;
  margin-top: 0.5em;
  border-radius: 50%;
  background: var(--color-primary);
  flex-shrink: 0;
}

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

.provider-tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--color-text-secondary);
  background: #EEF2F7;
  border: 1px solid #E2E8F0;
}

.provider-tag-network {
  color: #047857;
  background: #ECFDF5;
  border-color: #A7F3D0;
}

.provider-notice-bar {
  display: grid;
  grid-template-columns: minmax(160px, 220px) 1fr;
  gap: 0;
  align-items: stretch;
  background: #fff;
  border: 1px solid #DCE8FA;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(15, 28, 46, 0.04);
}

.provider-notice-title {
  margin: 0;
  padding: 20px 22px;
  font-size: 16px;
  font-weight: 700;
  color: var(--color-text);
  display: flex;
  align-items: center;
  border-right: 1px solid #D6E4F5;
  background: linear-gradient(180deg, #F5F9FF 0%, #EEF4FF 100%);
}

.provider-notice-body {
  padding: 16px 20px;
  min-width: 0;
  background: #fff;
}

.provider-notice-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-secondary);
}

.provider-notice-meta svg {
  color: var(--color-primary);
  flex-shrink: 0;
}

.provider-notice-sep {
  color: #94A3B8;
  font-weight: 500;
}

.provider-notice-text {
  margin: 0;
  font-size: 13px;
  line-height: 1.65;
  color: var(--color-text-secondary);
}

/* Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(11, 26, 46, 0.48);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(2px);
}

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

.modal {
  background: #fff;
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow: auto;
  box-shadow: 0 24px 60px rgba(11, 26, 46, 0.22);
  border: 1px solid rgba(216, 224, 236, 0.8);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: var(--line);
  background: linear-gradient(180deg, #F7FAFF, #fff);
}

.modal-header h3 {
  margin: 0;
  font-size: 16px;
}

.modal-body {
  padding: 20px;
}

.modal-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.modal-specs div {
  font-size: 12px;
  color: var(--color-text-secondary);
  background: var(--color-bg-elevated);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
}

.modal-specs strong {
  display: block;
  color: var(--color-text);
  font-size: 14px;
  margin-top: 2px;
}

.modal-footer {
  padding: 14px 20px;
  border-top: var(--line);
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  background: #FAFBFD;
}

/* Drawer filter for mobile */
.filter-drawer-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(11, 26, 46, 0.4);
  z-index: 150;
}

.filter-drawer-backdrop.is-open {
  display: block;
}

/* Responsive */
@media (max-width: 1100px) {
  .brand-tagline {
    display: none;
  }

  .header-search:not(.is-mobile) {
    width: 200px;
  }

  .provider-hero-top,
  .catalog-hero-top {
    grid-template-columns: 1fr;
  }

  .provider-hero-brand {
    justify-content: flex-start;
  }

  .catalog-hero-art {
    display: none;
  }
}

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

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

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

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

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

  .footer-main {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 20px;
  }

  .footer-follow-col {
    padding-left: 0;
    border-left: 0;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

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

  .filter-section-span {
    grid-column: span 3;
  }

  .table-desktop {
    display: none;
  }

  .plan-cards {
    display: flex;
  }
}

@media (max-width: 768px) {
  .filter-top-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .filter-section-span {
    grid-column: span 2;
  }

  .nav-desktop {
    display: none;
  }

  .header-search:not(.is-mobile) {
    display: none;
  }

  .brand-tagline,
  .brand-name small {
    display: none;
  }

  .nav-toggle {
    display: grid;
  }

  .hero {
    padding: 40px 0 32px;
  }

  .section {
    padding: 36px 0;
  }

  .grid-categories,
  .grid-providers,
  .intro-grid,
  .stat-cards,
  .provider-feature-list,
  .home-card-grid,
  .home-card-grid--bench {
    grid-template-columns: 1fr;
  }

  .home-panel-head {
    flex-direction: column;
    align-items: stretch;
  }

  .home-panel-more {
    align-self: flex-start;
  }

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

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

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

  .quick-filter-grid {
    grid-template-columns: 1fr;
  }

  .provider-hero-top,
  .catalog-hero-top {
    grid-template-columns: 1fr;
  }

  .provider-hero-brand {
    justify-content: flex-start;
  }

  .provider-hero-foot,
  .catalog-hero-foot {
    align-items: stretch;
  }

  .provider-hero-metrics {
    width: 100%;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .provider-metric {
    border-left: 0;
    padding: 10px 12px;
    background: var(--color-bg-elevated);
    border-radius: var(--radius-sm);
  }

  .catalog-hero-heading {
    gap: 12px;
  }

  .catalog-hero-stats {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .catalog-hero-stat {
    border-right: 0;
    padding: 10px 12px;
    background: var(--color-bg-elevated);
    border-radius: var(--radius-sm);
  }

  .catalog-hero-actions {
    width: 100%;
  }

  .catalog-hero-actions .btn {
    flex: 1 1 100%;
    justify-content: center;
  }

  .bench-hero-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    width: 100%;
  }

  .bench-hero-stats .catalog-hero-stat {
    border-right: 0;
    padding: 10px 12px;
    background: var(--color-bg-elevated);
    border-radius: var(--radius-sm);
  }

  .bench-hero-actions {
    width: 100%;
    padding-left: 0;
    border-left: 0;
  }

  body {
    background-attachment: scroll;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}

/* ===== Layout / UX additions ===== */
.section-tight {
  padding-top: 28px;
  padding-bottom: 28px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 28px auto 0;
  max-width: 820px;
  padding: 0;
  border: 1px solid var(--color-border);
  border-radius: 16px;
  background: var(--color-surface);
  box-shadow: 0 10px 28px rgba(15, 28, 46, 0.06);
  overflow: hidden;
}

.hero-stat {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-width: 0;
  text-align: left;
  padding: 18px 16px;
  border-right: 1px solid var(--color-border);
}

.hero-stat:last-child {
  border-right: 0;
}

.hero-stat-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--color-primary-soft);
  color: var(--color-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  line-height: 0;
}

.hero-stat-icon svg {
  display: block;
  flex-shrink: 0;
}

.hero-stat strong {
  display: block;
  font-size: 24px;
  line-height: 1.1;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  color: var(--color-text);
  letter-spacing: -0.02em;
}

.hero-stat > div span {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: var(--color-text-secondary);
}

.entry-layout {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 14px;
}

.entry-primary {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--color-surface);
  border: 1px solid var(--color-primary-mute);
  border-radius: var(--radius-lg);
  padding: 22px 20px;
  box-shadow: var(--shadow-sm);
  color: inherit;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.entry-primary:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow);
  color: inherit;
}

.entry-primary h2 {
  font-size: 18px;
  margin: 0 0 4px;
}

.entry-primary p {
  margin: 0;
  font-size: 13px;
}

.entry-arrow {
  margin-left: auto;
  font-size: 22px;
  color: var(--color-primary);
  flex-shrink: 0;
}

.entry-soon {
  background: var(--color-surface);
  border: 1px dashed var(--color-border-strong);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
}

.entry-soon-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: var(--color-text-muted);
  margin-bottom: 12px;
}

.soon-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.soon-chips span {
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--color-bg-elevated);
  color: var(--color-text-secondary);
  border: 1px solid var(--color-border);
}

.active-filters {
  margin-bottom: 12px;
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  min-height: 34px;
}

.filter-chips.is-empty {
  min-height: auto;
}

.filter-chips-hint {
  font-size: 12px;
  color: var(--color-text-muted);
}

.filter-chip,
.filter-chip-clear {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--color-primary-mute);
  background: var(--color-primary-soft);
  color: var(--color-primary-deep);
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.filter-chip:hover {
  border-color: var(--color-primary);
}

.filter-chip-clear {
  background: var(--color-surface);
  color: var(--color-text-secondary);
  border-color: var(--color-border);
}

.list-toolbar.is-sticky {
  position: sticky;
  top: calc(var(--header-h) + 8px);
  z-index: 40;
  margin-bottom: 12px;
}

.list-toolbar-main {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.data-table.sticky-head thead th {
  position: sticky;
  top: 0;
  z-index: 2;
}

.page-subnav {
  position: static;
  margin: 12px 0 0;
}

.page-subnav-inner {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  padding: 8px 12px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(15, 28, 46, 0.04);
}

.page-subnav a {
  flex-shrink: 0;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-secondary);
}

.page-subnav a:hover,
.page-subnav a.is-active {
  color: var(--color-primary);
  background: var(--color-primary-soft);
}

.provider-block {
  margin-bottom: 40px;
  scroll-margin-top: calc(var(--header-h) + 16px);
}

.provider-related {
  padding: 22px 24px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(15, 28, 46, 0.04);
}

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

.provider-related-title {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex-wrap: wrap;
}

.provider-related-title h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: var(--color-text);
}

.provider-related-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  background: var(--color-primary-soft);
  border: 1px solid var(--color-primary-mute);
  flex-shrink: 0;
}

.provider-related-count {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: var(--color-primary);
  background: #EEF4FF;
  border: 1px solid #D6E4FF;
}

.provider-related-more {
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-primary);
  text-decoration: none;
  white-space: nowrap;
}

.provider-related-more:hover {
  text-decoration: underline;
}

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

.provider-deal-card {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 14px;
  padding: 14px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid #E6ECF5;
  box-shadow: 0 4px 14px rgba(15, 28, 46, 0.04);
  min-width: 0;
}

.provider-deal-card.is-featured {
  border-color: #C9DAFF;
  background: linear-gradient(180deg, #F8FBFF 0%, #FFFFFF 55%);
  box-shadow: 0 8px 22px rgba(26, 86, 219, 0.08);
}

.provider-deal-cover {
  display: block;
  width: 112px;
  height: 112px;
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(145deg, #1A56DB 0%, #0F3A9E 100%);
  flex-shrink: 0;
}

.provider-deal-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.provider-deal-cover-fallback {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  padding: 10px;
  text-align: center;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
}

.provider-deal-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.provider-deal-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  width: fit-content;
  min-height: 22px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}

.provider-deal-badge.is-featured {
  color: #fff;
  background: linear-gradient(90deg, #3B6FF0, #1A56DB);
}

.provider-deal-badge.is-limited {
  color: #B42318;
  background: #FEF3F2;
  border: 1px solid #FECDCA;
}

.provider-deal-badge.is-evergreen {
  color: #027A48;
  background: #ECFDF3;
  border: 1px solid #A6F4C5;
}

.provider-deal-title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
}

.provider-deal-title a {
  color: var(--color-text);
  text-decoration: none;
}

.provider-deal-title a:hover {
  color: var(--color-primary);
}

.provider-deal-excerpt {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--color-text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.provider-deal-chips {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.provider-deal-chips li {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 24px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: var(--color-primary);
  background: #F0F5FF;
  border: 1px solid #D6E4FF;
}

.provider-deal-foot {
  margin-top: auto;
  padding-top: 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.provider-deal-date {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--color-text-muted);
  min-width: 0;
}

.provider-deal-cta {
  flex-shrink: 0;
}

.provider-post-list {
  display: grid;
  gap: 12px;
}

.provider-post-card {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 14px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid #E6ECF5;
  box-shadow: 0 4px 14px rgba(15, 28, 46, 0.04);
}

.provider-post-cover {
  display: block;
  width: 132px;
  height: 88px;
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(145deg, #E8EEF7, #D6E4FF);
  flex-shrink: 0;
}

.provider-post-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.provider-post-cover-fallback {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  font-size: 18px;
  font-weight: 700;
  color: var(--color-primary);
}

.provider-post-body {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.provider-post-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.provider-post-badge {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  background: var(--color-primary);
  flex-shrink: 0;
}

.provider-post-title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
}

.provider-post-title a {
  color: var(--color-text);
  text-decoration: none;
}

.provider-post-title a:hover {
  color: var(--color-primary);
}

.provider-post-excerpt {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--color-text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.provider-post-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--color-text-muted);
}

.provider-post-meta > span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.provider-post-tags {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.provider-post-tags li {
  padding: 2px 8px;
  border-radius: 999px;
  background: #F3F6FB;
  border: 1px solid #E6ECF5;
  color: var(--color-text-secondary);
  font-weight: 600;
}

.provider-post-action {
  flex-shrink: 0;
}

@media (max-width: 1024px) {
  .provider-deal-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .provider-related {
    padding: 16px;
  }

  .provider-deal-card,
  .provider-post-card {
    grid-template-columns: 1fr;
  }

  .provider-deal-cover,
  .provider-post-cover {
    width: 100%;
    height: 140px;
  }

  .provider-post-action {
    justify-self: start;
  }

  .provider-related-head {
    align-items: flex-start;
    flex-direction: column;
  }
}

.location-chips {
  flex-direction: row !important;
  flex-wrap: wrap;
  max-height: none !important;
  gap: 10px 14px !important;
}

.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 24px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text);
  box-shadow: var(--shadow);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity var(--transition), transform var(--transition);
  z-index: 90;
  font-size: 16px;
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top:hover {
  border-color: var(--color-primary-mute);
  color: var(--color-primary);
}

.skeleton-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 8px 0;
}

.skeleton-line,
.skeleton-card {
  background: linear-gradient(90deg, #E8EEF7 25%, #F5F8FC 50%, #E8EEF7 75%);
  background-size: 200% 100%;
  animation: skeleton-shine 1.2s linear infinite;
  border-radius: var(--radius-sm);
}

.skeleton-line {
  height: 42px;
}

.skeleton-line.lg {
  height: 56px;
}

.skeleton-card {
  height: 140px;
}

@keyframes skeleton-shine {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

@media (max-width: 1024px) {
  .entry-layout,
  .provider-info-panel,
  .provider-notice-bar {
    grid-template-columns: 1fr;
  }

  .provider-info-col + .provider-info-col {
    border-left: 0;
    border-top: 1px solid var(--color-border);
  }

  .provider-notice-title {
    border-right: 0;
    border-bottom: 1px solid #D6E4F5;
    padding-bottom: 14px;
  }

  .list-toolbar.is-sticky {
    top: calc(var(--header-h) + 4px);
  }
}

@media (max-width: 768px) {
  .hero-stats {
    grid-template-columns: 1fr 1fr;
  }

  .hero-stat {
    justify-content: flex-start;
    border-right: 0;
  }

  .hero-stat:nth-child(odd) {
    border-right: 1px solid var(--color-border);
  }

  .hero-stat:nth-child(-n + 2) {
    border-bottom: 1px solid var(--color-border);
  }

  .hero-search {
    padding-left: 12px;
  }

  .hero-quick {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  .skeleton-line,
  .skeleton-card {
    animation: none;
  }
}

/* ===== Compare + benchmark list ===== */
.col-compare {
  width: 64px;
  white-space: nowrap;
}

.compare-check {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--color-text-secondary);
  cursor: pointer;
  user-select: none;
}

.compare-check input {
  accent-color: var(--color-primary);
}

.bench-cell {
  min-width: 140px;
  max-width: 190px;
}

.bench-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  border: 1px solid transparent;
}

.bench-pill.is-related {
  background: #EEF2F7;
  color: #475569;
  border: 1px dashed #CBD5E1;
}

.bench-pill.is-tested {
  background: #E8F7F2;
  color: #0F766E;
  border-color: #B7E4DB;
}

.bench-pill.is-empty {
  background: var(--color-bg-elevated);
  color: var(--color-text-muted);
  border-color: var(--color-border);
}

.bench-meta {
  margin-top: 4px;
  font-size: 11px;
  color: var(--color-text-muted);
  font-variant-numeric: tabular-nums;
}

.bench-snippet {
  margin-top: 4px;
  font-size: 12px;
  color: var(--color-text-secondary);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.plan-card-bench {
  margin-bottom: 10px;
}

tr.is-compared,
.plan-card.is-compared {
  background: #F3F7FF;
  box-shadow: inset 3px 0 0 var(--color-primary);
}

.modal-bench {
  margin-top: 16px;
  padding: 12px 14px;
  border: 1px solid var(--color-primary-mute);
  background: #F7FAFF;
  border-radius: var(--radius);
}

.modal-bench-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  font-size: 12px;
  color: var(--color-text-secondary);
}

.modal-bench ul {
  margin: 0 0 10px;
  padding-left: 18px;
}

.modal-bench li {
  margin-bottom: 6px;
  font-size: 13px;
  color: var(--color-text-secondary);
}

.modal-bench li strong {
  color: var(--color-text);
  margin-right: 6px;
}

.modal-bench-empty {
  margin: 14px 0 0;
  font-size: 12px;
  color: var(--color-text-muted);
}

.compare-tray {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 120;
  transform: translateY(110%);
  transition: transform 0.2s ease;
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid var(--color-border);
  box-shadow: 0 -8px 28px rgba(15, 28, 46, 0.08);
  backdrop-filter: blur(10px);
}

.compare-tray.is-visible {
  transform: translateY(0);
}

.compare-tray-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.compare-tray-copy strong {
  display: block;
  font-size: 14px;
  margin-bottom: 6px;
}

.compare-tray-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.compare-chip {
  border: 1px solid var(--color-primary-mute);
  background: var(--color-primary-soft);
  color: var(--color-primary-deep);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  cursor: pointer;
}

.compare-tray-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.compare-tip {
  display: none;
  font-size: 12px;
  color: #B45309;
  margin-bottom: 6px;
}

.compare-tip.is-on {
  display: block;
}

body.has-compare-tray .back-to-top {
  bottom: 88px;
}

.compare-panel {
  position: fixed;
  inset: 0;
  z-index: 180;
  background: rgba(11, 26, 46, 0.48);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(2px);
}

.compare-panel.is-open {
  display: flex;
}

.compare-panel-dialog {
  width: min(1080px, 100%);
  max-height: 90vh;
  overflow: auto;
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(216, 224, 236, 0.9);
  box-shadow: 0 24px 60px rgba(11, 26, 46, 0.22);
}

.compare-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: var(--line);
  background: linear-gradient(180deg, #F7FAFF, #fff);
  position: sticky;
  top: 0;
  z-index: 2;
}

.compare-panel-header h3 {
  margin: 0;
  font-size: 16px;
}

.compare-panel-body {
  padding: 12px 16px 18px;
}

.compare-table-wrap {
  overflow-x: auto;
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
  font-size: 13px;
}

.compare-table th,
.compare-table td {
  border-bottom: 1px solid var(--color-border);
  padding: 12px 10px;
  text-align: left;
  vertical-align: top;
}

.compare-table tbody th {
  width: 96px;
  color: var(--color-text-secondary);
  font-weight: 600;
  background: #F7FAFF;
}

.compare-th {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 160px;
}

.compare-th span {
  font-size: 12px;
  color: var(--color-text-secondary);
  font-weight: 500;
}

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

@media (max-width: 768px) {
  .compare-tray-inner {
    flex-direction: column;
    align-items: stretch;
  }

  .compare-tray-actions {
    justify-content: flex-end;
  }
}

.bench-cell.is-link {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: background-color var(--transition);
  border-radius: 6px;
  padding: 2px 4px;
  margin: -2px -4px;
}

.bench-cell.is-link:hover {
  background: #F3F7FF;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 14px;
  font-size: 13px;
  color: var(--color-text-muted);
}

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

.breadcrumbs a:hover {
  text-decoration: underline;
}

.bench-page-hero {
  padding: 28px 0 8px;
}

.bench-hero-art .bench-hero-laptop {
  position: absolute;
  right: 18px;
  top: 22px;
  width: 78px;
  height: 52px;
  border-radius: 8px;
  background: linear-gradient(160deg, #E8F0FE, #FFFFFF);
  border: 1px solid #D6E4FF;
  box-shadow: 0 10px 18px rgba(15, 28, 46, 0.08);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 4px;
  padding: 0 10px 8px;
  z-index: 2;
}

.bench-hero-art .bench-hero-laptop::before {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  top: 8px;
  height: 22px;
  border-radius: 4px;
  background: linear-gradient(180deg, #D7E6FF, #F4F8FF);
}

.bench-hero-art .bench-hero-laptop span {
  width: 8px;
  border-radius: 2px 2px 0 0;
  background: linear-gradient(180deg, #1A56DB, #60A5FA);
}

.bench-hero-art .bench-hero-laptop span:nth-child(1) { height: 10px; }
.bench-hero-art .bench-hero-laptop span:nth-child(2) { height: 16px; }
.bench-hero-art .bench-hero-laptop span:nth-child(3) { height: 12px; }

.bench-hero-stats .catalog-hero-stat {
  padding: 0 14px;
}

.bench-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  flex-shrink: 0;
  padding-left: 16px;
  border-left: 1px solid var(--color-border);
}

.catalog-layout,
.bench-catalog-layout {
  display: grid;
  grid-template-columns: 268px 1fr;
  gap: 22px;
  padding: 16px 0 48px;
  align-items: start;
}

.catalog-layout .filter-panel {
  position: sticky;
  top: calc(var(--header-h) + 16px);
  max-height: calc(100vh - var(--header-h) - 32px);
  overflow-y: auto;
}

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

.catalog-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 14px;
}

.catalog-toolbar p {
  margin: 0;
  font-size: 14px;
}

.catalog-toolbar .muted {
  color: var(--color-text-muted);
  font-size: 13px;
}

.filter-label {
  display: block;
  margin: 12px 0 6px;
  font-size: 13px;
  font-weight: 600;
}

.filter-checks {
  display: grid;
  gap: 6px;
  max-height: 160px;
  overflow-y: auto;
}

.check-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  cursor: pointer;
}

#bench-catalog-main,
#bench-result-list {
  scroll-margin-top: calc(var(--header-h) + 12px);
}

.bench-catalog-main {
  min-width: 0;
}

.filter-empty {
  margin: 0;
  font-size: 13px;
  color: var(--color-text-muted);
}

.bench-result-list {
  display: grid;
  gap: 12px;
}

.bench-result-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 16px 18px;
  box-shadow: var(--shadow-sm);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.bench-result-card:hover {
  border-color: var(--color-primary-mute);
  box-shadow: 0 8px 24px rgba(15, 28, 46, 0.06);
}

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

.bench-result-identity h2 {
  margin: 6px 0;
  font-size: 18px;
  line-height: 1.35;
}

.bench-result-identity h2 a {
  color: inherit;
  text-decoration: none;
}

.bench-result-identity h2 a:hover {
  color: var(--color-primary);
}

.bench-result-sub {
  margin: 0;
  color: var(--color-text-secondary);
  font-size: 13px;
  line-height: 1.5;
}

.bench-result-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  flex-shrink: 0;
}

.bench-result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  flex-shrink: 0;
  justify-content: flex-end;
}

.bench-score-badge {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 12px;
  background: linear-gradient(180deg, #EEF4FF 0%, #F7FAFF 100%);
  border: 1px solid #D6E4FF;
  color: var(--color-primary-deep);
  min-width: 118px;
}

.bench-score-badge.is-compact {
  min-width: 0;
  padding: 6px 10px;
  border-radius: 10px;
}

.bench-score-badge-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--color-text-muted);
}

.bench-score-badge strong {
  font-size: 22px;
  line-height: 1;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--color-primary);
}

.bench-score-badge.is-compact strong {
  font-size: 18px;
}

.bench-score-badge-unit {
  font-size: 12px;
  font-weight: 600;
  color: var(--color-text-secondary);
}

.bench-list-side {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.bench-metric-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.bench-metric {
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 10px 12px;
  min-width: 0;
}

.bench-metric span {
  display: block;
  font-size: 11px;
  color: var(--color-text-muted);
  margin-bottom: 4px;
}

.bench-metric strong {
  display: block;
  font-size: 13px;
  font-weight: 650;
  color: var(--color-text);
  font-variant-numeric: tabular-nums;
  font-family: var(--font-mono);
  letter-spacing: -0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bench-result-snippet {
  margin: 12px 0 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--color-text-secondary);
}

.bench-list-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-size: 12px;
  color: var(--color-text-muted);
}

.bench-pill.is-partial {
  background: #FEF3C7;
  color: #92400E;
  border-color: #F6DE9A;
}

.bench-detail-page-hero {
  padding: 28px 0 8px;
}

.bench-detail-hero-panel {
  padding-bottom: 0;
}

.bench-detail-hero-bar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 18px;
  position: relative;
  z-index: 1;
}

.bench-detail-hero-bar .breadcrumb {
  margin-bottom: 0;
  max-width: min(100%, 720px);
}

.bench-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  flex-shrink: 0;
}

.bench-detail-hero-main {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(180px, 0.7fr);
  gap: 16px;
  align-items: start;
  position: relative;
  z-index: 1;
}

.bench-detail-heading {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.bench-detail-logo {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(145deg, #2B6DE8 0%, #1A56DB 55%, #0F3A9E 100%);
  color: #fff;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.02em;
  box-shadow: 0 10px 20px rgba(26, 86, 219, 0.28);
  overflow: hidden;
}

.bench-detail-logo.has-logo {
  background: #fff;
  border: 1px solid var(--color-border);
  box-shadow: none;
}

.bench-detail-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.bench-detail-hero-copy h1 {
  font-size: clamp(24px, 3vw, 32px);
  margin: 0 0 10px;
  line-height: 1.25;
}

.bench-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  color: var(--color-text-secondary);
  font-size: 13px;
}

.bench-detail-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.bench-detail-meta svg {
  color: var(--color-text-muted);
  flex-shrink: 0;
}

.bench-detail-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.bench-detail-tab {
  border: 0;
  background: #F1F4F9;
  color: var(--color-text-secondary);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}

.bench-detail-tab:hover {
  background: #E4ECFA;
  color: var(--color-primary-deep);
}

.bench-detail-tab.is-active {
  background: #D7E6FF;
  color: var(--color-primary-deep);
}

.bench-detail-metrics {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0;
  margin-top: 22px;
  border-top: 1px solid var(--color-border);
  position: relative;
  z-index: 1;
}

.bench-detail-metric {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 18px 14px;
  border-right: 1px solid var(--color-border);
  min-width: 0;
}

.bench-detail-metric:last-child {
  border-right: 0;
}

.bench-detail-metric-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--color-primary-soft);
  color: var(--color-primary);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.bench-detail-metric-label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--color-text-muted);
  margin-bottom: 4px;
}

.bench-detail-metric-value {
  font-size: 18px;
  line-height: 1.2;
  color: var(--color-text);
  word-break: break-word;
}

.bench-detail-metric-value strong {
  font-weight: 700;
}

.bench-detail-metric-value .unit {
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-secondary);
}

.bench-detail-metric-value.is-accent {
  color: var(--color-primary);
}

.bench-detail-metric-value.is-accent .unit {
  color: var(--color-primary);
  opacity: 0.75;
}

.bench-detail-metric-note {
  margin-top: 4px;
  font-size: 12px;
  color: var(--color-text-muted);
}

.bench-score-tip {
  border: 0;
  background: transparent;
  padding: 0;
  color: var(--color-text-muted);
  cursor: help;
  display: inline-flex;
}

.bench-score-summary {
  margin: 0 0 14px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--color-text-secondary);
}

.bench-score-pill {
  display: inline-flex;
  align-items: center;
  margin: 0 4px;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  color: var(--color-primary-deep);
  background: var(--color-primary-soft);
  border: 1px solid var(--color-primary-mute);
  white-space: nowrap;
  vertical-align: baseline;
}

.bench-detail-body {
  padding-top: 20px;
}

.bench-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.85fr) minmax(280px, 1fr);
  gap: 16px;
  align-items: stretch;
}

#benchmark-detail-modules {
  scroll-margin-top: calc(var(--header-h) + 12px);
}

.bench-seo-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 20px 22px;
  box-shadow: 0 8px 24px rgba(15, 28, 46, 0.04);
}

.bench-seo-card h2 {
  margin: 0 0 14px;
  font-size: 18px;
  font-weight: 700;
  color: var(--color-text);
}

.bench-summary-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100%;
}

.bench-summary-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
}

.bench-summary-list li {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 12px 0;
  border-top: 1px solid #E8EEF7;
  font-size: 14px;
  line-height: 1.6;
  color: var(--color-text-secondary);
}

.bench-summary-list li:first-child {
  border-top: 0;
  padding-top: 2px;
}

.bench-summary-list li:last-child {
  padding-bottom: 2px;
}

.bench-summary-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  padding: 3px 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--color-text-secondary);
  background: #EEF2F7;
  border: 1px solid #E2E8F0;
  white-space: nowrap;
}

.bench-disclaimer {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 16px 0 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: linear-gradient(180deg, #F5F9FF 0%, #EEF4FF 100%);
  border: 1px solid #DCE8FA;
  font-size: 12px;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

.bench-disclaimer-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  flex-shrink: 0;
  color: var(--color-primary);
  background: #fff;
  border: 1px solid #D6E4FF;
  margin-top: 1px;
}

.bench-target-card {
  min-width: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 18px 18px 16px;
}

.bench-target-card > h2,
.bench-offer-head h2 {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 700;
  color: var(--color-text);
}

.bench-offer-head {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
}

.bench-offer-price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: linear-gradient(180deg, #F7FAFF 0%, #EEF4FF 100%);
  border: 1px solid #DCE8FA;
}

.bench-offer-price-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--color-text-muted);
}

.bench-offer-price-value {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--color-text);
  line-height: 1.15;
}

.bench-offer-price-note {
  font-size: 12px;
  color: var(--color-text-secondary);
  line-height: 1.35;
}

.bench-offer-specs {
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 14px;
  flex: 1 1 auto;
}

.bench-offer-specs > div {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  padding: 8px 0;
  border-top: 1px solid #E8EEF7;
}

.bench-offer-specs > div:nth-child(-n + 2) {
  border-top: 0;
  padding-top: 0;
}

.bench-offer-specs > div.is-wide {
  grid-column: 1 / -1;
}

.bench-offer-specs dt {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  color: var(--color-text-muted);
  line-height: 1.45;
  padding-top: 1px;
}

.bench-offer-specs dd {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.45;
  word-break: break-word;
}

.bench-offer-specs dd a {
  color: inherit;
  text-decoration: none;
}

.bench-offer-specs dd a:hover {
  color: var(--color-primary);
  text-decoration: underline;
}

.bench-offer-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #E8EEF7;
}

.bench-offer-actions .btn {
  width: 100%;
  justify-content: center;
}

.bench-offer-actions .btn:only-child {
  grid-column: 1 / -1;
}

.bench-offer-disclosure {
  margin: 8px 0 0;
  font-size: 11px;
  line-height: 1.45;
  color: var(--color-text-muted);
}

/* 兼容旧结构（如相关页仍引用） */
.bench-target-list {
  margin: 0;
  display: grid;
}

.bench-target-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 0;
  border-top: 1px solid #E8EEF7;
}

.bench-target-row:first-child {
  border-top: 0;
  padding-top: 2px;
}

.bench-target-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--color-primary);
  background: var(--color-primary-soft);
  border: 1px solid var(--color-primary-mute);
}

.bench-target-body {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.bench-target-body dt {
  font-size: 12px;
  font-weight: 600;
  color: var(--color-text-muted);
}

.bench-target-body dd {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.45;
  word-break: break-word;
}

.related-bench-table-wrap {
  overflow-x: auto;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(15, 28, 46, 0.04);
  -webkit-overflow-scrolling: touch;
}

.related-bench-table {
  width: 100%;
  min-width: 860px;
  border-collapse: collapse;
  font-size: 14px;
}

.related-bench-table thead th {
  padding: 14px 16px;
  text-align: left;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-secondary);
  background: #F5F8FD;
  border-bottom: 1px solid var(--color-border);
  white-space: nowrap;
}

.related-bench-table thead th:nth-child(4),
.related-bench-table thead th:nth-child(5),
.related-bench-table thead th:nth-child(6),
.related-bench-table tbody td:nth-child(4),
.related-bench-table tbody td:nth-child(5),
.related-bench-table tbody td:nth-child(6) {
  text-align: center;
}

.related-bench-table tbody td {
  padding: 16px;
  vertical-align: middle;
  border-bottom: 1px solid #E8EEF7;
  color: var(--color-text-secondary);
}

.related-bench-table tbody tr:last-child td {
  border-bottom: 0;
}

.related-bench-table tbody tr:hover td {
  background: #FBFCFE;
}

.related-bench-date {
  display: grid;
  gap: 6px;
  justify-items: start;
}

.related-bench-status {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.3;
  border: 1px solid transparent;
}

.related-bench-status.is-complete {
  background: #ECFDF5;
  color: #047857;
  border-color: #A7F3D0;
}

.related-bench-status.is-partial {
  background: #FEF3C7;
  color: #92400E;
  border-color: #FDE68A;
}

.related-bench-status.is-failed {
  background: #FEE2E2;
  color: #B91C1C;
  border-color: #FECACA;
}

.related-bench-date-text {
  font-size: 13px;
  color: var(--color-text-muted);
  font-variant-numeric: tabular-nums;
}

.related-bench-plan {
  display: grid;
  gap: 4px;
  min-width: 0;
  text-align: left;
}

.related-bench-plan a {
  color: var(--color-text);
  font-weight: 700;
  text-decoration: none;
  line-height: 1.4;
}

.related-bench-plan a:hover {
  color: var(--color-primary);
}

.related-bench-plan span {
  font-size: 12px;
  color: var(--color-text-muted);
}

.related-bench-network {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: #047857;
  background: #ECFDF5;
  border: 1px solid #A7F3D0;
  white-space: nowrap;
}

.related-bench-network.is-muted {
  color: var(--color-text-muted);
  background: #F1F5F9;
  border-color: #E2E8F0;
}

.related-bench-score {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  padding: 6px 12px;
  border-radius: 10px;
  background: var(--color-primary-soft);
  border: 1px solid var(--color-primary-mute);
  white-space: nowrap;
}

.related-bench-score strong {
  font-size: 16px;
  font-weight: 800;
  color: var(--color-primary);
  font-variant-numeric: tabular-nums;
}

.related-bench-score span {
  font-size: 12px;
  color: var(--color-text-muted);
}

.related-bench-score.is-empty {
  color: var(--color-text-muted);
  background: #F8FAFC;
  border-color: #E2E8F0;
}

.bench-list {
  display: grid;
  gap: 12px;
}

.bench-list-item {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 16px 18px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface);
}

.bench-list-main h2,
.bench-list-main h3 {
  margin: 6px 0;
  font-size: 18px;
}

.bench-list-main h2 a,
.bench-list-main h3 a {
  color: inherit;
  text-decoration: none;
}

.bench-list-main h2 a:hover,
.bench-list-main h3 a:hover {
  color: var(--color-primary);
}

.bench-list-main p {
  margin: 0;
  color: var(--color-text-secondary);
  font-size: 13px;
}

.bench-list-snippet {
  margin-top: 8px !important;
  color: var(--color-text) !important;
  line-height: 1.5;
}

@media (max-width: 1024px) {
  .catalog-layout,
  .bench-catalog-layout {
    grid-template-columns: 1fr;
  }

  .catalog-layout .filter-panel {
    position: static;
    max-height: none;
  }

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

@media (max-width: 1100px) {
  .bench-detail-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .bench-detail-metric:nth-child(3n) {
    border-right: 0;
  }

  .bench-detail-metric:nth-child(n + 4) {
    border-top: 1px solid var(--color-border);
  }
}

@media (max-width: 1100px) and (min-width: 901px) {
  .bench-offer-specs {
    grid-template-columns: 1fr;
  }

  .bench-offer-specs > div:nth-child(2) {
    border-top: 1px solid #E8EEF7;
    padding-top: 8px;
  }
}

@media (max-width: 900px) {
  .bench-hero-row,
  .bench-detail-hero,
  .bench-detail-hero-main,
  .bench-detail-grid,
  .bench-result-top,
  .bench-list-item {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: stretch;
  }

  .bench-offer-actions {
    grid-template-columns: 1fr;
  }

  .bench-result-side,
  .bench-list-side {
    align-items: stretch;
    width: 100%;
  }

  .bench-result-side .bench-score-badge,
  .bench-list-side .bench-score-badge {
    width: 100%;
    justify-content: center;
  }

  .bench-result-actions {
    justify-content: stretch;
  }

  .bench-result-actions .btn,
  .bench-list-side .btn {
    flex: 1;
    justify-content: center;
  }

  .bench-detail-hero-main .bench-hero-art {
    display: none;
  }

  .bench-summary-list li {
    grid-template-columns: 76px minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  .bench-metric-row {
    grid-template-columns: 1fr 1fr;
  }

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

  .bench-detail-metric {
    border-right: 0;
  }

  .bench-detail-metric:nth-child(odd) {
    border-right: 1px solid var(--color-border);
  }

  .bench-detail-metric:nth-child(n + 3) {
    border-top: 1px solid var(--color-border);
  }

  .bench-detail-actions {
    width: 100%;
  }

  .bench-detail-actions .btn {
    flex: 1;
    justify-content: center;
  }
}

/* Content: blog & pages */
.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;
}

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

.blog-list-layout {
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 20px;
}

.blog-list-section {
  padding-top: 8px;
}

.content-sidebar {
  position: sticky;
  top: calc(var(--header-h) + 16px);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 8px 24px rgba(15, 28, 46, 0.04);
}

.content-sidebar h2 {
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 700;
}

.content-cat-nav {
  display: grid;
  gap: 4px;
}

.content-cat-nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--color-text);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  transition: background 0.15s ease, color 0.15s ease;
}

.content-cat-nav .blog-cat-count {
  color: var(--color-text-muted);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.content-cat-nav a:hover {
  background: #F5F8FF;
  color: var(--color-primary);
}

.content-cat-nav a.is-active {
  background: var(--color-primary-soft);
  color: var(--color-primary);
}

.content-cat-nav a.is-active .blog-cat-count {
  color: var(--color-primary);
}

.content-main {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.blog-list-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.blog-list-count {
  margin: 0;
  font-size: 13px;
  color: var(--color-text-secondary);
}

.blog-list-count strong {
  color: var(--color-text);
  font-weight: 700;
}

.blog-list-search {
  position: relative;
  flex: 1 1 240px;
  max-width: 320px;
  margin-left: auto;
}

.blog-list-search input {
  width: 100%;
  height: 40px;
  padding: 0 40px 0 14px;
  border: 1px solid #D7E2F2;
  border-radius: 12px;
  background: #fff;
  color: var(--color-text);
  font-size: 13px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.blog-list-search input::placeholder {
  color: #94A3B8;
}

.blog-list-search input:focus {
  border-color: var(--color-primary-mute, #93B4F8);
  box-shadow: 0 0 0 3px rgba(26, 86, 219, 0.12);
}

.blog-list-search button {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #64748B;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.blog-list-search button:hover {
  color: var(--color-primary);
  background: var(--color-primary-soft);
}

.blog-post-list {
  display: grid;
  gap: 12px;
}

.post-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(15, 28, 46, 0.04);
}

.post-card-row {
  grid-template-columns: 168px minmax(0, 1fr) 28px;
  align-items: center;
  gap: 0 16px;
  padding: 14px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.post-card-row:hover {
  border-color: #C9DBF7;
  box-shadow: 0 12px 28px rgba(26, 86, 219, 0.08);
  transform: translateY(-1px);
}

.post-card-row .post-card-cover {
  display: block;
  width: 168px;
  height: 104px;
  min-height: 0;
  border-radius: 12px;
  overflow: hidden;
  background:
    linear-gradient(135deg, #E8F0FF 0%, #F3F7FF 55%, #EEF4FF 100%);
  flex-shrink: 0;
}

.post-card-row .post-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.post-card-cover-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 700;
  color: var(--color-primary);
  opacity: 0.55;
}

.post-card-row .post-card-body {
  padding: 2px 0;
  display: grid;
  gap: 6px;
  align-content: center;
  min-width: 0;
}

.post-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  font-size: 12px;
  color: var(--color-text-muted);
}

.post-card-tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 6px;
  background: var(--color-primary-soft);
  color: var(--color-primary);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
}

.post-card-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--color-text);
}

.post-card-row:hover .post-card-title {
  color: var(--color-primary);
}

.post-card-excerpt {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
  color: var(--color-text-secondary);
  font-size: 13px;
  line-height: 1.6;
}

.post-card-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #94A3B8;
  transition: color 0.15s ease, transform 0.15s ease;
}

.post-card-row:hover .post-card-arrow {
  color: var(--color-primary);
  transform: translateX(2px);
}

.blog-list-main .pagination {
  margin-top: 8px;
  justify-content: center;
}

.post-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-bottom: 10px;
  font-size: 13px;
  color: var(--color-text-muted);
}

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

.content-prose-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 24px 28px;
  box-shadow: 0 8px 24px rgba(15, 28, 46, 0.04);
}

.content-page-card {
  max-width: 860px;
  margin: 0 auto;
}

.content-cover {
  margin: 0 0 20px;
  border-radius: 12px;
  overflow: hidden;
}

.content-cover img {
  width: 100%;
  display: block;
}

.content-prose {
  font-size: 15px;
  line-height: 1.8;
  color: var(--color-text);
}

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

.content-prose h2,
.content-prose h3 {
  margin: 1.4em 0 0.6em;
  line-height: 1.35;
}

.content-prose p,
.content-prose ul,
.content-prose ol {
  margin: 0 0 1em;
}

.content-prose a {
  color: var(--color-primary);
}

.content-prose img {
  max-width: 100%;
  border-radius: 10px;
}

.content-related {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 8px 24px rgba(15, 28, 46, 0.04);
  position: sticky;
  top: calc(var(--header-h) + 16px);
}

.content-related h2 {
  margin: 0 0 12px;
  font-size: 15px;
}

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

.content-related-list a {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #F7FAFF;
  border: 1px solid #E6EEF8;
  text-decoration: none;
  color: inherit;
}

.content-related-list a:hover {
  border-color: var(--color-primary-mute);
}

.content-related-list strong {
  font-size: 13px;
  line-height: 1.45;
}

.content-related-list span {
  font-size: 12px;
  color: var(--color-text-muted);
}

.content-contact-box {
  margin-top: 24px;
  padding: 16px 18px;
  border-radius: 12px;
  background: linear-gradient(180deg, #F5F9FF 0%, #EEF4FF 100%);
  border: 1px solid #DCE8FA;
}

.content-contact-box h2 {
  margin: 0 0 8px;
  font-size: 16px;
}

.content-contact-box p {
  margin: 0 0 8px;
  color: var(--color-text-secondary);
  font-size: 14px;
  line-height: 1.6;
}

.content-contact-note {
  margin: 0 !important;
  font-size: 12px !important;
  color: var(--color-text-muted) !important;
}

@media (max-width: 960px) {
  .content-layout,
  .blog-list-layout,
  .content-article-layout {
    grid-template-columns: 1fr;
  }

  .content-sidebar,
  .content-related {
    position: static;
  }

  .blog-list-search {
    max-width: none;
    margin-left: 0;
  }

  .post-card-row {
    grid-template-columns: 120px minmax(0, 1fr) 22px;
    gap: 0 12px;
    padding: 12px;
  }

  .post-card-row .post-card-cover {
    width: 120px;
    height: 82px;
  }

  .post-card-title {
    font-size: 15px;
  }
}

@media (max-width: 640px) {
  .post-card-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .post-card-row .post-card-cover {
    width: 100%;
    height: 160px;
  }

  .post-card-arrow {
    display: none;
  }
}

/* Independent page template */
.content-page-hero .content-page-hero-panel {
  background:
    radial-gradient(circle at 88% 20%, rgba(26, 86, 219, 0.12), transparent 42%),
    linear-gradient(135deg, #F5F9FF 0%, #EEF4FF 55%, #F8FBFF 100%);
}

.content-page-section {
  padding-top: 8px;
}

.content-page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 20px;
  align-items: start;
}

.content-page-main {
  max-width: none;
  margin: 0;
  padding: 28px 32px;
}

.content-page-aside {
  display: grid;
  gap: 14px;
  position: sticky;
  top: calc(var(--header-h) + 16px);
}

.content-side-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 16px 16px 14px;
  box-shadow: 0 8px 24px rgba(15, 28, 46, 0.04);
}

.content-side-card h2 {
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 700;
}

.content-toc {
  display: grid;
  gap: 4px;
}

.content-toc-link {
  position: relative;
  display: block;
  padding: 8px 10px 8px 18px;
  border-radius: 10px;
  color: var(--color-text-secondary);
  text-decoration: none;
  font-size: 13px;
  line-height: 1.45;
  font-weight: 500;
}

.content-toc-link.is-level-3 {
  padding-left: 28px;
  font-weight: 400;
}

.content-toc-link::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 50%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #CBD5E1;
  transform: translateY(-50%);
}

.content-toc-link:hover,
.content-toc-link.is-active {
  background: var(--color-primary-soft);
  color: var(--color-primary);
}

.content-toc-link.is-active::before {
  background: var(--color-primary);
}

.content-related-links {
  display: grid;
}

.content-related-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 2px;
  border-top: 1px solid #E8EEF7;
  color: var(--color-text);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
}

.content-related-links a:first-child {
  border-top: 0;
  padding-top: 2px;
}

.content-related-links a:hover {
  color: var(--color-primary);
}

.content-related-links svg {
  flex-shrink: 0;
  color: #94A3B8;
}

.content-page-prose {
  font-size: 15px;
  line-height: 1.85;
  color: var(--color-text-secondary);
}

.content-page-prose h2,
.content-page-prose h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 1.6em 0 0.75em;
  color: var(--color-text);
  font-weight: 700;
  scroll-margin-top: calc(var(--header-h) + 20px);
}

.content-page-prose h2 {
  font-size: 20px;
}

.content-page-prose h3 {
  font-size: 17px;
}

.content-page-prose h2::before,
.content-page-prose h3::before {
  content: "";
  width: 4px;
  height: 1.05em;
  border-radius: 999px;
  background: var(--color-primary);
  flex-shrink: 0;
}

.content-page-prose > h2:first-child,
.content-page-prose > h3:first-child {
  margin-top: 0;
}

.content-page-prose ul {
  padding-left: 0;
  list-style: none;
}

.content-page-prose ul li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 8px;
}

.content-page-prose ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-primary);
}

.content-feature-list {
  display: grid;
  gap: 0;
  margin: 14px 0 18px;
  padding: 4px 16px;
  background: linear-gradient(180deg, #F7FAFF 0%, #F2F7FF 100%);
  border: 1px solid #DCE8FA;
  border-radius: 14px;
}

.content-feature-item {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 14px 0;
  border-top: 1px solid #E4EDF8;
}

.content-feature-item:first-child {
  border-top: 0;
}

.content-feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  background: #fff;
  border: 1px solid #D6E4FF;
}

.content-feature-item strong {
  display: block;
  margin-bottom: 4px;
  color: var(--color-text);
  font-size: 14px;
}

.content-feature-item span {
  display: block;
  color: var(--color-text-secondary);
  font-size: 13px;
  line-height: 1.55;
}

@media (max-width: 960px) {
  .content-page-layout {
    grid-template-columns: 1fr;
  }

  .content-page-aside {
    position: static;
  }

  .content-page-main {
    padding: 20px;
  }
}

/* Article detail template */
.blog-detail-section {
  padding-top: 28px;
}

.blog-detail-layout {
  grid-template-columns: minmax(0, 1fr) 300px;
}

.blog-detail-main {
  padding: 28px 32px 24px;
}

.blog-detail-breadcrumb {
  margin-bottom: 16px;
}

.blog-detail-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-bottom: 14px;
  font-size: 13px;
  color: var(--color-text-muted);
}

.blog-detail-meta .post-card-tag {
  text-decoration: none;
}

.blog-detail-meta .post-card-tag:hover {
  filter: brightness(0.96);
}

.blog-detail-title {
  margin: 0 0 14px;
  font-size: 30px;
  line-height: 1.3;
  font-weight: 800;
  color: var(--color-text);
}

.blog-detail-lead {
  margin: 0 0 22px;
  padding-bottom: 20px;
  border-bottom: 1px solid #E6EEF8;
  color: var(--color-text-secondary);
  font-size: 15px;
  line-height: 1.75;
}

.blog-detail-prose {
  margin-top: 4px;
}

.content-callout {
  margin: 14px 0 18px;
  padding: 14px 18px;
  background: linear-gradient(180deg, #F7FAFF 0%, #F2F7FF 100%);
  border: 1px solid #DCE8FA;
  border-radius: 14px;
}

.content-callout ul,
.content-callout ol {
  margin: 0;
  padding-left: 0;
  list-style: none;
}

.content-callout li {
  position: relative;
  padding-left: 18px;
  margin: 0 0 10px;
  color: var(--color-text-secondary);
  font-size: 14px;
  line-height: 1.65;
}

.content-callout li:last-child {
  margin-bottom: 0;
}

.content-callout li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-primary);
}

.content-tip {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 22px 0 8px;
  padding: 14px 16px;
  background: #F5F8FC;
  border: 1px solid #E4ECF6;
  border-radius: 12px;
}

.content-tip-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  margin-top: 1px;
}

.content-tip p {
  margin: 0;
  color: var(--color-text-secondary);
  font-size: 13px;
  line-height: 1.65;
}

.blog-detail-pager {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid #E6EEF8;
}

.blog-detail-pager-item {
  display: grid;
  gap: 6px;
  min-width: 0;
  text-decoration: none;
  color: inherit;
}

.blog-detail-pager-item.is-next {
  text-align: right;
  justify-items: end;
}

.blog-detail-pager-label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--color-text-muted);
  font-size: 12px;
  font-weight: 600;
}

.blog-detail-pager-item strong {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
  color: var(--color-text);
}

.blog-detail-pager-item:hover strong {
  color: var(--color-primary);
}

.blog-detail-pager-item.is-empty {
  pointer-events: none;
}

.blog-detail-aside {
  display: grid;
  gap: 14px;
  position: sticky;
  top: calc(var(--header-h) + 16px);
  align-self: start;
}

@media (max-width: 960px) {
  .blog-detail-layout {
    grid-template-columns: 1fr;
  }

  .blog-detail-aside {
    position: static;
  }

  .blog-detail-main {
    padding: 20px;
  }

  .blog-detail-title {
    font-size: 24px;
  }

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

  .blog-detail-pager-item.is-next {
    text-align: left;
    justify-items: start;
  }
}
