/* ============================================
   AI Map - 共享样式
   DESIGN: Dark Cyberpunk + Neon Glow
   ============================================ */

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

:root {
  --bg-primary: #0a0a0f;
  --bg-secondary: #12121a;
  --bg-card: #16161f;
  --bg-card-hover: #1c1c28;
  --border: #2a2a3a;
  --border-glow: #00e5ff33;
  --text-primary: #e8e8f0;
  --text-secondary: #8888a0;
  --text-muted: #55556a;
  --accent-cyan: #00e5ff;
  --accent-purple: #b44aff;
  --accent-pink: #ff3d8f;
  --accent-green: #00ff88;
  --accent-orange: #ff8800;
  --accent-yellow: #ffe033;
  --gradient-1: linear-gradient(135deg, #00e5ff, #b44aff);
  --gradient-2: linear-gradient(135deg, #ff3d8f, #ff8800);
  --gradient-3: linear-gradient(135deg, #00ff88, #00e5ff);
  --shadow-glow: 0 0 30px rgba(0, 229, 255, 0.15);
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.4);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-xs: 6px;
  --font-display: 'Space Mono', 'Noto Sans SC', monospace;
  --font-body: 'Noto Sans SC', sans-serif;
  --font-code: 'JetBrains Mono', monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

/* Background */
.bg-mesh {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.bg-mesh .orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.3;
  animation: float 20s ease-in-out infinite;
}
.bg-mesh .orb:nth-child(1) {
  width: 600px; height: 600px;
  background: var(--accent-cyan);
  top: -10%; left: -10%;
  animation-delay: 0s;
  animation-duration: 25s;
}
.bg-mesh .orb:nth-child(2) {
  width: 500px; height: 500px;
  background: var(--accent-purple);
  top: 40%; right: -15%;
  animation-delay: -8s;
  animation-duration: 22s;
}
.bg-mesh .orb:nth-child(3) {
  width: 400px; height: 400px;
  background: var(--accent-pink);
  bottom: -5%; left: 30%;
  animation-delay: -15s;
  animation-duration: 28s;
}
@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(50px, -80px) scale(1.1); }
  50% { transform: translate(-30px, 50px) scale(0.95); }
  75% { transform: translate(60px, 30px) scale(1.05); }
}
.bg-mesh::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  opacity: 0.5;
}
.bg-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(0, 229, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 229, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}

.container {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Navigation */
.nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  background: rgba(10, 10, 15, 0.8);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.nav-logo .logo-icon {
  width: 36px;
  height: 36px;
  background: var(--gradient-1);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  color: var(--bg-primary);
  font-family: var(--font-code);
}
.nav-logo .logo-text {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.5px;
}
.nav-logo .logo-text span {
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.nav-links {
  display: flex;
  gap: 8px;
  align-items: center;
}
.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  padding: 8px 16px;
  border-radius: var(--radius-xs);
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s;
}
.nav-links a:hover {
  color: var(--accent-cyan);
  background: rgba(0, 229, 255, 0.08);
}
.nav-links a.active {
  color: var(--accent-cyan);
  background: rgba(0, 229, 255, 0.12);
}

/* Section */
.section {
  padding: 60px 0;
  position: relative;
  z-index: 1;
}
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
}
.section-title {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.5px;
}
.section-title .accent { color: var(--accent-cyan); }

