/* 详情page / 总览page / Pricingpage补充样式 (基于 home.css 的设计体系) */

/* ===== Above-the-fold Workshop: Section Page / Tools Page / Style Page share the same above-the-fold layout (refer to the Sparkpix theme page) ===== */
.studio-hero { padding: 30px 0 14px; }
.studio-head { max-width: 840px; margin: 0 auto 26px; text-align: center; }
.studio-tag {
  display: inline-block; font-size: 12.5px; font-weight: 600; color: var(--brand);
  background: rgba(200,164,106,.08); border: 1px solid rgba(200,164,106,.25);
  border-radius: 999px; padding: 4px 15px; margin-bottom: 14px;
}
.studio-title { font-size: clamp(25px, 3.4vw, 36px); font-weight: 800; letter-spacing: -1px; line-height: 1.28; }
.studio-sub { color: var(--sub); font-size: 15.5px; margin-top: 12px; line-height: 1.75; }

/* 上排:Upload框 + Animate it (等高等大),下排:描述and参数整条通栏 */
.studio-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; align-items: stretch; }
.studio-pane {
  background: var(--panel); border: 1px solid var(--line); border-radius: 20px;
  padding: 20px; display: flex; flex-direction: column; gap: 10px;
}
.studio-pane-ctl { grid-column: 1 / -1; }
.studio-pane-up .studio-drop { flex: 1; }
.studio-ctl-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.studio-label { font-size: 13.5px; font-weight: 600; color: var(--brand); }
.studio-label em { color: #ff6b6b; font-style: normal; }
.studio-label-2 { margin-top: 4px; }
.studio-label-dark { color: var(--ink); }
/* 场景快捷词 (Describe the changes 场景条) */
.studio-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.studio-chips .chip {
  font-family: inherit; font-size: 12.5px; padding: 6px 13px; border-radius: 999px;
  background: var(--bg); border: 1px solid var(--line); color: var(--sub);
  transition: .15s; white-space: nowrap;
}
.studio-chips .chip:hover { color: var(--ink); border-color: rgba(200,164,106,.45); }
.studio-chips .chip.on { background: rgba(200,164,106,.14); border-color: rgba(200,164,106,.55); color: var(--ink); font-weight: 600; }
.studio-prompt-meta { display: flex; justify-content: space-between; gap: 10px; font-size: 12px; color: var(--sub); margin-top: -4px; }
.studio-note { font-size: 12.5px; color: var(--sub); margin-top: -4px; }

.studio-drop {
  position: relative; min-height: 320px; border: 2px dashed rgba(255,255,255,.18);
  border-radius: 14px; background: var(--bg); cursor: pointer; overflow: hidden;
  display: flex; align-items: center; justify-content: center; transition: .15s;
}
.studio-drop:hover, .studio-drop.drag { border-color: rgba(200,164,106,.55); background: rgba(200,164,106,.05); }
.studio-drop input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.drop-body { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; padding: 0 16px; }
.drop-ic { color: var(--sub); margin-bottom: 2px; }
.drop-ic svg { width: 32px; height: 32px; display: block; }
.drop-body b { font-size: 14.5px; font-weight: 600; color: var(--ink); }
.drop-body span { font-size: 12.5px; color: var(--sub); }
.studio-drop.has-file { border-style: solid; border-color: var(--line); }
.drop-preview { width: 100%; height: 100%; object-fit: contain; background: var(--bg); }
.drop-preview[hidden] { display: none; }

.studio-prompt {
  width: 100%; height: 74px; resize: none; outline: none; font-family: inherit;
  font-size: 14px; line-height: 1.6; color: var(--ink); padding: 12px 14px;
  background: var(--bg); border: 1px solid var(--line); border-radius: 12px;
}
.studio-prompt:focus { border-color: rgba(200,164,106,.5); }
.studio-prompt::placeholder { color: #6d76a0; }

.studio-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.studio-balance {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px;
  font-size: 12.5px; color: var(--sub);
}
.studio-balance b { color: var(--ink); font-size: 17px; font-weight: 800; margin: 0 3px; }
.studio-balance > div:last-child b { color: var(--brand); }
.studio-go {
  width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 15px; border: none; border-radius: 13px; background: var(--grad); color: #fff;
  font-size: 15.5px; font-weight: 800; font-family: inherit; transition: .15s;
}
.studio-ctl-row .studio-opts { flex: 1 1 auto; }
.studio-ctl-row .studio-balance { margin-left: auto; flex: 0 0 auto; }
.studio-ctl-row .studio-go { width: auto; min-width: 210px; padding: 13px 34px; flex: 0 0 auto; }
.studio-ctl-row .studio-go:disabled { cursor: wait; }
.studio-go:hover { filter: brightness(1.08); transform: translateY(-1px); }
.studio-go:disabled { opacity: .7; transform: none; cursor: wait; }
.studio-tip { font-size: 12.5px; color: var(--sub); text-align: center; }

.studio-pane-out { padding: 18px; }
.studio-out-head { display: flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 700; margin-bottom: 12px; }
.out-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--grad); flex-shrink: 0; }
.studio-result {
  position: relative; flex: 1; min-height: 320px; min-width: 0; border-radius: 14px; overflow: hidden;
  background: var(--bg); border: 1px solid var(--line); padding: 14px 14px 44px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
}
.studio-result > img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 10px; }
.studio-result-empty {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  text-align: center; padding: 26px 22px; max-width: 460px;
  font-size: 14.5px; color: var(--sub); line-height: 1.75;
}
/* 空预览态没有底部说明条,Cancel为它预留的高度,让提示语真正居中 */
.studio-result:has(.studio-result-empty) { padding-bottom: 14px; }
.studio-result-empty b {
  font-size: 19px; font-weight: 700; color: var(--ink); letter-spacing: -.2px; line-height: 1.4;
}
.studio-result-empty span { font-size: 14.5px; line-height: 1.75; color: var(--sub); }
.studio-caption {
  position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%);
  background: rgba(8,10,18,.72); color: rgba(255,255,255,.82); font-size: 12.5px;
  padding: 5px 14px; border-radius: 999px; white-space: nowrap; max-width: 92%;
  overflow: hidden; text-overflow: ellipsis;
}
.studio-result-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; font-size: 12.5px; color: var(--sub); }
.studio-result-bar .btn-sm { padding: 7px 16px; }
.studio-loading { display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--sub); font-size: 13.5px; }
.spin { width: 34px; height: 34px; border: 3px solid var(--line); border-top-color: var(--brand); border-radius: 50%; animation: spin 1s linear infinite; margin: 0 auto 14px; }
.spin-sm { width: 15px; height: 15px; border-width: 2px; margin: 0; border-color: rgba(255,255,255,.35); border-top-color: #fff; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 900px) {
  .studio-hero { padding: 22px 0 8px; }
  .studio-grid { grid-template-columns: 1fr; gap: 14px; }
  .studio-pane { padding: 16px; border-radius: 18px; }
  /* mobile:Upload → 描述参数 → Animate it */
  .studio-pane-up { order: 1; }
  .studio-pane-ctl { order: 2; }
  .studio-pane-out { order: 3; }
  .studio-pane-up, .studio-pane-out { min-height: 0; }
  .studio-drop { min-height: 240px; }
  .studio-result { min-height: 240px; }
  .studio-result > img { max-height: 100%; }
  .studio-ctl-row { flex-direction: column; align-items: stretch; }
  .studio-ctl-row .studio-balance { margin-left: 0; }
  .studio-ctl-row .studio-go { width: 100%; min-width: 0; }
  .studio-title { letter-spacing: -.6px; }
  .studio-sub { font-size: 14.5px; }
}

