﻿/* Local reset replacing Tailwind Preflight. */
*,
::before,
::after {
  box-sizing: border-box;
  border-width: 0;
  border-style: solid;
  border-color: var(--color-line);
}

html {
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  tab-size: 4;
}

body {
  margin: 0;
  line-height: inherit;
}

h1,
h2,
h3,
p,
figure,
blockquote,
ul {
  margin: 0;
}

ul {
  list-style: none;
  padding: 0;
}

a {
  color: inherit;
  text-decoration: inherit;
}

button,
input,
textarea,
select {
  margin: 0;
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  background: transparent;
  text-transform: none;
}

table {
  text-indent: 0;
  border-color: inherit;
}

strong {
  font-weight: 700;
}
:root {
  --color-primary: #165DFF;
  --color-primary-dark: #0E42C8;
  --color-title: #1D2129;
  --color-body: #4E5969;
  --color-muted: #86909C;
  --color-line: #E5E6EB;
  --color-soft: #F7F8FA;
  --color-footer: #111827;
  --gradient-hero: linear-gradient(135deg, #F2F6FF 0%, #FFFFFF 48%, #EAF7FF 100%);
  --gradient-primary: linear-gradient(135deg, #165DFF 0%, #0FC6C2 100%);
  --gradient-cta: linear-gradient(135deg, #165DFF 0%, #0E42C8 55%, #00B8A9 100%);
  --shadow-nav: 0 8px 24px rgba(29, 33, 41, 0.08);
  --shadow-card: 0 10px 30px rgba(29, 33, 41, 0.08);
  --shadow-hover: 0 18px 42px rgba(22, 93, 255, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: auto;
}

body {
  color: var(--color-body);
  background: #fff;
}

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

.hero-gradient {
  background: var(--gradient-hero);
}

.cta-gradient {
  background: var(--gradient-cta);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-primary);
  box-shadow: 0 10px 20px rgba(22, 93, 255, 0.24);
  transition: transform 180ms ease, box-shadow 180ms ease, opacity 180ms ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 26px rgba(22, 93, 255, 0.3);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(22, 93, 255, 0.18);
  background: #fff;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

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

.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 28px rgba(0, 0, 0, 0.18);
}

.cta-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.1);
  transition: transform 180ms ease, background 180ms ease;
}

.cta-outline:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.18);
}

.nav-shell {
  background: rgba(255, 255, 255, 0.66);
  backdrop-filter: blur(16px);
  transition: background 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.nav-shell.is-scrolled {
  background: #fff;
  box-shadow: var(--shadow-nav);
  border-bottom-color: var(--color-line);
}

.nav-link,
.breadcrumb-link {
  transition: color 160ms ease;
}

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

.nav-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.nav-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  background: transparent;
  padding: 0;
  color: inherit;
  cursor: pointer;
  font: inherit;
}

.nav-dropdown-trigger::after {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 160ms ease;
}

.nav-dropdown:hover .nav-dropdown-trigger::after,
.nav-dropdown:focus-within .nav-dropdown-trigger::after {
  transform: translateY(2px) rotate(225deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 16px);
  left: 50%;
  min-width: 168px;
  padding: 10px;
  border: 1px solid rgba(213, 222, 235, 0.9);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 8px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.nav-dropdown-menu::before {
  content: "";
  position: absolute;
  inset: -18px 0 auto;
  height: 18px;
}

.nav-dropdown-item {
  display: block;
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--color-body);
  line-height: 1.4;
  white-space: nowrap;
  transition: background 160ms ease, color 160ms ease;
}

.nav-dropdown-item:hover,
.nav-dropdown-item:focus {
  background: rgba(22, 93, 255, 0.08);
  color: var(--color-primary);
  outline: none;
}

.section-gap {
  padding-top: 88px;
  padding-bottom: 88px;
}

.section-title {
  margin-top: 12px;
  color: var(--color-title);
  font-size: 32px;
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: 0;
}

.section-desc {
  margin-top: 16px;
  color: var(--color-body);
  font-size: 16px;
  line-height: 1.8;
}

