/* ==========================================================
   包车 / 旅游询价系统 —— 全站样式
   淡绿色自然风，前台与后台共用
   ========================================================== */

:root {
  --green-900: #1f4a37;
  --green-700: #2f6b4f;
  --green-600: #3d7f60;
  --green-400: #7fae8b;
  --green-100: #e7f1e9;
  --green-50:  #f5f9f5;
  --ink:       #23302a;
  --ink-soft:  #5a6b62;
  --line:      #dde7de;
  --white:     #ffffff;
  --warn:      #b07a1e;
  --danger:    #b5453c;
  --radius:    10px;
  --shadow:    0 1px 2px rgba(31, 74, 55, .06), 0 8px 24px rgba(31, 74, 55, .06);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
               "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--green-50);
}

a { color: var(--green-700); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { line-height: 1.3; margin: 0 0 .5em; font-weight: 700; }

.wrap { width: 100%; max-width: 1040px; margin: 0 auto; padding: 0 20px; }

.en {
  display: inline;
  font-size: .86em;
  font-weight: 400;
  color: var(--ink-soft);
  font-family: "Segoe UI", -apple-system, Helvetica, Arial, sans-serif;
}

.req { color: var(--danger); font-weight: 700; }
.muted { color: var(--ink-soft); font-size: .9em; }
.center { text-align: center; }

/* ---------------- 按钮 ---------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 16px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  cursor: pointer;
  background: var(--white);
  color: var(--green-700);
  transition: background .15s ease, border-color .15s ease, transform .05s ease;
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--green-700); color: #fff; border-color: var(--green-700); }
.btn-primary:hover { background: var(--green-600); border-color: var(--green-600); }

.btn-ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { background: var(--white); border-color: var(--green-400); }

.btn-danger { background: var(--danger); color: #fff; border-color: var(--danger); }
.btn-danger:hover { opacity: .92; }

.btn-lg { padding: 13px 26px; font-size: 16px; }
.btn-sm { padding: 5px 11px; font-size: 13px; }
.btn-block { width: 100%; }

/* ---------------- 前台头部 ---------------- */

.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}

.brand { display: flex; align-items: center; gap: 11px; }

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--green-700);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 19px;
  flex: 0 0 auto;
}

.brand-name { font-weight: 700; font-size: 16px; color: var(--ink); }
.brand-sub { font-size: 12px; color: var(--ink-soft); line-height: 1.35; }

.header-nav { display: flex; gap: 8px; }

/* ---------------- 前台主体 ---------------- */

.hero { padding: 38px 0 22px; }

.hero h1 {
  font-size: 30px;
  letter-spacing: -.01em;
  color: var(--green-900);
  margin-bottom: 10px;
}

.hero-sub { color: var(--ink-soft); font-size: 15px; max-width: 760px; }
.hero-sub .en { display: block; margin-top: 8px; font-size: 14px; }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
}

.inquiry-form { padding: 8px 24px 22px; margin-bottom: 34px; }
.inquiry-form:hover { border-color: var(--line); }

.form-section { padding: 22px 0 8px; border-bottom: 1px dashed var(--line); }
.form-section:last-of-type { border-bottom: 0; }

.section-title {
  font-size: 15px;
  color: var(--green-900);
  letter-spacing: .01em;
  margin-bottom: 14px;
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 4px 18px;
}

.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }

.field label { font-size: 13px; font-weight: 600; color: var(--ink); }

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 10px 12px;
  font-size: 15px;
  font-family: inherit;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.field textarea { resize: vertical; min-height: 78px; line-height: 1.6; }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--green-400);
  box-shadow: 0 0 0 3px rgba(127, 174, 139, .18);
}

