:root{--ms-primary:#2563eb;--ms-radius:8px;--ms-font-family:system-ui;}
/* ==========================================================================
   内置工具类（Tailwind 风格命名，手写实现，不引入 tailwindcss 依赖）
   供区块模板 / html 区块 / 富文本在前台输出中直接使用。
   变量沿用 :root 主题变量，随站点主题变化。
   ========================================================================== */

/* ---------- display ---------- */
.ms-hidden { display: none; }
.ms-block { display: block; }
.ms-inline-block { display: inline-block; }
.ms-inline { display: inline; }
.ms-flex { display: flex; }
.ms-inline-flex { display: inline-flex; }
.ms-grid { display: grid; }
.ms-contents { display: contents; }

/* ---------- flex ---------- */
.ms-flex-row { flex-direction: row; }
.ms-flex-row-reverse { flex-direction: row-reverse; }
.ms-flex-col { flex-direction: column; }
.ms-flex-col-reverse { flex-direction: column-reverse; }
.ms-flex-wrap { flex-wrap: wrap; }
.ms-flex-nowrap { flex-wrap: nowrap; }
.ms-flex-1 { flex: 1 1 0%; }
.ms-flex-auto { flex: 1 1 auto; }
.ms-flex-none { flex: none; }
.ms-flex-initial { flex: 0 1 auto; }

/* ---------- items / content / self ---------- */
.ms-items-start { align-items: flex-start; }
.ms-items-center { align-items: center; }
.ms-items-end { align-items: flex-end; }
.ms-items-baseline { align-items: baseline; }
.ms-items-stretch { align-items: stretch; }
.ms-justify-start { justify-content: flex-start; }
.ms-justify-center { justify-content: center; }
.ms-justify-end { justify-content: flex-end; }
.ms-justify-between { justify-content: space-between; }
.ms-justify-around { justify-content: space-around; }
.ms-justify-evenly { justify-content: space-evenly; }
.ms-self-start { align-self: flex-start; }
.ms-self-center { align-self: center; }
.ms-self-end { align-self: flex-end; }
.ms-self-stretch { align-self: stretch; }

/* ---------- grid ---------- */
.ms-grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.ms-grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ms-grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ms-grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ms-grid-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.ms-grid-cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.ms-col-span-2 { grid-column: span 2 / span 2; }
.ms-col-span-3 { grid-column: span 3 / span 3; }
.ms-col-span-full { grid-column: 1 / -1; }
.ms-auto-cols-fr { grid-auto-columns: minmax(0, 1fr); }

/* ---------- gap ---------- */
.ms-gap-0 { gap: 0; }
.ms-gap-1 { gap: 4px; }
.ms-gap-2 { gap: 8px; }
.ms-gap-3 { gap: 12px; }
.ms-gap-4 { gap: 16px; }
.ms-gap-5 { gap: 20px; }
.ms-gap-6 { gap: 24px; }
.ms-gap-8 { gap: 32px; }
.ms-gap-10 { gap: 40px; }
.ms-gap-12 { gap: 48px; }

/* ---------- padding ---------- */
.ms-p-0 { padding: 0; }
.ms-p-1 { padding: 4px; }
.ms-p-2 { padding: 8px; }
.ms-p-3 { padding: 12px; }
.ms-p-4 { padding: 16px; }
.ms-p-5 { padding: 20px; }
.ms-p-6 { padding: 24px; }
.ms-p-8 { padding: 32px; }
.ms-p-10 { padding: 40px; }
.ms-p-12 { padding: 48px; }
.ms-px-0 { padding-left: 0; padding-right: 0; }
.ms-px-2 { padding-left: 8px; padding-right: 8px; }
.ms-px-4 { padding-left: 16px; padding-right: 16px; }
.ms-px-5 { padding-left: 20px; padding-right: 20px; }
.ms-px-6 { padding-left: 24px; padding-right: 24px; }
.ms-px-8 { padding-left: 32px; padding-right: 32px; }
.ms-px-10 { padding-left: 40px; padding-right: 40px; }
.ms-px-12 { padding-left: 48px; padding-right: 48px; }
.ms-py-0 { padding-top: 0; padding-bottom: 0; }
.ms-py-1 { padding-top: 4px; padding-bottom: 4px; }
.ms-py-2 { padding-top: 8px; padding-bottom: 8px; }
.ms-py-3 { padding-top: 12px; padding-bottom: 12px; }
.ms-py-4 { padding-top: 16px; padding-bottom: 16px; }
.ms-py-5 { padding-top: 20px; padding-bottom: 20px; }
.ms-py-6 { padding-top: 24px; padding-bottom: 24px; }
.ms-py-8 { padding-top: 32px; padding-bottom: 32px; }
.ms-py-10 { padding-top: 40px; padding-bottom: 40px; }
.ms-py-12 { padding-top: 48px; padding-bottom: 48px; }
.ms-py-16 { padding-top: 64px; padding-bottom: 64px; }
.ms-pt-2 { padding-top: 8px; }
.ms-pt-3 { padding-top: 12px; }
.ms-pt-4 { padding-top: 16px; }
.ms-pt-5 { padding-top: 20px; }
.ms-pt-6 { padding-top: 24px; }
.ms-pt-8 { padding-top: 32px; }
.ms-pb-2 { padding-bottom: 8px; }
.ms-pb-3 { padding-bottom: 12px; }
.ms-pb-4 { padding-bottom: 16px; }
.ms-pb-6 { padding-bottom: 24px; }
.ms-pb-8 { padding-bottom: 32px; }
.ms-pl-2 { padding-left: 8px; }
.ms-pl-3 { padding-left: 12px; }
.ms-pl-4 { padding-left: 16px; }
.ms-pl-6 { padding-left: 24px; }
.ms-pl-8 { padding-left: 32px; }
.ms-pr-2 { padding-right: 8px; }
.ms-pr-4 { padding-right: 16px; }
.ms-pr-6 { padding-right: 24px; }

/* ---------- margin ---------- */
.ms-m-0 { margin: 0; }
.ms-m-auto { margin: auto; }
.ms-mx-auto { margin-left: auto; margin-right: auto; }
.ms-mt-0 { margin-top: 0; }
.ms-mt-1 { margin-top: 4px; }
.ms-mt-2 { margin-top: 8px; }
.ms-mt-3 { margin-top: 12px; }
.ms-mt-4 { margin-top: 16px; }
.ms-mt-5 { margin-top: 20px; }
.ms-mt-6 { margin-top: 24px; }
.ms-mt-8 { margin-top: 32px; }
.ms-mt-10 { margin-top: 40px; }
.ms-mt-12 { margin-top: 48px; }
.ms-mt-16 { margin-top: 64px; }
.ms-mb-0 { margin-bottom: 0; }
.ms-mb-1 { margin-bottom: 4px; }
.ms-mb-2 { margin-bottom: 8px; }
.ms-mb-3 { margin-bottom: 12px; }
.ms-mb-4 { margin-bottom: 16px; }
.ms-mb-6 { margin-bottom: 24px; }
.ms-mb-8 { margin-bottom: 32px; }
.ms-mb-12 { margin-bottom: 48px; }
.ms-ml-auto { margin-left: auto; }
.ms-mr-auto { margin-right: auto; }
.ms--mt-4 { margin-top: -16px; }

/* ---------- width / height / max ---------- */
.ms-w-full { width: 100%; }
.ms-w-1\/2 { width: 50%; }
.ms-w-1\/3 { width: 33.333333%; }
.ms-w-2\/3 { width: 66.666667%; }
.ms-w-1\/4 { width: 25%; }
.ms-w-3\/4 { width: 75%; }
.ms-w-auto { width: auto; }
/* 未转义别名，便于在模板/属性中直接书写 */
.ms-w-half { width: 50%; }
.ms-w-third { width: 33.333333%; }
.ms-w-two-thirds { width: 66.666667%; }
.ms-w-quarter { width: 25%; }
.ms-w-three-quarters { width: 75%; }
.ms-h-full { height: 100%; }
.ms-h-auto { height: auto; }
.ms-h-8 { height: 32px; }
.ms-h-16 { height: 64px; }
.ms-h-24 { height: 96px; }
.ms-h-32 { height: 128px; }
.ms-h-48 { height: 192px; }
.ms-h-64 { height: 256px; }
.ms-max-w-none { max-width: none; }
.ms-max-w-xs { max-width: 320px; }
.ms-max-w-sm { max-width: 384px; }
.ms-max-w-md { max-width: 448px; }
.ms-max-w-lg { max-width: 512px; }
.ms-max-w-xl { max-width: 576px; }
.ms-max-w-2xl { max-width: 672px; }
.ms-max-w-3xl { max-width: 768px; }
.ms-max-w-4xl { max-width: 896px; }
.ms-max-w-5xl { max-width: 1024px; }
.ms-max-w-full { max-width: 100%; }
.ms-max-w-prose { max-width: 65ch; }
.ms-min-h-0 { min-height: 0; }
.ms-min-h-full { min-height: 100%; }

/* ---------- typography ---------- */
.ms-text-left { text-align: left; }
.ms-text-center { text-align: center; }
.ms-text-right { text-align: right; }
.ms-text-justify { text-align: justify; }
.ms-text-xs { font-size: 0.75rem; }
.ms-text-sm { font-size: 0.875rem; }
.ms-text-base { font-size: 1rem; }
.ms-text-lg { font-size: 1.125rem; }
.ms-text-xl { font-size: 1.25rem; }
.ms-text-2xl { font-size: 1.5rem; }
.ms-text-3xl { font-size: 1.875rem; }
.ms-text-4xl { font-size: 2.25rem; }
.ms-text-5xl { font-size: 3rem; }
.ms-font-normal { font-weight: 400; }
.ms-font-medium { font-weight: 500; }
.ms-font-semibold { font-weight: 600; }
.ms-font-bold { font-weight: 700; }
.ms-font-extrabold { font-weight: 800; }
.ms-font-black { font-weight: 900; }
.ms-italic { font-style: italic; }
.ms-not-italic { font-style: normal; }
.ms-underline { text-decoration: underline; }
.ms-no-underline { text-decoration: none; }
.ms-uppercase { text-transform: uppercase; }
.ms-lowercase { text-transform: lowercase; }
.ms-capitalize { text-transform: capitalize; }
.ms-normal-case { text-transform: none; }
.ms-leading-tight { line-height: 1.25; }
.ms-leading-snug { line-height: 1.375; }
.ms-leading-normal { line-height: 1.5; }
.ms-leading-relaxed { line-height: 1.625; }
.ms-leading-loose { line-height: 2; }
.ms-tracking-tight { letter-spacing: -0.025em; }
.ms-tracking-normal { letter-spacing: 0; }
.ms-tracking-wide { letter-spacing: 0.025em; }
.ms-tracking-wider { letter-spacing: 0.05em; }
.ms-tracking-widest { letter-spacing: 0.1em; }

/* ---------- color ---------- */
.ms-text-primary { color: var(--ms-primary); }
.ms-text-body { color: var(--ms-text); }
.ms-text-muted { color: var(--ms-muted); }
.ms-text-white { color: #fff; }
.ms-text-black { color: #000; }
.ms-text-inherit { color: inherit; }

/* ---------- background ---------- */
.ms-bg-transparent { background-color: transparent; }
.ms-bg-white { background-color: #fff; }
.ms-bg-soft { background-color: var(--ms-bg-soft); }
.ms-bg-primary { background-color: var(--ms-primary); }
.ms-bg-dark { background-color: var(--ms-dark); }
.ms-bg-black { background-color: #000; }
.ms-bg-none { background: none; }

/* ---------- border / radius ---------- */
.ms-border { border-width: 1px; border-style: solid; border-color: var(--ms-border); }
.ms-border-0 { border-width: 0; }
.ms-border-2 { border-width: 2px; border-style: solid; border-color: var(--ms-border); }
.ms-border-4 { border-width: 4px; border-style: solid; border-color: var(--ms-border); }
.ms-border-t { border-top-width: 1px; border-top-style: solid; border-top-color: var(--ms-border); }
.ms-border-b { border-bottom-width: 1px; border-bottom-style: solid; border-bottom-color: var(--ms-border); }
.ms-border-l { border-left-width: 1px; border-left-style: solid; border-left-color: var(--ms-border); }
.ms-border-r { border-right-width: 1px; border-right-style: solid; border-right-color: var(--ms-border); }
.ms-border-t-2 { border-top-width: 2px; border-top-style: solid; border-top-color: var(--ms-border); }
.ms-border-b-2 { border-bottom-width: 2px; border-bottom-style: solid; border-bottom-color: var(--ms-border); }
.ms-border-l-2 { border-left-width: 2px; border-left-style: solid; border-left-color: var(--ms-border); }
.ms-border-t-4 { border-top-width: 4px; border-top-style: solid; border-top-color: var(--ms-border); }
.ms-border-b-4 { border-bottom-width: 4px; border-bottom-style: solid; border-bottom-color: var(--ms-border); }
.ms-border-l-4 { border-left-width: 4px; border-left-style: solid; border-left-color: var(--ms-border); }
.ms-border-r-4 { border-right-width: 4px; border-right-style: solid; border-right-color: var(--ms-border); }
.ms-border-primary { border-color: var(--ms-primary); }
.ms-border-white { border-color: #fff; }
.ms-rounded-none { border-radius: 0; }
.ms-rounded { border-radius: var(--ms-radius); }
.ms-rounded-sm { border-radius: calc(var(--ms-radius) / 2); }
.ms-rounded-md { border-radius: var(--ms-radius); }
.ms-rounded-lg { border-radius: calc(var(--ms-radius) * 1.5); }
.ms-rounded-xl { border-radius: calc(var(--ms-radius) * 2); }
.ms-rounded-2xl { border-radius: calc(var(--ms-radius) * 3); }
.ms-rounded-full { border-radius: 9999px; }
.ms-divide-y > * + * { border-top-width: 1px; border-top-style: solid; border-top-color: var(--ms-border); }

/* ---------- shadow / effects ---------- */
.ms-shadow-none { box-shadow: none; }
.ms-shadow { box-shadow: var(--ms-shadow); }
.ms-shadow-sm { box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05); }
.ms-shadow-md { box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08); }
.ms-shadow-lg { box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12); }
.ms-overflow-hidden { overflow: hidden; }
.ms-overflow-auto { overflow: auto; }
.ms-overflow-x-auto { overflow-x: auto; }
.ms-overflow-y-auto { overflow-y: auto; }
.ms-opacity-50 { opacity: 0.5; }
.ms-opacity-75 { opacity: 0.75; }
.ms-opacity-100 { opacity: 1; }

/* ---------- position ---------- */
.ms-relative { position: relative; }
.ms-absolute { position: absolute; }
.ms-fixed { position: fixed; }
.ms-static { position: static; }
.ms-inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.ms-top-0 { top: 0; }
.ms-right-0 { right: 0; }
.ms-bottom-0 { bottom: 0; }
.ms-left-0 { left: 0; }
.ms-z-0 { z-index: 0; }
.ms-z-10 { z-index: 10; }
.ms-z-20 { z-index: 20; }
.ms-z-50 { z-index: 50; }

/* ---------- object-fit / aspect ---------- */
.ms-object-cover { object-fit: cover; }
.ms-object-contain { object-fit: contain; }
.ms-object-fill { object-fit: fill; }
.ms-aspect-square { aspect-ratio: 1 / 1; }
.ms-aspect-video { aspect-ratio: 16 / 9; }
.ms-aspect-\[4\/3\] { aspect-ratio: 4 / 3; }
.ms-aspect-\[21\/9\] { aspect-ratio: 21 / 9; }

/* ---------- transforms / transition ---------- */
.ms-scale-105 { transform: scale(1.05); }
.ms-rotate-1 { transform: rotate(1deg); }
.ms-rotate-2 { transform: rotate(2deg); }
.ms--rotate-2 { transform: rotate(-2deg); }
.ms-translate-y-2 { transform: translateY(8px); }
.ms-translate-y-6 { transform: translateY(24px); }
.ms-transition { transition: all 0.2s ease; }
.ms-transition-colors { transition: color 0.2s, background-color 0.2s, border-color 0.2s; }
.ms-transition-transform { transition: transform 0.2s; }

/* ---------- gradient ---------- */
.ms-gradient-primary {
  background-image: linear-gradient(135deg, var(--ms-primary), #7c3aed);
}
.ms-gradient-ocean {
  background-image: linear-gradient(135deg, var(--ms-primary), #0ea5e9);
}
.ms-gradient-fade {
  background-image: linear-gradient(90deg, transparent, var(--ms-primary), transparent);
}
.ms-gradient-down {
  background-image: linear-gradient(180deg, var(--ms-bg-soft), transparent);
}

:root {
  --ms-primary: #2563eb;
  --ms-radius: 8px;
  --ms-font-family: system-ui, -apple-system, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
  --ms-text: #1f2937;
  --ms-muted: #6b7280;
  --ms-border: #e5e7eb;
  --ms-bg-soft: #f9fafb;
  --ms-dark: #111827;
  --ms-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 4px 16px rgba(0, 0, 0, 0.06);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--ms-font-family);
  color: var(--ms-text);
  background: #fff;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--ms-primary);
}

.ms-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.ms-main {
  flex: 1;
}

.ms-container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

.ms-nav {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--ms-border);
  z-index: 100;
}

.ms-nav-sticky {
  position: sticky;
  top: 0;
}

.ms-nav-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 64px;
}

.ms-nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--ms-text);
  text-decoration: none;
  white-space: nowrap;
}

