/* 展示区：按 XSHOOW 桌面端 1916×1039 真实界面还原（正文区域） */
.showcase .app-ui { grid-template-columns: 62px 280px minmax(0, 1fr); }
.showcase .au-dock { grid-column: 1; display: flex; }
.showcase .au-side { grid-column: 2; }
.showcase .au-main { grid-column: 3; }
.au-main { min-width: 0; display: flex; flex-direction: column; background: #fff; }
.au-tabstrip { height: 44px; flex: 0 0 44px; display: flex; align-items: center; gap: 6px; padding: 4px; background: #fff; border-bottom: 1px solid #ededed; }
.au-menu { display: none !important; }
.au-strip-tab { height: 36px; flex: 0 0 auto; display: flex; align-items: center; gap: 50px; padding: 10px; line-height: 16px; border-radius: 8px; background: #f1f1f2; color: #303036; font-size: 14px; cursor: default; }
.au-strip-title { flex: 0 0 auto; max-width: 270px; }
.au-strip-close { width: 20px; height: 20px; margin-right: -6px; padding: 0; border: 0; border-radius: 6px; background: transparent; color: #6f6f76; display: grid; place-items: center; cursor: pointer; }
.au-strip-close:hover { background: #e2e2e5; }
.au-strip-close svg { width: 12px; height: 12px; }
.au-strip-new { width: 28px; height: 28px; padding: 0; border: 0; border-radius: 7px; background: transparent; color: #5a5a60; display: grid; place-items: center; cursor: pointer; }
.au-strip-new:hover { background: #f1f1f2; }
.au-strip-new svg { width: 16px; height: 16px; }
.au-stage { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; }
.au-welcome { width: 100%; max-width: 900px; margin: auto; display: flex; flex-direction: column; align-items: center; padding: 0 32px 78px; text-align: center; }
.au-welcome-title { margin: 0 0 10px; font-size: 26px; line-height: 1.35; font-weight: 600; letter-spacing: -.01em; color: #202123; }
.au-welcome-context { margin: 0; font-size: 15px; line-height: 1.6; color: #9b9b9b; }
.au-starters { width: 100%; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 28px; }
.au-starter { width: 100%; height: 98px; padding: 14px 16px 15px; border: 1px solid #e8e8ea; border-radius: 12px; background: #fff; display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 0; text-align: left; cursor: pointer; transition: border-color .14s ease, box-shadow .14s ease, transform .14s ease; }
.au-starter:hover { border-color: #d8d8dc; box-shadow: 0 6px 18px -12px rgba(16,24,40,.28); transform: translateY(-1px); }
.au-starter svg { width: 24px; height: 24px; }
.au-starter:nth-child(1) svg { color: #5b9df9; }
.au-starter:nth-child(2) svg { color: #b18cff; }
.au-starter:nth-child(3) svg { color: #52c98b; }
.au-starter:nth-child(4) svg { color: #f59e6b; }
.au-starter b { font-size: 15px; font-weight: 500; color: #202123; line-height: 1.35; }
.au-resume { margin-top: 30px; padding: 0; border: 0; background: transparent; color: #6f7278; font: inherit; font-size: 15px; cursor: pointer; }
.au-resume:hover { color: #202123; }
.au-msgs { padding: 20px 40px 10px; display: flex; flex-direction: column; gap: 14px; }
.au-msg { display: flex; }
.au-msg[data-role="user"] { justify-content: flex-end; }
.au-bubble { max-width: 70%; padding: 10px 14px; border-radius: 14px; background: #f4f4f5; font-size: 15.5px; line-height: 1.65; color: #202123; }
.au-msg[data-role="user"] .au-bubble { background: #eef3fb; }
.au-bubble p { margin: 0; }
.au-bubble ul { margin: 6px 0 0; padding-left: 18px; }
/* 输入区 */
.au-compose { flex: 0 0 118px; width: 780px; height: 118px; margin: 10px auto 16px; padding: 12px 14px 10px; border: 1px solid #e3e3e5; border-radius: 18px; background: #fff; box-shadow: 0 2px 8px -6px rgba(16,24,40,.12); display: flex; flex-direction: column; }
.au-compose textarea { flex: 1; width: 100%; min-height: 0; padding: 4px 0; border: 0; outline: 0; background: transparent; resize: none; font: inherit; font-size: 15.5px; line-height: 1.55; color: #202123; }
.au-compose textarea::placeholder { color: #9b9b9b; }
.au-compose-foot { flex: 0 0 28px; display: flex; align-items: center; gap: 12px; }
.au-icon-btn { width: 28px; height: 28px; padding: 0; border: 0; border-radius: 8px; background: transparent; color: #6f6f76; display: grid; place-items: center; cursor: pointer; }
.au-icon-btn:hover { background: #f2f2f3; }
.au-icon-btn svg { width: 18px; height: 18px; }
.au-plus { color: #5c5c63; }
.au-perm { height: 28px; padding: 0 6px; border: 0; border-radius: 8px; background: transparent; color: #4b4b52; font: inherit; font-size: 13.5px; display: flex; align-items: center; gap: 7px; cursor: pointer; }
.au-perm:hover { background: #f2f2f3; }
.au-perm-ring { width: 14px; height: 14px; border-radius: 50%; border: 2px solid #f0a04b; position: relative; display: inline-block; }
.au-model-wrap { margin-left: auto; position: relative; }
.au-model { height: 28px; padding: 0 6px; border: 0; border-radius: 8px; background: transparent; color: #4b4b52; font: inherit; font-size: 13.5px; cursor: pointer; }
.au-model:hover { background: #f2f2f3; }
.au-model-menu { position: absolute; right: 0; bottom: 34px; min-width: 168px; width: max-content; max-width: 240px; padding: 6px; border: 1px solid #e6e6e8; border-radius: 12px; background: #fff; box-shadow: 0 18px 40px -20px rgba(16,24,40,.4); display: flex; flex-direction: column; gap: 2px; z-index: 4; }
.au-model-menu[hidden] { display: none; }
.au-model-menu button { padding: 8px 10px; border: 0; border-radius: 8px; background: transparent; font: inherit; font-size: 13px; color: #202123; text-align: left; display: flex; justify-content: space-between; gap: 12px; cursor: pointer; }
.au-model-menu button:hover { background: #f3f3f4; }
.au-model-menu span { color: #9b9b9b; font-size: 12px; }
.au-model-menu b { font-weight: 500; color: #202123; white-space: nowrap; }
.au-mic { color: #55555c; }
.au-send { width: 32px; height: 32px; border-radius: 50%; background: #202123; color: #fff; display: grid; place-items: center; }
.au-send:hover { background: #000; }
.au-send svg { width: 16px; height: 16px; }
/* 侧边面板 */
.au-panel { position: absolute; top: 42px; right: 0; bottom: 0; width: 0; overflow: hidden; background: #fff; border-left: 1px solid #ededed; transition: width .22s ease; z-index: 5; padding: 0; flex: none; }
.app-ui.is-panel-open .au-panel { width: 460px; }
.au-panel-inner { width: 460px; height: 100%; display: flex; flex-direction: column; }
.au-tabs { height: 38px; display: flex; align-items: center; gap: 2px; padding: 0 8px; border-bottom: 1px solid #ededed; }
.au-tab { height: 30px; padding: 0 10px; border: 0; border-radius: 8px; background: transparent; color: #6f6f76; font: inherit; font-size: 13.5px; cursor: pointer; }
.au-tab.is-active { background: #f1f1f2; color: #202123; }
.au-panel-bar { height: 40px; display: flex; align-items: center; gap: 4px; padding: 0 8px; border-bottom: 1px solid #f0f0f1; }
.au-url { flex: 1; height: 28px; display: flex; align-items: center; padding: 0 10px; border: 1px solid #e8e8ea; border-radius: 8px; background: #fafafa; }
.au-url input { width: 100%; border: 0; outline: 0; background: transparent; font: inherit; font-size: 12px; }
.au-panel-body { flex: 1; min-height: 0; overflow: auto; }
.au-view { padding: 16px; }
.au-panel-empty { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 60px 16px; color: #9b9b9b; text-align: center; }
.au-panel-empty svg { width: 26px; height: 26px; }
.au-panel-empty b { font-size: 13px; color: #5f5f66; font-weight: 500; }
.au-panel-empty span { font-size: 12px; }
.au-newtab { display: flex; flex-direction: column; align-items: center; gap: 8px; padding-top: 24px; }
.au-newtab-logo { width: 34px; height: 34px; }
.au-newtab-name { margin: 0; font-size: 15px; font-weight: 600; }
.au-newtab-search { width: 100%; height: 34px; display: flex; align-items: center; gap: 8px; padding: 0 12px; border: 1px solid #e8e8ea; border-radius: 10px; background: #fafafa; }
.au-newtab-search svg { width: 14px; height: 14px; color: #8a8a90; }
.au-newtab-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; font-size: 13px; }
.au-shortcuts { width: 100%; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 6px; }
.au-shortcuts button { height: 66px; border: 0; border-radius: 10px; background: #fafafa; color: #4b4b52; font: inherit; font-size: 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; cursor: pointer; }
.au-shortcuts button:hover { background: #f1f1f2; }
.au-shortcut-icon { width: 22px; height: 22px; display: grid; place-items: center; }
.au-shortcut-icon svg { width: 20px; height: 20px; }
.au-terminal { padding: 12px; border-radius: 10px; background: #17171c; color: #d7d7dc; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; line-height: 1.8; }
.au-terminal p { margin: 0; }
.au-term-user { color: #8abeb7; }
.au-term-cmd { color: #fff; }
.au-term-dim { color: #77777f; }
.au-scrim, .au-panel-scrim { display: none; }
.au-toast { position: absolute; left: 50%; bottom: 132px; transform: translateX(-50%); padding: 8px 14px; border-radius: 10px; background: #202123; color: #fff; font-size: 12px; z-index: 20; }
.app-ui.is-collapsed { grid-template-columns: 0 1fr; }
.app-ui.is-collapsed .au-side { display: none; }
.app-ui.is-collapsed .au-main { grid-column: 1 / 3; }
@media (max-width: 900px) {
  .showcase .app-window { border-radius: 10px; }
  .app-scaler { border-radius: 10px; }
}
/* 微调：应用栏图标间距与底部徽标 */
.au-dock { position: relative; }
.au-dock-apps { gap: 8px; margin: 2px 0 auto; }
.au-dock-foot { position: absolute; left: 0; right: 0; bottom: 10px; margin: 0; }
.au-dock-user { width: 30px; height: 30px; border-radius: 50%; background: #3a3a3c; color: #fff; display: grid; place-items: center; }
.au-dock-user svg { width: 17px; height: 17px; }
/* 覆盖旧响应式规则，保持真实布局 */
.au-side { position: static; transform: none; box-shadow: none; flex: none; }

/* 对话区：助手回复与客户端一致，不使用气泡底色 */
.au-msg[data-role="assistant"] .au-bubble { max-width: 100%; padding: 0; border-radius: 0; background: transparent; font-size: 15px; line-height: 1.75; }
.au-msg[data-role="assistant"] .au-bubble ul { margin: 8px 0 0; padding-left: 20px; }

/* 应用栏：无色通用图标，不暴露应用抽屉 */
.showcase .au-dock-app { color: #8b8b92; background: transparent; box-shadow: none; }
.showcase .au-dock-app:hover { color: #4b4b52; background: #ececef; box-shadow: none; }
.showcase .au-dock-app svg { width: 23px; height: 23px; }
/* 顶部右侧面板按钮：保留外观，不绑定功能 */
.showcase .au-top-home { background: transparent; color: #8a8a94; }
.showcase .au-top-home:hover { background: #ececed; color: #4b4b52; }
.showcase .au-top-home svg { width: 19px; height: 19px; fill: currentColor; stroke: none; }
.showcase .au-panel-fake { cursor: default; }
.showcase .au-panel-fake:hover { background: transparent; color: #8a8a94; }
/* 右侧面板不对展示区开放 */
.showcase .au-panel, .showcase .au-panel-scrim { display: none !important; }
