/* =========================================================
   行前准备工具样式（独立文件，提取自 E:\日志记录\20260818\travel-prep.html）
   Vue3 挂载容器：#prep-app（页面 lists_preparations.htm）
   ========================================================= */
.prep-app { max-width: 1200px; margin: 0 auto; font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif; background: #faf7f2; min-height: 100vh; padding-bottom: 60px; }
.prep-app * { box-sizing: border-box; }
.prep-app a { text-decoration: none; color: inherit; }

/* 顶部栏 */
.prep-top { display: flex; align-items: center; justify-content: space-between; padding: 14px 24px; background: #fff; border-bottom: 1px solid #e8e0d5; }
.prep-top__brand { font-size: 17px; font-weight: 800; color: #1f3a5f; }
.prep-top__brand span { color: #ff7a45; }
.prep-top__hello { font-size: 12px; color: #888; }
/* 顶部行程助手入口 */
.prep-top__btn { display: inline-block; font-size: 12px; font-weight: 700; color: #fff; background: linear-gradient(135deg, #ff7a45, #e86835); padding: 7px 16px; border-radius: 18px; box-shadow: 0 3px 10px rgba(255,122,69,.3); transition: all .2s; }
.prep-top__btn:hover { box-shadow: 0 5px 14px rgba(255,122,69,.45); transform: translateY(-1px); }

/* 目的地输入区 */
.prep-hero { background: linear-gradient(135deg, #1f3a5f, #2d4a6e); color: #fff; padding: 26px 24px; }
.prep-hero__title { font-size: 22px; font-weight: 800; }
.prep-hero__sub { font-size: 12px; opacity: .8; margin-top: 4px; }
.prep-search { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.prep-search__input { flex: 1; min-width: 200px; padding: 11px 14px; border-radius: 8px; border: none; font-size: 14px; outline: none; cursor: pointer; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23ff7a45' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center; }
.prep-search__btn { background: #ff7a45; color: #fff; border: none; padding: 0 22px; border-radius: 8px; font-size: 14px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.prep-search__btn:hover { opacity: .92; }

/* 定位提示（IP 定位成功后显示） */
.prep-locate-tip { margin: 12px 14px 0; padding: 10px 14px; background: #eef6ff; border: 1px solid #cfe5ff; color: #1a5a99; border-radius: 8px; font-size: 12px; line-height: 1.6; }

/* 快速选择目的地 */
.prep-quick { background: #fff; margin: 14px; border-radius: 12px; padding: 12px 18px; box-shadow: 0 2px 10px rgba(0,0,0,.05); }
.prep-quick__label { font-size: 11px; color: #888; margin-bottom: 8px; }
.prep-quick__chips { display: flex; gap: 8px; flex-wrap: wrap; }
.prep-quick__chip { font-size: 12px; padding: 6px 14px; border-radius: 16px; background: #f0f4fa; color: #4a6a8a; cursor: pointer; border: 1px solid transparent; transition: all .2s; }
.prep-quick__chip:hover { border-color: #ff7a45; color: #ff7a45; }

/* 行程画像 */
.prep-profile { background: #fff; margin: 0 14px 14px; border-radius: 12px; padding: 16px 18px; box-shadow: 0 2px 10px rgba(0,0,0,.05); }
.prep-profile__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; gap: 10px; flex-wrap: wrap; }
.prep-profile__title { font-size: 15px; font-weight: 800; color: #1f3a5f; }
.prep-profile__fields { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.prep-field label { display: block; font-size: 11px; color: #888; margin-bottom: 4px; }
.prep-field input, .prep-field select { width: 100%; padding: 8px 10px; border: 1px solid #e0d8cc; border-radius: 6px; font-size: 13px; outline: none; background: #fff; }
.prep-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.prep-tag { font-size: 12px; padding: 5px 12px; border-radius: 16px; background: #f0f4fa; color: #4a6a8a; cursor: pointer; border: 1px solid transparent; transition: all .2s; }
.prep-tag.is-active { background: #ff7a45; color: #fff; }

/* 主体两栏 */
.prep-body { display: flex; gap: 14px; padding: 0 14px; align-items: flex-start; }
.prep-main { flex: 1; min-width: 0; }
/* 侧栏 sticky：顶部 80px 为站点 fixed header，需留出上边距避免被遮挡 */
.prep-side { width: 320px; flex-shrink: 0; display: flex; flex-direction: column; gap: 14px; position: sticky; top: 84px; }

/* 景点推荐 */
.prep-spots { background: #fff; border-radius: 12px; padding: 16px 18px; margin-bottom: 14px; box-shadow: 0 2px 10px rgba(0,0,0,.05); }
.prep-spots__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.prep-spots__list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.prep-spot { display: flex; gap: 10px; padding: 10px; border: 1px solid #eee; border-radius: 8px; cursor: pointer; transition: all .2s; }
.prep-spot:hover { border-color: #ff7a45; background: #fff8f4; }
.prep-spot.is-selected { border-color: #ff7a45; background: #fff5ef; }
.prep-spot__rank { font-size: 20px; font-weight: 800; color: #ff9f00; flex-shrink: 0; width: 26px; }
.prep-spot__img { width: 62px; height: 62px; border-radius: 6px; object-fit: cover; flex-shrink: 0; display: block; }
.prep-spot__name { font-size: 13px; font-weight: 700; color: #222; }
.prep-spot__desc { font-size: 11px; color: #888; margin-top: 2px; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.prep-spot__badge { font-size: 10px; color: #ff7a45; margin-top: 2px; }

/* 清单 */
.prep-checklist { background: #fff; border-radius: 12px; padding: 16px 18px; box-shadow: 0 2px 10px rgba(0,0,0,.05); }
.prep-progress { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.prep-progress__bar { flex: 1; height: 8px; background: #f0ece4; border-radius: 4px; overflow: hidden; }
.prep-progress__fill { height: 100%; background: linear-gradient(90deg, #ff7a45, #e86835); border-radius: 4px; transition: width .3s; }
.prep-progress__text { font-size: 12px; color: #666; white-space: nowrap; }
.prep-cat { margin-bottom: 14px; border: 1px solid #eee; border-radius: 8px; overflow: hidden; }
.prep-cat__head { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; background: #faf8f4; cursor: pointer; font-size: 13px; font-weight: 700; color: #1f3a5f; }
.prep-cat__count { font-size: 11px; color: #ff7a45; font-weight: 600; }
.prep-cat__body { padding: 4px 14px 10px; }
.prep-item { display: flex; align-items: flex-start; gap: 10px; padding: 8px 0; border-bottom: 1px dashed #f0ece4; cursor: pointer; }
.prep-item:last-child { border-bottom: none; }
/* 整行可点：点击任意位置勾选/取消 */
.prep-item__label { display: flex; align-items: flex-start; gap: 10px; width: 100%; }
.prep-item__check { width: 18px; height: 18px; border: 2px solid #d0c8b8; border-radius: 4px; flex-shrink: 0; margin-top: 2px; display: flex; align-items: center; justify-content: center; font-size: 11px; color: #fff; transition: all .2s; }
.prep-item__check.is-done { background: #ff7a45; border-color: #ff7a45; }
.prep-item__main { flex: 1; min-width: 0; }
.prep-item__name { font-size: 13px; color: #222; transition: all .2s; }
.prep-item__name.is-done { text-decoration: line-through; color: #aaa; }
.prep-item__tip { font-size: 11px; color: #888; margin-top: 2px; }
.prep-item__pri { font-size: 10px; padding: 1px 6px; border-radius: 3px; font-weight: 600; flex-shrink: 0; }
.prep-item__pri--must { background: #fef2f2; color: #dc2626; }
.prep-item__pri--should { background: #fffbeb; color: #d97706; }
.prep-item__pri--optional { background: #f3f4f6; color: #666; }

/* 一键清除所选 */
.prep-clear-btn { font-size: 11px; color: #e86835; background: #fff5ef; border: 1px solid #ffd6c2; padding: 4px 12px; border-radius: 12px; cursor: pointer; transition: all .2s; }
.prep-clear-btn:hover { background: #ffe9df; }
/* 一键选择必带 */
.prep-must-btn { font-size: 11px; color: #b45309; background: #fffbeb; border: 1px solid #fcd34d; padding: 4px 12px; border-radius: 12px; cursor: pointer; transition: all .2s; }
.prep-must-btn:hover { background: #fef3c7; }

/* 侧边：生成行程 */
.prep-gen { background: #fff; border-radius: 12px; padding: 16px; box-shadow: 0 2px 10px rgba(0,0,0,.05); }
.prep-gen__title { font-size: 15px; font-weight: 800; color: #1f3a5f; }
.prep-gen__desc { font-size: 11px; color: #888; margin-top: 4px; line-height: 1.5; }
.prep-gen__btn { width: 100%; margin-top: 12px; padding: 11px; background: linear-gradient(135deg, #ff7a45, #e86835); color: #fff; border: none; border-radius: 8px; font-size: 14px; font-weight: 700; cursor: pointer; transition: all .2s; }
.prep-gen__btn:hover { box-shadow: 0 4px 12px rgba(255,122,69,.35); }
.prep-gen__btn:disabled { opacity: .5; cursor: not-allowed; }
.prep-gen__tip { font-size: 10px; color: #aaa; margin-top: 8px; }

/* 侧边：我的行前清单（客户所选清单整合展示） */
.prep-mylist { background: #fff; border-radius: 12px; padding: 16px; box-shadow: 0 2px 10px rgba(0,0,0,.05); }
.prep-mylist__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.prep-mylist__title { font-size: 15px; font-weight: 800; color: #1f3a5f; }
.prep-mylist__count { font-size: 11px; color: #ff7a45; font-weight: 700; }
.prep-mylist__cat { margin-bottom: 8px; }
.prep-mylist__cat-name { font-size: 11px; font-weight: 700; color: #888; margin-bottom: 4px; }
.prep-mylist__items { display: flex; flex-wrap: wrap; gap: 6px; }
.prep-mylist__item { font-size: 11px; color: #333; background: #f6f8fb; border: 1px solid #e6ecf3; border-radius: 12px; padding: 3px 10px; display: inline-flex; align-items: center; gap: 4px; }
.prep-mylist__item em { font-style: normal; font-size: 9px; color: #fff; background: #ff7a45; border-radius: 8px; padding: 0 5px; line-height: 1.5; }

/* 行程结果 */
.prep-plan { background: #fff; border-radius: 12px; padding: 16px 18px; box-shadow: 0 2px 10px rgba(0,0,0,.05); margin-top: 14px; }
.prep-plan__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.prep-plan__title { font-size: 15px; font-weight: 800; color: #1f3a5f; }
.prep-plan__summary { font-size: 11px; color: #888; margin-bottom: 10px; }
.prep-plan__day { border-left: 3px solid #ff7a45; padding: 10px 14px; margin-bottom: 12px; background: #fff8f4; border-radius: 0 8px 8px 0; }
.prep-plan__day-title { font-size: 13px; font-weight: 700; color: #ff7a45; margin-bottom: 6px; display: flex; align-items: center; gap: 6px; }
.prep-plan__items { display: flex; flex-direction: column; gap: 5px; }
.prep-plan__item { font-size: 12px; color: #333; display: flex; gap: 6px; line-height: 1.5; }
.prep-plan__item span { color: #ff7a45; flex-shrink: 0; }
.prep-plan__empty { font-size: 12px; color: #aaa; text-align: center; padding: 20px; }

/* 天气卡 */
.prep-weather { background: #fff; border-radius: 12px; padding: 14px 16px; box-shadow: 0 2px 10px rgba(0,0,0,.05); }
.prep-weather__city { font-size: 14px; font-weight: 700; color: #1f3a5f; }
.prep-weather__row { display: flex; align-items: center; gap: 12px; margin-top: 8px; }
.prep-weather__temp { font-size: 28px; font-weight: 800; color: #ff7a45; }
.prep-weather__info { font-size: 11px; color: #666; line-height: 1.6; }
.prep-weather__cloth { font-size: 11px; color: #888; margin-top: 8px; padding-top: 8px; border-top: 1px dashed #eee; }

/* 免责声明 */
.prep-disclaimer { background: #fff7ed; border: 1px solid #fed7aa; border-radius: 8px; padding: 10px 12px; font-size: 10px; color: #9a3412; line-height: 1.6; }

/* ========== 城市选择器弹窗（省→市两级联动，数据源：EyouCMS 官方接口 api/Ajax::get_region）========== */
.prep-modal-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 9999; align-items: center; justify-content: center; padding: 16px; }
.prep-modal-overlay--show { display: flex; }
.prep-modal { background: #fff; border-radius: 14px; padding: 24px; width: 90%; max-width: 520px; box-shadow: 0 20px 60px rgba(0,0,0,.2); }
.prep-modal__title { font-size: 17px; font-weight: 800; color: #1f3a5f; }
.prep-modal__sub { font-size: 12px; color: #999; margin: 4px 0 16px; }
.prep-city-picker { display: grid; grid-template-columns: 150px 1fr; gap: 12px; max-height: 340px; }
.prep-city-picker__provinces { border-right: 1px solid #f3f4f6; overflow-y: auto; max-height: 320px; }
.prep-city-picker__province { padding: 8px 12px; font-size: 13px; color: #555; cursor: pointer; border-radius: 6px; transition: all .2s; }
.prep-city-picker__province:hover { background: #f9fafb; color: #ff6b35; }
.prep-city-picker__province--active { background: linear-gradient(135deg, rgba(255,122,69,.1), rgba(255,165,0,.1)); color: #ff7a45; font-weight: 600; }
.prep-city-picker__cities { overflow-y: auto; max-height: 320px; display: flex; flex-direction: column; gap: 2px; }
.prep-city-picker__city { padding: 8px 12px; font-size: 13px; color: #444; cursor: pointer; border-radius: 6px; transition: all .2s; }
.prep-city-picker__city:hover { background: linear-gradient(135deg, rgba(255,122,69,.08), rgba(255,165,0,.08)); color: #ff7a45; font-weight: 600; }
.prep-city-picker__empty { padding: 24px 12px; font-size: 12px; color: #bbb; text-align: center; }

@media (max-width: 900px) {
  .prep-body { flex-direction: column; }
  .prep-side { width: 100%; position: static; }
  .prep-profile__fields { grid-template-columns: repeat(2, 1fr); }
  .prep-spots__list { grid-template-columns: 1fr; }
  .prep-city-picker { grid-template-columns: 120px 1fr; }
}
