:root {
  --bg: #0b0f19;
  --surface: #151c2c;
  --surface-hover: #1e283d;
  --border: #26344d;
  --text-main: #f0f6fc;
  --text-muted: #8b949e;
  --primary: #38bdf8;
  --primary-hover: #0ea5e9;
  --accent-gold: #fbbf24;
  --accent-green: #34d399;
  --accent-purple: #c084fc;
  --radius: 12px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: var(--bg);
  color: var(--text-main);
  line-height: 1.6;
  padding-bottom: 60px;
}

header {
  background-color: rgba(21, 28, 44, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-container {
  max-width: 1360px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 24px;
}

.brand {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 16px;
}

nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 8px;
  transition: all 0.2s;
}

nav a:hover, nav a.active {
  color: var(--text-main);
  background-color: var(--surface-hover);
}

.container {
  max-width: 1360px;
  margin: 30px auto;
  padding: 0 24px;
}

.hero {
  text-align: center;
  margin-bottom: 35px;
}

.hero h1 {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 10px;
}

.hero p {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto;
}

.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
}

.badge-gold { background: rgba(251, 191, 36, 0.15); color: var(--accent-gold); border: 1px solid rgba(251, 191, 36, 0.3); }
.badge-green { background: rgba(52, 211, 153, 0.15); color: var(--accent-green); border: 1px solid rgba(52, 211, 153, 0.3); }
.badge-purple { background: rgba(192, 132, 252, 0.15); color: var(--accent-purple); border: 1px solid rgba(192, 132, 252, 0.3); }
.badge-blue { background: rgba(56, 189, 248, 0.15); color: var(--primary); border: 1px solid rgba(56, 189, 248, 0.3); }

/* Card Panel */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 24px;
}

/* Calculator Controls */
.control-group {
  margin-bottom: 24px;
}

.control-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  margin-bottom: 8px;
}

.slider-val {
  color: var(--accent-gold);
  font-size: 1.3rem;
  font-weight: 700;
}

input[type="range"] {
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: #2a374f;
  outline: none;
  accent-color: var(--primary);
  cursor: pointer;
}

.presets {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.preset-btn {
  background: #1c2538;
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s;
}

.preset-btn:hover {
  background: var(--surface-hover);
  color: var(--text-main);
  border-color: var(--primary);
}

.goal-toggle {
  display: flex;
  gap: 12px;
  margin-top: 15px;
}

.goal-btn {
  flex: 1;
  padding: 12px;
  background: #1c2538;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-muted);
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s;
}

.goal-btn.active {
  background: rgba(56, 189, 248, 0.15);
  border-color: var(--primary);
  color: var(--primary);
}

/* Result Box */
.result-box {
  background: #101624;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px;
  margin-top: 20px;
}

.result-card-flex {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

@media (max-width: 640px) {
  .result-card-flex {
    flex-direction: column;
    align-items: center;
  }
}

.rod-preview-wrapper {
  flex-shrink: 0;
  width: 170px;
  height: 260px;
  background: radial-gradient(circle at center, #1e283d 0%, #080c14 100%);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.6);
  position: relative;
  cursor: pointer;
  transition: all 0.25s ease;
}

.rod-preview-wrapper:hover {
  border-color: var(--primary);
  box-shadow: 0 10px 30px rgba(56, 189, 248, 0.35);
  transform: translateY(-2px);
}

.rod-preview-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  filter: drop-shadow(0 6px 14px rgba(0,0,0,0.7));
}

.rod-preview-wrapper:hover img {
  transform: scale(1.1);
}

.zoom-hint-tag {
  position: absolute;
  bottom: 8px;
  font-size: 0.7rem;
  color: #94a3b8;
  background: rgba(11, 15, 25, 0.88);
  padding: 3px 8px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  pointer-events: none;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Table Thumbnail */
.rod-table-thumb-wrapper {
  width: 58px;
  height: 82px;
  background: radial-gradient(circle at center, #1e283d 0%, #080c14 100%);
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  margin-right: 12px;
  flex-shrink: 0;
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease;
}

.rod-table-thumb-wrapper:hover {
  border-color: var(--primary);
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.4);
  transform: scale(1.1);
}

.rod-table-thumb-wrapper img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.6));
}

/* Floating Hover Magnifier Card */
.rod-hover-preview {
  position: fixed;
  z-index: 9999;
  pointer-events: none;
  display: none;
  opacity: 0;
  transform: scale(0.96);
  transition: opacity 0.15s ease-out, transform 0.15s ease-out;
  filter: drop-shadow(0 16px 36px rgba(0, 0, 0, 0.9));
}

.rod-hover-preview.active {
  opacity: 1;
  transform: scale(1);
}

.hover-preview-card {
  background: rgba(20, 28, 45, 0.96);
  backdrop-filter: blur(12px);
  border: 1px solid var(--primary);
  border-radius: 12px;
  padding: 14px;
  display: flex;
  gap: 16px;
  align-items: center;
  width: 360px;
  box-shadow: 0 0 24px rgba(56, 189, 248, 0.25);
}

