/**
 * Seto 风格应用壳层
 * 左导航 + 中央工作台 + 可选右栏 · 玻璃拟态浮动窗口
 */

:root {
    --seto-sidebar-width: 248px;
    --seto-rail-width: 300px;
    --seto-radius-app: 28px;
    --seto-radius-item: 14px;
    --seto-glass: rgba(255, 255, 255, 0.78);
    --seto-glass-strong: rgba(255, 255, 255, 0.92);
    --seto-ink: #1a1a1c;
    --seto-muted: #6b6b73;
    --seto-line: rgba(20, 20, 30, 0.08);
    --seto-hover: rgba(20, 20, 30, 0.04);
    --seto-active: rgba(20, 20, 30, 0.07);
    --seto-cta: #1c1c1e;
    --seto-shadow: 0 24px 80px rgba(30, 50, 90, 0.1), 0 4px 16px rgba(30, 50, 90, 0.05);
    --site-topbar-height: 0px;
}

/* —— 氛围底：近白 + 极淡蓝 —— */
html body,
html.site-3d-on body,
html.site-no-3d body {
    --site-bg-base: #f7f8fa;
    --site-bg-glow-a: rgba(160, 195, 235, 0.24);
    --site-bg-glow-b: rgba(180, 210, 240, 0.22);
    --site-bg-glow-c: rgba(140, 180, 220, 0.12);
}

html body:has(.app-container),
html body:has(.app),
html body:has(.lp-shell),
html body:has(.seto-app) {
    padding: 14px !important;
    height: 100vh !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
}

/* —— 浮动玻璃主窗 —— */
/* .app 为旧类名别名，统一按壳层横向布局，避免侧栏 height:100% 把主区挤没 */
.app-container,
.app,
.lp-shell,
.seto-app {
    display: flex !important;
    flex-direction: row !important;
    align-items: stretch;
    width: 100%;
    max-width: 1480px;
    height: 100% !important;
    margin: 0 auto;
    border-radius: var(--seto-radius-app);
    background: var(--seto-glass) !important;
    backdrop-filter: saturate(180%) blur(28px);
    -webkit-backdrop-filter: saturate(180%) blur(28px);
    border: 1px solid rgba(255, 255, 255, 0.65);
    box-shadow: var(--seto-shadow);
    overflow: hidden;
    position: relative;
    isolation: isolate;
}

/* —— 左侧导航 —— */
.seto-sidebar.site-topbar,
aside.seto-sidebar {
    position: relative !important;
    width: var(--seto-sidebar-width) !important;
    min-width: var(--seto-sidebar-width) !important;
    max-width: var(--seto-sidebar-width) !important;
    flex: 0 0 var(--seto-sidebar-width) !important;
    height: 100% !important;
    min-height: 0 !important;
    flex-shrink: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0 !important;
    padding: 20px 14px 16px !important;
    padding-top: calc(20px + env(safe-area-inset-top, 0px)) !important;
    background: rgba(255, 255, 255, 0.42) !important;
    backdrop-filter: saturate(160%) blur(16px);
    -webkit-backdrop-filter: saturate(160%) blur(16px);
    border: none !important;
    border-right: 1px solid var(--seto-line) !important;
    box-shadow: none !important;
    z-index: 220;
    overflow: hidden;
    box-sizing: border-box !important;
}

.seto-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none !important;
    color: var(--seto-ink) !important;
    padding: 4px 8px 18px;
    flex-shrink: 0;
}

.seto-brand-mark {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: linear-gradient(145deg, #fff 0%, #f2f5fa 100%);
    border: 1px solid var(--seto-line);
    box-shadow: 0 6px 16px rgba(30, 50, 90, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.9);
    color: var(--seto-ink);
    overflow: visible;
    line-height: 0;
}

.seto-brand-mark .tool-icon-anim,
.seto-brand-mark .tool-icon-bag {
    width: 28px;
    height: 28px;
    min-width: 28px;
    min-height: 28px;
    display: block;
    pointer-events: none;
    line-height: 0;
}

.seto-brand-mark .tool-icon-anim svg {
    width: 100%;
    height: 100%;
    display: block;
    overflow: visible;
    shape-rendering: geometricPrecision;
    filter: drop-shadow(0 1px 1.5px rgba(26, 51, 88, 0.14));
}

.seto-brand-text {
    font-weight: 800;
    font-size: 17px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.seto-sidebar-scroll {
    flex: 1;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 0 2px;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.15) transparent;
}

.seto-nav-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--seto-muted);
    padding: 10px 12px 6px;
}