/* Tabs */
.tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.tab-btn {
  padding: 8px 18px;
  border: 1px solid var(--border);
  border-radius: 100px;
  background: transparent;
  color: var(--text-secondary);
  font-size: 14px;
  font-family: var(--font-body);
  cursor: pointer;
  transition: all 0.2s;
}
.tab-btn:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}
.tab-btn.active {
  background: rgba(0, 229, 255, 0.12);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

/* Cards Grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 20px;
}
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-1);
  opacity: 0;
  transition: opacity 0.3s;
}
.card:hover {
  border-color: var(--border-glow);
  background: var(--bg-card-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}
.card:hover::before { opacity: 1; }
.card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 16px;
}
.card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}
.card-icon.agent { background: linear-gradient(135deg, #00e5ff22, #b44aff22); border: 1px solid #00e5ff33; }
.card-icon.skill { background: linear-gradient(135deg, #00ff8822, #00e5ff22); border: 1px solid #00ff8833; }
.card-icon.framework { background: linear-gradient(135deg, #b44aff22, #ff3d8f22); border: 1px solid #b44aff33; }
.card-icon.tool { background: linear-gradient(135deg, #ff880022, #ffe03322); border: 1px solid #ff880033; }
.card-hot {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--accent-orange);
  font-weight: 700;
  padding: 4px 10px;
  background: rgba(255, 136, 0, 0.1);
  border-radius: 100px;
  border: 1px solid rgba(255, 136, 0, 0.2);
}
.card-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.3px;
}
.card-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.tag {
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 500;
  border: 1px solid;
}
.tag.cyan { color: var(--accent-cyan); border-color: rgba(0, 229, 255, 0.2); background: rgba(0, 229, 255, 0.06); }
.tag.purple { color: var(--accent-purple); border-color: rgba(180, 74, 255, 0.2); background: rgba(180, 74, 255, 0.06); }
.tag.pink { color: var(--accent-pink); border-color: rgba(255, 61, 143, 0.2); background: rgba(255, 61, 143, 0.06); }
.tag.green { color: var(--accent-green); border-color: rgba(0, 255, 136, 0.2); background: rgba(0, 255, 136, 0.06); }
.tag.orange { color: var(--accent-orange); border-color: rgba(255, 136, 0, 0.2); background: rgba(255, 136, 0, 0.06); }
.tag.yellow { color: var(--accent-yellow); border-color: rgba(255, 224, 51, 0.2); background: rgba(255, 224, 51, 0.06); }
.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.card-meta {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 12px;
}
.card-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}
.card-action {
  font-size: 13px;
  color: var(--accent-cyan);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 4px;
}
.card-action:hover { text-decoration: underline; gap: 8px; }

/* Filter Bar */
.filter-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 14px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--font-body);
}
.filter-chip:hover {
  border-color: var(--accent-cyan);
  color: var(--text-primary);
}
.filter-chip.active {
  background: rgba(0, 229, 255, 0.1);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}
.filter-chip .chip-count {
  font-size: 11px;
  padding: 1px 6px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
}
.filter-chip.active .chip-count {
  background: rgba(0, 229, 255, 0.15);
  color: var(--accent-cyan);
}

/* Timeline */
.timeline {
  position: relative;
  padding-left: 32px;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent-cyan), var(--accent-purple), transparent);
}
.timeline-item {
  position: relative;
  margin-bottom: 24px;
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: all 0.2s;
}
.timeline-item:hover {
  border-color: var(--border-glow);
  transform: translateX(4px);
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: -28px;
  top: 24px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent-cyan);
  border: 2px solid var(--bg-primary);
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.4);
}
.timeline-date {
  font-size: 12px;
  color: var(--text-muted);
  font-family: var(--font-code);
  margin-bottom: 6px;
}
.timeline-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
}
.timeline-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Search Box */
.search-box {
  max-width: 560px;
  margin: 0 auto 40px;
  position: relative;
}
.search-box input {
  width: 100%;
  padding: 16px 20px 16px 52px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-size: 16px;
  font-family: var(--font-body);
  outline: none;
  transition: all 0.3s;
}
.search-box input::placeholder { color: var(--text-muted); }
.search-box input:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.15), var(--shadow-glow);
}
.search-box .search-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 18px;
  pointer-events: none;
}

/* Hero Stats */
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin-top: 48px;
}
.hero-stat { text-align: center; }
.hero-stat .stat-num {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-stat .stat-label {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Submit Section */
.submit-section {
  text-align: center;
  padding: 60px 0;
}
.submit-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: var(--gradient-1);
  border: none;
  border-radius: var(--radius);
  color: var(--bg-primary);
  font-size: 16px;
  font-weight: 700;
  font-family: var(--font-body);
  cursor: pointer;
  transition: all 0.3s;
}
.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 229, 255, 0.3);
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 48px 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
  position: relative;
  z-index: 1;
}
.footer a {
  color: var(--accent-cyan);
  text-decoration: none;
}
.footer a:hover { text-decoration: underline; }

