/* assets/style.css - 矿业智链统一现代化样式 */
:root {
  --primary: #0a192f; /* 深海蓝 - 专业沉稳 */
  --secondary: #112240; /* 中深蓝 */
  --accent: #00d4aa; /* 科技青 */
  --accent-dark: #00b894; /* 深科技青 */
  --blockchain: #4d7cff; /* 区块链蓝 */
  --gold: #ffb74d; /* 矿业金 */
  --text-primary: #e6f1ff; /* 主文字 */
  --text-secondary: #8892b0; /* 副文字 */
  --card-bg: rgba(17, 34, 64, 0.7); /* 卡片背景 */
  --border: rgba(100, 255, 218, 0.1); /* 边框 */
  --gradient: linear-gradient(135deg, #00d4aa 0%, #4d7cff 50%, #ffb74d 100%);
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  background: var(--primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  padding: 2rem;
}

/* 高级背景效果 */
.bg-particles {
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: -1;
  overflow: hidden;
}

.particle {
  position: absolute;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.1;
  animation: float 15s infinite linear;
}

.particle:nth-child(2n) {
  background: var(--blockchain);
}

.particle:nth-child(3n) {
  background: var(--gold);
}

@keyframes float {
  0% { transform: translateY(0) translateX(0); }
  25% { transform: translateY(-20px) translateX(10px); }
  50% { transform: translateY(10px) translateX(-10px); }
  75% { transform: translateY(-10px) translateX(-5px); }
  100% { transform: translateY(0) translateX(0); }
}

/* 区块链连接线效果 */
.blockchain-lines {
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: -1;
  opacity: 0.03;
  background-image: 
    linear-gradient(90deg, transparent 50%, var(--blockchain) 50%),
    linear-gradient(0deg, transparent 50%, var(--blockchain) 50%);
  background-size: 30px 30px;
}

/* 主容器 */
.container {
  max-width: 1200px;
  margin: 0 auto;
  background: rgba(10, 25, 47, 0.85);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border);
  backdrop-filter: blur(10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

    /* 导航栏 */
    .navbar {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      background: rgba(10, 25, 47, 0.9);
      backdrop-filter: blur(10px);
      border-bottom: 1px solid var(--border);
      z-index: 1000;
      padding: 1.2rem 0;
    }

    .nav-container {
      display: flex;
      justify-content: space-between;
      align-items: center;
      max-width: 1200px;
      margin: 0 auto;
      padding: 0 2rem;
    }

    .logo-brand {
      display: flex;
      align-items: center;
      gap: 1rem;
    }

    .logo {
      width: 48px;
      height: 48px;
      background: var(--gradient);
      border-radius: 12px;
      display: flex;
      align-items: center;
      justify-content: center;
      position: relative;
      overflow: hidden;
    }

    .logo::after {
      content: '⛏️🔗';
      font-size: 1.5rem;
      z-index: 2;
    }

    .logo::before {
      content: '';
      position: absolute;
      width: 100%;
      height: 100%;
      background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.1) 50%, transparent 70%);
      animation: shine 3s infinite;
    }

    @keyframes shine {
      0% { transform: translateX(-100%); }
      100% { transform: translateX(100%); }
    }

    .brand-text h1 {
      font-size: 1.5rem;
      font-weight: 700;
      background: var(--gradient);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
      line-height: 1.2;
    }

    .brand-text .tagline {
      font-size: 0.8rem;
      color: var(--text-secondary);
      font-weight: 500;
    }

    .nav-links {
      display: flex;
      gap: 2rem;
      align-items: center;
    }

    .nav-link {
      color: var(--text-primary);
      text-decoration: none;
      font-weight: 500;
      font-size: 0.95rem;
      padding: 0.5rem 1rem;
      border-radius: 6px;
      transition: all 0.3s ease;
      position: relative;
    }

    .nav-link:hover {
      color: var(--accent);
      background: rgba(0, 212, 170, 0.05);
    }

    .nav-link.active {
      color: var(--accent);
      background: rgba(0, 212, 170, 0.1);
    }

    .nav-link::after {
      content: '';
      position: absolute;
      bottom: -2px;
      left: 50%;
      transform: translateX(-50%);
      width: 0;
      height: 2px;
      background: var(--accent);
      transition: width 0.3s ease;
    }

    .nav-link:hover::after {
      width: 60%;
    }

/* 内容区域 */
.content-area {
  padding: 3rem;
}

.content-header {
  text-align: center;
  margin-bottom: 3rem;
}

.content-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  background: linear-gradient(to right, #fff, var(--accent), var(--blockchain));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.content-header .muted {
  color: var(--text-secondary);
  font-size: 1.1rem;
}

/* 文章样式 */
.article {
  max-width: 900px;
  margin: 0 auto;
}

.article-section {
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.article-section:last-child {
  border-bottom: none;
}

.article-section h3 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.article-section h3::before {
  content: '⚡';
}

.article-section h3.blockchain::before {
  content: '🔗';
  color: var(--blockchain);
}

.article-section p {
  color: var(--text-primary);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.article-section ul {
  list-style: none;
  margin: 1rem 0;
}

.article-section li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.8rem;
  line-height: 1.6;
  color: var(--text-primary);
}

.article-section li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: bold;
}

.article-section b {
  color: var(--accent);
  font-weight: 600;
}

.code {
  font-family: 'Consolas', 'Monaco', monospace;
  background: rgba(0, 0, 0, 0.3);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  color: var(--accent);
  border: 1px solid var(--border);
}

/* 高亮卡片 */
.highlight-card {
  background: linear-gradient(135deg, 
    rgba(0, 212, 170, 0.1), 
    rgba(77, 124, 255, 0.1), 
    rgba(255, 183, 77, 0.1));
  border-left: 3px solid var(--accent);
  padding: 1.5rem;
  margin: 1.5rem 0;
  border-radius: 0 8px 8px 0;
  animation: highlightPulse 3s infinite;
}

@keyframes highlightPulse {
  0%, 100% { border-left-color: var(--accent); }
  33% { border-left-color: var(--gold); }
  66% { border-left-color: var(--blockchain); }
}

/* 页脚 */
.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 3rem;
  background: rgba(15, 26, 45, 0.95);
  border-top: 1px solid var(--border);
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, 
    transparent, 
    var(--accent), 
    var(--gold),
    var(--blockchain),
    transparent);
}

.footer-content {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-content small {
  opacity: 0.7;
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.footer-link:hover {
  color: var(--accent);
}

/* 响应式设计 */
@media (max-width: 768px) {
  body {
    padding: 1rem;
  }
  
  .container {
    border-radius: 15px;
  }
  
  .navbar {
    flex-direction: column;
    text-align: center;
    padding: 1.5rem;
    gap: 1.5rem;
  }
  
  .brand {
    flex-direction: column;
    gap: 1rem;
  }
  
  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }
  
  .content-area {
    padding: 2rem 1.5rem;
  }
  
  .content-header h2 {
    font-size: 2rem;
  }
  
  .footer {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
    padding: 1.5rem;
  }
  
  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* 动画效果 */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeInUp 0.6s ease forwards;
  opacity: 0;
}

.fade-in:nth-child(1) { animation-delay: 0.1s; }
.fade-in:nth-child(2) { animation-delay: 0.2s; }
.fade-in:nth-child(3) { animation-delay: 0.3s; }
.fade-in:nth-child(4) { animation-delay: 0.4s; }
.fade-in:nth-child(5) { animation-delay: 0.5s; }