/* 小鸭云护航 · 官网落地页
 * 方向：杂志排版 + 新粗野主义硬边 + 产品黄点缀
 * 刻意避开：天空蓝渐变、毛玻璃悬浮导航、大圆角胶囊、Poppins/软阴影 SaaS 模板感
 */

:root {
  --ink: #111111;
  --ink-soft: #333333;
  --mute: #5a5a5a;
  --line: #111111;
  --paper: #ffffff;
  --paper-2: #f4f4f0;
  --yellow: #ffe043;
  --yellow-deep: #e6c820;
  --nav-h: 64px;
  --max: 1100px;
  --hard: 4px 4px 0 #111;
  --hard-sm: 2px 2px 0 #111;
  --r: 2px;
  --t: 160ms ease;
  /* 本地字体：得意黑标题 + Outfit 西文 + 思源黑体正文 */
  --font-sans: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-display: "Smiley Sans", "Outfit", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-mono: "IBM Plex Mono", "SF Mono", "Menlo", "Consolas", monospace;
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .brand-text, .hero-brand {
  font-family: var(--font-display);
  letter-spacing: 0.02em;
  /* 得意黑本身已够粗，避免 700 伪加粗发虚 */
  font-weight: 400;
  color: var(--ink);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; border: none; background: none; cursor: pointer; }
ul { list-style: none; }
code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  background: var(--yellow);
  padding: 0.1em 0.35em;
  border: 1px solid var(--ink);
}

.container {
  width: min(100% - 32px, var(--max));
  margin-inline: auto;
}

/* —— Nav：贴顶硬边，不要毛玻璃 —— */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 20px;
  background: var(--paper);
  border-bottom: 2px solid var(--ink);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1rem;
}

.brand-mark {
  width: 32px;
  height: 32px;
  border: 2px solid var(--ink);
  background: var(--yellow);
  display: grid;
  place-items: center;
  color: var(--ink);
  border-radius: var(--r);
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.nav-links a {
  padding: 6px 10px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ink-soft);
  border: 1px solid transparent;
  border-radius: var(--r);
  transition: background var(--t), border-color var(--t);
}

.nav-links a:hover {
  background: var(--paper-2);
  border-color: var(--ink);
  color: var(--ink);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: var(--r);
  font-weight: 700;
  font-size: 0.92rem;
  border: 2px solid var(--ink);
  transition: transform var(--t), box-shadow var(--t), background var(--t);
  cursor: pointer;
}

.btn:hover { transform: translate(-1px, -1px); box-shadow: var(--hard); }
.btn:active { transform: none; box-shadow: none; }
.btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

.btn-cta {
  background: var(--yellow);
  color: var(--ink);
  box-shadow: var(--hard-sm);
}
.btn-cta:hover { background: var(--yellow-deep); }

.btn-primary {
  background: var(--ink);
  color: var(--paper);
  box-shadow: var(--hard-sm);
}
.btn-primary:hover { background: #000; }

.btn-ghost {
  background: var(--paper);
  color: var(--ink);
}
.btn-ghost:hover { background: var(--paper-2); }

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 2px solid var(--ink);
  border-radius: var(--r);
  align-items: center;
  justify-content: center;
  background: var(--paper);
}

/* —— Hero —— */
.hero {
  padding: 56px 0 40px;
  background: var(--paper);
  border-bottom: 2px solid var(--ink);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: end;
}

.hero-copy .eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  padding: 4px 8px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  background: var(--ink);
  color: var(--yellow);
  border-radius: var(--r);
}

.hero-brand {
  font-size: clamp(2.6rem, 7vw, 4.4rem);
  line-height: 0.95;
  margin-bottom: 16px;
  max-width: 8em;
  letter-spacing: 0.04em;
}

.hero-title {
  font-family: var(--font-sans);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  font-weight: 600;
  line-height: 1.45;
  margin-bottom: 14px;
  max-width: 22em;
  border-left: 4px solid var(--yellow);
  padding-left: 14px;
}