.ms-nav-logo-img {
  height: 32px;
  width: auto;
}

.ms-nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  flex: 1;
}

.ms-nav-link {
  color: var(--ms-muted);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.15s;
}

.ms-nav-link:hover {
  color: var(--ms-primary);
}

.ms-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  border-radius: var(--ms-radius);
  border: 1px solid transparent;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.15s;
  font-family: inherit;
  line-height: 1.4;
}

.ms-btn-primary {
  background: var(--ms-primary);
  color: #fff;
}

.ms-btn-primary:hover {
  filter: brightness(1.1);
  box-shadow: 0 4px 12px color-mix(in srgb, var(--ms-primary) 35%, transparent);
}

.ms-btn-secondary {
  background: transparent;
  color: var(--ms-text);
  border-color: var(--ms-border);
}

.ms-btn-secondary:hover {
  border-color: var(--ms-primary);
  color: var(--ms-primary);
}

.ms-nav-cta {
  padding: 8px 18px;
}

.ms-nav-langs {
  display: flex;
  align-items: center;
  gap: 2px;
}

.ms-nav-lang {
  color: var(--ms-muted);
  text-decoration: none;
  font-size: 0.875rem;
  padding: 4px 8px;
  border-radius: calc(var(--ms-radius) / 2);
  white-space: nowrap;
  transition: color 0.15s;
}

