@charset "utf-8";
/* ==========================================================================
   AI 增强层样式（智能搜索页 + 全站智能客服浮层）
   --------------------------------------------------------------------------
   1. 全部类名以 .ai- 前缀命名，避免与主题现有样式冲突；
   2. 主色沿用站点橙 #ff4800，辅色沿用站点蓝 #2684fe；
   3. 断点与主题 responsive.css 对齐：1200 / 991 / 767 / 480。
   ========================================================================== */

/* ---------------------------------------------------------------- 1. 变量 */
:root {
    --ai-primary: #ff4800;
    --ai-primary-light: #ff7a33;
    --ai-blue: #2684fe;
    --ai-ink: #16202f;
    --ai-ink-2: #3c4a61;
    --ai-muted: #7b8799;
    --ai-line: #e8edf5;
    --ai-bg: #f6f8fc;
    --ai-radius: 16px;
    --ai-shadow-sm: 0 2px 10px rgba(22, 32, 47, .06);
    --ai-shadow-md: 0 12px 30px rgba(22, 32, 47, .10);
    --ai-shadow-lg: 0 26px 60px rgba(10, 20, 40, .22);
    --ai-font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
               "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

/* 智能客服浮层与主题回顶按钮垂直堆叠：
   统一右边缘与形状（圆形），避免右下角出现方圆混排、互相压盖 */
#scrollUp {
    right: 24px;
    bottom: 112px;
    border-radius: 50%;
}

/* 头部层级：.ai-hero 从页面顶部开始（padding 让内容下移）且带全屏渐变蒙版，
   DOM 顺序在 header 之后，同为 z-index:auto 时会盖住导航下拉菜单。
   这里给 header 一个明确层级，位置在页面内容之上、客服浮层（997/1200）之下，
   同时吸顶态（主题 .sticky-menu 原本只有 z-index:9）也一并提升。 */
#header-sticky {
    z-index: 900;
}

/* ------------------------------------------------ 2. 头部搜索入口（全站） */
/* 桌面端搜索入口：与 .shop-cart 平级的独立块。
   刻意不放进 .shop-cart —— 该容器的 :hover 会弹出微信二维码层 */
.ai-hd-search-wrap {
    margin-left: 22px;
    vertical-align: middle;
}

/* 搜索按钮插到菜单与「关注|咨询」之间后，原来的 35px 容器间距 + 按钮自身
   40px 左间距会把右侧拉开到 70px 以上，收掉按钮自带的 40px，统一由容器控制 */
@media (min-width: 992px) {
    .shop-cart {
        margin-left: 26px;
    }

    .shop-cart .header-btn {
        margin-left: 0;
    }
}

.ai-hd-search {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, .38);
    border-radius: 50%;
    color: #fff;
    font-size: 15px;
    vertical-align: middle;
    transition: all .25s ease;
}

.ai-hd-search:hover {
    background: rgba(255, 255, 255, .18);
    border-color: rgba(255, 255, 255, .7);
    color: #fff;
    transform: translateY(-1px);
}

.sticky-menu .ai-hd-search {
    color: #4d5d7a;
    border-color: #e6ebf3;
    background: #f4f6fa;
}

.sticky-menu .ai-hd-search:hover {
    color: var(--ai-primary);
    border-color: #ffd3bd;
    background: #fff6f1;
}

/* ≤991：头部已切成 meanmenu，.header-btn 被 d-xl-inline-block 隐藏，
   .shop-cart 只剩一个宽度为 0 的壳，里面的 HOT 角标（absolute right:-13px）
   会飘到旁边的搜索按钮上，实测在 820px 与圆形图标重叠。
   容器内已无可见内容，整个收掉。 */
@media (max-width: 991.98px) {
    .shop-cart.s-shop-cart {
        display: none !important;
    }
}

/* 992 正好落在 meanmenu（≤992 生效）与 Bootstrap（≥992 生效）的重叠带上，
   两套头部会同时出现、圆形按钮叠在一起。这一像素让位给移动菜单 */
@media (max-width: 992px) {
    .ai-hd-search-wrap,
    .shop-cart.s-shop-cart {
        display: none !important;
    }
}

/* 992–1199：.header-btn 被主题隐藏（d-xl-inline-block），它旁边的 HOT 角标
   会变成一枚没有依附对象的漂浮蓝点，随按钮一起收掉 */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .shop-cart > span {
        display: none;
    }
}

/* 992–1199 的微信入口：与搜索圆同款，仅此区间出现。
   放在 .shop-cart 内部，这样鼠标划过时能复用主题的二维码弹层 */
/* 注意：主题里有 `.shop-cart > a { display:inline-block }`（0,1,1），
   比单类选择器优先级高，所以这里必须带上父级，否则 display:none 不生效 */
.shop-cart > a.ai-hd-wechat {
    display: none;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    margin-left: 0;
    border: 1px solid rgba(255, 255, 255, .38);
    border-radius: 50%;
    vertical-align: middle;
    transition: background .25s ease, border-color .25s ease, transform .25s ease;
}

.ai-hd-wechat img {
    width: 17px;
    height: 17px;
    /* SVG 是纯黑路径，反相成白色才在紫色头部上可见 */
    filter: brightness(0) invert(1);
    opacity: .85;
}

@media (min-width: 992px) and (max-width: 1199.98px) {
    .shop-cart > a.ai-hd-wechat {
        display: inline-flex;
    }

    /* 这段宽度里 .col-lg-9 的内容区固定只有 690px：导航占 556，
       两个圆钮 + 两处间距必须压进 134px，否则整行换行、头部变高 */
    .ai-hd-search-wrap {
        margin-left: 18px;
    }

    .shop-cart {
        margin-left: 18px;
    }

    .ai-hd-search,
    .ai-hd-wechat {
        width: 38px;
        height: 38px;
    }
}

