/* fishing.css — 钓鱼模式样式 */

/* 钓鱼模式时禁止页面滚动，避免按钮和背景错位 */
body.fishing-active {
  overflow: hidden;
  height: 100vh;
}

.fishing-modal {
  padding: 0;
  background: transparent;
}

.fishing-modal .fishing-scene,
.fishing-modal .reel-scene {
  width: 100%;
  height: 100%;
  position: relative;
  background: transparent;
  overflow: hidden;
}

/* 钓鱼时隐藏海面漂浮的瓶子和原底部操作栏，避免遮挡 */
body.fishing-active #bottlesLayer {
  display: none;
}
body.fishing-active .actions {
  display: none;
}

/* 返回按钮 */
.fishing-back {
  position: absolute;
  bottom: 96px;
  right: 18px;
  top: auto;
  z-index: 6;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 243, 205, 0.5);
  background: rgba(255, 249, 228, 0.8);
  color: var(--ink);
  font-size: 14px;
  letter-spacing: 1px;
}

/* ===== 主界面商城/仓库/海螺 ===== */
.main-side-btns {
  position: absolute;
  top: 25px;
  left: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 10;
}

.side-btn {
  padding: 6px 14px;
  font-size: 13px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  cursor: pointer;
  backdrop-filter: blur(4px);
  white-space: nowrap;
  transition: background 0.15s;
}

.side-btn:hover {
  background: rgba(255, 255, 255, 0.35);
}

.main-shells {
  position: absolute;
  top: 15px;
  right: 14px;
  padding: 5px 12px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  backdrop-filter: blur(4px);
  z-index: 10;
}

/* 钓鱼模式时隐藏主界面专属元素 */
body.fishing-active .main-ui-only {
  display: none !important;
}

.fishing-side-btns {
  position: absolute;
  top: 120px;
  left: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 15;
}

.fishing-side-btn {
  padding: 6px 14px;
  font-size: 13px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  cursor: pointer;
  backdrop-filter: blur(4px);
  white-space: nowrap;
  transition: background 0.15s;
}

.fishing-side-btn:hover {
  background: rgba(255, 255, 255, 0.35);
}

.fishing-shells {
  position: absolute;
  top: 110px;
  right: 14px;
  padding: 5px 12px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  backdrop-filter: blur(4px);
  z-index: 15;
}

.fishing-tip {
  position: absolute;
  top: 18%;
  left: 50%;
  transform: translateX(-50%);
  color: #f6f0d8;
  font-size: 16px;
  letter-spacing: 2px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
  z-index: 5;
}

/* 鱼竿：竖直、居中、手柄在底部 */
.fishing-rod {
  position: absolute;
  left: 50%;
  bottom: 90px;
  width: min(30vh, 220px);
  transform: translateX(-50%) rotate(-14deg);
  transform-origin: 50% 100%;
  z-index: 5;
}

.fishing-rod img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 4px 6px rgba(20, 40, 50, 0.35));
}

/* 竿尖锚点：定位到图片竿尖位置，跟着容器一起旋转 */
.rod-tip-anchor {
  position: absolute;
  top: 1%;
  left: 68%;
  width: 4px;
  height: 4px;
  pointer-events: none;
}

.fishing-rod.casting { animation: rodCast 0.8s ease-out; }
.fishing-rod.biting { animation: rodShake 0.32s ease-in-out infinite; }
.fishing-rod.sunk { animation: rodSunk 0.5s ease-in-out infinite; }

@keyframes rodCast {
  0% { transform: translateX(-50%) rotate(-30deg); }
  40% { transform: translateX(-50%) rotate(-14deg); }
  100% { transform: translateX(-50%) rotate(-14deg); }
}

@keyframes rodShake {
  0%, 100% { transform: translateX(-50%) rotate(-14deg); }
  25% { transform: translateX(-50%) rotate(-16.5deg); }
  75% { transform: translateX(-50%) rotate(-11.5deg); }
}

@keyframes rodSunk {
  0%, 100% { transform: translateX(-50%) rotate(-9deg); }
  50% { transform: translateX(-50%) rotate(-6.5deg); }
}

/* 鱼漂 */
.fishing-float {
  position: absolute;
  left: 50%;
  top: 56%;
  transform: translateX(-50%);
  z-index: 4;
  width: 28px;
}

.fishing-float img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.3));
}