.ms-nav-lang:hover {
  color: var(--ms-primary);
}

.ms-nav-lang.is-active {
  color: var(--ms-primary);
  font-weight: 600;
  background: color-mix(in srgb, var(--ms-primary) 12%, transparent);
}

.ms-block {
  padding: 72px 0;
}

/* ===== 通用外观（装饰）：所有区块共享 ===== */
.ms-block.ms-spacing-compact {
  padding: 40px 0;
}

.ms-block.ms-spacing-loose {
  padding: 104px 0;
}

.ms-block.ms-spacing-normal {
  padding: 72px 0;
}

.ms-block.ms-bg-soft {
  background: var(--ms-bg-soft);
}

.ms-block.ms-bg-primary {
  background: var(--ms-primary);
  color: #fff;
}

.ms-block.ms-bg-primary a {
  color: rgba(255, 255, 255, 0.92);
}

.ms-block.ms-bg-dark {
  background: var(--ms-dark);
  color: #fff;
}

.ms-block.ms-bg-dark a {
  color: rgba(255, 255, 255, 0.85);
}

/* 卡片/描边容器：用于区块内条目列表的默认外观 */
.ms-card-style .ms-posts-card,
.ms-card-style .ms-collection-card,
.ms-card-style .ms-author-card,
.ms-card-style .ms-feature-card,
.ms-card-style .ms-plan {
  background: #fff;
  border: 1px solid var(--ms-border);
}

.ms-outlined-style .ms-posts-card,
.ms-outlined-style .ms-collection-card,
.ms-outlined-style .ms-author-card,
.ms-outlined-style .ms-feature-card,
.ms-outlined-style .ms-plan {
  background: transparent;
  border: 1px solid var(--ms-border);
}

.ms-text-style .ms-posts-card,
.ms-text-style .ms-collection-card,
.ms-text-style .ms-author-card,
.ms-text-style .ms-feature-card,
.ms-text-style .ms-plan {
  background: transparent;
  border: none;
}

/* 强调：主题色点缀（标题/顶部色条） */
.ms-block.ms-accent > .ms-container > .ms-section-title,
.ms-block.ms-accent > .ms-container > h2.ms-section-title {
  color: var(--ms-primary);
}

.ms-block.ms-accent::before {
  content: '';
  display: block;
  width: 56px;
  height: 4px;
  margin: 0 auto 24px;
  border-radius: 999px;
  background: var(--ms-primary);
}

/* 阴影 */
.ms-block.ms-has-shadow .ms-posts-card,
.ms-block.ms-has-shadow .ms-collection-card,
.ms-block.ms-has-shadow .ms-author-card,
.ms-block.ms-has-shadow .ms-feature-card,
.ms-block.ms-has-shadow .ms-plan,
.ms-block.ms-has-shadow .ms-card {
  box-shadow: var(--ms-shadow);
  border-color: transparent;
}

/* 圆角 */
.ms-block.ms-has-radius .ms-posts-card,
.ms-block.ms-has-radius .ms-collection-card,
.ms-block.ms-has-radius .ms-author-card,
.ms-block.ms-has-radius .ms-feature-card,
.ms-block.ms-has-radius .ms-plan,
.ms-block.ms-has-radius .ms-card,
.ms-block.ms-has-radius .ms-posts-card-cover,
.ms-block.ms-has-radius .ms-collection-card-cover,
.ms-block.ms-has-radius .ms-author-avatar,
.ms-block.ms-has-radius .ms-figure,
.ms-block.ms-has-radius .ms-gallery-item {
  border-radius: var(--ms-radius);
  overflow: hidden;
}

/* ===== 区块布局变体 ===== */
/* 最新文章 / 内容模型条目 */
.ms-var-latest-posts-list .ms-posts-grid,
.ms-var-collection-entries-list .ms-collection-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ms-var-latest-posts-list .ms-posts-card,
.ms-var-collection-entries-list .ms-collection-card {
  display: flex;
  gap: 18px;
  align-items: center;
}

.ms-var-latest-posts-list .ms-posts-card-cover,
.ms-var-collection-entries-list .ms-collection-card-cover {
  width: 160px;
  flex: 0 0 160px;
  height: 110px;
  object-fit: cover;
}

.ms-var-latest-posts-featured .ms-posts-grid,
.ms-var-collection-entries-featured .ms-collection-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 20px;
}

.ms-var-latest-posts-featured .ms-posts-card:first-child,
.ms-var-collection-entries-featured .ms-collection-card:first-child {
  grid-row: span 2;
}

.ms-var-latest-posts-featured .ms-posts-card:first-child .ms-posts-card-cover,
.ms-var-collection-entries-featured .ms-collection-card:first-child .ms-collection-card-cover {
  height: 280px;
}

.ms-var-latest-posts-masonry .ms-posts-grid,
.ms-var-collection-entries-masonry .ms-collection-grid {
  columns: 3;
  column-gap: 20px;
}

.ms-var-latest-posts-masonry .ms-posts-card,
.ms-var-collection-entries-masonry .ms-collection-card {
  break-inside: avoid;
  margin-bottom: 20px;
}

.ms-var-latest-posts-carousel .ms-posts-grid,
.ms-var-collection-entries-carousel .ms-collection-grid {
  display: flex;
  overflow-x: auto;
  gap: 20px;
  padding-bottom: 12px;
  scroll-snap-type: x mandatory;
}

.ms-var-latest-posts-carousel .ms-posts-card,
.ms-var-collection-entries-carousel .ms-collection-card {
  flex: 0 0 300px;
  scroll-snap-align: start;
}

/* 分类列表 */
.ms-var-category-list-chips .ms-taxonomy-links,
.ms-var-tag-cloud-chips .ms-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.ms-var-category-list-chips .ms-taxonomy-link,
.ms-var-tag-cloud-chips .ms-tag {
  display: inline-block;
  padding: 6px 16px;
  border: 1px solid var(--ms-border);
  border-radius: 999px;
  text-decoration: none;
  color: var(--ms-text);
  transition: all 0.15s;
}

.ms-var-category-list-chips .ms-taxonomy-link:hover,
.ms-var-tag-cloud-chips .ms-tag:hover {
  border-color: var(--ms-primary);
  color: var(--ms-primary);
}

.ms-var-category-list-cards .ms-taxonomy-links,
.ms-var-author-list-cards .ms-authors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

.ms-var-category-list-cards .ms-taxonomy-link,
.ms-var-author-list-cards .ms-author-card {
  display: block;
  padding: 16px;
  background: var(--ms-bg-soft);
  border-radius: var(--ms-radius);
  text-decoration: none;
  color: var(--ms-text);
}

/* 标签云 */
.ms-var-tag-cloud-cloud .ms-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: baseline;
}

.ms-var-tag-cloud-cloud .ms-tag {
  display: inline-block;
  text-decoration: none;
  color: var(--ms-primary);
}

.ms-var-tag-cloud-cloud .ms-tag:nth-child(3n) {
  font-size: 1.4rem;
}

.ms-var-tag-cloud-cloud .ms-tag:nth-child(3n + 1) {
  font-size: 1.05rem;
}

.ms-var-tag-cloud-cloud .ms-tag:nth-child(3n + 2) {
  font-size: 0.9rem;
}

/* 作者列表 */
.ms-var-author-list-list .ms-authors-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ms-var-author-list-list .ms-author-card {
  flex-direction: row;
}

/* 特性列表 */
.ms-var-features-list .ms-features-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 760px;
  margin: 0 auto;
}