/* 主题给二维码层写的 right:-43px 会让它超出内容区 28px，
   任何宽度下页面都会多出一条横向滚动条；统一改为贴齐按钮右缘 */
.shop-cart .menu-cart-widget {
    right: 0;
}

.shop-cart > a.ai-hd-wechat:hover,
.shop-cart > a.ai-hd-wechat:focus {
    background: rgba(255, 255, 255, .18);
    border-color: rgba(255, 255, 255, .7);
    transform: translateY(-1px);
}

.sticky-menu .shop-cart > a.ai-hd-wechat {
    border-color: #e6ebf3;
    background: #f4f6fa;
}

.sticky-menu .ai-hd-wechat img {
    filter: none;
    opacity: .55;
}

.sticky-menu .shop-cart > a.ai-hd-wechat:hover {
    border-color: #ffd3bd;
    background: #fff6f1;
}

.sticky-menu .ai-hd-wechat:hover img {
    opacity: .75;
}

/* 移动端头部常驻搜索入口：由 ai-nav.js 注入到 .mean-bar，
   与 MENU 按钮共用同一坐标系（top:0 + 负 margin 上移到 logo 行） */
.ai-mean-search {
    display: none;
    position: absolute;
    top: 0;
    right: 62px;
    margin-top: -47px;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 2px solid #fff;
    border-radius: 50%;
    color: #fff;
    font-size: 12px;
    line-height: 1;
    transition: background .2s ease, border-color .2s ease, color .2s ease;
}

.mean-container .ai-mean-search {
    display: inline-flex;
}

.ai-mean-search:active {
    background: rgba(255, 255, 255, .22);
}

.transparent-header.sticky-menu .ai-mean-search {
    border-color: #ff4800;
    color: #ff4800;
}

/* 移动端抽屉里的搜索入口：仅在窄屏出现 */
.ai-msearch {
    display: none !important;
}

/* ==========================================================================
   3. 智能搜索页
   ========================================================================== */

.ai-page {
    font-family: var(--ai-font);
    color: var(--ai-ink);
    background: var(--ai-bg);
}

/* -------------------------------------------------------------- 3.1 首屏 */
.ai-hero {
    position: relative;
    padding: 148px 0 64px;
    overflow: hidden;
    background: #2a0b4d;
    background-image: url(../images/cateheader_bg.jpg);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

/* 紫色蒙版：与首页、栏目页的品牌紫保持同一色系，同时保证白色 LOGO / 导航可读 */
.ai-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(118deg, rgba(38, 9, 68, .96) 0%, rgba(78, 20, 138, .92) 46%, rgba(116, 34, 190, .86) 100%);
}

/* 右上角暖色光晕，呼应站点主色 */
.ai-hero::after {
    content: "";
    position: absolute;
    top: -180px;
    right: -120px;
    width: 520px;
    height: 520px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 72, 0, .34) 0%, rgba(255, 72, 0, 0) 66%);
    pointer-events: none;
}

.ai-hero .container {
    position: relative;
    z-index: 2;
}

.ai-hero-inner {
    max-width: 860px;
    margin: 0 auto;
    text-align: center;
}

.ai-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 16px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 40px;
    background: rgba(255, 255, 255, .08);
    color: #ffd9c5;
    font-size: 13px;
    letter-spacing: .04em;
    backdrop-filter: blur(6px);
}

.ai-hero-badge i {
    color: var(--ai-primary-light);
}

.ai-hero-inner h1 {
    margin: 0 0 14px;
    color: #fff;
    font-size: 40px;
    font-weight: 700;
    line-height: 1.28;
    letter-spacing: -.5px;
}

.ai-hero-inner h1 em {
    font-style: normal;
    background: linear-gradient(90deg, #ff8a4c, #ff4800);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.ai-hero-sub {
    margin: 0 0 32px;
    color: rgba(255, 255, 255, .68);
    font-size: 15px;
    line-height: 1.8;
}

/* -------------------------------------------------------- 3.2 搜索输入框 */
.ai-search-form {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 8px 8px 26px;
    background: #fff;
    border-radius: 999px;
    box-shadow: 0 22px 46px rgba(3, 10, 26, .34);
    transition: box-shadow .25s ease;
}

.ai-search-form:focus-within {
    box-shadow: 0 22px 46px rgba(3, 10, 26, .34), 0 0 0 4px rgba(255, 72, 0, .22);
}

.ai-search-form > i {
    flex: none;
    color: #b9c2d1;
    font-size: 19px;
}

.ai-search-form input {
    flex: 1 1 auto;
    min-width: 0;
    height: 52px;
    padding: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--ai-ink);
    font-family: var(--ai-font);
    font-size: 17px;
    line-height: 52px;
}

.ai-search-form input::placeholder {
    color: #a8b2c2;
}

.ai-search-clear {
    flex: none;
    display: none;
    width: 28px;
    height: 28px;
    border: 0;
    border-radius: 50%;
    background: #eef1f7;
    color: #8d99ab;
    font-size: 12px;
    line-height: 28px;
    cursor: pointer;
    transition: all .2s ease;
}

.ai-search-clear:hover {
    background: #e2e7f0;
    color: var(--ai-ink-2);
}

.ai-search-clear.is-show {
    display: block;
}

.ai-search-submit {
    flex: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 52px;
    padding: 0 30px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, #ff7a33, #ff4800);
    box-shadow: 0 10px 22px rgba(255, 72, 0, .34);
    color: #fff;
    font-family: var(--ai-font);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all .25s ease;
}

.ai-search-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 26px rgba(255, 72, 0, .42);
}

.ai-search-submit i {
    font-size: 14px;
}

/* ------------------------------------------------------------ 3.3 热词 */
.ai-hot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 22px;
    font-size: 13px;
}

.ai-hot-label {
    color: rgba(255, 255, 255, .55);
    letter-spacing: .02em;
}

