Prompt as Code | GPT Image 2 / 2.5 提示词与案例库,530+ 个案例、20+ 套工业级模板与可复用 Skills,新增 2.5 同提示词对比专区,附完整提示词与生成记录,持续更新。
JavaScript agentsai-image-generationchatgptdsh-plugingpt-image-2image-promptsprompt-as-codeprompt-engineeringskillsworkflow-automation
:root {
font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
color: #eef5ff;
background: #060914;
font-synthesis: none;
text-rendering: optimizeLegibility;
-webkit-font-smoothing: antialiased;
--image25-muted: #b5c4db;
--image25-line: #252e40;
--image25-cyan: #50e7ff;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; }
html { scroll-behavior: smooth; }
button, textarea, select { font: inherit; }
button, a, select, input { -webkit-tap-highlight-color: transparent; }
button, select { cursor: pointer; }
button, a, textarea, select, input { outline-offset: 5px; }
:focus-visible { outline: 2px solid var(--image25-cyan); }
a { color: inherit; text-decoration: none; }
button { color: inherit; }
button:disabled { cursor: default; }
.image25-page { overflow-x: clip; }
.image25-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.image25-skip { position: fixed; z-index: 30; top: 12px; left: 12px; padding: 12px 18px; color: #060914; background: #50e7ff; clip-path: inset(50%); }
.image25-skip:focus { clip-path: none; }
.image25-header { width: min(1220px, calc(100% - 80px)); min-height: 74px; margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.image25-brand { display: inline-flex; gap: 10px; align-items: center; border: 1px solid var(--image25-line); border-radius: 8px; padding: 11px 14px; font-size: 17px; font-weight: 750; white-space: nowrap; }
.image25-brand svg { color: var(--image25-cyan); }
.image25-header nav { margin-left: auto; display: flex; gap: 3px; align-items: center; border: 1px solid var(--image25-line); padding: 4px 13px; border-radius: 8px; }
.image25-header nav a { position: relative; padding: 9px 13px; white-space: nowrap; font-size: 15px; font-weight: 650; color: var(--image25-muted); }
.image25-header nav a:hover { color: white; }
.image25-header nav a[aria-current="page"] { color: var(--image25-cyan); }
.image25-header nav a[aria-current="page"]::after { content: ''; position: absolute; bottom: -4px; right: 12px; left: 12px; height: 2px; background: var(--image25-cyan); }
.image25-header-actions { display: flex; gap: 12px; align-items: center; }
.image25-language { position: relative; display: flex; align-items: center; border: 1px solid var(--image25-line); border-radius: 8px; }
.image25-language select { appearance: none; border: 0; border-radius: 8px; padding: 12px 30px 12px 14px; background: #0a1020; color: #eef5ff; font-weight: 600; }
.image25-language svg { position: absolute; right: 9px; pointer-events: none; }
.image25-button { border: 1px solid #86f7d0; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; gap: 12px; padding: 16px 28px; color: #04151b; background: linear-gradient(105deg, #38e0f2, #c3ff75); font-weight: 750; font-size: 17px; transition: filter .16s, transform .16s; }
.image25-button:hover { filter: brightness(1.08); transform: translateY(-1px); }
.image25-back { padding: 11px 17px; font-size: 15px; white-space: nowrap; }
.image25-hero { position: relative; width: min(1220px, calc(100% - 80px)); margin: 0 auto; min-height: 380px; padding: 36px 0 15px; }
.image25-hero-copy { position: relative; z-index: 1; max-width: 920px; }
.image25-hero h1 { font-size: clamp(64px, 6.55vw, 91px); letter-spacing: -3.5px; line-height: 1.1; margin: 0; font-weight: 760; }
.image25-hero h2 { margin: 8px 0 18px; font-size: clamp(33px, 3.6vw, 50px); line-height: 1.3; letter-spacing: -.9px; font-weight: 730; }
.image25-intro { max-width: 830px; margin-top: 10px; }
.image25-intro p { margin: 3px 0; color: #d2ddec; font-size: 17px; line-height: 1.7; }
.image25-hero-actions { display: flex; align-items: center; gap: 33px; margin-top: 21px; }
.image25-doc-link { display: inline-flex; align-items: center; gap: 8px; color: #a2ecf4; text-decoration: underline; text-underline-offset: 6px; font-size: 16px; }
.image25-doc-link:hover { color: white; }
.image25-hero-art { position: absolute; top: 26px; right: -24px; width: 365px; height: 330px; pointer-events: none; }
.image25-hero-art > img { position: absolute; top: -30px; left: -190px; width: 125%; height: 125%; object-fit: cover; mask-image: radial-gradient(ellipse 70% 76% at 62% 50%, #000 32%, transparent 78%); }
.image25-hero-art > div { position: absolute; top: 57px; left: 63px; right: 0; color: #b0cfdf; text-align: center; }
.image25-hero-art p { font-size: 31px; letter-spacing: 3px; font-weight: 300; font-style: italic; margin: 12px 0 55px; line-height: 1.55; }
.image25-hero-art span { font-size: 17px; line-height: 1.65; color: #9aafc6; letter-spacing: 2px; }
.image25-workspace { display: grid; grid-template-columns: minmax(0, 1fr) 360px; align-items: stretch; gap: 9px; width: min(1390px, calc(100% - 80px)); margin: 0 auto; scroll-margin-top: 20px; }
.image25-comparison-panel, .image25-prompt-panel { min-width: 0; border: 1px solid var(--image25-line); border-radius: 9px; background: #090f1be6; }
.image25-comparison-panel { padding: 13px 17px 10px; }
.image25-notice { display: flex; gap: 12px; align-items: center; justify-content: space-between; min-height: 32px; margin-bottom: 1px; color: #c9d5e7; font-size: 13px; }
.image25-notice > span { display: inline-flex; align-items: center; gap: 7px; }
.image25-icon-button { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; width: 32px; height: 32px; background: transparent; border: 0; border-radius: 6px; color: var(--image25-muted); }
.image25-icon-button:hover { background: #202b3e; color: white; }
.image25-canvas { position: relative; aspect-ratio: 12 / 7; isolation: isolate; overflow: hidden; background: #050910; border: 1px solid #2e3641; border-radius: 7px; }
.image25-picture { margin: 0; min-width: 0; position: relative; background: #050910; overflow: hidden; }
.image25-picture img { display: block; width: 100%; height: 100%; object-fit: contain; user-select: none; }
.image25-canvas-slider .image25-picture { position: absolute; inset: 0; }
.image25-canvas-slider .image25-picture-after { clip-path: inset(0 0 0 var(--split)); }
.image25-model-label { position: absolute; top: 14px; left: 14px; border: 1px solid #a8bdd524; padding: 9px 14px; border-radius: 6px; background: #101722c9; color: #f1f5fb; backdrop-filter: blur(8px); font-size: 14px; line-height: 1.25; font-weight: 600; }
.image25-picture-after .image25-model-label { right: 14px; left: auto; }
.image25-demo-label { position: absolute; bottom: 12px; left: 13px; background: #0b101dcc; border: 1px solid #bcc5d12e; padding: 6px 12px; border-radius: 6px; font-size: 12px; color: #e1e7f0; }
.image25-detail-link { z-index: 4; display: inline-flex; align-items: center; gap: 6px; color: #a2ecf4; min-height: 36px; }
.image25-detail-link:hover { color: white; background: #123248; border-color: #50e7ff; }
.image25-picture-after .image25-demo-label { left: auto; right: 13px; }
.image25-divider { position: absolute; inset: 0 auto 0 var(--split); width: 2px; transform: translateX(-1px); background: #f5f8ffde; pointer-events: none; z-index: 2; }
.image25-divider > span { position: absolute; left: 50%; top: 47%; transform: translate(-50%, -50%); width: 40px; height: 40px; border-radius: 50%; background: #f5f8ff; box-shadow: 0 2px 14px #0003; color: #111a28; display: grid; place-items: center; }
.image25-range { appearance: none; position: absolute; z-index: 3; inset: 0; width: 100%; height: 100%; margin: 0; cursor: col-resize; opacity: 0; touch-action: pan-y; }
.image25-canvas:has(.image25-range:focus-visible) { outline: 2px solid var(--image25-cyan); outline-offset: 4px; }
.image25-canvas-side { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.image25-canvas-side .image25-picture { height: 100%; }
.image25-canvas-side .image25-model-label { left: 10px; right: auto; padding: 8px 10px; font-size: 12px; }
.image25-comparison-controls { display: flex; align-items: center; justify-content: flex-end; gap: 45px; min-height: 58px; padding: 8px 0 0; }
.image25-view-switch { display: flex; border: 1px solid #33425b; border-radius: 30px; padding: 0; flex-shrink: 0; }
.image25-view-switch button { display: flex; align-items: center; gap: 8px; border: 1px solid transparent; border-radius: 30px; padding: 8px 17px; background: transparent; color: #c1ccdd; font-size: 14px; }
.image25-view-switch button[aria-pressed="true"] { border-color: #40d6f0; color: #5de9fa; background: #123248; }
.image25-comparison-controls p { display: flex; gap: 7px; align-items: center; margin: 0; color: #a6b8ce; font-size: 13px; }
.image25-comparison-controls p svg { flex-shrink: 0; }
.image25-prompt-panel { display: flex; flex-direction: column; padding: 23px 21px 24px; }
.image25-prompt-heading { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.image25-prompt-heading h3 { margin: 0; font-size: 17px; font-weight: 700; }
.image25-prompt-heading svg { color: #bce5ed; }
.image25-prompt-panel textarea { color: #dde7f8; background: #0b1120; border: 1px solid var(--image25-line); border-radius: 7px; padding: 13px; width: 100%; min-height: 90px; height: 90px; resize: vertical; font-size: 15px; line-height: 1.7; }
.image25-copy { display: flex; justify-content: center; align-items: center; gap: 8px; background: #101726; border: 1px solid var(--image25-line); border-radius: 7px; width: 100%; padding: 10px; margin-top: 11px; font-size: 14px; }
.image25-copy:hover { border-color: #678da8; }
.image25-copy-status { min-height: 16px; margin-top: 4px; font-size: 12px; color: #a3edc4; }
.image25-models { border: 0; border-top: 1px solid var(--image25-line); padding: 20px 0 0; margin: 6px 0 0; min-width: 0; }
.image25-models legend { float: left; width: 100%; padding: 0; margin: 0 0 10px; font-weight: 650; font-size: 16px; }
.image25-model-option { display: flex; align-items: center; position: relative; gap: 14px; padding: 16px; margin-top: 11px; min-height: 84px; border: 1px solid var(--image25-line); border-radius: 7px; background: #0a101d; cursor: pointer; }
.image25-model-option:has(input:checked) { border-color: #63e1e9; background: #0d1c29; }
.image25-model-option:has(input:focus-visible) { outline: 2px solid #50e7ff; outline-offset: 3px; }
.image25-model-option > svg { flex-shrink: 0; color: #ccdae9; }
.image25-model-option:has(input:checked) > svg { color: #50e7ff; }
.image25-model-option input { order: 3; margin: 0 0 0 auto; accent-color: #55e6f6; width: 18px; height: 18px; flex-shrink: 0; }
.image25-model-option strong { display: block; font-size: 17px; line-height: 1.4; }
.image25-model-option small { display: block; font-size: 12px; color: #aebdd0; margin-top: 3px; }
.image25-result-info { margin-top: 6px; padding-top: 20px; border-top: 1px solid var(--image25-line); }
.image25-result-info h3 { margin: 0 0 14px; font-size: 16px; }
.image25-result-info p { font-size: 14px; line-height: 1.8; color: #b5c4db; }
.image25-result-info .image25-result-status { display: flex; gap: 7px; align-items: center; color: #89eecb; }
.image25-result-info small { display: block; color: #93a8c0; font-size: 12px; line-height: 1.7; }
.image25-parameters { display: flex; align-items: center; gap: 9px; border: 0; border-bottom: 1px solid var(--image25-line); padding: 20px 0; margin-top: 3px; width: 100%; color: #9bdae6; font-size: 14px; background: transparent; }
.image25-parameters:hover { color: white; }
.image25-next { margin-top: auto; padding-top: 14px; }
.image25-next > span { display: block; font-size: 11px; color: #8f9fb4; margin-bottom: 9px; }
.image25-case-select { display: block; width: 100%; min-width: 0; padding: 10px 9px; margin-bottom: 10px; border: 1px solid var(--image25-line); border-radius: 7px; background: #0b1120; color: #c8d8e8; font-size: 12px; }
.image25-next .image25-button { width: 100%; padding: 14px; }
.image25-context { width: min(1390px, calc(100% - 80px)); margin: 18px auto 40px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; font-size: 12px; color: #91a1ba; line-height: 1.6; }
.image25-context p { display: flex; gap: 7px; align-items: center; margin: 0; }
.image25-context p:first-child { width: 100%; }
.image25-context svg { flex-shrink: 0; }
.image25-context a { display: inline-flex; align-items: center; gap: 5px; text-decoration: underline; text-underline-offset: 3px; }
.image25-footer { width: min(1220px, calc(100% - 80px)); margin: 0 auto; padding: 25px 0 35px; border-top: 1px solid var(--image25-line); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 13px 20px; color: #9fb0c9; font-size: 12px; }
.image25-footer > div { display: flex; align-items: center; gap: 9px; }
.image25-footer > div > span { margin-left: 14px; }
.image25-footer p { margin: 0; }
.image25-footer a { display: inline-flex; align-items: center; gap: 5px; color: #c3d5e8; }
.image25-dialog { color: #eef5ff; background: #0d1423; border: 1px solid #3b4b62; border-radius: 14px; padding: 0; width: min(620px, calc(100% - 32px)); max-height: 88dvh; }
.image25-dialog::backdrop { background: #020610d9; backdrop-filter: blur(7px); }
.image25-dialog-inner { padding: 25px; }
.image25-dialog-inner > header { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.image25-dialog h2 { margin: 0; font-size: 23px; }
.image25-modal-notice { color: #bbccdf; font-size: 14px; line-height: 1.8; margin: 18px 0; }
.image25-dialog dl { margin: 22px 0; }
.image25-dialog dl > div { display: grid; grid-template-columns: 160px minmax(0, 1fr); border-top: 1px solid var(--image25-line); padding: 13px 0; gap: 15px; font-size: 13px; line-height: 1.6; }
.image25-dialog dt { color: #9faec4; }
.image25-dialog dd { margin: 0; overflow-wrap: anywhere; }
.image25-methodology { font-size: 13px; line-height: 1.9; color: #b0c0d7; }
.image25-dialog .image25-doc-link { font-size: 14px; }
.image25-dialog-images { width: min(1350px, calc(100% - 32px)); }
.image25-enlarged { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.image25-enlarged .image25-picture { border-radius: 8px; }
.image25-enlarged .image25-picture img { max-height: 68dvh; }
@media (min-width: 1500px) {
.image25-hero { min-height: 410px; padding-top: 52px; }
}
@media (max-width: 1190px) {
.image25-header { gap: 12px; }
.image25-brand { font-size: 15px; padding: 10px; }
.image25-header nav { padding-inline: 4px; }
.image25-header nav a { padding-inline: 9px; }
.image25-back { padding: 11px; font-size: 13px; }
.image25-header-actions { gap: 8px; }
.image25-hero-art { opacity: .5; right: -40px; }
.image25-hero-copy { max-width: 760px; }
.image25-hero h2 { font-size: 40px; }
.image25-intro { max-width: 720px; }
.image25-intro p { font-size: 15px; }
.image25-workspace { grid-template-columns: minmax(0, 1fr) 300px; }
.image25-prompt-panel { padding: 20px 17px; }
.image25-comparison-controls { flex-wrap: wrap; justify-content: center; gap: 10px; padding: 14px 0 6px; }
.image25-model-option { min-height: 76px; padding: 13px; gap: 10px; }
.image25-model-option strong { font-size: 16px; }
.image25-model-option small { font-size: 11px; }
.image25-model-label { font-size: 12px; padding: 8px; left: 10px; }
.image25-picture-after .image25-model-label { right: 10px; }
}
@media (max-width: 950px) {
.image25-header { flex-wrap: wrap; padding: 13px 0; gap: 14px; }
.image25-header nav { order: 3; width: 100%; justify-content: center; }
.image25-header-actions { margin-left: auto; }
.image25-hero { min-height: 345px; padding-top: 33px; }
.image25-hero-art { display: none; }
.image25-hero h1 { font-size: 68px; }
.image25-hero h2 { font-size: 36px; }
.image25-workspace { grid-template-columns: minmax(0, 1fr); gap: 16px; }
.image25-comparison-controls { flex-wrap: nowrap; justify-content: space-between; }
.image25-prompt-panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 24px; padding: 24px; }
.image25-prompt-heading, .image25-prompt-panel textarea, .image25-copy, .image25-copy-status { grid-column: 1; }
.image25-prompt-panel textarea { height: 110px; }
.image25-models { grid-column: 2; grid-row: 1 / 5; padding: 0; border: 0; margin: 0; }
.image25-result-info { grid-column: 2; grid-row: 1 / 5; padding: 0; border: 0; margin: 0; }
.image25-model-option { clear: both; }
.image25-next, .image25-parameters { grid-column: 1 / -1; }
.image25-next { display: flex; gap: 20px; align-items: center; justify-content: space-between; }
.image25-next > span { margin: 0; }
.image25-case-select { flex: 1; margin: 0; width: auto; }
.image25-next .image25-button { width: auto; min-width: 180px; }
}
@media (max-width: 600px) {
.image25-header, .image25-hero, .image25-workspace, .image25-context, .image25-footer { width: calc(100% - 32px); }
.image25-brand { font-size: 14px; gap: 7px; padding: 9px; }
.image25-brand svg { width: 19px; }
.image25-header { gap: 12px; }
.image25-header-actions { gap: 7px; }
.image25-language select { padding: 10px 27px 10px 9px; font-size: 12px; }
.image25-back { display: none; }
.image25-header nav a { font-size: 13px; padding: 7px 11px; }
.image25-header nav { justify-content: space-between; padding-inline: 9px; }
.image25-hero { min-height: 0; padding: 30px 0 27px; }
.image25-hero h1 { font-size: clamp(37px, 9.5vw, 55px); letter-spacing: -1.6px; }
.image25-hero h2 { font-size: clamp(22px, 5.6vw, 30px); line-height: 1.45; letter-spacing: -.5px; margin: 10px 0 15px; }
.image25-intro p { font-size: 13px; line-height: 1.8; margin: 7px 0; }
.image25-hero-actions { gap: 25px; margin-top: 20px; }
.image25-hero-actions .image25-button { font-size: 14px; padding: 13px 18px; }
.image25-doc-link { font-size: 13px; gap: 5px; }
.image25-comparison-panel { padding: 9px 9px 12px; }
.image25-notice { font-size: 10px; gap: 3px; }
.image25-notice > span { gap: 4px; }
.image25-notice svg { width: 13px; }
.image25-canvas { aspect-ratio: 4 / 3; }
.image25-model-label { font-size: 10px; left: 7px; top: 9px; padding: 6px; }
.image25-picture-after .image25-model-label { right: 7px; }
.image25-demo-label { font-size: 10px; padding: 4px 7px; bottom: 9px; left: 7px; }
.image25-picture-after .image25-demo-label { right: 7px; }
.image25-divider > span { height: 33px; width: 33px; top: 50%; }
.image25-divider svg { width: 20px; }
.image25-comparison-controls { flex-wrap: wrap; justify-content: center; gap: 11px; padding-top: 15px; }
.image25-comparison-controls p { font-size: 11px; }
.image25-view-switch button { font-size: 12px; padding: 8px 16px; }
.image25-canvas-side { aspect-ratio: 12 / 7; }
.image25-canvas-side .image25-model-label { top: 7px; left: 7px; right: auto; padding: 6px; font-size: 10px; }
.image25-prompt-panel { display: flex; padding: 20px; }
.image25-prompt-panel textarea { height: 98px; }
.image25-models { border-top: 1px solid var(--image25-line); padding-top: 21px; margin-top: 9px; }
.image25-result-info { border-top: 1px solid var(--image25-line); padding-top: 21px; margin-top: 9px; }
.image25-model-option { padding: 14px; }
.image25-model-option small { font-size: 12px; }
.image25-next { display: block; }
.image25-next > span { margin-bottom: 9px; }
.image25-case-select { width: 100%; margin-bottom: 10px; }
.image25-next .image25-button { width: 100%; }
.image25-context { font-size: 11px; margin-bottom: 25px; }
.image25-context p:first-child { align-items: flex-start; }
.image25-context p:first-child svg { margin-top: 2px; }
.image25-footer { gap: 14px; line-height: 1.7; }
.image25-footer > div { flex-wrap: wrap; }
.image25-footer > div > span { width: 100%; margin: 0; }
.image25-dialog-inner { padding: 19px; }
.image25-dialog h2 { font-size: 19px; }
.image25-dialog dl > div { grid-template-columns: 1fr; gap: 5px; }
.image25-enlarged { grid-template-columns: 1fr; }
.image25-enlarged .image25-picture img { max-height: 60dvh; }
}
@media (prefers-reduced-motion: reduce) {
html { scroll-behavior: auto; }
*, *::before, *::after { transition: none !important; }
}