/* 柔和的背景反射仅出现在后台首页设置，给玻璃面板提供可见的透光层次。 */
.app-shell .page:has(form[data-form="home"]) {
  background-image: radial-gradient(ellipse 520px 340px at 75% 33%, rgba(209,230,243,.7), transparent 75%),
    radial-gradient(ellipse 540px 370px at 18% 69%, rgba(242,207,225,.6), transparent 75%);
}
.app-shell form[data-form="home"] {
  max-width: 980px;
  padding: clamp(22px, 3vw, 36px);
  border: 1px solid rgba(255,255,255,.9);
  border-radius: 18px;
  background: linear-gradient(120deg, rgba(255,255,255,.75), rgba(251,241,246,.64));
  box-shadow: 0 14px 38px rgba(55,38,52,.08), inset 0 1px 0 rgba(255,255,255,.95), inset 0 0 0 1px rgba(173,150,169,.12);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
}
.app-shell form[data-form="home"] .field-grid { gap: 22px; }
.app-shell form[data-form="home"] .field > span:first-child { color: #312737; font-weight: 600; }
.app-shell form[data-form="home"] input:not([type="checkbox"]):not([type="file"]),
.app-shell form[data-form="home"] textarea { background: rgba(255,255,255,.88); border-color: #d6cad4; }
.app-shell form[data-form="home"] :is(input, textarea):focus-visible {
  outline: 2px solid #a5104b;
  outline-offset: 2px;
  border-color: #a5104b;
  background: #fff;
}
.app-shell form[data-form="home"] .form-actions { margin-top: 28px; }
.app-shell form[data-form="home"] > .meta { margin-top: 12px; color: #625565; }
.app-shell form[data-form="home"] .home-logo-preview { padding: 8px; border-radius: 10px; background: rgba(255,255,255,.94); }

/* 仅草稿预览具有操作栏；预览主体仍与公开页面一致。 */
.landing-shell > .publication-bar,
.showcase-shell > .publication-bar {
  width: min(1200px, calc(100% - 64px));
  margin: 20px auto 28px;
  padding: 20px 24px;
  border: 1px solid #e4dce4;
  border-top-color: #a8cddd;
  border-radius: 16px;
  color: #312737;
  background: linear-gradient(115deg, rgba(255,255,255,.95), rgba(250,236,243,.9));
  box-shadow: 0 12px 30px rgba(40,25,39,.12), inset 0 1px 0 rgba(255,255,255,.95);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
}
.landing-shell > .publication-bar strong,
.showcase-shell > .publication-bar strong { font-size: 15px; letter-spacing: .01em; }
.landing-shell > .publication-bar p,
.showcase-shell > .publication-bar p { color: #615363; line-height: 1.6; }
.landing-shell > .publication-bar .button,
.showcase-shell > .publication-bar .button {
  min-height: 44px;
  border-radius: 9px;
  font-weight: 600;
  transition: background-color 150ms ease, border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}
.landing-shell > .publication-bar .button.secondary,
.showcase-shell > .publication-bar .button.secondary { color: #312737; background: rgba(255,255,255,.9); border-color: #d9cbd6; }
.landing-shell > .publication-bar .button.secondary:hover:not(:disabled),
.showcase-shell > .publication-bar .button.secondary:hover:not(:disabled) { background: #faf2f6; border-color: #bdabb9; }
.landing-shell > .publication-bar .button.primary,
.showcase-shell > .publication-bar .button.primary { color: #fff; background: #a5104b; border-color: #901043; box-shadow: inset 0 1px 0 rgba(255,255,255,.28), 0 3px 8px rgba(101,16,50,.14); }
.landing-shell > .publication-bar .button.primary:hover:not(:disabled),
.showcase-shell > .publication-bar .button.primary:hover:not(:disabled) { background: #870d3e; }
.landing-shell > .publication-bar .button:disabled,
.showcase-shell > .publication-bar .button:disabled { color: #605761; background: #eee8ed; border-color: #d7cfd5; box-shadow: none; opacity: 1; }
.landing-shell > .publication-bar .button:focus-visible,
.showcase-shell > .publication-bar .button:focus-visible { outline: 2px solid #a5104b; outline-offset: 3px; }
.landing-shell > .publication-bar .button:active:not(:disabled),
.showcase-shell > .publication-bar .button:active:not(:disabled) { transform: translateY(1px); box-shadow: inset 0 2px 4px rgba(49,39,55,.15); }

/* 对话框只在后台工作区应用，表单保持清晰实底。 */
body:has(.app-shell) dialog#editor-dialog {
  border: 1px solid rgba(255,255,255,.9);
  border-radius: 14px;
  background: #faf7f9;
  box-shadow: 0 20px 60px rgba(49,39,55,.24), inset 0 1px 0 #fff;
}
body:has(.app-shell) #editor-dialog .dialog-header {
  background: linear-gradient(110deg, #fff, #f9eff4);
  border-bottom-color: #e8dfe6;
}
body:has(.app-shell) #editor-dialog .dialog-body { background: rgba(255,255,255,.74); }
body:has(.app-shell) #editor-dialog :is(input, textarea, select):focus-visible {
  outline: 2px solid #a5104b;
  outline-offset: 2px;
}
@media (max-width: 700px) {
  .app-shell form[data-form="home"] { padding: 20px; border-radius: 14px; }
  .landing-shell > .publication-bar,
  .showcase-shell > .publication-bar { width: calc(100% - 40px); margin-top: 16px; padding: 16px; }
  .landing-shell > .publication-bar .actions,
  .showcase-shell > .publication-bar .actions { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .landing-shell > .publication-bar .button,
  .showcase-shell > .publication-bar .button { transition: none; }
}
