/**

 * 灵涵速推 · 工具内页统一视觉

 * 由 _tool_layout_unify_css.php 在专页 CSS / brand-ui 之后加载。

 * 主色与「界面主题」html 上的 --as-blue 对齐（design-system.css :root 提供未选皮肤时的默认值）。

 * chip 规则排除 detail / ecom / linghui，避免压过 h5-tool-layout-unify.css 的 slate 胶囊。

 * 排除：主壳四 Tab、登录、模板、AI 助理（与 h5-songyun-tool-shell 一致）。

 */



/* ── 通用模块卡片（与 section-card 并存） ── */

body:not(.page-agent-center):not(.page-auth):not(.page-tab-create):not(.page-tab-agent):not(.page-tab-mine):not(.page-tab-template):not(.page-tab-assistant) .tool-section-card,

body:not(.page-agent-center):not(.page-auth):not(.page-tab-create):not(.page-tab-agent):not(.page-tab-mine):not(.page-tab-template):not(.page-tab-assistant) .section-card {

    background: #ffffff !important;

    border: 1px solid rgba(15, 23, 42, 0.06) !important;

    border-radius: var(--ds-radius, 16px) !important;

    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.045) !important;

}



/* ── 上传区（虚线 + 浅强调底） ── */

body:not(.page-agent-center):not(.page-auth):not(.page-tab-create):not(.page-tab-agent):not(.page-tab-mine):not(.page-tab-template):not(.page-tab-assistant) .upload-zone:not(.has-image) {

    border: 1px dashed color-mix(in srgb, var(--as-blue, #2563eb) 28%, transparent) !important;

    background: linear-gradient(180deg, #ffffff 0%, color-mix(in srgb, var(--as-blue, #2563eb) 5%, #fafbfc) 100%) !important;

}



body:not(.page-agent-center):not(.page-auth):not(.page-tab-create):not(.page-tab-agent):not(.page-tab-mine):not(.page-tab-template):not(.page-tab-assistant) .upload-zone:hover,

body:not(.page-agent-center):not(.page-auth):not(.page-tab-create):not(.page-tab-agent):not(.page-tab-mine):not(.page-tab-template):not(.page-tab-assistant) .upload-zone.dragover {

    border-color: color-mix(in srgb, var(--as-blue, #2563eb) 45%, transparent) !important;

    background: color-mix(in srgb, var(--as-blue, #2563eb) 7%, #ffffff) !important;

}



body:not(.page-agent-center):not(.page-auth):not(.page-tab-create):not(.page-tab-agent):not(.page-tab-mine):not(.page-tab-template):not(.page-tab-assistant) .upload-zone.has-image {

    border: 1px solid color-mix(in srgb, var(--as-blue, #2563eb) 35%, transparent) !important;

}



body:not(.page-agent-center):not(.page-auth):not(.page-tab-create):not(.page-tab-agent):not(.page-tab-mine):not(.page-tab-template):not(.page-tab-assistant) .upload-icon-wrap {

    background: color-mix(in srgb, var(--as-blue, #2563eb) 9%, #ffffff) !important;

    border: 1px solid color-mix(in srgb, var(--as-blue, #2563eb) 14%, transparent) !important;

    color: var(--as-blue, #2563eb) !important;

}



body:not(.page-agent-center):not(.page-auth):not(.page-tab-create):not(.page-tab-agent):not(.page-tab-mine):not(.page-tab-template):not(.page-tab-assistant) .upload-icon-wrap svg,

body:not(.page-agent-center):not(.page-auth):not(.page-tab-create):not(.page-tab-agent):not(.page-tab-mine):not(.page-tab-template):not(.page-tab-assistant) .upload-icon-wrap i {

    color: var(--as-blue, #2563eb) !important;

}



/* ── chip：未在 layout-unify 中专设的壳（自有产品等）与主题主色一致 ── */

body:not(.page-agent-center):not(.page-auth):not(.page-tab-create):not(.page-tab-agent):not(.page-tab-mine):not(.page-tab-template):not(.page-tab-assistant):not(.detail-page):not(.ecom-page):not(.linghui-page) .chip-btn.active {

    background: #e4e4e7 !important;

    color: #0a0a0a !important;

    border: 1px solid #52525b !important;

    font-weight: 700 !important;

    box-shadow: none !important;

}



body:not(.page-agent-center):not(.page-auth):not(.page-tab-create):not(.page-tab-agent):not(.page-tab-mine):not(.page-tab-template):not(.page-tab-assistant):not(.detail-page):not(.ecom-page):not(.linghui-page) .chip-btn:not(.active) {

    background: #ffffff !important;

    color: #334155 !important;

    border-color: rgba(15, 23, 42, 0.08) !important;

}



/* ── 说明 / 提示信息框 ── */

body:not(.page-agent-center):not(.page-auth):not(.page-tab-create):not(.page-tab-agent):not(.page-tab-mine):not(.page-tab-template):not(.page-tab-assistant) .section-hint,

body:not(.page-agent-center):not(.page-auth):not(.page-tab-create):not(.page-tab-agent):not(.page-tab-mine):not(.page-tab-template):not(.page-tab-assistant) .form-hint-block,

body:not(.page-agent-center):not(.page-auth):not(.page-tab-create):not(.page-tab-agent):not(.page-tab-mine):not(.page-tab-template):not(.page-tab-assistant) .lh-info-hint {

    background: color-mix(in srgb, var(--as-blue, #2563eb) 6%, #ffffff) !important;

    border: 1px solid color-mix(in srgb, var(--as-blue, #2563eb) 12%, transparent) !important;

    color: #64748b !important;

    border-radius: 16px !important;

}



body:not(.page-agent-center):not(.page-auth):not(.page-tab-create):not(.page-tab-agent):not(.page-tab-mine):not(.page-tab-template):not(.page-tab-assistant) .section-hint strong,

body:not(.page-agent-center):not(.page-auth):not(.page-tab-create):not(.page-tab-agent):not(.page-tab-mine):not(.page-tab-template):not(.page-tab-assistant) .form-hint-block strong {

    color: var(--as-blue, #2563eb) !important;

    font-weight: 700 !important;

}



/* ── 图生万物 / 通用 linghui 主内容区底 ── */

html body.linghui-page:not(.page-agent-center):not(.page-tab-create):not(.page-tab-agent):not(.page-tab-mine):not(.page-tab-template):not(.page-tab-assistant) {

    background: linear-gradient(180deg, #fafbfc 0%, color-mix(in srgb, var(--as-blue, #2563eb) 4%, #f1f5f9) 100%) !important;

    background-color: #f1f5f9 !important;

}



html body.linghui-page:not(.page-agent-center):not(.page-tab-create):not(.page-tab-agent):not(.page-tab-mine):not(.page-tab-template):not(.page-tab-assistant) .section-card {

    background: #ffffff !important;

    border: 1px solid rgba(15, 23, 42, 0.06) !important;

    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.045) !important;

}



/* ── 表单控件 focus（不改动 name/id，仅视觉） ── */

body:not(.page-agent-center):not(.page-auth):not(.page-tab-create):not(.page-tab-agent):not(.page-tab-mine):not(.page-tab-template):not(.page-tab-assistant) .form-input:focus,

body:not(.page-agent-center):not(.page-auth):not(.page-tab-create):not(.page-tab-agent):not(.page-tab-mine):not(.page-tab-template):not(.page-tab-assistant) .form-textarea:focus,

body:not(.page-agent-center):not(.page-auth):not(.page-tab-create):not(.page-tab-agent):not(.page-tab-mine):not(.page-tab-template):not(.page-tab-assistant) input[type="text"]:focus,

body:not(.page-agent-center):not(.page-auth):not(.page-tab-create):not(.page-tab-agent):not(.page-tab-mine):not(.page-tab-template):not(.page-tab-assistant) input[type="number"]:focus,

body:not(.page-agent-center):not(.page-auth):not(.page-tab-create):not(.page-tab-agent):not(.page-tab-mine):not(.page-tab-template):not(.page-tab-assistant) textarea:focus,

body:not(.page-agent-center):not(.page-auth):not(.page-tab-create):not(.page-tab-agent):not(.page-tab-mine):not(.page-tab-template):not(.page-tab-assistant) select:focus {

    border-color: color-mix(in srgb, var(--as-blue, #2563eb) 45%, transparent) !important;

    box-shadow: 0 0 0 3px color-mix(in srgb, var(--as-blue, #2563eb) 9%, transparent) !important;

    outline: none !important;

}



body:not(.page-agent-center):not(.page-auth):not(.page-tab-create):not(.page-tab-agent):not(.page-tab-mine):not(.page-tab-template):not(.page-tab-assistant) .form-input::placeholder,

body:not(.page-agent-center):not(.page-auth):not(.page-tab-create):not(.page-tab-agent):not(.page-tab-mine):not(.page-tab-template):not(.page-tab-assistant) .form-textarea::placeholder,

body:not(.page-agent-center):not(.page-auth):not(.page-tab-create):not(.page-tab-agent):not(.page-tab-mine):not(.page-tab-template):not(.page-tab-assistant) textarea::placeholder {

    color: #9aa4b2 !important;

}



/* ── 历史卡片：成功标签与主色一致 ── */

body:not(.page-agent-center):not(.page-auth):not(.page-tab-create):not(.page-tab-agent):not(.page-tab-mine):not(.page-tab-template):not(.page-tab-assistant) .history-status-tag.completed,

body:not(.page-agent-center):not(.page-auth):not(.page-tab-create):not(.page-tab-agent):not(.page-tab-mine):not(.page-tab-template):not(.page-tab-assistant) .history-card .tag--ok {

    background: color-mix(in srgb, var(--as-blue, #2563eb) 10%, #ffffff) !important;

    color: var(--as-blue, #2563eb) !important;

    border: 1px solid color-mix(in srgb, var(--as-blue, #2563eb) 22%, transparent) !important;

}



body:not(.page-agent-center):not(.page-auth):not(.page-tab-create):not(.page-tab-agent):not(.page-tab-mine):not(.page-tab-template):not(.page-tab-assistant) .history-card {

    background: #ffffff !important;

    border: 1px solid rgba(15, 23, 42, 0.06) !important;

    border-radius: 16px !important;

    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.05) !important;

}



/* 主按钮圆角与高度（与 shell 渐变叠加） */

body:not(.page-agent-center):not(.page-auth):not(.page-tab-create):not(.page-tab-agent):not(.page-tab-mine):not(.page-tab-template):not(.page-tab-assistant) .submit-btn:not(:disabled) {

    border-radius: 16px !important;

    min-height: 52px !important;

}



/* 合伙人中心 agent_center.php：页内无 .section-card 的节点也保证无投影（防御性，需与 body.page-agent-center 同用） */

html body.page-agent-center section.ac-ov.agent-overview-card,

html body.page-agent-center #ac-plans article.ac-plan-card,

html body.page-agent-center .purchase-card,

html body.page-agent-center .purchase-item__ico {

    box-shadow: none !important;

    -webkit-box-shadow: none !important;

}


