/* ============================================================
   MYL · AI 定制行程（planner）
   独立样式，全部以 .pl- 前缀命名，不影响站内其他板块
   ============================================================ */
.planner-section {
    background: var(--bg);
    scroll-margin-top: 76px;
}
/* 左右宽度与上下板块保持一致 */
.planner-section .container {
    max-width: 1200px;
    padding: 0 20px;
}
.pl-shell {
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.pl-main { display: flex; flex-direction: column; gap: 14px; min-width: 0; }

/* ---------- 卡片 ---------- */
.pl-card {
    background: #fff;
    border: 1px solid #e8eefc;
    border-radius: 18px;
    padding: 18px 20px;
    box-shadow: 0 6px 24px rgba(37, 99, 235, .06);
}
.pl-card-head {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
}
.pl-card-head h3 { margin: 0 0 2px; font-size: 1.06rem; color: #0f172a; }
.pl-card-head p { margin: 0; font-size: .82rem; color: #7b8aa1; }
.pl-step {
    flex: 0 0 28px;
    width: 28px; height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2563eb, #38bdf8);
    color: #fff;
    font-weight: 700;
    font-size: .85rem;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 10px rgba(37, 99, 235, .28);
}
.pl-head-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }

/* ---------- 城市搜索 ---------- */
.pl-city-search { position: relative; }
.pl-city-search > i {
    position: absolute; left: 15px; top: 50%; transform: translateY(-50%);
    color: #94a3b8; font-size: .92rem; pointer-events: none;
}
.pl-city-search input {
    width: 100%;
    padding: 13px 16px 13px 42px;
    border: 1.5px solid #dbe6fb;
    border-radius: 12px;
    font-size: .95rem;
    font-family: inherit;
    background: #fbfcff;
    outline: none;
    transition: border-color .18s, box-shadow .18s;
}
.pl-city-search input:focus {
    border-color: #2563eb;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, .1);
}

/* ---------- 景点搜索（选中即上图） ---------- */
.pl-poi-search { margin: 0 0 14px 0; }
.pl-poi-search input { border-color: #fde2c4; background: #fffdf8; }
.pl-poi-search input:focus {
    border-color: #f59e0b;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(245, 158, 11, .12);
}
.pl-suggest {
    position: absolute;
    z-index: 40;
    left: 0; right: 0; top: calc(100% + 6px);
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 16px 40px rgba(15, 23, 42, .14);
    max-height: 280px;
    overflow-y: auto;
    padding: 6px;
    display: none;
}
.pl-suggest.open { display: block; }
.pl-suggest-item {
    padding: 9px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: .9rem;
    color: #334155;
    display: flex;
    align-items: center;
    gap: 8px;
}
.pl-suggest-item:hover { background: #eff6ff; color: #1d4ed8; }
.pl-suggest-item small { color: #94a3b8; margin-left: auto; font-size: .75rem; }
.pl-suggest-empty { padding: 12px; color: #94a3b8; font-size: .85rem; text-align: center; }

/* ---------- 热门城市 ---------- */
.pl-hot-label { font-size: .78rem; color: #94a3b8; margin: 10px 0 8px; }
.pl-hot { display: flex; flex-wrap: nowrap; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.pl-hot-chip {
    flex: 0 0 auto;
    border: 1px dashed #cbd5e1;
    background: #fff;
    color: #475569;
    border-radius: 999px;
    padding: 5px 13px;
    font-size: .82rem;
    cursor: pointer;
    transition: all .16s;
    font-family: inherit;
}
.pl-hot-chip:hover { border-color: #2563eb; color: #1d4ed8; background: #eff6ff; }

/* ---------- 已选城市 ---------- */
.pl-city-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.pl-city-tag {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    background: linear-gradient(135deg, #eff6ff, #f0f9ff);
    border: 1px solid #bfdbfe;
    color: #1e40af;
    border-radius: 12px;
    padding: 8px 10px 8px 14px;
    font-size: .9rem;
    font-weight: 600;
}
.pl-city-tag button {
    border: 0;
    background: rgba(37, 99, 235, .1);
    color: #2563eb;
    width: 20px; height: 20px;
    border-radius: 50%;
    cursor: pointer;
    line-height: 1;
    font-size: .75rem;
}
.pl-city-tag button:hover { background: #2563eb; color: #fff; }
.pl-city-empty { color: #9aa8bd; font-size: .86rem; padding: 6px 0; }

/* ---------- 出行参数 ---------- */
.pl-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px dashed #e6edf9;
}
.pl-field {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: .86rem;
    color: #475569;
}
.pl-field input {
    width: 62px;
    padding: 8px 10px;
    border: 1.5px solid #dbe6fb;
    border-radius: 9px;
    font-size: .9rem;
    font-family: inherit;
    text-align: center;
    outline: none;
}
.pl-field input:focus { border-color: #2563eb; }
.pl-prefs { display: flex; flex-wrap: wrap; gap: 8px; }
.pl-pref {
    border: 1.5px solid #e2e8f0;
    background: #fff;
    color: #56657b;
    border-radius: 999px;
    padding: 6px 13px;
    font-size: .8rem;
    cursor: pointer;
    font-family: inherit;
    transition: all .16s;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.pl-pref:hover { border-color: #bfdbfe; color: #1d4ed8; }
.pl-pref.on {
    background: #2563eb;
    border-color: #2563eb;
    color: #fff;
    box-shadow: 0 4px 12px rgba(37, 99, 235, .26);
}

/* ---------- 景点选择 ---------- */
.pl-poi-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.pl-poi-count { font-size: .8rem; color: #2563eb; background: #eff6ff; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.pl-mini-btn {
    border: 1px solid #dbe6fb;
    background: #fff;
    color: #2563eb;
    border-radius: 999px;
    padding: 5px 12px;
    font-size: .78rem;
    cursor: pointer;
    font-family: inherit;
    white-space: nowrap;
}
.pl-mini-btn:hover { background: #eff6ff; }
.pl-poi-groups {
    display: flex; flex-direction: column; gap: 14px;
    max-height: 200px;
    overflow-y: auto;
    padding-right: 6px;
}
.pl-poi-group-head {
    display: flex; align-items: center; gap: 8px;
    font-size: .9rem; font-weight: 700; color: #1e293b;
    margin-bottom: 10px;
}
.pl-poi-group-head span.count { font-weight: 500; color: #94a3b8; font-size: .78rem; }
.pl-poi-group-head .pl-mini-btn { margin-left: auto; }
.pl-poi-list { display: flex; flex-wrap: wrap; gap: 9px; }
.pl-poi-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border: 1.5px solid #e2e8f0;
    background: #fff;
    color: #3f4d63;
    padding: 8px 10px 8px 13px;
    border-radius: 11px;
    font-size: .84rem;
    cursor: pointer;
    transition: all .15s;
    font-family: inherit;
    max-width: 100%;
}
.pl-poi-chip:hover { border-color: #93c5fd; background: #f8fbff; }
.pl-poi-chip .plus {
    width: 18px; height: 18px;
    border-radius: 50%;
    background: #eff6ff;
    color: #2563eb;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .72rem;
    flex: 0 0 auto;
}
.pl-poi-chip.on {
    border-color: #2563eb;
    background: #eff6ff;
    color: #1d4ed8;
    font-weight: 600;
}
.pl-poi-chip.on .plus { background: #2563eb; color: #fff; }
.pl-cta { display: flex; gap: 12px; margin-top: 20px; flex-wrap: wrap; }
.pl-btn-primary {
    border: 0;
    background: linear-gradient(135deg, #2563eb, #38bdf8);
    color: #fff;
    font-weight: 700;
    font-size: .95rem;
    border-radius: 12px;
    padding: 13px 26px;
    cursor: pointer;
    font-family: inherit;
    box-shadow: 0 8px 20px rgba(37, 99, 235, .26);
    transition: transform .15s, box-shadow .15s;
}
.pl-btn-primary:hover { transform: translateY(-1px); box-shadow: 0 12px 26px rgba(37, 99, 235, .32); }
.pl-btn-ghost {
    border: 1.5px solid #dbe6fb;
    background: #fff;
    color: #2563eb;
    border-radius: 12px;
    padding: 12px 20px;
    cursor: pointer;
    font-family: inherit;
    font-size: .9rem;
}
.pl-btn-ghost:hover { background: #f5f9ff; }

/* ---------- 结果 ---------- */
.pl-result-head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 6px; }
.pl-result-title { font-size: 1.16rem; font-weight: 800; color: #0f172a; margin: 0; }
.pl-result-sub { font-size: .82rem; color: #7b8aa1; margin: 2px 0 0; }
.pl-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 16px 0 18px; }
.pl-stat {
    background: #f8faff;
    border: 1px solid #eaf0fc;
    border-radius: 12px;
    padding: 11px 12px;
}
.pl-stat b { display: block; font-size: 1.12rem; color: #1d4ed8; line-height: 1.3; }
.pl-stat span { font-size: .74rem; color: #8494ab; }

.pl-map-wrap {
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid #e4ecfa;
    background: #eef4fd;
}
.pl-map { height: 420px; width: 100%; }
.pl-map-legend { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 12px; background: #fff; border-top: 1px solid #eef2fb; }
.pl-lg-chip { font-size: .72rem; color: #475569; background: #f5f8fd; border-radius: 999px; padding: 3px 9px; }
.pl-lg-chip b { display: inline-flex; width: 15px; height: 15px; border-radius: 50%; color: #fff; font-size: .62rem; align-items: center; justify-content: center; margin-right: 4px; }

/* 每日行程 */
.pl-days { display: flex; flex-direction: column; gap: 14px; margin-top: 20px; }
.pl-day {
    border: 1px solid #e8eefc;
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
}
.pl-day-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: linear-gradient(90deg, #f4f8ff, #ffffff);
    border-bottom: 1px solid #eef3fc;
    flex-wrap: wrap;
}
.pl-day-badge {
    background: #2563eb;
    color: #fff;
    font-size: .74rem;
    font-weight: 700;
    border-radius: 8px;
    padding: 4px 9px;
    letter-spacing: .3px;
}
.pl-day-city { font-weight: 700; color: #0f172a; font-size: .95rem; }
.pl-day-theme { color: #64748b; font-size: .84rem; }
.pl-day-meta { margin-left: auto; font-size: .74rem; color: #94a3b8; display: flex; gap: 10px; }
.pl-transport {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    background: #fffaf0;
    border-bottom: 1px solid #fdf1dc;
    font-size: .82rem;
    color: #92610b;
    flex-wrap: wrap;
}
.pl-transport i { color: #f59e0b; }
.pl-transport a { margin-left: 0; color: #b45309; font-size: .78rem; text-decoration: none; border-bottom: 1px dashed #f3c98b; }
.pl-transport a:first-of-type { margin-left: auto; }
.pl-transport a + a { margin-left: 10px; }
.pl-extra {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    padding: 12px 16px 16px;
    border-top: 1px dashed #eef2f9;
}
.pl-ex-col {
    background: #f8fafc;
    border: 1px solid #eef2f9;
    border-radius: 10px;
    padding: 9px 11px;
}
.pl-ex-h { font-size: .8rem; font-weight: 700; color: #334155; margin-bottom: 6px; }
.pl-ex-h i { color: #2563eb; margin-right: 4px; }
.pl-ex-row { display: flex; align-items: center; gap: 6px; font-size: .76rem; padding: 3px 0; flex-wrap: wrap; }
.pl-ex-name { color: #0f172a; flex: 1 1 100%; }
.pl-ex-row a {
    color: #2563eb;
    text-decoration: none;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1px 7px;
    font-size: .72rem;
}
.pl-ex-tag {
    font-style: normal;
    font-size: .66rem;
    color: #b45309;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-radius: 6px;
    padding: 0 4px;
    margin-left: 5px;
}
.pl-ex-note { font-size: .72rem; color: #64748b; line-height: 1.55; margin-top: 5px; }
.pl-ex-note a { color: #2563eb; text-decoration: none; }
.pl-ex-fee, .pl-ex-free {
    font-style: normal;
    font-size: .64rem;
    border-radius: 6px;
    padding: 0 4px;
    margin-left: 5px;
}
.pl-ex-fee { color: #b91c1c; background: #fef2f2; border: 1px solid #fecaca; }
.pl-ex-free { color: #15803d; background: #f0fdf4; border: 1px solid #bbf7d0; }
.pl-ex-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.pl-ex-chip {
    font-size: .74rem;
    color: #92400e;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-radius: 999px;
    padding: 2px 9px;
    text-decoration: none;
}
@media (max-width: 720px) {
    .pl-extra { grid-template-columns: 1fr; padding: 10px 12px 14px; }
}
.pl-timeline { padding: 12px 16px 14px; }
.pl-tl-item {
    display: flex;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px dashed #f0f4fb;
}
.pl-tl-item:last-child { border-bottom: 0; }
.pl-tl-time {
    flex: 0 0 48px;
    font-size: .78rem;
    color: #2563eb;
    font-weight: 700;
    padding-top: 2px;
}
.pl-tl-media {
    flex: 0 0 84px;
    width: 84px;
    height: 58px;
    border-radius: 8px;
    overflow: hidden;
    background: #eef3fc;
    display: block;
}
.pl-tl-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .3s ease;
}
.pl-tl-media:hover img { transform: scale(1.06); }
.pl-tl-media.is-food { flex-basis: 72px; width: 72px; height: 54px; }
.pl-tl-body { flex: 1; min-width: 0; }
.pl-tl-title { font-size: .9rem; color: #1e293b; font-weight: 600; }
.pl-tl-desc { font-size: .78rem; color: #8494ab; margin-top: 3px; line-height: 1.55; }
.pl-tl-ico { color: #93c5fd; margin-right: 6px; }
.pl-tl-item.is-meal .pl-tl-ico { color: #fbbf24; }
.pl-tl-item.is-hotel .pl-tl-ico { color: #a78bfa; }
.pl-tl-links { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 6px; }
.pl-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: .74rem;
    line-height: 1;
    text-decoration: none;
    border-radius: 999px;
    padding: 4px 10px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    color: #475569;
    transition: background .2s ease, color .2s ease;
}
.pl-chip:hover { background: #eef2f7; }
.pl-chip-detail { border-color: #dbe6fb; background: #f2f7ff; color: #2563eb; }
.pl-chip-ctrip { border-color: #bfdbfe; background: #eff6ff; color: #1d4ed8; }
.pl-chip-douyin { border-color: #fbcfe8; background: #fdf2f8; color: #be185d; }

/* 个性化服务 */
.pl-services {
    margin-top: 18px;
    border: 1px dashed #dbe6fb;
    border-radius: 12px;
    padding: 14px 16px;
    background: #fbfdff;
}
.pl-services-title { font-size: .86rem; font-weight: 700; color: #334155; margin-bottom: 10px; }
.pl-services-title i { color: #2563eb; margin-right: 6px; }
.pl-services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
.pl-service {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 9px 11px;
    border-radius: 10px;
    background: #fff;
    border: 1px solid #e8eefc;
    text-decoration: none;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.pl-service:hover { border-color: #bfd3f8; box-shadow: 0 4px 14px rgba(37, 99, 235, .08); }
.pl-service i { color: #2563eb; font-size: .9rem; }
.pl-service b { font-size: .82rem; color: #1e293b; }
.pl-service span { font-size: .72rem; color: #8494ab; line-height: 1.45; }
.pl-services-note { font-size: .74rem; color: #9aa8bd; margin-top: 10px; line-height: 1.6; }
@media (max-width: 720px) {
    .pl-tl-media { flex-basis: 68px; width: 68px; height: 50px; }
    .pl-tl-media.is-food { flex-basis: 60px; width: 60px; height: 46px; }
}

/* 费用/提示 */
.pl-cost {
    margin-top: 4px;
    border: 1px dashed #dbe6fb;
    border-radius: 12px;
    padding: 14px 16px;
    background: #fbfdff;
}
.pl-cost-title { font-size: .86rem; font-weight: 700; color: #334155; margin-bottom: 8px; }
.pl-cost-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; }
.pl-cost-cell { font-size: .78rem; color: #7b8aa1; }
.pl-cost-cell b { display: block; color: #1e293b; font-size: .92rem; }
.pl-note { font-size: .74rem; color: #9aa8bd; margin-top: 10px; line-height: 1.6; }
.pl-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }

/* ---------- AI 助手（板块最下方） ---------- */
.pl-agent {
    position: static;
    width: 100%;
    background: #fff;
    border: 1px solid #e3ebfa;
    border-radius: 18px;
    box-shadow: 0 12px 36px rgba(37, 99, 235, .1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.pl-agent-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    background: linear-gradient(120deg, #1e40af, #2563eb 46%, #0ea5e9);
    color: #fff;
}
.pl-avatar {
    width: 36px; height: 36px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .18);
    border: 1px solid rgba(255, 255, 255, .35);
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: .82rem; letter-spacing: .5px;
    flex: 0 0 36px;
}
.pl-agent-head strong { display: block; font-size: .93rem; }
.pl-agent-head span { font-size: .72rem; opacity: .82; display: flex; align-items: center; gap: 5px; }
.pl-agent-head span::before {
    content: ''; width: 6px; height: 6px; border-radius: 50%; background: #4ade80; display: inline-block;
}
.pl-agent-head button {
    margin-left: auto;
    background: rgba(255, 255, 255, .16);
    border: 0; color: #fff;
    width: 30px; height: 30px;
    border-radius: 9px; cursor: pointer;
    flex: 0 0 auto;
}
.pl-agent-head button:hover { background: rgba(255, 255, 255, .3); }
.pl-agent-body {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 14px 14px 6px;
    background: #f8fbff;
    min-height: 300px;
    max-height: 380px;
    scroll-behavior: smooth;
}
.pl-msg { display: flex; gap: 8px; margin-bottom: 12px; }
.pl-msg .bubble {
    background: #fff;
    border: 1px solid #e6eefb;
    border-radius: 4px 14px 14px 14px;
    padding: 9px 12px;
    font-size: .84rem;
    line-height: 1.62;
    color: #334155;
    max-width: 88%;
    word-break: break-word;
}
.pl-msg .bubble a { color: #2563eb; }
.pl-msg.user { justify-content: flex-end; }
.pl-msg.user .bubble {
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    color: #fff;
    border: 0;
    border-radius: 14px 4px 14px 14px;
    max-width: 84%;
}
.pl-msg .who {
    width: 24px; height: 24px; flex: 0 0 24px;
    border-radius: 8px;
    background: linear-gradient(135deg, #2563eb, #0ea5e9);
    color: #fff; font-size: .6rem; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    margin-top: 2px;
}
.pl-msg.typing .bubble::after {
    content: '…';
    animation: plBlink 1s infinite steps(2, start);
}
@keyframes plBlink { 50% { opacity: .25; } }
.pl-agent-chips {
    display: flex;
    gap: 7px;
    padding: 9px 12px;
    overflow-x: auto;
    background: #fff;
    border-top: 1px solid #f0f4fb;
    scrollbar-width: none;
}
.pl-agent-chips::-webkit-scrollbar { display: none; }
.pl-ag-chip {
    flex: 0 0 auto;
    border: 1px solid #dbe6fb;
    background: #f8fbff;
    color: #3b5b8c;
    border-radius: 999px;
    padding: 5px 11px;
    font-size: .76rem;
    cursor: pointer;
    font-family: inherit;
    white-space: nowrap;
}
.pl-ag-chip:hover { background: #eff6ff; border-color: #93c5fd; color: #1d4ed8; }
.pl-agent-input {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    padding: 10px 12px 12px;
    background: #fff;
}
.pl-agent-input textarea {
    flex: 1 1 auto;
    resize: none;
    border: 1.5px solid #dbe6fb;
    border-radius: 12px;
    padding: 9px 12px;
    font-size: .85rem;
    font-family: inherit;
    line-height: 1.5;
    max-height: 96px;
    outline: none;
    background: #fbfcff;
}
.pl-agent-input textarea:focus { border-color: #2563eb; background: #fff; }
.pl-agent-input button {
    flex: 0 0 38px;
    width: 38px; height: 38px;
    border: 0;
    border-radius: 11px;
    background: linear-gradient(135deg, #2563eb, #38bdf8);
    color: #fff;
    cursor: pointer;
    box-shadow: 0 6px 14px rgba(37, 99, 235, .28);
}
.pl-agent-input button:disabled { opacity: .55; cursor: default; }

/* 接入设置 */
.pl-ai-panel {
    border-top: 1px solid #eef3fc;
    padding: 14px 16px 16px;
    background: #fbfdff;
    display: none;
}
.pl-ai-panel.open { display: block; }
.pl-ai-panel h4 { margin: 0 0 4px; font-size: .88rem; color: #1e293b; }
.pl-ai-panel p.hint { margin: 0 0 12px; font-size: .72rem; color: #94a3b8; line-height: 1.6; }
.pl-ai-field { margin-bottom: 9px; }
.pl-ai-field label { display: block; font-size: .74rem; color: #64748b; margin-bottom: 4px; }
.pl-ai-field input, .pl-ai-field select {
    width: 100%;
    padding: 8px 10px;
    border: 1.5px solid #dbe6fb;
    border-radius: 9px;
    font-size: .8rem;
    font-family: inherit;
    background: #fff;
    outline: none;
}
.pl-ai-field input:focus, .pl-ai-field select:focus { border-color: #2563eb; }
.pl-ai-btns { display: flex; gap: 8px; margin-top: 10px; }
.pl-ai-btns button { flex: 1; padding: 9px; font-size: .8rem; }

/* 空状态 */
.pl-empty {
    text-align: center;
    padding: 34px 16px;
    color: #94a3b8;
    font-size: .88rem;
}
.pl-empty i { font-size: 1.9rem; color: #bfd4f7; display: block; margin-bottom: 10px; }

/* ---------- 助手卡片（航班/高铁/酒店/美食） ---------- */
.pl-cards { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.pl-mini-card {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 11px;
    background: #fff;
    border: 1px solid #e6eefb;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(37, 99, 235, .05);
}
.pl-card-main { flex: 1 1 auto; min-width: 0; }
.pl-card-title { font-size: .84rem; font-weight: 700; color: #1e293b; }
.pl-card-title i { color: #2563eb; width: 14px; }
.pl-card-meta { font-size: .72rem; color: #64748b; margin-top: 3px; line-height: 1.5; }
.pl-card-price { font-size: .84rem; font-weight: 800; color: #f97316; white-space: nowrap; }
.pl-card-btn {
    display: inline-block;
    padding: 6px 9px;
    border-radius: 8px;
    background: #eff6ff;
    color: #2563eb !important;
    font-size: .72rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}
.pl-card-btn:hover { background: #dbeafe; }
.pl-card-pick {
    border: 0; background: #2563eb; color: #fff;
    padding: 6px 9px; border-radius: 8px;
    font-size: .72rem; font-weight: 700; cursor: pointer;
    white-space: nowrap;
}
.pl-card-pick:hover { background: #1d4ed8; }

/* 环线提示条 */
.pl-loop-banner {
    display: flex; align-items: center; gap: 12px;
    padding: 13px 14px;
    border-radius: 13px;
    background: linear-gradient(120deg, #eff6ff, #e0f2fe);
    border: 1px solid #bfdbfe;
}
.pl-loop-banner > div { flex: 1 1 auto; }
.pl-loop-banner b { display: block; font-size: .9rem; color: #1e40af; margin-bottom: 3px; }
.pl-loop-banner span { font-size: .76rem; color: #475569; line-height: 1.55; }
.pl-mini-btn {
    border: 1px solid #93c5fd; background: #fff; color: #2563eb;
    border-radius: 9px; padding: 8px 11px; font-size: .74rem; font-weight: 700; cursor: pointer;
}

/* ---------- 响应式 ---------- */
@media (max-width: 1080px) {
    .pl-shell { display: flex; flex-direction: column; gap: 16px; }
    .pl-agent {
        position: static;
        max-height: none;
        border-radius: 18px;
        box-shadow: 0 14px 40px rgba(37, 99, 235, .12);
    }
    .pl-agent-body { min-height: 300px; max-height: 380px; flex: 1 1 auto; }
    .pl-agent-chips { padding: 10px 12px; }
    .pl-msg .bubble { font-size: .88rem; max-width: 92%; }
    .pl-agent-chips .pl-ag-chip { font-size: .8rem; padding: 8px 12px; }
    .pl-agent-input textarea { font-size: .9rem; }
    .pl-agent-input button { height: 42px; }
}
@media (max-width: 640px) {
    .pl-shell { gap: 12px; }
    .pl-agent {
        position: static;
        max-height: none;
        border-radius: 18px;
        box-shadow: 0 12px 32px rgba(37, 99, 235, .12);
    }
    .pl-agent-body { min-height: 300px; max-height: 380px; }
    .pl-agent-head strong { font-size: 1rem; }
    .pl-agent-head span { font-size: .74rem; }
    .pl-card { padding: 18px 16px; border-radius: 15px; }
    .pl-stats { grid-template-columns: repeat(2, 1fr); }
    .pl-map { height: 320px; }
    .pl-day-meta { margin-left: 0; width: 100%; }
    .pl-tl-time { flex-basis: 42px; }
    .pl-row { gap: 12px; }
    .pl-cta .pl-btn-primary { width: 100%; }
    .pl-agent-input textarea { font-size: 16px; }
    .planner-section input, .planner-section select, .planner-section textarea { font-size: 16px; }
}

/* ---------- 地图编号点 ---------- */
.pl-pin {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    color: #fff;
    font-size: .72rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
    box-shadow: 0 3px 8px rgba(15, 23, 42, .28);
    font-family: inherit;
}
.pl-map .leaflet-tooltip {
    border: 0;
    border-radius: 8px;
    box-shadow: 0 6px 18px rgba(15, 23, 42, .18);
    font-size: .76rem;
    color: #1e293b;
    padding: 5px 9px;
}
.pl-map .leaflet-container { font-family: inherit; }
/* 弹性容器在隐藏卡片里初始化时的兜底 */
.pl-result[hidden] { display: none; }

/* AI 消息内：线路节点清单 + 小地图 */
.pl-msg-plan {
    margin-top: 10px;
    border: 1px solid #e6eefb;
    border-radius: 12px;
    overflow: hidden;
    background: #f8fbff;
}
.pl-msg-plan-title {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: .78rem;
    font-weight: 700;
    color: #1e293b;
    padding: 9px 12px;
    background: #fff;
    border-bottom: 1px solid #eef3fc;
}
.pl-msg-plan-title i { color: #2563eb; }
.pl-msg-days { display: flex; flex-direction: column; gap: 8px; padding: 10px 12px; }
.pl-msg-day {
    background: #fff;
    border: 1px solid #eef3fc;
    border-radius: 10px;
    padding: 8px 10px;
}
.pl-msg-day-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pl-msg-day-badge {
    color: #fff;
    font-size: .68rem;
    font-weight: 700;
    border-radius: 7px;
    padding: 2px 8px;
    letter-spacing: .2px;
}
.pl-msg-day-city { font-weight: 700; color: #0f172a; font-size: .82rem; }
.pl-msg-day-theme { color: #64748b; font-size: .74rem; }
.pl-msg-nodes { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 7px; }
.pl-msg-node {
    font-size: .72rem;
    color: #334155;
    background: #f1f6ff;
    border: 1px solid #e3eeff;
    border-radius: 999px;
    padding: 3px 9px;
    line-height: 1.4;
}
.pl-msg-node-time {
    font-style: normal;
    color: #2563eb;
    font-weight: 700;
    margin-right: 5px;
}
.pl-msg-map {
    height: 210px;
    width: 100%;
    border-top: 1px solid #e6eefb;
    background: #eef4fd;
}
.pl-msg-map .leaflet-tooltip {
    border: 0;
    border-radius: 8px;
    box-shadow: 0 6px 18px rgba(15, 23, 42, .18);
    font-size: .74rem;
    color: #1e293b;
    padding: 5px 9px;
}
.pl-msg-map .leaflet-container { font-family: inherit; }
@media (max-width: 640px) {
    .pl-msg-map { height: 180px; }
}
