/* nav.css - 导航页样式 (与主页一致的深蓝黑 + 青色主题) */

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
a, button, a:focus, button:focus { outline: none; -webkit-touch-callout: none; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Segoe UI', Roboto, sans-serif;
  background: radial-gradient(ellipse at 50% 30%, #16263c 0%, #0a1420 60%, #060d16 100%);
  color: #e0e0e0;
  min-height: 100vh;
}

.container {
  max-width: 600px;
  margin: 0 auto;
  padding: 16px;
  padding-bottom: 100px;
}

.header {
  margin-bottom: 16px;
  text-align: center;
  position: relative;
}

/* 返回聊天按钮(商家路线显示; 2026-08-15) */
.nav-back-chat {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: 1px solid rgba(0,212,170,.5);
  color: #00d4aa;
  font-size: 12px;
  padding: 6px 12px;
  border-radius: 16px;
  cursor: pointer;
  font-family: inherit;
}
.nav-back-chat:hover { background: rgba(0,212,170,.15); }

/* 最后一步到达提示 + 返回聊天(2026-08-15) */
.arrived-bar {
  text-align: center;
  margin: 12px 0 4px;
}
.arrived-text {
  color: #00d4aa;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
}
.arrived-btn {
  background: rgba(0,212,170,.2);
  color: #00d4aa;
  border: 1px solid rgba(0,212,170,.5);
  padding: 10px 26px;
  border-radius: 24px;
  font-size: 14px;
  cursor: pointer;
  font-family: inherit;
}
.arrived-btn:hover { background: rgba(0,212,170,.35); }

.header h1 {
  font-size: 22px;
  margin: 0 0 8px;
  color: #00d4aa;
  font-weight: 700;
  letter-spacing: 1px;
  text-shadow: 0 0 20px rgba(0,212,170,.35);
}

.sub {
  font-size: 14px;
  color: #889;
  margin-bottom: 12px;
}

/* 照片区域: 宽度与说明文字框同宽(container 满宽), 高度加长 */
.photo-frame {
  position: relative;
  width: 100%;
  max-width: 600px;
  height: 582px;
  margin: 0 0 16px;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(10,20,32,.9);
  border: 1px solid rgba(0,212,170,.25);
  display: flex;
  align-items: center;
  justify-content: center;
}

.photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}

.photo-placeholder {
  text-align: center;
  color: #00d4aa;
  opacity: .6;
  font-size: 13px;
}

/* 照片框左上角: 返回主页 */
.photo-back {
  position: absolute;
  top: 8px;
  left: 8px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(0,212,170,.5);
  background: rgba(10,20,32,.8);
  color: #00d4aa;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: all .2s;
  text-decoration: none;
  line-height: 1;
}
.photo-back:hover { background: rgba(0,212,170,.3); }

/* 照片框左下角: 下载 + 收藏 (从左到右) */
.photo-btm-left {
  position: absolute;
  left: 8px;
  bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 10;
}
.photo-dl, .photo-fav, .photo-share {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(0,212,170,.5);
  background: rgba(10,20,32,.8);
  color: #00d4aa;
  font-size: 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .2s;
  line-height: 1;
}
.photo-dl:hover, .photo-fav:hover, .photo-share:hover { background: rgba(0,212,170,.3); }

/* 照片框底部居中: 路线指向标识(圆形白色底纹, 比收藏图标34px大30%≈44px) */
.photo-direction {
  position: absolute;
  left: 50%;
  bottom: 8px;
  transform: translateX(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,.92);
  border: 1.2px solid rgba(0,212,170,.6);
  color: #0a1420;
  font-size: 22px;
  font-weight: 910;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  pointer-events: none;
}