.ai-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 15px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 30px;
    background: rgba(255, 255, 255, .07);
    color: rgba(255, 255, 255, .86);
    font-size: 13px;
    line-height: 1;
    cursor: pointer;
    transition: all .22s ease;
}

.ai-chip:hover {
    background: rgba(255, 72, 0, .9);
    border-color: rgba(255, 72, 0, .9);
    color: #fff;
    transform: translateY(-1px);
}

.ai-chip i {
    font-size: 11px;
    opacity: .75;
}

/* 近期搜索（浅色底，出现在结果区上方） */
.ai-recent {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 22px;
    font-size: 13px;
    color: var(--ai-muted);
}

.ai-recent .ai-chip {
    border-color: var(--ai-line);
    background: #fff;
    color: var(--ai-ink-2);
}

.ai-recent .ai-chip:hover {
    border-color: var(--ai-primary);
    background: var(--ai-primary);
    color: #fff;
}

.ai-recent-clear {
    border: 0;
    background: none;
    color: var(--ai-muted);
    font-size: 12px;
    text-decoration: underline;
    cursor: pointer;
}

.ai-recent-clear:hover {
    color: var(--ai-primary);
}

/* ------------------------------------------------------- 3.4 内容区栅格 */
.ai-body {
    padding: 40px 0 90px;
}

.ai-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 308px;
    gap: 30px;
    align-items: start;
}

/* 主列 min-width:0 防止长链接把栅格撑破 */
.ai-main {
    min-width: 0;
}

/* -------------------------------------------------------- 3.5 结果工具条 */
.ai-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 20px;
    margin-bottom: 16px;
    background: #fff;
    border-radius: var(--ai-radius);
    box-shadow: var(--ai-shadow-sm);
}

.ai-toolbar-info {
    font-size: 14px;
    color: var(--ai-muted);
}

.ai-toolbar-info strong {
    color: var(--ai-ink);
    font-weight: 600;
}

.ai-toolbar-info em {
    font-style: normal;
    color: var(--ai-primary);
    font-weight: 600;
}

.ai-toolbar-meta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: 10px;
    padding-left: 10px;
    border-left: 1px solid var(--ai-line);
    font-size: 12px;
    color: #9aa5b6;
}

.ai-ask-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    border: 1px solid #ffd7c3;
    border-radius: 30px;
    background: #fff7f3;
    color: var(--ai-primary);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all .22s ease;
}