.field input::placeholder,
.field textarea::placeholder { color: #9aa8a0; }

.form-actions {
  padding-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
}

.form-hint { margin: 0; font-size: 12.5px; color: var(--ink-soft); }
.form-hint .en { display: block; }

/* 蜜罐字段：移出可视区但不用 display:none（部分机器人会跳过 display:none） */
.hp-field {
  position: absolute !important;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---------------- 提示条 ---------------- */

.alert {
  border-radius: var(--radius);
  padding: 14px 18px;
  margin: 0 0 22px;
  font-size: 14px;
  border: 1px solid transparent;
}

.alert ul { margin: 0; padding-left: 20px; }
.alert .en { display: block; margin-top: 4px; }

.alert-success { background: var(--green-100); border-color: #c8ddcc; color: var(--green-900); }
.alert-error   { background: #fbeeec; border-color: #efd3cf; color: var(--danger); }
.alert-warn    { background: #fdf6e7; border-color: #ece0c4; color: var(--warn); }

/* ---------------- 信任栏 / 页脚 ---------------- */

.trust {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin: 10px 0 40px;
}

.trust-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
}

.trust-item h3 { font-size: 14px; color: var(--green-900); margin-bottom: 6px; }
.trust-item p { margin: 0; font-size: 13px; color: var(--ink-soft); }

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--white);
  padding: 22px 0;
  margin-top: 20px;
  font-size: 13px;
  color: var(--ink-soft);
}
.site-footer p { margin: 2px 0; }

/* ==========================================================
   后台
   ========================================================== */

.page-admin { background: #f3f6f3; }

.admin-header {
  background: var(--green-900);
  color: #fff;
}
.admin-header .brand-mark { background: rgba(255, 255, 255, .16); }
.admin-header .brand-name { color: #fff; }
.admin-header .brand-sub { color: rgba(255, 255, 255, .7); }

.admin-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  flex-wrap: wrap;
}

.admin-nav { display: flex; gap: 4px; flex-wrap: wrap; }

.admin-nav a {
  color: rgba(255, 255, 255, .82);
  padding: 7px 12px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 600;
}
.admin-nav a:hover { background: rgba(255, 255, 255, .1); color: #fff; text-decoration: none; }
.admin-nav a.active { background: rgba(255, 255, 255, .16); color: #fff; }
.admin-nav .nav-out { color: #ffd9d4; }

.admin-main { padding: 26px 20px 40px; }

.admin-footer {
  border-top: 1px solid var(--line);
  padding: 16px 0 30px;
  font-size: 12px;
  color: var(--ink-soft);
  background: transparent;
}

/* 统计卡 */
.stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.stat-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  color: var(--ink);
}
.stat-card:hover { border-color: var(--green-400); text-decoration: none; }
.stat-card.on { border-color: var(--green-700); box-shadow: 0 0 0 2px rgba(47, 107, 79, .12); }
.stat-num { font-size: 22px; font-weight: 700; color: var(--green-900); line-height: 1.2; }
.stat-label { font-size: 12.5px; color: var(--ink-soft); }

/* 工具栏 */
.toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.toolbar input[type="search"] {
  flex: 1 1 240px;
  min-width: 180px;
  padding: 9px 12px;
  font-size: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  font-family: inherit;
}
.toolbar input[type="search"]:focus {
  outline: none;
  border-color: var(--green-400);
  box-shadow: 0 0 0 3px rgba(127, 174, 139, .18);
}
.toolbar-info { margin-left: auto; font-size: 12.5px; color: var(--ink-soft); }

/* 表格 */
.table-wrap {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow-x: auto;
}

.data-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }

.data-table th,
.data-table td {
  padding: 11px 12px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

.data-table th {
  background: var(--green-50);
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-soft);
  white-space: nowrap;
}

.data-table tbody tr:hover { background: #fafcfa; }
.data-table tbody tr:last-child td { border-bottom: 0; }

/* 表格外套一层横向滚动（手机上看宽表不挤） */
.table-scroll { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-scroll .data-table { min-width: 980px; }

/* 表格行里的操作按钮：一行排开，不换行 */
.row-act { white-space: nowrap; }
.row-act .btn { margin-right: 6px; }
.row-act .btn:last-child { margin-right: 0; }
.inline-form { display: inline; }

.row-new td:first-child { border-left: 3px solid var(--green-700); }
.row-name { font-weight: 700; }
.row-sub { font-size: 12px; color: var(--ink-soft); }

.col-id { width: 52px; color: var(--ink-soft); }
.col-time { white-space: nowrap; }
.col-num { white-space: nowrap; text-align: center; }
.col-status { white-space: nowrap; }
.col-act { white-space: nowrap; text-align: right; }
.col-act .btn-sm { margin-left: 4px; }
.col-route { max-width: 260px; color: var(--ink-soft); }

.badge {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.6;
  white-space: nowrap;
}
.badge-new       { background: #e4f2e6; color: var(--green-700); }
.badge-contacted { background: #eaeef7; color: #4a5f8c; }
.badge-quoted    { background: #fdf3e2; color: var(--warn); }
.badge-booked    { background: #dff0e3; color: #1f6b3a; }
.badge-closed    { background: #eceeec; color: #6a746d; }

.pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 18px;
}
.pager-info { font-size: 13px; color: var(--ink-soft); }

.empty-state {
  background: var(--white);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 44px 20px;
  text-align: center;
  color: var(--ink-soft);
}
.empty-state p { margin: 4px 0; }
.empty-state .en { display: block; font-size: 13px; }

/* 详情页 */
.back-link { font-size: 13px; color: var(--ink-soft); display: inline-block; margin-bottom: 8px; }

.detail-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.detail-title { font-size: 22px; margin: 0 0 6px; color: var(--green-900); }
.detail-id { font-size: 13px; color: var(--ink-soft); font-weight: 500; }
.detail-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 13px; }
.detail-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}
.detail-grid .card { padding: 20px; }

.detail-row {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 14px;
}
.detail-row:last-child { border-bottom: 0; }
.detail-label { font-size: 12.5px; color: var(--ink-soft); font-weight: 600; }
.detail-label .en { display: block; font-weight: 400; font-size: 11.5px; }
.detail-value { overflow-wrap: anywhere; }

.detail-foot { margin: 14px 0 0; font-size: 12px; line-height: 1.7; }

/* 报价单 */
.btn-quote { background: #fff; border-color: var(--green-400); color: var(--green-900); }
.btn-quote:hover { background: var(--green-100); border-color: var(--green-700); }

.quote-live {
  margin: 0 0 16px;
  padding: 12px 16px;
  background: var(--green-100);
  border: 1px solid #cfe3d5;
  border-radius: 8px;
  font-size: 14px;
  color: var(--green-900);
}
.quote-live strong { font-size: 19px; margin: 0 4px; }

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0 18px;
}
.field-wide { grid-column: 1 / -1; }

.quote-items input {
  width: 100%;
  padding: 8px 10px;
  font-size: 13.5px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #fff;
  font-family: inherit;
}
.quote-items input:focus { outline: 2px solid var(--green-400); outline-offset: 0; border-color: var(--green-700); }
.quote-items .c-num { color: var(--ink-soft); font-size: 12px; }
.quote-items select {
  width: 100%;
  padding: 8px 26px 8px 8px;
  font-size: 13px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #fff;
  font-family: inherit;
}
/* 报价明细三张表：做成一张够宽的表，别把输入框挤成一条缝 */
.quote-items {
  min-width: 980px;
}
.quote-items th,
.quote-items td {
  padding: 7px 8px;
}
/* 后台页面放宽，报价单这几张表要能整行显示 */
.page-admin .wrap { max-width: 1340px; }

.quote-tools {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin: 0 0 12px;
  padding: 10px 13px;
  background: var(--green-50);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.quote-flag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
}

.quote-save {
  margin: 10px 0 8px;
}
/* 保存单独一个居中大按钮，其余按钮排到下一行 */
.quote-save .qs-main {
  display: flex;
  justify-content: center;
  margin-bottom: 12px;
}
.quote-save .qs-main .btn {
  min-width: 260px;
  padding: 13px 34px;
  font-size: 15.5px;
  letter-spacing: .5px;
}
.quote-save .qs-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.quote-save .qs-grid .btn {
  width: 100%;
  text-align: center;
  justify-content: center;
  padding: 11px 10px;
  font-size: 14px;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.quote-save .qs-grid .btn:active,
.quote-save .qs-main .btn:active {
  transform: translateY(1px);
}
/* 点下去有颜色：主按钮（保存 / 生成 PDF）保持绿底，次要按钮点击变浅绿 */
.quote-save .qs-grid .btn:active {
  background: var(--green-50);
  border-color: var(--green-600);
  color: var(--green-700);
}
@media (max-width: 900px) {
  .quote-save .qs-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .quote-save .qs-main .btn { min-width: 100%; }
}
@media (max-width: 480px) {
  .quote-save .qs-grid { grid-template-columns: 1fr; }
}
.quote-sync { font-size: 13px; color: var(--ink-soft); display: inline-flex; align-items: center; gap: 7px; }

.quote-links { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }

.danger-zone { border-color: #efd3cf; }
.danger-zone .section-title { color: var(--danger); }

.hash-box {
  background: var(--green-50);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  font-size: 12.5px;
  word-break: break-all;
  white-space: pre-wrap;
  margin: 10px 0;
  font-family: ui-monospace, Menlo, Consolas, monospace;
}

/* 登录页 */
.login-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 30px 20px;
}

.login-card { width: 100%; max-width: 380px; padding: 28px; }

/* 登录入口：后台与员工两个登录框并排（手机上自动上下排） */
.login-duo {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 18px;
  width: 100%;
}
.login-duo .login-card { max-width: 380px; }

.login-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 20px;
}

.login-foot { text-align: center; margin: 14px 0 0; font-size: 13px; }

/* ---------------- 响应式 ---------------- */

@media (max-width: 640px) {
  body { font-size: 14.5px; }
  .wrap { padding: 0 14px; }
  .hero { padding: 26px 0 16px; }
  .hero h1 { font-size: 23px; }
  .inquiry-form { padding: 4px 16px 18px; }
  .card { padding: 18px; }
  .header-inner { min-height: 60px; }
  .admin-header-inner { min-height: 58px; }
  .detail-row { grid-template-columns: 1fr; gap: 2px; }
  .toolbar-info { margin-left: 0; width: 100%; }
  .data-table th, .data-table td { padding: 9px 10px; }
  .detail-title { font-size: 19px; }
}

/* ==========================================================
   行程生成器 / 行程展示
   ========================================================== */

.hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.hero-note { font-size: 12.5px; color: var(--ink-soft); }

/* ==========================================================
   首页：包车主视觉（车辆照片）+ 三个卖点
   ========================================================== */

.fleet { margin: 26px 0 34px; }

.fleet-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 22px;
  align-items: stretch;
}

.fleet-main,
.fleet-side {
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 6px 22px rgba(31, 74, 55, .07);
}
.fleet-main img,
.fleet-side img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}
.fleet-main img { aspect-ratio: 16 / 9; }
.fleet-main figcaption,
.fleet-side figcaption {
  padding: 8px 12px;
  font-size: 12px;
  color: var(--ink-soft);
  border-top: 1px solid var(--line);
}

.fleet-copy { display: flex; flex-direction: column; justify-content: center; }
.fleet-tag {
  display: inline-block;
  align-self: flex-start;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--green-100);
  color: var(--green-900);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .3px;
}
.fleet-copy h2 {
  margin: 12px 0 10px;
  font-size: 21px;
  line-height: 1.4;
  color: var(--green-900);
}
.fleet-copy p { margin: 0 0 12px; font-size: 14px; line-height: 1.75; color: var(--ink-soft); }
.fleet-list { margin: 0 0 16px; padding-left: 18px; font-size: 13.5px; line-height: 1.85; }
.fleet-list li { margin-bottom: 4px; }
.fleet-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* 后台维护的「车与司机」展示 */
.fleet-head { margin-bottom: 14px; }
.fleet-head h2 { margin: 0 0 6px; font-size: 21px; color: var(--green-900); line-height: 1.4; }
.fleet-head p { margin: 0; font-size: 14px; line-height: 1.75; color: var(--ink-soft); }

.fleet-group { margin-bottom: 20px; }
.fleet-group-title {
  display: inline-block;
  margin-bottom: 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .5px;
  color: var(--green-700);
  border-left: 3px solid var(--green-600);
  padding-left: 8px;
}

.fleet-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 16px;
}
.fleet-card {
  margin: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(31, 74, 55, .05);
  display: flex;
  flex-direction: column;
}
.fleet-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--green-50);
}
.fleet-card figcaption { padding: 11px 13px 13px; }
.fleet-card-t { font-size: 14.5px; font-weight: 700; color: var(--green-900); line-height: 1.5; }
.fleet-card-d { margin: 5px 0 0; font-size: 13px; line-height: 1.7; color: var(--ink-soft); }

/* 后台：缩略图与预览 */
.fleet-thumb {
  width: 64px;
  height: 48px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--line);
  display: block;
}
.fleet-edit-preview {
  display: block;
  max-width: 420px;
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--line);
  margin-bottom: 6px;
}