.float-body {
  display: block;
  width: 16px;
  height: 16px;
  margin: 0 auto;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff, #f2c96a 55%, #d84b3e 56%, #a83226);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.fishing-float.floating { animation: floatBob 2.6s ease-in-out infinite; }
.fishing-float.bite-down { transform: translate(-50%, var(--dip-amp, 12px)); transition: transform 0.22s ease; }
.fishing-float.bite-up { transform: translate(-50%, -4px); transition: transform 0.16s ease; }
.fishing-float.sunk { transform: translate(-50%, 70px); opacity: 0.55; transition: transform 0.3s ease, opacity 0.3s ease; }

@keyframes floatBob {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, -7px); }
}

/* 水花效果 */
.splash-effect {
  position: absolute;
  width: 60px;
  height: 60px;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 6;
}
.splash-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 10px;
  border: 2px solid rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: splashRing 0.7s ease-out forwards;
}
@keyframes splashRing {
  0% { width: 8px; height: 8px; opacity: 1; }
  100% { width: 56px; height: 20px; opacity: 0; }
}
.splash-drop {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 5px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  animation: splashDrop 0.6s ease-out forwards;
}
.splash-drop.d1 { --dx: -18px; --dy: -22px; animation-delay: 0s; }
.splash-drop.d2 { --dx: 16px; --dy: -26px; animation-delay: 0.05s; }
.splash-drop.d3 { --dx: -10px; --dy: -30px; animation-delay: 0.08s; }
.splash-drop.d4 { --dx: 12px; --dy: -18px; animation-delay: 0.12s; }
@keyframes splashDrop {
  0% { transform: translate(-50%, -50%) translate(0, 0); opacity: 1; }
  100% { transform: translate(-50%, -50%) translate(var(--dx), var(--dy)); opacity: 0; }
}

/* 动态鱼线 SVG：覆盖整个钓鱼场景，不拦截鼠标 */
.fishing-line-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 3;
}

/* 瞄准标记：跟随鼠标的圆圈 */
.fishing-aim {
  position: absolute;
  width: 30px;
  height: 30px;
  border: 2px solid rgba(255, 70, 70, 0.9);
  border-radius: 50%;
  pointer-events: none;
  z-index: 5;
  transform: translate(-50%, -50%);
  display: none;
  box-shadow: 0 0 10px rgba(255, 70, 70, 0.6);
}

.fishing-aim::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 5px;
  background: #ff4646;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

/* 底部操作按钮 */
.fishing-controls {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 22px;
  display: flex;
  justify-content: center;
  gap: 12px;
  padding: 0 16px;
  z-index: 6;
}

.fishing-controls .btn {
  flex: 1 1 0;
  max-width: 160px;
  min-height: 48px;
}

/* 鱼饵仓库 */
.bait-paper {
  width: min(92vw, 440px);
  max-height: 85vh;
  display: flex;
  flex-direction: column;
}

.bait-list {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  margin: 4px 0 2px;
}

.bait-actions {
  justify-content: flex-end;
  margin-top: 6px;
}

/* 拉杆小游戏 */
.reel-scene {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  padding: 20px;
}

.reel-timer {
  color: #fff;
  font-size: 36px;
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.reel-hint {
  margin: 0;
  color: #f6f0d8;
  font-size: 15px;
  letter-spacing: 2px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.reel-bar {
  position: relative;
  width: min(68vw, 400px);
  height: 44px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 0 14px rgba(0, 0, 0, 0.35);
}

.reel-target {
  position: absolute;
  top: 50%;
  width: 48px;
  height: 34px;
  transform: translate(-50%, -50%);
  background: rgba(255, 255, 255, 0.92);
  border-radius: 4px;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.7);
}

.reel-marker {
  position: absolute;
  top: -9px;
  bottom: -9px;
  left: 0;
  width: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.6);
}

.reel-marker.moving {
  animation: reelMarkerMove 3s linear infinite;
}

@keyframes reelMarkerMove {
  0% { left: 0%; }
  50% { left: 100%; }
  100% { left: 0%; }
}

/* 传说鱼最终阶段：目标变成圆点 */
.reel-target.is-dot {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.9);
}