.seto-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    margin: 2px 0;
    border-radius: 999px;
    text-decoration: none !important;
    color: var(--seto-ink) !important;
    font-size: 13.5px;
    font-weight: 550;
    border: none;
    background: transparent;
    width: 100%;
    text-align: left;
    cursor: pointer;
    transition: background 0.18s ease, transform 0.15s ease;
    position: relative;
}

.seto-nav-item i {
    width: 18px;
    text-align: center;
    font-size: 14px;
    opacity: 0.78;
    color: inherit;
    flex-shrink: 0;
}

/* 侧栏统一彩色矢量图标：更大更清晰 + 全员丝滑动态 */
.seto-nav-item .tool-icon-anim,
.seto-nav-item .tool-icon-bag,
.seto-nav-item .tool-icon-video,
.seto-nav-item video.tool-icon-video {
    width: 32px;
    height: 32px;
    min-width: 32px;
    min-height: 32px;
    flex-shrink: 0;
    display: block;
    pointer-events: none;
    background: transparent;
    opacity: 1 !important;
    line-height: 0;
    -webkit-font-smoothing: antialiased;
}

.seto-nav-item .tool-icon-anim svg,
.seto-nav-item .tool-icon-bag svg {
    width: 100%;
    height: 100%;
    display: block;
    overflow: visible;
    shape-rendering: geometricPrecision;
    text-rendering: geometricPrecision;
    filter: drop-shadow(0 1px 1.5px rgba(26, 51, 88, 0.16));
}

.seto-nav-item.seto-nav-item--media {
    gap: 12px;
    padding-top: 9px;
    padding-bottom: 9px;
    min-height: 48px;
}

.seto-nav-item.active .tool-icon-anim,
.seto-nav-item.active .tool-icon-bag,
.seto-nav-item.active .tool-icon-video {
    opacity: 1 !important;
    filter: none;
}

/* 指令栏 / 对话底栏内联图标尺寸 */
.seto-cmd-btn .tool-icon-anim,
.seto-cmd-mic .tool-icon-anim,
.seto-cmd-go .tool-icon-anim,
.seto-command-spark .tool-icon-anim,
.chat-wb-cap .tool-icon-anim,
.chat-wb-mic .tool-icon-anim,
.chat-wb-go .tool-icon-anim,
.chat-wb-go-icon .tool-icon-anim,
.dock-attach-empty .tool-icon-anim {
    width: 18px;
    height: 18px;
    min-width: 18px;
    min-height: 18px;
    display: block;
    line-height: 0;
    flex-shrink: 0;
}
.seto-cmd-go .tool-icon-anim,
.chat-wb-go .tool-icon-anim,
.chat-wb-go-icon .tool-icon-anim {
    width: 22px;
    height: 22px;
    min-width: 22px;
    min-height: 22px;
}
/* 深色按钮上的浅色图标：关闭阴影，保持锐利；取消根浮动避免发糊 */
.seto-cmd-go .tool-icon-anim svg,
.chat-wb-go .tool-icon-anim svg,
.chat-wb-go-icon .tool-icon-anim svg {
    filter: none;
}
.tool-icon-anim--send_light .tia-root,
.tool-icon-anim--arrow_up_light .tia-root,
.tool-icon-anim--plus_light .tia-root,
.tool-icon-anim--upgrade_light .tia-root {
    animation: none !important;
}
.seto-command-spark .tool-icon-anim {
    width: 22px;
    height: 22px;
    min-width: 22px;
    min-height: 22px;
}
.seto-cmd-btn .tool-icon-anim svg,
.seto-cmd-mic .tool-icon-anim svg,
.seto-cmd-go .tool-icon-anim svg,
.seto-command-spark .tool-icon-anim svg,
.chat-wb-cap .tool-icon-anim svg,
.chat-wb-mic .tool-icon-anim svg,
.chat-wb-go .tool-icon-anim svg,
.chat-wb-go-icon .tool-icon-anim svg,
.dock-attach-empty .tool-icon-anim svg {
    width: 100%;
    height: 100%;
    display: block;
    overflow: visible;
    shape-rendering: geometricPrecision;
}

