:root{
  --bg:#EAF3FB; --panel:#FFF; --line:#E6EDF3; --brand:#FF7B00;
  --btn:#FF7B00; --btn-hover:#FF8F33; --text:#222; --sub:#5a6a78;
  --topbar-height:64px;
}
html,body{height:100%;margin:0;background:var(--bg);color:var(--text);
  font-family:-apple-system,BlinkMacSystemFont,"PingFang SC",Segoe UI,Roboto,Arial,sans-serif;}
select{font-size:16px;}
/* 顶部 */
.topbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:10px 18px;
  gap:16px;
  position:relative;
  z-index:10;
  border-bottom:1px solid #f6d9be;
  flex-wrap:wrap;
  background:linear-gradient(90deg,#FFF4E9 0%,#FFEAD9 60%,#FFE2C7 100%);
}
.topbar.warm{background:linear-gradient(90deg,#FFF4E9 0%,#FFEAD9 60%,#FFE2C7 100%)}
.nav-left{
  display:flex;
  align-items:center;
  gap:10px;
  text-decoration:none;
  color:inherit;
  cursor:pointer;
  flex:0 0 auto;
}
.nav-left:focus-visible{outline:2px solid rgba(255,123,0,.6);outline-offset:4px;border-radius:12px}
.logo{height:36px}
.slogan{color:var(--brand);font-weight:700}
.topbar:not(.topbar-home) .slogan{display:none;}
.topbar-home{
  display:flex;
  align-items:center;
  gap:20px;
  flex-wrap:wrap;
}
.topbar-home .home-brand{
  display:flex;
  align-items:center;
  gap:10px;
}
.home-secondary{
  display:flex;
  align-items:center;
  gap:12px;
  flex:1 1 720px;
  justify-content:center;
  pointer-events:none;
}
.home-secondary > *{pointer-events:auto;}
.filter-track{
  display:flex;
  align-items:center;
  gap:6px;
  width:100%;
  max-width:980px;
  margin:0 auto;
  padding:6px 8px;
  background:rgba(255,255,255,.55);
  border-radius:16px;
  position:relative;
  justify-content:center;
}
.filter-scroll{
  flex:1 1 auto;
  min-width:320px;
  overflow-x:auto;
  overflow-y:hidden;
  position:relative;
  z-index:1;
  scrollbar-width:none;
}
.filter-scroll::-webkit-scrollbar{display:none;}
.nav-center{
  display:flex;
  align-items:stretch;
  gap:6px;
  flex-wrap:nowrap;
  min-width:min-content;
}
.nav-center > *{
  height:30px;
  flex:0 0 120px;
  min-width:110px;
}
.nav-chip{
  display:none;
  border:1px solid #f1cfa8;
  border-radius:16px;
  background:#fff;
  font-weight:600;
  color:#2c3e4f;
  font-size:12px;
  justify-content:center;
  align-items:center;
  text-decoration:none;
  padding:0 12px;
  cursor:pointer;
}
.nav-chip.settings-toggle{
  border-color:#f0b777;
  background:#fff7ef;
  position:relative;
}
.nav-chip:focus{outline:none;}
.settings-toggle{
  position:relative;
}
.settings-toggle.has-badge::after{
  content: attr(data-badge);
  position:absolute;
  top:-6px;
  right:-6px;
  min-width:18px;
  height:18px;
  padding:0 4px;
  border-radius:999px;
  background:#ff4d4f;
  color:#fff;
  font-size:11px;
  font-weight:700;
  line-height:18px;
  text-align:center;
  box-shadow:0 2px 6px rgba(0,0,0,.2);
}
.mobile-only{display:none;}
.search{
  flex:0 0 140px;
  min-width:0;
  padding:0 9px;
  border:1px solid #f1cfa8;
  border-radius:16px;
  background:#fff7ef;
  font-size:12px;
}
.search:focus{outline:none;border-color:#f0b777;box-shadow:0 0 0 3px rgba(255,174,94,.25)}
.purpose-filter{
  padding:0 8px;
  border:1px solid #f1cfa8;
  border-radius:16px;
  background:#fff;
  font-weight:500;
  color:#2c3e4f;
  min-width:0;
  font-size:16px;
}
.purpose-filter:focus{
  outline:none;
  border-color:#f0b777;
  box-shadow:0 0 0 3px rgba(255,174,94,.25);
}
.btn{background:var(--btn);color:#fff;border:none;border-radius:20px;padding:0 18px;font-weight:600;cursor:pointer;flex:0 0 auto;min-width:90px;height:38px;line-height:38px;}
.btn:hover{background:var(--btn-hover)}

/* ===== 评分胶囊（全站复用） ===== */
.score-capsule{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:6px 12px;
  border-radius:999px;
  font-weight:700;
  font-size:13px;
  line-height:1.1;
  color:#0f172a;
  background:#f8fafc;
  border:1px solid #e2e8f0;
  white-space:nowrap;
}
.score-capsule .star{color:#f59e0b;font-size:14px;line-height:1;}
.score-capsule.score-light{padding:4px 8px;font-size:12px;border-color:#e5e7eb;background:#f9fafb;}
.score-capsule.score-strong{padding:8px 14px;font-size:14px;box-shadow:0 8px 20px rgba(15,23,42,.12);}
.score-capsule.tag-high{background:#ecfdf3;border-color:#bbf7d0;color:#166534;}
.score-capsule.tag-mid{background:#fff7ed;border-color:#fed7aa;color:#9a3412;}
.score-capsule.tag-low{background:#f8fafc;border-color:#e2e8f0;color:#475569;}
.score-capsule.score-placeholder{box-shadow:none;}
.filter-nav{
  width:30px;
  height:30px;
  border:1px solid rgba(255,123,0,.35);
  border-radius:12px;
  background:#fff7ef;
  color:#ff7b00;
  font-size:14px;
  font-weight:700;
  cursor:pointer;
  flex:0 0 auto;
  min-width:30px;
  max-width:30px;
  padding:0;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  z-index:2;
}

/* 评分教育弹窗 */
.score-edu-mask{
  position:fixed;inset:0;
  display:none;
  align-items:center;
  justify-content:center;
  background:rgba(15,23,42,.5);
  z-index:1300;
  padding:16px;
}
.score-edu-mask.light{background:rgba(15,23,42,.2);}
.score-edu-mask.active{display:flex;}
.score-edu-card{
  background:#fff;
  width:min(520px,90vw);
  border-radius:16px;
  box-shadow:0 18px 48px rgba(15,23,42,.18);
  padding:20px 22px;
  color:#0f172a;
  display:flex;
  flex-direction:column;
  gap:12px;
}
.score-edu-card h3{margin:0;font-size:20px;font-weight:800;}
.score-edu-desc{margin:0;font-size:14px;color:#475569;line-height:1.5;}
.score-edu-list{margin:0;padding-left:18px;color:#0f172a;line-height:1.5;}
.score-edu-list li{margin:4px 0;}
.score-edu-actions{display:flex;gap:10px;justify-content:flex-end;margin-top:4px;}
.score-edu-primary{background:#ff7a00;color:#fff;border:none;border-radius:10px;padding:8px 14px;font-weight:700;cursor:pointer;}
.score-edu-secondary{background:#e2e8f0;color:#0f172a;border:none;border-radius:10px;padding:8px 14px;font-weight:600;cursor:pointer;}
.filter-nav:disabled{opacity:.35;cursor:default;}
.nav-right{
  display:flex;
  align-items:center;
  gap:12px;
  flex:0 0 auto;
  flex-wrap:nowrap;
  justify-content:flex-end;
}
.home-nav{
  justify-content:flex-end;
  gap:10px;
  font-size:13px;
}
.nav-right a{text-decoration:none;color:#2c3e4f;font-weight:600}
.nav-msg{position:relative;display:inline-flex;align-items:center;gap:4px;padding-right:8px}
.nav-msg .nav-msg-badge{
  position:absolute;
  top:-6px;
  right:0;
  min-width:18px;
  padding:2px 4px;
  font-size:11px;
  font-weight:700;
  color:#fff;
  background:#ff4d4f;
  border-radius:999px;
  line-height:1;
  display:none;
}
.nav-msg.has-unread .nav-msg-badge{display:inline-block}
.nav-menu-btn{
  position:relative;
  display:inline-flex;
  width:36px;
  height:36px;
  border-radius:10px;
  border:1px solid rgba(255,123,0,.35);
  background:#fff7ef;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  margin-left:12px;
}
.nav-menu-btn span,
.nav-menu-btn::before,
.nav-menu-btn::after{
  content:'';
  width:18px;
  height:2px;
  background:#ff7b00;
  border-radius:999px;
  transition:transform .2s ease, opacity .2s ease;
}
.nav-menu-btn::before{position:absolute;top:11px;left:50%;transform:translateX(-50%);}
.nav-menu-btn::after{position:absolute;bottom:11px;left:50%;transform:translateX(-50%);}
.nav-menu-btn span{display:block;}
.nav-menu-btn.active span{opacity:0;}
.nav-menu-btn.active::before{transform:translate(-50%,4px) rotate(45deg);}
.nav-menu-btn.active::after{transform:translate(-50%,-4px) rotate(-45deg);}

@media (max-width: 1024px){
  .topbar-home{
    flex-direction:column;
    align-items:stretch;
    gap:12px;
  }
  .topbar-home .home-brand{
    justify-content:center;
    text-align:center;
    width:100%;
    flex:0 0 auto;
  }
  .home-secondary{
    width:100%;
    align-items:center;
    justify-content:center;
    gap:12px;
    flex-direction:column;
    flex:0 0 auto;
  }
  .filter-track{max-width:100%;width:100%;}
  .home-nav{display:none;}
  .filter-scroll{
    flex:1 1 100%;
    width:100%;
    min-width:0;
    scroll-behavior:smooth;
  }
  .mobile-only{
    display:flex;
  }
  .nav-chip{
    display:flex;
  }
}

@media (max-width: 640px){
  .topbar{padding:10px;}
  .topbar-home{flex-direction:column;align-items:stretch;}
  .nav-left{width:100%;justify-content:space-between;}
  .nav-right{gap:10px;justify-content:space-between;}
  .nav-right a{font-size:14px;}
  .home-secondary{flex-direction:column;align-items:stretch;}
  .filter-track{width:100%;padding:4px 6px;}
  .nav-center{gap:6px;}
  .purpose-filter,
  .search{flex:1 1 100%;min-width:0;}
}

@media (max-width: 768px){
  #infoPanel {
    width: 100%;
    max-width: 100%;
    left: 0;
    top: var(--topbar-height, 64px);
    height: 55vh;
    box-shadow: 0 12px 30px rgba(15,23,42,.12);
    z-index: 12;
  }
  .info-list{
    max-height:none;
    height:auto;
  }
  .info-user-panel{
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    top: auto;
    width: 100%;
    max-width: 100%;
    height: 45vh;
    transform: translateY(110%);
    padding-bottom: 20px;
    border-radius: 16px 16px 0 0;
    box-shadow: 0 -10px 24px rgba(15,23,42,.15);
  }
  .info-user-panel.active{
    transform: translateY(0);
    opacity: 1;
  }
  body.mobile-detail .info-user-panel{
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
}

/* 覆盖手机端筛选：横排可滑动 */
@media (max-width: 768px) {
  .filter-track.filter-bar,
  .filter-bar{
    display:flex !important;
    flex-direction:row !important;
    flex-wrap:nowrap !important;
    align-items:center;
    gap:8px;
    padding:10px 12px;
    overflow-x:auto;
    overflow-y:hidden;
    -webkit-overflow-scrolling:touch;
  }
  /* override old mobile rules that force full-width/stacking */
  .filter-track.filter-bar > *,
  .filter-bar > *{
    flex:0 0 auto !important;
    width:auto !important;
    min-width:120px;
  }
  /* flatten intermediate wrappers to avoid 100% width */
  .filter-track.filter-bar .filter-scroll,
  .filter-track.filter-bar .nav-center,
  .filter-bar .filter-scroll,
  .filter-bar .nav-center{
    display:flex !important;
    flex:0 0 auto !important;
    width:auto !important;
    min-width:0 !important;
    flex-wrap:nowrap !important;
    gap:8px;
  }
  .filter-track.filter-bar .purpose-filter,
  .filter-track.filter-bar .search,
  .filter-track.filter-bar .month-filter,
  .filter-track.filter-bar .gender-filter,
  .filter-track.filter-bar .country-filter,
  .filter-track.filter-bar .city-filter,
  .filter-bar .purpose-filter,
  .filter-bar .search,
  .filter-bar .month-filter,
  .filter-bar .gender-filter,
  .filter-bar .country-filter,
  .filter-bar .city-filter{
    flex:0 0 auto !important;
    width:auto !important;
    min-width:120px;
  }
  .filter-track.filter-bar select,
  .filter-track.filter-bar input,
  .filter-track.filter-bar button,
  .filter-bar select,
  .filter-bar input,
  .filter-bar button{
    flex:0 0 auto !important;
    width:auto !important;
    min-width:120px;
    height:34px;
    box-sizing:border-box;
  }
  .filter-track.filter-bar select,
  .filter-bar select{
    font-size:16px;
  }
}

/* Mobile: force top filters into single-line horizontal scroll */
@media (max-width: 768px){
  .filter-track.filter-bar{
    display:flex !important;
    flex-direction:row !important;
    flex-wrap:nowrap !important;
    align-items:center !important;
    gap:8px !important;
    overflow-x:auto !important;
    overflow-y:hidden !important;
    -webkit-overflow-scrolling:touch;
    padding:10px 12px !important;
  }
  /* remove full-width stacking on any descendants */
  .filter-track.filter-bar > *,
  .filter-track.filter-bar *{
    flex:0 0 auto !important;
    width:auto !important;
    max-width:none !important;
  }
  /* compact control widths */
  .filter-track.filter-bar select,
  .filter-track.filter-bar input,
  .filter-track.filter-bar button{
    width:100px !important;
    min-width:100px !important;
    max-width:100px !important;
    height:34px !important;
    box-sizing:border-box !important;
    white-space:nowrap;
    font-size:16px !important;
  }
  .filter-track.filter-bar .purpose-filter,
  .filter-track.filter-bar .search{
    flex:0 0 auto !important;
    width:100px !important;
    min-width:100px !important;
  }
  /* keep nav arrows compact */
  .filter-track.filter-bar .filter-nav{
    min-width:30px !important;
    max-width:30px !important;
    width:30px !important;
    height:30px !important;
  }
  .filter-track.filter-bar .nav-chip{
    font-size:14px !important;
    width:100px !important;
    min-width:100px !important;
    max-width:100px !important;
    height:34px !important;
    justify-content:center;
    align-items:center;
  }
  /* keep scroll container flexible so左右按钮逻辑仍能计算溢出 */
  .filter-track.filter-bar .filter-scroll{
    flex:1 1 auto !important;
    width:100% !important;
    min-width:0 !important;
  }
}

/* 地图容器与侧栏 */
#map{position:absolute;top:var(--topbar-height,64px);left:0;right:0;bottom:36px;}
body.panel-open #map{left:700px;}
.sidebar{position:absolute;top:72px;bottom:44px;width:360px;background:var(--panel);border:1px solid var(--line);border-radius:12px;padding:12px;display:flex;flex-direction:column;gap:10px;z-index:5}
.sidebar.left{left:12px}
.sidebar.right{right:12px;width:420px}
.hidden{display:none}
.sidebar-head{display:flex;align-items:center;justify-content:space-between}
.icon-btn{background:#fff;border:1px solid #d8e1ea;border-radius:8px;padding:4px 8px;cursor:pointer}
.sidebar-body{overflow:auto;border:1px solid #eef3f7;border-radius:10px;padding:10px;background:#fbfdff}
.card{border:1px solid #dde5ed;background:#fff;border-radius:10px;padding:10px;margin-bottom:8px}
.card h4{margin:0 0 6px 0}
.meta{font-size:12px;color:var(--sub);display:flex;flex-wrap:wrap;gap:8px}
.actions{margin-top:8px;display:flex;gap:8px;flex-wrap:wrap}
.badge{font-size:12px;padding:2px 8px;border-radius:999px;border:1px solid #d7dee6;background:#fff}
.btn-sm{padding:6px 10px;border:1px solid #f1cfa8;border-radius:8px;background:#fff7ef;cursor:pointer}

/* 页脚 */
.footer{position:absolute;left:0;right:0;bottom:0;height:36px;display:flex;align-items:center;justify-content:center;color:#6b7b88;background:rgba(255,255,255,.7);border-top:1px solid var(--line)}

/* ===== 左侧信息栏样式 ===== */
#infoPanel {
  position: fixed;
  top: 0;
  left: 0;
  width: 380px;
  height: 100%;
  background: #fff;
  box-shadow: 4px 0 14px rgba(0,0,0,0.1);
  transform: translateX(-100%);
  transition: transform .3s ease, opacity .3s ease;
  z-index: 999;
  display:flex;
  flex-direction:column;
  overflow-y: hidden;
  opacity: 0;
  padding: 16px 20px;
  box-sizing: border-box;
}

#infoPanel.active {
  transform: translateX(0);
  opacity: 1;
}

.info-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #eee;
  padding-bottom: 10px;
  margin-bottom: 10px;
}

#closePanel {
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
  color: #999;
}
#closePanel:hover { color: #000; }

.info-title {
  font-weight: 800;
  font-size: 20px;
  color: #0f172a;
}
.info-sub {
  font-size: 13px;
  color: #64748b;
}

.info-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex:1 1 auto;
  min-height:0;
  overflow-y:auto;
  padding-bottom:12px;
}

.info-card {
  background: #fff9f4;
  border: 1px solid #ffe3ca;
  border-radius: 10px;
  padding: 10px 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  cursor:pointer;
  transition:border-color .2s ease, box-shadow .2s ease;
}
.info-card-header {
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  color: #ff7a00;
  margin-bottom: 4px;
  font-size: 14px;
}
.info-card-body {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  font-size: 13px;
  color: #334155;
}
.info-card-plan {
  font-size: 12px;
  color: #475569;
  margin-top: 6px;
}
.info-card.selected{
  border-color:#409bff;
  box-shadow:0 4px 16px rgba(64,155,255,.25);
}
.info-card-own{
  border-color:#ffd88a;
  background:#fff7e6;
  position:relative;
}
.info-card-meta-footer{
  margin-top:8px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  font-size:12px;
  color:#475569;
}
.info-card-action{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:4px 10px;
  border-radius:999px;
  border:1px solid #ffd1a6;
  background:#fff2e5;
  color:#c2410c;
  font-weight:700;
}
.info-card-arrow{
  font-size:14px;
  line-height:1;
}
.info-card .score-capsule{
  padding:4px 8px;
  font-size:12px;
}
.info-card .score-capsule .star{font-size:12px;}
.info-card-views{
  background:#eef2ff;
  color:#1d4ed8;
  padding:2px 8px;
  border-radius:999px;
}
.info-card-tag{
  background:#ffe4ba;
  color:#b45309;
  padding:2px 8px;
  border-radius:999px;
  font-weight:700;
}

@media (max-width: 768px){
  .filter-bar{
    display:flex;
    flex-wrap:nowrap;
    align-items:center;
    gap:8px;
    padding:10px 10px;
    overflow-x:auto;
    overflow-y:hidden;
    -webkit-overflow-scrolling:touch;
    background:rgba(255,245,235,.95);
    border-bottom:1px solid rgba(0,0,0,.06);
  }
  .filter-bar > *{
    flex:0 0 auto;
  }
  .filter-bar select,
  .filter-bar input,
  .filter-bar button{
    height:34px;
    font-size:16px;
    padding:0 10px;
    border-radius:18px;
  }
  .filter-bar select,
  .filter-bar input{
    min-width:120px;
  }
}

.info-user-panel{
  position:fixed;
  top:0;
  left:380px;
  width:320px;
  height:100%;
  background:#fff;
  box-shadow:4px 0 14px rgba(15,23,42,.1);
  transform:translateX(-120%);
  opacity:0;
  transition:transform .3s ease, opacity .3s ease;
  z-index:998;
  padding:18px 20px;
  box-sizing:border-box;
  overflow-y:auto;
  pointer-events:none; /* hidden state shouldn't block clicks */
}
.info-user-panel.active{
  transform:translateX(0);
  opacity:1;
  pointer-events:auto;
}
.info-user-panel__content{display:flex;flex-direction:column;gap:12px}
.info-request{
  border:1px solid #e3eaf5;
  border-radius:12px;
  padding:14px 16px;
  background:#fffdfa;
  display:flex;
  flex-direction:column;
  gap:10px;
}
.info-request h4{margin:0;font-size:15px;font-weight:800;color:#1d3a58;display:flex;justify-content:space-between;align-items:center}
.info-request-date{font-size:13px;color:#ea580c;background:#fff0e1;padding:4px 10px;border-radius:999px;font-weight:700}
.info-request-meta{display:flex;flex-wrap:wrap;gap:8px;font-size:13px;color:#475569}
.info-request-meta span{background:#f0f4ff;color:#1d4ed8;padding:4px 8px;border-radius:999px;font-weight:600}
.info-purpose{display:flex;flex-wrap:wrap;gap:6px 8px;margin:4px 0}
.info-purpose .purpose-badge{border:1px solid #ffd9b0;border-radius:999px;background:#fff4e6;padding:4px 10px;font-size:12px;color:#b45309;display:inline-flex;align-items:center;gap:4px}
.info-purpose .purpose-badge em{font-style:normal;font-size:11px;color:#a64a12}
.info-request-body{font-size:13px;color:#334155;line-height:1.5}
.info-request-legs{border-top:1px dashed #e0e7f5;padding-top:8px;margin-top:4px;display:flex;flex-direction:column;gap:6px;font-size:12px;color:#475569}
.info-request-legs li{list-style:none;padding-left:0}
.info-request-empty{font-size:12px;color:#94a3b8}
.info-request-empty{color:#94a3b8}
.info-user{
  border:1px solid #e0e9f5;
  border-radius:12px;
  padding:14px;
  background:#f8fbff;
  display:flex;
  flex-direction:column;
  gap:10px;
}
.info-user header{
  display:flex;
  align-items:center;
  gap:12px;
}
.info-user header img{
  width:56px;
  height:56px;
  border-radius:50%;
  object-fit:cover;
  border:2px solid #fff;
  box-shadow:0 2px 6px rgba(15,23,42,.15);
}
.info-user .info-user-name{font-weight:800;font-size:16px;color:#0f172a}
.info-user .info-user-meta{display:flex;flex-wrap:wrap;gap:8px;font-size:13px;color:#475569}
.info-user .info-user-meta span{background:#e8f2ff;color:#1d4ed8;padding:4px 8px;border-radius:999px;font-weight:600}
.info-user .info-user-score{font-size:13px;font-weight:700;color:#ea580c}
.info-user .info-user-intro{margin:0;font-size:13px;color:#3a4758;line-height:1.5}
.info-user-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;font-size:12px;color:#334155;margin-top:4px}
.info-user-stats .stat{background:#fff;border:1px solid #e5edf7;border-radius:10px;padding:8px;text-align:center}
.info-user-stats .stat strong{display:block;font-size:15px;font-weight:800;color:#2563eb;margin-bottom:4px}
.info-user .info-user-actions{display:flex;justify-content:space-between;align-items:center;margin-top:6px}
.info-user .cta-btn{
  background:#2563eb;
  color:#fff;
  border:none;
  border-radius:999px;
  padding:10px 18px;
  font-weight:800;
  cursor:pointer;
  box-shadow:0 8px 16px rgba(37,99,235,.3);
}
.info-user .cta-btn:hover{background:#1d4ed8}
.info-user details{
  background:#fff;
  border-radius:10px;
  border:1px solid #e4ecf7;
  padding:10px 12px;
  font-size:13px;
  color:#334155;
}
.info-user details summary{cursor:pointer;font-weight:700;color:#2563eb}
.info-review-highlight{
  margin-top:8px;
  padding:12px;
  border:1px solid #e2e8f0;
  border-radius:10px;
  background:#f8fafc;
  font-size:13px;
  color:#475569;
}
.info-review-highlight .stars{
  font-weight:700;
  color:#f97316;
  margin-bottom:4px;
}
.info-review-highlight small{
  display:block;
  margin-top:6px;
  color:#94a3b8;
}
.info-review-empty{
  margin:8px 0 0;
  color:#94a3b8;
  font-size:13px;
}

/* ===== 首次教程遮罩 ===== */
.tutorial-overlay{
  position:fixed;
  inset:0;
  background:transparent;
  z-index:3000;
  pointer-events:none;
}
.tutorial-overlay.active{
  pointer-events:auto;
  background:rgba(15,23,42,.35);
}
.tutorial-overlay[hidden]{display:none!important;}
.tutorial-highlight{
  position:fixed;
  border:2px solid #ffae5a;
  border-radius:14px;
  box-shadow:0 0 0 2000px rgba(15,23,42,.58);
  background:rgba(255,255,255,.05);
  pointer-events:none;
  transition:all .25s ease;
  opacity:0;
}
.tutorial-overlay.active .tutorial-highlight{opacity:1;}
.tutorial-card{
  position:fixed;
  max-width:240px;
  background:#fffaf2;
  border:1px solid #ffd9b0;
  border-radius:14px;
  box-shadow:0 16px 40px rgba(15,23,42,.25);
  padding:14px 16px 16px;
  color:#b45309;
  font-size:14px;
  line-height:1.5;
  pointer-events:auto;
  opacity:0;
  transform:translateY(8px);
  transition:transform .25s ease, opacity .25s ease;
}
.tutorial-overlay.active .tutorial-card{
  opacity:1;
  transform:translateY(0);
}
.tutorial-step-indicator{
  font-size:12px;
  font-weight:700;
  color:#f97316;
  letter-spacing:.05em;
  margin-bottom:6px;
  text-transform:uppercase;
}
.tutorial-message{margin:0 0 12px;color:#8a4a0a;font-size:14px;font-weight:600;}
.tutorial-actions{display:flex;justify-content:flex-end;gap:8px;}
.tutorial-btn{
  border:none;
  border-radius:10px;
  padding:6px 12px;
  font-size:13px;
  cursor:pointer;
  font-weight:700;
}
.tutorial-btn.skip{
  background:#fff;
  border:1px solid #ffd2a4;
  color:#b45309;
}
.tutorial-btn.next{
  background:#ff8c1a;
  color:#fff;
  box-shadow:0 6px 14px rgba(255,140,26,.35);
}
.tutorial-btn.next:disabled{
  background:#fcd4a4;
  cursor:wait;
}
body.tutorial-active{overflow:hidden;}

.home-review-overlay{
  position:fixed;
  inset:0;
  background:rgba(15,23,42,.45);
  display:flex;
  align-items:center;
  justify-content:center;
  z-index:1200;
}
.home-review-overlay[hidden]{display:none;}
.home-review-card{
  width:min(420px,90vw);
  background:#fff;
  border-radius:24px;
  padding:28px;
  text-align:center;
  box-shadow:0 24px 60px rgba(15,23,42,.25);
}
.home-review-card h3{
  margin:0 0 8px;
  font-size:22px;
  color:#0f172a;
}
.home-review-card p{
  margin:0 0 18px;
  color:#475569;
  line-height:1.5;
}
.home-review-card button{
  border:none;
  background:#2563eb;
  color:#fff;
  padding:10px 28px;
  border-radius:999px;
  font-weight:700;
  cursor:pointer;
}
.home-review-card button:hover{
  background:#1d4ed8;
}

/* ===== 图钉样式 ===== */
.marker-dot {
  width: 16px;
  height: 16px;
  background: #ff7a00;
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 4px rgba(0,0,0,0.25);
  cursor: pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:0;
  font-weight:800;
  transition:transform .2s ease, box-shadow .2s ease;
}
.marker-dot:hover {
  transform: scale(1.2);
}
.marker-dot.focused {
  background: #2563eb;
  border-color: rgba(59,130,246,.65);
  box-shadow: 0 0 16px rgba(59,130,246,.55), 0 0 0 8px rgba(59,130,246,.25);
  transform: scale(1.35);
}
.marker-purpose{
  width:32px;
  height:32px;
  border-radius:12px;
  border:none;
  background:#fff;
  font-size:20px;
  box-shadow:0 8px 18px rgba(15,23,42,.22);
}
.marker-purpose.focused{
  box-shadow:0 0 20px rgba(37,99,235,.45),0 0 0 6px rgba(37,99,235,.18);
  transform:scale(1.05);
}

/* ===== 设置抽屉 ===== */
.settings-overlay{
  position:fixed;
  inset:0;
  background:rgba(15,23,42,.35);
  backdrop-filter:blur(2px);
  opacity:0;
  pointer-events:none;
  transition:opacity .25s ease;
  z-index:998;
}
.settings-overlay.active{
  opacity:1;
  pointer-events:auto;
}
.settings-panel{
  position:fixed;
  top:0;
  right:0;
  width:320px;
  max-width:80vw;
  height:100%;
  background:#fffefe;
  box-shadow:-12px 0 32px rgba(15,23,42,.18);
  transform:translateX(100%);
  transition:transform .28s ease;
  z-index:999;
  display:flex;
  flex-direction:column;
}
.settings-panel.active{
  transform:translateX(0);
}
.settings-panel header{
  padding:20px 22px 16px;
  border-bottom:1px solid #f1f5f9;
  display:flex;
  justify-content:space-between;
  align-items:center;
}
.settings-panel header h2{
  margin:0;
  font-size:18px;
  font-weight:800;
  color:#1e293b;
}
.settings-panel .close-btn{
  border:none;
  background:#f1f5f9;
  border-radius:999px;
  width:32px;
  height:32px;
  font-size:18px;
  cursor:pointer;
  color:#64748b;
}
.settings-panel .close-btn:hover{background:#e2e8f0;color:#0f172a;}
.settings-body{
  flex:1;
  overflow:auto;
  padding:18px 22px 24px;
  display:flex;
  flex-direction:column;
  gap:18px;
}
.settings-section{
  border:1px solid #e2e8f0;
  border-radius:14px;
  padding:16px 18px;
  background:#fff;
  box-shadow:0 10px 24px rgba(15,23,42,.06);
}
.settings-section h3{
  margin:0 0 10px;
  font-size:15px;
  font-weight:800;
  color:#1d3a58;
}
.settings-section ul{
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
  flex-direction:column;
  gap:10px;
}
.settings-section li{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
  font-size:13px;
  color:#334155;
}
.settings-section li a{
  text-decoration:none;
  color:#2563eb;
  font-weight:600;
}
.settings-section li a:hover{text-decoration:underline;}
.settings-section .tag{
  background:#e2f5ff;
  color:#2563eb;
  font-size:11px;
  padding:2px 6px;
  border-radius:999px;
}
.settings-section p{
  margin:0;
  font-size:12px;
  color:#64748b;
  line-height:1.5;
}
.settings-section.logout-section{
  background:#fff5f5;
  border-color:#fee2e2;
}
.settings-section .logout-btn{
  width:100%;
  background:#ef4444;
  color:#fff;
  border:none;
  border-radius:10px;
  padding:12px 16px;
  font-weight:800;
  font-size:14px;
  cursor:pointer;
  box-shadow:0 10px 20px rgba(239,68,68,.25);
  margin-top:10px;
}
.settings-section .logout-btn:hover{
  background:#dc2626;
}

/* 移除 Mapbox 默认气泡 */
.mapboxgl-popup {
  display: none !important;
}

.search-disabled{
  color:#94a3b8;
  cursor:not-allowed;
}
.search-disabled::placeholder{color:#cbd5f5;}
.btn.btn-disabled{
  background:#f5d0a9;
  color:#ffffff;
  cursor:not-allowed;
  opacity:.8;
}
.btn.btn-disabled:hover{background:#f5d0a9;}

.container,
.pe-container,
.settings-info,
.report-container,
.wechat-container{
  max-width:1180px;
  margin:0 auto;
  padding:0 18px;
  width:100%;
  box-sizing:border-box;
}

@media (max-width:1024px){
  .topbar{flex-direction:column;align-items:flex-start}
  .nav-center,.nav-right{width:100%;flex-wrap:wrap;justify-content:flex-start}
  .home-secondary{flex:1 1 100%;justify-content:flex-start}
  .container,.pe-container,.settings-info,.report-container,.wechat-container{padding:0 14px}
  .profile-card{grid-template-columns:1fr}
  .profile-main{grid-template-columns:1fr;gap:16px}
  .profile-cert-column{border-left:none;border-top:1px solid #f2f5fb;padding-left:0;padding-top:16px}
  .ability-grid,.hobby-grid,.connections-list,.wechat-groups{grid-template-columns:1fr}
  .connections-pill{width:100%;text-align:center}
  .pe-grid{grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:12px}
}

@media (max-width:768px){
  body{font-size:14px}
  .nav-left .slogan{font-size:16px}
  /* 非首页：导航在手机端竖排 */
  .topbar:not(.topbar-home) .nav-center{flex-direction:column;gap:8px}
  .topbar:not(.topbar-home) .nav-center>*{flex:1 1 100%;width:100%}
  /* 首页：筛选条保持横向，支持左右滑动 */
  .topbar-home .filter-scroll{overflow-x:auto;overflow-y:hidden;-webkit-overflow-scrolling:touch}
  .topbar-home .nav-center{flex-direction:row;flex-wrap:nowrap;gap:8px;justify-content:flex-start}
  .topbar-home .nav-center>*{flex:0 0 auto;width:auto;min-width:120px}
  .nav-right{justify-content:flex-start}
  .section{padding:14px}
  .kpi{grid-template-columns:repeat(auto-fit,minmax(120px,1fr))}
  .ability-card,.hobby-card,.connection-card{flex-direction:column;align-items:flex-start}
  .connection-meta{text-align:left}
  .avatar-wrap{padding-bottom:30px}
  .avatar-change{bottom:-18px}
  .name{font-size:22px}
  .pe-grid{grid-template-columns:1fr}
  .pe-actions{flex-direction:column;align-items:stretch}
  .pe-actions .pe-btn,.pe-actions .pe-btn--ghost{width:100%}
  .settings-panel{right:0;top:0;width:80%;max-width:360px}
}

@media (max-width:480px){
  .topbar{padding:12px}
  .logo{height:30px}
  .name-line{flex-direction:column;align-items:flex-start}
  .connections-pill{font-size:13px}
  .ability-card-title{font-size:15px}
  .fav-card strong{font-size:14px}
}

/* ===== 设置信息页通用布局 ===== */
.settings-info {
  max-width: 1100px;
  margin: 32px auto 48px;
  padding: 0 16px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.settings-info .info-hero {
  border-radius: 20px;
  padding: 28px 32px;
  box-shadow: 0 20px 45px rgba(15, 23, 42, .12);
  background: linear-gradient(135deg, rgba(59,130,246,.12), rgba(59,130,246,.04));
  border: 1px solid rgba(148, 163, 184, .35);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.settings-info .info-hero h1 {
  margin: 0;
  font-size: 24px;
  font-weight: 800;
  color: #0f172a;
}
.settings-info .info-hero p {
  margin: 0;
  font-size: 14px;
  color: #475569;
  line-height: 1.7;
}
.settings-info .info-hero .hero-tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(59,130,246,.15);
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 700;
}
.settings-info.tracking .info-hero { background: linear-gradient(135deg, rgba(59,130,246,.14), rgba(191,219,254,.12)); border-color:#bfdbfe; }
.settings-info.reviews .info-hero { background: linear-gradient(135deg, rgba(251,191,36,.18), rgba(254,243,199,.12)); border-color:#facc15; }
.settings-info.reports .info-hero { background: linear-gradient(135deg, rgba(248,113,113,.18), rgba(254,215,215,.12)); border-color:#fca5a5; }

.settings-info .info-cards {
  display: grid;
  gap: 20px;
}
.settings-info .info-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 22px 26px;
  box-shadow: 0 18px 30px rgba(15, 23, 42, .08);
  color: #334155;
  line-height: 1.7;
}
.settings-info .info-card h2 {
  margin: 0 0 12px;
  font-size: 18px;
  font-weight: 800;
  color: #1d3a58;
}
.settings-info .info-card ul {
  margin: 0;
  padding-left: 20px;
  font-size: 13px;
  color: #475569;
}
.settings-info .info-card p {
  margin: 6px 0;
}
.settings-info .info-card .btn {
  margin-top: 12px;
  align-self: flex-start;
}