/* 详情page Hero (Toolspage/风格page直接挂在 body 下,需要自己居中限宽) */
.detail-hero {
  width: calc(100% - 48px); max-width: 1132px; margin: 28px auto 0;
  border-radius: 20px; color: #fff; padding: 56px 48px;
}
.detail-hero h1 { font-size: 34px; letter-spacing: -.5px; }
.detail-hero p { margin-top: 10px; opacity: .92; max-width: 620px; }

.kind-tag { display:inline-block; padding:5px 14px; border-radius:999px; background:rgba(255,255,255,.16); color:#fff; font-size:13px; font-weight:600; margin-bottom:16px; }

/* 前后对比 */
.ba-grid { display:grid; grid-template-columns:1fr auto 1fr; gap:18px; align-items:stretch; max-width:920px; margin:0 auto; }
.ba-card { background:var(--card); border:1px solid var(--line); border-radius:var(--radius); padding:14px; text-align:center; }
.ba-card p { font-size:13px; color:var(--sub); margin-top:10px; }
.ba-ph { height:220px; border-radius:12px; display:flex; flex-direction:column; align-items:center; justify-content:center; font-size:52px; position:relative; overflow:hidden; }
.ba-ph span { position:absolute; bottom:10px; right:12px; font-size:12px; padding:3px 10px; border-radius:999px; background:rgba(0,0,0,.35); color:#fff; }
.ba-ph.before { background:#0f1322; }
.ba-ph.after { color:#fff; }
.ba-arrow { display:flex; align-items:center; font-size:30px; color:var(--sub); }

/* 三步流程 */
.steps-grid { display:grid; grid-template-columns:repeat(auto-fit, minmax(240px, 1fr)); gap:16px; max-width:980px; margin:0 auto; }
.step-card { background:var(--card); border:1px solid var(--line); border-radius:var(--radius); padding:26px 22px; position:relative; }
.step-card .step-n { width:40px; height:40px; border-radius:50%; background:linear-gradient(135deg,#C8A46A,#C8A46A); color:#fff; font-weight:900; font-size:18px; display:flex; align-items:center; justify-content:center; margin-bottom:14px; }
.step-card h3 { font-size:17px; margin-bottom:8px; }
.step-card p { font-size:13.5px; color:var(--sub); line-height:1.7; }

/* 介绍块 */
.t-intro { max-width:760px; margin:0 auto; color:var(--sub); font-size:15px; line-height:1.9; }
.t-intro h3 { color:var(--ink); margin:18px 0 8px; }
.t-intro p { margin-bottom:10px; }
.t-intro ul { padding-left:22px; margin-bottom:10px; }

/* 优势 */
.adv-grid { display:grid; grid-template-columns:repeat(auto-fit, minmax(280px, 1fr)); gap:16px; max-width:980px; margin:0 auto; }
.adv-card { background:var(--card); border:1px solid var(--line); border-radius:var(--radius); padding:20px; }
.adv-card .n { display:inline-flex; width:30px; height:30px; border-radius:50%; background:linear-gradient(135deg,#C8A46A,#C8A46A); color:#fff; font-weight:800; align-items:center; justify-content:center; margin-bottom:10px; font-size:14px; }
.adv-card h4 { font-size:15px; margin-bottom:5px; }
.adv-card p { font-size:13px; color:var(--sub); line-height:1.6; }

/* FAQ */
.t-faq { max-width:760px; margin:0 auto; display:flex; flex-direction:column; gap:10px; }
.t-faq details { background:var(--card); border:1px solid var(--line); border-radius:12px; padding:0 18px; }
.t-faq summary { cursor:pointer; font-weight:600; padding:15px 0; list-style:none; }
.t-faq summary::before { content:"Q · "; color:var(--brand); font-weight:800; }
.t-faq p { color:var(--sub); padding-bottom:15px; font-size:14px; line-height:1.7; }

/* CTA 横幅 */
.cta-band { max-width:980px; margin:20px auto 0; padding:44px 30px; text-align:center; border-radius:20px; background:linear-gradient(135deg, rgba(200,164,106,.1), rgba(200,164,106,.08)); border:1px solid rgba(200,164,106,.25); }
.cta-band h2 { font-size:24px; margin-bottom:8px; }
.cta-band p { color:var(--sub); margin-bottom:20px; }

/* 总览page */
.page-hero { padding:64px 0 30px; text-align:center; }
.page-hero h1 { font-size:36px; margin-bottom:12px; }
.page-hero h1 em { font-style:normal; background:linear-gradient(90deg,#C8A46A,#C8A46A,#C8A46A); -webkit-background-clip:text; background-clip:text; color:transparent; }
.page-hero p { color:var(--sub); max-width:560px; margin:0 auto; }
.group-head { margin:34px 0 16px; }
.group-head h2 { font-size:22px; }
.group-head p { color:var(--sub); font-size:14px; margin-top:4px; }

/* Pricingpage */
.price-grid { display:grid; grid-template-columns:repeat(auto-fit, minmax(260px, 1fr)); gap:20px; max-width:960px; margin:0 auto; align-items:stretch; }
.price-card { background:var(--card); border:1px solid var(--line); border-radius:20px; padding:30px 26px; display:flex; flex-direction:column; position:relative; }
.price-card.hot { border-color:rgba(200,164,106,.55); box-shadow:0 0 40px rgba(200,164,106,.12); }
.price-card .badge { position:absolute; top:-13px; left:50%; transform:translateX(-50%); background:linear-gradient(90deg,#C8A46A,#C8A46A); color:#fff; font-size:12px; font-weight:800; padding:5px 14px; border-radius:999px; white-space:nowrap; }
.price-card h3 { font-size:18px; margin-bottom:6px; }
.price-card .amount { font-size:40px; font-weight:900; margin:10px 0 2px; }
.price-card .amount small { font-size:14px; color:var(--sub); font-weight:400; }
.price-card .credits { color:var(--sub); font-size:13px; margin-bottom:18px; }
.price-card ul { list-style:none; display:flex; flex-direction:column; gap:10px; margin-bottom:24px; flex:1; }
.price-card li { font-size:14px; color:var(--ink2, #d8d8e2); padding-left:24px; position:relative; }
.price-card li::before { content:"✓"; position:absolute; left:0; color:#C8A46A; font-weight:800; }

@media (max-width:720px) {
  .detail-hero { width: calc(100% - 28px); padding: 34px 22px; margin-top: 16px; }
  .detail-hero h1 { font-size: 26px; }
  .ba-grid { grid-template-columns:1fr; }
  .ba-arrow { justify-content:center; }
}

/* ===== Style page sections (benchmarked against sparkpix /styles/*: What / Why / Examples / Comparison / About / Who It’s For / More Styles) ===== */
.studio-badges { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 16px; }
.studio-badges span {
  font-size: 12.5px; color: var(--sub); background: var(--panel);
  border: 1px solid var(--line); border-radius: 999px; padding: 5px 14px;
}

.sx-sec { padding: 46px 20px 0; }
.sx-sec-last { padding-bottom: 64px; }
.sx-wrap { max-width: 800px; margin: 0 auto; }
.sx-h2 { font-size: clamp(22px, 2.6vw, 28px); font-weight: 800; letter-spacing: -.5px; margin-bottom: 16px; }
.sx-lead { color: var(--sub); font-size: 15.5px; line-height: 1.9; }
.sx-p { color: var(--sub); font-size: 15px; line-height: 1.95; margin-top: 14px; }
.sx-h3 { font-size: 17px; font-weight: 700; margin: 26px 0 0; }
.sx-note { border-left: 3px solid rgba(200,164,106,.45); padding: 2px 0 2px 16px; font-size: 14.5px; margin-top: 20px; }
.sx-bullets { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 10px; }
.sx-bullets li { position: relative; padding-left: 26px; font-size: 14.5px; color: var(--ink); line-height: 1.75; }
.sx-bullets li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--brand); font-weight: 800; }

/* 三步流程:补充说明and步骤间的小贴士 */
.step-card .step-more {
  margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line);
  font-size: 12.8px; color: var(--sub); opacity: .92; line-height: 1.7;
}

.sx-ex-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; max-width: 980px; margin: 0 auto; }
.sx-ex { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.sx-ex h4 { font-size: 15.5px; margin-bottom: 10px; }
.sx-ex code {
  display: block; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px;
  line-height: 1.6; color: var(--brand); background: var(--bg); border: 1px solid var(--line);
  border-radius: 8px; padding: 8px 10px; margin-bottom: 10px; word-break: break-word;
}
.sx-ex p { font-size: 13px; color: var(--sub); line-height: 1.7; }

.sx-table-wrap { max-width: 880px; margin: 0 auto; overflow-x: auto; }
.sx-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.sx-table th, .sx-table td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.sx-table thead th { font-size: 13px; color: var(--sub); font-weight: 600; white-space: nowrap; }
.sx-table tbody th { font-weight: 600; color: var(--ink); width: 22%; }
.sx-table td { color: var(--sub); }
.sx-table .ours { color: var(--ink); background: rgba(200,164,106,.06); }
.sx-table thead .ours { color: var(--brand); font-weight: 700; }

.sx-who-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; max-width: 980px; margin: 0 auto; }
.sx-who { background: var(--card); border: 1px solid var(--line); border-left: 3px solid rgba(200,164,106,.55); border-radius: 14px; padding: 18px 20px; }
.sx-who h4 { font-size: 15px; margin-bottom: 6px; }
.sx-who p { font-size: 13px; color: var(--sub); line-height: 1.65; }
a.sx-who-link { display: block; text-decoration: none; color: inherit; transition: .15s; }
a.sx-who-link:hover { border-color: rgba(200,164,106,.45); box-shadow: 0 10px 26px rgba(0,0,0,.25); transform: translateY(-2px); }

/* Why choose (为today选我们):图标卡片网格,双语titleand说明 */
.sx-why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; max-width: 1080px; margin: 26px auto 0; }
.sx-why { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 22px; }
.sx-why-ico {
  width: 42px; height: 42px; border-radius: 11px; margin-bottom: 14px;
  display: flex; align-items: center; justify-content: center; font-size: 20px;
  background: rgba(233,222,90,.14); border: 1px solid rgba(233,222,90,.25);
}
.sx-why h4 { font-size: 15.5px; font-weight: 800; line-height: 1.55; margin-bottom: 10px; }
.sx-why p { font-size: 13px; color: var(--sub); line-height: 1.7; }
.sx-why p + p { margin-top: 8px; }

/* How to (三步流程):渐变数字徽章 + 卡片间箭头 */
.sx-steps-grid { display: grid; grid-template-columns: 1fr 30px 1fr 30px 1fr; align-items: stretch; max-width: 1080px; margin: 26px auto 0; }
.sx-step { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 28px 22px; text-align: center; }
.sx-step-num {
  width: 44px; height: 44px; border-radius: 12px; margin: 0 auto 16px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 20px; color: #141416;
  background: linear-gradient(135deg, #C8A46A, #E0C48F);
}
.sx-step h4 { font-size: 15.5px; font-weight: 800; margin-bottom: 10px; }
.sx-step p { font-size: 13px; color: var(--sub); line-height: 1.7; }
.sx-step p + p { margin-top: 8px; }
.sx-step-arrow { display: flex; align-items: center; justify-content: center; color: var(--sub); font-size: 24px; font-weight: 700; }

/* 相关推荐卡 (detail page此前没有这套样式,卡片是裸的) */
.theme-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; max-width: 980px; margin: 0 auto; }
.theme-card { display: block; border-radius: var(--radius); overflow: hidden; background: var(--card); border: 1px solid var(--line); transition: .15s; }
.theme-card:hover { border-color: rgba(200,164,106,.4); box-shadow: 0 12px 30px rgba(0,0,0,.28); transform: translateY(-3px); }
.theme-card .cover { height: 110px; display: flex; align-items: center; justify-content: center; font-size: 44px; color: #fff; }
.theme-card .info { padding: 16px 18px 18px; }
.theme-card h3 { font-size: 16px; }
.theme-card .info p { font-size: 13px; color: var(--sub); margin-top: 6px; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

@media (max-width: 900px) {
  .sx-sec { padding-top: 34px; }
  .sx-table th, .sx-table td { padding: 11px 12px; font-size: 13px; }
  .sx-table tbody th { width: 30%; }
  .sx-lead, .sx-p { font-size: 14.5px; }
  .sx-why-grid { grid-template-columns: repeat(2, 1fr); }
  .sx-steps-grid { grid-template-columns: 1fr; gap: 12px; }
  .sx-step-arrow { transform: rotate(90deg); height: 22px; }
}
@media (max-width: 600px) {
  .sx-why-grid { grid-template-columns: 1fr; }
}