.hero-preview {
  position: relative;
}

.hero-preview::before {
  content: "";
  position: absolute;
  inset: 8% -4% -6% 12%;
  border-radius: 8px;
  background: rgba(22, 93, 255, 0.08);
  z-index: 0;
}

.hero-preview img {
  position: relative;
  z-index: 1;
}

.filter-chip {
  border: 1px solid var(--color-line);
  border-radius: 8px;
  background: #fff;
  color: var(--color-body);
  padding: 9px 14px;
  font-size: 14px;
  font-weight: 600;
  transition: color 160ms ease, background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

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

.template-card,
.case-card,
.step-card,
.quote-card,
.category-card {
  border: 1px solid var(--color-line);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 0 0 rgba(29, 33, 41, 0);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.template-card {
  position: relative;
}

.template-card:hover,
.case-card:hover,
.step-card:hover,
.quote-card:hover,
.category-card:hover {
  transform: translateY(-4px);
  border-color: rgba(22, 93, 255, 0.28);
  box-shadow: var(--shadow-hover);
}

.template-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  background: rgba(29, 33, 41, 0.42);
  transition: opacity 180ms ease;
}

.template-card:hover .template-overlay {
  opacity: 1;
}

.template-button {
  border-radius: 8px;
  background: #fff;
  color: var(--color-primary);
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 700;
  transition: transform 180ms ease;
}

.template-button:hover {
  transform: scale(1.04);
}

.case-title-link {
  color: var(--color-title);
  transition: color 180ms ease;
}

.case-title-link:hover {
  color: var(--color-primary);
}

.step-card {
  padding: 28px;
}

.step-number {
  display: inline-flex;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: #fff;
  font-weight: 800;
  background: var(--gradient-primary);
}

.feature-row {
  display: grid;
  align-items: center;
  gap: 40px;
}

.feature-title {
  color: var(--color-title);
  font-size: 28px;
  line-height: 1.3;
  font-weight: 800;
}

.feature-desc {
  margin-top: 14px;
  color: var(--color-body);
  line-height: 1.8;
}

.feature-list {
  margin-top: 20px;
  display: grid;
  gap: 12px;
}

.feature-list li {
  position: relative;
  padding-left: 22px;
  color: var(--color-body);
  line-height: 1.7;
}

.feature-list li::before {
  content: "";
  position: absolute;
  top: 0.7em;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-primary);
}

.category-card {
  display: flex;
  min-height: 96px;
  align-items: center;
  gap: 16px;
  padding: 22px;
  color: var(--color-title);
  font-weight: 700;
}

.category-icon {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
}

.quote-card {
  display: flex;
  min-height: 218px;
  flex-direction: column;
  padding: 28px;
}

.quote-card blockquote {
  color: var(--color-body);
  line-height: 1.8;
}

.quote-author {
  margin-top: auto;
  padding-top: 20px;
}

.cta-desc {
  white-space: nowrap;
}