.ai-ask-btn:hover {
    background: linear-gradient(135deg, #ff7a33, #ff4800);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 8px 18px rgba(255, 72, 0, .28);
}

/* ---------------------------------------------------------- 3.6 结果卡片 */
.ai-results {
    display: block;
}

.ai-result {
    position: relative;
    display: block;
    padding: 22px 24px 20px;
    margin-bottom: 14px;
    background: #fff;
    border: 1px solid transparent;
    border-radius: var(--ai-radius);
    box-shadow: var(--ai-shadow-sm);
    color: inherit;
    transition: all .25s ease;
}

.ai-result::before {
    content: "";
    position: absolute;
    left: 0;
    top: 22px;
    bottom: 22px;
    width: 3px;
    border-radius: 3px;
    background: linear-gradient(180deg, #ff7a33, #ff4800);
    opacity: 0;
    transition: opacity .25s ease;
}

.ai-result:hover {
    border-color: #ffdccb;
    box-shadow: var(--ai-shadow-md);
    transform: translateY(-2px);
    color: inherit;
    text-decoration: none;
}

.ai-result:hover::before {
    opacity: 1;
}

.ai-result-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.ai-tag {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 12px;
    line-height: 1.6;
    font-weight: 600;
}

.ai-tag-info {
    background: #eef5ff;
    color: var(--ai-blue);
}

.ai-tag-spec {
    background: #f3efff;
    color: #7a5af8;
}

.ai-tag-service {
    background: #fff2ec;
    color: var(--ai-primary);
}

.ai-tag-page {
    background: #eefaf3;
    color: #17a673;
}

.ai-result-title {
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
    color: var(--ai-ink);
    font-size: 17px;
    font-weight: 600;
    line-height: 1.55;
    transition: color .2s ease;
}

.ai-result:hover .ai-result-title {
    color: var(--ai-primary);
}

.ai-result-no {
    flex: none;
    color: #c3cbd8;
    font-size: 13px;
    font-weight: 700;
    font-family: "SFMono-Regular", Consolas, monospace;
}

.ai-result-snippet {
    margin: 0 0 12px;
    color: var(--ai-ink-2);
    font-size: 14px;
    line-height: 1.85;
    overflow-wrap: break-word;
    word-break: break-word;
}

.ai-result-snippet mark {
    padding: 0 3px;
    border-radius: 3px;
    background: #fff1d6;
    color: #b3480a;
    font-weight: 600;
}

.ai-result-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 12px;
    border-top: 1px dashed var(--ai-line);
}

.ai-result-url {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    color: #9aa5b6;
    font-size: 12px;
    font-family: "SFMono-Regular", Consolas, monospace;
}

.ai-result-url span {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.ai-result-go {
    flex: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--ai-primary);
    font-size: 13px;
    font-weight: 600;
}

.ai-result-go i {
    transition: transform .25s ease;
}

.ai-result:hover .ai-result-go i {
    transform: translateX(4px);
}

/* 弱匹配提示条：关键词没有命中，只有语义相近结果时出现 */
.ai-notice {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 16px;
    margin-bottom: 14px;
    border: 1px solid #ffe1cf;
    border-radius: 12px;
    background: #fff8f3;
    color: #8a5a3c;
    font-size: 13px;
    line-height: 1.7;
}

.ai-notice > i {
    flex: none;
    color: var(--ai-primary);
    font-size: 15px;
}

.ai-notice > span {
    flex: 1 1 auto;
    min-width: 0;
}

.ai-notice-btn {
    flex: none;
    padding: 6px 14px;
    border: 0;
    border-radius: 20px;
    background: linear-gradient(135deg, #ff7a33, #ff4800);
    color: #fff;
    font-family: var(--ai-font);
    font-size: 12.5px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    transition: all .2s ease;
}

.ai-notice-btn:hover {
    box-shadow: 0 6px 14px rgba(255, 72, 0, .3);
}

/* ------------------------------------------------------- 3.7 骨架屏 */
.ai-skeleton {
    padding: 24px;
    margin-bottom: 14px;
    background: #fff;
    border-radius: var(--ai-radius);
    box-shadow: var(--ai-shadow-sm);
}

.ai-skeleton span {
    display: block;
    height: 12px;
    margin-bottom: 12px;
    border-radius: 6px;
    background: linear-gradient(90deg, #eef1f6 25%, #f7f9fc 37%, #eef1f6 63%);
    background-size: 400% 100%;
    animation: ai-shimmer 1.4s ease infinite;
}

.ai-skeleton span:nth-child(1) {
    width: 32%;
    height: 16px;
}

.ai-skeleton span:nth-child(2) {
    width: 92%;
}

.ai-skeleton span:nth-child(3) {
    width: 68%;
    margin-bottom: 0;
}

@keyframes ai-shimmer {
    0% { background-position: 100% 50%; }
    100% { background-position: 0 50%; }
}

/* --------------------------------------------------------- 3.8 状态提示 */
.ai-state {
    padding: 56px 24px;
    background: #fff;
    border-radius: var(--ai-radius);
    box-shadow: var(--ai-shadow-sm);
    text-align: center;
}

.ai-state-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 76px;
    height: 76px;
    margin-bottom: 18px;
    border-radius: 50%;
    background: linear-gradient(135deg, #fff1e9, #ffe3d6);
    color: var(--ai-primary);
    font-size: 30px;
}

.ai-state h3 {
    margin: 0 0 10px;
    color: var(--ai-ink);
    font-size: 18px;
    font-weight: 600;
}

.ai-state p {
    margin: 0 auto 20px;
    max-width: 520px;
    color: var(--ai-muted);
    font-size: 14px;
    line-height: 1.85;
}

.ai-state-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.ai-state .ai-chip {
    border-color: var(--ai-line);
    background: #fff;
    color: var(--ai-ink-2);
}

.ai-state .ai-chip:hover {
    border-color: var(--ai-primary);
    background: var(--ai-primary);
    color: #fff;
}

/* 默认态底部的引导横幅：把「搜不到」的人自然导向 AI 助手 */
.ai-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 26px 28px;
    margin-top: 16px;
    border: 1px solid #ffe0cf;
    border-radius: var(--ai-radius);
    background: linear-gradient(120deg, #fff5ef 0%, #ffe9dd 100%);
}

.ai-cta-text h3 {
    margin: 0 0 6px;
    color: var(--ai-ink);
    font-size: 17px;
    font-weight: 600;
}

.ai-cta-text p {
    margin: 0;
    color: #8a6a58;
    font-size: 13.5px;
    line-height: 1.8;
}

.ai-cta-btn {
    flex: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: 0;
    border-radius: 30px;
    background: linear-gradient(135deg, #ff7a33, #ff4800);
    box-shadow: 0 10px 22px rgba(255, 72, 0, .28);
    color: #fff;
    font-family: var(--ai-font);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all .25s ease;
}

.ai-cta-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 26px rgba(255, 72, 0, .36);
}

/* 首屏引导卡片（无关键词时） */
.ai-intro-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 14px;
}

.ai-intro-card {
    padding: 24px;
    background: #fff;
    border-radius: var(--ai-radius);
    box-shadow: var(--ai-shadow-sm);
    transition: all .25s ease;
}

.ai-intro-card:hover {
    box-shadow: var(--ai-shadow-md);
    transform: translateY(-2px);
}

.ai-intro-card i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-bottom: 14px;
    border-radius: 12px;
    background: #fff3ed;
    color: var(--ai-primary);
    font-size: 18px;
}

.ai-intro-card h4 {
    margin: 0 0 8px;
    color: var(--ai-ink);
    font-size: 15px;
    font-weight: 600;
}

.ai-intro-card p {
    margin: 0;
    color: var(--ai-muted);
    font-size: 13px;
    line-height: 1.8;
}

/* --------------------------------------------------------------- 3.9 侧栏 */
.ai-aside {
    display: flex;
    flex-direction: column;
    gap: 18px;
    position: sticky;
    top: 100px;
}

.ai-card {
    padding: 22px;
    background: #fff;
    border-radius: var(--ai-radius);
    box-shadow: var(--ai-shadow-sm);
}

.ai-card-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    color: var(--ai-ink);
    font-size: 15px;
    font-weight: 600;
}

.ai-card-title span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.ai-card-title span::before {
    content: "";
    width: 4px;
    height: 15px;
    border-radius: 2px;
    background: linear-gradient(180deg, #ff7a33, #ff4800);
}

.ai-card-title a {
    color: var(--ai-muted);
    font-size: 12px;
    font-weight: 400;
}

.ai-card-title a:hover {
    color: var(--ai-primary);
}

/* AI 客服引导卡 */
.ai-card-chat {
    position: relative;
    overflow: hidden;
    background: linear-gradient(150deg, #42137a 0%, #250b46 100%);
    color: #fff;
}

.ai-card-chat::after {
    content: "";
    position: absolute;
    top: -70px;
    right: -60px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 72, 0, .45) 0%, rgba(255, 72, 0, 0) 70%);
}

.ai-card-chat .ai-card-title {
    color: #fff;
    margin-bottom: 12px;
}

.ai-card-chat .ai-card-title span::before {
    background: var(--ai-primary-light);
}

