/* 外贸宝AI 单页样式：由 ai.html 内联 <style> 抽取而来。
   作用域 body.ymb-ai-body；本文件与 ai.html、Template/T_AI页面.html 同步维护。 */

/* ===== 外贸宝AI 单页（作用域：body.ymb-ai-body） ===== */
body.ymb-ai-body.nav_position {
    padding-top: 80px;
    background: #f5f8fd;
}
/* 正文排版与链接配色只作用于页面主体：公共头部（include/header2.html）与页脚（include/footer2.html）
   必须使用全站样式，不能被单页的 a{color:inherit} 与正文字体/字色染色。 */
body.ymb-ai-body main {
    color: #0d2c56;
    font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}
body.ymb-ai-body main a { color: inherit; }
.ai-wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* 固定头部下的锚点定位（#features / #faq） */
#features, #faq { scroll-margin-top: 96px; }

/* Hero：沿用站内“浅灰白底 + 橙金 3D 插画”的 banner 语言 */
.ai-hero {
    position: relative;
    overflow: hidden;
    padding: 88px 0 96px;
    color: #0d2c56;
    background-color: #e9f0f8;
    background-image:
        linear-gradient(96deg, #ffffff 0%, #ffffff 28%, rgba(255, 255, 255, .97) 38%, rgba(255, 255, 255, .76) 47%, rgba(255, 255, 255, .30) 55%, rgba(255, 255, 255, 0) 62%),
        url('/images/index_banner02.webp');
    background-repeat: no-repeat;
    background-position: center center, right bottom;
    background-size: cover, cover;
}
.ai-hero .ai-wrap { position: relative; z-index: 2; }
.ai-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 46px; align-items: center; }
.ai-hero-mock { position: relative; }