.hero-desc {
  font-size: 0.98rem;
  color: var(--mute);
  max-width: 36em;
  margin-bottom: 26px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--mute);
}

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

.hero-visual { min-height: 360px; }

.hero-stage {
  width: 100%;
  max-height: 480px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--ink);
  border-radius: var(--r);
  background: var(--paper-2);
  box-shadow: 8px 8px 0 var(--ink);
  overflow: hidden;
}

.hero-stage img {
  max-height: 480px;
}

.img-ph {
  width: 100%;
  height: 100%;
  min-height: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  padding: 20px;
  color: var(--ink);
  background:
    repeating-linear-gradient(
      -45deg,
      transparent,
      transparent 8px,
      rgba(0, 0, 0, 0.03) 8px,
      rgba(0, 0, 0, 0.03) 16px
    );
}

.img-ph strong {
  font-family: var(--font-display);
  font-size: 1rem;
}

.img-ph small {
  color: var(--mute);
  font-size: 0.82rem;
  max-width: 18em;
}

.img-ph.light {
  background: var(--paper-2);
}

/* —— 展位图可点击放大 —— */
.zoomable,
.img-ph,
.hero-stage,
.slide-visual,
.role-panel .visual,
.template-card .preview,
.mp-layout .visual,
.admin-visual {
  cursor: zoom-in;
  position: relative;
}

/*
 * 完整展示：按原图比例缩放，不裁剪；限制最大高度，避免竖屏截图过高。
 */
.hero-stage img,
.slide-visual img,
.role-panel .visual img,
.template-card .preview img,
.mp-layout .visual img,
.admin-visual img {
  cursor: zoom-in;
  position: static;
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 420px;
  margin-inline: auto;
  object-fit: contain;
  transform: none;
}

.zoom-hint {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 2;
  padding: 3px 8px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--ink);
  background: var(--yellow);
  border: 1px solid var(--ink);
  border-radius: var(--r);
  pointer-events: none;
  opacity: 0.92;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.82);
}

.lightbox.open {
  display: flex;
}

.lightbox-panel {
  position: relative;
  width: min(100%, 960px);
  max-height: min(90vh, 860px);
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: var(--r);
  box-shadow: 8px 8px 0 var(--yellow);
  overflow: auto;
  cursor: default;
}

.lightbox-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  width: 40px;
  height: 40px;
  border: 2px solid var(--ink);
  background: var(--yellow);
  color: var(--ink);
  font-size: 1.4rem;
  line-height: 1;
  border-radius: var(--r);
  box-shadow: var(--hard-sm);
  cursor: pointer;
}

.lightbox-close:hover {
  transform: translate(-1px, -1px);
  box-shadow: var(--hard);
}