@media (prefers-reduced-motion: reduce) {
    .tool-icon-bag .lb-root,
    .tool-icon-bag .lb-clasp,
    .tool-icon-bag .lb-flap,
    .tool-icon-anim .tia-root,
    .tool-icon-anim [class^="tia-"],
    .tool-icon-anim [class*=" tia-"] {
        animation: none !important;
    }
}

.seto-nav-item:hover {
    background: var(--seto-hover);
}

.seto-nav-item.active {
    background: var(--seto-active) !important;
    font-weight: 650;
}

.seto-nav-item.active i {
    opacity: 1;
}

.seto-nav-item .seto-nav-tag {
    margin-left: auto;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.04em;
    padding: 3px 6px;
    border-radius: 6px;
    background: rgba(0, 122, 255, 0.12);
    color: var(--primary, #007AFF);
}

.seto-nav-item .seto-nav-dot {
    margin-left: auto;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--seto-ink);
}

.seto-nav-group {
    margin-top: 8px;
}

.seto-nav-group-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 10px 12px 6px;
    border: none;
    background: transparent;
    color: var(--seto-muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
}

.seto-nav-group-toggle i {
    font-size: 10px;
    transition: transform 0.2s ease;
}

.seto-nav-group.open .seto-nav-group-toggle i {
    transform: rotate(180deg);
}

.seto-nav-group-body {
    display: none;
    padding-left: 4px;
}

.seto-nav-group.open .seto-nav-group-body {
    display: block;
}

.seto-nav-sub {
    padding-left: 14px;
    font-size: 13px;
    font-weight: 500;
    color: #3a3a40 !important;
}

.seto-sidebar-foot {
    flex-shrink: 0;
    padding-top: 12px;
    border-top: 1px solid var(--seto-line);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.seto-page-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.seto-page-actions .site-top-action {
    flex: 1;
    justify-content: center;
    border-radius: 12px;
    font-size: 12px;
}

.seto-page-actions .site-top-action .tool-icon-anim,
.seto-page-actions .site-top-action .tool-icon-bag {
    width: 20px;
    height: 20px;
    min-width: 20px;
    min-height: 20px;
    display: block;
    flex-shrink: 0;
    line-height: 0;
}

.seto-page-actions .site-top-action .tool-icon-anim svg,
.seto-page-actions .site-top-action .tool-icon-bag svg {
    width: 100%;
    height: 100%;
    display: block;
    overflow: visible;
    shape-rendering: geometricPrecision;
}

.seto-profile {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid var(--seto-line);
    cursor: pointer;
    text-align: left;
    width: 100%;
    font: inherit;
    color: inherit;
    transition: background 0.18s ease;
}

.seto-profile:hover {
    background: rgba(255, 255, 255, 0.85);
}

.seto-profile-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    background: #ececef;
    display: grid;
    place-items: center;
    color: var(--seto-muted);
    flex-shrink: 0;
    overflow: hidden;
    line-height: 0;
}

.seto-profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.seto-profile-avatar .tool-icon-anim {
    width: 34px;
    height: 34px;
    min-width: 34px;
    min-height: 34px;
    display: block;
    pointer-events: none;
}

.seto-profile-avatar .tool-icon-anim svg {
    width: 100%;
    height: 100%;
    display: block;
    overflow: visible;
    shape-rendering: geometricPrecision;
}

.seto-profile-meta {
    min-width: 0;
    flex: 1;
}