.ai-card-chat p {
    position: relative;
    z-index: 1;
    margin: 0 0 18px;
    color: rgba(255, 255, 255, .7);
    font-size: 13px;
    line-height: 1.85;
}

.ai-card-chat-btn {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    justify-content: center;
    padding: 11px 18px;
    border: 0;
    border-radius: 10px;
    background: linear-gradient(135deg, #ff7a33, #ff4800);
    box-shadow: 0 10px 22px rgba(255, 72, 0, .32);
    color: #fff;
    font-family: var(--ai-font);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all .25s ease;
}

.ai-card-chat-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(255, 72, 0, .42);
}

/* 侧栏列表 */
.ai-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.ai-list li {
    padding: 10px 0;
    border-bottom: 1px dashed var(--ai-line);
}

.ai-list li:first-child {
    padding-top: 0;
}

.ai-list li:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.ai-list a {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--ai-ink-2);
    font-size: 13.5px;
    line-height: 1.65;
    transition: color .2s ease;
}

.ai-list a:hover {
    color: var(--ai-primary);
}

.ai-list-no {
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    margin-top: 1px;
    border-radius: 6px;
    background: #f2f5fa;
    color: #98a4b6;
    font-size: 11px;
    font-weight: 700;
    font-family: "SFMono-Regular", Consolas, monospace;
}

.ai-list li:nth-child(1) .ai-list-no,
.ai-list li:nth-child(2) .ai-list-no,
.ai-list li:nth-child(3) .ai-list-no {
    background: #fff1e9;
    color: var(--ai-primary);
}

