.home-start{width:min(880px,100%);margin:24px auto 0;padding:26px;border:1px solid #ffffff1a;border-radius:20px;background:#202020;text-align:left;box-sizing:border-box}.home-start h2{margin:0 0 8px;font-size:22px}.home-start p{color:#aaa;font-size:13px;line-height:1.7}.home-start-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:20px}.home-start-actions button{display:flex;flex-direction:column;align-items:flex-start;gap:12px;padding:22px 18px;border:1px solid #ffffff20;border-radius:14px;background:#292929;color:#eee;cursor:pointer;text-align:left}.home-start-actions button:hover{border-color:#b99c66;background:#303030}.home-start-actions button:disabled{opacity:.5;cursor:wait}.home-start-actions button>span{font-size:25px;color:#d4bd91}.home-start-actions strong{font-size:16px}.home-start-actions small{font-size:12px;color:#aaa;line-height:1.6}.home-project-link{display:block;text-decoration:none;color:inherit;padding:24px}.home-project-link p,.home-project-status{color:#aaa;font-size:13px}.home-guest .home-start{background:#f9f8f5;border-color:#ddd;color:#242424}.home-guest .home-start-actions button{background:white;border-color:#ddd;color:#242424}.home-guest .home-start-actions small,.home-guest .home-start p{color:#666}@media(max-width:650px){.home-start{padding:18px}.home-start-actions{grid-template-columns:1fr}.home-start-actions button{padding:16px;gap:8px}.home-start h2{font-size:20px}}
body.home-page .home-start{background:var(--composer-bg);border-color:var(--line-strong);color:var(--text)}
.home-agent-input{width:100%;box-sizing:border-box;resize:vertical;min-height:110px;margin-top:14px;padding:14px;border:0;border-radius:12px;background:var(--composer-bg);color:var(--text);font:inherit;line-height:1.7}
.home-agent-input::placeholder{color:var(--faint)}
.home-agent-tools{display:flex;align-items:center;flex-wrap:wrap;gap:8px}
.home-agent-tools button,.home-conversation-toolbar button{padding:9px 12px;border:1px solid var(--line);border-radius:10px;background:var(--surface-2);color:var(--text);cursor:pointer;font:inherit}
.home-agent-tools .home-agent-send{margin-left:auto;background:var(--accent);color:var(--on-accent);min-width:42px}
body.home-page .home-start p{color:var(--muted)}
.home-conversation-toolbar{display:flex;justify-content:space-between;gap:8px;align-items:center;margin-top:16px}
.home-conversation-toolbar[hidden],.home-thread[hidden]{display:none}
.home-conversation-toolbar>div{display:flex;gap:6px}
#creator .home-thread{max-height:440px;overflow:auto;margin:12px 0}
.home-start-actions{margin-top:24px}
@media(max-width:650px){.home-agent-input{font-size:16px}.home-agent-tools{gap:5px}.home-agent-tools button{padding:8px}.home-conversation-toolbar{flex-wrap:wrap}}

body.home-page .home-start{width:100%;margin-left:0;margin-right:0}
body.home-page .home-agent-tools #startButton{margin-left:0}
body.home-page #creator .home-thread{overscroll-behavior-y:auto}

@media(max-width:650px){.home-agent-tools #modelButton{max-width:145px;overflow:hidden;text-overflow:ellipsis}.home-agent-tools{gap:4px}}

/* Published homepage sections share the existing workspace palette and type scale. */
.homepage-content-host{min-width:0;width:100%;box-sizing:border-box}
.homepage-content-host[hidden],body.home-page .homepage-gallery[hidden]{display:none!important}
.homepage-content-host[data-home-position='before-creator']{order:1}
body.home-page .homepage-gallery{width:100%;max-width:none;margin:28px 0 0}
.homepage-content-section{margin:28px 0;color:var(--text);text-align:left}
.homepage-section-heading{margin-bottom:16px}
.homepage-section-heading h2{margin:0;font-size:22px;line-height:1.4;font-weight:600;letter-spacing:-.3px}
.homepage-section-heading p{max-width:780px;margin:8px 0 0;color:var(--muted);font-size:13px;line-height:1.7;white-space:pre-wrap;overflow-wrap:anywhere}
.homepage-content-items{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.homepage-content-card{display:flex;min-width:0;flex-direction:column;overflow:hidden;border:1px solid var(--line-strong);border-radius:14px;background:var(--surface)}
.homepage-card-cover{display:block;width:100%;aspect-ratio:16/10;object-fit:cover;background:var(--surface-2)}
.homepage-card-copy{display:flex;flex:1;min-width:0;flex-direction:column;align-items:flex-start;gap:10px;padding:20px}
.homepage-card-copy h3{margin:0;color:var(--text);font-size:16px;font-weight:600;line-height:1.5;overflow-wrap:anywhere}
.homepage-card-copy p{margin:0;color:var(--muted);font-size:13px;line-height:1.7;white-space:pre-wrap;overflow-wrap:anywhere}
.homepage-content-action{display:inline-flex;align-items:center;justify-content:center;min-height:36px;margin-top:auto;padding:7px 14px;border:1px solid var(--line-strong);border-radius:9px;background:var(--surface-2);color:var(--text);font:inherit;font-size:12px;text-decoration:none;cursor:pointer;box-sizing:border-box}
.homepage-content-action:hover{background:var(--surface-3);border-color:var(--accent)}
.homepage-content-section[data-layout='feature'] .homepage-content-items{grid-template-columns:1fr}
.homepage-content-section[data-layout='feature'] .homepage-content-card{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);align-items:stretch}
.homepage-content-section[data-layout='feature'] .homepage-card-cover{height:100%;min-height:220px;max-height:380px}
.homepage-content-section[data-layout='feature'] .homepage-card-copy{padding:28px;justify-content:center}
.homepage-content-section[data-layout='feature'] .homepage-content-card:not(:has(img)){grid-template-columns:1fr}
.homepage-content-section[data-layout='list'] .homepage-content-items{grid-template-columns:1fr}
.homepage-content-section[data-layout='list'] .homepage-content-card{flex-direction:row;align-items:stretch}
.homepage-content-section[data-layout='list'] .homepage-card-cover{width:180px;height:132px;align-self:center;object-fit:cover}
.homepage-content-announcement{padding:20px 24px;border:1px solid var(--line-strong);border-radius:12px;background:var(--surface-2)}
.homepage-content-announcement .homepage-section-heading{margin-bottom:0}
.homepage-content-announcement .homepage-section-heading h2{font-size:16px}
.homepage-content-announcement .homepage-content-items{margin-top:16px}
.homepage-content-announcement .homepage-content-card{background:var(--surface)}
.homepage-preview-banner{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:20px 0;padding:12px 16px;border:1px solid var(--line-strong);border-radius:10px;background:var(--surface-2);color:var(--muted);font-size:12px}
.homepage-preview-banner a{color:var(--text);white-space:nowrap}
.homepage-case-viewer{box-sizing:border-box;width:min(1000px,calc(100vw - 32px));max-height:calc(100dvh - 32px);padding:24px;border:1px solid var(--line-strong);border-radius:16px;background:var(--surface);color:var(--text)}
.homepage-case-viewer::backdrop{background:#000b}
.homepage-case-viewer h2{margin:0 40px 16px 0;font-size:18px;line-height:1.5}
.homepage-case-viewer video{display:block;width:100%;max-height:calc(100dvh - 145px);background:#000;object-fit:contain}
.homepage-viewer-close{position:absolute;top:14px;right:14px;width:32px;height:32px;border:0;border-radius:50%;background:var(--surface-3);color:var(--text);font:inherit;font-size:22px;cursor:pointer}
@media(max-width:1000px){.homepage-content-items{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:650px){.homepage-content-items{grid-template-columns:1fr;gap:12px}.homepage-section-heading h2{font-size:19px}.homepage-card-copy{padding:16px}.homepage-content-section[data-layout='feature'] .homepage-content-card{grid-template-columns:1fr}.homepage-content-section[data-layout='feature'] .homepage-card-cover{height:auto;min-height:0}.homepage-content-section[data-layout='feature'] .homepage-card-copy{padding:18px}.homepage-content-section[data-layout='list'] .homepage-card-cover{width:100px;height:100px}.homepage-content-announcement{padding:18px}.homepage-preview-banner{align-items:flex-start;flex-direction:column;gap:8px}.homepage-case-viewer{padding:18px}}
body.home-page .guest-hero-copy .homepage-managed-title{font-family:inherit;font-size:clamp(32px,5vw,60px);line-height:1.25;font-weight:600;letter-spacing:-1px;overflow-wrap:anywhere;white-space:normal}
/* Preserve the requested positions even where the guest homepage uses flex ordering. */
body.home-page:has(.homepage-content-host) .hero-section>.hero-copy{order:0}
body.home-page:has(.homepage-content-host) .hero-section>.homepage-preview-banner{order:1}
body.home-page:has(.homepage-content-host) .hero-section>[data-home-position='before-creator']{order:2}
body.home-page:has(.homepage-content-host) .hero-section>#creator{order:3}
body.home-page:has(.homepage-content-host) .hero-section>#guestGallery{order:4}
body.home-page:has(.homepage-content-host) .hero-section>#guestHow{order:5}
/* 首页运营弹窗与项目共用主题。 */
.homepage-announcement-dialog{box-sizing:border-box;width:min(660px,calc(100vw - 32px));max-height:85dvh;overflow:auto;border:1px solid var(--line-strong);border-radius:18px;padding:30px;color:var(--text);background:var(--surface);box-shadow:0 24px 90px #0006}
.homepage-announcement-dialog::backdrop{background:rgba(0,0,0,.65)}
.homepage-announcement-dialog .homepage-content-section{margin-top:16px}.homepage-announcement-dialog .homepage-viewer-close{position:sticky;top:0;display:block;margin-left:auto}
.homepage-popup-reopen{padding:9px 15px;border:1px solid var(--line);border-radius:9px;background:var(--surface-2);color:var(--text);font:inherit;font-size:12px;cursor:pointer}
.homepage-card-copy .homepage-content-action+.homepage-content-action{margin-left:8px}
/* Uploaded videos are visible inline in all homepage layouts. */
.homepage-card-video{display:block;width:100%;min-width:0;aspect-ratio:16/9;max-height:420px;object-fit:contain;background:#101310}
.homepage-content-section[data-layout='feature'] .homepage-content-card:has(video){grid-template-columns:minmax(0,1.4fr) minmax(0,1fr)}
.homepage-content-section[data-layout='feature'] .homepage-card-video{height:100%;min-height:220px;max-height:420px;align-self:center}
.homepage-content-section[data-layout='feature'] .homepage-content-card:not(:has(.homepage-card-copy)){grid-template-columns:1fr}
.homepage-content-section[data-layout='list'] .homepage-card-video{width:240px;min-height:135px;align-self:center;flex-shrink:0}
@media(max-width:650px){.homepage-content-section[data-layout='feature'] .homepage-content-card:has(video){grid-template-columns:1fr}.homepage-content-section[data-layout='feature'] .homepage-card-video{height:auto;min-height:0}.homepage-content-section[data-layout='list'] .homepage-content-card:has(video){flex-direction:column}.homepage-content-section[data-layout='list'] .homepage-card-video{width:100%}}