.lightbox-body {
  min-height: 280px;
  max-height: min(90vh, 860px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 24px 24px;
}

.lightbox-body img {
  max-width: 100%;
  max-height: min(78vh, 720px);
  width: auto;
  height: auto;
  object-fit: contain;
  border: 2px solid var(--ink);
  background: var(--paper-2);
}

.lightbox-body .img-ph {
  width: 100%;
  min-height: 360px;
  cursor: default;
}

.lightbox-caption {
  padding: 0 24px 20px;
  text-align: center;
  font-size: 0.9rem;
  color: var(--mute);
}

body.lightbox-lock {
  overflow: hidden;
}

@media (max-width: 768px) {
  .lightbox { padding: 12px; }
  .lightbox-body { padding: 44px 12px 16px; }
  .lightbox-body .img-ph { min-height: 240px; }
}

/* —— 演示站弹窗 —— */
/* —— 演示站弹窗（keyframes 进场，避免 hidden/display 导致无过渡） —— */
.demo-modal {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.82);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.demo-modal.is-open {
  visibility: visible;
  pointer-events: auto;
  animation: demo-backdrop-in 240ms ease-out forwards;
}

.demo-modal.is-closing {
  visibility: visible;
  pointer-events: none;
  animation: demo-backdrop-out 200ms ease-in forwards;
}

.demo-modal-panel {
  position: relative;
  width: min(100%, 780px);
  max-height: min(92vh, 900px);
  overflow: auto;
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: var(--r);
  box-shadow: 8px 8px 0 var(--yellow);
  padding: 28px 24px 24px;
  opacity: 0;
  transform: translateY(20px) scale(0.96);
  will-change: transform, opacity;
}

.demo-modal.is-open .demo-modal-panel {
  animation: demo-panel-in 280ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.demo-modal.is-closing .demo-modal-panel {
  animation: demo-panel-out 200ms ease-in forwards;
}

@keyframes demo-backdrop-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes demo-backdrop-out {
  from { opacity: 1; }
  to { opacity: 0; }
}

@keyframes demo-panel-in {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes demo-panel-out {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  to {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
}

@media (prefers-reduced-motion: reduce) {
  .demo-modal.is-open,
  .demo-modal.is-closing,
  .demo-modal.is-open .demo-modal-panel,
  .demo-modal.is-closing .demo-modal-panel {
    animation: none;
  }
  .demo-modal.is-open {
    opacity: 1;
  }
  .demo-modal.is-open .demo-modal-panel {
    opacity: 1;
    transform: none;
  }
}

.demo-modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  width: 40px;
  height: 40px;
  border: 2px solid var(--ink);
  background: var(--yellow);
  color: var(--ink);
  font-size: 1.4rem;
  line-height: 1;
  border-radius: var(--r);
  box-shadow: var(--hard-sm);
}

.demo-modal-close:hover {
  transform: translate(-1px, -1px);
  box-shadow: var(--hard);
}

.demo-modal-head {
  margin-bottom: 20px;
  padding-right: 44px;
}

.demo-modal-head .label {
  display: inline-block;
  margin-bottom: 8px;
  padding: 3px 8px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--yellow);
  border: 1px solid var(--ink);
}

.demo-modal-head h2 {
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  margin-bottom: 6px;
}

.demo-modal-head p {
  color: var(--mute);
  font-size: 0.95rem;
  max-width: 36em;
}

.demo-modal-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 18px;
  align-items: start;
}

.demo-modal-links {
  display: grid;
  gap: 10px;
}

.demo-link-card {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border: 2px solid var(--ink);
  background: var(--paper-2);
  border-radius: var(--r);
  box-shadow: var(--hard-sm);
  transition: transform var(--t), box-shadow var(--t), background var(--t);
}

.demo-link-card:hover {
  background: var(--yellow);
  transform: translate(-1px, -1px);
  box-shadow: var(--hard);
}

.demo-link-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--mute);
}

.demo-link-card strong {
  font-size: 1rem;
  word-break: break-all;
}

.demo-link-go {
  font-size: 0.85rem;
  font-weight: 600;
  margin-top: 2px;
}

.demo-contact-list {
  border: 2px solid var(--ink);
  border-radius: var(--r);
  overflow: hidden;
}

.demo-contact-list li {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 8px;
  align-items: center;
  padding: 11px 14px;
  border-bottom: 1px solid var(--ink);
  font-size: 0.92rem;
}

.demo-contact-list li:last-child {
  border-bottom: none;
}

.demo-contact-list li > span {
  color: var(--mute);
  font-size: 0.82rem;
}

.demo-contact-list a,
.demo-contact-list strong {
  font-weight: 600;
  word-break: break-all;
}

.demo-contact-list a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.demo-qr-card {
  border: 2px solid var(--ink);
  border-radius: var(--r);
  background: var(--paper);
  padding: 14px;
  text-align: center;
  box-shadow: var(--hard-sm);
}

.demo-qr-card img {
  width: 100%;
  max-width: 260px;
  margin: 0 auto 10px;
  border: 2px solid var(--ink);
  background: var(--paper-2);
}

.demo-qr-card p {
  font-size: 0.88rem;
  color: var(--mute);
}

.demo-qr-id {
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 0.82rem !important;
  color: var(--ink) !important;
  font-weight: 600;
}

body.demo-modal-lock {
  overflow: hidden;
}