.ai-list-text {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

/* ==========================================================================
   4. 智能客服浮层
   ========================================================================== */

/* --------------------------------------------------------- 4.1 启动按钮 */
/* 形态：胶囊 = 「机器人头像 + 身份 + 在线状态」。
   与面板头部的深紫底 / 橙色头像同一套语言：白色圆底承托橙色机器人，
   文字分主副两行，读起来是一个可点的产品入口，而不是一个聊天气泡图标。 */
.ai-chat-launcher {
    position: fixed;
    right: 24px;
    bottom: 22px;
    z-index: 998;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    height: 58px;
    padding: 0 18px 0 7px;
    border: 0;
    border-radius: 29px;
    background: linear-gradient(135deg, #ff8a45 0%, #ff5a15 46%, #ee3f00 100%);
    box-shadow:
        0 14px 30px rgba(255, 72, 0, .34),
        0 3px 8px rgba(20, 26, 40, .12),
        inset 0 1px 0 rgba(255, 255, 255, .34),
        inset 0 -2px 6px rgba(150, 40, 0, .16);
    color: #fff;
    font-family: var(--ai-font);
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    cursor: pointer;
    transition: transform .3s cubic-bezier(.34, 1.36, .64, 1),
                box-shadow .3s ease,
                opacity .24s ease;
}

/* 头像：白底承托橙色机器人，和面板头部头像形成呼应 */
.ai-launch-orb {
    position: relative;
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(180deg, #ffffff 0%, #fff4ec 100%);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .9), 0 2px 6px rgba(150, 55, 0, .18);
    color: #f24c00;
    font-size: 20px;
}

/* 在线状态点：贴在头像右下角，像 IM 里的在线标识 */
.ai-launch-dot {
    position: absolute;
    right: 0;
    bottom: 1px;
    width: 10px;
    height: 10px;
    border: 2px solid #ff5f18;
    border-radius: 50%;
    background: #3ddc84;
}

.ai-launch-label {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.ai-launch-label strong {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .3px;
    line-height: 1.25;
}

.ai-launch-label em {
    color: rgba(255, 255, 255, .86);
    font-size: 10.5px;
    font-style: normal;
    letter-spacing: .2px;
    line-height: 1.25;
}

/* 悬停：抬升 + 一道斜向流光扫过，不做放大，避免胶囊形变时文字抖动。
   限定真 hover 设备，触屏点完不会卡在悬停态。 */
@media (hover: hover) and (pointer: fine) {
    .ai-chat-launcher:hover {
        transform: translateY(-3px);
        box-shadow:
            0 20px 38px rgba(255, 72, 0, .42),
            0 4px 10px rgba(20, 26, 40, .14),
            inset 0 1px 0 rgba(255, 255, 255, .4),
            inset 0 -2px 6px rgba(150, 40, 0, .16);
    }

    .ai-chat-launcher:hover::after {
        transform: translateX(320%) skewX(-18deg);
    }
}

.ai-chat-launcher:active {
    transform: translateY(-1px) scale(.985);
}

.ai-chat-launcher::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 60%;
    height: 100%;
    background: linear-gradient(100deg, transparent 0%, rgba(255, 255, 255, .34) 50%, transparent 100%);
    transform: translateX(-180%) skewX(-18deg);
    pointer-events: none;
    transition: transform .65s ease;
}

/* 面板打开时收起启动按钮：面板自带关闭按钮，避免右下角同时出现两个入口 */
.ai-chat-launcher.is-open {
    opacity: 0;
    pointer-events: none;
    transform: translateY(12px);
}

/* 呼吸外圈：胶囊外形下扩散过度会像另一个按钮，改成很轻的一层光环 */
.ai-chat-launcher::before {
    content: "";
    position: absolute;
    inset: -2px;
    border: 1px solid rgba(255, 96, 30, .5);
    border-radius: inherit;
    animation: ai-pulse 3s ease-out infinite;
    pointer-events: none;
}

.ai-chat-launcher.is-open::before {
    display: none;
}

@keyframes ai-pulse {
    0% { transform: scale(1); opacity: .85; }
    70% { transform: scale(1.07); opacity: 0; }
    100% { transform: scale(1.07); opacity: 0; }
}

/* 首次进入的引导气泡 */
.ai-chat-tip {
    position: fixed;
    right: 189px;
    bottom: 18px;
    z-index: 997;
    max-width: 232px;
    padding: 12px 34px 12px 14px;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(22, 32, 47, .14), 0 2px 6px rgba(22, 32, 47, .06);
    color: var(--ai-ink-2);
    font-family: var(--ai-font);
    font-size: 13px;
    line-height: 1.6;
    opacity: 0;
    transform: translateX(10px);
    pointer-events: none;
    transition: all .35s ease;
}

.ai-chat-tip.is-show {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

.ai-chat-tip::after {
    content: "";
    position: absolute;
    right: -5px;
    top: 50%;
    margin-top: -5px;
    width: 10px;
    height: 10px;
    background: #fff;
    transform: rotate(45deg);
}

.ai-chat-tip-close {
    position: absolute;
    top: 6px;
    right: 8px;
    border: 0;
    background: none;
    color: #b6bfcc;
    font-size: 12px;
    line-height: 1;
    cursor: pointer;
}

.ai-chat-tip-close:hover {
    color: var(--ai-ink-2);
}

/* ------------------------------------------------------------ 4.2 面板 */
.ai-chat-panel {
    position: fixed;
    right: 24px;
    bottom: 92px;
    z-index: 1200;
    display: flex;
    flex-direction: column;
    width: 392px;
    max-width: calc(100vw - 32px);
    height: 620px;
    max-height: calc(100vh - 130px);
    border-radius: 18px;
    background: #fff;
    box-shadow: var(--ai-shadow-lg);
    font-family: var(--ai-font);
    overflow: hidden;
    opacity: 0;
    transform: translateY(18px) scale(.97);
    transform-origin: right bottom;
    pointer-events: none;
    transition: opacity .26s ease, transform .3s cubic-bezier(.34, 1.2, .64, 1);
}

.ai-chat-panel.is-open {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

/* 头部 */
.ai-chat-head {
    position: relative;
    flex: none;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 16px;
    background: linear-gradient(135deg, #3d1168 0%, #1f0938 100%);
    color: #fff;
    overflow: hidden;
}

.ai-chat-head::after {
    content: "";
    position: absolute;
    top: -60px;
    right: -40px;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 72, 0, .4) 0%, rgba(255, 72, 0, 0) 70%);
}

.ai-chat-avatar {
    position: relative;
    z-index: 1;
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: linear-gradient(135deg, #ff7a33, #ff4800);
    font-size: 17px;
}

.ai-chat-head-text {
    position: relative;
    z-index: 1;
    flex: 1 1 auto;
    min-width: 0;
}

.ai-chat-head-text h4 {
    margin: 0 0 3px;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
}

.ai-chat-head-text span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: rgba(255, 255, 255, .62);
    font-size: 11.5px;
}

.ai-chat-head-text span::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #35d07f;
    box-shadow: 0 0 0 3px rgba(53, 208, 127, .22);
}

.ai-chat-head-actions {
    position: relative;
    z-index: 1;
    flex: none;
    display: flex;
    gap: 4px;
}

.ai-chat-icon-btn {
    width: 30px;
    height: 30px;
    border: 0;
    border-radius: 8px;
    background: rgba(255, 255, 255, .1);
    color: rgba(255, 255, 255, .82);
    font-size: 12px;
    cursor: pointer;
    transition: all .2s ease;
}

.ai-chat-icon-btn:hover {
    background: rgba(255, 255, 255, .22);
    color: #fff;
}

/* 消息区 */
.ai-chat-body {
    flex: 1 1 auto;
    padding: 18px 16px 4px;
    background: #f7f9fc;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.ai-chat-body::-webkit-scrollbar {
    width: 6px;
}

.ai-chat-body::-webkit-scrollbar-thumb {
    border-radius: 3px;
    background: #d7dee9;
}

.ai-msg {
    display: flex;
    gap: 9px;
    margin-bottom: 16px;
    align-items: flex-start;
}

.ai-msg-avatar {
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 9px;
    background: linear-gradient(135deg, #ff7a33, #ff4800);
    color: #fff;
    font-size: 12px;
}

.ai-msg-main {
    min-width: 0;
    max-width: 86%;
}

.ai-msg-bubble {
    padding: 11px 14px;
    border-radius: 4px 14px 14px 14px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(22, 32, 47, .06);
    color: var(--ai-ink-2);
    font-size: 14px;
    line-height: 1.8;
    overflow-wrap: break-word;
    word-break: break-word;
}

.ai-msg-bubble p {
    margin: 0 0 8px;
}

.ai-msg-bubble p:last-child {
    margin-bottom: 0;
}

.ai-msg-bubble strong {
    color: var(--ai-ink);
    font-weight: 600;
}

/* 主题全局把 ul 的 list-style 置为 none，这里必须显式恢复，
   否则模型输出的要点列表会变成没有圆点的一堆散行 */
.ai-msg-bubble ul,
.ai-msg-bubble ol {
    margin: 4px 0 8px;
    padding-left: 20px;
}

.ai-msg-bubble ul {
    list-style: disc outside;
}

.ai-msg-bubble ol {
    list-style: decimal outside;
}

/* 主题对 li 也做了 list-style: none，需要逐个纠正 */
.ai-msg-bubble ul > li {
    display: list-item;
    list-style: disc outside;
}

.ai-msg-bubble ol > li {
    display: list-item;
    list-style: decimal outside;
}

.ai-msg-bubble li {
    margin-bottom: 3px;
    padding-left: 2px;
}

.ai-msg-bubble a {
    color: var(--ai-blue);
    text-decoration: underline;
    word-break: break-all;
}

.ai-msg-bubble code {
    padding: 1px 5px;
    border-radius: 4px;
    background: #f2f5fa;
    color: #d1460c;
    font-size: 12.5px;
}

.ai-msg.is-user {
    flex-direction: row-reverse;
}

.ai-msg.is-user .ai-msg-main {
    max-width: 82%;
}

.ai-msg.is-user .ai-msg-bubble {
    border-radius: 14px 4px 14px 14px;
    background: linear-gradient(135deg, #ff7a33, #ff4800);
    box-shadow: 0 6px 16px rgba(255, 72, 0, .26);
    color: #fff;
}

.ai-msg-time {
    margin-top: 5px;
    color: #aeb8c6;
    font-size: 11px;
}

.ai-msg.is-user .ai-msg-time {
    text-align: right;
}

/* 打字指示器 */
.ai-typing {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    height: 20px;
}

.ai-typing i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #c2cbd8;
    animation: ai-typing 1.2s ease-in-out infinite;
}

.ai-typing i:nth-child(2) { animation-delay: .16s; }
.ai-typing i:nth-child(3) { animation-delay: .32s; }

@keyframes ai-typing {
    0%, 60%, 100% { transform: translateY(0); opacity: .45; }
    30% { transform: translateY(-4px); opacity: 1; }
}

/* 流式光标 */
.ai-caret {
    display: inline-block;
    width: 2px;
    height: 15px;
    margin-left: 2px;
    background: var(--ai-primary);
    vertical-align: -2px;
    animation: ai-blink .9s step-end infinite;
}

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

/* 参考资料 */
.ai-refs {
    margin-top: 9px;
    border-top: 1px dashed #e3e9f2;
    padding-top: 8px;
}

.ai-refs-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 0;
    background: none;
    padding: 0;
    color: #8b97a9;
    font-family: var(--ai-font);
    font-size: 12px;
    cursor: pointer;
}

.ai-refs-toggle:hover {
    color: var(--ai-primary);
}

.ai-refs-toggle i {
    font-size: 10px;
    transition: transform .22s ease;
}

.ai-refs.is-open .ai-refs-toggle i {
    transform: rotate(90deg);
}

.ai-refs-list {
    display: none;
    margin: 8px 0 0;
    padding: 0;
    list-style: none;
}

.ai-refs.is-open .ai-refs-list {
    display: block;
}

.ai-refs-list li {
    margin-bottom: 6px;
}

.ai-refs-list a {
    display: flex;
    gap: 6px;
    color: #6f7d92;
    font-size: 12px;
    line-height: 1.6;
    transition: color .2s ease;
}

.ai-refs-list a:hover {
    color: var(--ai-primary);
}

.ai-refs-list a span {
    flex: none;
    color: #b3bccb;
    font-family: "SFMono-Regular", Consolas, monospace;
}

.ai-refs-list a em {
    font-style: normal;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
}

/* 欢迎语与推荐问题 */
.ai-welcome {
    margin-bottom: 16px;
}

.ai-suggests {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
}

.ai-suggest {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 14px;
    border: 1px solid #e6ecf5;
    border-radius: 10px;
    background: #fff;
    color: var(--ai-ink-2);
    font-family: var(--ai-font);
    font-size: 13px;
    text-align: left;
    cursor: pointer;
    transition: all .22s ease;
}

.ai-suggest:hover {
    border-color: #ffd3bd;
    background: #fff8f4;
    color: var(--ai-primary);
}

.ai-suggest i {
    flex: none;
    color: #c7d0dd;
    font-size: 11px;
}

.ai-suggest:hover i {
    color: var(--ai-primary);
}

/* 底部输入区 */
.ai-chat-foot {
    flex: none;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    border-top: 1px solid #eef2f8;
    background: #fff;
}

.ai-chat-inputbar {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    padding: 6px 6px 6px 12px;
    border: 1px solid #e4eaf3;
    border-radius: 14px;
    background: #fafbfd;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.ai-chat-inputbar:focus-within {
    border-color: #ffc4a8;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(255, 72, 0, .1);
}

.ai-chat-inputbar textarea {
    flex: 1 1 auto;
    min-width: 0;
    min-height: 24px;
    max-height: 104px;
    padding: 9px 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--ai-ink);
    font-family: var(--ai-font);
    font-size: 14px;
    line-height: 1.6;
    resize: none;
    overflow-y: auto;
}

.ai-chat-inputbar textarea::placeholder {
    color: #aab4c3;
}

.ai-chat-send {
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 10px;
    background: linear-gradient(135deg, #ff7a33, #ff4800);
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    transition: all .22s ease;
}

.ai-chat-send:hover {
    box-shadow: 0 8px 16px rgba(255, 72, 0, .32);
}

.ai-chat-send:disabled {
    background: #e7ebf2;
    color: #b6c0cf;
    box-shadow: none;
    cursor: not-allowed;
}

.ai-chat-send.is-stop {
    background: #eef1f7;
    color: #5d6b80;
}

.ai-chat-hint {
    margin: 8px 2px 0;
    color: #b0b9c7;
    font-size: 11px;
    line-height: 1.5;
    text-align: center;
}

/* 全屏遮罩（仅移动端使用） */
.ai-chat-mask {
    position: fixed;
    inset: 0;
    z-index: 1190;
    background: rgba(12, 20, 34, .45);
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease;
}

.ai-chat-mask.is-show {
    opacity: 1;
    pointer-events: auto;
}

body.ai-chat-lock {
    overflow: hidden;
}

/* ==========================================================================
   5. 响应式
   ========================================================================== */

/* 1200 以下：收窄侧栏 */
@media (max-width: 1199px) {
    .ai-hero {
        padding-top: 138px;
    }

    .ai-hero-inner h1 {
        font-size: 34px;
    }

    .ai-grid {
        grid-template-columns: minmax(0, 1fr) 274px;
        gap: 24px;
    }

    .ai-card {
        padding: 20px;
    }
}

/* 991 以下：单列，侧栏改为双列图文块 */
@media (max-width: 991px) {
    .ai-hero {
        padding: 126px 0 52px;
    }

    .ai-hero-inner h1 {
        font-size: 30px;
    }

    .ai-hero-sub {
        font-size: 14px;
        margin-bottom: 26px;
    }

    .ai-search-form {
        padding-left: 20px;
    }

    .ai-search-form input {
        height: 48px;
        font-size: 15.5px;
        line-height: 48px;
    }

    .ai-search-submit {
        height: 48px;
        padding: 0 22px;
        font-size: 15px;
    }

    .ai-body {
        padding: 32px 0 70px;
    }

    .ai-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    /* 侧栏不再吸顶，改为常规流式排列 */
    .ai-aside {
        position: static;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }

    .ai-card-chat {
        grid-column: 1 / -1;
    }


    .ai-msearch {
        display: block !important;
    }
}

/* 767 以下：紧凑化 */
@media (max-width: 767px) {
    .ai-hero {
        padding: 104px 0 38px;
    }

    .ai-hero-badge {
        font-size: 12px;
        padding: 6px 13px;
    }

    .ai-hero-inner h1 {
        font-size: 25px;
        line-height: 1.35;
    }

    .ai-hero-sub {
        margin-bottom: 22px;
        font-size: 13px;
        line-height: 1.75;
    }

    /* 搜索框改为两行式：输入框圆角、按钮全宽 */
    .ai-search-form {
        flex-wrap: wrap;
        padding: 10px 10px 10px 16px;
        border-radius: 18px;
        gap: 8px;
    }

    .ai-search-form > i {
        display: none;
    }

    .ai-search-form input {
        height: 44px;
        font-size: 15px;
        line-height: 44px;
        padding-left: 4px;
    }

    .ai-search-submit {
        width: 100%;
        height: 46px;
        justify-content: center;
        border-radius: 14px;
    }

    .ai-hot {
        justify-content: flex-start;
        gap: 8px;
        margin-top: 16px;
    }

    .ai-hot-label {
        width: 100%;
        text-align: left;
        margin-bottom: 2px;
    }

    .ai-chip {
        padding: 7px 13px;
        font-size: 12.5px;
    }

    .ai-toolbar {
        padding: 13px 16px;
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .ai-toolbar-info {
        font-size: 13px;
    }

    .ai-toolbar-meta {
        display: flex;
        margin: 4px 0 0;
        padding: 0;
        border: 0;
    }

    .ai-ask-btn {
        align-self: flex-start;
        width: auto;
    }

    .ai-result {
        padding: 18px 16px 16px;
        margin-bottom: 12px;
    }

    .ai-result-title {
        font-size: 15.5px;
    }

    .ai-result-snippet {
        font-size: 13.5px;
        line-height: 1.8;
    }

    .ai-result-url {
        display: none;
    }

    .ai-aside {
        grid-template-columns: minmax(0, 1fr);
    }

    .ai-intro-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .ai-cta {
        flex-direction: column;
        align-items: flex-start;
        padding: 22px 20px;
    }

    .ai-cta-btn {
        width: 100%;
        justify-content: center;
    }

    .ai-state {
        padding: 40px 18px;
    }

    .ai-state-icon {
        width: 64px;
        height: 64px;
        font-size: 25px;
    }

    /* 客服面板：移动端底部弹层。
       高度优先用动态视口单位 dvh，键盘弹起时自动收缩，避免输入框被键盘挡住；
       不支持的浏览器回落到 vh。 */
    .ai-chat-panel {
        right: 0;
        left: 0;
        bottom: 0;
        width: 100%;
        max-width: 100%;
        height: 86vh;
        height: 86dvh;
        max-height: 86vh;
        max-height: 86dvh;
        border-radius: 18px 18px 0 0;
        transform: translateY(100%);
        transform-origin: center bottom;
    }

    .ai-chat-panel.is-open {
        transform: translateY(0);
    }

    /* 移动端保留胶囊，只做等比例收紧，AI 身份不丢 */
    .ai-chat-launcher {
        right: 14px;
        bottom: 64px;
        gap: 8px;
        height: 52px;
        padding: 0 15px 0 6px;
        border-radius: 26px;
    }

    .ai-launch-orb {
        width: 40px;
        height: 40px;
        font-size: 17px;
    }

    .ai-launch-label strong {
        font-size: 13px;
    }

    .ai-launch-label em {
        font-size: 10px;
    }

    .ai-chat-tip {
        right: 172px;
        bottom: 58px;
        max-width: 186px;
        font-size: 12.5px;
    }

    .ai-msg-main {
        max-width: 80%;
    }

    .ai-chat-hint {
        display: none;
    }
}

/* 主题在 769px 起显示底部固定咨询条（高 48px），
   启动按钮必须整体上移，否则会被这条挡住 */
@media (max-width: 769px) {
    .ai-chat-launcher {
        bottom: 62px;
    }

    .ai-chat-tip {
        bottom: 56px;
    }
}

/* 480 以下：极限窄屏 */
@media (max-width: 480px) {
    .ai-hero {
        padding: 100px 0 38px;
    }

    .ai-hero-inner h1 {
        font-size: 22px;
    }

    .ai-hero-badge {
        margin-bottom: 14px;
    }

    .ai-state-actions .ai-chip {
        font-size: 12px;
    }

    .ai-card {
        padding: 18px;
    }
}

/* 横屏矮屏：面板高度按视口收，避免超出可视区 */
@media (max-height: 620px) and (min-width: 768px) {
    .ai-chat-panel {
        height: calc(100vh - 120px);
    }
}

/* 尊重系统的减少动效偏好 */
@media (prefers-reduced-motion: reduce) {
    .ai-chat-launcher::before,
    .ai-typing i,
    .ai-caret,
    .ai-skeleton span {
        animation: none;
    }

    .ai-chat-panel,
    .ai-result,
    .ai-chip,
    .ai-search-submit {
        transition: none;
    }
}