/* 第二张（车内）放在大图下方，整宽 */
.fleet-side { display: block; margin-top: 18px; }
.fleet-side img { aspect-ratio: 4 / 3; max-height: 420px; }

/* 三个卖点 */
.adv { margin: 10px 0 34px; }
.adv-title { font-size: 19px; color: var(--green-900); margin: 0 0 14px; }
.adv-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; }
.adv-card {
  padding: 18px 18px 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(31, 74, 55, .05);
  display: flex;
  flex-direction: column;
}
.adv-no { font-size: 12px; font-weight: 700; letter-spacing: 1px; color: var(--green-600); }
.adv-card h3 { margin: 8px 0 8px; font-size: 16px; line-height: 1.5; color: var(--green-900); }
.adv-card p { margin: 0 0 12px; font-size: 13.5px; line-height: 1.75; color: var(--ink-soft); flex: 1; }
.adv-link { font-size: 13px; font-weight: 600; color: var(--green-700); text-decoration: none; }
.adv-link:hover { text-decoration: underline; }

@media (max-width: 820px) {
  .fleet-grid { grid-template-columns: 1fr; }
  .fleet-side img { max-height: none; }
}

/* 目的地多选卡片 */
.dest-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 12px;
}

/* 目的地按四条地缘环线分组：组标题整行跨列 */
.dest-region {
  grid-column: 1 / -1;
  margin: 4px 0 0;
  padding: 10px 14px;
  border-left: 3px solid var(--green-600);
  border-radius: 8px;
  background: var(--green-50);
}
.dest-region.is-hub {
  border-left-color: var(--green-400);
  background: #fafcfa;
}
.dest-region-h {
  font-weight: 700;
  font-size: 15px;
  color: var(--green-900);
}
.dest-region-line {
  margin-top: 3px;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--ink-soft);
}

