/* ============================================
   财神捕鱼 - 主样式表
   独特配色：深海蓝金主题
   ============================================ */

/* CSS Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --deep-ocean: #0a1628;
  --ocean-mid: #122240;
  --ocean-light: #1a3258;
  --gold-primary: #f0c040;
  --gold-light: #ffe066;
  --gold-dark: #c8960a;
  --coral-red: #ff5252;
  --jade-green: #2ecc71;
  --pearl-white: #f5f0e8;
  --text-main: #e8e0d0;
  --text-secondary: #a8b4c8;
  --font-heading: 'Noto Serif SC', 'SimSun', serif;
  --font-body: 'Noto Sans SC', 'Microsoft YaHei', sans-serif;
  --max-width: 1200px;
  --radius: 12px;
  --shadow-gold: 0 4px 20px rgba(240,192,64,0.15);
  --shadow-deep: 0 8px 32px rgba(0,0,0,0.4);
}

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@300;400;500;700&family=Noto+Serif+SC:wght@400;600;700&display=swap');

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  background: var(--deep-ocean);
  color: var(--text-main);
  line-height: 1.8;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Jammer Block - Hidden visually but present in DOM */
.jammer-block {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
  padding: 0;
  margin: -1px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); color: var(--gold-primary); line-height: 1.4; margin-bottom: 0.8em; }
h1 { font-size: 2.2rem; text-shadow: 0 2px 8px rgba(240,192,64,0.3); }
h2 { font-size: 1.8rem; border-left: 4px solid var(--gold-primary); padding-left: 16px; }
h3 { font-size: 1.4rem; color: var(--gold-light); }
h4 { font-size: 1.2rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; }

p { margin-bottom: 1.2em; text-align: justify; }
a { color: var(--gold-light); text-decoration: none; transition: color 0.3s; }
a:hover { color: var(--coral-red); }
img { max-width: 100%; height: auto; border-radius: var(--radius); }
strong, b { color: var(--gold-primary); }

/* Layout */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header {
  background: linear-gradient(180deg, var(--ocean-mid) 0%, var(--deep-ocean) 100%);
  border-bottom: 2px solid var(--gold-dark);
  padding: 20px 0;
  position: relative;
  z-index: 100;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.site-logo { display: flex; align-items: center; gap: 12px; }
.site-logo .logo-icon {
  width: 48px; height: 48px;
  background: linear-gradient(135deg, var(--gold-primary), var(--gold-dark));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; color: var(--deep-ocean); font-weight: bold;
}
.site-logo .logo-text { font-family: var(--font-heading); font-size: 1.5rem; color: var(--gold-primary); font-weight: 700; }

/* Navigation */
.main-nav { position: relative; }
.nav-toggle { display: none; background: none; border: 2px solid var(--gold-primary); color: var(--gold-primary); padding: 8px 12px; border-radius: 6px; cursor: pointer; font-size: 1.2rem; }
.nav-list { list-style: none; display: flex; gap: 8px; flex-wrap: wrap; }
.nav-list li a {
  display: block; padding: 8px 16px; color: var(--text-main); border-radius: 8px;
  transition: all 0.3s; font-size: 0.95rem; white-space: nowrap;
}
.nav-list li a:hover, .nav-list li a.active { background: var(--ocean-light); color: var(--gold-primary); }

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, var(--ocean-mid) 0%, #0d1f3c 50%, var(--deep-ocean) 100%);
  padding: 60px 0 50px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero-section::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(ellipse at 50% 80%, rgba(240,192,64,0.08) 0%, transparent 60%);
  pointer-events: none;
}
.hero-section h1 { font-size: 2.6rem; margin-bottom: 16px; position: relative; }
.hero-section .hero-desc { font-size: 1.15rem; color: var(--text-secondary); max-width: 800px; margin: 0 auto 30px; position: relative; }

/* Content Sections */
.content-section {
  padding: 50px 0;
  position: relative;
}
.content-section:nth-child(even) { background: var(--ocean-mid); }
.section-header { text-align: center; margin-bottom: 40px; }
.section-header h2 { border-left: none; display: inline-block; position: relative; }
.section-header h2::after {
  content: ''; display: block; width: 60px; height: 3px;
  background: var(--gold-primary); margin: 12px auto 0; border-radius: 2px;
}
.section-header p { color: var(--text-secondary); margin-top: 12px; }