.seto-profile-name {
    font-size: 13px;
    font-weight: 700;
    color: var(--seto-ink);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.seto-profile-sub {
    font-size: 11px;
    color: var(--seto-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 2px;
}

.seto-profile-credits {
    font-variant-numeric: tabular-nums;
}

.seto-profile-credits[hidden] {
    display: none !important;
}

/* 与侧栏 .seto-nav-item 同款：透明底 + 深色字，不再用黑底 CTA */
.seto-upgrade {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    width: 100%;
    padding: 10px 12px;
    margin: 2px 0;
    border-radius: 999px;
    background: transparent !important;
    color: var(--seto-ink) !important;
    font-size: 13.5px;
    font-weight: 550;
    text-decoration: none !important;
    border: none;
    box-shadow: none;
    text-align: left;
    cursor: pointer;
    transition: background 0.18s ease, transform 0.15s ease;
}

.seto-upgrade:hover {
    background: var(--seto-hover) !important;
    opacity: 1;
    transform: none;
}

.seto-upgrade:active {
    transform: none;
}

.seto-upgrade .tool-icon-anim {
    width: 32px;
    height: 32px;
    min-width: 32px;
    min-height: 32px;
    display: block;
    line-height: 0;
    flex-shrink: 0;
}

.seto-upgrade .tool-icon-anim svg {
    width: 100%;
    height: 100%;
    display: block;
    overflow: visible;
    filter: none;
}

/* 账号下拉：贴侧栏底部弹出 */
.seto-sidebar .site-account-menu {
    position: relative;
    width: 100%;
}

.seto-sidebar .site-account-btn {
    display: none;
}

.seto-sidebar .site-account-dropdown {
    position: absolute !important;
    left: 0 !important;
    right: 0 !important;
    bottom: calc(100% + 8px) !important;
    top: auto !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    max-height: min(70vh, 420px);
    overflow-y: auto;
    border-radius: 16px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.16);
    z-index: 300;
}

.seto-sidebar .site-topbar-right {
    display: block;
    width: 100%;
}

/* 隐藏旧顶栏横向结构（已被侧栏替代） */
.seto-sidebar .site-tools-scroll-wrap,
.seto-sidebar .site-nav-primary-dropdown,
.seto-sidebar .site-tools-scroll-desktop,
.seto-sidebar .site-nav-pricing,
.seto-sidebar .site-nav-more,
.seto-sidebar .site-brand {
    display: none !important;
}

/* —— 主内容区 —— */
.app-container > .main-content,
.app-container > .bk-main,
.app-container > .main,
.app-container > .pricing-main,
.app-container > .km-page,
.app-container > main,
.app > .main-content,
.app > .bk-main,
.app > .main,
.app > main,
.lp-shell > .lp-main,
.lp-shell > .seto-stage,
.seto-app > .seto-stage {
    flex: 1;
    min-width: 0;
    min-height: 0;
    height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background: transparent !important;
}

/* 生成中浮层不占 flex 流 */
.app-container > .gen-pill,
.app-container > .generating-section,
.app > .gen-pill,
.app > .generating-section {
    position: fixed;
    flex: none !important;
    width: auto !important;
    height: auto !important;
}


/* 工具页内边距微调 */
.app-container > .main-content.bk-main {
    padding-bottom: calc(16px + var(--safe-area-bottom, 0px));
}

/* sticky 预览：相对内容区滚动，不再扣顶栏高度 */
@media (min-width: 900px) {
    .bk-output-col,
    .tool-workspace-grid .bk-output-col {
        top: 16px !important;
        max-height: calc(100vh - 44px) !important;
    }
}

/* 桌面：移动条 / 遮罩不占流 */
.seto-mobile-bar,
.seto-sidebar-backdrop {
    flex: 0 0 auto;
}

/* —— 移动端顶栏条 + 抽屉 —— */
.seto-mobile-bar {
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 14px;
    padding-top: calc(10px + env(safe-area-inset-top, 0px));
    border-bottom: 1px solid var(--seto-line);
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    flex-shrink: 0;
    position: sticky;
    top: 0;
    z-index: 180;
}

.seto-mobile-bar-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--seto-ink);
}

.seto-burger {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    border: 1px solid var(--seto-line);
    background: #fff;
    color: var(--seto-ink);
    display: grid;
    place-items: center;
    cursor: pointer;
    line-height: 0;
    padding: 0;
}

.seto-burger .tool-icon-anim {
    width: 26px;
    height: 26px;
    min-width: 26px;
    min-height: 26px;
    display: block;
    pointer-events: none;
}