/* 生成结果里的环线摘要 */
.plan-regions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 14px;
}
.plan-region-chip {
  padding: 5px 11px;
  border: 1px solid var(--green-100);
  border-radius: 999px;
  background: var(--green-50);
  font-size: 12.5px;
  color: var(--green-900);
}
.plan-region-chip.is-custom {
  border-color: var(--line);
  background: #fff;
  color: var(--ink-soft);
}

.dest-card {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}

.dest-head {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
}

.dest-card:hover { border-color: var(--green-400); }
.dest-card.on {
  border-color: var(--green-700);
  background: var(--green-50);
  box-shadow: 0 0 0 2px rgba(47, 107, 79, .10);
}

.dest-card input[type="checkbox"] {
  margin: 3px 0 0;
  width: 16px;
  height: 16px;
  accent-color: var(--green-700);
  flex: 0 0 auto;
}

.dest-body { min-width: 0; }
.dest-name { font-weight: 700; font-size: 14.5px; color: var(--green-900); }
.dest-name .en { display: block; font-size: 11.5px; font-weight: 400; }
.dest-tags { font-size: 12.5px; color: var(--ink-soft); margin-top: 2px; }
.dest-days { font-size: 12px; color: var(--ink-soft); margin-top: 4px; opacity: .9; }