.faq-item {
  border: 1px solid var(--color-line);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.faq-item.is-open {
  border-color: rgba(22, 93, 255, 0.34);
  box-shadow: var(--shadow-card);
}

.faq-question {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 22px;
  text-align: left;
  color: var(--color-title);
  font-weight: 700;
}

.faq-arrow {
  position: relative;
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  transition: transform 180ms ease;
}

.faq-arrow::before,
.faq-arrow::after {
  content: "";
  position: absolute;
  top: 8px;
  left: 2px;
  width: 14px;
  height: 2px;
  border-radius: 2px;
  background: var(--color-primary);
}

.faq-arrow::after {
  transform: rotate(90deg);
  transition: opacity 180ms ease;
}

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

.faq-item.is-open .faq-arrow::after {
  opacity: 0;
}

.faq-answer {
  display: none;
  padding: 0 22px 22px;
  color: var(--color-body);
  line-height: 1.8;
}

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

.site-footer {
  background: var(--color-footer);
}

.footer-title {
  color: #fff;
  font-size: 24px;
  font-weight: 800;
}

.footer-heading {
  color: #fff;
  font-size: 16px;
  font-weight: 700;
}

.footer-list {
  margin-top: 16px;
  display: grid;
  gap: 10px;
  color: rgba(255, 255, 255, 0.65);
  font-size: 14px;
}

.footer-list a,
.site-footer a {
  transition: color 160ms ease;
}

.footer-list a:hover,
.site-footer a:hover {
  color: #fff;
}

@media (min-width: 1024px) {
  .feature-row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}

@media (max-width: 767px) {
  .section-gap {
    padding-top: 64px;
    padding-bottom: 64px;
  }

  .cta-desc {
    white-space: normal;
  }

  .section-title {
    font-size: 26px;
  }

  .feature-title {
    font-size: 24px;
  }

  .faq-question {
    padding: 18px;
  }

  .faq-answer {
    padding: 0 18px 18px;
  }
}

.hero-preview img {
  animation: hero-float 5.5s ease-in-out infinite;
  will-change: transform;
}

@keyframes hero-float {
  0%, 100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-12px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-preview img {
    animation: none;
    will-change: auto;
  }
}

.category-content {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.category-content strong {
  color: var(--color-title);
  font-size: 18px;
  line-height: 1.35;
}

.category-content small {
  color: var(--color-body);
  font-size: 14px;
  line-height: 1.6;
}

.category-content em {
  color: var(--color-primary);
  font-size: 14px;
  font-style: normal;
  font-weight: 700;
}

.category-content em::after {
  content: " →";
  transition: margin-left 180ms ease;
}

.category-card:hover .category-content em::after {
  margin-left: 4px;
}

.cta-auto-width {
  width: fit-content;
  min-width: 132px;
  padding-left: 1.25em;
  padding-right: 1.25em;
  white-space: nowrap;
}




.ui-table {
  border-collapse: separate;
  border-spacing: 0;
}

.ui-table thead th {
  background: linear-gradient(180deg, #F8FAFF 0%, #F3F6FB 100%);
  border-bottom: 1px solid var(--color-line);
  color: var(--color-title);
  font-size: 15px;
  line-height: 1.5;
}

.ui-table tbody tr {
  transition: background 160ms ease;
}

.ui-table tbody tr:nth-child(even) {
  background: #FBFCFF;
}

.ui-table tbody tr:hover {
  background: #F2F6FF;
}

.ui-table tbody td {
  border-bottom: 1px solid var(--color-line);
  color: var(--color-body);
  line-height: 1.7;
  vertical-align: middle;
}

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

.size-table td:first-child {
  color: var(--color-title);
  font-weight: 700;
  white-space: nowrap;
}

.size-table td:first-child::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 10px;
  border-radius: 999px;
  background: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(22, 93, 255, 0.1);
  vertical-align: middle;
}

.size-table td:nth-child(2) {
  color: var(--color-primary);
  font-weight: 800;
  white-space: nowrap;
}

.compare-table th:nth-child(2) {
  position: relative;
  color: var(--color-primary);
  background: linear-gradient(180deg, #EEF4FF 0%, #F7FAFF 100%);
}

.compare-table th:nth-child(2)::after {
  content: "推荐";
  display: inline-flex;
  margin-left: 8px;
  border-radius: 999px;
  background: rgba(22, 93, 255, 0.1);
  color: var(--color-primary);
  padding: 2px 8px;
  font-size: 12px;
  font-weight: 700;
}

.compare-table td:nth-child(2) {
  background: #F6F9FF;
  color: var(--color-title);
  font-weight: 700;
}

.compare-table td:first-child {
  color: var(--color-title);
  font-weight: 800;
  white-space: nowrap;
}

@media (max-width: 767px) {
  .ui-table-card {
    margin-left: -4px;
    margin-right: -4px;
  }

  .ui-table thead th,
  .ui-table tbody td {
    padding-left: 18px;
    padding-right: 18px;
  }
}

.compare-table {
  table-layout: fixed;
}

.compare-table th:first-child,
.compare-table td:first-child {
  width: 14%;
}

.compare-table th:not(:first-child),
.compare-table td:not(:first-child) {
  width: auto;
}

.compare-table-card .overflow-x-auto {
  scrollbar-width: thin;
}

@media (max-width: 767px) {
  .compare-table {
    table-layout: auto;
  }

  .compare-table th:first-child,
  .compare-table td:first-child {
    width: 120px;
  }
}

.template-overlay {
  inset: 0 0 auto 0;
  height: auto;
  aspect-ratio: auto;
  border-radius: 8px;
}

.template-card > .template-overlay {
  height: auto;
}

.template-card > img + .template-overlay {
  aspect-ratio: inherit;
}

.site-logo {
  display: block;
  width: auto;
  height: 36px;
}

@media (max-width: 767px) {
  .site-logo {
    height: 32px;
  }
}

.text-primary {
  color: var(--color-primary);
}

.text-title {
  color: var(--color-title);
}

.text-body {
  color: var(--color-body);
}

.text-muted {
  color: var(--color-muted);
}

.bg-soft {
  background-color: var(--color-soft);
}

.border-line {
  border-color: var(--color-line);
}

.shadow-soft {
  box-shadow: var(--shadow-card);
}

.shadow-hover {
  box-shadow: var(--shadow-hover);
}

.rounded-card,
.rounded-button {
  border-radius: 8px;
}

/* Local utility subset replacing the Tailwind CDN for this page. */
.fixed { position: fixed; }
.inset-x-0 { left: 0; right: 0; }
.top-0 { top: 0; }
.z-50 { z-index: 50; }
.mx-auto { margin-left: auto; margin-right: auto; }
.block { display: block; }
.inline-flex { display: inline-flex; }
.flex { display: flex; }
.grid { display: grid; }
.hidden { display: none; }
.w-full { width: 100%; }
.h-16 { height: 4rem; }
.min-w-\[720px\] { min-width: 720px; }
.min-w-\[760px\] { min-width: 760px; }
.max-w-xl { max-width: 36rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-7xl { max-width: 80rem; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-5 { gap: 1.25rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.gap-12 { gap: 3rem; }
.overflow-x-auto { overflow-x: auto; }
.space-y-4 > :not([hidden]) ~ :not([hidden]) { margin-top: 1rem; }
.space-y-16 > :not([hidden]) ~ :not([hidden]) { margin-top: 4rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-5 { margin-top: 1.25rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mt-10 { margin-top: 2.5rem; }
.mt-12 { margin-top: 3rem; }
.p-4 { padding: 1rem; }
.p-5 { padding: 1.25rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-7 { padding-left: 1.75rem; padding-right: 1.75rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-5 { padding-top: 1.25rem; padding-bottom: 1.25rem; }
.py-14 { padding-top: 3.5rem; padding-bottom: 3.5rem; }
.pt-8 { padding-top: 2rem; }
.pt-24 { padding-top: 6rem; }
.pb-6 { padding-bottom: 1.5rem; }
.pb-20 { padding-bottom: 5rem; }
.border { border-width: 1px; border-style: solid; }
.border-t { border-top-width: 1px; border-top-style: solid; }
.divide-y > :not([hidden]) ~ :not([hidden]) { border-top-width: 1px; border-top-style: solid; }
.divide-line > :not([hidden]) ~ :not([hidden]) { border-color: var(--color-line); }
.text-left { text-align: left; }
.text-center { text-align: center; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-base { font-size: 1rem; line-height: 1.5rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
.font-sans { font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.leading-6 { line-height: 1.5rem; }
.leading-7 { line-height: 1.75rem; }
.leading-8 { line-height: 2rem; }
.leading-tight { line-height: 1.25; }
.bg-white { background-color: #fff; }
.text-white { color: #fff; }
.text-white\/55 { color: rgba(255, 255, 255, 0.55); }
.text-white\/65 { color: rgba(255, 255, 255, 0.65); }
.text-white\/85 { color: rgba(255, 255, 255, 0.85); }
.border-white\/10 { border-color: rgba(255, 255, 255, 0.1); }

@media (min-width: 640px) {
  .sm\:inline-flex { display: inline-flex; }
  .sm\:flex-row { flex-direction: row; }
  .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sm\:px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
  .sm\:text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
  .sm\:text-5xl { font-size: 3rem; line-height: 1; }
}

@media (min-width: 768px) {
  .md\:flex-row { flex-direction: row; }
  .md\:items-center { align-items: center; }
  .md\:justify-between { justify-content: space-between; }
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
  .lg\:flex { display: flex; }
  .lg\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .lg\:px-8 { padding-left: 2rem; padding-right: 2rem; }
  .lg\:pb-24 { padding-bottom: 6rem; }
  .lg\:text-6xl { font-size: 3.75rem; line-height: 1; }
  .feature-row[class*="lg:[&>*:first-child]:order-2"] > *:first-child { order: 2; }
}


.hero-preview {
  max-width: 620px;
  justify-self: center;
}

.hero-preview img {
  width: 100%;
  height: auto;
  max-height: 520px;
  object-fit: contain;
}

.case-card {
  overflow: hidden;
}

/* Template detail disclosure. */
.template-detail-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  line-height: 1.4;
  transition: color 160ms ease;
}

.template-detail-toggle::after {
  content: "";
  width: 6px;
  height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-1px) rotate(45deg);
  opacity: 0.72;
  transition: transform 160ms ease;
}

.template-detail {
  max-height: 0;
  margin-top: 0;
  overflow: hidden;
  color: var(--color-body);
  font-size: 13px;
  line-height: 1.7;
  opacity: 0;
  transition: max-height 220ms ease, margin-top 220ms ease, opacity 180ms ease;
}

.template-card.is-detail-open .template-detail {
  max-height: 260px;
  margin-top: 10px;
  opacity: 1;
}

.template-card.is-detail-open .template-detail-toggle::after {
  transform: translateY(2px) rotate(225deg);
}

/* Final consolidated page-specific rules. */
.hero-title {
  max-width: 640px;
  color: var(--color-title);
  font-size: 38px;
  font-weight: 800;
  line-height: 1.16;
  letter-spacing: 0;
}

.template-card,
.case-card {
  align-self: start;
}

.template-card .p-4 {
  min-height: 88px;
  padding-top: 16px;
  padding-bottom: 16px;
}

.template-card-title {
  display: block;
  min-height: 21px;
  overflow: hidden;
  color: #374151;
  font-size: 15px;
  font-weight: 650;
  line-height: 1.35;
  letter-spacing: 0;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.template-media {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  width: 100%;
  height: auto;
  min-height: 0;
  overflow: hidden;
  background: #fff;
  border-radius: 8px 8px 0 0;
}

.template-media .template-image,
.case-image,
.feature-image {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  min-height: 0;
  max-height: none;
  object-fit: contain;
  object-position: center top;
}

.template-media .template-image,
.case-image {
  margin: 0 auto;
  border-radius: 8px 8px 0 0;
}

.feature-image {
  margin: 0 auto;
  border-radius: 8px;
}

.template-media .template-overlay {
  position: absolute;
  inset: 0;
  border-radius: 0;
}

.feature-row > div:first-child {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  background: transparent;
}

.template-detail-toggle {
  margin-top: 8px;
  color: #5F6B7A;
  font-size: 13px;
  font-weight: 600;
}

.template-detail-toggle:hover {
  color: var(--color-primary);
}

@media (min-width: 1024px) {
  .hero-title {
    font-size: 40px;
  }
}

@media (max-width: 767px) {
  .hero-title {
    font-size: 32px;
    line-height: 1.18;
  }
}

/* Feature section CTA button sizing. */
.feature-button {
  margin-top: 24px;
  min-width: 112px;
  min-height: 42px;
  padding: 10px 18px;
  line-height: 1.4;
  white-space: nowrap;
}
