:root {
  --page: #f7f9ff;
  --base: #ffffff;
  --soft: #f1f5ff;
  --panel: #eef4ff;
  --brand: #3158ff;
  --brand-2: #6c5cff;
  --brand-soft: #eef2ff;
  --cyan: #28d4c7;
  --coral: #ff6b5d;
  --gold: #ffc84a;
  --ink: #101828;
  --text: #344054;
  --muted: #7d89a6;
  --line: rgba(88, 101, 135, .14);
  --shadow: 0 18px 45px rgba(33, 48, 92, .10);
}
* { box-sizing: border-box; }
html { background: var(--page); scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(180deg, #ffffff 0, #f7f9ff 520px),
    var(--page);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}
a { color: inherit; }
button, input, select { font: inherit; }
.shell { width: min(1320px, 100%); margin: 0 auto; padding: 0 26px 54px; }
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 68px;
  background: rgba(255, 255, 255, .88);
  border-bottom: 1px solid rgba(88, 101, 135, .08);
  backdrop-filter: blur(18px);
}
.brand { display: inline-flex; align-items: center; gap: 9px; color: #101a4f; text-decoration: none; font-size: 21px; font-weight: 950; white-space: nowrap; }
.brand-mark {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--cyan));
  box-shadow: 0 10px 24px rgba(49, 88, 255, .22);
  font-size: 16px;
}
.nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.nav a { padding: 10px 13px; border-radius: 8px; color: #202a44; font-size: 14px; font-weight: 800; text-decoration: none; white-space: nowrap; }
.nav a.active, .nav a:hover { color: var(--brand); background: var(--brand-soft); }
.top-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.top-search {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: center;
  width: 190px;
  height: 36px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--muted);
}
.top-search input { min-width: 0; border: 0; outline: 0; color: var(--text); font-size: 13px; }
.login-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 900;
}
.login-link {
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
}
.login-link.is-authenticated {
  color: #1f2a44;
  background: #eef4ff;
  box-shadow: inset 0 0 0 1px rgba(49, 88, 255, .12);
}

.intro-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(390px, 500px);
  gap: 30px;
  align-items: center;
  min-height: 304px;
  padding: 34px 42px 36px;
  overflow: hidden;
  border-radius: 0 0 18px 18px;
  background: linear-gradient(103deg, #fff 0, #fbfcff 48%, #eef2ff 100%);
}
.intro-copy { position: relative; z-index: 1; }
.intro-copy h1 { margin: 0; max-width: 560px; font-size: 40px; line-height: 1.22; letter-spacing: 0; color: #101828; font-weight: 950; }
.intro-copy > p { max-width: 610px; margin: 18px 0 0; color: #344054; font-size: 15px; font-weight: 750; line-height: 1.85; }
.hero-search {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) 112px;
  align-items: center;
  width: min(584px, 100%);
  height: 54px;
  margin-top: 27px;
  padding: 0 8px 0 17px;
  border: 1px solid rgba(49, 88, 255, .16);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(33, 48, 92, .08);
}
.hero-search span { color: var(--muted); }
.hero-search input { min-width: 0; border: 0; outline: 0; color: var(--text); font-size: 14px; }
.hero-search button { height: 40px; border: 0; border-radius: 6px; color: #fff; background: linear-gradient(135deg, var(--brand), var(--brand-2)); font-size: 14px; font-weight: 900; cursor: pointer; }
.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 620px;
  margin-top: 16px;
}
.hero-tags a {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 6px 12px;
  border-radius: 999px;
  color: #475467;
  background: rgba(255, 255, 255, .62);
  text-decoration: none;
  font-size: 13px;
  font-weight: 850;
}
.hero-tags a.active, .hero-tags a:hover { color: var(--brand); background: var(--brand-soft); }
.hero-visual {
  position: relative;
  height: 280px;
  overflow: hidden;
  justify-self: stretch;
}
.hero-art {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 72% center;
  filter: drop-shadow(0 18px 34px rgba(49, 88, 255, .12));
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 16%, #000 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 16%, #000 100%);
}
.hero-phone::after, .phone-preview::after, .detail-phone::before, .center-hero-preview span::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(12, 18, 38, .02), rgba(12, 18, 38, .12) 42%, rgba(12, 18, 38, .78));
}
.hero-phone strong, .hero-phone span { position: relative; z-index: 1; display: block; }
.hero-phone span { width: max-content; padding: 4px 7px; border-radius: 6px; background: rgba(255, 255, 255, .22); font-size: 11px; font-weight: 900; }
.hero-phone strong { margin-top: 118px; font-size: 17px; line-height: 1.2; }
.hero-phone-0 { right: 220px; top: 8px; transform: rotate(-2deg); }
.hero-phone-1 { right: 72px; top: 22px; transform: rotate(13deg); }