/* 城市内景点勾选 */
.spot-list {
  margin-top: 10px;
  padding-top: 9px;
  border-top: 1px dashed var(--line);
  display: flex;
  flex-direction: column;
  gap: 1px;
  opacity: .5;
  transition: opacity .15s ease;
}

.dest-card.on .spot-list { opacity: 1; }

.spot-list-h {
  font-size: 11px;
  letter-spacing: .06em;
  color: var(--ink-soft);
  margin-bottom: 4px;
}

.spot-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 5px;
  border-radius: 6px;
  font-size: 13px;
  cursor: pointer;
  line-height: 1.35;
}

.spot-item:hover { background: rgba(47, 107, 79, .06); }

/* 古城：到这座城市自动安排晚上自己去逛，不用勾选 */
.spot-auto {
  cursor: default;
  color: #6d7f74;
  padding-left: 8px;
}

.spot-auto:hover { background: none; }

.spot-auto .spot-name { font-weight: 400; }

.spot-item input[type="checkbox"] {
  margin: 0;
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  accent-color: var(--green-700);
}

.spot-name { flex: 1; min-width: 0; }

.spot-h {
  font-size: 11.5px;
  color: var(--ink-soft);
  flex: 0 0 auto;
}

.spot-item input:disabled ~ .spot-name,
.spot-item input:disabled ~ .spot-h { color: var(--ink-soft); }

