/* 互动剧本创意征集页：夜色纸页世界，主视觉沉浸、操作集中在“写下创意” */
.idea-page {
    --idea-sky: #0a1120;
    --idea-sky-deep: #070d19;
    --idea-panel: #111c2f;
    --idea-panel-soft: #15223a;
    --idea-ink: #f5f0e6;
    --idea-muted: #b8c4d6;
    --idea-faint: #93a2b8;
    --idea-line: rgba(255, 255, 255, .08);
    --idea-line-strong: rgba(255, 255, 255, .15);
    --idea-field-line: #5a6e8c;
    --idea-gold: #efbf75;
    --idea-gold-strong: #f7d39a;
    --idea-gold-line: rgba(239, 191, 117, .28);
    --idea-on-gold: #16233a;
    --idea-danger: #ffb4a8;
    position: relative;
    min-height: 100dvh;
    overflow-x: clip;
    padding: 0 24px;
    color: var(--idea-ink);
    background:
        radial-gradient(ellipse at 82% 6%, rgba(74, 108, 168, .16), transparent 52%),
        radial-gradient(ellipse at 12% 42%, rgba(239, 191, 117, .05), transparent 46%),
        var(--idea-sky);
}
.idea-page *, .idea-page *::before, .idea-page *::after { box-sizing: border-box; }
.idea-page [hidden] { display: none !important; }
.idea-shell { max-width: 1160px; margin: 0 auto; padding-bottom: 72px; }
.idea-page :where(a) { color: inherit; text-decoration: none; }
.idea-page button, .idea-page input, .idea-page textarea { font: inherit; }
.idea-page button, .idea-page a, .idea-page summary { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.idea-page :is(a, button, textarea, input, summary):focus-visible { outline: 2px solid var(--idea-gold-strong); outline-offset: 3px; border-radius: 3px; }
.idea-page h1, .idea-page h2, .idea-page h3, .idea-page strong { color: var(--idea-ink); }

/* 页眉 */
.idea-masthead { display: flex; align-items: center; min-height: 60px; }
.idea-back { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; font-size: 13.5px; letter-spacing: .01em; color: var(--idea-muted); }
.idea-back-arrow { transition: transform .2s ease; }
.idea-back:hover { color: var(--idea-gold); }
.idea-back:hover .idea-back-arrow { transform: translateX(-3px); }

/* 首屏 */
.idea-hero { position: relative; isolation: isolate; display: flex; align-items: center; min-height: 620px; padding: 40px 0 64px; }
.idea-hero-copy { position: relative; z-index: 2; width: min(560px, 54%); }
.idea-kicker { display: flex; align-items: center; gap: 12px; margin: 0 0 22px; font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--idea-gold); }
.idea-kicker::before { content: ""; flex: 0 0 32px; height: 1px; background: var(--idea-gold-line); }
.idea-hero h1 { margin: 0; font-size: clamp(2.5rem, 4.4vw, 3.9rem); line-height: 1.24; letter-spacing: -.04em; font-weight: 750; }
.idea-hero h1 em { color: var(--idea-gold); font-style: normal; }
.idea-lead { max-width: 30em; margin: 20px 0 0; font-size: 1.0625rem; line-height: 1.95; color: var(--idea-muted); }
.idea-hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 26px; margin-top: 30px; }
.idea-hero-meta { margin: 22px 0 0; font-size: 13px; line-height: 1.8; letter-spacing: .02em; color: var(--idea-faint); }
.idea-noscript { margin: 14px 0 0; font-size: 13px; line-height: 1.7; color: var(--idea-muted); }
.idea-hero-art { position: absolute; z-index: 0; top: -36px; bottom: -48px; right: calc(50% - 50vw); width: 58vw; pointer-events: none; mask-image: linear-gradient(to right, transparent 0%, #000 26%, #000 100%); -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 26%, #000 100%); }
.idea-hero-art picture { display: block; width: 100%; height: 100%; }
.idea-hero-art img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 50%; animation: idea-art-in 1.6s cubic-bezier(.2, .7, .3, 1) both, idea-art-float 12s ease-in-out 1.6s infinite alternate; }
.idea-hero-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, var(--idea-sky) 0%, transparent 14%), linear-gradient(90deg, var(--idea-sky) 0%, rgba(10, 17, 32, .55) 26%, transparent 58%), linear-gradient(0deg, var(--idea-sky) 0%, transparent 34%); }
.idea-hero-glow { position: absolute; z-index: 1; top: 20%; left: 48%; width: 34%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(247, 196, 108, .3), transparent 66%); filter: blur(6px); animation: idea-glow 6s ease-in-out infinite alternate; }
.idea-hero-stars { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.idea-hero-stars i { position: absolute; left: 50%; bottom: 26%; width: 3px; height: 3px; border-radius: 50%; background: #ffe2aa; box-shadow: 0 0 10px #ffd48d; animation: idea-spark 7s ease-out infinite; }
.idea-hero-stars i:nth-child(2) { left: 67%; animation-delay: -2.4s; }
.idea-hero-stars i:nth-child(3) { left: 58%; animation-delay: -4.2s; }
.idea-hero-stars i:nth-child(4) { left: 75%; animation-delay: -1.2s; }
.idea-hero-stars i:nth-child(5) { left: 44%; animation-delay: -3.3s; }
.idea-hero-stars i:nth-child(6) { left: 63%; animation-delay: -5.4s; }

/* 按钮与链接 */
.idea-button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 12px 26px; border: 1px solid var(--idea-gold); border-radius: 8px; background: var(--idea-gold); color: var(--idea-on-gold) !important; font-size: 15px; font-weight: 650; letter-spacing: .02em; cursor: pointer; transition: background .25s ease, border-color .25s ease, box-shadow .25s ease, transform .2s ease; }
.idea-button:hover { background: var(--idea-gold-strong); border-color: var(--idea-gold-strong); box-shadow: 0 18px 44px -22px rgba(239, 191, 117, .6); }
.idea-button:active { transform: translateY(1px); }
.idea-button:disabled { cursor: wait; opacity: .62; transform: none; }
.idea-button-arrow { transition: transform .2s ease; }
.idea-button:hover .idea-button-arrow { transform: translateX(3px); }
.idea-text-link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-size: 14px; color: var(--idea-gold); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; text-decoration-color: rgba(239, 191, 117, .5); }
.idea-text-link:hover { color: var(--idea-gold-strong); text-decoration-color: currentColor; }

