/* e3ai.aspx 進銷存 AI 助手頁：沿用 e3 版型（左側選單 + 右側內容），配色取自人事上線設定表（深藍標題、淡色流程卡） */
.e3ai {
    --e3-navy: #1f3a68;
    --e3-ink: #1b2335;
    --e3-muted: #677788;
    --e3-line: #dde3ee;
    --e3-tint: #f5f7fb;
    --e3-blue: #4f7cf3;
    --e3-yellow-bg: #fdf3d3;
    --e3-yellow-bd: #e2c46a;
    --e3-blue-bg: #e8effb;
    --e3-blue-bd: #9db5e3;
    --e3-green-bg: #e6f3e3;
    --e3-green-bd: #96c98e;
    --e3-purple-bg: #f3ecfb;
    --e3-purple-bd: #b99be0;
    --e3-red: #b8322a;
    color: var(--e3-ink);
}

/* 頁首 */
.e3ai-title { color: var(--e3-navy); font-size: 1.85rem; font-weight: 700; margin-bottom: .35rem; }
.e3ai-lead { color: var(--e3-muted); margin-bottom: 1.25rem; }

.e3ai-notice {
    display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap;
    background: var(--e3-tint); border: 1px solid var(--e3-line); border-left: 4px solid var(--e3-navy);
    border-radius: 6px; padding: 1rem 1.25rem; margin-bottom: 2.5rem;
}
.e3ai-notice p { margin: 0; flex: 1 1 260px; }

