.showcase-page { max-width: 1320px; }

.showcase-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 390px);
    gap: 36px;
    align-items: end;
    margin-bottom: 38px;
}

.showcase-hero .page-subtitle { margin-bottom: 0; }

.how-to-card {
    display: flex;
    gap: 15px;
    padding: 20px;
    background: rgba(255, 255, 255, .76);
    border: 1px solid rgba(255, 255, 255, .95);
    border-radius: 18px;
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(14px);
}

.how-to-icon {
    display: grid;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    place-items: center;
    color: var(--warning);
    background: #fff6df;
    border-radius: 12px;
}

.how-to-card strong { display: block; margin-bottom: 4px; color: var(--ink); }
.how-to-card p { color: var(--muted); font-size: .88rem; line-height: 1.55; }
.how-to-card code { color: var(--brand); font-weight: 800; }

.showcase-list { display: grid; gap: 34px; }

.showcase-card {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(380px, .9fr);
    overflow: hidden;
    background: rgba(255, 255, 255, .82);
    border: 1px solid rgba(255, 255, 255, .95);
    border-radius: 26px;
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(16px);
}

.prompt-panel { padding: clamp(26px, 4vw, 46px); }

.example-heading {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 18px;
}

.example-number {
    display: grid;
    flex: 0 0 46px;
    height: 46px;
    place-items: center;
    color: var(--brand);
    background: var(--brand-soft);
    border: 1px solid rgba(180,35,60,.1);
    border-radius: 13px;
    font-size: .82rem;
    font-weight: 900;
}

.example-category {
    display: block;
    margin-bottom: 3px;
    color: var(--brand);
    font-size: .73rem;
    font-weight: 800;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.example-heading h2 { font-size: clamp(1.55rem, 3vw, 2rem); line-height: 1.15; }
.example-lead { margin-bottom: 22px; color: var(--muted); }

.prompt-code {
    position: relative;
    max-height: 330px;
    padding: 24px;
    overflow-y: auto;
    color: #f7f7fb;
    background: linear-gradient(145deg, #1b1f2a, #101218);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 17px;
    box-shadow: inset 0 1px rgba(255,255,255,.06);
    font-family: "Courier New", monospace;
    font-size: .93rem;
    line-height: 1.75;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,.2) transparent;
}

.prompt-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    margin-top: 18px;
}

.copy-example-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 11px 20px;
    color: #fff;
    background: linear-gradient(135deg, #c62d48, var(--brand-dark));
    border: 0;
    border-radius: 12px;
    box-shadow: 0 10px 22px rgba(180,35,60,.2);
    font-family: inherit;
    font-weight: 800;
    cursor: pointer;
    transition: .2s ease;
}

.copy-example-btn:hover { transform: translateY(-2px); box-shadow: 0 14px 28px rgba(180,35,60,.25); }
.copy-example-btn.copied { background: linear-gradient(135deg, #188965, #126b51); }
.prompt-tip { color: var(--muted); font-size: .82rem; font-weight: 600; }
.prompt-tip i { color: var(--indigo); }

.result-panel {
    display: flex;
    min-width: 0;
    flex-direction: column;
    margin: 0;
    padding: 16px;
    background: #eef0f6;
}

.image-frame {
    position: relative;
    flex: 1;
    min-height: 510px;
    overflow: hidden;
    border-radius: 18px;
    background: #dfe3ed;
}

.example-image { width: 100%; height: 100%; object-fit: cover; display: block; }
.example-image[hidden] { display: none; }

.image-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 9px;
    padding: 28px;
    color: #fff;
    text-align: center;
}

.image-placeholder[hidden] { display: none; }
.image-placeholder i { font-size: 3rem; opacity: .9; }
.image-placeholder strong { color: #fff; font-size: 1.08rem; }
.image-placeholder span { max-width: 260px; color: rgba(255,255,255,.78); font-size: .86rem; }

.tone-citrus { background: radial-gradient(circle at 30% 30%, #ff9e45, transparent 30%), linear-gradient(145deg, #171a25, #233a5b); }
.tone-city { background: radial-gradient(circle at 70% 25%, #df4765, transparent 30%), linear-gradient(145deg, #16203d, #44528e); }
.tone-neon { background: radial-gradient(circle at 25% 70%, #df28c4, transparent 34%), radial-gradient(circle at 75% 30%, #22c5ef, transparent 36%), #171530; }
.tone-luxury { background: radial-gradient(circle at 50% 35%, #fff, transparent 24%), linear-gradient(145deg, #c3a98c, #eee5db); }

.result-panel figcaption {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 13px 5px 0;
    color: var(--muted);
    font-size: .78rem;
}

.result-panel figcaption code {
    padding: 5px 9px;
    color: #303b54;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 7px;
    font-weight: 700;
}

.copy-toast {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 1200;
    display: flex;
    visibility: hidden;
    align-items: center;
    gap: 9px;
    padding: 13px 18px;
    color: #fff;
    opacity: 0;
    background: #172033;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    font-weight: 700;
    transform: translateY(10px);
    transition: .2s ease;
}

.copy-toast i { color: #55d6a8; }
.copy-toast.show { visibility: visible; opacity: 1; transform: translateY(0); }

@media (max-width: 980px) {
    .showcase-hero { grid-template-columns: 1fr; align-items: start; }
    .how-to-card { max-width: 620px; }
    .showcase-card { grid-template-columns: 1fr; }
    .result-panel { min-height: 520px; }
    .image-frame { min-height: 460px; }
}

@media (max-width: 560px) {
    .showcase-hero { gap: 22px; }
    .how-to-card { padding: 16px; }
    .showcase-list { gap: 22px; }
    .showcase-card { border-radius: 20px; }
    .prompt-panel { padding: 24px 18px; }
    .prompt-code { max-height: 360px; padding: 18px; font-size: .86rem; }
    .prompt-actions { align-items: stretch; flex-direction: column; }
    .copy-example-btn { width: 100%; }
    .result-panel { min-height: 430px; padding: 10px; }
    .image-frame { min-height: 380px; }
    .result-panel figcaption { align-items: flex-start; flex-direction: column; padding-left: 3px; }
    .copy-toast { right: 14px; bottom: 14px; left: 14px; justify-content: center; }
}
