/* Web 展示首页：独立样式，不修改框架公共样式。 */
html, body { min-width: 0; }
.topbar { height: 58px; flex-basis: 58px; padding: 0 24px; background: linear-gradient(110deg, #f8fbff, #fff 50%, #f3f1ff); }
.h-logo { width: 34px; height: 34px; border-radius: 10px; }
.h-name { font-size: 18px; }
.h-nav { margin-left: 18px; }
.h-user { background: linear-gradient(145deg, #5589ff, #7656ff); box-shadow: 0 3px 12px #536dff26; }
.h-points, .history-btn { height: 32px; background: #ffffffb3; border-radius: 9px; }
#creationModeBar { display: inline-flex !important; flex-wrap: nowrap !important; padding: 0 !important; background: transparent !important; gap: 4px !important; }
#creationModeBar button { font-size: 12px; white-space: nowrap; }
#creationModeText { display: none; }
#creationModeBar [hidden] { display: none !important; }
.side-rail { width: 84px; flex-basis: 84px; padding-top: 8px; background: linear-gradient(180deg, #fbfdff, #fff 65%, #f6f2ff); }
.rail-models { gap: 8px; }
.rail-item { min-height: 70px; gap: 5px; padding: 11px 3px 9px; font-weight: 500; }
.rail-item .ic { width: 28px; height: 28px; background: transparent; color: #4b5362; font-size: 23px; }
.rail-item.active { border-color: transparent; box-shadow: 0 1px 0 #dce6ff; }
.rail-item.active .ic { color: #316dff; }
.rail-item span { font-size: 11px; font-weight: 500; }
.rail-item .coming-soon { font-size: 9px; color: #8992a5; line-height: 1; }
.rail-bottom { width: 68px; border-top: 1px solid #e5e9f5; }
.page-shell {
  background-color: #f6f9ff;
  background-image: linear-gradient(#92b0ef12 1px, transparent 1px), linear-gradient(90deg, #92b0ef12 1px, transparent 1px), radial-gradient(ellipse at 22% 8%, #dce7ffbb, transparent 60%), radial-gradient(ellipse at 92% 22%, #eee4ffb0, transparent 58%);
  background-size: 40px 40px, 40px 40px, 100% 100%, 100% 100%;
}
.page-content { width: min(calc(100% - 52px), 1240px); padding: 48px 0 84px; }
.creation-hero { padding-bottom: 0; }
.hero-copy { text-align: center; margin-bottom: 36px; }
.hero-copy h1 { min-height: 0; font-size: clamp(32px, 3.6vw, 46px); line-height: 1.3; letter-spacing: -.04em; font-weight: 800; }
.hero-copy h1 .ht-line { color: #2956b5; background: linear-gradient(100deg, #1b305c 8%, #2e68e6 52%, #7656ff 95%); background-clip: text; -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero-copy h1 .ht-line2 { margin-top: 0; }
.hero-copy p { color: #7e8ca4; font-size: 14px; margin-top: 17px; }
.quick-start-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.quick-card-visual { min-height: 0; aspect-ratio: 1.66; padding: 20px; border-radius: 18px; border-color: #ffffff80; box-shadow: 0 10px 28px #3d529d12; }
.quick-card-copy { gap: 5px; }
.quick-card-copy strong { font-size: 20px; font-weight: 750; text-shadow: 0 2px 12px #0005; }
.quick-card-copy small { font-size: 12px; color: #ffffffdc; }
.quick-card-shade { background: linear-gradient(180deg, #11243800 32%, #11243835 55%, #0d162bd9 100%); }
.quick-card-visual[aria-disabled="true"] { cursor: default; }
.quick-card-visual[aria-disabled="true"]:hover { transform: none; }
.quick-card-visual[aria-disabled="true"] .quick-card-arrow { display: none; }
.quick-card-visual > .coming-soon { position: absolute; top: 13px; right: 13px; padding: 4px 9px; border-radius: 20px; border: 1px solid #ffffff63; color: white; background: #15223b6b; backdrop-filter: blur(8px); font-size: 10px; }
.inspiration-strip { margin-top: 34px; padding: 10px 13px; border-radius: 16px; border-color: #d1dfff; background: #ffffffc9; box-shadow: 0 6px 20px #507fc008; }
.insp-chip { padding: 7px 12px; font-size: 12px; background: #f6f9ff; border-color: #e0e9ff; color: #567093; }
.inspiration-label { font-size: 12px; color: #637692; }
.discover-section { margin-top: 42px; }
.discover-head { align-items: center; }
.discover-head h2 { font-size: 23px; color: #2b3c57; }
.discover-head p { font-size: 12px; margin-top: 7px; color: #8791a2; }
.gallery-tabs { float: right; position: relative; z-index: 2; height: 48px; padding-right: 10px; }
.gallery-tabs-right { gap: 10px; }
.upload-tpl-btn { height: 31px; color: #7d899c; font-size: 11px; background: #f6f8fc; }
.gallery-sort { font-size: 12px; }
.gallery-tags { gap: 8px; height: 48px; padding: 7px; border: 1px solid #e2eafb; background: #ffffffd9; border-radius: 13px; }
.gallery-tag { height: 32px; padding: 8px 15px; font-size: 12px; color: #77849e; }
.gallery-tag.active { border-radius: 10px; background: #edf3ff; }
.gallery-tag.active::after { display: none; }
.gallery-grid { gap: 14px; padding-top: 16px; }
.gallery-item { border-radius: 16px; }
.gallery-note { margin-top: 10px; color: #8794a9; font-size: 11px; }
.composer-wrap { display: none; }
.composer-heading { margin: 0 0 28px; }
.back-showcase { display: inline-flex; align-items: center; gap: 6px; color: #61718d; font-size: 13px; padding: 8px 0; margin-bottom: 22px; }
.back-showcase:hover { color: var(--primary); }
.composer-heading h2 { color: #253a5b; font-size: 30px; margin-bottom: 8px; }
.composer-heading p { font-size: 14px; color: #8490a5; }
.composer-mode-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 18px; font-size: 12px; color: #61718d; }
.composer-mode-controls [hidden] { display: none !important; }
.composer-mode-controls button, .composer-mode-controls select { padding: 7px 10px; border: 1px solid #d5e0f5; border-radius: 8px; background: #ffffffc9; cursor: pointer; }
body.composing .composer-wrap { display: block; margin-top: 0; }
body.composing .hero-copy, body.composing .quick-start, body.composing .inspiration-strip, body.composing .discover-section { display: none; }
body.composing .page-content { max-width: 1060px; padding-top: 26px; }
body.composing .composer { box-shadow: 0 20px 64px #4773bb14; }
body.composing #promptInput { min-height: 148px; padding-top: 15px; }
body.composing .input-row { align-items: flex-end; padding: 18px; }
.showcase-assistant { position: absolute; right: 28px; bottom: 48px; z-index: 8; display: flex; align-items: center; gap: 8px; padding: 14px 20px; border-radius: 30px; font-size: 14px; font-weight: 600; color: white; background: linear-gradient(120deg, #4c8cff, #154de9); box-shadow: 0 10px 30px #3068e638; }
.showcase-assistant i { font-size: 22px; }
body.composing .showcase-assistant, body.creating .showcase-assistant, body.chatting .showcase-assistant { display: none; }
.quick-card-visual:focus-visible, .rail-item:focus-visible, .gallery-item:focus-visible, .gallery-tag:focus-visible, .insp-chip:focus-visible, button:focus-visible { outline: 3px solid #6195ff; outline-offset: 4px; }
@media (max-width: 1280px) {
  .h-nav { display: none; }
  .page-content { width: calc(100% - 48px); padding-top: 48px; }
  .quick-start-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .quick-card-visual { aspect-ratio: 1.62; padding: 17px; }
  .quick-card-copy strong { font-size: 18px; }
  .quick-card-copy small { font-size: 11px; }
  .gallery-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .topbar { padding: 0 14px; }
  .h-points { display: none; }
  .hero-copy h1 { font-size: 34px; }
  .hero-copy p { font-size: 12px; }
  .quick-card-visual { aspect-ratio: 1.4; padding: 14px; }
  .quick-card-copy strong { font-size: 16px; }
  .quick-card-copy small { font-size: 10px; }
  .gallery-tabs { float: none; justify-content: flex-end; height: 38px; margin-bottom: 8px; }
}
@media (max-width: 680px) {
  .topbar { height: 58px; flex-basis: 58px; gap: 6px; padding: 0 12px; }
  .h-left { gap: 7px; }
  .h-name { font-size: 15px; white-space: nowrap; }
  .h-right { gap: 5px; }
  .h-user { width: 29px; height: 29px; }
  .history-btn { display: none; }
  #creationModeBar { gap: 3px !important; }
  #creationModeBar button { padding: 6px 8px; font-size: 11px; }
  .side-rail { width: 64px; flex-basis: 64px; }
  .rail-models { padding: 4px; gap: 3px; }
  .rail-item, .rail-action { width: 56px; min-height: 66px; }
  .rail-bottom { width: 56px; }
  .rail-item span { font-size: 10px; }
  .page-content { width: calc(100% - 28px); padding-top: 34px; }
  .hero-copy { margin-bottom: 25px; }
  .hero-copy h1 { font-size: clamp(21px, 4.5vw, 30px); letter-spacing: -.05em; }
  .hero-copy p { font-size: 11px; line-height: 1.7; margin-top: 13px; }
  .quick-start-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .quick-card-visual { aspect-ratio: 1.15; padding: 11px; border-radius: 13px; }
  .quick-card-copy strong { font-size: 14px; }
  .quick-card-copy small { font-size: 10px; line-height: 1.4; }
  .quick-card-visual > .coming-soon { font-size: 9px; padding: 3px 6px; top: 8px; right: 8px; }
  .inspiration-strip { margin-top: 22px; gap: 10px; padding: 9px; }
  .inspiration-label { font-size: 10px; }
  .insp-chip { font-size: 10px; padding: 6px 9px; }
  .discover-section { margin-top: 28px; }
  .discover-head { gap: 10px; }
  .discover-head h2 { font-size: 20px; }
  .discover-head p { font-size: 10px; max-width: 200px; line-height: 1.6; }
  .gallery-more { font-size: 10px; padding: 0 8px; flex-shrink: 0; }
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .gallery-item, .gallery-item:nth-child(n) { min-height: 190px; }
  .gallery-title { font-size: 11px; }
  .showcase-assistant { right: 14px; bottom: 46px; padding: 10px 13px; font-size: 12px; }
  body.composing .page-content { padding-top: 14px; }
  .composer-heading h2 { font-size: 24px; }
  .composer-heading p { font-size: 12px; line-height: 1.7; }
  .composer-model { flex-wrap: wrap; gap: 12px; }
  .model-switch { margin-left: 0; }
  body.composing .input-row { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; align-items: start; padding: 14px; }
  body.composing .input-row .plus { width: 40px; height: 48px; }
  body.composing #promptInput { width: 100%; min-width: 0; min-height: 136px; padding-top: 8px; }
  body.composing .input-row .send { grid-column: 2; justify-self: end; }
  .setting-row { flex-wrap: wrap; gap: 8px; }
  .model-chips { flex: 1 1 100%; flex-wrap: wrap; width: 100%; gap: 6px; }
  .chat-feature-bar { flex-wrap: wrap; }
  .icp-bar-text { font-size: 9px; padding: 0 8px; }
}
@media (prefers-reduced-motion: reduce) { .quick-card-visual, .quick-card-cover, .gallery-item, .gallery-item img { transition: none; } }