/* 阶段提示文字 */
.reel-stage-tip {
  color: #ffd76a;
  font-size: 14px;
  font-weight: 600;
  margin-top: 8px;
  min-height: 20px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.reel-stop {
  min-width: 150px;
}

@media (max-width: 640px) {
  .fishing-rod { bottom: 80px; width: min(32vh, 200px); }
  .fishing-float { top: 56%; }
  .fishing-controls { gap: 8px; bottom: 16px; }
  .fishing-controls .btn { font-size: 14px; }
}
/* ===== 鱼饵仓库网格（5×4 共20格） ===== */
.bait-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}

.bait-cell {
  position: relative;
  aspect-ratio: 1 / 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  border-radius: 8px;
  border: 1.5px solid #d8c392;
  background: rgba(255, 250, 230, 0.5);
  cursor: grab;
  user-select: none;
  transition: transform 0.1s, box-shadow 0.1s, background 0.1s;
}

.bait-cell:hover:not(.is-empty) {
  transform: translateY(-2px);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
}

.bait-cell .bait-icon {
  font-size: 22px;
  line-height: 1;
}

.bait-cell .bait-name {
  font-size: 11px;
  color: var(--ink);
  line-height: 1;
}

.bait-cell .bait-count {
  position: absolute;
  bottom: 2px;
  right: 4px;
  font-size: 10px;
  color: #6b5a3a;
  font-weight: 600;
}

.bait-cell.is-equipped {
  border-color: #b8862f;
  background: rgba(240, 221, 170, 0.75);
  box-shadow: 0 0 0 2px rgba(184, 134, 47, 0.25);
}

.bait-cell.is-equipped::before {
  content: '✓';
  position: absolute;
  top: 1px;
  left: 4px;
  font-size: 12px;
  color: #b8862f;
  font-weight: 700;
}

.bait-cell.is-selected {
  outline: 2.5px solid #d4943a;
  outline-offset: 1px;
}

.bait-cell.is-empty {
  border: 1.5px dashed rgba(216, 195, 146, 0.45);
  background: rgba(255, 250, 230, 0.12);
  cursor: default;
}

.bait-cell.dragging {
  opacity: 0.3;
}

.bait-cell.drag-over {
  border-color: #d4943a;
  background: rgba(212, 148, 58, 0.18);
}

/* 选中鱼饵后的操作栏 */
.bait-ops {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  margin: 6px 0 2px;
  min-height: 38px;
}

.bait-selected-name {
  font-size: 14px;
  color: var(--ink);
  margin-right: 4px;
  font-weight: 600;
}

/* ===== 钓到鱼弹出卡片 ===== */
.fish-catch-card {
  position: relative;
  width: min(80vw, 280px);
  padding: 28px 24px 18px;
  border-radius: 16px;
  background: linear-gradient(180deg, #fff8e7 0%, #f5e6c4 100%);
  border: 2px solid #d4a843;
  box-shadow: 0 0 30px rgba(212, 168, 67, 0.5), 0 8px 24px rgba(0, 0, 0, 0.3);
  text-align: center;
  animation: fishCardPop 0.55s cubic-bezier(0.34, 1.56, 0.64, 1);
  overflow: hidden;
}

@keyframes fishCardPop {
  0% { transform: scale(0) rotate(-12deg); opacity: 0; }
  55% { transform: scale(1.12) rotate(4deg); }
  100% { transform: scale(1) rotate(0); opacity: 1; }
}

.fish-catch-img {
  width: 130px;
  height: 130px;
  object-fit: contain;
  margin-bottom: 6px;
  animation: fishFloat 1.6s ease-in-out infinite;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.2));
  mix-blend-mode: multiply;
}

@keyframes fishFloat {
  0%, 100% { transform: translateY(0) rotate(-4deg); }
  50% { transform: translateY(-10px) rotate(4deg); }
}

.fish-catch-title {
  font-size: 13px;
  color: #b8862f;
  letter-spacing: 5px;
  margin-bottom: 2px;
}

.fish-catch-name {
  font-size: 28px;
  font-weight: 700;
  color: #5a3a1a;
  margin-bottom: 8px;
}

.fish-catch-rarity {
  display: inline-block;
  padding: 3px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 10px;
}

.fish-catch-hint {
  font-size: 11px;
  color: #a08860;
  letter-spacing: 1px;
}

.fish-catch-sparkles {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  pointer-events: none;
}