.ms-var-features-alternating .ms-features-grid {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.ms-var-features-alternating .ms-card:nth-child(even) {
  margin-left: auto;
  width: 80%;
}

.ms-var-features-alternating .ms-card:nth-child(odd) {
  width: 80%;
}

/* 价格 */
.ms-var-pricing-table .ms-pricing-grid {
  display: block;
  overflow-x: auto;
}

.ms-var-pricing-stacked .ms-pricing-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 640px;
  margin: 0 auto;
}

/* 常见问题 */
.ms-var-faq-accordion .ms-faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ms-var-faq-grouped .ms-faq-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}

/* 表单 */
.ms-var-form-inline .ms-form {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-end;
}

.ms-var-form-inline .ms-form-field {
  flex: 1 1 180px;
}

.ms-var-form-card .ms-form {
  max-width: 560px;
  margin: 0 auto;
  padding: 28px;
  background: var(--ms-bg-soft);
  border-radius: var(--ms-radius);
}

/* 视频 */
.ms-var-video-wide .ms-video-iframe,
.ms-var-video-cover .ms-video-iframe {
  width: 100%;
}

.ms-var-video-cover .ms-video {
  aspect-ratio: 21 / 9;
  overflow: hidden;
}

/* 文本 */
.ms-var-text-columns .ms-text {
  column-count: 2;
  column-gap: 40px;
}

.ms-var-text-lead .ms-text {
  font-size: 1.25rem;
  color: var(--ms-muted);
}

/* 分割线 */
.ms-var-divider-dots {
  height: 8px;
  background-image: radial-gradient(var(--ms-border) 1.5px, transparent 1.5px);
  background-size: 16px 8px;
  background-position: center;
  border: none;
}

.ms-var-divider-gradient {
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--ms-primary), transparent);
  border: none;
}

/* Hero 变体 */
.ms-var-hero-split .ms-hero {
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
}

.ms-var-hero-split .ms-hero-image {
  max-width: 44%;
}

.ms-var-hero-minimal .ms-hero {
  padding: 24px 0;
}

.ms-var-hero-minimal .ms-hero-heading {
  font-size: 2rem;
}

.ms-var-hero-minimal .ms-hero-subheading {
  margin-bottom: 0;
}

/* CTA 变体 */
.ms-var-cta-card .ms-cta {
  max-width: 720px;
  margin: 0 auto;
  padding: 40px;
  background: var(--ms-bg-soft);
  border-radius: var(--ms-radius);
  text-align: center;
}

.ms-var-cta-split .ms-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.ms-var-cta-split .ms-cta-heading {
  margin: 0;
}

@media (max-width: 768px) {
  .ms-var-hero-split .ms-hero,
  .ms-var-cta-split .ms-cta {
    flex-direction: column;
    text-align: center;
  }

  .ms-var-latest-posts-featured .ms-posts-grid,
  .ms-var-collection-entries-featured .ms-collection-grid,
  .ms-var-text-columns .ms-text {
    grid-template-columns: 1fr;
    column-count: 1;
  }
}

.ms-block-spacer,
.ms-block-divider {
  padding: 0;
}

.ms-section-title {
  font-size: 1.75rem;
  font-weight: 700;
  text-align: center;
  margin: 0 0 40px;
}

.ms-hero {
  display: flex;
  align-items: center;
  gap: 48px;
  border-radius: calc(var(--ms-radius) * 2);
  padding: 72px 56px;
}

.ms-hero-left {
  justify-content: flex-start;
  text-align: left;
}

.ms-hero-center {
  justify-content: center;
  text-align: center;
  flex-direction: column;
}

.ms-hero-dark {
  background: linear-gradient(135deg, var(--ms-dark), #1f2937 60%, color-mix(in srgb, var(--ms-primary) 45%, var(--ms-dark)));
  color: #fff;
}

.ms-hero-light {
  background: linear-gradient(135deg, var(--ms-bg-soft), color-mix(in srgb, var(--ms-primary) 8%, #fff));
  color: var(--ms-text);
}

.ms-hero-content {
  max-width: 640px;
}

.ms-hero-center .ms-hero-content {
  max-width: 720px;
}

.ms-hero-heading {
  font-size: 2.75rem;
  line-height: 1.2;
  margin: 0 0 16px;
  font-weight: 800;
}

.ms-hero-subheading {
  font-size: 1.15rem;
  opacity: 0.85;
  margin: 0 0 28px;
}

.ms-hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.ms-hero-center .ms-hero-actions {
  justify-content: center;
}

.ms-hero-dark .ms-btn-secondary {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
}

.ms-hero-image {
  max-width: 420px;
  border-radius: var(--ms-radius);
}

.ms-hero-center .ms-hero-image {
  margin: 0 auto;
}

.ms-text {
  font-size: 1.05rem;
  max-width: 760px;
  margin: 0 auto;
}

.ms-text-left {
  margin: 0;
}

.ms-text-center {
  text-align: center;
}

.ms-figure {
  margin: 0;
}

.ms-figure-wide img {
  width: 100%;
}

.ms-figure-caption {
  color: var(--ms-muted);
  font-size: 0.9rem;
  margin-top: 10px;
  text-align: center;
}

.ms-gallery {
  display: grid;
  gap: 16px;
}

.ms-gallery-2 {
  grid-template-columns: repeat(2, 1fr);
}

.ms-gallery-3 {
  grid-template-columns: repeat(3, 1fr);
}

.ms-gallery-4 {
  grid-template-columns: repeat(4, 1fr);
}

.ms-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--ms-radius);
  aspect-ratio: 4 / 3;
}

.ms-features-grid {
  display: grid;
  gap: 24px;
}

.ms-features-2 .ms-features-grid {
  grid-template-columns: repeat(2, 1fr);
}

.ms-features-3 .ms-features-grid {
  grid-template-columns: repeat(3, 1fr);
}

.ms-card {
  background: var(--ms-bg-soft);
  border: 1px solid var(--ms-border);
  border-radius: calc(var(--ms-radius) * 1.5);
  padding: 28px;
  transition: transform 0.15s, box-shadow 0.15s;
}

.ms-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--ms-shadow);
}

.ms-card-icon {
  font-size: 2rem;
  margin-bottom: 12px;
  line-height: 1;
}

.ms-card-title {
  font-size: 1.15rem;
  margin: 0 0 8px;
  font-weight: 700;
}

.ms-card-desc {
  color: var(--ms-muted);
  margin: 0;
  font-size: 0.95rem;
}

.ms-pricing-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  align-items: stretch;
}

.ms-plan {
  border: 1px solid var(--ms-border);
  border-radius: calc(var(--ms-radius) * 1.5);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  background: #fff;
}

.ms-plan-highlight {
  border-color: var(--ms-primary);
  box-shadow: 0 0 0 1px var(--ms-primary), var(--ms-shadow);
  position: relative;
}

.ms-plan-name {
  margin: 0 0 12px;
  font-size: 1.15rem;
  font-weight: 700;
}

.ms-plan-price {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--ms-primary);
  margin-bottom: 20px;
  line-height: 1.1;
}

.ms-plan-period {
  font-size: 0.95rem;
  color: var(--ms-muted);
  font-weight: 500;
}

.ms-plan-features {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  flex: 1;
  color: var(--ms-muted);
}

.ms-plan-features li {
  padding: 6px 0 6px 26px;
  position: relative;
}

.ms-plan-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--ms-primary);
  font-weight: 700;
}

.ms-faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ms-faq-item {
  border: 1px solid var(--ms-border);
  border-radius: var(--ms-radius);
  background: #fff;
  overflow: hidden;
}

.ms-faq-q {
  padding: 16px 20px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  position: relative;
}

.ms-faq-q::-webkit-details-marker {
  display: none;
}

.ms-faq-q::after {
  content: "+";
  position: absolute;
  right: 20px;
  font-weight: 400;
  font-size: 1.25rem;
  color: var(--ms-muted);
}

.ms-faq-item[open] .ms-faq-q::after {
  content: "−";
}

.ms-faq-a {
  padding: 0 20px 16px;
  color: var(--ms-muted);
}

.ms-form {
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.ms-form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ms-form-label {
  font-weight: 600;
  font-size: 0.95rem;
}

.ms-form-input {
  padding: 10px 14px;
  border: 1px solid var(--ms-border);
  border-radius: var(--ms-radius);
  font-size: 1rem;
  font-family: inherit;
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.ms-form-input:focus {
  outline: none;
  border-color: var(--ms-primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--ms-primary) 18%, transparent);
}

textarea.ms-form-input {
  min-height: 120px;
  resize: vertical;
}

.ms-form .ms-btn {
  align-self: flex-start;
}

.ms-video {
  position: relative;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  border-radius: var(--ms-radius);
  overflow: hidden;
  background: var(--ms-dark);
}

.ms-video-iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.ms-video-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9ca3af;
}

