/**
 * Shiguang 拾光集 - 漂流瓶页面样式
 * 海洋主题 · 扔瓶/捞瓶动画
 */

.bottle-header {
  padding: 120px 0 48px;
}

.bottle-main {
  min-height: 60vh;
}

/* ========== 登录引导 ========== */
.bottle-login-tip {
  padding: 40px 16px 0;
}

.blt-card {
  max-width: 420px;
  margin: 0 auto;
  text-align: center;
  padding: 48px 24px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 8px 32px rgba(100, 120, 160, 0.08);
}

.blt-icon {
  font-size: 52px;
  color: #6C9FFF;
  margin-bottom: 14px;
}

.blt-card p {
  color: #6B7B8D;
  margin-bottom: 20px;
  font-size: 15px;
}

/* ========== 写瓶卡片 ========== */
.bottle-section {
  padding: 20px 0 40px;
}

.bottle-write-card {
  max-width: 640px;
  margin: 0 auto;
  padding: 24px 26px 26px;
  border-radius: 20px;
}

.bw-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.bw-title {
  font-size: 16px;
  font-weight: 600;
  color: #1A1A2E;
  display: flex;
  align-items: center;
  gap: 6px;
}

.bw-title i {
  color: #6C9FFF;
}

.bw-count {
  font-size: 12px;
  color: #9CAAB8;
}

/* 类型切换 */
.bw-type-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}

.bw-type-btn {
  flex: 1;
  padding: 10px 0;
  border-radius: 12px;
  border: 1px solid rgba(108, 159, 255, 0.16);
  background: rgba(108, 159, 255, 0.04);
  color: #5B6B7D;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  -webkit-tap-highlight-color: transparent;
}

.bw-type-btn:hover {
  border-color: rgba(108, 159, 255, 0.4);
  color: #6C9FFF;
}

.bw-type-btn.active {
  background: linear-gradient(135deg, #6C9FFF, #4A7FE0);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(108, 159, 255, 0.3);
}

/* 输入区 */
.bottle-textarea {
  width: 100%;
  border: 1px solid rgba(108, 159, 255, 0.18);
  border-radius: 14px;
  padding: 14px 16px;
  font-size: 15px;
  line-height: 1.7;
  color: #2A2C3E;
  background: rgba(245, 247, 251, 0.6);
  resize: vertical;
  min-height: 110px;
  box-sizing: border-box;
  transition: border-color 0.25s ease;
  font-family: inherit;
}

.bottle-textarea:focus {
  outline: none;
  border-color: #6C9FFF;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(108, 159, 255, 0.1);
}

.bottle-textarea-sm {
  min-height: 64px;
  margin-top: 12px;
  font-size: 14px;
}

.bw-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
}

.bw-tool-btn {
  border: none;
  background: rgba(108, 159, 255, 0.08);
  color: #6C9FFF;
  font-size: 13px;
  padding: 6px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.bw-tool-btn:hover {
  background: rgba(108, 159, 255, 0.16);
}

.bw-charcount {
  font-size: 12px;
  color: #9CAAB8;
}

/* 表情面板 */
.emoji-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 12px;
  margin-top: 10px;
  background: rgba(245, 247, 251, 0.7);
  border-radius: 12px;
  border: 1px solid rgba(108, 159, 255, 0.12);
  max-height: 160px;
  overflow-y: auto;
}

.emoji-panel span {
  font-size: 22px;
  cursor: pointer;
  padding: 4px;
  border-radius: 8px;
  transition: background 0.15s ease;
  line-height: 1;
}

.emoji-panel span:hover {
  background: rgba(108, 159, 255, 0.14);
}

/* 图片上传 */
.bw-image-upload {
  border: 2px dashed rgba(108, 159, 255, 0.28);
  border-radius: 14px;
  padding: 36px 16px;
  text-align: center;
  color: #7C8CA0;
  cursor: pointer;
  transition: all 0.25s ease;
  background: rgba(108, 159, 255, 0.03);
}