.fish-catch-sparkles span {
  position: absolute;
  font-size: 16px;
  animation: sparkleBlink 1.2s ease-in-out infinite;
}

.fish-catch-sparkles span:nth-child(1) { top: 10%; left: 12%; animation-delay: 0s; }
.fish-catch-sparkles span:nth-child(2) { top: 14%; right: 14%; animation-delay: 0.3s; }
.fish-catch-sparkles span:nth-child(3) { bottom: 24%; left: 10%; animation-delay: 0.6s; }
.fish-catch-sparkles span:nth-child(4) { bottom: 18%; right: 12%; animation-delay: 0.9s; }
.fish-catch-sparkles span:nth-child(5) { top: 48%; left: 6%; animation-delay: 0.45s; }

@keyframes sparkleBlink {
  0%, 100% { opacity: 0.25; transform: scale(0.7); }
  50% { opacity: 1; transform: scale(1.3); }
}

/* ===== 仓库 / 商城 共用 ===== */
.warehouse-paper, .shop-paper {
  width: min(94vw, 520px);
  max-height: 88vh;
  display: flex;
  flex-direction: column;
}

.warehouse-header, .shop-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.warehouse-header h2, .shop-header h2 {
  margin: 0;
  font-size: 20px;
}

.warehouse-shells, .shop-shells {
  font-size: 15px;
  font-weight: 600;
  color: #b8862f;
  background: rgba(240, 221, 170, 0.6);
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid #d8c392;
}

/* ===== 仓库 ===== */
.warehouse-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 10px;
}

.wh-tab {
  flex: 1;
  padding: 6px 0;
  border: 1px solid #d8c392;
  border-radius: 8px;
  background: rgba(255, 250, 230, 0.5);
  color: var(--ink);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.15s;
}

.wh-tab.is-active {
  background: #f0ddaa;
  border-color: #b8862f;
  font-weight: 600;
}

.warehouse-grid {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 5px;
  margin-bottom: 10px;
}

.wh-cell {
  position: relative;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  border: 1.5px solid #d8c392;
  background: rgba(255, 250, 230, 0.5);
  cursor: pointer;
  transition: transform 0.1s, box-shadow 0.1s;
}

.wh-cell:hover:not(.is-empty) {
  transform: translateY(-2px);
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
}

.wh-cell.is-empty {
  border: 1.5px dashed rgba(216, 195, 146, 0.4);
  background: rgba(255, 250, 230, 0.1);
  cursor: default;
}

.wh-cell.is-selected {
  outline: 2px solid #d4943a;
  outline-offset: 1px;
}