.seto-burger .tool-icon-anim svg {
    width: 100%;
    height: 100%;
    display: block;
    overflow: visible;
    shape-rendering: geometricPrecision;
}

.seto-sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(20, 18, 16, 0.35);
    z-index: 210;
    opacity: 0;
    transition: opacity 0.2s ease;
}

body.seto-nav-open .seto-sidebar-backdrop {
    display: block;
    opacity: 1;
}

/* —— 首页工作台 —— */
.seto-home {
    display: flex;
    height: 100%;
    min-height: 0;
}

.seto-home-center {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 36px 32px 32px;
    gap: 32px;
    overflow-y: auto;
}

.seto-home-rail {
    width: var(--seto-rail-width);
    min-width: var(--seto-rail-width);
    border-left: 1px solid var(--seto-line);
    background: rgba(255, 255, 255, 0.35);
    display: flex;
    flex-direction: column;
    padding: 22px 18px 18px;
    min-height: 0;
}

/* 3D 星芒 */
.seto-orb {
    width: 88px;
    height: 88px;
    position: relative;
    margin: 0 auto 8px;
    transform-style: preserve-3d;
    animation: seto-orb-float 5.5s ease-in-out infinite;
}

.seto-orb-core {
    position: absolute;
    inset: 18%;
    border-radius: 28%;
    background:
        radial-gradient(circle at 30% 25%, #fff 0%, transparent 40%),
        linear-gradient(135deg, #ffb4d6 0%, #c9b6ff 42%, #9ecbff 78%, #ffd0a8 100%);
    box-shadow:
        0 12px 28px rgba(180, 120, 200, 0.35),
        0 4px 10px rgba(0, 0, 0, 0.08),
        inset 0 2px 8px rgba(255, 255, 255, 0.65);
    transform: rotateX(18deg) rotateZ(-12deg);
    animation: seto-orb-spin 14s linear infinite;
}

.seto-orb-spike {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 14px;
    height: 72px;
    margin: -36px 0 0 -7px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(200, 180, 255, 0.15) 55%, transparent);
    clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
    filter: drop-shadow(0 4px 8px rgba(160, 120, 220, 0.25));
    transform-origin: center;
}

.seto-orb-spike:nth-child(1) { transform: rotate(0deg); }
.seto-orb-spike:nth-child(2) { transform: rotate(45deg); }
.seto-orb-spike:nth-child(3) { transform: rotate(90deg); }
.seto-orb-spike:nth-child(4) { transform: rotate(135deg); }

.seto-orb-glow {
    position: absolute;
    inset: -20%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 180, 220, 0.45), transparent 65%);
    filter: blur(8px);
    animation: seto-orb-pulse 3.2s ease-in-out infinite;
}

@keyframes seto-orb-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

@keyframes seto-orb-spin {
    from { transform: rotateX(18deg) rotateZ(-12deg); }
    to { transform: rotateX(18deg) rotateZ(348deg); }
}

@keyframes seto-orb-pulse {
    0%, 100% { opacity: 0.55; transform: scale(0.95); }
    50% { opacity: 0.9; transform: scale(1.05); }
}

.seto-welcome {
    text-align: center;
}

.seto-welcome h1 {
    font-size: clamp(26px, 3.2vw, 34px);
    font-weight: 750;
    color: var(--seto-ink);
    letter-spacing: -0.02em;
    margin: 0 0 8px;
}

.seto-welcome p {
    margin: 0;
    font-size: 15px;
    color: var(--seto-muted);
}

.seto-quick-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    width: min(680px, 100%);
}

.seto-quick-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 18px 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid var(--seto-line);
    text-decoration: none !important;
    color: inherit !important;
    box-shadow: 0 8px 24px rgba(40, 30, 20, 0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    min-height: 128px;
}

.seto-quick-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 32px rgba(40, 30, 20, 0.1);
    background: #fff;
}