/* 章节 */
.idea-section { position: relative; padding: 76px 0; border-top: 1px solid var(--idea-line); }
.idea-eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 18px; font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--idea-gold); }
.idea-eyebrow-spark { display: inline-block; width: 5px; height: 5px; border-radius: 1px; background: var(--idea-gold); font-size: 0; transform: rotate(45deg); }
.idea-section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px 64px; align-items: end; margin-bottom: 36px; }
.idea-section-head h2 { margin: 0; font-size: clamp(1.7rem, 3vw, 2.4rem); line-height: 1.28; letter-spacing: -.035em; font-weight: 700; text-wrap: balance; }
.idea-section-lead { max-width: 34em; margin: 0; font-size: .98rem; line-height: 1.85; color: var(--idea-muted); }

/* 灵感火花 */
.idea-spark-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.idea-spark::before { content: "“"; position: absolute; top: 6px; right: 18px; font-family: Georgia, "Times New Roman", serif; font-size: 64px; line-height: 1; color: rgba(239, 191, 117, .14); pointer-events: none; }
.idea-spark { position: relative; display: flex; flex-direction: column; min-height: 260px; padding: 26px 24px 20px; border: 1px solid var(--idea-line-strong); border-radius: 16px; background: linear-gradient(160deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .018)); transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease, background .3s ease; }
.idea-spark:hover { transform: translateY(-4px); border-color: var(--idea-gold-line); box-shadow: 0 30px 64px -42px rgba(0, 0, 0, .95); background: linear-gradient(160deg, rgba(255, 255, 255, .075), rgba(255, 255, 255, .026)); }
.idea-spark-index { margin-bottom: 18px; font-size: 11px; letter-spacing: .18em; color: var(--idea-gold); font-variant-numeric: tabular-nums; }
.idea-spark-quote { flex: 1; margin: 0 0 20px; font-size: 1.1rem; line-height: 1.85; letter-spacing: .01em; color: var(--idea-ink); }
.idea-spark-start { display: inline-flex; align-items: center; align-self: flex-start; gap: 8px; min-height: 44px; padding: 0; border: 0; background: none; color: var(--idea-gold); font-size: 13.5px; font-weight: 600; cursor: pointer; }
.idea-spark-start:hover { color: var(--idea-gold-strong); }
.idea-spark-start span { transition: transform .2s ease; }
.idea-spark-start:hover span { transform: translateX(3px); }
.idea-spark-more { display: flex; justify-content: center; margin-top: 26px; }
.idea-spark-more button { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 20px; border: 1px solid var(--idea-line-strong); border-radius: 999px; background: rgba(255, 255, 255, .03); color: var(--idea-muted); font-size: 13.5px; cursor: pointer; transition: color .2s ease, border-color .2s ease, background .2s ease; }
.idea-spark-more button:hover { color: var(--idea-gold); border-color: var(--idea-gold-line); background: rgba(239, 191, 117, .06); }
.idea-spark-more button span { transition: transform .3s ease; }
.idea-spark-more button:hover span { transform: rotate(-90deg); }
.idea-spark-grid.is-changing .idea-spark-quote { animation: idea-rise .45s ease both; }