/* Card Grid */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; }
.card {
  background: var(--ocean-light);
  border-radius: var(--radius);
  padding: 28px;
  border: 1px solid rgba(240,192,64,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-gold); }
.card h3 { margin-bottom: 12px; }
.card .card-img {
  width: 100%; height: 200px; object-fit: cover;
  border-radius: 8px; margin-bottom: 16px;
  background: var(--ocean-mid);
}
.card .card-meta { font-size: 0.85rem; color: var(--text-secondary); margin-top: 12px; }
.card .read-more {
  display: inline-block; margin-top: 16px; padding: 8px 20px;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold-primary));
  color: var(--deep-ocean); border-radius: 20px; font-weight: 500;
  transition: all 0.3s;
}
.card .read-more:hover { background: linear-gradient(135deg, var(--gold-primary), var(--gold-light)); transform: scale(1.05); }

/* Data Table */
.data-table { width: 100%; border-collapse: collapse; margin: 20px 0; }
.data-table th {
  background: var(--gold-dark); color: var(--deep-ocean);
  padding: 12px 16px; text-align: left; font-weight: 600;
}
.data-table td { padding: 12px 16px; border-bottom: 1px solid rgba(240,192,64,0.1); }
.data-table tr:hover td { background: rgba(240,192,64,0.05); }
.data-table .highlight { color: var(--coral-red); font-weight: 700; }

/* Fish Query Tool */
.fish-tool {
  background: var(--ocean-light);
  border-radius: var(--radius);
  padding: 30px;
  border: 2px solid var(--gold-dark);
}
.fish-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 12px;
  margin: 20px 0;
}
.fish-icon {
  background: var(--ocean-mid); border-radius: 12px; padding: 16px 8px;
  text-align: center; cursor: pointer; border: 2px solid transparent;
  transition: all 0.3s;
}
.fish-icon:hover { border-color: var(--gold-primary); transform: scale(1.05); }
.fish-icon.active { border-color: var(--gold-primary); background: rgba(240,192,64,0.1); }
.fish-icon .fish-emoji { font-size: 2rem; display: block; margin-bottom: 6px; }
.fish-icon .fish-name { font-size: 0.8rem; color: var(--text-secondary); }
.fish-detail-panel {
  background: var(--ocean-mid); border-radius: var(--radius);
  padding: 24px; margin-top: 20px; display: none;
  border: 1px solid var(--gold-dark);
  animation: fadeIn 0.4s ease;
}
.fish-detail-panel.show { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* Steps */
.steps-list { counter-reset: step; list-style: none; }
.steps-list li {
  counter-increment: step; position: relative;
  padding: 20px 20px 20px 70px; margin-bottom: 16px;
  background: var(--ocean-light); border-radius: var(--radius);
  border: 1px solid rgba(240,192,64,0.1);
}
.steps-list li::before {
  content: counter(step);
  position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold-primary));
  color: var(--deep-ocean); display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1.2rem;
}

/* FAQ */
.faq-item { margin-bottom: 16px; border: 1px solid rgba(240,192,64,0.15); border-radius: var(--radius); overflow: hidden; }
.faq-question {
  padding: 16px 20px; background: var(--ocean-light); cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  font-weight: 600; color: var(--gold-light); transition: background 0.3s;
}
.faq-question:hover { background: var(--ocean-mid); }
.faq-question::after { content: '+'; font-size: 1.4rem; transition: transform 0.3s; }
.faq-item.open .faq-question::after { transform: rotate(45deg); }
.faq-answer { padding: 0 20px; max-height: 0; overflow: hidden; transition: all 0.4s; }
.faq-item.open .faq-answer { padding: 16px 20px; max-height: 2000px; }

/* Breadcrumb */
.breadcrumb {
  padding: 12px 0; font-size: 0.9rem; color: var(--text-secondary);
}
.breadcrumb a { color: var(--gold-light); }
.breadcrumb span { margin: 0 8px; }