/* Animations */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-in {
  opacity: 1;
  transform: translateY(0);
  animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Loading */
.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px;
  color: var(--text-muted);
}
.loading::after {
  content: '';
  width: 20px;
  height: 20px;
  margin-left: 10px;
  border: 2px solid var(--accent-cyan);
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 768px) {
  .hero-stats { gap: 24px; flex-wrap: wrap; }
  .cards-grid { grid-template-columns: 1fr; }
  .section-header { flex-direction: column; align-items: flex-start; gap: 16px; }
  .nav-links { display: none; }
}

/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* 淘宝客导航按钮 */
.nav-taobao {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 14px;
  background: linear-gradient(135deg, #ff6b6b, #ff4757);
  border-radius: 100px;
  color: #fff !important;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 0 12px rgba(255, 71, 87, 0.4);
  transition: all 0.3s ease;
  margin-left: 16px;
  margin-right: auto;
}
.nav-taobao:hover {
  box-shadow: 0 0 20px rgba(255, 71, 87, 0.7);
  transform: translateY(-1px);
}


/* ============================================
   淘宝客浮动按钮 - 霓虹胶囊
   ============================================ */
.float-taobao {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 14px 18px 14px 22px;
  background: linear-gradient(135deg, #ff3d71 0%, #ff6b6b 50%, #ff8e53 100%);
  border-radius: 100px 0 0 100px;
  color: #fff !important;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 1px;
  box-shadow: 
    -4px 0 20px rgba(255, 61, 113, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 9999;
  cursor: pointer;
  backdrop-filter: blur(10px);
}
.float-taobao::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 100px 0 0 100px;
  padding: 2px;
  background: linear-gradient(135deg, #ff8e53, #ff3d71);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.6;
}
.float-taobao span:first-child {
  font-size: 18px;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}
.float-taobao .float-text {
  text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}
.float-taobao:hover {
  padding-right: 28px;
  transform: translateY(-50%) translateX(-6px);
  box-shadow: 
    -8px 0 30px rgba(255, 61, 113, 0.7),
    0 0 0 1px rgba(255, 255, 255, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.float-taobao:active {
  transform: translateY(-50%) translateX(-3px) scale(0.98);
}
/* 脉冲动画 */
@keyframes taobaoPulse {
  0%, 100% { box-shadow: -4px 0 20px rgba(255, 61, 113, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.15); }
  50% { box-shadow: -4px 0 30px rgba(255, 61, 113, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.2), 0 0 20px rgba(255, 61, 113, 0.4); }
}
.float-taobao {
  animation: taobaoPulse 2s ease-in-out infinite;
}
.float-taobao:hover {
  animation: none;
}
/* 移动端适配 */
@media (max-width: 768px) {
  .float-taobao {
    padding: 12px 14px 12px 18px;
    font-size: 13px;
  }
  .float-taobao span:first-child {
    font-size: 16px;
  }
}

/* ============================================
   访问统计
   ============================================ */
.visit-stats {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.visit-stat-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-secondary);
}
.visit-icon {
  font-size: 14px;
}
.visit-label {
  opacity: 0.7;
}
.visit-num {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  min-width: 40px;
}
.visit-stat-item:last-child .visit-num {
  background: var(--gradient-2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
@media (max-width: 480px) {
  .visit-stats {
    gap: 20px;
  }
  .visit-stat-item {
    font-size: 12px;
  }
  .visit-num {
    font-size: 14px;
  }
}

/* ============================================
   FAQ 页面样式
   ============================================ */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}
.faq-item {
  margin-bottom: 24px;
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all 0.3s ease;
}
.faq-item:hover {
  border-color: var(--accent-cyan);
  box-shadow: 0 4px 20px rgba(0, 229, 255, 0.1);
}
.faq-question {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.faq-answer {
  color: var(--text-secondary);
  line-height: 1.8;
}
.faq-answer p {
  margin-bottom: 12px;
}
.faq-answer ul, .faq-answer ol {
  margin: 12px 0 12px 24px;
}
.faq-answer li {
  margin-bottom: 8px;
}
.faq-answer strong {
  color: var(--text-primary);
}
.faq-answer a {
  color: var(--accent-cyan);
  text-decoration: none;
}
.faq-answer a:hover {
  text-decoration: underline;
}