.overnight-item {
  margin-top: 6px;
  padding-top: 7px;
  border-top: 1px dashed var(--line);
  font-weight: 600;
}

.spot-note {
  margin: 0 0 8px;
  font-size: .78rem;
  line-height: 1.5;
  color: var(--ink-soft);
}

.last-spots-row {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-top: 14px;
  padding: 11px 13px;
  background: var(--green-50);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.last-spots-row input { margin-top: 2px; flex: 0 0 auto; }
.last-spots-row label { font-size: .92rem; font-weight: 600; cursor: pointer; }
.last-spots-row .form-hint { margin: 3px 0 0; }

/* 生成结果 */
.plan-result { margin-top: 22px; }

.plan-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.plan-summary { font-size: 15px; font-weight: 700; color: var(--green-900); }
.plan-actions { display: flex; gap: 8px; }

.plan-warnings {
  margin: 0 0 16px;
  padding: 12px 16px 12px 34px;
  background: #fdf6e7;
  border: 1px solid #ece0c4;
  border-radius: 8px;
  font-size: 13px;
  color: #8a6114;
}
.plan-warnings li { margin: 3px 0; }

.plan-table .col-day { width: 56px; text-align: center; }
.plan-table .col-date { width: 104px; white-space: nowrap; }
.plan-table .col-stay { width: 150px; font-size: 12.5px; color: var(--ink-soft); }
.plan-table .col-drive { width: 84px; white-space: nowrap; font-size: 12.5px; color: var(--ink-soft); }

.day-title { font-weight: 700; color: var(--ink); }
.day-city { font-size: 12px; color: var(--ink-soft); margin-top: 1px; }

.day-items { margin: 6px 0 0; padding-left: 18px; font-size: 13px; color: var(--ink-soft); }
.day-items li { margin: 2px 0; }
.day-items .en { display: block; font-size: 11.5px; opacity: .85; }

.plan-use {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px dashed var(--line);
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
}

.plan-text { margin-top: 16px; font-size: 13px; }
.plan-text summary { cursor: pointer; color: var(--green-700); font-weight: 600; }
.plan-text pre {
  margin-top: 10px;
  background: var(--green-50);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  font-size: 12.5px;
  line-height: 1.7;
  white-space: pre-wrap;
  word-break: break-word;
  font-family: ui-monospace, Menlo, Consolas, monospace;
  color: var(--ink);
}

/* 报价表单里带的行程 */
.plan-banner {
  margin: 14px 0 4px;
  border: 1px solid #c8ddcc;
  background: var(--green-50);
  border-radius: var(--radius);
  padding: 14px 16px;
}

.plan-banner-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 14px;
  color: var(--green-900);
}

.plan-banner-body {
  margin: 10px 0;
  max-height: 260px;
  overflow: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  font-size: 12.5px;
  line-height: 1.7;
  white-space: pre-wrap;
  word-break: break-word;
  font-family: ui-monospace, Menlo, Consolas, monospace;
  color: var(--ink);
}

.plan-banner-actions { display: flex; gap: 8px; flex-wrap: wrap; }