/* Article Content */
.article-content { max-width: 900px; margin: 0 auto; }
.article-content h2 { margin-top: 40px; }
.article-content h3 { margin-top: 30px; }
.article-content blockquote {
  border-left: 4px solid var(--gold-primary);
  background: rgba(240,192,64,0.05);
  padding: 16px 24px; margin: 20px 0;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
}
.article-content .img-wrapper {
  text-align: center; margin: 24px 0;
}
.article-content .img-wrapper img {
  border: 2px solid var(--gold-dark);
  box-shadow: var(--shadow-deep);
}
.article-content .img-caption {
  font-size: 0.85rem; color: var(--text-secondary);
  margin-top: 8px; font-style: italic;
}
.article-content .ref-list { font-size: 0.9rem; color: var(--text-secondary); }
.article-content .ref-list li { margin-bottom: 8px; }

/* Tags */
.tag { display: inline-block; padding: 4px 12px; background: var(--ocean-light); border-radius: 20px; font-size: 0.8rem; color: var(--gold-light); margin: 4px; border: 1px solid rgba(240,192,64,0.2); }

/* Platform Cards */
.platform-card {
  background: linear-gradient(135deg, var(--ocean-light), var(--ocean-mid));
  border: 2px solid var(--gold-dark); border-radius: var(--radius);
  padding: 24px; text-align: center; transition: all 0.3s;
}
.platform-card:hover { border-color: var(--gold-primary); box-shadow: var(--shadow-gold); }
.platform-card .platform-name { font-size: 1.3rem; font-weight: 700; color: var(--gold-primary); margin-bottom: 8px; }
.platform-card .platform-rating { color: var(--gold-light); margin-bottom: 12px; }
.platform-card .platform-btn {
  display: inline-block; padding: 10px 28px;
  background: linear-gradient(135deg, var(--coral-red), #ff7043);
  color: #fff; border-radius: 24px; font-weight: 600;
  transition: all 0.3s;
}
.platform-card .platform-btn:hover { transform: scale(1.05); box-shadow: 0 4px 16px rgba(255,82,82,0.3); }

/* Footer */
.site-footer {
  background: var(--ocean-mid);
  border-top: 2px solid var(--gold-dark);
  padding: 40px 0 20px;
}
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 30px; margin-bottom: 30px; }
.footer-col h4 { color: var(--gold-primary); margin-bottom: 16px; font-size: 1.1rem; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { color: var(--text-secondary); font-size: 0.9rem; }
.footer-col ul li a:hover { color: var(--gold-light); }
.footer-bottom {
  border-top: 1px solid rgba(240,192,64,0.15);
  padding-top: 20px; text-align: center;
  font-size: 0.85rem; color: var(--text-secondary);
}
.age-badge {
  display: inline-block; padding: 4px 14px;
  border: 2px solid var(--coral-red); border-radius: 6px;
  color: var(--coral-red); font-weight: 700; font-size: 1rem;
  margin: 10px 0;
}
.social-links { display: flex; gap: 12px; margin-top: 12px; }
.social-links a {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--ocean-light); display: flex; align-items: center; justify-content: center;
  color: var(--gold-light); font-size: 0.9rem; transition: all 0.3s;
}
.social-links a:hover { background: var(--gold-primary); color: var(--deep-ocean); }

/* Responsive */
@media (max-width: 768px) {
  html { font-size: 14px; }
  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.5rem; }
  .hero-section { padding: 40px 0 30px; }
  .hero-section h1 { font-size: 2rem; }
  .card-grid { grid-template-columns: 1fr; }
  .nav-toggle { display: block; }
  .nav-list {
    display: none; flex-direction: column;
    position: absolute; top: 100%; right: 0;
    background: var(--ocean-mid); border: 1px solid var(--gold-dark);
    border-radius: var(--radius); padding: 12px; min-width: 200px;
    z-index: 999;
  }
  .nav-list.show { display: flex; }
  .fish-grid { grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .header-inner { flex-direction: column; gap: 12px; }
  .footer-grid { grid-template-columns: 1fr; }
  .fish-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Animations */
@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}
.shimmer-text {
  background: linear-gradient(90deg, var(--gold-dark), var(--gold-light), var(--gold-dark));
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 3s linear infinite;
}

/* Lazy load placeholder */
.lazy-img {
  background: var(--ocean-mid);
  min-height: 200px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-secondary); font-size: 0.9rem;
}

/* Print */
@media print {
  body { background: #fff; color: #333; }
  .site-header, .site-footer, .nav-toggle { display: none; }
}