@media (max-width: 768px) {
  .demo-modal { padding: 12px; }
  .demo-modal-panel { padding: 22px 14px 16px; }
  .demo-modal-grid { grid-template-columns: 1fr; }
  .demo-contact-list li { grid-template-columns: 76px 1fr; }
  .demo-qr-card img { max-width: 220px; }
}

/* —— Sections —— */
section { padding: 72px 0; }

.section-head {
  max-width: 640px;
  margin: 0 0 36px;
  text-align: left;
}

.section-head .label {
  display: inline-block;
  margin-bottom: 10px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--ink);
  background: var(--yellow);
  border: 1px solid var(--ink);
  padding: 2px 8px;
  border-radius: var(--r);
}

.section-head h2 {
  font-size: clamp(1.55rem, 3.2vw, 2.2rem);
  line-height: 1.15;
  margin-bottom: 10px;
}

.section-head p {
  color: var(--mute);
  font-size: 0.98rem;
}

.section-head.center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

/* —— Stats：分割线，不要软卡片 —— */
.stats {
  padding: 0;
  background: var(--yellow);
  border-bottom: 2px solid var(--ink);
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-left: 2px solid var(--ink);
}

.stat-item {
  text-align: left;
  padding: 22px 20px;
  border-right: 2px solid var(--ink);
}

.stat-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.75rem;
  line-height: 1.1;
  margin-bottom: 4px;
}

.stat-item span {
  font-size: 0.85rem;
  color: var(--ink-soft);
}

/* —— Carousel —— */
.carousel-section {
  background: var(--paper);
  border-bottom: 2px solid var(--ink);
}

.carousel {
  position: relative;
  overflow: hidden;
  border: 2px solid var(--ink);
  border-radius: var(--r);
  background: var(--paper);
  box-shadow: var(--hard);
}

.carousel-track {
  display: flex;
  transition: transform 0.4s ease;
  will-change: transform;
}

.carousel-slide {
  flex: 0 0 100%;
  min-height: 340px;
  padding: 24px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
  align-items: start;
}

.carousel-slide .copy h3 {
  font-size: 1.4rem;
  margin-bottom: 10px;
}

.carousel-slide .copy p {
  color: var(--mute);
  margin-bottom: 14px;
  font-size: 0.95rem;
}

.carousel-slide .copy ul { display: grid; gap: 8px; }

.carousel-slide .copy li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.carousel-slide .copy li svg {
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--ink);
}

.slide-visual {
  width: 100%;
  height: auto;
  max-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--ink);
  border-radius: var(--r);
  overflow: hidden;
  background: var(--paper-2);
}

.template-card .preview[data-slot="16"] {
  height: auto;
}

.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  margin-top: 18px;
}

.carousel-btn {
  width: 40px;
  height: 40px;
  border: 2px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  display: grid;
  place-items: center;
  border-radius: var(--r);
  box-shadow: var(--hard-sm);
  transition: transform var(--t), box-shadow var(--t);
}

.carousel-btn:hover {
  transform: translate(-1px, -1px);
  box-shadow: var(--hard);
  background: var(--yellow);
}

.carousel-dots { display: flex; gap: 6px; }

.carousel-dots button {
  width: 10px;
  height: 10px;
  border: 2px solid var(--ink);
  background: var(--paper);
  border-radius: 0;
  transition: background var(--t), width var(--t);
}

.carousel-dots button.active {
  width: 28px;
  background: var(--yellow);
}

/* —— Roles —— */
.roles {
  background: var(--paper-2);
  border-bottom: 2px solid var(--ink);
}

.role-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.role-tab {
  padding: 9px 14px;
  border: 2px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  font-weight: 700;
  font-size: 0.88rem;
  border-radius: var(--r);
  transition: background var(--t), box-shadow var(--t), transform var(--t);
}

.role-tab:hover {
  background: var(--yellow);
  transform: translate(-1px, -1px);
  box-shadow: var(--hard-sm);
}

.role-tab.active {
  background: var(--ink);
  color: var(--yellow);
  box-shadow: var(--hard-sm);
}