/* 照片框右下角工具: 扩大按钮 + 创建者头像 */
.photo-tools {
  position: absolute;
  right: 8px;
  bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 10;
}
.photo-zoom {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(0,212,170,.5);
  background: rgba(10,20,32,.8);
  color: #00d4aa;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .2s;
}
.photo-zoom:hover { background: rgba(0,212,170,.3); }
.photo-creator {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid #00d4aa;
  background: rgba(10,20,32,.8);
  display: flex;
  align-items: center;
  justify-content: center;
}
.creator-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.creator-avatar-fallback {
  color: #00d4aa;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

/* 接驳点确认区 (首图下方, 进入导航前询问) */
.pickup-confirm {
  margin: 0 0 16px;
  padding: 16px;
  background: rgba(16,28,42,.85);
  border: 1px solid rgba(0,212,170,.35);
  border-radius: 12px;
  text-align: center;
}
.pickup-confirm .pc-title {
  color: #00d4aa;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 8px;
}
.pickup-confirm .pc-desc {
  color: #889;
  font-size: 13px;
  margin-bottom: 8px;
}
.pickup-confirm .pc-value {
  display: inline-block;
  color: #fff;
  background: rgba(0,212,170,.12);
  border: 1px solid rgba(0,212,170,.4);
  padding: 6px 14px;
  border-radius: 16px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 12px;
  word-break: break-all;
}
.pickup-confirm .pc-btns {
  display: flex;
  gap: 10px;
}
.pc-btn {
  flex: 1;
  padding: 12px 8px;
  border-radius: 20px;
  border: none;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all .2s;
  line-height: 1.3;
}
.pc-btn.primary {
  background: linear-gradient(135deg,#00d4aa,#00a884);
  color: #0f1923;
  box-shadow: 0 4px 16px rgba(0,212,170,.35);
}
.pc-btn.secondary {
  background: rgba(42,58,74,.6);
  border: 1px solid rgba(0,212,170,.4);
  color: #a8e1fe;
}
.pc-btn.secondary:hover { background: rgba(42,58,74,.9); }

/* 导航控制区 */
.controls {
  margin-bottom: 20px;
}

.hint {
  font-size: 18px;
  margin-bottom: 16px;
  min-height: 60px;
  padding: 12px;
  background: rgba(16,28,42,.7);
  border-radius: 8px;
  border: 1px solid rgba(0,212,170,.2);
}

.btns {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 2px;
  width: 100%;
}

.btns-mid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  margin: 0 10px;
}
.step-info {
  color: #00d4aa;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

.voice-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(0,212,170,.2);
  border: 1px solid rgba(0,212,170,.5);
  color: #00d4aa;
  font-size: 17px;
  cursor: pointer;
  transition: all .2s;
  flex-shrink: 0;
}
.voice-btn:hover { background: rgba(0,212,170,.35); }

.btn {
  flex: 0 0 auto;
  width: 22%;
  background: rgba(0,212,170,.2);
  color: #00d4aa;
  border: 1px solid rgba(0,212,170,.5);
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
}
.btn:hover { background: rgba(0,212,170,.35); }

.btn:disabled {
  opacity: .4;
  cursor: not-allowed;
}

/* 反馈区 */
.fb-wrap {
  margin-top: 4px;
  padding: 20px;
  background: rgba(16,28,42,.7);
  border-radius: 12px;
  border: 1px solid rgba(0,212,170,.2);
}

.fb-title {
  font-size: 18px;
  margin-bottom: 16px;
  color: #00d4aa;
  font-weight: 700;
}

.fb-types {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.fb-type {
  flex: 1;
  padding: 8px;
  border: 1px solid rgba(0,212,170,.3);
  background: transparent;
  color: #e0e0e0;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  transition: all .2s;
}

.fb-type.on {
  background: #00d4aa;
  color: #0f1923;
  font-weight: 600;
}

.fb-input {
  width: 100%;
  min-height: 80px;
  padding: 12px;
  background: rgba(10,20,32,.9);
  border: 1px solid rgba(0,212,170,.3);
  border-radius: 8px;
  color: #e0e0e0;
  font-size: 14px;
  resize: vertical;
  margin-bottom: 12px;
}
.fb-input:focus { outline: none; border-color: #00d4aa; }

.fb-send {
  width: 100%;
  background: linear-gradient(135deg,#00d4aa,#00a884);
  color: #0f1923;
  border: none;
  border-radius: 8px;
  padding: 12px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}

.fb-msg {
  margin-top: 10px;
  text-align: center;
  font-size: 14px;
}

/* 语音按钮 */
/* 接驳点提示行(步骤切换时) */
.pickup-line {
  margin-top: 8px;
  padding: 8px 12px;
  background: rgba(16,28,42,.7);
  border-radius: 6px;
  border: 1px solid rgba(0,212,170,.2);
  font-size: 14px;
}

.pickup-label {
  color: #00d4aa;
  font-weight: 600;
}

/* 移动端适配 */
@media (max-width: 600px) {
  .header h1 { font-size: 20px; }
  .photo-frame { height: 499px; }
  .pc-btn { font-size: 12px; }
  .btns { gap: 8px; }
  .step-info { font-size: 12px; }
  .voice-btn { width: 34px; height: 34px; font-size: 15px; }
  .btn { padding: 4px 8px; font-size: 14px; width: 20%; }
  /* V0.3.12: 方向指示移到下载(导出)按钮右侧, 避免与按钮重叠
     左侧按钮组 4×34px + 3×8px gap + 8px 边距 ≈ 176px */
  .photo-direction { left: 176px; transform: none; }
}
/* 极窄屏(≤340px): 隐藏扩大按钮腾空间, 方向指示不与右侧工具重叠 */
@media (max-width: 340px) {
  .photo-zoom { display: none; }
}