.seto-quick-ic {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    font-size: 16px;
    color: #fff;
    background: linear-gradient(145deg, #fff 0%, #f2f5fa 100%);
    border: 1px solid var(--seto-line);
    box-shadow: 0 6px 16px rgba(30, 50, 90, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.9);
    transform: perspective(200px) rotateX(6deg) rotateY(-6deg);
    line-height: 0;
    overflow: visible;
}

.seto-quick-ic--a,
.seto-quick-ic--b,
.seto-quick-ic--c {
    background: linear-gradient(145deg, #fff 0%, #f2f5fa 100%);
}

.seto-quick-ic .tool-icon-anim,
.seto-quick-ic .tool-icon-bag {
    width: 32px;
    height: 32px;
    min-width: 32px;
    min-height: 32px;
    display: block;
    pointer-events: none;
}

.seto-quick-ic .tool-icon-anim svg,
.seto-quick-ic .tool-icon-bag svg {
    width: 100%;
    height: 100%;
    display: block;
    overflow: visible;
    shape-rendering: geometricPrecision;
    filter: drop-shadow(0 1px 1.5px rgba(26, 51, 88, 0.14));
}

.seto-quick-card strong {
    font-size: 14px;
    font-weight: 700;
    color: var(--seto-ink);
}

.seto-quick-card span {
    font-size: 12px;
    line-height: 1.45;
    color: var(--seto-muted);
}

/* —— 底部指令对话框（对齐 SETO 参考图） —— */
.seto-command {
    width: min(680px, 100%);
    margin-top: 8px;
    flex-shrink: 0;
    position: relative;
}

.seto-command-box {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 16px 16px 12px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.42);
    border: 1px solid rgba(255, 255, 255, 0.55);
    backdrop-filter: saturate(160%) blur(18px);
    -webkit-backdrop-filter: saturate(160%) blur(18px);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.55) inset,
        0 12px 32px rgba(40, 30, 20, 0.06);
    box-sizing: border-box;
    min-height: 112px;
    transition: background 0.28s ease, box-shadow 0.28s ease;
}

/* 输入与底栏共用同一灰底容器，取消内层白色胶囊 */
.seto-command-field {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    cursor: text;
    position: relative;
}

.seto-command-spark {
    flex-shrink: 0;
    width: 18px;
    text-align: center;
    font-size: 13px;
    color: #a0a0a8;
}

.seto-command-box input.seto-command-input[type="text"],
.seto-command-box .seto-command-input {
    flex: 1;
    min-width: 0;
    width: 100%;
    border: none !important;
    outline: none !important;
    background: transparent !important;
    box-shadow: none !important;
    font-size: 15px !important;
    font-weight: 500;
    letter-spacing: -0.01em;
    color: var(--seto-ink) !important;
    padding: 4px 0 !important;
    line-height: 1.45;
    font-family: inherit;
    border-radius: 0 !important;
}

.seto-command-box input.seto-command-input[type="text"]:focus,
.seto-command-box .seto-command-input:focus {
    border: none !important;
    outline: none !important;
    background: transparent !important;
    box-shadow: none !important;
}

.seto-command-box input.seto-command-input[type="text"]::placeholder,
.seto-command-box .seto-command-input::placeholder {
    color: #9a9aa3;
    font-weight: 450;
    opacity: 1;
}

.seto-command-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: nowrap;
    width: 100%;
}

.seto-cmd-pills {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    min-width: 0;
}

.seto-cmd-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 14px;
    border-radius: 999px;
    border: none;
    background: rgba(255, 255, 255, 0.72);
    color: #2e2e34 !important;
    font-size: 12.5px;
    font-weight: 600;
    cursor: default;
    pointer-events: none;
    user-select: none;
    text-decoration: none !important;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.45);
    white-space: nowrap;
    font-family: inherit;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.seto-cmd-btn i {
    font-size: 12px;
    opacity: 0.85;
}

.seto-cmd-btn--ghost {
    background: transparent;
    border-color: transparent;
    color: var(--seto-muted);
    padding: 7px 8px;
    box-shadow: none;
}

.seto-cmd-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    margin-left: auto;
}

.seto-cmd-mic {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: #6b6b73;
    cursor: default;
    pointer-events: none;
    user-select: none;
    font-size: 16px;
    padding: 0;
}

