body.is-forest-elf-home-open {overflow:hidden;}
#aiProcessModal.is-forest-elf-home {padding:0;background:#132e1e;align-items:stretch;overflow:auto;z-index:120;}
.is-forest-elf-home .ai-process-card {width:100%;max-width:none;max-height:none;margin:0;padding:0;border:0;border-radius:0;overflow:visible;background:#132e1e;box-shadow:none;}
.forest-home {color:#39472c;min-height:100%;}
.forest-home-nav {height:64px;display:flex;align-items:center;gap:24px;padding:0 32px;color:#f2e7c1;border-bottom:1px solid #c6b77b55;}
.forest-home-nav>strong {font:700 24px Georgia,serif;letter-spacing:1px;}
.forest-home-nav>span {border-left:1px solid #c6b77b55;padding-left:24px;font-size:15px;}
.forest-close-slot {margin-left:auto;}
.is-forest-elf-home #aiProcessClose {position:static;background:#ffffff0c;border-color:#eadba050;color:#f8edc9;width:36px;height:36px;}
.forest-home-layout {display:grid;grid-template-columns:minmax(0,1.62fr) minmax(360px,1fr);max-width:min(1800px,calc((100dvh - 64px)*2.62/1.62));height:calc(100dvh - 64px);margin:auto;align-items:start;}
.forest-visual {position:sticky;top:0;min-width:0;}
.forest-scene {position:relative;aspect-ratio:1;isolation:isolate;overflow:hidden;container-type:inline-size;}
.forest-artwork {position:absolute;inset:0;}
.forest-background {display:block;width:100%;height:100%;object-fit:contain;}
.forest-fairies {position:absolute;inset:0;width:100%;height:100%;pointer-events:none;}
.forest-scene-title {position:absolute;top:4.5%;left:4.5%;max-width:67%;color:#fff3ce;text-shadow:0 2px 9px #10261ec9;pointer-events:none;}
.forest-scene-title>span {font-size:clamp(10px,1.7cqw,16px);letter-spacing:.1em;}
.forest-scene-title h2 {font-family:STSong,SimSun,serif;font-weight:400;font-size:clamp(20px,4.5cqw,48px);line-height:1.48;margin:1.5cqw 0;letter-spacing:.025em;}
.forest-scene-title p {font-size:clamp(9px,1.7cqw,17px);margin:0;line-height:1.5;white-space:nowrap;}
.forest-scene-caption {position:absolute;bottom:3%;left:4%;color:#fff4cf;font-size:12px;background:#172b215c;padding:3px 8px;border-radius:10px;}
.forest-music {position:absolute;z-index:3;right:24px;bottom:24px;padding:9px 14px;min-height:36px;border:1px solid #efe2b06b;border-radius:24px;background:#173323c9;color:#fff3ce;font-size:12px;line-height:1.4;cursor:pointer;box-shadow:0 3px 14px #10261e24;}
.forest-music:hover {background:#284d35;}
.forest-music:focus-visible {outline:2px solid #fff3ce;outline-offset:3px;}
@media(max-width:760px){.forest-music {right:14px;bottom:12px;padding:7px 12px;}}
.forest-editor {padding:24px;min-width:0;max-height:100%;overflow-y:auto;box-sizing:border-box;}
.forest-editor-inner {background:linear-gradient(140deg,#fffbee,#f5f0dd);border:1px solid #c8bc94;outline:4px solid #ece4c329;border-radius:26px;padding:28px;box-shadow:0 14px 30px #061d1733;}
.forest-editor-heading {text-align:center;margin-bottom:26px;}
.forest-editor-heading>span {color:#aa9a64;font-size:24px;}
.forest-editor-heading h2 {font:400 clamp(22px,2vw,32px)/1.5 STSong,SimSun,serif;margin:0;}
.forest-editor-heading p {font-size:13px;color:#79806a;margin:6px 0 0;}
.forest-photo h3 {font-size:14px;margin:0 0 12px;}
.forest-photo-row {display:flex;align-items:center;gap:12px;padding:10px;border-radius:12px;background:#e9ead8;border:1px solid #dadfc7;margin-bottom:22px;}
.forest-photo-row img {width:64px;height:72px;object-fit:contain;border-radius:8px;background:#dce1cb;}
.forest-photo-row>div {flex:1;min-width:0;display:grid;gap:5px;font-size:13px;}
.forest-photo-row small {font-size:11px;color:#737d66;}
.forest-change-photo {font-size:12px;padding:8px 10px;border-radius:9px;border:1px solid #97a17a;background:#fcfae9;color:#465c37;white-space:nowrap;}
.is-forest-elf-home .ai-process-eyebrow,.is-forest-elf-home #aiProcessTitle,.is-forest-elf-home #aiProcessDescription,.is-forest-elf-home #themePhotoReceipt,.is-forest-elf-home .ai-theme-variables-heading {display:none!important;}
.is-forest-elf-home #aiThemeVariables {background:none;border:0;padding:0;margin:0 0 22px;}
.is-forest-elf-home [data-theme-variable-field="fairy_subtheme"]>strong {font-size:0;}
.is-forest-elf-home [data-theme-variable-field="fairy_subtheme"]>strong::after {content:'2　选择精灵风格';font-size:14px;color:#3e5030;}
.is-forest-elf-home .ai-theme-variable-options {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:12px;}
.is-forest-elf-home .ai-theme-variable-options button {position:relative;display:block;padding:0;overflow:hidden;border:1px solid #d8d4bb;border-radius:12px;background:#fffbe9;color:#4f593f;box-shadow:0 2px 5px #32432209;}
.is-forest-elf-home .ai-theme-variable-options button.active {border:2px solid #5b7742;background:#fffceb;box-shadow:none;}
.is-forest-elf-home .ai-theme-variable-options button.active::after {content:'✓';position:absolute;right:8px;top:8px;width:24px;height:24px;line-height:22px;border-radius:50%;background:#6b8b4b;color:white;border:1px solid #fff9;}
.forest-style-image {display:block;width:100%;height:auto;aspect-ratio:2.1;object-fit:cover;}
.is-forest-elf-home .ai-theme-option-copy {display:block;padding:9px 4px;text-align:center;font-size:13px;}
.is-forest-elf-home .ai-theme-option-copy strong {font-weight:500;}
.is-forest-elf-home .ai-theme-option-copy small,.is-forest-elf-home .ai-theme-option-image,.is-forest-elf-home .ai-choice-cost {display:none;}
.is-forest-elf-home #aiProcessPointsSummary {margin:0 0 18px;background:#ebe9d7;border:1px solid #d8d3b5;color:#465439;}
.is-forest-elf-home #aiProcessStage {background:#f0efde;border-color:#dfdcc4;color:#425d35;}
.is-forest-elf-home #aiProcessStage small {color:#79826a;}
.is-forest-elf-home .ai-process-actions {gap:12px;}
.is-forest-elf-home .ai-process-actions {position:static;inset:auto;padding:16px 0 0;margin:0;background:transparent;border:0;box-shadow:none;}
.is-forest-elf-home .forest-scene-title h2 {color:#fff3ce;}
.is-forest-elf-home .ai-theme-option-copy strong {color:#4b5a39;}
.is-forest-elf-home .ai-theme-choice-cost {display:none!important;}
.is-forest-elf-home .ai-theme-variable-field {background:none;border:0;padding:0;}
.forest-editor-heading {margin-bottom:18px;}
.forest-editor-heading>span {font-size:18px;}
.forest-editor-heading h2 {font-size:26px;}
.forest-photo-row {padding:8px;margin-bottom:18px;}
.forest-photo-row img {width:56px;height:64px;}
.is-forest-elf-home .ai-theme-variable-options {gap:10px;}
.is-forest-elf-home .ai-theme-option-copy {padding:7px 4px;}
.forest-style-image {aspect-ratio:2.5;}
.is-forest-elf-home #aiProcessPointsSummary {padding:12px;}
.is-forest-elf-home #aiProcessPointsCost {font-size:14px;}
.is-forest-elf-home #aiProcessStage {padding:12px;}
.is-forest-elf-home .ai-process-actions button {border-radius:12px;}
.is-forest-elf-home .ai-process-actions .primary {background:#315736;border:1px solid #315736;color:#fff9df;min-height:48px;}
.is-forest-elf-home .ai-compare {grid-template-columns:1fr 1fr;}
@media(min-width:1000px) and (max-height:850px){.forest-editor {padding:18px;}.forest-editor-inner{padding:20px;}.forest-editor-heading{margin-bottom:18px;}.forest-photo-row{margin-bottom:18px;}.forest-style-image{aspect-ratio:2.5;}}
/* Full-bleed desktop forest. Image and motion retain the same square coordinates. */
@media(min-width:761px){
  #aiProcessModal.is-forest-elf-home {overflow:hidden;}
  .forest-home-layout {grid-template-columns:minmax(0,1fr) clamp(390px,30vw,560px);width:100%;max-width:none;margin:0;align-items:stretch;}
  .forest-visual {position:relative;top:auto;height:100%;overflow:hidden;}
  .forest-scene {width:100%;height:100%;aspect-ratio:auto;}
  .forest-artwork {inset:auto;left:50%;top:38%;width:max(100%,calc(100dvh - 64px));aspect-ratio:1;transform:translate(-50%,-38%);}
  .forest-scene::after {content:'';position:absolute;inset:0 0 0 auto;width:64px;background:linear-gradient(90deg,transparent,#173b292b);pointer-events:none;}
  .forest-scene-title {z-index:1;top:5%;left:5%;}
  .forest-scene-caption {z-index:1;bottom:24px;left:5%;}
  .forest-editor {height:100%;padding:24px;overscroll-behavior:contain;background:linear-gradient(90deg,#143422d9,#14342299),url('/assets/forest-elf-home-v1/forest-hero.webp') right center/cover;}
  .forest-editor-inner {min-height:100%;box-sizing:border-box;box-shadow:0 16px 44px #061d1752;}
}
@media(max-width:760px){.forest-home-nav{height:54px;padding:0 16px;gap:14px;}.forest-home-nav>strong{font-size:18px;}.forest-home-nav>span{font-size:12px;padding-left:14px;}.forest-home-layout{display:block;max-width:none;height:auto;}.forest-visual{position:relative;}.forest-editor{padding:16px 14px 28px;max-height:none;overflow:visible;}.forest-editor-inner{padding:22px;border-radius:22px;}.forest-scene-title h2{font-size:4.5cqw;}.forest-scene-caption{font-size:10px;}.forest-style-image{aspect-ratio:1.9;}}

.forest-home-nav .forest-home-link {display:inline-flex;align-items:center;min-height:44px;color:inherit;text-decoration:none;border-radius:4px;}
.forest-home-nav .forest-home-link:focus-visible {outline:2px solid #f2e7c1;outline-offset:4px;}