.bw-image-upload:hover {
  border-color: #6C9FFF;
  background: rgba(108, 159, 255, 0.07);
  color: #6C9FFF;
}

.bw-image-upload i {
  font-size: 40px;
  display: block;
  margin-bottom: 8px;
}

.bw-image-upload span {
  font-size: 13px;
}

.bw-image-preview {
  position: relative;
  display: inline-block;
  margin-top: 12px;
  border-radius: 14px;
  overflow: hidden;
  max-width: 100%;
}

.bw-image-preview img {
  display: block;
  max-width: 100%;
  max-height: 260px;
  border-radius: 14px;
  border: 1px solid rgba(108, 159, 255, 0.2);
}

.bw-remove-img {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 语音录制 */
.bw-voice-box {
  text-align: center;
  padding: 26px 16px;
  background: rgba(108, 159, 255, 0.04);
  border-radius: 14px;
  border: 1px solid rgba(108, 159, 255, 0.14);
}

.voice-wave {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 36px;
  margin-bottom: 12px;
  opacity: 0.35;
}

.voice-wave span {
  width: 4px;
  height: 14px;
  border-radius: 4px;
  background: #6C9FFF;
  animation: voiceWave 1s ease-in-out infinite;
}

.voice-wave span:nth-child(2) { animation-delay: 0.15s; }
.voice-wave span:nth-child(3) { animation-delay: 0.3s; }
.voice-wave span:nth-child(4) { animation-delay: 0.45s; }
.voice-wave span:nth-child(5) { animation-delay: 0.6s; }

.voice-wave.recording {
  opacity: 1;
}

.voice-wave.recording span {
  animation-duration: 0.6s;
}

@keyframes voiceWave {
  0%, 100% { height: 14px; }
  50% { height: 34px; }
}

.bw-voice-btn {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, #6C9FFF, #4A7FE0);
  color: #fff;
  font-size: 26px;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(108, 159, 255, 0.4);
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.bw-voice-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(108, 159, 255, 0.5);
}

.bw-voice-btn.recording {
  background: linear-gradient(135deg, #FF7A85, #F45B69);
  box-shadow: 0 6px 20px rgba(244, 91, 105, 0.5);
  animation: pulseRing 1.2s ease-in-out infinite;
}

@keyframes pulseRing {
  0% { box-shadow: 0 0 0 0 rgba(244, 91, 105, 0.45); }
  70% { box-shadow: 0 0 0 14px rgba(244, 91, 105, 0); }
  100% { box-shadow: 0 0 0 0 rgba(244, 91, 105, 0); }
}

.bw-voice-tip {
  margin-top: 12px;
  font-size: 13px;
  color: #7C8CA0;
}

.bw-voice-timer {
  margin-top: 6px;
  font-size: 20px;
  font-weight: 600;
  color: #F45B69;
  font-variant-numeric: tabular-nums;
}

.bw-voice-preview {
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  position: relative;
}

.bw-voice-preview audio {
  max-width: 240px;
}

/* 扔瓶按钮 */
.bw-throw-btn {
  width: 100%;
  margin-top: 18px;
  padding: 14px 0;
  border: none;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, #6C9FFF, #4A7FE0);
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(108, 159, 255, 0.35);
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.bw-throw-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(108, 159, 255, 0.45);
}

.bw-throw-btn:disabled {
  opacity: 0.6;
  transform: none;
  cursor: not-allowed;
}

.bw-throw-btn.throwing {
  animation: throwShake 0.6s ease-in-out;
}

@keyframes throwShake {
  0% { transform: translateX(0); }
  25% { transform: translateX(-6px) rotate(-2deg); }
  50% { transform: translateX(6px) rotate(2deg); }
  75% { transform: translateX(-4px); }
  100% { transform: translateX(0); }
}

/* ========== 捞瓶海洋区 ========== */
.sea-section {
  padding-top: 8px;
}

.sea-scene {
  position: relative;
  max-width: 640px;
  margin: 0 auto;
  border-radius: 24px;
  overflow: hidden;
  min-height: 380px;
  background: linear-gradient(180deg,
    rgba(120, 180, 255, 0.16) 0%,
    rgba(90, 150, 235, 0.12) 45%,
    rgba(60, 120, 200, 0.2) 100%);
  border: 1px solid rgba(90, 150, 235, 0.2);
  box-shadow: 0 12px 40px rgba(80, 140, 220, 0.12);
}

/* 波浪 */
.sea-waves {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 130px;
  pointer-events: none;
}

.sea-wave {
  position: absolute;
  left: -20%;
  width: 140%;
  height: 60px;
  border-radius: 50% 50% 0 0;
  background: rgba(90, 150, 235, 0.18);
  animation: waveMove 7s linear infinite;
}

.sea-wave-1 { bottom: 24px; opacity: 0.7; animation-duration: 9s; }
.sea-wave-2 { bottom: 8px; opacity: 0.5; animation-duration: 6s; }
.sea-wave-3 { bottom: 40px; opacity: 0.35; animation-duration: 11s; }

@keyframes waveMove {
  0% { transform: translateX(0); }
  100% { transform: translateX(-25%); }
}

/* 捞瓶按钮 */
.sea-fetch-btn-wrap {
  position: absolute;
  top: 34px;
  left: 0;
  right: 0;
  text-align: center;
  z-index: 5;
}

.sea-fetch-btn {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 10px 30px;
  -webkit-tap-highlight-color: transparent;
}

.sea-fetch-icon {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background: linear-gradient(135deg, #5FA8FF, #3D7FE0);
  color: #fff;
  font-size: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(63, 127, 224, 0.4), inset 0 -3px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.sea-fetch-btn:hover .sea-fetch-icon {
  transform: translateY(-4px) scale(1.04);
  box-shadow: 0 12px 30px rgba(63, 127, 224, 0.5), inset 0 -3px 8px rgba(0, 0, 0, 0.1);
}

.sea-fetch-btn:disabled .sea-fetch-icon {
  animation: bob 1.4s ease-in-out infinite;
  opacity: 0.85;
}

.sea-fetch-text {
  font-size: 15px;
  font-weight: 600;
  color: #2B4E8C;
  text-shadow: 0 1px 6px rgba(255, 255, 255, 0.6);
}

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* 捞瓶动画中的瓶子 */
.sea-bottle-stage {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 60px;
  display: flex;
  justify-content: center;
  z-index: 4;
  pointer-events: none;
}

.sea-bottle-fig {
  position: relative;
  width: 74px;
  height: 110px;
  animation: bottleRise 1s ease-out forwards;
}

@keyframes bottleRise {
  0% { transform: translateY(80px) scale(0.7) rotate(-12deg); opacity: 0; }
  60% { transform: translateY(-8px) scale(1.05) rotate(4deg); opacity: 1; }
  100% { transform: translateY(0) scale(1) rotate(0); opacity: 1; }
}

.sea-bottle-fig.open .bottle-cap {
  transform: translate(-2px, -16px) rotate(-30deg);
}

.bottle-cap {
  position: absolute;
  top: 2px;
  left: 24px;
  width: 26px;
  height: 14px;
  border-radius: 4px 4px 2px 2px;
  background: linear-gradient(135deg, #E8A06C, #C97B45);
  transition: transform 0.4s ease;
  z-index: 2;
}

.bottle-body {
  position: absolute;
  top: 12px;
  left: 14px;
  width: 46px;
  height: 88px;
  border-radius: 10px 10px 18px 18px;
  background: linear-gradient(160deg,
    rgba(120, 200, 255, 0.55) 0%,
    rgba(70, 150, 230, 0.5) 55%,
    rgba(50, 120, 200, 0.55) 100%);
  border: 2px solid rgba(255, 255, 255, 0.45);
  box-shadow: 0 6px 16px rgba(40, 100, 180, 0.35), inset 0 4px 10px rgba(255, 255, 255, 0.35);
  position: relative;
  overflow: hidden;
}

.bottle-body::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 8px;
  width: 12px;
  height: 30px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.4);
  transform: rotate(-18deg);
}

.bottle-body::after {
  content: '';
  position: absolute;
  top: 44px;
  left: 12px;
  width: 20px;
  height: 22px;
  border-radius: 4px;
  background: rgba(255, 244, 220, 0.85);
  border: 1px solid rgba(160, 120, 80, 0.35);
}

/* 捞到的瓶子内容卡 */
.sea-catch-card {
  position: relative;
  z-index: 6;
  margin: 0 16px 20px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 10px 34px rgba(40, 90, 170, 0.18);
  padding: 18px 20px;
  animation: catchIn 0.5s ease-out;
}

@keyframes catchIn {
  0% { opacity: 0; transform: translateY(24px) scale(0.96); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

.catch-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 13px;
  font-weight: 500;
  color: #5B6B7D;
}

.catch-head i {
  color: #6C9FFF;
}

.catch-close {
  border: none;
  background: rgba(100, 120, 160, 0.1);
  color: #7C8CA0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.catch-content {
  font-size: 16px;
  line-height: 1.8;
  color: #2A2C3E;
  white-space: pre-wrap;
  word-break: break-word;
}

.catch-content img {
  max-width: 100%;
  max-height: 260px;
  border-radius: 12px;
  display: block;
  margin: 8px 0;
}

.catch-content audio {
  width: 100%;
  margin: 8px 0;
  height: 40px;
}

.catch-content .catch-voice-dur {
  font-size: 12px;
  color: #9CAAB8;
}

.catch-reply {
  margin-top: 14px;
  border-top: 1px dashed rgba(108, 159, 255, 0.25);
  padding-top: 12px;
}

.catch-reply-actions {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

/* ========== 我的瓶子 ========== */
.mine-card {
  max-width: 640px;
  margin: 0 auto;
  padding: 20px 22px;
  border-radius: 20px;
}

.mine-head {
  margin-bottom: 12px;
}

.mine-title {
  font-size: 16px;
  font-weight: 600;
  color: #1A1A2E;
  display: flex;
  align-items: center;
  gap: 6px;
}

.mine-title i {
  color: #6C9FFF;
}

.mine-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}

.mine-tab {
  padding: 7px 18px;
  border-radius: 999px;
  border: 1px solid rgba(108, 159, 255, 0.16);
  background: rgba(108, 159, 255, 0.04);
  color: #5B6B7D;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.mine-tab.active {
  background: linear-gradient(135deg, #6C9FFF, #4A7FE0);
  color: #fff;
  border-color: transparent;
}

.mine-item {
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(245, 247, 251, 0.7);
  border: 1px solid rgba(108, 159, 255, 0.1);
  margin-bottom: 10px;
}

.mine-item-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 12px;
  color: #9CAAB8;
}

.mine-item-badge {
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 500;
}

.mine-item-badge.pending { background: rgba(255, 184, 122, 0.15); color: #D98A2B; }
.mine-item-badge.active { background: rgba(108, 159, 255, 0.12); color: #4A7FE0; }
.mine-item-badge.hidden { background: rgba(100, 120, 160, 0.12); color: #7C8CA0; }

.mine-item-content {
  font-size: 14px;
  line-height: 1.7;
  color: #3A3D52;
  white-space: pre-wrap;
  word-break: break-word;
}

.mine-item-content img {
  max-width: 100%;
  max-height: 180px;
  border-radius: 10px;
  margin: 6px 0;
}

.mine-item-content audio {
  width: 100%;
  height: 36px;
  margin: 6px 0;
}

.mine-empty {
  text-align: center;
  padding: 40px 0;
  color: #9CAAB8;
  font-size: 14px;
}

/* ========== 轻提示 ========== */
.bottle-toast {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(26, 26, 46, 0.88);
  color: #fff;
  padding: 12px 22px;
  border-radius: 12px;
  font-size: 14px;
  z-index: 9999;
  max-width: 80vw;
  text-align: center;
  animation: toastIn 0.25s ease-out;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

@keyframes toastIn {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0.9); }
  100% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

/* ========== 响应式 ========== */
@media (max-width: 768px) {
  .bottle-header {
    padding: 100px 0 36px;
  }

  .bottle-write-card,
  .mine-card {
    padding: 18px 16px;
  }

  .bw-type-btn {
    font-size: 13px;
    padding: 9px 0;
  }

  .sea-scene {
    min-height: 340px;
  }

  .sea-fetch-icon {
    width: 68px;
    height: 68px;
    font-size: 30px;
  }
}

/* 收到的回复：回复者头像+昵称 */
.mine-replyer {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  margin-bottom: 8px;
  transition: opacity 0.2s ease;
}
.mine-replyer:hover { opacity: 0.8; }
.mine-replyer-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(108, 159, 255, 0.25);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.mine-replyer-default {
  background: linear-gradient(135deg, #6C9FFF, #4A7FE0);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
}
.mine-replyer-name {
  font-size: 13px;
  font-weight: 500;
  color: #4A7FE0;
}

/* 拒绝原因 */
.mine-reject-reason {
  margin-top: 8px;
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(255, 90, 95, 0.06);
  border: 1px solid rgba(255, 90, 95, 0.16);
  color: #E0555B;
  font-size: 12px;
  line-height: 1.6;
  display: flex;
  align-items: flex-start;
  gap: 5px;
}
.mine-reject-reason i { margin-top: 2px; }

/* ========== 图形验证码弹窗 ========== */
.bottle-captcha-mask {
  position: fixed;
  inset: 0;
  background: rgba(26, 26, 46, 0.45);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: toastIn 0.2s ease-out;
}
.bottle-captcha-box {
  width: 300px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.22);
  padding: 22px 22px 18px;
  text-align: center;
}
.bc-title {
  font-size: 16px;
  font-weight: 600;
  color: #1A1A2E;
  margin-bottom: 14px;
}
.bc-img {
  width: 200px;
  height: 60px;
  border-radius: 10px;
  border: 1px solid rgba(108, 159, 255, 0.25);
  cursor: pointer;
  object-fit: cover;
  background: #f0f4fb;
}
.bc-refresh {
  margin-top: 6px;
  font-size: 12px;
  color: #6C9FFF;
  cursor: pointer;
  user-select: none;
}
.bc-refresh:hover { text-decoration: underline; }
.bc-input {
  width: 100%;
  box-sizing: border-box;
  margin-top: 12px;
  padding: 10px 14px;
  border: 1px solid rgba(108, 159, 255, 0.25);
  border-radius: 10px;
  font-size: 15px;
  text-align: center;
  letter-spacing: 4px;
  outline: none;
  transition: border-color 0.2s ease;
}
.bc-input:focus { border-color: #6C9FFF; }
.bc-btns {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}
.bc-btns button {
  flex: 1;
  padding: 9px 0;
  border-radius: 10px;
  border: none;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.bc-cancel { background: rgba(100, 120, 160, 0.1); color: #5B6B7D; }
.bc-cancel:hover { background: rgba(100, 120, 160, 0.18); }
.bc-ok {
  background: linear-gradient(135deg, #6C9FFF, #4A7FE0);
  color: #fff;
  font-weight: 500;
}
.bc-ok:hover { opacity: 0.9; }

/* 审核中占位提示 */
.mine-pending-tip {
  color: #9CAAB8;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 0;
}
