:root {
  --ink: #17191c;
  --muted: #6b7280;
  --line: #e5eae7;
  --page: #f4f6f5;
  --surface: #fff;
  --green: #12a875;
  --green-deep: #0d7f56;
  --green-soft: #e7f6ef;
  --hero: #0f8f63;
  --hero-mid: #0c7a54;
  --hero-deep: #086644;
  --radius: 18px;
  --shadow: 0 10px 28px rgba(17, 25, 21, 0.07);
  --font: "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --pad: clamp(20px, 4vw, 56px);
  --wrap: min(1200px, calc(100% - 2 * var(--pad)));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--page);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
.wrap { width: var(--wrap); margin: 0 auto; }

/* —— Header：浅色底，导航始终清晰 —— */
.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 30;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(17, 25, 21, 0.06);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  height: 68px;
  gap: 20px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 750;
  color: var(--ink);
}
.brand-logo {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: block;
  object-fit: cover;
  flex-shrink: 0;
}
.site-nav {
  display: flex;
  gap: 28px;
  margin-left: auto;
  color: #3d4540;
  font-size: 14px;
  font-weight: 600;
}
.site-nav a {
  position: relative;
  padding: 4px 0;
  transition: color 0.15s ease;
}
.site-nav a:hover { color: var(--green-deep); }
.site-nav a:hover::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--green);
}
.site-nav a:focus-visible,
.brand:focus-visible,
.btn:focus-visible,
.template-card:focus-visible {
  outline: 3px solid #f3b847;
  outline-offset: 4px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  padding: 0 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  border: 0;
}
.btn-primary {
  background: #1fc28a;
  color: #fff;
  box-shadow: 0 8px 16px rgba(18, 168, 117, 0.28);
}
.btn-primary:hover { background: #16ad78; }
.btn-ghost {
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
}
.btn-ghost:hover { background: #fff; }
.btn-ghost-dark { background: #fff; color: var(--green-deep); }
.btn-lg { height: 48px; padding: 0 24px; }

/* —— Hero 全宽斜切 —— */
.hero {
  position: relative;
  width: 100%;
  /* 避免中等视口被 92vh 撑高后，首屏只剩手机图+底部挤一行标题 */
  min-height: 0;
  padding: 108px 0 72px;
  overflow: hidden;
  background: var(--page);
}
@media (min-width: 1101px) {
  .hero { min-height: min(640px, 88vh); }
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 42% 50% at 76% 38%, rgba(255, 255, 255, 0.12), transparent 60%),
    linear-gradient(150deg, #14b07c 0%, var(--hero) 40%, var(--hero-mid) 70%, var(--hero-deep) 100%);
  /* 绿色从顶栏下方开始，避免盖住导航 */
  clip-path: polygon(0 68px, 100% 52px, 100% 100%, 0 100%);
}
.float-card {
  position: absolute;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
  animation: float 7s ease-in-out infinite;
}
.float-a {
  width: min(200px, 20vw);
  height: 240px;
  left: 40%;
  top: 6%;
  transform: rotate(-12deg);
}
.float-b {
  width: min(160px, 16vw);
  height: 190px;
  right: 5%;
  bottom: 10%;
  transform: rotate(9deg);
  animation-delay: -2.5s;
}
@keyframes float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -10px; }
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) auto;
  gap: clamp(20px, 4vw, 48px);
  align-items: center;
}
.hero-copy { max-width: 520px; color: #fff; }
.hero-kicker {
  margin-bottom: 16px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  letter-spacing: 0.06em;
}
.hero h1 {
  margin-bottom: 16px;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.14;
  font-weight: 780;
  letter-spacing: -0.03em;
}
.hero-lede {
  max-width: 420px;
  margin-bottom: 28px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 15px;
  line-height: 1.7;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero .btn-primary {
  background: #25d094;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.16);
}

/* —— 真机截图 + 现代直板机框 —— */
.hero-visual { display: flex; justify-content: center; }
.phone {
  position: relative;
  width: min(280px, 100%);
  padding: 8px;
  border-radius: 34px;
  background: #0b0c0e;
  box-shadow:
    0 30px 60px rgba(0, 0, 0, 0.34),
    0 0 0 1px rgba(255, 255, 255, 0.06),
    inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  animation: rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.phone::before,
.phone::after {
  content: "";
  position: absolute;
  right: -2px;
  width: 2px;
  border-radius: 2px;
  background: #2a2d31;
}
.phone::before { top: 18%; height: 8%; }
.phone::after { top: 30%; height: 14%; }
@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}
.phone-screen {
  overflow: hidden;
  border-radius: 26px;
  background: #eef3f0;
}
.phone-screen picture {
  display: block;
  width: 100%;
}
.phone-shot {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 453 / 1024;
  object-fit: cover;
}

/* —— Sections —— */
.section { width: 100%; padding: 72px 0; }
.section-label {
  margin-bottom: 8px;
  color: var(--green);
  font-size: 13px;
  font-weight: 750;
}
.section-label.is-muted { color: var(--muted); }
.section h2 {
  max-width: 560px;
  font-size: clamp(26px, 3.2vw, 38px);
  line-height: 1.22;
  font-weight: 760;
  letter-spacing: -0.02em;
}
.section-lede {
  max-width: 420px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 32px;
}
.feature-card {
  padding: 24px 22px 26px;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.feature-icon {
  position: relative;
  width: 46px;
  height: 46px;
  margin-bottom: 16px;
  border-radius: 13px;
  background: var(--green-soft);
}
.feature-icon i { position: absolute; border-radius: 3px; background: var(--green); }
.fi-tpl i:first-child { width: 16px; height: 20px; left: 10px; top: 11px; border-radius: 4px; }
.fi-tpl i:last-child {
  width: 16px; height: 20px; left: 18px; top: 14px;
  border-radius: 4px; background: #7ed4ab; opacity: 0.95;
}
/* 3×3 宫格：单元格之间留缝，避免粘成一整块纯色。 */
.fi-grid i {
  width: 7px;
  height: 7px;
  border-radius: 2px;
}
.fi-grid i:nth-child(1) { left: 11px; top: 11px; }
.fi-grid i:nth-child(2) { left: 20px; top: 11px; background: #4fc39a; }
.fi-grid i:nth-child(3) { left: 29px; top: 11px; background: #0d7f56; }
.fi-grid i:nth-child(4) { left: 11px; top: 20px; background: #3bb88a; }
.fi-grid i:nth-child(5) { left: 20px; top: 20px; background: #12a875; }
.fi-grid i:nth-child(6) { left: 29px; top: 20px; background: #7ed4ab; }
.fi-grid i:nth-child(7) { left: 11px; top: 29px; background: #0d7f56; }
.fi-grid i:nth-child(8) { left: 20px; top: 29px; background: #4fc39a; }
.fi-grid i:nth-child(9) { left: 29px; top: 29px; }
.fi-free i { border-radius: 50% 40% 55% 45%; }
.fi-free i:nth-child(1) { width: 14px; height: 16px; left: 8px; top: 16px; transform: rotate(-12deg); }
.fi-free i:nth-child(2) { width: 14px; height: 14px; left: 16px; top: 10px; background: #4fc39a; }
.fi-free i:nth-child(3) { width: 13px; height: 14px; left: 24px; top: 18px; background: #0d7f56; }
.fi-long i { left: 11px; height: 6px; border-radius: 3px; }
.fi-long i:nth-child(1) { top: 12px; width: 24px; }
.fi-long i:nth-child(2) { top: 20px; width: 24px; background: #4fc39a; }
.fi-long i:nth-child(3) { top: 28px; width: 24px; background: #0d7f56; }
.fi-layout i:nth-child(1) { left: 10px; top: 10px; width: 16px; height: 16px; border-radius: 4px; }
.fi-layout i:nth-child(2) { left: 28px; top: 10px; width: 10px; height: 16px; border-radius: 4px; background: #4fc39a; }
.fi-layout i:nth-child(3) { left: 10px; top: 28px; width: 28px; height: 10px; border-radius: 4px; background: #0d7f56; }
.fi-id i:nth-child(1) {
  left: 11px; top: 11px; width: 24px; height: 24px; border-radius: 5px; background: var(--green);
}
.fi-id i:nth-child(2) {
  left: 14px; top: 15px; width: 10px; height: 8px; border-radius: 2px; background: #e8f7f0;
}
.fi-id i:nth-child(3) {
  left: 14px; top: 26px; width: 14px; height: 3px; border-radius: 2px; background: #bde9d4;
}
.fi-cut i:first-child {
  left: 12px; top: 12px; width: 22px; height: 22px; border-radius: 4px;
  background: transparent; border: 2px solid var(--green);
}
.fi-cut i:last-child {
  left: 10px; top: 22px; width: 26px; height: 2px; background: #0d7f56; transform: rotate(-28deg);
}
.fi-beautify i:nth-child(1) {
  left: 14px; top: 12px; width: 18px; height: 18px; border-radius: 50%;
  background: transparent; border: 2px solid var(--green);
}
.fi-beautify i:nth-child(2) {
  left: 20px; top: 18px; width: 6px; height: 6px; border-radius: 50%; background: #4fc39a;
}
.fi-beautify i:nth-child(3) {
  left: 12px; top: 30px; width: 22px; height: 4px; border-radius: 2px; background: #0d7f56;
}
.feature-card h3 { margin-bottom: 6px; font-size: 17px; font-weight: 750; }
.feature-card p { color: var(--muted); font-size: 13px; line-height: 1.65; }

/* —— 真实模板缩略图 —— */
.section-templates { background: #eef1f3; }
.template-row {
  display: grid;
  /* 宽屏一行排满 6 个，避免三列两行留下大块空白；框高统一 3:5 */
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(12px, 1.6vw, 20px);
  margin-top: 32px;
  width: 100%;
  align-items: stretch;
}
.template-card {
  display: grid;
  grid-template-rows: auto auto;
  gap: 10px;
  justify-items: center;
  align-content: start;
  transition: transform 0.2s ease;
}
.template-card:hover { transform: translateY(-4px); }
.template-card figure {
  margin: 0;
  width: 100%;
  /* 以最高比例 3:5 定框，短图上下留白，同行顶底对齐 */
  aspect-ratio: 3 / 5;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 16px;
  background: #f7f8f9;
  box-shadow: var(--shadow);
}
.template-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}
.template-card > span {
  font-size: 13px;
  font-weight: 650;
}

/* —— Workflow + CTA —— */
.workflow {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
}
.steps { display: grid; gap: 12px; }
.step {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  padding: 16px;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.step-num {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green-deep);
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 780;
}
.step strong { display: block; margin-bottom: 4px; font-size: 15px; }
.step p { color: var(--muted); font-size: 13px; line-height: 1.6; }

.cta-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 48px;
  padding: 36px clamp(24px, 3vw, 40px);
  border-radius: 26px;
  background: linear-gradient(120deg, #12a875, #0d8f6a 55%, #0a7a72);
  color: #fff;
  box-shadow: 0 16px 36px rgba(18, 168, 117, 0.22);
}
.cta-banner .eyebrow {
  margin-bottom: 6px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.16em;
}
.cta-banner h2 {
  max-width: 520px;
  font-size: clamp(22px, 2.8vw, 32px);
  line-height: 1.25;
  color: #fff;
}
.cta-banner .cta-desc {
  max-width: 520px;
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
  line-height: 1.7;
  font-weight: 400;
}
.cta-action {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  max-width: 280px;
}
.download-tip {
  margin: 0;
  color: #fff;
  font-size: 13px;
  line-height: 1.6;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
  padding: 24px 0 36px;
  color: var(--muted);
  font-size: 13px;
  border-top: 1px solid var(--line);
}
.footer-legal {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.beian-link {
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  width: fit-content;
}
.beian-link:hover {
  color: var(--ink);
  border-bottom-color: currentColor;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 2px;
}
.footer-links a {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.footer-links a:hover {
  color: var(--ink);
}
.footer-slogan {
  margin: 0;
  color: var(--green-deep);
}

/* 中宽：仍左右排布，缩小手机，避免叠成「大图在上、文案掉底」 */
@media (max-width: 1100px) {
  .hero { padding: 96px 0 56px; }
  .hero-inner {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 28px;
  }
  .phone { width: 220px; }
  .hero h1 { font-size: clamp(32px, 4.2vw, 44px); }
  .float-a, .float-b { display: none; }
}

/* 窄屏再改为单列：文案在上，手机在下，保证首屏先看到标题和按钮 */
@media (max-width: 820px) {
  .hero { padding: 88px 0 48px; }
  .hero-inner { grid-template-columns: 1fr; gap: 28px; }
  .hero-copy { order: 0; max-width: none; }
  .hero-visual { order: 1; justify-content: flex-start; }
  .phone { width: min(200px, 52vw); }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .template-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .workflow { grid-template-columns: 1fr; }
  .cta-banner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 640px) {
  :root { --pad: 18px; }
  .site-header .wrap { height: 60px; gap: 12px; }
  .site-nav { display: none; }
  .site-header .btn { margin-left: auto; padding: 0 16px; }
  .hero-bg { clip-path: polygon(0 60px, 100% 48px, 100% 100%, 0 100%); }
  .hero { padding: 84px 0 48px; }
  .hero-inner { gap: 24px; }
  .hero-kicker { font-size: 12px; }
  .hero h1 { font-size: clamp(30px, 8vw, 38px); }
  .hero-lede { font-size: 14px; }
  .hero-actions { gap: 10px; }
  .hero-actions .btn { flex: 1 1 auto; padding: 0 16px; }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .feature-card { padding: 18px 16px 20px; }
  .template-row { grid-template-columns: 1fr 1fr; }
  .phone { width: min(210px, 58vw); }
  .hero-visual { justify-content: center; }
  .section { padding: 52px 0; }
  .cta-banner { padding: 28px 22px; }
  .site-footer { flex-wrap: wrap; padding-bottom: 24px; }
}

@media (max-width: 380px) {
  :root { --pad: 16px; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-card { display: grid; grid-template-columns: 46px 1fr; column-gap: 12px; align-items: center; }
  .feature-icon { grid-row: span 2; margin: 0; }
  .feature-card h3 { margin: 0 0 4px; }
  .hero-actions .btn { font-size: 13px; }
}

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