/* 拼图工坊 · 首页（新版） */
.h-wrap { max-width: 1220px; margin: 0 auto; padding: 0 28px; }

/* ---------- 公告条（layout 共用） ---------- */
.notice-bar {
  background: linear-gradient(90deg, #fff4ef, #f6f2ff 60%, #fff);
  border-bottom: 1px solid #ffe2d8;
  font-size: 13px; color: var(--ink-2); padding: 9px 28px; text-align: center;
}
.notice-tag {
  display: inline-block; margin-right: 8px; padding: 1px 8px; border-radius: 999px;
  background: var(--brand); color: #fff; font-size: 11px; font-weight: 700; vertical-align: 1px;
}

/* ---------- Hero ---------- */
.h-hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 460px at 8% 0%, #ffe9e1 0%, rgba(255,233,225,0) 62%),
    radial-gradient(760px 480px at 96% 12%, #eae5ff 0%, rgba(234,229,255,0) 60%),
    linear-gradient(180deg, #fdfcff 0%, var(--bg) 100%);
}
.h-hero::after {
  content: ""; position: absolute; inset: auto 0 -1px 0; height: 1px; background: rgba(20,22,28,.05);
}
.h-hero-inner {
  max-width: 1220px; margin: 0 auto; padding: 64px 28px 58px;
  display: grid; grid-template-columns: 1.02fr .98fr; gap: 44px; align-items: center;
}
.h-eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 10px; border-radius: 999px;
  background: rgba(255,255,255,.86); border: 1px solid #ffe0d5; color: var(--ink-2);
  font-size: 12.5px; box-shadow: 0 6px 20px rgba(255,90,54,.08);
}
.h-eyebrow i { width: 7px; height: 7px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px rgba(255,90,54,.12); }
.h-hero h1 {
  margin: 18px 0 14px; font-size: clamp(34px, 4.2vw, 56px); line-height: 1.12; letter-spacing: -1.6px; font-weight: 800;
}
.h-hero h1 em {
  font-style: normal;
  background: linear-gradient(100deg, var(--brand) 10%, #ff7a4d 52%, var(--violet) 96%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.h-lead { margin: 0; max-width: 560px; color: var(--ink-2); font-size: 15.5px; line-height: 1.85; }
.h-lead b { color: var(--ink); }
.h-actions { display: flex; align-items: center; gap: 12px; margin: 26px 0 0; flex-wrap: wrap; }
.h-link { font-size: 13.5px; color: var(--muted); }
.h-link a { color: var(--brand); font-weight: 600; }
.h-stats { list-style: none; display: flex; gap: 0; margin: 34px 0 0; padding: 0; }
.h-stats li { padding: 0 26px; border-left: 1px solid #e4e5ee; }
.h-stats li:first-child { padding-left: 0; border-left: 0; }
.h-stats strong { display: block; font-size: 23px; font-weight: 800; letter-spacing: -.6px; line-height: 1.2; }
.h-stats span { font-size: 12px; color: var(--muted); }

/* Hero 右侧拼图舞台 */
.h-stage {
  position: relative; height: 460px; border-radius: 26px;
  background: linear-gradient(160deg, #fff 0%, #f7f5ff 100%);
  border: 1px solid #eeecf7; box-shadow: 0 30px 80px rgba(60,48,120,.13);
  transform: rotate(-1.2deg);
}
.h-stage::before {
  content: ""; position: absolute; inset: 18px; border-radius: 18px;
  background-image: radial-gradient(rgba(122,110,190,.10) 1px, transparent 1px);
  background-size: 16px 16px; pointer-events: none;
}
.h-tile { position: absolute; border-radius: 16px; overflow: hidden; box-shadow: 0 16px 40px rgba(30,25,60,.16); }
.h-tile svg { display: block; width: 100%; height: 100%; }
.h-t1 { width: 214px; height: 268px; left: 46px; top: 52px; transform: rotate(-5deg); }
.h-t2 { width: 188px; height: 186px; right: 44px; top: 34px; transform: rotate(4deg); }
.h-t3 { width: 246px; height: 168px; right: 62px; bottom: 46px; transform: rotate(-2deg); }
.h-chip {
  position: absolute; display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 14px; border-radius: 999px; background: rgba(255,255,255,.96);
  border: 1px solid #eceaf6; box-shadow: 0 10px 26px rgba(40,30,90,.12);
  font-size: 12.5px; font-weight: 600; color: var(--ink-2); white-space: nowrap;
}
.h-chip svg { color: var(--brand); }
.h-c1 { left: 22px; bottom: 92px; }
.h-c2 { right: 10px; top: 236px; transform: rotate(3deg); }
.h-c3 { left: 128px; bottom: 26px; }
.h-stage-note {
  position: absolute; right: 22px; bottom: 14px; font-size: 11.5px; color: #a09bb8;
}

/* ---------- 通用 section ---------- */
.h-section { max-width: 1220px; margin: 0 auto; padding: 56px 28px; }
.h-section.tight { padding-top: 24px; }
.h-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 26px; }
.h-head h2 { margin: 0 0 6px; font-size: clamp(23px, 2.4vw, 30px); letter-spacing: -.8px; }
.h-head p { margin: 0; color: var(--muted); font-size: 13.5px; }
.h-head .more { font-size: 13px; font-weight: 700; color: var(--brand); white-space: nowrap; }

/* 分类快捷 */
.h-cats { display: flex; gap: 10px; flex-wrap: wrap; }
.h-cat {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line); font-size: 13px; color: var(--ink-2);
  transition: all .15s ease;
}
.h-cat b { font-weight: 600; color: var(--muted); font-size: 11.5px; }
.h-cat:hover { border-color: #ffcabb; color: var(--brand); transform: translateY(-1px); }

/* 模板网格（沿用 tpl-grid / tpl-card） */
.h-tpl-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }

/* ---------- 工具 ---------- */
.h-tools { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.h-tool {
  position: relative; overflow: hidden; border-radius: 22px; padding: 26px 26px 24px;
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 14px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.h-tool:hover { transform: translateY(-3px); box-shadow: 0 22px 50px rgba(20,22,28,.10); }
.h-tool::after {
  content: ""; position: absolute; right: -70px; top: -70px; width: 200px; height: 200px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,90,54,.10), transparent 70%);
}
.h-tool.cut::after { background: radial-gradient(circle, rgba(106,92,255,.12), transparent 70%); }
.h-tool-top { display: flex; align-items: center; gap: 12px; }
.h-tool-ico {
  width: 44px; height: 44px; border-radius: 13px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #fff0eb, #ffe3da); color: var(--brand);
}
.h-tool.cut .h-tool-ico { background: linear-gradient(135deg, #f1eeff, #e6e0ff); color: var(--violet); }
.h-tool h3 { margin: 0; font-size: 17px; }
.h-tool .h-tool-sub { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.h-tool p { margin: 0; font-size: 13.5px; color: var(--ink-2); line-height: 1.75; }
.h-tool ul { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 7px; }
.h-tool li { font-size: 11.5px; color: var(--ink-2); background: #f6f7fb; padding: 4px 10px; border-radius: 999px; }
.h-tool-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 4px; }
.h-tool-go { font-size: 13.5px; font-weight: 700; color: var(--brand); }
.h-tool.cut .h-tool-go { color: var(--violet); }
.h-tool-priv { font-size: 11px; color: #a3a9ba; display: inline-flex; align-items: center; gap: 5px; }

/* ---------- 流程 ---------- */
.h-flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; position: relative; }
.h-flow-item {
  background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 22px 20px 20px;
  position: relative; box-shadow: var(--shadow);
}
.h-flow-item::after {
  content: "→"; position: absolute; right: -12px; top: 50%; transform: translateY(-50%);
  color: #c9ccd9; font-size: 16px; font-weight: 700; z-index: 2;
}
.h-flow-item:last-child::after { display: none; }
.h-flow-num { font-size: 11px; font-weight: 800; color: var(--brand); letter-spacing: 1px; }
.h-flow-item h3 { margin: 8px 0 6px; font-size: 15.5px; }
.h-flow-item p { margin: 0; font-size: 12.5px; color: var(--muted); line-height: 1.75; }

/* ---------- 特性 ---------- */
.h-feats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.h-feat {
  background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 20px;
  display: flex; gap: 14px; align-items: flex-start;
}
.h-feat-ico {
  width: 38px; height: 38px; flex: 0 0 38px; border-radius: 11px; display: flex; align-items: center; justify-content: center;
  background: #f4f3ff; color: var(--violet);
}
.h-feat:nth-child(3n+1) .h-feat-ico { background: #fff2ed; color: var(--brand); }
.h-feat h3 { margin: 0 0 4px; font-size: 14.5px; }
.h-feat p { margin: 0; font-size: 12.5px; color: var(--muted); line-height: 1.7; }

/* ---------- 隐私条 ---------- */
.h-privacy {
  margin: 0 auto; max-width: 1220px;
  border-radius: 22px; padding: 26px 30px;
  background: linear-gradient(120deg, #fff 0%, #f5f3ff 100%);
  border: 1px solid #ece8ff; display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
}
.h-privacy .lock { width: 46px; height: 46px; border-radius: 13px; background: #fff; border: 1px solid #e9e5ff; display: flex; align-items: center; justify-content: center; color: var(--violet); }
.h-privacy h3 { margin: 0 0 4px; font-size: 16px; }
.h-privacy p { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.7; max-width: 760px; }
.h-privacy .h-actions { margin: 0 0 0 auto; }

/* ---------- FAQ ---------- */
.h-faq { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.h-faq details {
  background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 0 18px;
  transition: box-shadow .18s ease, border-color .18s ease;
}
.h-faq details[open] { border-color: #ffd7cc; box-shadow: 0 12px 30px rgba(255,90,54,.08); }
.h-faq summary {
  list-style: none; cursor: pointer; padding: 15px 24px 15px 0; font-size: 13.5px; font-weight: 700;
  position: relative; color: var(--ink);
}
.h-faq summary::-webkit-details-marker { display: none; }
.h-faq summary::after {
  content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  color: var(--brand); font-weight: 800; font-size: 16px;
}
.h-faq details[open] summary::after { content: "−"; }
.h-faq details p { margin: -2px 0 16px; font-size: 12.5px; color: var(--muted); line-height: 1.85; }

/* ---------- CTA ---------- */
.h-cta { padding: 0 28px 72px; }
.h-cta-inner {
  max-width: 1220px; margin: 0 auto; border-radius: 26px; padding: 42px 44px;
  background:
    radial-gradient(520px 240px at 88% 0%, rgba(255,255,255,.22), transparent 60%),
    linear-gradient(120deg, #ff6a3d 0%, #ff3a5f 55%, #7a5cff 130%);
  color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  box-shadow: 0 26px 60px rgba(255, 70, 70, .26);
}
.h-cta-inner h2 { margin: 0 0 8px; font-size: 27px; letter-spacing: -.8px; }
.h-cta-inner p { margin: 0; font-size: 13.5px; color: rgba(255,255,255,.86); }
.h-cta-inner .btn { background: #fff; color: var(--ink); box-shadow: 0 14px 30px rgba(0,0,0,.18); }
.h-cta-inner .btn:hover { background: #fffaf8; }

/* ---------- 页脚扩展 ---------- */
.foot-ext .foot-inner { align-items: flex-start; }
.foot-cols { display: flex; gap: 56px; flex-wrap: wrap; }
.foot-col { display: flex; flex-direction: column; gap: 8px; }
.foot-col h4 { margin: 0 0 2px; font-size: 12px; letter-spacing: 1px; color: var(--ink); text-transform: uppercase; }
.foot-col a { font-size: 12.5px; color: var(--muted); }
.foot-col a:hover { color: var(--brand); }
.foot-note { margin-top: 8px; font-size: 11.5px; color: #a3a9ba; }
.foot-admin { color: #b3b8c6 !important; font-size: 11.5px !important; }

/* ---------- 响应式 ---------- */
@media (max-width: 1080px) {
  .h-hero-inner { grid-template-columns: 1fr; gap: 34px; padding-top: 44px; }
  .h-stage { height: 400px; max-width: 560px; width: 100%; margin: 0 auto; }
  .h-tpl-grid { grid-template-columns: repeat(3, 1fr); }
  .h-feats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 820px) {
  .h-wrap, .h-hero-inner, .h-section, .h-cta { padding-left: 18px; padding-right: 18px; }
  .h-hero-inner { padding-top: 34px; padding-bottom: 40px; }
  .h-stage { height: 330px; }
  .h-t1 { width: 152px; height: 194px; left: 22px; top: 40px; }
  .h-t2 { width: 134px; height: 132px; right: 20px; top: 26px; }
  .h-t3 { width: 176px; height: 120px; right: 26px; bottom: 36px; }
  .h-c1 { left: 12px; bottom: 62px; }
  .h-c2 { right: 6px; top: 178px; }
  .h-c3 { display: none; }
  .h-tools, .h-flow, .h-faq { grid-template-columns: 1fr; }
  .h-flow-item::after { content: "↓"; right: 20px; top: auto; bottom: -18px; transform: none; }
  .h-tpl-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .h-feats { grid-template-columns: 1fr; }
  .h-privacy { border-radius: 18px; padding: 20px; }
  .h-privacy .h-actions { margin-left: 0; }
  .h-cta-inner { padding: 30px 24px; }
  .h-cta-inner h2 { font-size: 23px; }
  .foot-cols { gap: 28px; }
}
@media (max-width: 520px) {
  .h-stats li { padding: 0 16px; }
  .h-stats strong { font-size: 19px; }
  .h-head { flex-direction: column; align-items: flex-start; gap: 8px; }
}