.wh-cell .wh-icon { font-size: 20px; line-height: 1; }
.wh-cell .wh-img { width: 28px; height: 28px; object-fit: contain; mix-blend-mode: multiply; }
.wh-cell .wh-count { position: absolute; bottom: 1px; right: 3px; font-size: 10px; font-weight: 600; color: #6b5a3a; }
.wh-cell .wh-equipped { position: absolute; top: 1px; left: 3px; font-size: 8px; color: #b8862f; font-weight: 700; }

.warehouse-detail {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(240, 221, 170, 0.4);
  border: 1px solid #d8c392;
  margin-bottom: 8px;
}

.wh-detail-icon {
  font-size: 32px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wh-detail-icon img { width: 40px; height: 40px; object-fit: contain; mix-blend-mode: multiply; }

.wh-detail-info { flex: 1; }
.wh-detail-name { font-size: 16px; font-weight: 600; color: var(--ink); }
.wh-detail-count { font-size: 13px; color: var(--ink-soft); }

.wh-detail-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.wh-detail-actions .btn { padding: 5px 10px; font-size: 12px; min-height: 0; }

@media (max-width: 480px) {
  .warehouse-grid { grid-template-columns: repeat(5, 1fr); gap: 6px; }
  .wh-cell .wh-icon { font-size: 18px; }
  .wh-cell .wh-img { width: 24px; height: 24px; }
}

/* ===== 商城 ===== */
.shop-items {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 10px;
}

.shop-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255, 250, 230, 0.6);
  border: 1px solid #d8c392;
}

.shop-item-icon { font-size: 28px; width: 36px; text-align: center; }
.shop-item-info { flex: 1; }
.shop-item-name { font-size: 15px; font-weight: 600; color: var(--ink); }
.shop-item-price { font-size: 13px; color: #b8862f; }
.shop-item-actions { display: flex; gap: 6px; }
.shop-item-actions .btn { padding: 5px 10px; font-size: 12px; min-height: 0; }

/* ===== 鱼类图鉴 ===== */
.collection-paper {
  max-width: 640px;
  width: 92%;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
}

.collection-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.collection-header h2 {
  margin: 0;
  font-size: 22px;
  color: var(--ink);
}

.collection-progress {
  font-size: 16px;
  font-weight: 700;
  color: #b8862f;
  background: rgba(255, 240, 200, 0.6);
  padding: 4px 14px;
  border-radius: 999px;
  border: 1px solid #d8c392;
}

.collection-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.ctab {
  padding: 5px 14px;
  border-radius: 999px;
  border: 1px solid #d8c392;
  background: rgba(255, 250, 230, 0.5);
  color: #8a7a5a;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
}

.ctab.active {
  background: #5a8a6a;
  color: #fff;
  border-color: #4a7a5a;
}

.collection-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  overflow-y: auto;
  padding: 4px;
  flex: 1;
}

@media (max-width: 480px) {
  .collection-grid { grid-template-columns: repeat(4, 1fr); gap: 8px; }
}

.fish-card {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: 10px;
  border: 2px solid #d8c392;
  background: linear-gradient(160deg, #fff8e8 0%, #f0e4c8 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 6px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}

.fish-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.fish-card.rarity-common { border-color: #9aa0a6; }
.fish-card.rarity-rare { border-color: #4a9eff; box-shadow: 0 0 6px rgba(74, 158, 255, 0.3); }
.fish-card.rarity-epic { border-color: #b46cff; box-shadow: 0 0 8px rgba(180, 108, 255, 0.4); }
.fish-card.rarity-legendary {
  border-color: #ffc83d;
  box-shadow: 0 0 12px rgba(255, 200, 61, 0.5);
  background: linear-gradient(160deg, #fff8e0 0%, #ffe8a8 50%, #fff0c0 100%);
}

.fish-card.rarity-hidden {
  border-color: #ff6b9d;
  box-shadow: 0 0 14px rgba(255, 107, 157, 0.6), 0 0 28px rgba(255, 107, 157, 0.3);
  background: linear-gradient(160deg, #ffe8f0 0%, #ffd0e0 50%, #ffe0ec 100%);
  animation: hiddenGlow 2s ease-in-out infinite;
}
@keyframes hiddenGlow {
  0%, 100% { box-shadow: 0 0 14px rgba(255, 107, 157, 0.6), 0 0 28px rgba(255, 107, 157, 0.3); }
  50% { box-shadow: 0 0 20px rgba(255, 107, 157, 0.8), 0 0 40px rgba(255, 107, 157, 0.5); }
}

.fish-card.locked {
  background: rgba(180, 175, 165, 0.25);
  border-color: rgba(150, 145, 135, 0.4);
  box-shadow: none;
}

.fish-card-img {
  width: 70%;
  height: 55%;
  object-fit: contain;
  display: block;
}

.fish-card.locked .fish-card-img {
  filter: grayscale(1) brightness(0.5) opacity(0.4);
}

.fish-card-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  text-align: center;
  margin-top: 4px;
  line-height: 1.2;
}

.fish-card.locked .fish-card-name {
  color: rgba(120, 115, 105, 0.6);
}

.fish-card-rarity {
  position: absolute;
  top: 3px;
  right: 4px;
  font-size: 9px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 4px;
  color: #fff;
}

.fish-card-rarity.common { background: #9aa0a6; }
.fish-card-rarity.rare { background: #4a9eff; }
.fish-card-rarity.epic { background: #b46cff; }
.fish-card-rarity.legendary { background: linear-gradient(90deg, #ffc83d, #ff9500); }

.fish-card-locked-text {
  position: absolute;
  bottom: 4px;
  font-size: 10px;
  color: rgba(120, 115, 105, 0.5);
}

/* 图鉴详情弹窗 */
.fish-detail-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 200;
  background: linear-gradient(160deg, #fff8e8 0%, #f0e4c8 100%);
  border-radius: 16px;
  padding: 24px;
  max-width: 320px;
  width: 85%;
  text-align: center;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
  border: 3px solid #d8c392;
}

.fish-detail-modal.rarity-legendary {
  border-color: #ffc83d;
  box-shadow: 0 0 30px rgba(255, 200, 61, 0.5);
}

.fish-detail-modal.rarity-hidden {
  border-color: #ff6b9d;
  box-shadow: 0 0 30px rgba(255, 107, 157, 0.6);
  animation: hiddenGlow 2s ease-in-out infinite;
}

.fish-detail-img {
  width: 140px;
  height: 140px;
  object-fit: contain;
  margin: 0 auto 12px;
  display: block;
}

.fish-detail-name {
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 4px;
}

.fish-detail-rarity-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  padding: 2px 12px;
  border-radius: 999px;
  color: #fff;
  margin-bottom: 10px;
}

.fish-detail-desc {
  font-size: 14px;
  color: #6a5a40;
  line-height: 1.5;
  margin-bottom: 8px;
}

.fish-detail-price {
  font-size: 14px;
  color: #b8862f;
  font-weight: 600;
  margin-bottom: 16px;
}

.fish-detail-close {
  padding: 8px 24px;
  border-radius: 999px;
  border: none;
  background: #5a8a6a;
  color: #fff;
  font-size: 14px;
  cursor: pointer;
}

/* 未钓到预览窗口 */
.locked-preview-modal {
  background: linear-gradient(160deg, #e8e6e0 0%, #d0ccc2 100%);
  border-color: #b0aca0;
}

.locked-preview-img-wrap {
  position: relative;
  width: 140px;
  height: 140px;
  margin: 0 auto 12px;
}

.locked-preview-img {
  filter: grayscale(1) brightness(0.4) opacity(0.5);
}

.locked-question {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 56px;
  font-weight: 900;
  color: rgba(120, 115, 105, 0.7);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* 图鉴按钮红点 */
#collectionBtn {
  position: relative;
}

.badge-dot {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  line-height: 18px;
  text-align: center;
  background: #e74c3c;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  border-radius: 999px;
  padding: 0 4px;
  box-shadow: 0 0 6px rgba(231, 76, 60, 0.6);
  animation: badgePulse 1.5s ease-in-out infinite;
}

@keyframes badgePulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15); }
}

/* 卡片待解锁红点 */
.fish-card-dot {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 10px;
  height: 10px;
  background: #e74c3c;
  border-radius: 50%;
  box-shadow: 0 0 6px rgba(231, 76, 60, 0.8);
  animation: badgePulse 1.2s ease-in-out infinite;
  z-index: 2;
}

.fish-card.has-pending {
  cursor: pointer;
}

.fish-card.has-pending .fish-card-img {
  filter: grayscale(0.6) brightness(0.7);
}

/* 解锁弹窗 */
.unlock-modal {
  text-align: center;
}

.unlock-preview-wrap {
  position: relative;
  width: 140px;
  height: 140px;
  margin: 0 auto 12px;
}

.unlock-preview {
  filter: grayscale(0.7) brightness(0.6);
  transition: filter 0.5s, transform 0.5s;
}

.unlock-shine {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 230, 100, 0.9) 0%, rgba(255, 200, 50, 0.5) 40%, transparent 70%);
  transform: translate(-50%, -50%);
  pointer-events: none;
  opacity: 0;
}

.unlock-shine.active {
  animation: shineBurst 1s ease-out forwards;
}

@keyframes shineBurst {
  0% { width: 0; height: 0; opacity: 1; }
  100% { width: 300px; height: 300px; opacity: 0; }
}

.unlock-hint {
  font-size: 13px;
  color: #b8862f;
  margin-bottom: 12px;
  font-weight: 600;
}

.fish-unlock-btn {
  padding: 10px 28px;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, #ffc83d, #ff9500);
  color: #5a3a00;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(255, 170, 30, 0.4);
  transition: transform 0.15s, box-shadow 0.15s;
}

.fish-unlock-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(255, 170, 30, 0.55);
}

.unlocking .unlock-preview {
  filter: none !important;
}

/* 卡片解锁闪光 */
.unlock-flash {
  animation: cardFlash 0.8s ease-out;
}

@keyframes cardFlash {
  0% { box-shadow: 0 0 0 rgba(255, 220, 80, 0); }
  30% { box-shadow: 0 0 24px 8px rgba(255, 220, 80, 0.8); }
  100% { box-shadow: 0 0 0 rgba(255, 220, 80, 0); }
}