.ms-cta {
  text-align: center;
  background: linear-gradient(135deg, color-mix(in srgb, var(--ms-primary) 12%, #fff), var(--ms-bg-soft));
  border-radius: calc(var(--ms-radius) * 2);
  padding: 64px 40px;
}

.ms-cta-heading {
  font-size: 1.9rem;
  margin: 0 0 12px;
  font-weight: 800;
}

.ms-cta-subheading {
  color: var(--ms-muted);
  margin: 0 0 28px;
  font-size: 1.05rem;
}

.ms-spacer {
  width: 100%;
}

.ms-divider {
  height: 1px;
  background: var(--ms-border);
  margin: 0 24px;
}

.ms-html {
  width: 100%;
}

.ms-footer {
  border-top: 1px solid var(--ms-border);
  background: var(--ms-bg-soft);
  padding: 40px 0;
  margin-top: auto;
}

.ms-footer-inner {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  text-align: center;
  color: var(--ms-muted);
  font-size: 0.92rem;
}

.ms-footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.ms-footer-link {
  color: var(--ms-muted);
  text-decoration: none;
}

.ms-footer-link:hover {
  color: var(--ms-primary);
}

.ms-footer-icp {
  font-size: 0.85rem;
}

.ms-selected {
  outline: 2px solid var(--ms-primary);
  outline-offset: -2px;
}

.ms-post {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 24px;
}

.ms-post-cover {
  width: 100%;
  border-radius: calc(var(--ms-radius) * 1.5);
  margin-bottom: 24px;
}

.ms-post-title {
  font-size: 2.1rem;
  font-weight: 800;
  margin: 0 0 10px;
  line-height: 1.25;
}

.ms-post-meta {
  color: var(--ms-muted);
  font-size: 0.9rem;
  margin-bottom: 22px;
}

.ms-post-excerpt {
  font-size: 1.05rem;
  color: var(--ms-muted);
  border-left: 3px solid var(--ms-primary);
  padding-left: 14px;
  margin: 0 0 26px;
}

.ms-post-content {
  font-size: 1.02rem;
  line-height: 1.8;
}

.ms-post-content h2,
.ms-post-content h3 {
  margin-top: 1.6em;
}

.ms-post-content img {
  max-width: 100%;
  border-radius: var(--ms-radius);
}

.ms-post-content pre {
  background: var(--ms-dark);
  color: #e5e7eb;
  padding: 16px;
  border-radius: var(--ms-radius);
  overflow-x: auto;
}

.ms-posts {
  max-width: 1080px;
  margin: 0 auto;
  padding: 48px 24px;
}

.ms-posts-title {
  font-size: 1.9rem;
  font-weight: 800;
  margin: 0 0 28px;
}

.ms-posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 22px;
}

.ms-posts-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--ms-border);
  border-radius: calc(var(--ms-radius) * 1.5);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  background: #fff;
  transition: box-shadow 0.2s, transform 0.2s;
}

.ms-posts-card:hover {
  box-shadow: var(--ms-shadow);
  transform: translateY(-2px);
}

.ms-posts-card-cover {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.ms-posts-card-body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ms-posts-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0;
  line-height: 1.35;
}

.ms-posts-card-excerpt {
  color: var(--ms-muted);
  font-size: 0.92rem;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ms-posts-card-date {
  color: var(--ms-muted);
  font-size: 0.85rem;
}

.ms-posts-pagination {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: center;
  margin-top: 36px;
  color: var(--ms-muted);
  font-size: 0.95rem;
}

.ms-posts-pagination a {
  color: var(--ms-primary);
  text-decoration: none;
  font-weight: 600;
}

@media (max-width: 768px) {
  .ms-nav-inner {
    gap: 16px;
  }

  .ms-nav-links {
    gap: 14px;
    overflow-x: auto;
  }

  .ms-block {
    padding: 48px 0;
  }

  .ms-hero {
    padding: 48px 24px;
    flex-direction: column;
    gap: 28px;
  }

  .ms-hero-heading {
    font-size: 2rem;
  }

  .ms-features-2 .ms-features-grid,
  .ms-features-3 .ms-features-grid,
  .ms-gallery-2,
  .ms-gallery-3,
  .ms-gallery-4 {
    grid-template-columns: 1fr;
  }

  .ms-pricing-grid {
    grid-template-columns: 1fr;
  }

  .ms-cta {
    padding: 44px 24px;
  }

  .ms-section-title {
    font-size: 1.45rem;
  }
}

/* Dynamic blocks */
.ms-taxonomy-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.ms-taxonomy-link {
  display: inline-block;
  padding: 8px 16px;
  border: 1px solid rgba(107, 114, 128, 0.3);
  border-radius: 999px;
  color: inherit;
  text-decoration: none;
  font-size: 0.95rem;
  transition: border-color 0.15s, color 0.15s;
}

.ms-taxonomy-link:hover {
  border-color: var(--ms-primary);
  color: var(--ms-primary);
}

.ms-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ms-tag {
  display: inline-block;
  padding: 5px 13px;
  background: rgba(107, 114, 128, 0.1);
  border-radius: 999px;
  color: inherit;
  text-decoration: none;
  font-size: 0.9rem;
  transition: background 0.15s, color 0.15s;
}

.ms-tag:hover {
  background: var(--ms-primary);
  color: #fff;
}

.ms-authors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}

.ms-author-card {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 18px;
  border: 1px solid rgba(107, 114, 128, 0.2);
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.ms-author-card:hover {
  border-color: var(--ms-primary);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}

.ms-author-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.ms-author-avatar-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ms-primary);
  color: #fff;
  font-size: 1.2rem;
  font-weight: 600;
}

.ms-author-name {
  font-size: 1.02rem;
  margin: 0 0 4px;
}

