/**
 * 灵涵速推主壳同步：浅色 Soft UI（浅灰底 + 白卡片），与创作 Tab 参考稿一致。
 */

html body.page-tab-mine.lh-create-songyun,
html body.page-tab-mine.lh-create-songyun .app-container,
html body.page-tab-mine.lh-create-songyun .main-content,
html body.page-tab-mine.lh-create-songyun #mainContent,
html body.page-tab-mine.lh-create-songyun .lh2-root,
html body.page-tab-mine.lh-create-songyun .lh2-page {
    background: var(--as-page-bg, #F3F6FB) !important;
    background-color: var(--as-page-bg, #F3F6FB) !important;
    background-image: none !important;
    --as-card-shadow: 0 10px 32px rgba(15, 23, 42, 0.07), 0 0 0 1px rgba(15, 23, 42, 0.04);
}

html body.page-tab-mine.lh-create-songyun {
    color: var(--as-primary, #111827) !important;
}

html body.page-tab-agent.h5-shelf-mirror.lh-create-songyun {
    color: var(--as-primary, #111827) !important;
}

html body.page-tab-agent.h5-shelf-mirror.lh-create-songyun .create-dash--xhs {
    --sy-paper: #fffcf9;
    --sy-ink: #111827;
    --sy-ink-soft: #6b7280;
    --sy-celadon: #1e3a5f;
    --sy-cinnabar: #2c5282;
    --sy-line: rgba(40, 36, 32, 0.1);
    --sy-ai-glow: rgba(30, 58, 95, 0.1);
    --xhs-bg: var(--as-page-bg, #F3F6FB);
    --xhs-card: #fffcf9;
    --xhs-line: var(--sy-line);
    --xhs-rose: var(--sy-cinnabar);
    --xhs-paper: #fffcf9;
}

/* 智能体顶区：与创作同系暖纸+靛青光（与 home-create-shelf 一致） */
html body.page-tab-agent.h5-shelf-mirror.lh-create-songyun .create-dash .cd-hero-banner--palace {
    border-radius: 16px !important;
    border: 1px solid rgba(40, 36, 32, 0.09) !important;
    background: var(--xhs-paper, #fffcf9) !important;
    box-shadow: 0 12px 36px rgba(15, 23, 42, 0.08), 0 0 0 1px rgba(255, 255, 255, 0.5) inset !important;
    overflow: hidden !important;
    min-height: 0 !important;
    margin-bottom: 6px !important;
}

html body.page-tab-agent.h5-shelf-mirror.lh-create-songyun .create-dash .cd-hero-banner--palace-raster {
    min-height: 0 !important;
}

html body.page-tab-agent.h5-shelf-mirror.lh-create-songyun .cd-hero-banner__bg--palace-img.cd-hero-banner__bg--palace-photo {
    opacity: 0.14 !important;
    background-size: cover !important;
    background-position: 50% 36% !important;
}

html body.page-tab-agent.h5-shelf-mirror.lh-create-songyun .cd-hero-banner__base .cd-hero-banner__bg--gradient {
    display: block !important;
    opacity: 1 !important;
    background:
        radial-gradient(ellipse 100% 70% at 12% 0%, rgba(30, 58, 95, 0.1) 0%, transparent 52%),
        radial-gradient(ellipse 60% 45% at 98% 8%, rgba(184, 149, 106, 0.05) 0%, transparent 55%),
        linear-gradient(168deg, #fffcf9 0%, #f0ebe3 45%, #ebe4da 100%) !important;
}

html body.page-tab-agent.h5-shelf-mirror.lh-create-songyun .cd-hero-banner__bg--palace-img {
    display: block !important;
    position: absolute;
    inset: 0;
    z-index: 1;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: 44% 36%;
    opacity: 0.08 !important;
    filter: grayscale(1) saturate(0.85) contrast(1.02) !important;
    pointer-events: none;
}

html body.page-tab-agent.h5-shelf-mirror.lh-create-songyun .create-dash .cd-hero-banner__base > .cd-hero-banner__veil {
    display: block !important;
    z-index: 4 !important;
    background: linear-gradient(180deg, rgba(255, 252, 249, 0) 0%, rgba(255, 252, 249, 0.28) 48%, rgba(240, 232, 222, 0.4) 100%) !important;
    pointer-events: none !important;
    opacity: 1 !important;
}

html body.page-tab-agent.h5-shelf-mirror.lh-create-songyun .create-dash .cd-hero-banner--palace .cd-hero-banner__title {
    color: var(--as-primary, #0f172a) !important;
    -webkit-text-fill-color: var(--as-primary, #0f172a) !important;
    text-shadow: none;
}

html body.page-tab-agent.h5-shelf-mirror.lh-create-songyun .create-dash .cd-hero-banner--palace .cd-hero-banner__slogan,
html body.page-tab-agent.h5-shelf-mirror.lh-create-songyun .create-dash .cd-hero-banner--palace .cd-hero-banner__slogan--v4 {
    color: #334155 !important;
    -webkit-text-fill-color: #334155 !important;
    font-size: 13px !important;
    letter-spacing: 0.02em !important;
    font-weight: 600 !important;
    text-shadow: none;
}

html body.page-tab-agent.h5-shelf-mirror.lh-create-songyun .create-dash .cd-hero-banner--palace .cd-hero-tag {
    background: rgba(241, 245, 249, 0.95) !important;
    border: 1px solid rgba(15, 23, 42, 0.1) !important;
    color: #475569 !important;
    box-shadow: none;
}

/* 搜索框：与纸面一致 */
html body.page-tab-agent.h5-shelf-mirror.lh-create-songyun .cd-search-box {
    background: #fffcf9 !important;
    border: 1px solid rgba(40, 36, 32, 0.1) !important;
    box-shadow: 0 1px 6px rgba(15, 23, 42, 0.04) !important;
    color: #0f172a !important;
}

html body.page-tab-agent.h5-shelf-mirror.lh-create-songyun .cd-search-box:focus-within {
    border-color: rgba(30, 58, 95, 0.38) !important;
    box-shadow: 0 0 0 2px rgba(30, 58, 95, 0.12) !important;
}

html body.page-tab-agent.h5-shelf-mirror.lh-create-songyun .cd-search-icon {
    color: #64748b !important;
}

html body.page-tab-agent.h5-shelf-mirror.lh-create-songyun .cd-search-box input {
    color: #0f172a !important;
}

html body.page-tab-agent.h5-shelf-mirror.lh-create-songyun .cd-search-box input::placeholder {
    color: #94a3b8 !important;
}

/* 智能体宫格：白卡片（与 #agentToolsRoot 内规则一致；无透明叠底） */
html body.page-tab-agent.h5-shelf-mirror #agentToolsRoot .cd-appstore-shelf--grid3 .cd-appstore-cell {
    background: #ffffff !important;
    border: 1px solid rgba(15, 23, 42, 0.08) !important;
    border-radius: 14px !important;
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.07), 0 0 0 1px rgba(15, 23, 42, 0.04) !important;
}

html body.page-tab-agent.h5-shelf-mirror #agentToolsRoot .cd-appstore-shelf--grid3 a.cd-appstore-cell.card--poster--grid3 {
    padding: 12px 8px 10px !important;
    box-sizing: border-box !important;
}

html body.page-tab-agent.h5-shelf-mirror #agentToolsRoot .cd-appstore-shelf--grid3 .cd-poster__title {
    color: #0f172a !important;
    -webkit-text-fill-color: #0f172a !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    background: transparent !important;
    -webkit-font-smoothing: subpixel-antialiased !important;
}

html body.page-tab-agent.h5-shelf-mirror #agentToolsRoot .cd-appstore-shelf--grid3 a.cd-appstore-cell .cd-agent-shelf-bench-wrap .cd-bench-ico {
    border-radius: 14px !important;
}

html body.page-tab-agent.h5-shelf-mirror #agentToolsRoot .cd-appstore-shelf--grid3 a.cd-appstore-cell .cd-poster__ico--list {
    color: #ffffff !important;
}

html body.page-tab-agent.h5-shelf-mirror.lh-create-songyun .huoke-card,
html body.page-tab-create.lh-home-shelf.lh-create-songyun .huoke-card {
    background: #ffffff !important;
    border: 1px solid rgba(15, 23, 42, 0.1) !important;
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.07), 0 0 0 1px rgba(15, 23, 42, 0.04) !important;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

html body.page-tab-agent.h5-shelf-mirror.lh-create-songyun .huoke-card__title,
html body.page-tab-create.lh-home-shelf.lh-create-songyun .huoke-card__title {
    color: #0f172a !important;
}

html body.page-tab-agent.h5-shelf-mirror.lh-create-songyun .huoke-card__desc,
html body.page-tab-create.lh-home-shelf.lh-create-songyun .huoke-card__desc {
    color: #64748b !important;
}

html body.page-tab-agent.h5-shelf-mirror.lh-create-songyun .huoke-card__icon,
html body.page-tab-create.lh-home-shelf.lh-create-songyun .huoke-card__icon {
    background: rgba(30, 58, 95, 0.1) !important;
}

html body.page-tab-agent.h5-shelf-mirror.lh-create-songyun .huoke-card__icon i,
html body.page-tab-create.lh-home-shelf.lh-create-songyun .huoke-card__icon i {
    color: var(--as-blue, #1e3a5f) !important;
}

/* 智能体 / AI助理 / 模板库底栏与创作/我的对齐 */
html body.page-tab-agent.h5-shelf-mirror.lh-create-songyun .tab-bar,
html body.page-tab-assistant.lh-create-songyun .tab-bar,
html body.page-tab-template.lh-create-songyun .tab-bar {
    background: rgba(255, 255, 255, 0.94) !important;
    border-top: 0.5px solid rgba(15, 23, 42, 0.08) !important;
    box-shadow: 0 -6px 24px rgba(15, 23, 42, 0.05) !important;
}

/* 底栏激活色 */
html body.page-tab-agent.h5-shelf-mirror.lh-create-songyun .tab-item.active .tab-label,
html body.page-tab-agent.h5-shelf-mirror.lh-create-songyun .tab-item.active .tab-icon,
html body.page-tab-assistant.lh-create-songyun .tab-item.active .tab-label,
html body.page-tab-assistant.lh-create-songyun .tab-item.active .tab-icon,
html body.page-tab-template.lh-create-songyun .tab-item.active .tab-label,
html body.page-tab-template.lh-create-songyun .tab-item.active .tab-icon,
html body.page-tab-mine.lh-create-songyun .tab-item.active .tab-label,
html body.page-tab-mine.lh-create-songyun .tab-item.active .tab-icon {
    color: var(--as-blue, #1e3a5f) !important;
}

/* ═══ 我的 Tab ═══ */
html body.page-tab-mine.lh-create-songyun .mine-page-zoom {
    background: transparent !important;
}

html body.page-tab-mine.lh-create-songyun .mine-layout {
    background: transparent !important;
}

html body.page-tab-mine.lh-create-songyun .mine-profile-card {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

html body.page-tab-mine.lh-create-songyun .mine-hero.mine-hero--account {
    background: #ffffff !important;
    border: 1px solid rgba(15, 23, 42, 0.1) !important;
    box-shadow: 0 10px 32px rgba(15, 23, 42, 0.07), 0 0 0 1px rgba(15, 23, 42, 0.04) !important;
}

/* 未登录：略暖渐变顶卡，与下方白卡区分层次 */
html body.page-tab-mine.lh-create-songyun .mine-hero.mine-hero--account:has(.mine-hero-name--guest) {
    background: linear-gradient(168deg, #ffffff 0%, #faf7f2 45%, #ffffff 100%) !important;
    border-color: rgba(30, 58, 95, 0.11) !important;
    box-shadow: 0 8px 28px rgba(30, 58, 95, 0.06), 0 0 0 1px rgba(255, 255, 255, 0.65) inset !important;
}

html body.page-tab-mine.lh-create-songyun .mine-section-card {
    background: #ffffff !important;
    border: 1px solid rgba(15, 23, 42, 0.1) !important;
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.07), 0 0 0 1px rgba(15, 23, 42, 0.04) !important;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

html body.page-tab-mine.lh-create-songyun .mine-section-card__title {
    color: #0f172a !important;
    font-weight: 700 !important;
}

html body.page-tab-mine.lh-create-songyun .mine-section-card--services > .mine-section-card__title {
    padding-bottom: 10px !important;
    margin-bottom: 2px !important;
    border-bottom: 1px solid rgba(15, 23, 42, 0.06) !important;
}

html body.page-tab-mine.lh-create-songyun .mine-section-card__hint--services-sub {
    margin: 4px 0 12px !important;
    font-size: 12px !important;
    line-height: 1.45 !important;
    font-weight: 500 !important;
    color: #64748b !important;
}

html body.page-tab-mine.lh-create-songyun .mine-func-grid--compact .mine-func-item {
    background: #f8fafc !important;
    border-color: rgba(15, 23, 42, 0.08) !important;
}

html body.page-tab-mine.lh-create-songyun .mine-func-label {
    color: #0f172a !important;
    font-weight: 600 !important;
}

/* 平台数据：弱化「大数字营销感」，与上方入口列表气质一致 */
html body.page-tab-mine.lh-create-songyun .mine-section-card--stats {
    background: linear-gradient(180deg, #fafbfc 0%, #ffffff 100%) !important;
}

html body.page-tab-mine.lh-create-songyun .mine-stats-heading {
    margin-bottom: 12px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    letter-spacing: -0.02em !important;
    color: #0f172a !important;
}

html body.page-tab-mine.lh-create-songyun .mine-stats-cell .mine-stats-value {
    font-size: 17px !important;
    font-weight: 700 !important;
    color: #334155 !important;
    letter-spacing: -0.02em !important;
}

html body.page-tab-mine.lh-create-songyun .mine-stats-cell .mine-stats-label {
    font-size: 11px !important;
    font-weight: 500 !important;
    color: #64748b !important;
}

html body.page-tab-mine.lh-create-songyun .mine-redeem-input {
    background: #ffffff !important;
    border: 1px solid rgba(15, 23, 42, 0.12) !important;
    color: #0f172a !important;
}

html body.page-tab-mine.lh-create-songyun .mine-redeem-btn {
    background: linear-gradient(180deg, #2d4a73 0%, #1e3a5f 100%) !important;
    border-color: rgba(30, 58, 95, 0.45) !important;
    color: #fff !important;
}

html body.page-tab-mine.lh-create-songyun .mine-hero-name,
html body.page-tab-mine.lh-create-songyun .mine-stat-value {
    color: #0f172a !important;
}

html body.page-tab-mine.lh-create-songyun .mine-hero-id,
html body.page-tab-mine.lh-create-songyun .mine-hero-sub,
html body.page-tab-mine.lh-create-songyun .mine-stat-label,
html body.page-tab-mine.lh-create-songyun .mine-section-card__hint {
    color: #64748b !important;
}

html body.page-tab-mine.lh-create-songyun .mine-section-card__title,
html body.page-tab-mine.lh-create-songyun .mine-section-card__icon {
    color: #0f172a !important;
}

html body.page-tab-mine.lh-create-songyun .mine-hero-status {
    color: #64748b !important;
}

/* 我的底栏：白色磨砂 */
html body.page-tab-mine.lh-create-songyun .tab-bar {
    background: rgba(255, 255, 255, 0.94) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    border-top: 0.5px solid rgba(15, 23, 42, 0.08) !important;
    box-shadow: 0 -6px 24px rgba(15, 23, 42, 0.05) !important;
}

html body.page-tab-mine.lh-create-songyun .tab-item {
    color: #94a3b8 !important;
}

html body.page-tab-mine.lh-create-songyun .tab-item .tab-icon {
    color: #94a3b8 !important;
}

html body.page-tab-mine.lh-create-songyun .tab-item.active,
html body.page-tab-mine.lh-create-songyun .tab-item.active .tab-label,
html body.page-tab-mine.lh-create-songyun .tab-item.active .tab-icon {
    color: var(--as-blue, #1e3a5f) !important;
}

/* 系统深色偏好：恢复深海底 */
html[data-h5-appearance='dark'] body.page-tab-agent.h5-shelf-mirror.lh-create-songyun,
html[data-h5-appearance='dark'] body.page-tab-mine.lh-create-songyun,
html[data-h5-appearance='dark'] body.page-tab-mine {
    background: #000000 !important;
    background-image: none !important;
    color: rgba(245, 245, 247, 0.96) !important;
}

html[data-h5-appearance='dark'] body.page-tab-mine.lh-create-songyun .mine-hero.mine-hero--account,
html[data-h5-appearance='dark'] body.page-tab-mine.lh-create-songyun .mine-section-card,
html[data-h5-appearance='dark'] body.page-tab-mine .mine-hero.mine-hero--account,
html[data-h5-appearance='dark'] body.page-tab-mine .mine-section-card {
    background: #1c1c1e !important;
    border-color: rgba(84, 84, 88, 0.45) !important;
    color: rgba(245, 245, 247, 0.96) !important;
    box-shadow: none !important;
}

html[data-h5-appearance='dark'] body.page-tab-mine .mine-section-card__title,
html[data-h5-appearance='dark'] body.page-tab-mine .mine-section-card__title--skin-inline,
html[data-h5-appearance='dark'] body.page-tab-mine .mine-creations-hub__t,
html[data-h5-appearance='dark'] body.page-tab-mine .mine-hero-name,
html[data-h5-appearance='dark'] body.page-tab-mine .mine-skin-expand-btn__cur {
    color: #f5f5f7 !important;
}

html[data-h5-appearance='dark'] body.page-tab-mine .mine-section-card__lead,
html[data-h5-appearance='dark'] body.page-tab-mine .mine-section-card__lead--skin-inline,
html[data-h5-appearance='dark'] body.page-tab-mine .mine-creations-hub__s,
html[data-h5-appearance='dark'] body.page-tab-mine .mine-skin-expand-btn__hint {
    color: rgba(235, 235, 245, 0.55) !important;
}

html[data-h5-appearance='dark'] body.page-tab-mine .mine-skin-expand-btn,
html[data-h5-appearance='dark'] body.page-tab-mine #mineSkinCard .mine-skin-expand-btn {
    background: rgba(255, 255, 255, 0.06) !important;
    border-color: rgba(84, 84, 88, 0.45) !important;
}

html[data-h5-appearance='dark'] body.page-tab-mine .mine-creations-hub--stack {
    background: transparent !important;
    border-color: rgba(84, 84, 88, 0.35) !important;
}