.role-panel {
  display: none;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 24px;
  align-items: stretch;
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: var(--r);
  padding: 22px;
  box-shadow: var(--hard);
}

.role-panel.active { display: grid; }

.role-panel .visual {
  width: 100%;
  height: auto;
  max-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--ink);
  border-radius: var(--r);
  overflow: hidden;
  background: var(--paper-2);
}

.role-panel[data-role-panel="boss"] .visual,
.role-panel[data-role-panel="manager"] .visual,
.role-panel[data-role-panel="merchant"] .visual {
  height: auto;
  max-height: 360px;
}

.role-panel[data-role-panel="boss"] .visual img,
.role-panel[data-role-panel="manager"] .visual img,
.role-panel[data-role-panel="merchant"] .visual img {
  max-height: 360px;
}

.role-panel h3 { font-size: 1.35rem; margin-bottom: 6px; }

.role-panel .tagline {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--ink);
  margin-bottom: 12px;
  background: var(--yellow);
  display: inline-block;
  padding: 2px 8px;
  border: 1px solid var(--ink);
}

.role-panel > div > p {
  color: var(--mute);
  margin-bottom: 14px;
  font-size: 0.94rem;
}

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

.feature-chips span {
  padding: 4px 8px;
  border: 1px solid var(--ink);
  background: var(--paper-2);
  font-size: 0.78rem;
  font-weight: 600;
  border-radius: var(--r);
}

.role-detail-list {
  display: grid;
  gap: 10px;
  margin: 14px 0 16px;
}

.role-detail-list li {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--mute);
  line-height: 1.5;
  padding-bottom: 8px;
  border-bottom: 1px dashed #ccc;
}

.role-detail-list strong {
  color: var(--ink);
  font-weight: 700;
}

/* —— Catalog —— */
.catalog {
  background: var(--paper);
  border-bottom: 2px solid var(--ink);
}

.catalog-block {
  margin-bottom: 16px;
  padding: 22px 22px 22px 20px;
  border: 2px solid var(--ink);
  border-radius: var(--r);
  background: var(--paper);
  border-left-width: 8px;
  border-left-color: var(--yellow);
}

.catalog-block:last-child { margin-bottom: 0; }

.catalog-block > header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 16px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid #ddd;
}

.catalog-block > header h3 { font-size: 1.15rem; }

.catalog-block > header p {
  color: var(--mute);
  font-size: 0.88rem;
  font-family: var(--font-mono);
}

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

.detail-item h4 {
  font-size: 0.95rem;
  margin-bottom: 6px;
}

.detail-item p,
.detail-item ul {
  color: var(--mute);
  font-size: 0.88rem;
  line-height: 1.55;
}

.detail-item ul { display: grid; gap: 4px; }

.detail-item li {
  position: relative;
  padding-left: 14px;
}

.detail-item li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  background: var(--yellow);
  border: 1px solid var(--ink);
}

/* —— Templates —— */
.templates {
  background: var(--paper-2);
  border-bottom: 2px solid var(--ink);
}

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

.template-card {
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: var(--hard-sm);
  transition: transform var(--t), box-shadow var(--t);
}

.template-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: var(--hard);
}

.template-card .preview {
  height: auto;
  max-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 2px solid var(--ink);
  background: var(--paper-2);
}

.template-card .preview img {
  max-height: 280px;
}
.template-card .body { padding: 16px; }

.template-card .type {
  display: inline-block;
  margin-bottom: 6px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  background: var(--ink);
  color: var(--yellow);
  padding: 2px 6px;
}

.template-card h3 { font-size: 1.05rem; margin-bottom: 6px; }
.template-card p { color: var(--mute); font-size: 0.88rem; }

.template-note {
  margin-top: 18px;
  text-align: left;
  color: var(--mute);
  font-size: 0.88rem;
}

/* —— Mini program —— */
.miniprogram {
  background: var(--paper);
  border-bottom: 2px solid var(--ink);
}

.mp-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: center;
}

.mp-layout .visual {
  width: 100%;
  height: auto;
  max-height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--ink);
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: var(--hard);
  background: var(--paper-2);
}