.seto-cmd-go {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #111113 !important;
    color: #fff !important;
    border: none;
    cursor: default;
    pointer-events: none;
    user-select: none;
    font-size: 15px;
    text-decoration: none !important;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.22);
    flex-shrink: 0;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.seto-cmd-spacer {
    flex: 1;
}

/* —— 首页指令栏：模拟创作演示 —— */
.seto-command-sent {
    position: absolute;
    left: 8px;
    right: 8px;
    bottom: calc(100% + 10px);
    display: flex;
    justify-content: flex-end;
    pointer-events: none;
    opacity: 0;
    z-index: 2;
}

.seto-command-sent.is-show {
    animation: seto-sent-fly 2.1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.seto-command-sent-bubble {
    max-width: 88%;
    padding: 10px 14px;
    border-radius: 18px 18px 6px 18px;
    background: rgba(28, 28, 30, 0.9);
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.45;
    letter-spacing: -0.01em;
    box-shadow: 0 10px 28px rgba(20, 16, 12, 0.18);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.seto-command-demo {
    position: absolute;
    left: 28px;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    display: none;
    align-items: center;
    min-width: 0;
    pointer-events: none;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: -0.01em;
    color: var(--seto-ink);
    line-height: 1.45;
    white-space: nowrap;
    overflow: hidden;
}

.seto-command-demo-text {
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

.seto-command-caret {
    display: inline-block;
    width: 1.5px;
    height: 1.05em;
    margin-left: 1px;
    flex-shrink: 0;
    background: #2a2a30;
    border-radius: 1px;
    opacity: 0;
}

.seto-command.is-demo .seto-command-demo {
    display: flex;
}

/* 选择器需压过 .seto-command-box input.seto-command-input[type="text"]，
   否则演示层与 input.value 叠字（iOS Safari 尤为明显） */
.seto-command.is-demo .seto-command-box input.seto-command-input[type="text"],
.seto-command.is-demo .seto-command-box .seto-command-input {
    color: transparent !important;
    -webkit-text-fill-color: transparent !important;
    caret-color: transparent;
}

.seto-command.is-demo .seto-command-box input.seto-command-input[type="text"]::placeholder,
.seto-command.is-demo .seto-command-box .seto-command-input::placeholder {
    color: transparent !important;
    -webkit-text-fill-color: transparent !important;
}

.seto-command.is-active .seto-command-box {
    background: rgba(255, 255, 255, 0.55);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.65) inset,
        0 14px 36px rgba(40, 30, 20, 0.08),
        0 0 0 1px rgba(28, 28, 30, 0.06);
    transition: background 0.25s ease, box-shadow 0.25s ease;
}

.seto-command.is-typing .seto-command-caret {
    opacity: 1;
    animation: seto-caret-blink 1.05s step-end infinite;
}

.seto-command.is-review .seto-command-caret {
    opacity: 1;
    animation: none;
}

.seto-cmd-go.is-armed {
    transform: scale(1.04);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.28);
}

.seto-cmd-go.is-press {
    transform: scale(0.92);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.28);
}

.seto-quick-card.is-hint {
    transform: translateY(-3px);
    background: #fff;
    box-shadow: 0 14px 32px rgba(40, 30, 20, 0.1);
}

@keyframes seto-caret-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

@keyframes seto-sent-fly {
    0% {
        opacity: 0;
        transform: translateY(10px) scale(0.97);
    }
    14% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    62% {
        opacity: 1;
        transform: translateY(-4px) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateY(-22px) scale(0.98);
    }
}

@media (prefers-reduced-motion: reduce) {
    .seto-command.is-typing .seto-command-caret,
    .seto-command-sent.is-show {
        animation: none !important;
    }

    .seto-command-sent.is-show {
        opacity: 1;
        transform: none;
    }
}

/* 右侧历史栏 */
.seto-rail-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.seto-rail-head h2 {
    margin: 0;
    font-size: 16px;
    font-weight: 750;
    color: var(--seto-ink);
}

.seto-rail-head a {
    color: var(--seto-muted);
    font-size: 14px;
}

.seto-rail-search {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid var(--seto-line);
    margin-bottom: 14px;
}

.seto-rail-search i {
    color: var(--seto-muted);
    font-size: 13px;
}