.hover-preview-img-box {
  width: 105px;
  height: 180px;
  background: radial-gradient(circle at center, #1e293b 0%, #080c14 100%);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  border: 1px solid var(--border);
  flex-shrink: 0;
}

.hover-preview-img-box img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 6px 12px rgba(0,0,0,0.8));
}

.hover-preview-info {
  flex: 1;
  min-width: 0;
}

.hover-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hover-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--text-muted);
  background: rgba(11, 15, 25, 0.6);
  padding: 8px 10px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  margin-bottom: 6px;
}

.hover-verdict {
  font-size: 0.78rem;
  color: #cbd5e1;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Fullscreen HD Lightbox Modal */
.lightbox-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(3, 7, 18, 0.85);
  backdrop-filter: blur(8px);
  z-index: 10000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.lightbox-content {
  background: #131b2c;
  border: 1px solid var(--border);
  border-radius: 16px;
  max-width: 660px;
  width: 100%;
  position: relative;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.85), 0 0 35px rgba(56, 189, 248, 0.2);
  overflow: hidden;
  animation: modalPop 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalPop {
  from { transform: scale(0.92); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.lightbox-close {
  position: absolute;
  top: 14px;
  right: 18px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: var(--text-main);
  font-size: 1.6rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: background 0.2s;
  z-index: 10;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.25);
}

.lightbox-grid {
  display: flex;
  gap: 24px;
  padding: 28px;
}

@media (max-width: 640px) {
  .lightbox-grid {
    flex-direction: column;
    align-items: center;
    padding: 20px;
  }
}

.lightbox-img-box {
  width: 190px;
  height: 330px;
  background: radial-gradient(circle at center, #1e293b 0%, #090e17 100%);
  border: 1px solid var(--border);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 12px;
  flex-shrink: 0;
  box-shadow: inset 0 0 25px rgba(0, 0, 0, 0.85);
}

.lightbox-img-box img {
  max-width: 100%;
  max-height: 280px;
  object-fit: contain;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.8));
}

.lightbox-details {
  flex: 1;
  min-width: 0;
}

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

.result-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-gold);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 12px;
  margin: 15px 0;
}

.stat-item {
  background: var(--surface);
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid var(--border);
}

.stat-label { font-size: 0.8rem; color: var(--text-muted); }
.stat-val { font-size: 1.1rem; font-weight: 700; color: var(--text-main); }

.verdict-box {
  background: rgba(52, 211, 153, 0.08);
  border-left: 3px solid var(--accent-green);
  padding: 12px 16px;
  border-radius: 4px;
  margin-top: 14px;
  font-size: 0.95rem;
}

/* Table */
.data-table-wrapper {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #0e1422;
  margin-top: 15px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
  scrollbar-width: thin;
  scrollbar-color: var(--primary) #111827;
}

.data-table-wrapper::-webkit-scrollbar {
  height: 8px;
}

.data-table-wrapper::-webkit-scrollbar-track {
  background: #111827;
}

.data-table-wrapper::-webkit-scrollbar-thumb {
  background: #2a374f;
  border-radius: 4px;
}

.data-table-wrapper::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

table {
  width: 100%;
  min-width: 1060px;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.92rem;
}

th {
  background: #111827;
  color: var(--text-muted);
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  font-weight: 600;
  white-space: nowrap;
}

td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

tr:hover td {
  background: rgba(30, 40, 61, 0.7);
}

.col-nowrap {
  white-space: nowrap;
}

.col-verdict {
  min-width: 200px;
  line-height: 1.45;
  font-size: 0.86rem;
  color: #cbd5e1;
}

/* Codes list */
.code-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #101624;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px 18px;
  margin-bottom: 12px;
}

.code-title {
  font-family: monospace;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--accent-gold);
}