.ms-author-bio {
  font-size: 0.88rem;
  color: var(--ms-muted);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ms-sitemap {
  padding: 32px 0;
}

.ms-sitemap h1 {
  font-size: 1.6rem;
  margin-bottom: 18px;
}

.ms-sitemap-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.ms-sitemap-list a {
  color: var(--ms-primary);
  text-decoration: none;
  font-size: 0.95rem;
  word-break: break-all;
}

.ms-sitemap-list a:hover {
  text-decoration: underline;
}

/* ==========================================================================
   区块模板样式库：每种区块 10 个系统模板（.ms-tpl-<type>-<n>）
   由 block-template-presets.ts 的 Liquid 模板引用；变量名取自 :root 主题变量。
   ========================================================================== */

/* ---------- hero (10) ---------- */
.ms-tpl-hero-1 { text-align: center; padding: 56px 0; }
.ms-tpl-hero-1 .ms-hero-heading { font-size: 2.6rem; }

.ms-tpl-hero-2 { display: flex; align-items: center; gap: 40px; text-align: left; }
.ms-tpl-hero-2 > * { flex: 1; }
.ms-tpl-hero-2 .ms-hero-image { border-radius: var(--ms-radius); }

.ms-tpl-hero-3 { padding: 40px 0; }
.ms-tpl-hero-3 .ms-hero-heading { font-size: 1.9rem; font-weight: 600; }
.ms-tpl-hero-3 .ms-hero-subheading { color: var(--ms-muted); }

.ms-tpl-hero-4 {
  background: linear-gradient(135deg, var(--ms-primary), #7c3aed);
  color: #fff; padding: 72px 40px; border-radius: calc(var(--ms-radius) * 2); text-align: center;
}
.ms-tpl-hero-4 .ms-hero-heading { color: #fff; font-size: 2.8rem; }
.ms-tpl-hero-4 .ms-hero-subheading { color: rgba(255, 255, 255, 0.85); }
.ms-tpl-hero-4 .ms-btn-primary { background: #fff; color: var(--ms-primary); }

.ms-tpl-hero-5 {
  border-left: 6px solid var(--ms-primary);
  padding-left: 28px; text-align: left;
}
.ms-tpl-hero-5 .ms-hero-heading { font-size: 2.2rem; }

.ms-tpl-hero-6 { text-align: center; padding: 40px 0; }
.ms-tpl-hero-6 .ms-hero-image {
  margin: 0 auto 28px; border-radius: 50%; width: 160px; height: 160px; object-fit: cover;
}

.ms-tpl-hero-7 {
  display: flex; flex-direction: row-reverse; align-items: center; gap: 40px; text-align: right;
}
.ms-tpl-hero-7 > * { flex: 1; }
.ms-tpl-hero-7 .ms-hero-image { border-radius: var(--ms-radius); }

.ms-tpl-hero-8 {
  border: 1px solid var(--ms-border); border-radius: calc(var(--ms-radius) * 2);
  padding: 48px; text-align: center; box-shadow: var(--ms-shadow);
}
.ms-tpl-hero-8 .ms-hero-heading { font-size: 2.3rem; }

.ms-tpl-hero-9 { padding: 48px 0; }
.ms-tpl-hero-9 .ms-hero-heading {
  font-size: 3rem; text-transform: uppercase; letter-spacing: 0.06em; font-weight: 900;
}

.ms-tpl-hero-10 {
  background: var(--ms-dark); color: #fff; padding: 64px 40px; text-align: center;
  border-radius: var(--ms-radius);
}
.ms-tpl-hero-10 .ms-hero-heading { color: #fff; font-size: 2.5rem; }
.ms-tpl-hero-10 .ms-hero-subheading { color: #d1d5db; }

/* ---------- text (10) ---------- */
.ms-tpl-text-1 { max-width: 65ch; }
.ms-tpl-text-2 { max-width: 65ch; text-align: center; }
.ms-tpl-text-3 { column-count: 2; column-gap: 40px; }
.ms-tpl-text-4 { column-count: 3; column-gap: 32px; }
.ms-tpl-text-5 { font-size: 1.25rem; line-height: 1.9; color: var(--ms-muted); }
.ms-tpl-text-6 {
  border-left: 4px solid var(--ms-primary); padding-left: 24px; font-style: italic;
}
.ms-tpl-text-7 {
  max-width: 65ch; text-indent: 2em;
}
.ms-tpl-text-8 {
  background: var(--ms-bg-soft); padding: 32px; border-radius: var(--ms-radius); max-width: 70ch;
}
.ms-tpl-text-9 {
  max-width: 65ch; letter-spacing: 0.04em; line-height: 2;
}
.ms-tpl-text-10 {
  max-width: 65ch; border-top: 2px solid var(--ms-primary); border-bottom: 2px solid var(--ms-primary);
  padding: 20px 0; text-align: center; font-weight: 600;
}

/* ---------- image (10) ---------- */
.ms-tpl-image-1 img { width: 100%; border-radius: var(--ms-radius); }
.ms-tpl-image-2 img { width: 100%; border-radius: 50%; aspect-ratio: 1; object-fit: cover; }
.ms-tpl-image-3 { text-align: center; }
.ms-tpl-image-3 img { width: 70%; margin: 0 auto; border-radius: calc(var(--ms-radius) * 2); }
.ms-tpl-image-4 img { width: 100%; filter: grayscale(100%); border-radius: var(--ms-radius); }
.ms-tpl-image-5 img { width: 100%; box-shadow: var(--ms-shadow); border-radius: var(--ms-radius); }
.ms-tpl-image-6 img { width: 100%; border: 8px solid var(--ms-bg-soft); border-radius: var(--ms-radius); }
.ms-tpl-image-7 { display: flex; align-items: center; gap: 28px; }
.ms-tpl-image-7 img { width: 50%; border-radius: var(--ms-radius); }
.ms-tpl-image-8 img { width: 100%; border-radius: 999px 999px 0 0; }
.ms-tpl-image-9 { max-width: 420px; margin: 0 auto; }
.ms-tpl-image-9 img { width: 100%; border-radius: var(--ms-radius); transform: rotate(-2deg); }
.ms-tpl-image-10 { position: relative; }
.ms-tpl-image-10 img { width: 100%; border-radius: var(--ms-radius); }
.ms-tpl-image-10 figcaption {
  position: absolute; inset: auto 0 0 0; background: rgba(17, 24, 39, 0.75); color: #fff;
  padding: 14px 18px; border-radius: 0 0 var(--ms-radius) var(--ms-radius);
}

/* ---------- gallery (10) ---------- */
.ms-tpl-gallery-1 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.ms-tpl-gallery-2 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.ms-tpl-gallery-3 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.ms-tpl-gallery-4 { columns: 3; column-gap: 14px; }
.ms-tpl-gallery-4 .ms-gallery-item { break-inside: avoid; margin-bottom: 14px; }
.ms-tpl-gallery-5 { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 14px; }
.ms-tpl-gallery-6 { display: flex; gap: 14px; overflow-x: auto; }
.ms-tpl-gallery-6 .ms-gallery-item { flex: 0 0 320px; }
.ms-tpl-gallery-1 img, .ms-tpl-gallery-2 img, .ms-tpl-gallery-3 img,
.ms-tpl-gallery-4 img, .ms-tpl-gallery-5 img, .ms-tpl-gallery-6 img {
  border-radius: var(--ms-radius); width: 100%;
}
.ms-tpl-gallery-7 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.ms-tpl-gallery-7 img { width: 100%; border-radius: 0; }
.ms-tpl-gallery-8 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.ms-tpl-gallery-8 img { width: 100%; border-radius: var(--ms-radius); filter: grayscale(60%); }
.ms-tpl-gallery-9 { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.ms-tpl-gallery-9 img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 50%; }
.ms-tpl-gallery-10 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.ms-tpl-gallery-10 img { width: 100%; border-radius: var(--ms-radius); box-shadow: var(--ms-shadow); }

/* ---------- features (10) ---------- */
.ms-tpl-features-1 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.ms-tpl-features-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.ms-tpl-features-3 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.ms-tpl-features-4 { display: flex; flex-direction: column; gap: 16px; }
.ms-tpl-features-4 .ms-card { display: flex; gap: 18px; align-items: flex-start; text-align: left; }
.ms-tpl-features-5 .ms-card { border: 1px solid var(--ms-border); border-radius: var(--ms-radius); padding: 24px; }
.ms-tpl-features-5 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.ms-tpl-features-6 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; text-align: center; }
.ms-tpl-features-6 .ms-card-icon { font-size: 2rem; }
.ms-tpl-features-7 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.ms-tpl-features-7 .ms-card {
  border: 1px solid var(--ms-border); padding: 24px; margin: 0 -1px -1px 0;
}
.ms-tpl-features-8 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.ms-tpl-features-8 .ms-card:nth-child(even) { transform: translateY(24px); }
.ms-tpl-features-9 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.ms-tpl-features-9 .ms-card { border-top: 3px solid var(--ms-primary); padding-top: 20px; }
.ms-tpl-features-10 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.ms-tpl-features-10 .ms-card { background: var(--ms-bg-soft); border-radius: var(--ms-radius); padding: 24px; }

/* ---------- pricing (10) ---------- */
.ms-tpl-pricing-1 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.ms-tpl-pricing-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.ms-tpl-pricing-3 { display: flex; flex-direction: column; gap: 14px; max-width: 640px; }
.ms-tpl-pricing-4 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.ms-tpl-pricing-4 .ms-plan { border: 1px solid var(--ms-border); padding: 28px; margin: 0 -1px 0 0; }
.ms-tpl-pricing-5 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.ms-tpl-pricing-5 .ms-plan { border: 1px solid var(--ms-border); border-radius: var(--ms-radius); padding: 28px; }
.ms-tpl-pricing-6 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.ms-tpl-pricing-6 .ms-plan-highlight { transform: scale(1.05); box-shadow: var(--ms-shadow); }
.ms-tpl-pricing-7 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.ms-tpl-pricing-7 .ms-plan { text-align: center; }
.ms-tpl-pricing-7 .ms-plan-price { font-size: 2.2rem; font-weight: 800; }
.ms-tpl-pricing-8 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.ms-tpl-pricing-8 .ms-plan-name { border-bottom: 1px solid var(--ms-border); padding-bottom: 12px; }
.ms-tpl-pricing-9 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.ms-tpl-pricing-9 .ms-plan { background: var(--ms-bg-soft); border-radius: var(--ms-radius); padding: 28px; }
.ms-tpl-pricing-10 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; }
.ms-tpl-pricing-10 .ms-plan { border-top: 4px solid var(--ms-primary); padding-top: 22px; }

/* ---------- faq (10) ---------- */
.ms-tpl-faq-1 { display: flex; flex-direction: column; gap: 12px; }
.ms-tpl-faq-2 .ms-faq-item { border: 1px solid var(--ms-border); border-radius: var(--ms-radius); padding: 4px 16px; }
.ms-tpl-faq-2 { display: flex; flex-direction: column; gap: 10px; }
.ms-tpl-faq-3 .ms-faq-item { border-bottom: 1px solid var(--ms-border); padding-bottom: 14px; }
.ms-tpl-faq-4 { columns: 2; column-gap: 32px; }
.ms-tpl-faq-4 .ms-faq-item { break-inside: avoid; margin-bottom: 16px; }
.ms-tpl-faq-5 .ms-faq-item { background: var(--ms-bg-soft); padding: 14px 18px; border-radius: var(--ms-radius); }
.ms-tpl-faq-5 { display: flex; flex-direction: column; gap: 10px; }
.ms-tpl-faq-6 .ms-faq-q { font-weight: 700; color: var(--ms-primary); }
.ms-tpl-faq-7 .ms-faq-item { border-left: 3px solid var(--ms-primary); padding-left: 16px; }
.ms-tpl-faq-8 { max-width: 70ch; }
.ms-tpl-faq-8 .ms-faq-a { color: var(--ms-muted); }
.ms-tpl-faq-9 .ms-faq-item { box-shadow: var(--ms-shadow); padding: 16px 20px; border-radius: var(--ms-radius); }
.ms-tpl-faq-9 { display: flex; flex-direction: column; gap: 12px; }
.ms-tpl-faq-10 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }

/* ---------- form (10) ---------- */
.ms-tpl-form-1 { display: flex; flex-direction: column; gap: 14px; max-width: 520px; }
.ms-tpl-form-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.ms-tpl-form-2 .ms-form-field:last-of-type { grid-column: 1 / -1; }
.ms-tpl-form-3 {
  background: var(--ms-bg-soft); padding: 32px; border-radius: var(--ms-radius);
  display: flex; flex-direction: column; gap: 14px; max-width: 560px;
}
.ms-tpl-form-4 {
  border: 1px solid var(--ms-border); padding: 32px; border-radius: calc(var(--ms-radius) * 2);
  display: flex; flex-direction: column; gap: 14px; max-width: 560px;
}
.ms-tpl-form-5 { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; }
.ms-tpl-form-6 { display: flex; flex-direction: column; gap: 14px; max-width: 400px; margin: 0 auto; }
.ms-tpl-form-7 { display: flex; flex-direction: column; gap: 20px; max-width: 600px; }
.ms-tpl-form-7 .ms-form-input { border-bottom: 2px solid var(--ms-primary); border-radius: 0; }
.ms-tpl-form-8 { display: flex; flex-direction: column; gap: 14px; max-width: 520px; }
.ms-tpl-form-8 .ms-form-label { text-transform: uppercase; font-size: 0.75rem; letter-spacing: 0.06em; }
.ms-tpl-form-9 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.ms-tpl-form-10 {
  display: flex; flex-direction: column; gap: 14px; max-width: 520px;
  box-shadow: var(--ms-shadow); padding: 28px; border-radius: var(--ms-radius);
}

/* ---------- video (10) ---------- */
.ms-tpl-video-1 { max-width: 720px; margin: 0 auto; }
.ms-tpl-video-2 iframe { width: 100%; aspect-ratio: 16 / 9; border-radius: var(--ms-radius); }
.ms-tpl-video-3 iframe { width: 100%; aspect-ratio: 4 / 3; }
.ms-tpl-video-4 iframe { width: 100%; aspect-ratio: 1; border-radius: 50%; }
.ms-tpl-video-5 { box-shadow: var(--ms-shadow); border-radius: var(--ms-radius); overflow: hidden; }
.ms-tpl-video-6 { border: 8px solid var(--ms-bg-soft); border-radius: var(--ms-radius); }
.ms-tpl-video-7 { max-width: 480px; margin: 0 auto; }
.ms-tpl-video-8 { border-radius: calc(var(--ms-radius) * 2); overflow: hidden; }
.ms-tpl-video-9 iframe { width: 100%; aspect-ratio: 21 / 9; }
.ms-tpl-video-10 { background: var(--ms-dark); padding: 20px; border-radius: var(--ms-radius); }

/* ---------- cta (10) ---------- */
.ms-tpl-cta-1 { text-align: center; padding: 40px 0; }
.ms-tpl-cta-2 {
  background: var(--ms-primary); color: #fff; padding: 40px; border-radius: var(--ms-radius); text-align: center;
}
.ms-tpl-cta-2 .ms-cta-heading { color: #fff; }
.ms-tpl-cta-2 .ms-btn-primary { background: #fff; color: var(--ms-primary); }
.ms-tpl-cta-3 {
  border: 2px solid var(--ms-primary); padding: 36px; border-radius: var(--ms-radius); text-align: center;
}
.ms-tpl-cta-4 { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.ms-tpl-cta-5 { background: var(--ms-bg-soft); padding: 36px; border-radius: var(--ms-radius); text-align: center; }
.ms-tpl-cta-6 {
  border-left: 6px solid var(--ms-primary); padding: 28px 32px; background: #fff;
}
.ms-tpl-cta-7 { text-align: center; padding: 48px 0; }
.ms-tpl-cta-7 .ms-cta-heading { font-size: 2rem; }
.ms-tpl-cta-8 { box-shadow: var(--ms-shadow); padding: 36px; border-radius: calc(var(--ms-radius) * 2); text-align: center; }
.ms-tpl-cta-9 {
  background: linear-gradient(135deg, var(--ms-primary), #0ea5e9); color: #fff;
  padding: 44px; border-radius: calc(var(--ms-radius) * 2); text-align: center;
}
.ms-tpl-cta-9 .ms-cta-heading { color: #fff; }
.ms-tpl-cta-10 { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; padding: 32px 0; }

/* ---------- spacer (6) ---------- */
.ms-tpl-spacer-1 { height: 24px; }
.ms-tpl-spacer-2 { height: 48px; }
.ms-tpl-spacer-3 { height: 80px; }
.ms-tpl-spacer-4 { height: 48px; background: repeating-linear-gradient(45deg, var(--ms-bg-soft) 0 8px, transparent 8px 16px); }
.ms-tpl-spacer-5 { height: 40px; border-top: 1px dashed var(--ms-border); border-bottom: 1px dashed var(--ms-border); }
.ms-tpl-spacer-6 { height: 64px; background: linear-gradient(180deg, var(--ms-bg-soft), transparent); }

/* ---------- divider (6) ---------- */
.ms-tpl-divider-1 { height: 1px; background: var(--ms-border); }
.ms-tpl-divider-2 { height: 3px; background: var(--ms-primary); width: 80px; margin: 0 auto; }
.ms-tpl-divider-3 { height: 8px; background: radial-gradient(circle, var(--ms-border) 2px, transparent 2px) 0 0 / 12px 8px; }
.ms-tpl-divider-4 { height: 4px; background: linear-gradient(90deg, transparent, var(--ms-primary), transparent); }
.ms-tpl-divider-5 { height: 2px; background: var(--ms-border); width: 50%; margin: 0 auto; }
.ms-tpl-divider-6 { height: 1px; border-top: 1px dashed var(--ms-primary); }

/* ---------- html (2) ---------- */
.ms-tpl-html-1 { max-width: 100%; }
.ms-tpl-html-2 { padding: 24px; background: var(--ms-bg-soft); border-radius: var(--ms-radius); }

/* ---------- latest-posts (10) ---------- */
.ms-tpl-latest-posts-1 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.ms-tpl-latest-posts-2 { display: flex; flex-direction: column; gap: 14px; }
.ms-tpl-latest-posts-2 .ms-posts-card { flex-direction: row; align-items: center; gap: 18px; }
.ms-tpl-latest-posts-2 .ms-posts-card-cover { width: 160px; }
.ms-tpl-latest-posts-3 { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 22px; }
.ms-tpl-latest-posts-4 { columns: 3; column-gap: 20px; }
.ms-tpl-latest-posts-4 .ms-posts-card { break-inside: avoid; margin-bottom: 20px; }
.ms-tpl-latest-posts-5 { display: flex; gap: 18px; overflow-x: auto; }
.ms-tpl-latest-posts-5 .ms-posts-card { flex: 0 0 320px; }
.ms-tpl-latest-posts-6 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.ms-tpl-latest-posts-7 { display: flex; flex-direction: column; gap: 0; }
.ms-tpl-latest-posts-7 .ms-posts-card {
  border: 0; border-bottom: 1px solid var(--ms-border); border-radius: 0; padding: 16px 0;
}
.ms-tpl-latest-posts-8 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.ms-tpl-latest-posts-8 .ms-posts-card-cover { aspect-ratio: 16 / 9; object-fit: cover; }
.ms-tpl-latest-posts-9 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.ms-tpl-latest-posts-10 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.ms-tpl-latest-posts-10 .ms-posts-card { border-top: 3px solid var(--ms-primary); }

/* ---------- collection-entries (10) ---------- */
.ms-tpl-collection-entries-1 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.ms-tpl-collection-entries-2 { display: flex; flex-direction: column; gap: 14px; }
.ms-tpl-collection-entries-3 { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 22px; }
.ms-tpl-collection-entries-4 { columns: 3; column-gap: 20px; }
.ms-tpl-collection-entries-4 .ms-collection-card { break-inside: avoid; margin-bottom: 20px; }
.ms-tpl-collection-entries-5 { display: flex; gap: 18px; overflow-x: auto; }
.ms-tpl-collection-entries-5 .ms-collection-card { flex: 0 0 300px; }
.ms-tpl-collection-entries-6 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.ms-tpl-collection-entries-7 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.ms-tpl-collection-entries-8 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.ms-tpl-collection-entries-8 .ms-collection-card { background: var(--ms-bg-soft); border-radius: var(--ms-radius); }
.ms-tpl-collection-entries-9 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.ms-tpl-collection-entries-10 { display: flex; flex-direction: column; gap: 0; }
.ms-tpl-collection-entries-10 .ms-collection-card {
  border: 0; border-bottom: 1px solid var(--ms-border); border-radius: 0; padding: 14px 0;
}

/* ---------- category-list (10) ---------- */
.ms-tpl-category-list-1 { display: flex; flex-wrap: wrap; gap: 12px; }
.ms-tpl-category-list-2 .ms-taxonomy-link {
  display: inline-block; border: 1px solid var(--ms-border); border-radius: 999px; padding: 6px 16px;
}
.ms-tpl-category-list-2 { display: flex; flex-wrap: wrap; gap: 10px; }
.ms-tpl-category-list-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.ms-tpl-category-list-3 .ms-taxonomy-link {
  border: 1px solid var(--ms-border); border-radius: var(--ms-radius); padding: 18px; text-align: center;
}
.ms-tpl-category-list-4 { display: flex; flex-direction: column; gap: 0; }
.ms-tpl-category-list-4 .ms-taxonomy-link { border-bottom: 1px solid var(--ms-border); padding: 12px 0; }
.ms-tpl-category-list-5 .ms-taxonomy-link {
  background: var(--ms-bg-soft); padding: 10px 18px; border-radius: var(--ms-radius); display: inline-block;
}
.ms-tpl-category-list-5 { display: flex; flex-wrap: wrap; gap: 10px; }
.ms-tpl-category-list-6 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.ms-tpl-category-list-7 .ms-taxonomy-link { font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; }
.ms-tpl-category-list-8 { display: flex; flex-wrap: wrap; gap: 10px; }
.ms-tpl-category-list-8 .ms-taxonomy-link { border-left: 3px solid var(--ms-primary); padding-left: 12px; }
.ms-tpl-category-list-9 { columns: 2; column-gap: 28px; }
.ms-tpl-category-list-9 .ms-taxonomy-link { display: block; margin-bottom: 10px; }
.ms-tpl-category-list-10 { display: flex; flex-wrap: wrap; gap: 12px; }
.ms-tpl-category-list-10 .ms-taxonomy-link {
  border: 1px solid var(--ms-primary); color: var(--ms-primary); border-radius: var(--ms-radius); padding: 8px 18px;
}

/* ---------- tag-cloud (10) ---------- */
.ms-tpl-tag-cloud-1 { display: flex; flex-wrap: wrap; gap: 10px; }
.ms-tpl-tag-cloud-2 .ms-tag { font-size: 0.8rem; }
.ms-tpl-tag-cloud-3 .ms-tag { font-size: 1.1rem; font-weight: 700; }
.ms-tpl-tag-cloud-4 { display: flex; flex-wrap: wrap; gap: 8px; }
.ms-tpl-tag-cloud-4 .ms-tag {
  border: 1px solid var(--ms-border); border-radius: 999px; padding: 4px 14px;
}
.ms-tpl-tag-cloud-5 .ms-tag { background: var(--ms-bg-soft); padding: 6px 14px; border-radius: var(--ms-radius); }
.ms-tpl-tag-cloud-6 { text-align: center; }
.ms-tpl-tag-cloud-7 .ms-tag { text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.78rem; }
.ms-tpl-tag-cloud-8 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.ms-tpl-tag-cloud-8 .ms-tag { text-align: center; border: 1px solid var(--ms-border); border-radius: var(--ms-radius); padding: 10px; }
.ms-tpl-tag-cloud-9 .ms-tag { color: var(--ms-muted); }
.ms-tpl-tag-cloud-9 .ms-tag:nth-child(odd) { color: var(--ms-primary); }
.ms-tpl-tag-cloud-10 { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }

/* ---------- author-list (10) ---------- */
.ms-tpl-author-list-1 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.ms-tpl-author-list-2 { display: flex; flex-direction: column; gap: 14px; }
.ms-tpl-author-list-3 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.ms-tpl-author-list-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.ms-tpl-author-list-5 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; text-align: center; }
.ms-tpl-author-list-6 { display: flex; gap: 18px; overflow-x: auto; }
.ms-tpl-author-list-6 .ms-author-card { flex: 0 0 240px; }
.ms-tpl-author-list-7 .ms-author-card {
  border: 1px solid var(--ms-border); border-radius: var(--ms-radius); padding: 20px;
}
.ms-tpl-author-list-7 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.ms-tpl-author-list-8 .ms-author-avatar { border-radius: 50%; width: 72px; height: 72px; object-fit: cover; }
.ms-tpl-author-list-9 { display: flex; flex-direction: column; gap: 0; }
.ms-tpl-author-list-9 .ms-author-card { border-bottom: 1px solid var(--ms-border); padding: 14px 0; }
.ms-tpl-author-list-10 { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; }
.ms-tpl-author-list-10 .ms-author-avatar { border-radius: var(--ms-radius); }

/* ==========================================================================
   新增区块：navbar（头部导航）、footer（网站底部）、carousel（轮播滚动）
   ========================================================================== */

/* ---------- navbar 区块 ---------- */
.ms-block-navbar {
  padding: 0;
}

.ms-block-navbar .ms-container {
  max-width: none;
  padding: 0 24px;
}

.ms-block-navbar .ms-nav {
  background: #fff;
  border-bottom: 1px solid var(--ms-border);
}

.ms-block-navbar .ms-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 64px;
}

.ms-block-navbar .ms-nav-links {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}

.ms-block-navbar .ms-nav-link {
  color: var(--ms-text);
  text-decoration: none;
  font-weight: 500;
}

.ms-block-navbar .ms-nav-link:hover {
  color: var(--ms-primary);
}

.ms-var-navbar-centered .ms-nav-inner {
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  padding: 16px 0;
}

.ms-var-navbar-split .ms-nav-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

.ms-var-navbar-split .ms-nav-links {
  grid-column: 2;
  justify-content: center;
}

.ms-var-navbar-split .ms-nav-cta {
  grid-column: 3;
  justify-self: end;
}

/* ---------- footer 区块 ---------- */
.ms-block-footer {
  padding: 0;
}

.ms-block-footer .ms-container {
  max-width: none;
  padding: 0 24px;
}

.ms-block-footer .ms-footer {
  background: var(--ms-bg-soft);
  border-top: 1px solid var(--ms-border);
  padding: 40px 0 24px;
}

.ms-block-footer .ms-footer-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 28px;
}

.ms-block-footer .ms-footer-col-title {
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0 0 12px;
}

.ms-block-footer .ms-footer-col-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ms-block-footer .ms-footer-link {
  color: var(--ms-muted);
  text-decoration: none;
  font-size: 0.9rem;
}

.ms-block-footer .ms-footer-link:hover {
  color: var(--ms-primary);
}

.ms-block-footer .ms-footer-copyright {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--ms-border);
  color: var(--ms-muted);
  font-size: 0.85rem;
}

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

.ms-var-footer-centered {
  text-align: center;
}

.ms-var-footer-centered .ms-footer-cols {
  justify-items: center;
}

.ms-var-footer-centered .ms-footer-col-links {
  align-items: center;
}

/* ---------- carousel 区块 ---------- */
.ms-carousel {
  position: relative;
  overflow: hidden;
  border-radius: var(--ms-radius);
  background: var(--ms-bg-soft);
}

.ms-carousel-track {
  position: relative;
}

.ms-carousel-slide {
  display: none;
  flex-direction: column;
}

.ms-carousel-slide.is-active {
  display: flex;
}

.ms-carousel-image {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
}

.ms-carousel-body {
  padding: 20px 24px;
}

.ms-carousel-title {
  margin: 0 0 8px;
  font-size: 1.25rem;
}

.ms-carousel-content {
  color: var(--ms-muted);
}

.ms-carousel-content p {
  margin: 0 0 8px;
}

.ms-carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(17, 24, 39, 0.5);
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
}

.ms-carousel-arrow:hover {
  background: rgba(17, 24, 39, 0.75);
}

.ms-carousel-prev { left: 12px; }
.ms-carousel-next { right: 12px; }

.ms-carousel-dots {
  position: absolute;
  bottom: 12px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 8px;
  z-index: 2;
}

.ms-carousel-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  cursor: pointer;
}

.ms-carousel-dot.is-active {
  background: var(--ms-primary);
}

/* 变体：fade / cards */
.ms-var-carousel-fade .ms-carousel-slide.is-active {
  animation: ms-carousel-fade 0.4s ease;
}

@keyframes ms-carousel-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

.ms-var-carousel-cards .ms-carousel {
  background: transparent;
}

.ms-var-carousel-cards .ms-carousel-slide.is-active {
  border: 1px solid var(--ms-border);
  border-radius: calc(var(--ms-radius) * 2);
  overflow: hidden;
  box-shadow: var(--ms-shadow);
  background: #fff;
}
