/* ==============================================
   北京金岩石通讯技术有限公司 — 全局样式
   ============================================== */

/* --- Pixel Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');
@font-face {
  font-family: 'Zpix';
  src: url('https://cdn.jsdelivr.net/npm/zpix@3.1.0/dist/Zpix.woff2') format('woff2');
  font-weight: normal; font-style: normal;
}

/* --- CSS Variables / Design Tokens --- */
:root {
  --color-navy: #0f1a2e;
  --color-navy-light: #162033;
  --color-navy-card: #1a2842;
  --color-gold: #c9a84c;
  --color-gold-light: #e0c772;
  --color-gold-gradient: linear-gradient(135deg, #c9a84c, #e0c772);
  --color-white: #ffffff;
  --color-bg-light: #e8ecf1;
  --color-text: #1a1f2e;
  --color-text-secondary: #8892a4;
  --color-accent-blue: #3b82f6;
  --color-accent-teal: #14b8a6;
  --color-accent-coral: #f97316;
  --color-accent-purple: #a855f7;
  --color-accent-green: #22c55e;
  --font-sans: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.12);
  --shadow-md: 0 4px 16px rgba(0,0,0,.15);
  --shadow-lg: 0 8px 32px rgba(0,0,0,.2);
  --shadow-gold: 0 4px 20px rgba(201,168,76,.3);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --max-width: 1200px;
  --nav-height: 72px;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-white);
  line-height: 1.6;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* --- Typography --- */
h1, h2, h3, h4 { line-height: 1.25; font-weight: 700; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.5rem); }
.gradient-text {
  background: var(--color-gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --- Navigation --- */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--nav-height);
  background: rgba(15,26,46,.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(201,168,76,.15);
  display: flex; align-items: center;
  transition: all .3s;
}
.navbar.scrolled { background: rgba(15,26,46,.98); box-shadow: var(--shadow-md); }
.nav-inner {
  width: 100%; max-width: var(--max-width); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-family: 'Press Start 2P', 'Zpix', 'Courier New', monospace;
  font-size: .8rem; font-weight: 400; color: var(--color-gold);
  text-transform: uppercase; letter-spacing: 1px;
  text-shadow: 1px 1px 0 #000;
}
.nav-logo svg { height: 36px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a {
  color: var(--color-text-secondary); font-size: .95rem; font-weight: 500;
  transition: color .2s; position: relative;
}
.nav-links a:hover, .nav-links a.active { color: var(--color-gold); }
.nav-links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0;
  width: 0; height: 2px; background: var(--color-gold);
  transition: width .3s;
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

/* Products dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown > a { cursor: pointer; }
.nav-dropdown > a::after {
  content: ' ▾'; font-size: .7rem; vertical-align: middle;
}
.dropdown-menu {
  position: absolute; top: 40px; left: 50%; transform: translateX(-50%);
  background: var(--color-navy-light); border: 1px solid rgba(201,168,76,.2);
  border-radius: var(--radius-md); padding: 12px 0;
  min-width: 200px; opacity: 0; visibility: hidden;
  transition: all .25s; box-shadow: var(--shadow-lg);
}
.nav-dropdown:hover .dropdown-menu { opacity: 1; visibility: visible; top: 32px; }
.dropdown-menu a {
  display: block; padding: 10px 24px; font-size: .9rem;
  white-space: nowrap;
}
.dropdown-menu a:hover { background: rgba(201,168,76,.1); color: var(--color-gold); }

/* Mobile menu toggle */
.menu-toggle {
  display: none; background: none; border: none;
  cursor: pointer; padding: 8px;
}
.menu-toggle span {
  display: block; width: 24px; height: 2px; background: var(--color-white);
  margin: 5px 0; transition: all .3s;
}
.menu-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* --- Buttons --- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 28px; border-radius: var(--radius-sm);
  font-size: .95rem; font-weight: 600; border: none; cursor: pointer;
  transition: all .3s;
}
.btn-primary {
  background: var(--color-gold-gradient);
  color: var(--color-navy); box-shadow: var(--shadow-gold);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 28px rgba(201,168,76,.4); }
.btn-outline {
  background: transparent; border: 2px solid var(--color-gold);
  color: var(--color-gold);
}
.btn-outline:hover { background: var(--color-gold); color: var(--color-navy); }
.btn-ghost {
  background: rgba(255,255,255,.08); color: var(--color-white);
}
.btn-ghost:hover { background: rgba(255,255,255,.15); }

/* --- Hero --- */
.hero {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  text-align: center;
  background: linear-gradient(160deg, #0f1a2e 0%, #162033 40%, #1a2842 70%, #0f1a2e 100%);
  position: relative; overflow: hidden;
  padding: calc(var(--nav-height) + 40px) 24px 40px;
}
.hero::before {
  content: ''; position: absolute; top: -50%; right: -20%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(201,168,76,.08) 0%, transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: ''; position: absolute; bottom: -30%; left: -15%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(59,130,246,.06) 0%, transparent 70%);
  pointer-events: none;
}
.hero-content { position: relative; z-index: 1; max-width: 800px; }
.hero-badge {
  display: inline-block; padding: 6px 16px;
  border: 1px solid rgba(201,168,76,.3); border-radius: 30px;
  color: var(--color-gold); font-size: .85rem; margin-bottom: 24px;
}
.hero h1 {
  color: var(--color-white); margin-bottom: 16px;
}
.hero h1 .company-name { display: block; font-size: 1.1em; }
.hero-subtitle {
  font-size: 1.15rem; color: var(--color-text-secondary);
  max-width: 540px; margin: 0 auto 32px;
}
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* --- Sections --- */
.section {
  padding: 80px 24px;
  max-width: var(--max-width); margin: 0 auto;
}
.section-header {
  text-align: center; margin-bottom: 48px;
}
.section-header h2 { color: var(--color-navy); margin-bottom: 12px; }
.section-header p { color: var(--color-text-secondary); font-size: 1.05rem; max-width: 600px; margin: 0 auto; }
.section-dark {
  background: var(--color-navy); color: var(--color-white);
  max-width: none;
}
.section-dark .section-header h2 { color: var(--color-white); }
.section-light { background: var(--color-bg-light); max-width: none; }

/* --- About --- */
.about-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px;
  align-items: center;
}
.about-text h3 { color: var(--color-navy); margin-bottom: 16px; }
.about-text p { color: var(--color-text-secondary); margin-bottom: 16px; line-height: 1.8; }
.about-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.stat-card {
  background: var(--color-white); padding: 32px 24px;
  border-radius: var(--radius-md); text-align: center;
  box-shadow: var(--shadow-sm); transition: transform .3s;
}
.stat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.stat-number { font-size: 2.2rem; font-weight: 800; color: var(--color-gold); }
.stat-label { color: var(--color-text-secondary); font-size: .9rem; margin-top: 4px; }