.code-reward {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.copy-btn {
  background: var(--primary);
  color: #0b0f19;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.copy-btn:hover {
  background: var(--primary-hover);
}

/* CTA */
.cta-banner {
  background: linear-gradient(135deg, #1e293b, #0f172a);
  border: 1px solid var(--primary);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  margin-top: 30px;
}

.cta-banner h3 { margin-bottom: 8px; color: var(--text-main); }
.cta-banner p { color: var(--text-muted); margin-bottom: 16px; }
.cta-btn {
  display: inline-block;
  background: var(--primary);
  color: #0b0f19;
  padding: 10px 24px;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
  transition: opacity 0.2s;
}
.cta-btn:hover { opacity: 0.9; }

footer {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 50px;
  border-top: 1px solid var(--border);
  padding-top: 20px;
}

@media (max-width: 600px) {
  .nav-container {
    flex-direction: column;
    gap: 10px;
    padding: 12px 16px;
  }
  nav ul {
    gap: 6px;
    width: 100%;
    justify-content: center;
  }
  nav a {
    font-size: 0.85rem;
    padding: 5px 8px;
  }
  .hero h1 {
    font-size: 1.65rem;
  }
  .hero p {
    font-size: 0.95rem;
  }
  .card {
    padding: 16px;
  }
  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* =========================================
   RPG Quality Themes (Option 2: 阶梯光效体系)
   ========================================= */

/* SS Tier: Cosmic Void & Starlight (Destiny) */
.theme-ss {
  background: radial-gradient(circle at 50% 20%, rgba(168, 85, 247, 0.3) 0%, rgba(13, 10, 28, 0.95) 100%) !important;
  border-color: #c084fc !important;
  box-shadow: 0 0 25px rgba(192, 132, 252, 0.4), inset 0 0 15px rgba(168, 85, 247, 0.2) !important;
}

/* S+ Tier: Sovereign Imperial Gold (Kings) */
.theme-splus {
  background: radial-gradient(circle at 50% 20%, rgba(251, 191, 36, 0.25) 0%, rgba(20, 16, 8, 0.95) 100%) !important;
  border-color: #fbbf24 !important;
  box-shadow: 0 0 25px rgba(251, 191, 36, 0.4), inset 0 0 15px rgba(245, 158, 11, 0.2) !important;
}

/* S Tier: Molten Liquid Gold (Midas) */
.theme-s-gold {
  background: radial-gradient(circle at 50% 20%, rgba(245, 158, 11, 0.28) 0%, rgba(26, 18, 5, 0.95) 100%) !important;
  border-color: #f59e0b !important;
  box-shadow: 0 0 22px rgba(245, 158, 11, 0.45), inset 0 0 15px rgba(217, 119, 6, 0.2) !important;
}

/* S Tier: Mythic Magenta (Mythical) */
.theme-s-mythic {
  background: radial-gradient(circle at 50% 20%, rgba(217, 70, 239, 0.25) 0%, rgba(22, 9, 28, 0.95) 100%) !important;
  border-color: #d946ef !important;
  box-shadow: 0 0 22px rgba(217, 70, 239, 0.4) !important;
}

/* S- Tier: Emerald Fortune (Fortune / Lucky) */
.theme-s-fortune {
  background: radial-gradient(circle at 50% 20%, rgba(16, 185, 129, 0.25) 0%, rgba(6, 22, 16, 0.95) 100%) !important;
  border-color: #10b981 !important;
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.35) !important;
}

/* A+ Tier: Magnetic Cobalt (Magnet) */
.theme-a-magnet {
  background: radial-gradient(circle at 50% 20%, rgba(99, 102, 241, 0.25) 0%, rgba(10, 14, 30, 0.95) 100%) !important;
  border-color: #6366f1 !important;
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.35) !important;
}

/* A Tier: Bioluminescent Abyss (Nocturnal) */
.theme-a-night {
  background: radial-gradient(circle at 50% 20%, rgba(20, 184, 166, 0.25) 0%, rgba(5, 20, 22, 0.95) 100%) !important;
  border-color: #14b8a6 !important;
  box-shadow: 0 0 20px rgba(20, 184, 166, 0.4) !important;
}

/* A/A- Tier: Electric Cyan Velocity (Rapid / Fast) */
.theme-a-speed {
  background: radial-gradient(circle at 50% 20%, rgba(6, 182, 212, 0.22) 0%, rgba(6, 18, 28, 0.95) 100%) !important;
  border-color: #06b6d4 !important;
  box-shadow: 0 0 18px rgba(6, 182, 212, 0.35) !important;
}

/* B Tier: Tactical Carbon Fiber (Carbon / Steady) */
.theme-b-carbon {
  background: radial-gradient(circle at 50% 20%, rgba(56, 189, 248, 0.2) 0%, rgba(11, 19, 32, 0.95) 100%) !important;
  border-color: #38bdf8 !important;
  box-shadow: 0 0 18px rgba(56, 189, 248, 0.3) !important;
}

/* C/D Tier: Starter Rustic Wood */
.theme-starter {
  background: radial-gradient(circle at 50% 20%, rgba(148, 163, 184, 0.12) 0%, rgba(15, 20, 30, 0.95) 100%) !important;
  border-color: #475569 !important;
}

/* =========================================
   Signature Target Fish Showcase (Option 1)
   ========================================= */
.target-fish-card {
  background: rgba(14, 21, 35, 0.85);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 14px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.target-fish-thumb-box {
  width: 90px;
  height: 60px;
  background: radial-gradient(circle, #1a2438 0%, #080c14 100%);
  border-radius: 8px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  flex-shrink: 0;
  position: relative;
}

.target-fish-thumb-box img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.7));
  transition: transform 0.25s ease;
}

.target-fish-card:hover .target-fish-thumb-box img {
  transform: scale(1.12);
}

.target-fish-info {
  flex: 1;
  min-width: 0;
}

.target-fish-title {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.target-fish-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 3px;
  line-height: 1.4;
}

.fish-table-thumb {
  width: 52px;
  height: 38px;
  border-radius: 6px;
  background: radial-gradient(circle, #1c263c 0%, #0a0e18 100%);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2px;
  flex-shrink: 0;
  margin-right: 8px;
}

.fish-table-thumb img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