.seto-rail-search input {
    border: none;
    outline: none;
    background: transparent;
    flex: 1;
    font-size: 13px;
    color: var(--seto-ink);
    font-family: inherit;
}

.seto-rail-list {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-right: 2px;
}

.seto-hist-item {
    display: block;
    padding: 12px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid transparent;
    text-decoration: none !important;
    color: inherit !important;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.seto-hist-item:hover {
    background: #fff;
    border-color: var(--seto-line);
}

.seto-hist-item.is-hidden {
    display: none;
}

.seto-hist-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 4px;
}

.seto-hist-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--seto-ink);
}

.seto-hist-time {
    font-size: 11px;
    color: var(--seto-muted);
    flex-shrink: 0;
}

.seto-hist-desc {
    font-size: 12px;
    color: var(--seto-muted);
    line-height: 1.4;
}

.seto-hist-thumb {
    margin-top: 8px;
    width: 100%;
    height: 72px;
    border-radius: 10px;
    object-fit: cover;
    background: #f0ebe6;
}

.seto-hist-empty {
    text-align: center;
    padding: 28px 12px;
    color: var(--seto-muted);
    font-size: 13px;
}

.seto-rail-foot {
    padding-top: 12px;
    flex-shrink: 0;
}

.seto-rail-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 13px;
    border-radius: 14px;
    background: var(--seto-cta) !important;
    color: #fff !important;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.16);
}

.seto-rail-cta:hover {
    opacity: 0.92;
}

/* —— 响应式 —— */
@media (max-width: 1100px) {
    .seto-home-rail {
        display: none;
    }
}

@media (max-width: 880px) {
    html body:has(.app-container),
    html body:has(.app),
    html body:has(.lp-shell),
    html body:has(.seto-app) {
        padding: 0;
    }

    .app-container,
    .app,
    .lp-shell,
    .seto-app {
        max-width: none;
        border-radius: 0;
        border: none;
        box-shadow: none;
    }

    .seto-mobile-bar {
        display: flex;
    }

    .seto-sidebar.site-topbar,
    aside.seto-sidebar {
        position: fixed !important;
        left: 0;
        top: 0;
        bottom: 0;
        height: 100% !important;
        height: 100dvh !important;
        transform: translateX(-105%);
        transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
        box-shadow: 16px 0 40px rgba(0, 0, 0, 0.12) !important;
        border-radius: 0 var(--seto-radius-app) var(--seto-radius-app) 0;
        background: rgba(255, 255, 255, 0.96) !important;
    }

    body.seto-nav-open .seto-sidebar.site-topbar,
    body.seto-nav-open aside.seto-sidebar {
        transform: translateX(0);
    }

    .app-container,
    .app,
    .lp-shell,
    .seto-app {
        flex-direction: column !important;
    }

    .seto-quick-row {
        grid-template-columns: 1fr;
        width: 100%;
    }

    .seto-command {
        width: 100%;
    }

    .seto-command-box {
        border-radius: 24px;
        padding: 14px 14px 12px;
        gap: 12px;
        min-height: 0;
    }

    .seto-command-box input.seto-command-input[type="text"],
    .seto-command-box .seto-command-input {
        font-size: 14px !important;
    }

    .seto-command-demo {
        font-size: 14px;
        left: 26px;
    }

    .seto-cmd-btn {
        padding: 7px 11px;
        font-size: 12px;
    }

    .seto-cmd-go {
        width: 38px;
        height: 38px;
    }

    .seto-home-center {
        padding: 24px 16px 20px;
        justify-content: flex-start;
        gap: 22px;
    }
}

@media (max-width: 560px) {
    .seto-welcome h1 {
        font-size: 24px;
    }

    .seto-cmd-btn span {
        display: none;
    }

    .seto-cmd-btn {
        width: 36px;
        height: 36px;
        padding: 0;
        justify-content: center;
        gap: 0;
    }

    .seto-command-bar {
        gap: 8px;
    }
}

/* 登录页等无壳页面保持原样 */
body:not(:has(.app-container)):not(:has(.app)):not(:has(.lp-shell)):not(:has(.seto-app)) {
    padding: 0;
}