/* 三个问题 */
.idea-question-list { margin: 0; padding: 0; list-style: none; }
.idea-question { display: grid; grid-template-columns: 64px minmax(0, 1fr); align-items: start; gap: 14px; padding: 22px 0; border-top: 1px solid var(--idea-line); }
.idea-question-num { padding-top: 9px; font-size: 12px; letter-spacing: .16em; color: var(--idea-gold); font-variant-numeric: tabular-nums; }
.idea-question p { margin: 0; font-size: clamp(1.15rem, 1.9vw, 1.4rem); line-height: 1.7; font-weight: 500; color: var(--idea-ink); text-wrap: pretty; }

/* 我的投稿 */
.idea-history { padding: 76px 0; border-top: 1px solid var(--idea-line); scroll-margin-top: 76px; }
.idea-history-list { margin: 4px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--idea-line-strong); }
.idea-history-item { border-bottom: 1px solid var(--idea-line); }
.idea-history-item summary { display: grid; grid-template-columns: 112px minmax(0, 1fr) 12px; align-items: center; gap: 20px; min-height: 64px; padding: 16px 0; list-style: none; cursor: pointer; }
.idea-history-item summary::-webkit-details-marker { display: none; }
.idea-history-item summary time { font-size: 12.5px; letter-spacing: .04em; color: var(--idea-faint); font-variant-numeric: tabular-nums; }
.idea-history-excerpt { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 15px; color: var(--idea-ink); }
.idea-history-chevron { justify-self: end; width: 7px; height: 7px; margin-right: 4px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; color: var(--idea-muted); transform: rotate(45deg); transition: transform .2s ease; }
.idea-history-item summary:hover .idea-history-excerpt { color: var(--idea-gold); }
.idea-history-item[open] .idea-history-chevron { transform: rotate(225deg); }
.idea-history-item[open] summary { border-bottom: 1px solid var(--idea-line); }
.idea-history-body { padding: 20px 0 26px 132px; }
.idea-history-content { margin: 0; font-size: .95rem; line-height: 1.95; color: var(--idea-muted); white-space: pre-wrap; overflow-wrap: anywhere; }
.idea-history-images { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; max-width: 620px; margin-top: 18px; }
.idea-history-images a { display: block; overflow: hidden; border: 1px solid var(--idea-line); border-radius: 8px; background: var(--idea-panel); }
.idea-history-images img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.idea-history-empty { margin: 0; padding: 22px 0; font-size: .95rem; line-height: 1.8; color: var(--idea-muted); }