/* --- Product Cards --- */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
}
.product-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0,0,0,.06);
  transition: all .35s;
  display: flex; flex-direction: column;
  position: relative; overflow: hidden;
}
.product-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: var(--card-accent, var(--color-gold-gradient));
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.product-icon {
  width: 56px; height: 56px; border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem; margin-bottom: 20px;
  background: var(--icon-bg, rgba(201,168,76,.1));
}
.product-card h3 { color: var(--color-navy); margin-bottom: 8px; }
.product-card p { color: var(--color-text-secondary); font-size: .95rem; flex: 1; margin-bottom: 20px; }
.product-card .btn { align-self: flex-start; }

/* Product accent colors */
.card-hotspots { --card-accent: linear-gradient(90deg, #f97316, #ef4444); --icon-bg: rgba(249,115,22,.1); }
.card-fishing-routes { --card-accent: linear-gradient(90deg, #3b82f6, #06b6d4); --icon-bg: rgba(59,130,246,.1); }
.card-fishing-game { --card-accent: linear-gradient(90deg, #22c55e, #14b8a6); --icon-bg: rgba(34,197,94,.1); }
.card-slang { --card-accent: linear-gradient(90deg, #a855f7, #8b5cf6); --icon-bg: rgba(168,85,247,.1); }
.card-trends { --card-accent: linear-gradient(90deg, #ef4444, #f97316); --icon-bg: rgba(239,68,68,.1); }

/* --- Product Page Template --- */
.product-hero {
  min-height: 55vh; display: flex; align-items: center; justify-content: center;
  text-align: center; padding: calc(var(--nav-height) + 40px) 24px 40px;
  background: var(--color-navy);
  position: relative; overflow: hidden;
}
.product-hero::before {
  content: ''; position: absolute; top: -30%; right: -15%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, var(--hero-glow, rgba(201,168,76,.08)) 0%, transparent 70%);
  pointer-events: none;
}
.product-hero-content { position: relative; z-index: 1; max-width: 720px; }
.product-hero-content .product-icon-lg { font-size: 3.5rem; margin-bottom: 20px; }
.product-hero-content h1 { color: var(--color-white); margin-bottom: 12px; }
.product-hero-content p { color: var(--color-text-secondary); font-size: 1.1rem; }
.product-body { padding: 60px 24px; max-width: var(--max-width); margin: 0 auto; }
.feature-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px; margin-top: 32px;
}
.feature-item {
  background: var(--color-white); padding: 28px;
  border-radius: var(--radius-md); box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--feature-color, var(--color-gold));
}
.feature-item h4 { margin-bottom: 8px; color: var(--color-navy); }
.feature-item p { color: var(--color-text-secondary); font-size: .9rem; }
.tech-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.tech-tag {
  padding: 6px 14px; border-radius: 20px;
  background: rgba(201,168,76,.1); color: var(--color-gold);
  font-size: .85rem; font-weight: 500;
}
.back-link {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--color-gold); font-weight: 600; margin-top: 40px;
  transition: gap .3s;
}
.back-link:hover { gap: 12px; }

/* --- Footer --- */
.footer {
  background: var(--color-navy); color: var(--color-text-secondary);
  padding: 48px 24px 32px; text-align: center;
}
.footer-inner { max-width: var(--max-width); margin: 0 auto; }
.footer-logo {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  font-size: 1.1rem; font-weight: 700; color: var(--color-white); margin-bottom: 16px;
}
.footer-links { display: flex; gap: 24px; justify-content: center; margin-bottom: 24px; flex-wrap: wrap; }
.footer-links a { color: var(--color-text-secondary); transition: color .2s; }
.footer-links a:hover { color: var(--color-gold); }
.footer-divider { border: none; border-top: 1px solid rgba(255,255,255,.08); margin: 24px 0; }
.footer-copy { font-size: .85rem; }

/* --- Scroll to top --- */
.scroll-top {
  position: fixed; bottom: 32px; right: 32px; z-index: 999;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--color-gold); border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; color: var(--color-navy);
  box-shadow: var(--shadow-gold); opacity: 0; visibility: hidden;
  transition: all .3s; transform: translateY(10px);
}
.scroll-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.scroll-top:hover { transform: translateY(-3px); }

/* --- Animations --- */
.fade-up {
  opacity: 0; transform: translateY(30px);
  transition: opacity .6s ease, transform .6s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* --- Product Embed (iframe) --- */
.product-embed {
  width: 100%; min-height: calc(100vh - var(--nav-height));
  border: none; display: block;
  margin-top: var(--nav-height);
}
.product-embed-wrapper {
  background: #0f0f0f;
}
.embed-loading {
  display: flex; align-items: center; justify-content: center;
  min-height: calc(100vh - var(--nav-height));
  color: var(--color-text-secondary); font-size: 1rem;
}
.embed-loading::before {
  content: ''; width: 24px; height: 24px;
  border: 2px solid rgba(201,168,76,.2); border-top-color: var(--color-gold);
  border-radius: 50%; animation: spin .8s linear infinite; margin-right: 10px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* --- Responsive --- */
@media (max-width: 768px) {
  .menu-toggle { display: block; }
  .nav-links {
    position: fixed; top: var(--nav-height); left: 0; right: 0;
    background: rgba(15,26,46,.98); backdrop-filter: blur(12px);
    flex-direction: column; padding: 24px; gap: 20px;
    transform: translateY(-110%); transition: transform .3s;
    border-bottom: 1px solid rgba(201,168,76,.15);
  }
  .nav-links.open { transform: translateY(0); }
  .dropdown-menu {
    position: static; transform: none; opacity: 1; visibility: visible;
    background: transparent; box-shadow: none; padding: 8px 0 8px 16px;
  }
  .nav-dropdown:hover .dropdown-menu { top: 0; }

  .about-grid { grid-template-columns: 1fr; }
  .about-stats { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: center; }
  .feature-grid { grid-template-columns: 1fr; }
}