.section { margin-top: 30px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 16px; }
.slim-head h2, .slim-head .section-title { margin: 0; }
.section-head a { color: #69758f; text-decoration: none; font-size: 13px; font-weight: 800; }
.section-title { margin: 0; color: #101828; font-size: 22px; line-height: 1.25; }
.section-title small { margin-left: 10px; color: var(--brand); font-size: 13px; }
.section-lead { margin: 8px 0 0; color: var(--muted); line-height: 1.7; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border: 0;
  border-radius: 6px;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}
.primary { color: #fff; background: linear-gradient(135deg, var(--brand), var(--brand-2)); }
.secondary { border: 1px solid rgba(88, 101, 135, .16); color: #111827; background: #fff; }
.ghost { border: 1px solid rgba(88, 101, 135, .16); color: #111827; background: #fff; }
.inline-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.inline-tabs a {
  min-height: 28px;
  padding: 6px 12px;
  border-radius: 999px;
  color: #475467;
  background: transparent;
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
}
.inline-tabs a.active, .inline-tabs a:hover { color: var(--brand); background: var(--brand-soft); }

.template-category-section { margin-top: 34px; }
.template-category-groups { display: grid; gap: 28px; }
.category-block { display: block; }
.phone-template-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(154px, 1fr)); gap: 18px; }
.home-template-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.phone-template-card {
  position: relative;
  overflow: hidden;
  min-width: 0;
  border: 1px solid rgba(88, 101, 135, .12);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(33, 48, 92, .08);
  transition: transform .18s ease, box-shadow .18s ease;
}
.phone-template-card:hover, .phone-template-card.selected { transform: translateY(-4px); box-shadow: 0 20px 44px rgba(33, 48, 92, .14); }
.phone-preview {
  position: relative;
  display: block;
  aspect-ratio: 9 / 13.6;
  overflow: hidden;
  background-color: var(--soft);
  background-position: center;
  background-size: cover;
  text-decoration: none;
}
.status-ribbon {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  min-height: 20px;
  padding: 3px 7px;
  border-radius: 4px;
  color: #fff;
  background: linear-gradient(135deg, #ff3d34, #ff8c3a);
  font-size: 10px;
  font-weight: 950;
}
.phone-copy {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 1;
  color: #fff;
  transition: opacity .16s ease, transform .16s ease;
}
.phone-copy strong { display: block; font-size: 16px; line-height: 1.22; }
.phone-copy span { display: block; margin-top: 5px; color: rgba(255, 255, 255, .84); font-size: 12px; line-height: 1.45; }
.phone-template-card:hover .phone-copy, .phone-template-card.selected .phone-copy {
  opacity: 0;
  transform: translateY(8px);
}
.phone-card-body { padding: 11px 10px 12px; }
.phone-card-body h3 { margin: 0; color: #101828; font-size: 14px; line-height: 1.35; }
.phone-card-body h3 a { text-decoration: none; }
.phone-card-body p { margin: 5px 0 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
.card-meta-line { display: flex; justify-content: space-between; gap: 8px; margin-top: 8px; color: var(--muted); font-size: 12px; }
.category-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.category-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 6px;
  color: #5d667f;
  background: var(--soft);
  font-size: 11px;
  font-weight: 800;
}
.category-preview {
  position: absolute;
  inset: auto 0 0;
  z-index: 3;
  display: grid;
  gap: 7px;
  padding: 16px;
  color: #fff;
  background: linear-gradient(180deg, rgba(20, 27, 46, 0), rgba(20, 27, 46, .90) 34%, rgba(20, 27, 46, .96));
  opacity: 0;
  transform: translateY(12px);
  transition: .18s ease;
}
.category-preview strong { font-size: 16px; line-height: 1.25; }
.category-preview span { color: rgba(255, 255, 255, .82); font-size: 12px; }
.category-preview .button { width: 100%; min-height: 34px; color: #10204f; background: #fff; }
.phone-template-card:hover .category-preview, .phone-template-card.selected .category-preview { opacity: 1; transform: translateY(0); }

.template-discovery-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 430px);
  gap: 30px;
  align-items: center;
  min-height: 304px;
  margin-top: 16px;
  padding: 36px 42px;
  overflow: hidden;
  border-radius: 0 0 18px 18px;
  background: linear-gradient(103deg, #fff 0, #fbfcff 48%, #eef2ff 100%);
}
.template-discovery-hero::before {
  content: "";
  position: absolute;
  inset: 18px 24px auto auto;
  width: 230px;
  height: 230px;
  border-radius: 999px;
  background: rgba(49, 88, 255, .08);
  filter: blur(8px);
  display: none;
}
.template-discovery-copy { position: relative; z-index: 1; }
.hero-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  color: var(--brand);
  background: rgba(49, 88, 255, .08);
  font-size: 13px;
  font-weight: 950;
}
.template-discovery-copy h1 {
  margin: 16px 0 10px;
  max-width: 620px;
  color: #101828;
  font-size: 46px;
  line-height: 1.08;
  letter-spacing: 0;
}
.template-discovery-copy p {
  max-width: 580px;
  margin: 0;
  color: #344054;
  font-size: 16px;
  font-weight: 750;
  line-height: 1.8;
}
.template-center-search { display: grid; }
.template-hot-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
  color: #24304f;
  font-size: 13px;
  font-weight: 900;
}
.template-hot-tags a {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border: 1px solid rgba(49, 88, 255, .12);
  border-radius: 999px;
  background: rgba(255, 255, 255, .72);
  text-decoration: none;
}
.template-hot-tags a:hover {
  color: var(--brand);
  background: var(--brand-soft);
}
.template-hot-tags a + a::before {
  content: "";
  width: 5px;
  height: 5px;
  margin-right: 10px;
  border-radius: 999px;
  background: var(--cyan);
}
.center-hero-preview {
  position: relative;
  z-index: 1;
  height: 250px;
  justify-self: stretch;
}
.center-hero-workflow {
  display: grid;
  align-content: center;
  gap: 12px;
}
.center-hero-workflow img {
  display: block;
  width: min(100%, 430px);
  height: 206px;
  margin-left: auto;
  object-fit: cover;
  object-position: center;
  border-radius: 16px;
  box-shadow: 0 24px 54px rgba(33, 48, 92, .14);
}
.workflow-labels {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}
.workflow-labels span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid rgba(49, 88, 255, .14);
  border-radius: 999px;
  color: #24304f;
  background: rgba(255, 255, 255, .78);
  font-size: 12px;
  font-weight: 900;
}
.center-hero-preview span {
  position: absolute;
  width: 124px;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  border: 6px solid rgba(255, 255, 255, .84);
  border-radius: 22px;
  background-position: center;
  background-size: cover;
  box-shadow: 0 24px 54px rgba(33, 48, 92, .18);
}
.center-hero-preview span::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(12, 18, 38, .02), rgba(12, 18, 38, .12) 45%, rgba(12, 18, 38, .62));
}
.center-hero-preview span:first-child { right: 190px; top: 34px; transform: rotate(-8deg); }
.center-hero-preview span:nth-child(2) { right: 100px; top: 10px; z-index: 2; transform: rotate(5deg); }
.center-hero-preview span:nth-child(3) { right: 10px; top: 44px; transform: rotate(12deg); }
.filter-panel {
  position: sticky;
  top: 78px;
  z-index: 16;
  margin: 22px 0;
  padding: 12px 14px;
  overflow-x: auto;
  overflow-y: visible;
  border: 1px solid rgba(88, 101, 135, .10);
  border-radius: 10px;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(16px);
  box-shadow: 0 18px 38px rgba(33, 48, 92, .08);
}
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; padding: 18px 0 8px; color: var(--muted); font-size: 13px; }
.center-breadcrumb { padding: 0 0 4px; }
.template-center-breadcrumb {
  padding: 0;
  margin: 0 0 14px;
  color: #65718b;
}
.breadcrumb a { text-decoration: none; }
.breadcrumb a + a::before { content: ">"; margin-right: 8px; color: #a7b0c2; }
.filter-toolbar-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
  min-width: max-content;
}
.filter-toolbar-label {
  flex: 0 0 auto;
  color: #667085;
  font-size: 13px;
  font-weight: 900;
}
.filter-dropdown { position: relative; }
.filter-dropdown,
.filter-dropdown summary,
.filter-reset,
.filter-toolbar-label {
  flex: 0 0 auto;
  white-space: nowrap;
}
.filter-dropdown summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 10px;
  border: 1px solid rgba(88, 101, 135, .08);
  border-radius: 8px;
  color: #344054;
  background: #f8faff;
  cursor: pointer;
  list-style: none;
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
}
.filter-dropdown summary::-webkit-details-marker { display: none; }
.filter-dropdown summary::after {
  content: "⌄";
  color: var(--brand);
  font-size: 12px;
}
.filter-dropdown[open] summary {
  color: var(--brand);
  background: var(--brand-soft);
  border-color: rgba(49, 88, 255, .16);
}
.filter-dropdown[open] summary::after { transform: rotate(180deg); }
.filter-dropdown summary strong { color: var(--brand); font-weight: 950; }
.filter-dropdown summary span,
.filter-dropdown summary strong { white-space: nowrap; }
.filter-dropdown summary em {
  display: inline-grid;
  min-width: 18px;
  height: 18px;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: var(--brand);
  font-size: 11px;
  font-style: normal;
  font-weight: 950;
}
.filter-menu {
  position: absolute;
  left: 0;
  top: calc(100% + 8px);
  z-index: 24;
  display: grid;
  gap: 4px;
  width: max-content;
  min-width: 178px;
  max-width: min(360px, calc(100vw - 48px));
  max-height: 360px;
  overflow: auto;
  padding: 8px;
  border: 1px solid rgba(88, 101, 135, .12);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(33, 48, 92, .16);
}
.filter-menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 3px 6px 7px;
  color: #101828;
  font-size: 13px;
}
.filter-menu-head span {
  color: #8a95aa;
  font-size: 12px;
  font-weight: 800;
}
.sort-dropdown { margin-left: auto; }
.sort-dropdown .filter-menu { left: auto; right: 0; min-width: 142px; }
.more-filter-menu {
  width: 480px;
  max-width: min(560px, calc(100vw - 48px));
}
.filter-menu-group {
  display: grid;
  gap: 4px;
  padding: 4px 0 8px;
}
.filter-menu-group + .filter-menu-group {
  border-top: 1px solid rgba(88, 101, 135, .10);
  padding-top: 8px;
}
.filter-option-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.filter-option-grid .filter-option {
  min-height: 30px;
  background: #f8faff;
}
.filter-option,
.filter-clear {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  padding: 0 9px;
  border-radius: 7px;
  color: #344054;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 850;
}
.filter-option input { accent-color: #3158ff; }
.filter-option.active,
.filter-option:hover,
.filter-clear.active,
.filter-clear:hover {
  color: var(--brand);
  background: var(--brand-soft);
}
.filter-menu-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
  padding: 8px 4px 2px;
  border-top: 1px solid rgba(88, 101, 135, .10);
}
.filter-menu-actions button {
  min-height: 30px;
  padding: 0 12px;
  border: 0;
  border-radius: 7px;
  color: #fff;
  background: var(--brand);
  cursor: pointer;
  font-size: 13px;
  font-weight: 900;
}
.filter-reset {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 13px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 900;
}
.filter-reset {
  flex: 0 0 auto;
  color: #65718b;
  background: #f7f9ff;
  text-decoration: none;
}
.filter-line { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 12px; align-items: start; }
.filter-panel.is-collapsed .filter-line:nth-of-type(n+3) { display: none; }
.filter-panel.is-collapsed .filter-line:nth-of-type(n+3):has(.filter-chip.active) { display: grid; }
.filter-line strong { padding-top: 6px; color: #344054; font-size: 13px; line-height: 1.4; white-space: nowrap; }
.filter-chips { display: flex; flex-wrap: wrap; gap: 8px 12px; }
.filter-chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 6px;
  color: #4b5565;
  background: transparent;
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
}
.filter-chip.active, .filter-chip:hover { color: var(--brand); background: var(--brand-soft); }
.filter-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: center;
  gap: 6px;
  min-height: 30px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  color: var(--brand);
  background: var(--brand-soft);
  cursor: pointer;
  font-size: 13px;
  font-weight: 900;
}
.filter-toggle-icon {
  display: inline-grid;
  width: 18px;
  height: 18px;
  place-items: center;
  transition: transform .18s ease;
}
.filter-panel:not(.is-collapsed) .filter-toggle-icon { transform: rotate(180deg); }
.result-tabs {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 18px;
}
.result-tabs a {
  min-height: 32px;
  padding: 7px 13px;
  border-radius: 6px;
  color: #475467;
  text-decoration: none;
  font-size: 13px;
  font-weight: 900;
}
.result-tabs a.active, .result-tabs a:hover { color: var(--brand); background: var(--brand-soft); }
.home-result-tabs { margin-bottom: 18px; }
.template-center-seo-entry { margin-top: 22px; }
.template-center-seo-entry .template-hot-tags { margin-top: 0; }
.template-center-highlight-section { margin-top: 24px; }
.template-center-highlight-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.template-center-highlight-card {
  min-width: 0;
  padding: 18px;
  border: 1px solid rgba(88, 101, 135, .10);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(33, 48, 92, .05);
}
.template-center-highlight-card h2 {
  margin: 0 0 8px;
  color: #101828;
  font-size: 18px;
  line-height: 1.35;
}
.template-center-highlight-card p {
  min-height: 44px;
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
  line-height: 1.7;
}
.template-center-highlight-list {
  display: grid;
  gap: 8px;
}
.template-center-highlight-list a {
  display: grid;
  gap: 3px;
  min-height: 48px;
  padding: 9px 10px;
  border-radius: 8px;
  color: inherit;
  background: #f8faff;
  text-decoration: none;
}
.template-center-highlight-list a:hover {
  color: var(--brand);
  background: var(--brand-soft);
}
.template-center-highlight-list strong {
  overflow: hidden;
  color: #24304f;
  font-size: 14px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.template-center-highlight-list span {
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.category-block-head { margin-bottom: 14px; }
.load-more-state {
  display: grid;
  place-items: center;
  min-height: 44px;
  margin-top: 20px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}
.pager { display: flex; justify-content: center; gap: 8px; margin-top: 26px; }
.pager a, .pager span {
  display: grid;
  min-width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: #344054;
  text-decoration: none;
  font-size: 13px;
  font-weight: 850;
}
.pager a.active { color: #fff; background: var(--brand); border-color: var(--brand); }

.template-detail-hero {
  display: grid;
  grid-template-columns: minmax(560px, 740px) minmax(0, 1fr);
  gap: 38px;
  align-items: center;
  padding: 16px 0 34px;
}
.detail-preview-workbench {
  display: grid;
  grid-template-columns: 150px minmax(280px, 1fr) 44px;
  gap: 18px;
  align-items: center;
  padding: 22px;
  overflow: hidden;
  border: 1px solid rgba(49, 88, 255, .10);
  border-radius: 18px;
  background:
    linear-gradient(90deg, rgba(49, 88, 255, .05) 1px, transparent 1px),
    linear-gradient(180deg, rgba(49, 88, 255, .04) 1px, transparent 1px),
    linear-gradient(145deg, #ffffff, #f1f5ff);
  background-size: 34px 34px, 34px 34px, auto;
  box-shadow: 0 20px 56px rgba(33, 48, 92, .10);
}
.preview-strip {
  --thumb-scale: .292;
  counter-reset: previewPage;
  display: grid;
  grid-auto-rows: 212px;
  gap: 14px;
  align-content: start;
  max-height: 526px;
  overflow: auto;
  padding: 10px;
  border: 1px solid rgba(49, 88, 255, .14);
  border-radius: 12px;
  background: rgba(255,255,255,.62);
  scrollbar-width: none;
}
.preview-strip::-webkit-scrollbar {
  width: 0;
  height: 0;
}
.preview-thumb {
  counter-increment: previewPage;
  position: relative;
  display: block;
  width: 100%;
  height: 212px;
  min-height: 0;
  padding: 5px;
  appearance: none;
  overflow: hidden;
  border: 1px solid rgba(88, 101, 135, .16);
  border-radius: 10px;
  color: #344054;
  background: #fff;
  cursor: pointer;
  text-align: left;
  box-shadow: 0 8px 18px rgba(33, 48, 92, .08);
}
.preview-thumb.is-active {
  border-color: rgba(49, 88, 255, .55);
  box-shadow: 0 12px 26px rgba(49, 88, 255, .16);
}
.preview-thumb.is-active::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 7px;
  box-shadow: inset 0 0 0 2px rgba(49, 88, 255, .36);
  pointer-events: none;
}
.preview-thumb-index::before { content: counter(previewPage); }
.preview-thumb-index {
  position: absolute;
  left: 9px;
  top: 9px;
  z-index: 3;
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 7px;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  font-size: 12px;
  font-weight: 950;
}
.preview-thumb-canvas, .preview-thumb-fallback {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 7px;
  background: #fff;
}
.preview-thumb-fallback {
  background-position: center;
  background-size: cover;
}
.doc-thumb-preview {
  position: absolute;
  left: 0;
  top: 0;
  width: calc(var(--doc-width) * 1px);
  height: calc(var(--doc-height) * 1px);
  overflow: hidden;
  border-radius: 25px;
  background: #fff;
  transform: scale(var(--thumb-scale));
  transform-origin: 0 0;
}
.preview-stage {
  display: grid;
  justify-items: center;
  gap: 12px;
  min-width: 0;
}
.preview-stage-head {
  display: flex;
  width: min(330px, 100%);
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}
.preview-stage-head strong {
  min-width: 0;
  overflow: hidden;
  color: #101828;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.detail-phone-shell {
  width: min(330px, 100%);
  padding: 10px;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 24px 64px rgba(33, 48, 92, .18);
}
.doc-preview {
  position: relative;
  width: 100%;
  aspect-ratio: var(--doc-width) / var(--doc-height);
  overflow: hidden;
  border-radius: 25px;
  background: #fff;
}
.doc-page {
  position: absolute;
  inset: 0;
  overflow: hidden;
  opacity: 0;
  background: linear-gradient(180deg, #fff8f0, #fff);
  pointer-events: none;
  transition: opacity .18s ease;
}
.doc-page.is-active {
  opacity: 1;
  pointer-events: auto;
}
.doc-component { position: absolute; z-index: 1; box-sizing: border-box; }
.doc-image {
  object-fit: cover;
  display: block;
  filter: brightness(var(--brightness, 100%)) contrast(var(--contrast, 100%)) saturate(var(--saturate, 100%));
}
.doc-text {
  display: grid;
  align-content: center;
  margin: 0;
  overflow: hidden;
  white-space: pre-wrap;
}
.doc-button {
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--coral), var(--brand-2));
  font-weight: 900;
}
.doc-preview-fallback .doc-page::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(12, 18, 38, .04), rgba(12, 18, 38, .76));
}
.doc-fallback-cover { inset: 0; width: 100%; height: 100%; object-fit: cover; }
.doc-fallback-copy { position: absolute; left: 22px; right: 22px; bottom: 34px; z-index: 1; color: #fff; }
.doc-fallback-copy strong { display: block; font-size: 24px; line-height: 1.2; }
.doc-fallback-copy span { display: block; margin-top: 8px; color: rgba(255,255,255,.84); font-size: 13px; line-height: 1.6; }
.detail-phone {
  position: relative;
  display: grid;
  align-content: end;
  width: min(270px, 100%);
  aspect-ratio: 9 / 16;
  overflow: hidden;
  padding: 24px 20px;
  border: 10px solid #141414;
  border-radius: 34px;
  color: #fff;
  background-position: center;
  background-size: cover;
  box-shadow: 0 24px 62px rgba(33, 48, 92, .20);
}
.detail-phone strong, .detail-phone em { position: relative; z-index: 1; }
.detail-phone strong { font-size: 25px; line-height: 1.18; }
.detail-phone em { margin-top: 8px; color: rgba(255, 255, 255, .84); font-size: 13px; font-style: normal; line-height: 1.55; }
.preview-toolbar {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: min(330px, 100%);
  gap: 10px;
}
.preview-tool {
  min-width: 0;
  min-height: 42px;
  border: 1px solid rgba(49, 88, 255, .16);
  border-radius: 8px;
  color: var(--brand);
  background: #fff;
  cursor: pointer;
  font-size: 13px;
  font-weight: 900;
  box-shadow: 0 10px 22px rgba(33, 48, 92, .06);
}
.preview-tool:hover { color: var(--brand); background: var(--brand-soft); }
.preview-pager {
  display: grid;
  grid-template-rows: 32px 30px 32px;
  justify-items: center;
  align-items: center;
  width: 40px;
  padding: 4px 0;
  border: 1px solid rgba(88, 101, 135, .12);
  border-radius: 4px;
  color: #344054;
  background: rgba(255,255,255,.78);
  box-shadow: 0 8px 18px rgba(33, 48, 92, .06);
}
.preview-pager button {
  position: relative;
  display: grid;
  width: 100%;
  min-height: 32px;
  place-items: center;
  border: 0;
  border-radius: 0;
  color: #344054;
  background: transparent;
  cursor: pointer;
}
.preview-pager button span {
  width: 9px;
  height: 9px;
  border-left: 1.8px solid currentColor;
  border-top: 1.8px solid currentColor;
}
.preview-page-prev span { transform: translateY(3px) rotate(45deg); }
.preview-page-next span { transform: translateY(-3px) rotate(225deg); }
.preview-pager button:hover { color: var(--brand); background: var(--brand-soft); }
.preview-page-count {
  color: #101828;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  writing-mode: horizontal-tb;
}
.detail-info { padding-top: 0; }
.detail-kicker, .detail-panel-label {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  color: var(--brand);
  background: var(--brand-soft);
  font-size: 12px;
  font-weight: 950;
}
.detail-info h1 { margin: 14px 0 12px; font-size: clamp(30px, 4vw, 46px); line-height: 1.12; letter-spacing: 0; }
.detail-summary { margin: 0 0 18px; color: #344054; font-size: 16px; font-weight: 750; line-height: 1.8; }
.detail-tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.detail-tag-row span, .detail-tags a {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 6px;
  color: #5d667f;
  background: #edf1f7;
  text-decoration: none;
  font-size: 12px;
  font-weight: 850;
}
.detail-facts { display: grid; gap: 14px; margin: 0 0 24px; padding: 0; color: #344054; }
.detail-facts div { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 8px; }
.detail-facts dt { color: #667085; font-size: 14px; }
.detail-facts dd { margin: 0; font-size: 14px; line-height: 1.6; }
.detail-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.detail-actions .button { min-width: 160px; }
.detail-action-note { margin: 12px 0 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.related-poster-section {
  margin-top: 24px;
  padding-top: 10px;
}
.related-tabbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
  margin-bottom: 14px;
}
.related-tabs {
  display: grid;
  gap: 6px;
  min-width: 0;
}
.related-tabs span,
.related-tabs a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #2b3447;
  text-decoration: none;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0;
}
.related-tabs a {
  color: #4b5568;
  font-weight: 750;
}
.related-tabs p {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 750;
  line-height: 1.7;
}
.related-all-link {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(49, 88, 255, .16);
  border-radius: 8px;
  color: var(--brand);
  background: #fff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 900;
  box-shadow: 0 10px 22px rgba(33, 48, 92, .06);
}
.related-all-link:hover {
  background: var(--brand-soft);
}
.related-tabs .is-active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 44px;
  height: 4px;
  border-radius: 999px;
  background: var(--brand);
  transform: translateX(-50%);
}
.related-poster-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 24px;
}
.related-list-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.related-poster-card {
  display: block;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}
.related-list-card {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  gap: 14px;
  align-items: stretch;
  padding: 10px;
  border: 1px solid rgba(88, 101, 135, .10);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(33, 48, 92, .05);
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.related-list-card[hidden] {
  display: none;
}
.related-list-card:hover {
  border-color: rgba(49, 88, 255, .20);
  transform: translateY(-2px);
  box-shadow: 0 18px 38px rgba(33, 48, 92, .10);
}
.related-poster-cover {
  position: relative;
  display: block;
  aspect-ratio: 9 / 13.6;
  overflow: hidden;
  border: 1px solid rgba(88, 101, 135, .12);
  border-radius: 8px;
  background-color: #dfe7f5;
  background-position: center;
  background-size: cover;
  box-shadow: 0 12px 26px rgba(33, 48, 92, .08);
  transition: transform .18s ease, box-shadow .18s ease;
}
.related-poster-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 16, 32, 0) 58%, rgba(10, 16, 32, .36));
  pointer-events: none;
}
.related-list-card .related-poster-cover {
  aspect-ratio: 9 / 13.2;
  min-height: 156px;
  box-shadow: none;
}
.related-poster-card:hover .related-poster-cover {
  transform: translateY(-4px);
  box-shadow: 0 20px 42px rgba(33, 48, 92, .14);
}
.related-list-card:hover .related-poster-cover {
  transform: none;
  box-shadow: none;
}
.related-h5-badge {
  position: absolute;
  left: 10px;
  bottom: 10px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 2px 9px;
  border-radius: 5px;
  color: #fff;
  background: rgba(0, 0, 0, .72);
  font-size: 13px;
  font-weight: 850;
}
.related-list-body {
  display: grid;
  align-content: center;
  gap: 8px;
  min-width: 0;
  padding: 6px 4px 6px 0;
}
.related-list-body strong {
  overflow: hidden;
  color: #101828;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 17px;
  line-height: 1.35;
}
.related-list-body em {
  color: var(--brand);
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}
.related-list-body span {
  display: -webkit-box;
  overflow: hidden;
  color: #344054;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.65;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}
.related-list-body small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}
.related-load-more {
  margin-top: 16px;
}
.detail-lower { display: grid; gap: 22px; margin-top: 12px; }
.detail-panel {
  padding: 24px;
  border: 1px solid rgba(88, 101, 135, .10);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(33, 48, 92, .06);
}
.detail-panel h2 { margin: 8px 0 0; font-size: 22px; line-height: 1.25; }
.detail-panel p { color: #344054; font-size: 14px; line-height: 1.8; }
.detail-panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.detail-panel-head > span { color: var(--muted); font-size: 13px; font-weight: 900; }
.editable-field-grid, .page-summary-grid, .detail-step-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}
.editable-field-card, .page-summary-card, .detail-step-card {
  min-width: 0;
  padding: 16px;
  border-radius: 12px;
  background: var(--soft);
}
.editable-field-card strong, .page-summary-card strong, .detail-step-card strong { display: block; color: #101828; }
.editable-field-card span, .detail-step-card span { display: block; margin-top: 7px; color: var(--muted); font-size: 13px; line-height: 1.55; }
.page-summary-card p { min-height: 24px; margin: 7px 0; color: #667085; font-size: 13px; line-height: 1.55; }
.page-summary-card > span { display: block; color: var(--muted); font-size: 12px; font-weight: 850; }
.page-summary-card div { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 11px; }
.page-summary-card em {
  padding: 4px 7px;
  border-radius: 999px;
  color: #475467;
  background: #fff;
  font-size: 11px;
  font-style: normal;
  font-weight: 850;
}
.detail-step-card em {
  display: grid;
  width: 30px;
  height: 30px;
  margin-bottom: 12px;
  place-items: center;
  border-radius: 10px;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--cyan));
  font-style: normal;
  font-weight: 950;
}
.detail-muted { margin: 0; color: var(--muted); }
.detail-tags { display: flex; flex-wrap: wrap; gap: 10px; }
.detail-copy-panel {
  padding: 18px 22px;
  border: 1px solid rgba(88, 101, 135, .10);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(33, 48, 92, .05);
}
.detail-copy-panel nav { display: flex; gap: 28px; border-bottom: 1px solid var(--line); }
.detail-copy-panel nav a { padding: 0 0 14px; color: #344054; text-decoration: none; font-size: 14px; font-weight: 900; }
.detail-copy-panel nav a.active { color: var(--brand); border-bottom: 2px solid var(--brand); }
.detail-copy-panel p { color: #344054; font-size: 14px; line-height: 1.8; }
.template-detail-copy-section {
  margin-top: 32px;
}
.template-detail-copy-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 18px;
  align-items: start;
}
.template-detail-seo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.template-detail-seo-card,
.template-detail-topic-panel {
  min-width: 0;
  padding: 22px;
  border: 1px solid rgba(88, 101, 135, .10);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(33, 48, 92, .05);
}
.template-detail-seo-card h3,
.template-detail-topic-panel h3 {
  margin: 0 0 10px;
  color: #101828;
  font-size: 18px;
  line-height: 1.35;
}
.template-detail-seo-card p {
  margin: 10px 0 0;
  color: #344054;
  font-size: 14px;
  line-height: 1.85;
}
.template-detail-seo-card ul {
  display: grid;
  gap: 8px;
  margin: 12px 0 0;
  padding-left: 18px;
  color: #344054;
  font-size: 14px;
  line-height: 1.75;
}
.template-detail-topic-panel {
  position: sticky;
  top: 18px;
}

.empty-state { padding: 36px; border: 1px solid rgba(88, 101, 135, .12); border-radius: 10px; background: #fff; text-align: center; }
.empty-state h1, .empty-state h2, .empty-state h3 { margin: 0 0 10px; }
.empty-state p { color: var(--muted); }
.static-hero {
  margin-top: 18px;
  padding: 36px 42px 34px;
  border-radius: 0 0 18px 18px;
  background: linear-gradient(103deg, #fff 0, #fbfcff 54%, #eef2ff 100%);
}
.static-breadcrumb { padding: 0 0 18px; }
.static-hero h1 {
  margin: 16px 0 12px;
  color: #101828;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.16;
}
.static-hero p {
  max-width: 760px;
  margin: 0;
  color: #344054;
  font-size: 16px;
  font-weight: 750;
  line-height: 1.85;
}
.static-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}
.static-page {
  display: grid;
  gap: 14px;
  max-width: 920px;
  margin: 24px auto 0;
}
.static-section {
  padding: 24px 28px;
  border: 1px solid rgba(88, 101, 135, .10);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(33, 48, 92, .05);
}
.static-section h2 {
  margin: 0 0 12px;
  color: #101828;
  font-size: 20px;
  line-height: 1.35;
}
.static-section p {
  margin: 10px 0 0;
  color: #344054;
  font-size: 14px;
  line-height: 1.9;
}
.static-section ul {
  display: grid;
  gap: 9px;
  margin: 12px 0 0;
  padding-left: 20px;
  color: #344054;
  font-size: 14px;
  line-height: 1.8;
}
.seo-channel-hero {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 430px);
  gap: 30px;
  align-items: center;
  min-height: 304px;
  margin-top: 0;
  padding: 36px 42px;
}
.seo-breadcrumb {
  margin: 0;
}
.seo-hero-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, 430px);
  gap: 34px;
  align-items: center;
}
.seo-channel-copy {
  max-width: none;
}
.seo-channel-copy h1 {
  margin: 16px 0 10px;
  max-width: 620px;
  font-size: 46px;
  line-height: 1.08;
}
.seo-channel-copy p {
  max-width: 580px;
  margin: 0;
  font-size: 16px;
  line-height: 1.8;
}
.seo-channel-search {
  margin-top: 28px;
}
.seo-hero-scenarios {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  max-width: 760px;
  margin-top: 16px;
}
.seo-hero-scenarios a {
  display: grid;
  gap: 5px;
  min-width: 0;
  min-height: 70px;
  padding: 13px 14px;
  border: 1px solid rgba(49, 88, 255, .12);
  border-radius: 10px;
  background: rgba(255, 255, 255, .72);
  text-decoration: none;
}
.seo-hero-scenarios strong {
  color: #101828;
  font-size: 14px;
  line-height: 1.25;
}
.seo-hero-scenarios span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}
.seo-hero-preview {
  position: relative;
  min-height: 292px;
}
.seo-preview-stack {
  position: relative;
  height: 236px;
}
.seo-preview-stack a {
  position: absolute;
  display: grid;
  align-content: end;
  width: 132px;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  padding: 14px 12px;
  border: 6px solid rgba(255, 255, 255, .86);
  border-radius: 22px;
  color: #fff;
  background-color: var(--soft);
  background-position: center;
  background-size: cover;
  box-shadow: 0 24px 54px rgba(33, 48, 92, .18);
  text-decoration: none;
}
.seo-preview-stack a::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(12, 18, 38, .02), rgba(12, 18, 38, .10) 42%, rgba(12, 18, 38, .68));
}
.seo-preview-stack a span {
  position: relative;
  z-index: 1;
  font-size: 13px;
  font-weight: 950;
  line-height: 1.35;
}
.seo-preview-stack a:first-child { right: 214px; top: 28px; transform: rotate(-7deg); }
.seo-preview-stack a:nth-child(2) { right: 108px; top: 0; z-index: 2; transform: rotate(4deg); }
.seo-preview-stack a:nth-child(3) { right: 0; top: 34px; transform: rotate(10deg); }
.seo-hero-proof {
  display: grid;
  gap: 5px;
  width: min(360px, 100%);
  margin-left: auto;
  padding: 14px 16px;
  border: 1px solid rgba(49, 88, 255, .12);
  border-radius: 10px;
  background: rgba(255, 255, 255, .82);
  box-shadow: 0 16px 34px rgba(33, 48, 92, .10);
}
.seo-hero-proof strong {
  color: #101828;
  font-size: 14px;
  line-height: 1.45;
}
.seo-hero-proof span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}
.seo-channel-tags {
  margin-top: 16px;
}
.seo-topic-tags {
  max-width: 720px;
  margin-top: 14px;
}
.seo-template-grid {
  grid-template-columns: repeat(auto-fill, minmax(154px, 1fr));
}
.seo-link-section {
  margin-top: 34px;
}
.seo-link-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.seo-link-grid a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 13px;
  border: 1px solid rgba(49, 88, 255, .12);
  border-radius: 999px;
  color: #344054;
  background: #fff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 850;
}
.seo-link-grid a:hover {
  color: var(--brand);
  background: var(--brand-soft);
}
.channel-card-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}
.channel-card {
  display: grid;
  gap: 7px;
  min-height: 96px;
  padding: 16px;
  border: 1px solid rgba(88, 101, 135, .12);
  border-radius: 10px;
  background: #fff;
  text-decoration: none;
  box-shadow: 0 12px 30px rgba(33, 48, 92, .06);
}
.channel-card strong {
  color: #101828;
  font-size: 16px;
}
.channel-card span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}
.channel-card:hover {
  border-color: rgba(49, 88, 255, .22);
  transform: translateY(-2px);
}
.detail-seo-links {
  margin-top: 14px;
}
.detail-seo-links a {
  min-height: 30px;
  padding: 5px 11px;
}
.seo-copy-section {
  display: grid;
  gap: 14px;
  max-width: 960px;
  margin: 34px auto 0;
}
.seo-copy-band {
  max-width: none;
  padding: 22px 24px 24px;
  border: 1px solid rgba(88, 101, 135, .10);
  border-radius: 14px;
  background: linear-gradient(103deg, #fff 0, #fbfcff 58%, #f2f6ff 100%);
  box-shadow: 0 12px 30px rgba(33, 48, 92, .05);
}
.seo-copy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}
.seo-copy-section article {
  padding: 24px 28px;
  border: 1px solid rgba(88, 101, 135, .10);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(33, 48, 92, .05);
}
.seo-copy-band article {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.seo-copy-section h2 {
  margin: 0 0 12px;
  color: #101828;
  font-size: 20px;
  line-height: 1.35;
}
.seo-copy-section h3 {
  margin: 0 0 10px;
  color: #101828;
  font-size: 18px;
  line-height: 1.35;
}
.seo-copy-section p {
  margin: 10px 0 0;
  color: #344054;
  font-size: 14px;
  line-height: 1.9;
}
.footer {
  margin-top: 48px;
  padding: 22px 0 4px;
  border-top: 1px solid rgba(88, 101, 135, .10);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}
.footer-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #101a4f;
  text-decoration: none;
  font-size: 18px;
  font-weight: 950;
  white-space: nowrap;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 18px;
}
.footer-links a,
.footer-records a {
  color: #667085;
  text-decoration: none;
  font-weight: 850;
}
.footer-links a:hover,
.footer-records a:hover {
  color: var(--brand);
}
.footer-records {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 18px;
  margin-top: 18px;
}
.footer-police-mark {
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-right: 5px;
  vertical-align: -2px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6f7d95, #a8b1c3);
}
.footer-disclaimer {
  max-width: 960px;
  margin: 10px auto 0;
  color: #8a95ad;
  text-align: center;
}
.toast { position: fixed; left: 50%; top: 50%; z-index: 50; display: none; transform: translate(-50%, -50%); padding: 10px 14px; border-radius: 999px; color: #fff; background: rgba(17, 24, 39, .9); font-size: 13px; box-shadow: 0 14px 30px rgba(17, 24, 39, .18); }
.toast.show { display: block; }
.modal { position: fixed; inset: 0; z-index: 40; display: none; align-items: center; justify-content: center; padding: 20px; background: rgba(17, 24, 39, .58); }
.modal.open { display: flex; }
.login-panel { width: min(420px, 100%); padding: 24px; border-radius: 12px; background: #fff; box-shadow: 0 28px 80px rgba(0, 0, 0, .26); }
.login-head { display: flex; align-items: start; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.login-head h2 { margin: 0; font-size: 24px; }
.login-head p { margin: 6px 0 0; color: var(--muted); line-height: 1.6; }
.close { display: grid; width: 36px; height: 36px; place-items: center; border: 0; border-radius: 999px; color: var(--ink); background: var(--soft); cursor: pointer; font-size: 22px; }
.field { display: grid; gap: 7px; margin-top: 13px; }
.field label { color: var(--text); font-size: 13px; font-weight: 900; }
.field input { width: 100%; min-height: 46px; padding: 0 13px; border: 1px solid var(--line); border-radius: 8px; outline: none; }
.code-row { display: grid; grid-template-columns: minmax(0, 1fr) 116px; gap: 10px; }
.send-code { min-height: 46px; border: 1px solid rgba(49, 88, 255, .22); border-radius: 8px; color: var(--brand); background: var(--brand-soft); cursor: pointer; font-weight: 900; }
.login-message { min-height: 24px; margin: 12px 0 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.login-message.error { color: #d94834; }
.login-actions { display: grid; gap: 10px; margin-top: 16px; }
.send-code:disabled, .button:disabled { cursor: not-allowed; opacity: .6; }

@media (max-width: 980px) {
  .intro-hero, .template-detail-hero, .template-discovery-hero { grid-template-columns: 1fr; }
  .seo-hero-main { grid-template-columns: 1fr; }
  .seo-hero-preview { max-width: 430px; }
  .detail-preview-workbench { grid-template-columns: 138px minmax(0, 1fr) 44px; }
  .preview-strip { --thumb-scale: .282; grid-auto-rows: 202px; padding: 8px; }
  .preview-thumb { height: 202px; }
  .related-poster-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
  .hero-visual { display: none; }
  .home-template-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .channel-card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .template-center-highlight-grid { grid-template-columns: 1fr; }
  .category-block { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .shell { padding: 0 14px 36px; }
  .topbar { align-items: flex-start; flex-direction: column; gap: 8px; padding: 12px 0; }
  .nav { width: 100%; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; }
  .top-actions { width: 100%; margin-left: 0; }
  .top-search { flex: 1; width: auto; }
  .intro-hero, .template-discovery-hero { padding: 28px 18px 24px; }
  .filter-panel { top: 112px; padding: 14px; }
  .filter-toolbar-row { flex-wrap: nowrap; }
  .sort-dropdown { margin-left: 0; }
  .seo-channel-hero { padding: 28px 18px 24px; }
  .intro-copy h1 { font-size: 30px; }
  .seo-channel-copy h1 { font-size: 34px; }
  .template-discovery-copy h1 { font-size: 34px; }
  .seo-hero-scenarios { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .center-hero-preview { display: none; }
  .hero-search { grid-template-columns: 20px minmax(0, 1fr); height: auto; min-height: 54px; padding: 0 14px; }
  .hero-search button { grid-column: 1 / -1; width: 100%; margin: 0 0 10px; }
  .home-template-grid, .phone-template-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .channel-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filter-line, .detail-facts div { grid-template-columns: 1fr; }
  .result-tabs { overflow-x: auto; }
  .detail-preview-workbench {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 14px;
  }
  .preview-strip {
    --thumb-scale: .236;
    display: flex;
    width: 100%;
    max-height: none;
    overflow-x: auto;
    padding: 8px;
  }
  .preview-thumb {
    flex: 0 0 104px;
    height: 184px;
    min-height: 184px;
  }
  .preview-pager {
    grid-template-columns: 1fr auto 1fr;
    width: min(480px, 100%);
    justify-self: center;
  }
  .preview-pager button {
    width: auto;
    min-height: 38px;
    writing-mode: horizontal-tb;
  }
  .preview-page-count { writing-mode: horizontal-tb; align-self: center; }
  .detail-copy-panel nav { gap: 16px; overflow-x: auto; }
  .related-tabs { gap: 22px; }
  .related-tabs span,
  .related-tabs a { min-height: 40px; font-size: 20px; }
  .related-tabbar { align-items: flex-start; flex-direction: column; gap: 8px; }
  .related-all-link { width: 100%; justify-content: center; }
  .related-poster-grid,
  .related-list-grid { grid-template-columns: 1fr; gap: 14px; }
  .template-detail-copy-layout,
  .template-detail-seo-grid { grid-template-columns: 1fr; }
  .template-detail-topic-panel { position: static; }
  .section-head { align-items: stretch; flex-direction: column; }
  .button { width: 100%; }
  .static-hero { padding: 28px 18px 24px; }
  .static-section { padding: 20px 18px; }
  .seo-copy-section article { padding: 20px 18px; }
  .footer-main {
    align-items: flex-start;
    flex-direction: column;
  }
  .footer-links {
    justify-content: flex-start;
  }
  .footer-records,
  .footer-disclaimer {
    text-align: left;
    justify-content: flex-start;
  }
}
@media (max-width: 460px) {
  .home-template-grid, .phone-template-grid { grid-template-columns: 1fr; }
  .channel-card-grid { grid-template-columns: 1fr; }
  .seo-hero-scenarios { grid-template-columns: 1fr; }
  .seo-hero-preview { min-height: 246px; }
  .seo-preview-stack { height: 196px; }
  .seo-preview-stack a { width: 108px; border-width: 5px; border-radius: 18px; }
  .seo-preview-stack a:first-child { right: 166px; top: 24px; }
  .seo-preview-stack a:nth-child(2) { right: 82px; }
  .seo-preview-stack a:nth-child(3) { right: 0; top: 28px; }
  .related-list-card { grid-template-columns: 96px minmax(0, 1fr); gap: 10px; }
  .related-list-card .related-poster-cover { min-height: 132px; }
  .top-actions { flex-wrap: wrap; }
  .login-link { flex: 1; }
}