.e3ai-btn {
    display: inline-block; background: var(--e3-blue); color: #fff; border-radius: 4px;
    padding: .7rem 1.4rem; font-weight: 500; white-space: nowrap; transition: background .15s;
}
.e3ai-btn:hover { background: #3a66dc; color: #fff; text-decoration: none; }
.e3ai-btn--ghost { background: #fff; color: var(--e3-blue); border: 1px solid var(--e3-blue); }
.e3ai-btn--ghost:hover { background: var(--e3-blue-bg); color: var(--e3-blue); }
.e3ai-btn--line { background: #06c755; }
.e3ai-btn--line:hover { background: #05a948; }

/* 區塊標題：深藍字 + 底線 */
.e3ai-h2 {
    color: var(--e3-navy); font-size: 1.3rem; font-weight: 700;
    border-bottom: 2px solid var(--e3-navy); padding-bottom: .5rem; margin: 2.75rem 0 1.25rem;
}
.e3ai-sub { color: var(--e3-muted); margin: -.5rem 0 1.25rem; }

/* 主視覺 */
.e3ai-hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 1.75rem; align-items: center; }
.e3ai-hero__kicker { color: var(--e3-blue); font-weight: 600; letter-spacing: .05em; margin-bottom: .4rem; }
.e3ai-hero__h { font-size: 1.75rem; font-weight: 700; line-height: 1.45; color: var(--e3-navy); margin-bottom: 1rem; }
.e3ai-hero__h span { display: block; }
.e3ai-hero__h .e3ai-hero__h1 { color: var(--e3-ink); font-size: 1.25rem; white-space: nowrap; margin-bottom: .2rem; }
.e3ai-chips a { color: inherit; }
.e3ai-chips a:hover { text-decoration: none; color: var(--e3-blue); }
.e3ai-chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.25rem; padding: 0; list-style: none; }
.e3ai-chips li {
    background: var(--e3-blue-bg); color: var(--e3-navy); border: 1px solid var(--e3-blue-bd);
    border-radius: 999px; padding: .2rem .8rem; font-size: .875rem;
}
.e3ai-hero__btns { display: flex; gap: .75rem; flex-wrap: wrap; }

.e3ai-chat { background: var(--e3-tint); border: 1px solid var(--e3-line); border-radius: 8px; padding: 1rem; font-size: .9rem; }
.e3ai-chat__h { display: flex; align-items: center; gap: .5rem; font-weight: 600; color: var(--e3-navy); margin-bottom: .75rem; }
.e3ai-chat__h i { width: 10px; height: 10px; border-radius: 50%; background: var(--e3-blue); box-shadow: 0 0 0 4px var(--e3-blue-bg); }
.e3ai-chat__q, .e3ai-chat__a { border-radius: 8px; padding: .55rem .8rem; margin-bottom: .6rem; line-height: 1.6; }
.e3ai-chat__q { background: var(--e3-blue); color: #fff; margin-left: 2.5rem; }
.e3ai-chat__a { background: #fff; border: 1px solid var(--e3-line); margin-right: 1.5rem; }
.e3ai-chat__card { background: var(--e3-purple-bg); border: 1px dashed var(--e3-purple-bd); border-radius: 8px; padding: .55rem .8rem; line-height: 1.6; }
.e3ai-chat__card b { color: #6b46a8; margin-right: .4rem; }
.e3ai-demo-note { color: var(--e3-muted); font-size: .75rem; margin: .5rem 0 0; text-align: right; }

/* 痛點 */
.e3ai-pains { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; padding: 0; margin: 0; list-style: none; counter-reset: pain; }
.e3ai-pains li { background: #fff; border: 1px solid var(--e3-line); border-radius: 8px; padding: 1rem 1.1rem 1rem 3.1rem; position: relative; }
.e3ai-pains li::before {
    counter-increment: pain; content: counter(pain);
    position: absolute; left: 1rem; top: 1rem; width: 1.5rem; height: 1.5rem; border-radius: 50%;
    background: var(--e3-yellow-bg); border: 1px solid var(--e3-yellow-bd); color: #8a6a10;
    font-size: .8rem; font-weight: 700; text-align: center; line-height: 1.4rem;
}
.e3ai-pains b { display: block; margin-bottom: .25rem; }
.e3ai-pains span { color: var(--e3-muted); font-size: .9rem; }

/* 泳道圖 */
.e3ai-lane { background: var(--e3-tint); border: 1px solid var(--e3-line); border-radius: 6px; overflow-x: auto; overflow-y: hidden; }
.e3ai-lane svg { display: block; width: 100%; min-width: 600px; height: auto; }
.e3ai-lane__legend { display: flex; flex-wrap: wrap; gap: 1rem; color: var(--e3-muted); font-size: .8rem; margin-top: .6rem; }
.e3ai-lane__legend i { display: inline-block; width: 14px; height: 10px; border-radius: 2px; margin-right: .3rem; vertical-align: -1px; border: 1px solid; }

/* AI 功能卡 */
.e3ai-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.e3ai-card { background: #fff; border: 1px solid var(--e3-line); border-top: 4px solid var(--e3-blue-bd); border-radius: 8px; padding: 1.1rem 1.2rem; }
.e3ai-card--yellow { border-top-color: var(--e3-yellow-bd); }
.e3ai-card--green { border-top-color: var(--e3-green-bd); }
.e3ai-card--purple { border-top-color: var(--e3-purple-bd); border-style: dashed; border-top-style: solid; }
.e3ai-card__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: .35rem; }
.e3ai-card__no { color: var(--e3-muted); font-weight: 600; font-size: .85rem; }
.e3ai-card h3 { font-size: 1.1rem; font-weight: 700; color: var(--e3-navy); margin-bottom: .6rem; }
.e3ai-card p { color: #3d4657; font-size: .92rem; margin: 0; line-height: 1.7; }
.e3ai-tag { background: var(--e3-purple-bg); color: #6b46a8; border: 1px solid var(--e3-purple-bd); border-radius: 4px; font-size: .75rem; padding: 0 .45rem; }
.e3ai-io { display: flex; align-items: center; flex-wrap: wrap; gap: .4rem; font-size: .8rem; margin-bottom: .7rem; }
.e3ai-io span { background: var(--e3-tint); border: 1px solid var(--e3-line); border-radius: 4px; padding: .1rem .5rem; color: var(--e3-ink); }
.e3ai-io i { color: var(--e3-muted); font-style: normal; }
.e3ai-io i::before { content: "→"; }

/* 問句 */
.e3ai-asks { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.e3ai-asks__col { background: #fff; border: 1px solid var(--e3-line); border-radius: 8px; padding: 1rem 1.1rem; }
.e3ai-asks__col h3 { font-size: 1rem; font-weight: 700; color: var(--e3-navy); margin-bottom: .6rem; }
.e3ai-asks__col ul { list-style: none; padding: 0; margin: 0; }
.e3ai-asks__col li { background: var(--e3-green-bg); border: 1px solid var(--e3-green-bd); border-radius: 6px; padding: .35rem .7rem; margin-bottom: .45rem; font-size: .9rem; }
.e3ai-asks__col--soon li { background: var(--e3-purple-bg); border: 1px dashed var(--e3-purple-bd); }

/* 管理情境 */
.e3ai-scenes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin-bottom: 1rem; }
.e3ai-scene { background: #fff; border: 1px solid var(--e3-line); border-radius: 8px; padding: 1rem 1.1rem; }
.e3ai-scene__role {
    display: inline-block; background: var(--e3-yellow-bg); border: 1px solid var(--e3-yellow-bd); color: #8a6a10;
    border-radius: 4px; font-size: .75rem; font-weight: 600; padding: 0 .5rem; margin-bottom: .45rem;
}
.e3ai-scene h3 { font-size: 1rem; font-weight: 700; color: var(--e3-navy); margin-bottom: .55rem; }
.e3ai-scene q, .e3ai-remind__item q {
    display: block; quotes: "「" "」"; background: var(--e3-blue-bg); border-left: 3px solid var(--e3-blue);
    border-radius: 0 6px 6px 0; padding: .35rem .7rem; font-size: .9rem; color: var(--e3-ink); margin-bottom: .55rem;
}
.e3ai-scene p { color: #3d4657; font-size: .9rem; line-height: 1.7; margin: 0; }

/* 應收應付提醒 */
.e3ai-remind { display: grid; grid-template-columns: 1.4fr 1fr; gap: 1.25rem; align-items: start; }
.e3ai-remind__list { list-style: none; padding: 0; margin: 0; }
.e3ai-remind__item { background: #fff; border: 1px solid var(--e3-line); border-left: 4px solid var(--e3-green-bd); border-radius: 6px; padding: .8rem 1rem; margin-bottom: .7rem; }
.e3ai-remind__item--soon { border-left-color: var(--e3-purple-bd); border-style: dashed; border-left-style: solid; }
.e3ai-remind__item b { display: block; color: var(--e3-navy); margin-bottom: .4rem; }
.e3ai-remind__item q { margin-bottom: .4rem; }
.e3ai-remind__item q.is-auto { quotes: none; background: var(--e3-green-bg); border-left-color: var(--e3-green-bd); }
.e3ai-remind__item > span { color: #3d4657; font-size: .9rem; line-height: 1.7; }
.e3ai-remind__note { color: var(--e3-muted); font-size: .85rem; margin: .25rem 0 0; }

.e3ai-bell { background: var(--e3-tint); border: 1px solid var(--e3-line); border-radius: 8px; padding: 1rem; font-size: .88rem; position: sticky; top: 90px; }
.e3ai-bell__h { font-weight: 700; color: var(--e3-navy); margin-bottom: .7rem; }
.e3ai-bell__row { background: #fff; border: 1px solid var(--e3-line); border-left: 3px solid var(--e3-green-bd); border-radius: 6px; padding: .5rem .7rem; margin-bottom: .5rem; line-height: 1.6; }
.e3ai-bell__row b { display: block; font-size: .8rem; color: var(--e3-navy); }
.e3ai-bell__row--warn { border-left-color: var(--e3-red); }
.e3ai-bell__row--warn b { color: var(--e3-red); }

/* 資料安全 */
.e3ai-safe { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; padding: 0; list-style: none; }
.e3ai-safe li { background: var(--e3-blue-bg); border: 1px solid var(--e3-blue-bd); border-radius: 8px; padding: 1rem 1.1rem; font-size: .9rem; color: #3d4657; line-height: 1.7; }
.e3ai-safe b { display: block; color: var(--e3-navy); font-size: 1rem; margin-bottom: .3rem; }


/* 結尾 */
.e3ai-cta { background: var(--e3-navy); color: #fff; border-radius: 8px; padding: 1.75rem 1.5rem; margin-top: 2.75rem; }
.e3ai-cta small { color: #b9c6dd; letter-spacing: .05em; }
.e3ai-cta h2 { color: #fff; font-size: 1.6rem; font-weight: 700; margin: .25rem 0 .6rem; }
.e3ai-cta p { color: #dbe3f1; margin-bottom: 1.1rem; }
.e3ai-cta .e3ai-btn--ghost { background: transparent; color: #fff; border-color: #fff; }
.e3ai-cta .e3ai-btn--ghost:hover { background: rgba(255,255,255,.12); }
.e3ai-cta__btns { display: flex; flex-wrap: wrap; gap: .75rem; }

@media (max-width: 767.98px) {
    .e3ai-hero, .e3ai-pains, .e3ai-grid, .e3ai-asks, .e3ai-safe, .e3ai-scenes, .e3ai-remind { grid-template-columns: 1fr; }
    .e3ai-title { font-size: 1.5rem; }
    .e3ai-hero__h { font-size: 1.45rem; }
    .e3ai-hero__h .e3ai-hero__h1 { font-size: 1.15rem; }
    .e3ai-bell { position: static; }
}