@media (max-width: 640px) {
  .dest-grid { grid-template-columns: 1fr; }
  .plan-table .col-stay, .plan-table .col-drive { display: none; }
  .plan-table thead th:nth-child(4), .plan-table thead th:nth-child(5) { display: none; }
  .header-nav { flex-wrap: wrap; }
}

/* ==========================================================
   语言切换
   ========================================================== */

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 2px;
  border: 1px solid var(--line, #e2e8e2);
  border-radius: 999px;
  background: #fff;
}

.lang-switch a,
.lang-switch .lang-on {
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 12.5px;
  line-height: 1.4;
  text-decoration: none;
  color: var(--ink-soft, #6b7b72);
  white-space: nowrap;
}

.lang-switch a:hover { color: var(--green-700, #2f6b4f); }

.lang-switch .lang-on {
  background: var(--green-700, #2f6b4f);
  color: #fff;
  font-weight: 600;
}

/* 英文界面下标题字号略改，避免长句换行过多 */
body.lang-en .hero h1 { font-size: 27px; line-height: 1.25; }
body.lang-en .section-title { letter-spacing: 0; }
body.lang-en .dest-name { line-height: 1.3; }

/* ==========================================================
   经典线路模板 / 行程分享
   ========================================================== */

.plan-presets { margin-bottom: 18px; }

.preset-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 10px;
}

.preset-card {
  display: block;
  padding: 13px 15px;
  border: 1px solid var(--line, #e2e8e2);
  border-radius: var(--radius, 10px);
  background: #fff;
  text-decoration: none;
  transition: border-color .15s ease, background .15s ease;
}

.preset-card:hover {
  border-color: var(--green-700, #2f6b4f);
  background: var(--green-50, #f2f7f3);
}

.preset-name { font-weight: 700; font-size: 14px; color: var(--green-900, #1f4a37); }
.preset-note { font-size: 12.5px; color: var(--ink-soft, #6b7b72); margin-top: 4px; }

.plan-share {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px dashed var(--line, #e2e8e2);
}
.plan-share .btn { padding: 10px 18px; }
.plan-share-hint {
  margin: 8px 0 0;
  line-height: 1.7;
}
/* 行程自己改的小面板 */
.plan-edit {
  margin-top: 16px;
  padding: 14px 16px 10px;
  background: var(--green-50);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.plan-edit-h {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--green-700);
  margin-bottom: 10px;
}
.plan-edit-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.plan-edit-row + .plan-edit-row { margin-top: 10px; }
.plan-edit-row .pe-divider {
  width: 1px;
  height: 22px;
  background: var(--line);
  margin: 0 4px;
}
.plan-edit-row .pe-label {
  font-size: 12.5px;
  color: var(--ink-soft);
}
.plan-edit-row select {
  padding: 7px 10px;
  font-size: 13px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  max-width: 240px;
  font-family: inherit;
}
#edit-day { min-width: 150px; }
#edit-spot { min-width: 210px; }
#edit-pos { min-width: 110px; }
#edit-add-kind { min-width: 150px; }
#edit-custom {
  min-width: 320px;
  flex: 0 1 380px;
  padding: 7px 10px;
  font-size: 13px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-family: inherit;
}
.plan-edit-tip {
  font-size: 12px;
  color: var(--ink-soft);
}
.plan-edit .form-hint { margin: 10px 0 4px; }

/* ==========================================================
   后台：询价列表（卡片式，手机端优先）
   ========================================================== */

.inq-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(420px, 1fr));
  gap: 14px;
}

.inq-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px 12px;
  box-shadow: 0 2px 10px rgba(31, 74, 55, .05);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.inq-card.is-new { border-left: 3px solid var(--green-600); }

.inq-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.inq-id { font-size: 12px; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.inq-name { font-size: 16px; font-weight: 700; color: var(--green-900); text-decoration: none; }
.inq-name:hover { text-decoration: underline; }
.inq-nation { font-size: 12px; color: var(--ink-soft); }
.inq-time { margin-left: auto; font-size: 12px; color: var(--ink-soft); }

.inq-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 14px;
  font-size: 13px;
}
.inq-fact { display: flex; gap: 6px; min-width: 0; }
.inq-k { color: var(--ink-soft); flex: 0 0 auto; font-size: 12.5px; }
.inq-v { color: var(--ink); word-break: break-word; }

.inq-block { font-size: 13px; }
.inq-text { margin: 2px 0 0; line-height: 1.65; color: var(--ink); }

.inq-plan { border: 1px solid var(--line); border-radius: 8px; background: var(--green-50); }
.inq-plan summary {
  cursor: pointer;
  list-style: none;
  padding: 9px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--green-900);
}
.inq-plan summary::-webkit-details-marker { display: none; }
.inq-plan summary::before { content: "▸"; color: var(--green-600); font-size: 12px; }
.inq-plan[open] summary::before { content: "▾"; }
.inq-plan-n { margin-left: auto; font-weight: 400; font-size: 12px; color: var(--ink-soft); }
.inq-plan-pre {
  margin: 0;
  padding: 0 12px 8px;
  font: 12.5px/1.7 ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  white-space: pre-wrap;
  word-break: break-word;
  color: var(--ink);
  max-height: 260px;
  overflow: auto;
}
.inq-plan-link { display: inline-block; padding: 0 12px 10px; font-size: 12.5px; color: var(--green-700); }
.inq-noplan { font-size: 12.5px; color: var(--ink-soft); padding: 6px 0 0; }

.inq-act {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
}

/* 详情页：客人自己设计的逐日行程 */
.plan-summary { font-size: 13px; color: var(--ink-soft); margin: 0 0 12px; line-height: 1.7; }
.plan-days { display: grid; gap: 10px; }
.plan-day { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #fbfdfc; }
.plan-day-head {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 9px 13px;
  background: var(--green-50);
  border-bottom: 1px solid var(--line);
}
.plan-day-no {
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: var(--green-700);
  border-radius: 6px;
  padding: 1px 7px;
}
.plan-day-title { font-size: 13.5px; font-weight: 600; color: var(--green-900); }
.plan-day-date { margin-left: auto; font-size: 12px; color: var(--ink-soft); }
.plan-day-items { margin: 0; padding: 8px 13px 4px 30px; font-size: 13px; line-height: 1.75; }
.plan-day-items li { margin-bottom: 2px; }
.plan-day-foot { padding: 4px 13px 9px; font-size: 12px; color: var(--ink-soft); }
.plan-raw { margin-top: 12px; }
.plan-raw summary { cursor: pointer; font-size: 13px; color: var(--green-700); padding: 6px 0; }

@media (max-width: 720px) {
  .inq-list { grid-template-columns: 1fr; }
  .inq-facts { grid-template-columns: 1fr; }
  .inq-name { font-size: 15.5px; }
  .inq-time { margin-left: 0; width: 100%; order: 9; }
  .inq-act .btn { flex: 1; text-align: center; }
  .plan-day-items { padding-left: 24px; }
  .plan-day-date { margin-left: 0; }
}

/* 后台报价单：窄屏把三张宽表拆成「一行一张小卡」，避免横向滚动过大撑爆手机浏览器 */
@media (max-width: 760px) {
  .quote-items thead { display: none; }
  .quote-items tbody tr {
    display: block;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    padding: 8px 10px 10px;
    margin-bottom: 10px;
  }
  .quote-items tbody td {
    display: block;
    width: auto !important;
    border: 0;
    padding: 3px 0;
  }
  .quote-items tbody td.c-num {
    font-size: 12px;
    color: var(--ink-soft);
    padding-bottom: 4px;
  }
  .quote-items tbody td input,
  .quote-items tbody td select {
    width: 100%;
    box-sizing: border-box;
  }
  .quote-tools { flex-direction: column; align-items: stretch; }
  .quote-tools .btn { width: 100%; }
}

/* 报价明细：加一行 / 删一行 */
.quote-items th.c-del,
.quote-items td.c-del {
  text-align: center;
}

.quote-items td.c-del button {
  width: 26px;
  height: 26px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
}

.quote-items td.c-del button:hover {
  border-color: var(--danger);
  color: var(--danger);
}

.quote-tools .js-add-row {
  margin-top: 8px;
}