.ai-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 16px;
    border-radius: 999px;
    border: 1px solid #ffe0bd;
    background: #fff4e6;
    font-size: 13px;
    letter-spacing: 1px;
    color: #b35400;
}
/* 深色区块（价值带、结尾 CTA）上的胶囊 */
.ai-kicker--light {
    color: #ffe0b8;
    background: rgba(255, 255, 255, .12);
    border-color: rgba(255, 255, 255, .22);
}
.ai-kicker--dark {
    color: #c25f00;
    background: #fff4e6;
    border-color: #ffe0bd;
}
.ai-hero h1 {
    margin: 22px 0 18px;
    font-size: clamp(32px, 3.4vw, 52px);
    line-height: 1.18;
    font-weight: 800;
    letter-spacing: -.5px;
    color: #0d2c56;
}
.ai-hero h1 em {
    display: block;
    margin-top: 10px;
    font-style: normal;
    /* 站内 css/style.css 的 * {font-size:14px} 会打断继承，这里显式声明 */
    font-size: clamp(18px, 1.6vw, 21px);
    letter-spacing: 0;
    color: #b4560a;
}
.ai-hero-lead {
    max-width: 600px;
    font-size: 16px;
    line-height: 1.95;
    color: #4a5b74;
}
.ai-hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 30px 0 0; }
.ai-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-sizing: border-box;
    height: 50px;
    padding: 0 30px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 600;
    background: linear-gradient(135deg, #ed7e00, #ff9d1f);
    color: #fff;
    box-shadow: 0 14px 30px rgba(237, 126, 0, .28);
    transition: transform .2s ease, box-shadow .2s ease;
}
.ai-btn:hover { transform: translateY(-2px); box-shadow: 0 18px 38px rgba(237, 126, 0, .34); color: #fff; }
/* 站内 body a{color:inherit} 会压掉按钮文字色，这里显式锁定，避免 hover 突变 */
body.ymb-ai-body .ai-btn,
body.ymb-ai-body .ai-btn:hover { color: #fff; }
.ai-btn--ghost {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, .38);
    box-shadow: none;
    color: #fff;
}
.ai-btn--ghost:hover { background: rgba(255, 255, 255, .1); box-shadow: none; }
.ai-btn--line,
body.ymb-ai-body .ai-btn--line {
    background: #fff;
    border: 1px solid #dbe6f4;
    color: #0d2c56;
    box-shadow: 0 8px 20px rgba(13, 44, 86, .08);
}
body.ymb-ai-body .ai-btn--line:hover { color: #c25f00; border-color: #ed7e00; }

/* 首屏两条业务路径（承接原「业务路径」区块） */
.ai-hero-paths {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    max-width: 620px;
    margin: 32px 0 0;
}
.ai-hero-path {
    padding: 16px 16px 15px;
    border-radius: 14px;
    border: 1px solid #e3ecf7;
    background: #fff;
    box-shadow: 0 10px 22px rgba(20, 52, 96, .05);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.ai-hero-path:hover {
    transform: translateY(-2px);
    border-color: #ffd9ad;
    box-shadow: 0 16px 30px rgba(20, 52, 96, .09);
}
.ai-hero-path-top { display: flex; align-items: center; gap: 8px; }
.ai-hero-path-ico {
    width: 24px; height: 24px; flex: 0 0 24px;
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: 11.5px; font-weight: 800; color: #fff;
    background: linear-gradient(135deg, #0d2c56, #2f6fa8);
}
.ai-hero-path:nth-child(2) .ai-hero-path-ico { background: linear-gradient(135deg, #ed7e00, #ffb020); }
.ai-hero-path strong { font-size: 13.5px; color: #0d2c56; }
.ai-hero-path-sub { margin: 8px 0 10px; font-size: 11.5px; line-height: 1.6; color: #67758a; }
.ai-hero-path-steps { display: flex; flex-wrap: wrap; gap: 5px; }
.ai-hero-path-steps em {
    font-style: normal;
    padding: 5px 8px;
    border-radius: 6px;
    font-size: 11px;
    line-height: 1.2;
    background: #fff4e6;
    color: #b35400;
}
.ai-hero-path:nth-child(2) .ai-hero-path-steps em { background: #eef4fd; color: #40628f; }

/* 业务进程卡片（首屏右侧，浮于插画之上） */
.ai-mock {
    position: relative;
    border-radius: 18px;
    background: #fff;
    border: 1px solid #e4ecf8;
    box-shadow: 0 24px 56px rgba(13, 44, 86, .14);
    padding: 18px;
    color: #0d2c56;
}
.ai-mock-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 12px;
    border-bottom: 1px solid #edf2f9;
}
.ai-mock-title { display: flex; align-items: center; gap: 9px; font-size: 13px; font-weight: 700; }
.ai-mock-dot {
    width: 26px; height: 26px; flex: 0 0 26px;
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: 12px; font-weight: 800; color: #fff;
    background: linear-gradient(135deg, #0d2c56, #ed7e00);
}
.ai-mock-badge {
    font-size: 10.5px; color: #0a8f5b;
    background: #e7f8ef; border-radius: 999px;
    padding: 3px 9px;
}
.ai-mock-steps { list-style: none; margin: 12px 0 0; padding: 0; }
.ai-mock-steps li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 10px;
    border-radius: 10px;
    font-size: 12.5px;
    color: #536178;
}
.ai-mock-steps li + li { margin-top: 5px; }
.ai-mock-steps li.is-done { background: #f4f8ff; }
.ai-mock-steps li.is-now { background: #fff7ec; color: #0d2c56; font-weight: 600; }
.ai-mock-ico {
    width: 22px; height: 22px; flex: 0 0 22px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 11px; font-weight: 700;
    background: #e9eef7; color: #7d8ba3;
}
.ai-mock-steps .is-done .ai-mock-ico { background: #dff3e8; color: #0a8f5b; }
.ai-mock-steps .is-now .ai-mock-ico { background: #ed7e00; color: #fff; }
.ai-mock-steps small { margin-left: auto; font-size: 10.5px; color: #93a0b4; }
.ai-mock-chat {
    margin-top: 12px;
    padding: 12px 13px;
    border-radius: 12px;
    background: linear-gradient(135deg, #f4f8ff, #fff7ec);
    border: 1px solid #e8eefa;
    font-size: 12px;
    line-height: 1.8;
    color: #3b4b63;
}
.ai-mock-chat strong { color: #c25f00; }

/* 通用区块 */
.ai-section { padding: 76px 0; }
.ai-section--white { background: #fff; }
.ai-section--tight { padding: 68px 0; }
.ai-head { max-width: 800px; margin-bottom: 40px; }
.ai-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.ai-section h2 {
    margin: 16px 0 14px;
    font-size: clamp(24px, 2.5vw, 38px);
    line-height: 1.32;
    font-weight: 800;
    letter-spacing: -.3px;
    color: #0d2c56;
}
.ai-lead { font-size: 15.5px; line-height: 1.95; color: #5b6b82; }

/* 定位：四类能力 */
.ai-pillars { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; align-items: start; }
.ai-pillar-list { display: grid; gap: 14px; }
.ai-pillar {
    display: flex;
    gap: 14px;
    padding: 18px 20px;
    border-radius: 16px;
    background: #fff;
    border: 1px solid #e4ecf7;
}
.ai-pillar b {
    flex: 0 0 auto;
    min-width: 62px;
    font-size: 13px;
    color: #c25f00;
    background: #fff4e6;
    border-radius: 999px;
    text-align: center;
    padding: 3px 10px;
    height: 24px;
    line-height: 18px;
}
.ai-pillar p { margin: 0; font-size: 13.5px; line-height: 1.85; color: #5b6b82; }

/* 功能卡 */
.ai-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.ai-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 26px 24px;
    border-radius: 18px;
    background: #fff;
    border: 1px solid #e4ecf7;
    box-shadow: 0 10px 26px rgba(20, 52, 96, .05);
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.ai-card:hover { transform: translateY(-4px); border-color: #ffd7a8; box-shadow: 0 18px 40px rgba(20, 52, 96, .1); }
.ai-card-tag {
    align-self: flex-start;
    padding: 4px 11px;
    border-radius: 999px;
    background: #f1f5fc;
    color: #4a6b95;
    font-size: 11.5px;
    letter-spacing: .5px;
}
.ai-card h3 { margin: 14px 0 10px; font-size: 18.5px; line-height: 1.45; font-weight: 700; color: #0d2c56; }
.ai-card > p { margin: 0; font-size: 13.5px; line-height: 1.85; color: #5b6b82; }
.ai-card ul { list-style: none; margin: 16px 0 0; padding: 14px 0 0; border-top: 1px dashed #e6edf7; }
.ai-card ul li {
    position: relative;
    padding-left: 17px;
    font-size: 12.8px;
    line-height: 1.95;
    color: #6a788e;
}
.ai-card ul li::before {
    content: "";
    position: absolute;
    left: 0; top: 9px;
    width: 6px; height: 6px;
    border-radius: 50%;
    background: #ed7e00;
    opacity: .75;
}
.ai-card-more {
    margin-top: 16px;
    font-size: 12.8px;
    font-weight: 600;
    color: #c25f00;
}

/* 版本与报价 */
.ai-pricing { background: #f7fafd; }
.ai-plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: 18px; align-items: stretch; }
.ai-plan {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 24px 20px 22px;
    border-radius: 20px;
    background: #fff;
    border: 1px solid #e4ecf7;
    box-shadow: 0 10px 26px rgba(20, 52, 96, .05);
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.ai-plan:hover { transform: translateY(-4px); border-color: #ffd7a8; box-shadow: 0 18px 40px rgba(20, 52, 96, .1); }
.ai-plan-badge {
    position: absolute;
    right: 16px;
    top: 16px;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 11px;
    line-height: 1.6;
    background: #f1f5fc;
    color: #4a6b95;
}
.ai-plan h3 { margin: 0; font-size: 20px; font-weight: 800; color: #0d2c56; }
.ai-plan-sub { margin: 8px 0 0; min-height: 42px; font-size: 12.5px; line-height: 1.7; color: #67758a; }
.ai-plan-price { margin: 14px 0 4px; font-size: 30px; font-weight: 800; letter-spacing: -.5px; color: #0d2c56; }
.ai-plan-price small { font-size: 12.5px; font-weight: 500; letter-spacing: 0; color: #67758a; }
.ai-plan-note { margin: 0 0 16px; font-size: 11.5px; color: #6b7a8c; }
.ai-plan-meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0 0 18px; }
.ai-plan-meta > div { padding: 9px 10px; border-radius: 10px; background: #f7fafd; border: 1px solid #edf2f9; }
.ai-plan-meta span { display: block; font-size: 11px; color: #67758a; }
.ai-plan-meta b { display: block; margin-top: 3px; font-size: 12.5px; color: #0d2c56; }
.ai-plan ul {
    margin: 0 0 18px;
    padding: 16px 0 0;
    list-style: none;
    display: grid;
    gap: 8px;
    border-top: 1px solid #eef3fa;
}
.ai-plan li { position: relative; padding-left: 18px; font-size: 12.5px; line-height: 1.65; color: #46566e; }
.ai-plan li::before { content: "✓"; position: absolute; left: 0; top: 0; font-size: 12px; font-weight: 700; color: #12a05f; }
.ai-plan .ai-btn { width: 100%; height: 42px; margin-top: auto; padding: 0 18px; font-size: 13.5px; }
.ai-plan--hot {
    border-color: #ffcf9a;
    background: linear-gradient(160deg, #fff9f2 0%, #ffffff 62%);
    box-shadow: 0 18px 40px rgba(237, 126, 0, .12);
}
.ai-plan--hot .ai-plan-badge { background: linear-gradient(135deg, #ed7e00, #ff9d1f); color: #fff; }
.ai-plans-note { margin: 26px 0 0; text-align: center; font-size: 12px; line-height: 1.8; color: #6b7a8c; }

/* 价值带 */
.ai-values { background: linear-gradient(120deg, #071c33 0%, #0d2c56 52%, #1d4472 100%); color: #fff; }
.ai-values h2 { color: #fff; }
.ai-values .ai-lead { color: rgba(255, 255, 255, .72); }
.ai-values-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.ai-value {
    padding: 24px 22px;
    border-radius: 16px;
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(255, 255, 255, .13);
}
.ai-value b { display: block; font-size: 16px; color: #ffb020; margin-bottom: 10px; }
.ai-value p { margin: 0; font-size: 13px; line-height: 1.9; color: rgba(255, 255, 255, .74); }

/* 流程 */
.ai-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; counter-reset: step; }
.ai-step {
    position: relative;
    padding: 24px 22px;
    border-radius: 16px;
    background: #fff;
    border: 1px solid #e4ecf7;
}
.ai-step::before {
    counter-increment: step;
    content: "0" counter(step);
    display: block;
    font-size: 22px;
    font-weight: 800;
    color: #ffd7a8;
    margin-bottom: 8px;
}
.ai-step h3 { margin: 0 0 8px; font-size: 16px; color: #0d2c56; }
.ai-step p { margin: 0; font-size: 12.8px; line-height: 1.9; color: #5b6b82; }

/* FAQ */
.ai-faq { max-width: 880px; margin: 0 auto; }
.ai-faq details {
    border: 1px solid #e4ecf7;
    border-radius: 14px;
    background: #fff;
    padding: 0 22px;
    margin-bottom: 12px;
}
.ai-faq details[open] { border-color: #ffd7a8; box-shadow: 0 12px 28px rgba(20, 52, 96, .06); }
.ai-faq summary {
    list-style: none;
    cursor: pointer;
    padding: 18px 26px 18px 0;
    position: relative;
    font-size: 15px;
    font-weight: 600;
    color: #0d2c56;
}
.ai-faq summary::-webkit-details-marker { display: none; }
.ai-faq summary::after {
    content: "+";
    position: absolute;
    right: 0; top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    color: #ed7e00;
    font-weight: 400;
}
.ai-faq details[open] summary::after { content: "–"; }
.ai-faq p { margin: 0; padding: 0 0 18px; font-size: 13.5px; line-height: 1.95; color: #5b6b82; }

/* 结尾 CTA：浅色商务卡，跟站内白底 + 品牌橙一致 */
.ai-cta { padding: 0 0 84px; background: #fff; }
.ai-cta-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 272px;
    gap: 48px;
    align-items: center;
    padding: 46px 52px;
    border-radius: 20px;
    border: 1px solid #f0e2d2;
    background: linear-gradient(133deg, #fff9f2 0%, #ffffff 58%, #f8fbff 100%);
    box-shadow: 0 16px 40px rgba(20, 52, 96, .06);
}
.ai-cta-card h2 { margin: 16px 0 12px; color: #0d2c56; font-size: clamp(22px, 2.2vw, 30px); line-height: 1.42; }
.ai-cta-card p { margin: 0; max-width: 560px; font-size: 14px; line-height: 1.9; color: #5b6b82; }
.ai-cta-card .ai-hero-actions { margin-top: 24px; }
.ai-cta-side { padding-left: 44px; border-left: 1px solid #eee3d6; }
.ai-cta-side-label { display: block; margin-bottom: 8px; font-size: 12.5px; letter-spacing: .5px; color: #667488; }
.ai-cta-tel { display: inline-block; font-size: 20px; font-weight: 800; letter-spacing: .3px; white-space: nowrap; }
body.ymb-ai-body .ai-cta-tel { color: #0d2c56; }
body.ymb-ai-body .ai-cta-tel:hover { color: #ed7e00; }
.ai-cta-side .ai-cta-time { margin: 6px 0 14px; font-size: 12px; line-height: 1.7; color: #667488; }
body.ymb-ai-body .ai-cta-link { font-size: 13px; color: #b35400; }
body.ymb-ai-body .ai-cta-link:hover { color: #ed7e00; text-decoration: underline; }

/* 中等宽度（1025–1280）保持双栏，右侧卡片收窄 */
@media (min-width: 1025px) and (max-width: 1280px) {
    .ai-hero-grid { grid-template-columns: minmax(0, 1fr) 350px; gap: 34px; }
}

/* 移动端 */
@media (max-width: 1024px) {
    body.ymb-ai-body.nav_position { padding-top: 60px; }
    #features, #faq { scroll-margin-top: 76px; }
    .ai-hero {
        padding: 44px 0 220px;
        background-image: none;
        background-color: #f7fafd;
    }
    /* 移动端内容占满整宽，插画改为 hero 底部一条淡入带，不压文字 */
    .ai-hero::after {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        height: 200px;
        background: url('/images/index_banner02.webp') 72% 62% / 205% auto no-repeat;
        -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0) 18%, #000 68%);
        mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0) 18%, #000 68%);
        pointer-events: none;
    }
    .ai-hero-grid { grid-template-columns: 1fr; gap: 30px; }
    .ai-hero-paths { max-width: none; }
    .ai-hero-mock { max-width: 430px; width: 100%; margin: 0 auto; }
    .ai-cta-card { grid-template-columns: 1fr; gap: 26px; padding: 36px 26px; }
    .ai-cta-side { padding-left: 0; padding-top: 22px; border-left: 0; border-top: 1px solid #eee3d6; }
    .ai-pillars { grid-template-columns: 1fr; gap: 24px; }
    .ai-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ai-plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ai-values-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ai-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ai-section { padding: 56px 0; }
}
@media (max-width: 640px) {
    .ai-wrap { padding: 0 18px; }
    .ai-hero-paths { grid-template-columns: 1fr; }
    .ai-cards { grid-template-columns: 1fr; }
    .ai-plans { grid-template-columns: 1fr; }
    .ai-plan-price { font-size: 26px; }
    .ai-values-grid { grid-template-columns: 1fr; }
    .ai-steps { grid-template-columns: 1fr; }
    .ai-cta-card { padding: 36px 24px; border-radius: 20px; }
    .ai-btn { height: 46px; padding: 0 24px; }
}