.mp-layout .visual img {
  max-height: 480px;
}

.mp-list { display: grid; gap: 10px; margin-top: 16px; }

.mp-item {
  display: flex;
  gap: 12px;
  padding: 12px 14px;
  border: 2px solid var(--ink);
  background: var(--paper-2);
  border-radius: var(--r);
}

.mp-item svg { flex-shrink: 0; color: var(--ink); margin-top: 2px; }
.mp-item strong { display: block; margin-bottom: 2px; font-size: 0.92rem; }
.mp-item span { font-size: 0.85rem; color: var(--mute); }

/* —— Exam —— */
.exam {
  background: var(--paper-2);
  border-bottom: 2px solid var(--ink);
}

.flow {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  margin-bottom: 28px;
}

.flow-step {
  padding: 14px 10px;
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: var(--r);
  text-align: left;
}

.flow-step .num {
  width: 26px;
  height: 26px;
  margin-bottom: 8px;
  border: 2px solid var(--ink);
  background: var(--yellow);
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 800;
  font-family: var(--font-mono);
  display: grid;
  place-items: center;
  border-radius: var(--r);
}

.flow-step h4 { font-size: 0.88rem; margin-bottom: 4px; }
.flow-step p { font-size: 0.76rem; color: var(--mute); line-height: 1.35; }

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

.exam-card {
  padding: 16px;
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: var(--r);
}

.exam-card h3 { font-size: 0.98rem; margin-bottom: 6px; }
.exam-card p { color: var(--mute); font-size: 0.86rem; }

/* —— Admin —— */
.admin-hl {
  background: var(--paper);
  border-bottom: 2px solid var(--ink);
}

.admin-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: center;
  margin-bottom: 20px;
}

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

.admin-points li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--mute);
  font-size: 0.92rem;
  padding: 10px 12px;
  border: 1px solid var(--ink);
  background: var(--paper-2);
}

.admin-points svg { color: var(--ink); flex-shrink: 0; margin-top: 2px; }

.admin-visual {
  width: 100%;
  height: auto;
  max-height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--ink);
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: var(--hard);
  background: var(--paper-2);
}

.admin-visual img {
  max-height: 360px;
}

.admin-module-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.admin-module {
  padding: 14px;
  border: 2px solid var(--ink);
  border-radius: var(--r);
  background: var(--paper);
}

.admin-module h4 {
  font-size: 0.92rem;
  margin-bottom: 6px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--yellow);
  display: inline-block;
}

.admin-module p {
  font-size: 0.84rem;
  color: var(--mute);
  line-height: 1.5;
}

/* —— Social —— */
.social {
  background: var(--paper-2);
  border-bottom: 2px solid var(--ink);
}

.testimonial-carousel { position: relative; overflow: hidden; }

.testimonial-track {
  display: flex;
  gap: 12px;
  transition: transform 0.4s ease;
}

.testimonial {
  flex: 0 0 calc((100% - 24px) / 3);
  padding: 18px;
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: var(--r);
  min-height: 200px;
  box-shadow: var(--hard-sm);
}

.stars {
  display: flex;
  gap: 2px;
  color: var(--ink);
  margin-bottom: 10px;
}

.testimonial blockquote {
  font-size: 0.94rem;
  color: var(--ink-soft);
  margin-bottom: 16px;
  line-height: 1.6;
}

.testimonial .who {
  display: flex;
  align-items: center;
  gap: 10px;
}

.avatar {
  width: 36px;
  height: 36px;
  border: 2px solid var(--ink);
  background: var(--yellow);
  color: var(--ink);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.85rem;
  border-radius: var(--r);
}

.who strong { display: block; font-size: 0.9rem; }
.who span {
  font-size: 0.75rem;
  color: var(--mute);
  font-family: var(--font-mono);
}

/* —— CTA —— */
.cta-band {
  padding: 64px 0 80px;
  background: var(--paper);
}

.cta-box {
  text-align: left;
  padding: 36px 28px;
  border: 2px solid var(--ink);
  border-radius: var(--r);
  background: var(--ink);
  color: var(--paper);
  box-shadow: 8px 8px 0 var(--yellow);
}

