/* 纸墙设计首页视觉重设计：仅作用于首页，不影响编辑器 */
/* 静态 SEO 内容：无 JS 时展示给蜘蛛，正常访问时由应用接管 */
.js .seo-fallback { display: none; }
.seo-fallback { max-width: 1080px; margin: 0 auto; padding: 28px 24px 48px; color: #16161d; font: 16px/1.8 -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif; }
.seo-fallback h1 { font-size: 36px; line-height: 1.3; margin: 0 0 16px; }
.seo-fallback h2 { font-size: 24px; margin: 36px 0 12px; }
.seo-fallback h3 { font-size: 18px; margin: 24px 0 6px; }
.seo-fallback p { margin: 0 0 14px; color: #3d3d4e; }
.seo-fallback ul, .seo-fallback ol { padding-left: 24px; margin: 0 0 16px; color: #3d3d4e; }
.seo-fallback li { margin: 6px 0; }
.seo-fallback .lead { font-size: 18px; color: #5a5a6e; }
.seo-fallback code { background: #f3f0ea; padding: 2px 6px; border-radius: 4px; }

html, body { height: auto; min-height: 100%; }
#toolRecCard { display: none !important; }

/* ---------- 编辑器界面 ---------- */
body:has(.editor) #evadeFab { display: none !important; }
body:has(.editor) .topbar [data-testid="main"],
body:has(.editor) .topbar [data-testid="theme-toggle"] { display: none !important; }
body:has(.editor) label.field:has(select[data-testid="page-transition"]) { display: none !important; }
.topbar {
  min-height: 60px;
  flex-wrap: nowrap;
  padding: 8px 16px;
  background: #ffffff;
  border-bottom: 1px solid #e9e3da;
  gap: 8px 10px;
}
.topbar .brand.small { flex: none; white-space: nowrap; font-size: 15px; color: #17161d; padding-inline-end: 12px; margin-inline-end: 4px; border-inline-end: 1px solid #eee8df; }
.doc-name { flex: 0 1 180px; min-width: 110px; width: auto; background: #f7f4ef; border-radius: 10px; font-size: 13px; color: #17161d; }
.icon-btn { border-radius: 10px; transition: background .16s, color .16s; }
.icon-btn:hover { background: #f4f1eb; color: #f25c2a; }
.top-group.right .btn.primary {
  border: 0;
  background: linear-gradient(135deg, #f25c2a, #ff7a45);
  box-shadow: 0 6px 16px rgba(242, 92, 42, .26);
  padding: 10px 20px;
  letter-spacing: .02em;
}
.rail { width: 72px; padding: 10px 6px; background: #fbfaf8; border-inline-end: 1px solid #eee8df; }
.rail button { width: 60px; padding: 10px 2px; border-radius: 12px; font-size: 11px; }
.rail button[aria-current="true"] { background: #fff0e8; color: #f25c2a; box-shadow: inset 3px 0 0 #f25c2a; }
.insert-panel { width: 280px; padding: 16px; background: #ffffff; border-inline-end: 1px solid #e9e3da; }
.insert-panel h3 { color: #93909b; font-size: 11px; letter-spacing: .06em; }
.stage {
  background-color: #ece8e0;
  background-image: radial-gradient(rgba(23, 22, 29, .07) 1px, transparent 1px);
  background-size: 20px 20px;
}
.page-wrap { box-shadow: 0 4px 14px rgba(23, 22, 29, .10), 0 24px 60px rgba(23, 22, 29, .14); }
.inspector { background: #ffffff; border-inline-start: 1px solid #e9e3da; }
.tabs button { padding: 14px 12px; font-size: 13px; }
.inspector-body { padding: 8px 16px 24px; }
.panel-head h2 { font-size: 14px; }
.field input, .field textarea, .field select, .stack input { border-color: #e3ddd4; border-radius: 10px; }
.field input:focus, .field textarea:focus, .field select:focus, .stack input:focus { border-color: #f25c2a; outline: 0; box-shadow: 0 0 0 3px rgba(242, 92, 42, .10); }
.topbar .pages-bar { order: 3; flex: 0 1 auto; width: auto; min-width: 0; padding: 0; margin: 0 0 0 4px; background: transparent; border: 0; gap: 4px; }
.topbar .top-group.right { order: 4; margin-inline-start: auto; }
.topbar .pages-bar .page-list { max-width: 320px; min-width: 160px; padding: 2px 4px; gap: 6px; scroll-snap-type: x proximity; scrollbar-width: none; }
.topbar .pages-bar .page-list::-webkit-scrollbar { display: none; }
.topbar .pages-bar .page-list li { scroll-snap-align: start; }
.topbar .pages-bar .page-thumb { padding: 1px; }
.topbar .pages-bar .page-img { height: 38px; }
.topbar .pages-bar .zoom { padding: 2px 4px; }
.topbar .pages-bar .zoom-label { min-width: 42px; font-size: 12px; }
.page-img { border-radius: 6px; box-shadow: 0 2px 8px rgba(23, 22, 29, .12); }
.zoom { background: #f7f4ef; border-radius: 999px; padding: 3px 5px; }

:root {
  --pw-accent: #f25c2a;
  --pw-accent-soft: #ffe9dd;
  --pw-ink: #17161d;
  --pw-muted: #77727f;
  --pw-line: #e9e3da;
  --pw-panel: #ffffff;
  --pw-paper: #faf7f2;
}

body:has(.home) {
  background:
    radial-gradient(circle at 8% -8%, rgba(242, 92, 42, .13), transparent 36%),
    radial-gradient(circle at 92% 2%, rgba(109, 92, 240, .10), transparent 32%),
    var(--pw-paper);
}

.home-top {
  position: static;
  justify-content: flex-end;
  padding: 10px max(20px, 5vw) 0;
  background: transparent;
  border: 0;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.home-top .brand { display: none !important; }
.home-top [data-testid="home-online"], .home-top [data-testid="theme-toggle"], .home-top .lang-pick { display: none !important; }
.home-top::before { content: "本地作品"; align-self: center; margin-inline-end: 10px; color: #93909b; font-size: 12px; letter-spacing: .04em; }
.home-top .home-actions { justify-content: flex-end; }
.home-top .btn {
  border: 1px solid #f3bda8;
  background: #fff;
  color: var(--pw-accent);
  border-radius: 999px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 6px 18px rgba(242, 92, 42, .12);
  transition: transform .18s, box-shadow .18s, border-color .18s, background .18s;
}
.home-top .btn:hover {
  transform: translateY(-1px);
  background: #fff7f2;
  border-color: var(--pw-accent);
  box-shadow: 0 10px 26px rgba(242, 92, 42, .18);
}
.home-foot { display: none !important; }
body:has(.editor) .editor { height: max(960px, calc(100dvh - 72px)); min-height: 960px; }
body:has(.editor) .rail,
body:has(.editor) .insert-panel,
body:has(.editor) .inspector-body,
body:has(.editor) .stage { scrollbar-width: none; }
body:has(.editor) .rail::-webkit-scrollbar,
body:has(.editor) .insert-panel::-webkit-scrollbar,
body:has(.editor) .inspector-body::-webkit-scrollbar,
body:has(.editor) .stage::-webkit-scrollbar { display: none; }

.home { max-width: 1280px; padding-top: 18px; padding-bottom: 72px; }

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  align-items: center;
  gap: 48px;
  min-height: 420px;
  margin-top: 12px;
  padding: 64px 60px;
  border-radius: 30px;
  background:
    radial-gradient(circle at 94% 6%, rgba(242, 92, 42, .14), transparent 34%),
    linear-gradient(135deg, #fffaf6 0%, #f6f3ff 100%);
  border: 1px solid rgba(23, 22, 29, .06);
  box-shadow: 0 20px 50px rgba(60, 40, 25, .06);
  overflow: hidden;
}
.hero::before {
  content: "免费 · 离线 · 无水印";
  position: absolute;
  top: 30px;
  left: 60px;
  padding: 7px 16px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #f3bda8;
  color: var(--pw-accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  box-shadow: 0 4px 12px rgba(242, 92, 42, .08);
}
.hero::after {
  content: "随心设计\A 无需付费";
  white-space: pre;
  grid-column: 2;
  grid-row: 1 / 3;
  justify-self: center;
  align-self: center;
  box-sizing: border-box;
  width: 272px;
  height: 336px;
  padding: 208px 24px 0;
  border-radius: 24px;
  background:
    radial-gradient(circle at 18px 25px, rgba(255, 255, 255, .95) 0 4px, transparent 5px),
    radial-gradient(circle at 34px 25px, rgba(255, 255, 255, .65) 0 4px, transparent 5px),
    radial-gradient(circle at 50px 25px, rgba(255, 255, 255, .4) 0 4px, transparent 5px),
    linear-gradient(180deg, #f25c2a 0 50px, transparent 50px),
    linear-gradient(180deg, #ffffff 0%, #fff7f1 100%);
  box-shadow: 14px 14px 0 #ffe2d2, 28px 28px 0 rgba(242, 92, 42, .08), 0 30px 60px rgba(80, 48, 30, .16);
  transform: rotate(6deg);
  color: #17161d;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.35;
  text-align: center;
  letter-spacing: -.02em;
}
.hero h1 {
  position: relative;
  z-index: 2;
  grid-column: 1;
  grid-row: 1;
  margin: 0;
  font-size: clamp(42px, 5.6vw, 68px);
  line-height: 1.08;
  letter-spacing: -.055em;
  color: #17161d;
}
.hero h1 em { position: relative; color: var(--pw-accent); font-style: normal; }
.hero h1 em::after {
  content: "";
  position: absolute;
  left: 2px;
  right: 2px;
  bottom: 2px;
  height: 12px;
  border-radius: 50%;
  background: rgba(242, 92, 42, .16);
  z-index: -1;
}
.hero .lead {
  position: relative;
  z-index: 2;
  grid-column: 1;
  grid-row: 2;
  max-width: 560px;
  margin: 22px 0 0;
  font-size: 17px;
  line-height: 1.9;
  color: #5f5b68;
}
.hero .lead::after {
  content: "无需账号   ·   无水印   ·   本地运行";
  display: block;
  margin-top: 22px;
  color: #93909b;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
}

.block { margin-top: 44px; }
.block h2 { font-size: 25px; letter-spacing: -.03em; }

.preset-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; }
.preset {
  position: relative;
  min-height: 152px;
  padding: 18px 16px 16px;
  border: 1px solid rgba(23, 22, 29, .07);
  border-radius: 20px;
  background: linear-gradient(180deg, #ffffff, #fffdfb);
  box-shadow: 0 6px 20px rgba(23, 22, 29, .05);
  overflow: hidden;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.preset::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, #f25c2a, #ffb26b);
  opacity: .9;
}
.preset:hover {
  transform: translateY(-5px);
  border-color: #f3bda8;
  box-shadow: 0 18px 36px rgba(80, 48, 30, .14);
}
.preset-shape {
  width: 62%;
  height: 58px;
  margin: 8px 0 14px;
  border: 2px solid #dcd5cb;
  border-radius: 8px;
  background: linear-gradient(135deg, #ffffff, #faf6f0);
  transition: border-color .2s, background .2s;
}
.preset:hover .preset-shape { border-color: var(--pw-accent); background: #fff7f2; }
.preset b { font-size: 15px; color: var(--pw-ink); }
.preset small { font-size: 12px; color: #93909b; }

.custom-size {
  margin-top: 22px;
  padding: 16px 18px;
  border: 1px dashed var(--pw-line);
  border-radius: 18px;
  background: rgba(255, 255, 255, .7);
}
.custom-size input, .custom-size select { border-radius: 10px; border-color: var(--pw-line); }

.search {
  border-radius: 14px;
  padding: 10px 16px;
  background: var(--pw-panel);
  box-shadow: 0 4px 14px rgba(23, 22, 29, .04);
}
.chip { padding: 7px 14px; border-color: var(--pw-line); }
.chip.on { background: var(--pw-accent); border-color: var(--pw-accent); color: #fff; }

.tpl-grid.wide { gap: 22px; }
.tpl-frame { padding: 12px; border-radius: 18px; background: var(--pw-panel); box-shadow: 0 6px 18px rgba(23, 22, 29, .06); }
.tpl-img { border-radius: 12px; }
.tpl-name { font-size: 14px; }
.tpl-meta { color: #93909b; }

.design-card { border-radius: 18px; border-color: var(--pw-line); box-shadow: 0 6px 18px rgba(23, 22, 29, .05); }
.design-open { border-radius: 18px 18px 0 0; }

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

@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; min-height: auto; padding: 78px 32px 40px; gap: 0; }
  .hero::before { left: 32px; top: 28px; }
  .hero::after { display: none; }
  .hero h1 { grid-column: 1; grid-row: 1; }
  .hero .lead { grid-column: 1; grid-row: 2; }
}
@media (max-width: 600px) {
  .home-top { padding: 12px 16px; }
  .home-top .btn { padding: 9px 13px; font-size: 13px; }
  .hero { padding: 72px 22px 32px; border-radius: 22px; }
  .hero::before { left: 22px; top: 24px; }
  .hero h1 { font-size: 40px; }
  .preset-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .preset { min-height: 138px; padding: 16px 12px 12px; }
  .preset-shape { height: 46px; }
}
