/* 首页 / 灵感广场 */
.hero { padding: 30px 0 26px; }
.hero-stage {
  width: 100%;
  min-height: 160px;
  margin-bottom: 16px;
  background: linear-gradient(135deg, #EFEDE7 0%, #E8E5DD 100%);
  border-radius: 16px;
  padding: 16px;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.hero-stage canvas { max-width: 100%; max-height: 220px; }
.hero-stage-loading { color: var(--muted); }
.hero h1 { font-size: 34px; letter-spacing: -.02em; max-width: 640px; }
.hero p.lead { color: var(--ink-2); font-size: 15.5px; max-width: 620px; margin-top: 12px; }
.hero .btn-row { margin-top: 18px; }
.hero-facts { display: flex; gap: 26px; margin-top: 26px; flex-wrap: wrap; }
.hero-facts div { font-size: 13px; color: var(--muted); }
.hero-facts b { display: block; font-size: 17px; color: var(--ink); font-weight: 650; }

.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 34px 0 14px; }

.filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; padding: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }

/* 筛选区：每组条件独占一行，避免多组横滑标签挤在同一行互相截断 */
.filterbar { padding: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.filter-row { display: flex; align-items: center; gap: 10px; min-width: 0; }
.filter-row + .filter-row { margin-top: 10px; }
.filter-label { flex: 0 0 auto; font-size: 12px; color: var(--muted); letter-spacing: .04em; }
.filter-row .chip-line { display: flex; gap: 6px; flex: 1 1 auto; min-width: 0; overflow-x: auto; scrollbar-width: none; padding: 2px 0; }
.filter-row .chip-line::-webkit-scrollbar { display: none; }
.filter-toggle { flex: 0 0 auto; }
.filter-summary { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.filter-panel { margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line); }
.filter-check { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-2); margin-top: 10px; }
.chip {
  padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface);
  font-size: 13px; color: var(--ink-2);
}
.chip.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip:hover { border-color: #B9B6AC; }

.tpl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(268px, 1fr)); gap: 16px; }
.tpl-card { overflow: hidden; display: flex; flex-direction: column; transition: .18s; }
.tpl-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.tpl-preview { position: relative; background: #EDEBE5; aspect-ratio: 4 / 3; display: grid; place-items: center; overflow: hidden; }
.tpl-preview canvas { max-width: 100%; max-height: 100%; }
.tpl-preview .fav {
  position: absolute; top: 9px; right: 9px; width: 30px; height: 30px; border-radius: 50%;
  background: rgba(255, 255, 255, .9); border: 1px solid var(--line); display: grid; place-items: center;
}
.tpl-preview .fav.on { background: var(--ink); color: #fff; }
.tpl-body { padding: 12px 14px 14px; }
.tpl-body .name { font-weight: 650; display: flex; align-items: center; gap: 8px; }
.tpl-body .desc { color: var(--muted); font-size: 12.8px; margin-top: 4px; min-height: 34px; }
.swatch { display: flex; gap: 4px; margin-top: 9px; }
.swatch i { width: 15px; height: 15px; border-radius: 4px; display: block; border: 1px solid rgba(0, 0, 0, .06); }

/* 模板详情 */
.detail { display: grid; grid-template-columns: 1.05fr .95fr; gap: 26px; padding: 24px 0 40px; }
.stage { background: #EFEDE7; border-radius: 16px; padding: 26px; display: grid; place-items: center; min-height: 380px; position: relative; }
.stage canvas { max-width: 100%; max-height: 62vh; box-shadow: 0 10px 30px rgba(0, 0, 0, .12); }
.stage-switch { display: flex; gap: 6px; justify-content: center; margin-top: 14px; flex-wrap: wrap; }
.mock-row { display: flex; gap: 12px; margin-top: 16px; flex-wrap: wrap; justify-content: center; }
.mock-box { text-align: center; }
.mock-box .label { font-size: 11.5px; color: var(--muted); margin-top: 6px; }

/* 实物示意（CSS 合成，仅效果示意） */
.mock-hand, .mock-sleeve, .mock-laptop, .mock-wall, .mock-phone {
  position: relative; background-size: cover; background-position: center;
  border-radius: 6px; box-shadow: 0 8px 20px rgba(0, 0, 0, .16);
}
.mock-hand { width: 120px; height: 84px; transform: rotate(-6deg); background: #ddd; }
.mock-hand::after { content: ""; position: absolute; inset: auto -14px -26px -14px; height: 26px; background: #C9B4A4; border-radius: 40% 40% 20% 20%; z-index: -1; }
.mock-sleeve { width: 96px; height: 148px; padding: 6px; background: #DCD9D2; border: 1px solid #C9C5BC; border-radius: 8px; }
.mock-sleeve .inner { width: 100%; height: 100%; background-size: cover; background-position: center; border-radius: 3px; }
.mock-laptop { width: 170px; height: 112px; background: #E7E5E0; border-radius: 8px; padding: 8px; }
.mock-laptop .sticker-area { position: absolute; right: 12px; bottom: 14px; width: 56px; height: 56px; background-size: contain; background-repeat: no-repeat; transform: rotate(-8deg); }
.mock-wall { width: 168px; height: 236px; }
.mock-phone { width: 118px; height: 240px; border-radius: 20px; border: 5px solid #22252A; background-size: cover; }

/* 创作向导 */
.wizard { padding: 26px 0 60px; }
.steps { display: flex; gap: 6px; margin-bottom: 18px; flex-wrap: wrap; }
.step { display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--muted); padding: 5px 11px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); }
.step.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.step .n { width: 18px; height: 18px; border-radius: 50%; background: #DDD9D1; color: #55534D; display: grid; place-items: center; font-size: 11px; }
.step.on .n { background: rgba(255, 255, 255, .28); color: #fff; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px; margin-bottom: 14px; }

.asset-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 10px; }
.asset-card { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--surface-2); }
.asset-card .thumb { height: 84px; background: #EDEBE5; display: grid; place-items: center; overflow: hidden; }
.asset-card img { width: 100%; height: 100%; object-fit: cover; }
.asset-card .meta { padding: 6px 8px; font-size: 11.5px; color: var(--muted); display: flex; justify-content: space-between; align-items: center; gap: 6px; }
.asset-card.on { outline: 2px solid var(--ink); outline-offset: -2px; }
.dropzone { border: 1.5px dashed var(--line-2); border-radius: 14px; padding: 26px; text-align: center; color: var(--muted); background: var(--surface-2); }
.dropzone.on { border-color: var(--accent); background: var(--accent-soft); }

.product-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.product-pick label { display: flex; gap: 10px; align-items: flex-start; padding: 11px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; background: var(--surface); }
.product-pick label.on { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.product-pick b { font-size: 13.5px; }
.product-pick .spec { font-size: 11.5px; color: var(--muted); font-family: var(--mono); }

/* 我的作品 */
.works-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; margin-top: 16px; }
.work-card { padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.work-thumb { display: flex; gap: 6px; align-items: flex-end; height: 132px; background: #EFEDE7; border-radius: 10px; padding: 10px; overflow: hidden; }
.work-thumb canvas { height: 100%; box-shadow: var(--shadow-sm); }

/* 订单 */
.price-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.price-card { border: 1px solid var(--line); border-radius: 14px; padding: 16px; background: var(--surface); }
.price-card.on { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.price-card .amt { font-size: 26px; font-weight: 700; }
.price-card .amt small { font-size: 14px; font-weight: 500; color: var(--muted); }

/* 批量 */
.batch-preview { max-height: 320px; overflow: auto; border: 1px solid var(--line); border-radius: 10px; }
.progress { height: 7px; background: #E5E2DB; border-radius: 99px; overflow: hidden; }
.progress i { display: block; height: 100%; background: var(--ink); width: 0%; transition: .25s; }

/* 法律 / 管理 */
.doc { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 24px; }
.doc h3 { margin-top: 20px; }
.doc ul { padding-left: 20px; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; }
.stat { border: 1px solid var(--line); border-radius: 12px; padding: 12px; background: var(--surface); }
.stat b { display: block; font-size: 21px; }
.funnel-row { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.funnel-bar { height: 22px; background: var(--ink); border-radius: 4px; min-width: 2px; }
.funnel-row .lbl { width: 92px; font-size: 12.5px; color: var(--ink-2); }
.funnel-row .cnt { font-family: var(--mono); font-size: 12.5px; }

@media (max-width: 860px) {
  .detail { grid-template-columns: 1fr; }
  .hero h1 { font-size: 27px; }
}