.cta-box h2 {
  color: var(--paper);
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 10px;
}

.cta-box p {
  color: rgba(255, 255, 255, 0.78);
  max-width: 36em;
  margin-bottom: 20px;
}

.cta-box .btn-cta {
  background: var(--yellow);
  color: var(--ink);
}

.cta-box .btn-ghost {
  background: transparent;
  color: var(--paper);
  border-color: rgba(255, 255, 255, 0.55);
}

.cta-box .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 4px 4px 0 var(--yellow);
}

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

.cta-note {
  margin-top: 16px;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.55);
  font-family: var(--font-mono);
}

/* —— Footer —— */
footer {
  padding: 28px 0 36px;
  background: var(--ink);
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.86rem;
  border-top: 4px solid var(--yellow);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

footer .brand { color: #fff; }
footer .brand-mark {
  background: var(--yellow);
  color: var(--ink);
  border-color: var(--yellow);
}

/* —— Drawer —— */
.nav-drawer {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99;
  background: rgba(0, 0, 0, 0.45);
}

.nav-drawer.open { display: block; }

.nav-drawer-panel {
  position: absolute;
  top: calc(var(--nav-h) + 8px);
  left: 12px;
  right: 12px;
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: var(--r);
  padding: 10px;
  display: grid;
  gap: 2px;
  box-shadow: var(--hard);
}

.nav-drawer-panel a,
.nav-drawer-panel button.js-demo-open {
  padding: 12px 12px;
  font-weight: 600;
  border: 1px solid transparent;
  text-align: left;
  width: 100%;
  color: inherit;
  background: none;
  cursor: pointer;
  font: inherit;
}

.nav-drawer-panel a:hover,
.nav-drawer-panel button.js-demo-open:hover {
  background: var(--yellow);
  border-color: var(--ink);
}

/* —— Feature grid leftovers (unused but safe) —— */
.features { background: var(--paper); }
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.feature-card {
  padding: 18px;
  border: 2px solid var(--ink);
  background: var(--paper);
}
.feature-icon {
  width: 36px;
  height: 36px;
  border: 2px solid var(--ink);
  background: var(--yellow);
  display: grid;
  place-items: center;
  margin-bottom: 10px;
  border-radius: var(--r);
}

/* —— Responsive —— */
@media (max-width: 1024px) {
  .hero-grid,
  .carousel-slide,
  .role-panel.active,
  .mp-layout,
  .admin-grid {
    grid-template-columns: 1fr;
  }

  .feature-grid,
  .template-grid,
  .exam-grid,
  .detail-grid,
  .admin-module-grid {
    grid-template-columns: 1fr 1fr;
  }

  .flow { grid-template-columns: repeat(3, 1fr); }
  .testimonial { flex: 0 0 calc((100% - 12px) / 2); }
  .nav-links { display: none; }
}

@media (max-width: 768px) {
  .nav .btn-cta { display: none; }
  .nav-toggle { display: inline-flex; }

  .hero { padding-top: 36px; }
  .hero-visual { min-height: 260px; }
  .hero-stage { box-shadow: 4px 4px 0 var(--ink); }

  .stats-row { grid-template-columns: 1fr 1fr; }
  .stat-item:nth-child(2) { border-bottom: 2px solid var(--ink); }

  .feature-grid,
  .template-grid,
  .exam-grid,
  .detail-grid,
  .admin-module-grid,
  .flow {
    grid-template-columns: 1fr;
  }

  .carousel-slide { min-height: auto; padding: 16px; }
  .slide-visual { height: auto; max-height: 320px; }
  .slide-visual img { max-height: 320px; }
  .hero-stage { max-height: 360px; }
  .hero-stage img { max-height: 360px; }
  .testimonial { flex: 0 0 100%; }
  .role-detail-list li { grid-template-columns: 1fr; gap: 2px; }
  section { padding: 52px 0; }
  .cta-box { box-shadow: 4px 4px 0 var(--yellow); }
}