/* 结尾邀请 */
.idea-cta { position: relative; overflow: hidden; margin-top: 8px; padding: 64px 56px 68px; border: 1px solid var(--idea-gold-line); border-radius: 20px; background: radial-gradient(ellipse at 82% 16%, rgba(239, 191, 117, .17), transparent 55%), linear-gradient(160deg, #141f33, #0c1524); }
.idea-cta::before { content: ""; position: absolute; inset: 0; background: url("/static/img/story-ideas/idea-world-compressed.webp") 78% 46% / cover no-repeat; opacity: .16; mask-image: linear-gradient(90deg, transparent 18%, #000 100%); -webkit-mask-image: linear-gradient(90deg, transparent 18%, #000 100%); pointer-events: none; }
.idea-cta-inner { position: relative; z-index: 1; max-width: 640px; }
.idea-cta-eyebrow { margin: 0 0 16px; font-size: 11.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--idea-gold); }
.idea-cta h2 { margin: 0 0 14px; font-size: clamp(1.8rem, 3vw, 2.4rem); line-height: 1.3; letter-spacing: -.035em; font-weight: 700; color: var(--idea-ink); }
.idea-cta-body { max-width: 34em; margin: 0 0 28px; font-size: .98rem; line-height: 1.9; color: var(--idea-muted); }

/* 投稿弹窗 */
.idea-dialog { position: fixed; margin: auto; padding: 0; width: calc(100% - 32px); max-width: 980px; max-height: calc(100dvh - 32px - env(safe-area-inset-top) - env(safe-area-inset-bottom)); border: 1px solid rgba(255, 255, 255, .12); border-top: 2px solid var(--idea-gold-line); border-radius: 14px; background: var(--idea-panel); color: var(--idea-ink); box-shadow: 0 60px 120px -40px rgba(0, 0, 0, .9); overflow: hidden; transform: none; }
.idea-dialog[open] { display: flex; flex-direction: column; }
.idea-dialog::backdrop { background: rgba(4, 9, 18, .74); }
body:has(.idea-dialog[open]) { overflow: hidden; }
.idea-dialog .custom-modal-header { flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 26px; border-bottom: 1px solid var(--idea-line); background: rgba(9, 16, 29, .55); }
.idea-dialog .custom-modal-title { margin: 0; font-size: 1.05rem; font-weight: 650; letter-spacing: -.01em; color: var(--idea-ink); }
.idea-dialog .custom-modal-title:focus { outline: none; }
.idea-dialog .custom-modal-close { display: flex; flex: 0 0 44px; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 6px; background: none; color: var(--idea-muted); font-size: 24px; line-height: 1; cursor: pointer; transition: background .2s ease, color .2s ease; }
.idea-dialog .custom-modal-close:hover { background: rgba(255, 255, 255, .07); color: var(--idea-ink); }
.idea-dialog .custom-modal-close:disabled { cursor: wait; opacity: .5; }
.idea-compose { display: grid; grid-template-columns: minmax(0, .84fr) minmax(0, 1.16fr); gap: 40px; min-height: 0; padding: 26px 30px 28px; overflow-y: auto; overscroll-behavior: contain; }
.idea-workspace { grid-area: 1 / 2; min-width: 0; }
.idea-prompt { grid-area: 1 / 1; min-width: 0; padding-top: 4px; }
.idea-prompt h2 { margin: 0 0 12px; font-size: 1.5rem; line-height: 1.36; letter-spacing: -.032em; font-weight: 700; }
.idea-prompt > p { max-width: 34em; margin: 0; font-size: .95rem; line-height: 1.9; color: var(--idea-muted); }
.idea-inspiration { margin: 28px 0 0; padding-left: 20px; border-left: 2px solid var(--idea-gold-line); }
.idea-inspiration-label { font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--idea-gold); }
.idea-inspiration blockquote { min-height: 116px; margin: 14px 0 10px; font-size: 1.2rem; line-height: 1.85; letter-spacing: .01em; color: var(--idea-ink); }
.idea-inspiration button { min-height: 44px; padding: 8px 0; border: 0; background: none; color: var(--idea-muted); font-size: 13.5px; cursor: pointer; }
.idea-inspiration button:hover { color: var(--idea-gold); }
.idea-inspiration button span { display: inline-block; margin-left: 8px; transition: transform .2s ease; }
.idea-inspiration button:hover span { transform: rotate(-40deg); }
.idea-inspiration.is-changing blockquote { animation: idea-rise .45s ease both; }
.idea-prompt .idea-process { margin: 26px 0 0; font-size: .85rem; line-height: 1.8; color: var(--idea-faint); }

.idea-label { display: block; font-size: .95rem; font-weight: 650; color: var(--idea-ink); }
.idea-label span { margin-left: 8px; font-size: 12px; font-weight: 400; color: var(--idea-faint); }
.idea-field-hint { margin: 6px 0 12px; font-size: .82rem; line-height: 1.7; color: var(--idea-muted); }
.idea-page textarea { display: block; width: 100%; min-height: 178px; padding: 14px 16px; resize: vertical; border: 1px solid var(--idea-field-line); border-radius: 8px; background: #0b1526; color: var(--idea-ink); font-size: 16px; line-height: 1.8; transition: border-color .2s ease, box-shadow .2s ease; }
.idea-page textarea::placeholder { color: #8493a8; opacity: 1; }
.idea-page textarea:focus { border-color: var(--idea-gold); box-shadow: 0 0 0 3px rgba(239, 191, 117, .16); }
.idea-page textarea[aria-invalid="true"] { border-color: var(--idea-danger); box-shadow: 0 0 0 3px rgba(255, 180, 168, .14); }
.idea-under-input { display: flex; justify-content: space-between; gap: 10px; min-height: 28px; padding-top: 6px; font-size: 12px; color: var(--idea-faint); }
#idea-count { white-space: nowrap; font-variant-numeric: tabular-nums; }
#idea-count.is-over { color: var(--idea-danger); }
.idea-upload-heading { margin: 20px 0 10px; }
.idea-drop { position: relative; border: 1px dashed var(--idea-field-line); border-radius: 8px; background: rgba(255, 255, 255, .02); transition: background .2s ease, border-color .2s ease; }
.idea-drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.idea-drop:focus-within, .idea-drop.is-dragging { border-color: var(--idea-gold); background: rgba(239, 191, 117, .06); }
.idea-drop label { display: grid; grid-template-columns: 28px minmax(0, 1fr); align-items: center; gap: 4px 12px; min-height: 84px; padding: 14px 16px; cursor: pointer; }
.idea-upload-mark { grid-row: span 2; font-size: 22px; line-height: 1; color: var(--idea-gold); }
.idea-drop strong { font-size: .875rem; font-weight: 600; }
.idea-drop label > span:last-child { font-size: .75rem; line-height: 1.7; color: var(--idea-muted); white-space: pre-line; }
.idea-previews { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.idea-preview { position: relative; min-width: 0; margin-top: 12px; animation: idea-rise .3s ease-out both; }
.idea-preview img { display: block; width: 100%; height: 96px; object-fit: contain; border: 1px solid var(--idea-field-line); border-radius: 6px; background: #0b1526; }
.idea-preview button { position: absolute; top: 0; right: 0; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 0 6px 0 6px; background: rgba(6, 11, 20, .8); color: #fff; font-size: 20px; line-height: 1; cursor: pointer; }
.idea-preview button:hover { background: rgba(6, 11, 20, .95); }
.idea-preview p { margin: 5px 0 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 11px; color: var(--idea-faint); }
.idea-privacy { margin: 18px 0 2px; padding-top: 14px; border-top: 1px solid var(--idea-line); font-size: .74rem; line-height: 1.8; color: var(--idea-faint); }
.idea-error { margin: 0; padding: 0; font-size: .85rem; line-height: 1.7; color: var(--idea-danger); }
.idea-error a, .idea-session-login { display: inline-flex; align-items: center; min-height: 44px; color: var(--idea-gold); text-decoration: underline; text-underline-offset: 3px; font-size: .9rem; }
.idea-dialog-footer { flex: 0 0 auto; display: flex; align-items: center; justify-content: flex-end; gap: 16px; padding: 14px 26px; border-top: 1px solid var(--idea-line); background: rgba(9, 16, 29, .55); }
.idea-dialog-footer .idea-error { flex: 1 1 auto; }
.idea-submit { min-width: 190px; }

.idea-dialog.is-sent .idea-compose { display: flex; align-items: center; justify-content: center; }
.idea-dialog.is-sent .idea-prompt, .idea-dialog.is-sent .idea-dialog-footer { display: none; }
.idea-dialog.is-sent .idea-workspace { grid-area: auto; width: 100%; }
.idea-success { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 360px; padding: 28px 20px; text-align: center; }
.idea-success-seal { display: grid; place-items: center; width: 64px; height: 64px; border: 1px solid var(--idea-gold); border-radius: 50%; color: var(--idea-gold); font-size: 25px; box-shadow: 0 0 0 10px rgba(239, 191, 117, .07); animation: idea-seal .7s cubic-bezier(.2, .8, .3, 1.2) both; }
.idea-success h2 { margin: 26px 0 10px; font-size: 1.45rem; line-height: 1.36; letter-spacing: -.03em; }
.idea-success p { max-width: 32em; margin: 0 0 26px; font-size: .95rem; line-height: 1.9; color: var(--idea-muted); }
.idea-success-back { display: inline-flex; align-items: center; min-height: 44px; margin-top: 12px; font-size: .875rem; color: var(--idea-muted) !important; text-decoration: underline; text-underline-offset: 3px; }
.idea-success-back:hover { color: var(--idea-ink) !important; }

/* 动效 */
.idea-reveal.is-visible { animation: idea-rise .8s cubic-bezier(.2, .7, .3, 1) both; }
.idea-hero-copy > * { animation: idea-rise .8s cubic-bezier(.2, .7, .3, 1) both; }
.idea-hero-copy > :nth-child(2) { animation-delay: .06s; }
.idea-hero-copy > :nth-child(3) { animation-delay: .12s; }
.idea-hero-copy > :nth-child(4) { animation-delay: .18s; }
.idea-hero-copy > :nth-child(5) { animation-delay: .24s; }
@keyframes idea-rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes idea-art-in { from { opacity: 0; transform: scale(1.03); } to { opacity: 1; transform: scale(1); } }
@keyframes idea-art-float { from { transform: scale(1.005) translateY(0); } to { transform: scale(1.04) translateY(-10px); } }
@keyframes idea-glow { from { opacity: .45; transform: scale(.9); } to { opacity: 1; transform: scale(1.15); } }
@keyframes idea-spark { 0% { opacity: 0; transform: translate(0, 0); } 22% { opacity: .9; } 100% { opacity: 0; transform: translate(-26px, -200px); } }
@keyframes idea-seal { from { opacity: 0; transform: scale(.7) rotate(-18deg); } to { opacity: 1; transform: none; } }
.idea-page.is-still *, .idea-page.is-still *::before, .idea-page.is-still *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
@media (prefers-reduced-motion: reduce) {
    .idea-page *, .idea-page *::before, .idea-page *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* 矮桌面：压缩弹窗内部高度，避免首屏内容停在页脚切线上 */
@media (max-height: 780px) and (min-width: 761px) {
    .idea-dialog .custom-modal-header { padding: 10px 26px; }
    .idea-dialog .custom-modal-title { font-size: 1rem; }
    .idea-compose { gap: 28px; padding: 16px 26px 10px; }
    .idea-prompt h2 { font-size: 1.3rem; }
    .idea-prompt > p { font-size: .9rem; line-height: 1.8; }
    .idea-inspiration { margin-top: 16px; }
    .idea-inspiration blockquote { min-height: 74px; margin: 8px 0 2px; font-size: 1.05rem; line-height: 1.75; }
    .idea-prompt .idea-process { margin-top: 14px; font-size: .8rem; }
    .idea-page textarea { min-height: 106px; }
    .idea-under-input { min-height: 24px; padding-top: 4px; }
    .idea-field-hint { margin: 6px 0 8px; }
    .idea-upload-heading { margin: 12px 0 8px; }
    .idea-drop label { min-height: 64px; padding: 10px 16px; }
    .idea-privacy { margin: 12px 0 0; padding-top: 8px; }
    .idea-dialog-footer { padding: 10px 26px; }
}

/* 平板：主视觉改为文案下方横向画布，避免遮挡操作 */
@media (max-width: 900px) {
    .idea-hero { display: block; min-height: 0; padding: 26px 0 8px; }
    .idea-hero-copy { width: 100%; }
    .idea-hero-art { position: relative; top: auto; right: auto; bottom: auto; width: calc(100% + 48px); height: 340px; margin: 26px -24px 0; mask-image: linear-gradient(180deg, #000 0%, #000 62%, transparent 100%); -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 62%, transparent 100%); }
    .idea-hero-art::after { background: linear-gradient(0deg, var(--idea-sky) 0%, transparent 42%), linear-gradient(180deg, var(--idea-sky) 0%, transparent 24%); }
    .idea-hero-glow { top: 10%; left: 30%; width: 40%; }
    .idea-hero-stars { display: none; }
    .idea-section { padding: 56px 0; }
    .idea-section-head { grid-template-columns: minmax(0, 1fr); gap: 14px; align-items: start; }
    .idea-section-lead { max-width: 46em; }
    .idea-spark { min-height: 220px; }
    .idea-cta { padding: 48px 40px 52px; }
    .idea-dialog { border-radius: 12px; }
    .idea-compose { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 32px; }
}

/* 手机 */
@media (max-width: 760px) {
    .idea-page { padding: 0 20px; }
    .idea-shell { padding-bottom: 48px; }
    .idea-masthead { min-height: 54px; }
    .idea-back { font-size: 13px; }
    .idea-hero { padding: 22px 0 4px; }
    .idea-kicker { margin-bottom: 16px; font-size: 11px; letter-spacing: .14em; }
    .idea-kicker::before { flex-basis: 24px; }
    .idea-hero h1 { font-size: clamp(1.95rem, 7.8vw, 2.45rem); line-height: 1.28; letter-spacing: -.03em; }
    .idea-lead { margin-top: 16px; font-size: .98rem; line-height: 1.85; }
    .idea-hero-actions { gap: 12px 20px; margin-top: 24px; }
    .idea-button { min-height: 48px; padding: 11px 20px; }
    .idea-hero-meta { margin-top: 18px; font-size: 12px; }
    .idea-hero-art { width: calc(100% + 40px); height: 260px; margin: 22px -20px 0; }
    .idea-section { padding: 44px 0; }
    .idea-eyebrow { margin-bottom: 14px; font-size: 11px; letter-spacing: .14em; }
    .idea-section-head { margin-bottom: 26px; }
    .idea-section-head h2 { font-size: 1.5rem; line-height: 1.32; }
    .idea-section-lead { font-size: .93rem; line-height: 1.8; }
    .idea-spark-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
    .idea-spark:last-child { grid-column: auto; }
    .idea-spark { min-height: 0; padding: 22px 20px 18px; border-radius: 14px; }
    .idea-spark-index { margin-bottom: 14px; }
    .idea-spark-quote { font-size: 1.05rem; line-height: 1.8; margin-bottom: 16px; }
    .idea-spark-more { margin-top: 20px; }
    .idea-question { grid-template-columns: 40px minmax(0, 1fr); gap: 10px; padding: 18px 0; }
    .idea-question p { font-size: 1.08rem; line-height: 1.65; }
    .idea-history { padding: 44px 0; scroll-margin-top: 68px; }
    .idea-history-item summary { grid-template-columns: minmax(0, 1fr) 12px; grid-template-areas: "time chevron" "excerpt chevron"; gap: 4px 16px; padding: 15px 0; }
    .idea-history-item summary time { grid-area: time; font-size: 11.5px; }
    .idea-history-excerpt { grid-area: excerpt; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; white-space: normal; font-size: .92rem; line-height: 1.6; }
    .idea-history-chevron { grid-area: chevron; }
    .idea-history-body { padding-left: 0; }
    .idea-history-content { font-size: .9rem; line-height: 1.85; }
    .idea-history-images { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .idea-cta { padding: 36px 24px 40px; border-radius: 16px; }
    .idea-cta::before { display: none; }
    .idea-cta h2 { font-size: 1.55rem; }
    .idea-cta-body { font-size: .93rem; }
    .idea-dialog { width: calc(100% - 20px); max-width: 980px; max-height: calc(100dvh - 20px - env(safe-area-inset-top) - env(safe-area-inset-bottom)); border-radius: 10px; }
    .idea-dialog .custom-modal-header { padding: 8px 14px 8px 18px; }
    .idea-dialog .custom-modal-title { font-size: 1rem; }
    .idea-compose { grid-template-columns: minmax(0, 1fr); gap: 22px; padding: 18px 16px 20px; }
    .idea-workspace { grid-area: 1 / 1; }
    .idea-prompt { grid-area: 2 / 1; padding-top: 20px; border-top: 1px solid var(--idea-line); }
    .idea-prompt h2 { font-size: 1.25rem; }
    .idea-inspiration { margin: 20px 0 0; padding-left: 16px; }
    .idea-inspiration blockquote { min-height: 0; margin: 10px 0 4px; font-size: 1.05rem; line-height: 1.85; }
    .idea-prompt .idea-process { margin-top: 18px; font-size: .8rem; }
    .idea-field-hint { font-size: .8rem; }
    .idea-page textarea { min-height: 150px; padding: 12px 14px; }
    .idea-dialog-footer { flex-wrap: wrap; gap: 10px; padding: 12px 16px; }
    .idea-dialog-footer .idea-error { flex: 1 1 100%; }
    .idea-submit { width: 100%; min-width: 0; }
    .idea-success { min-height: 300px; padding: 22px 12px; }
    .idea-success h2 { font-size: 1.25rem; }
    .idea-success p { font-size: .9rem; margin-bottom: 22px; }
}
