/* 玄机阁 - 东方科技美学设计系统 */
/* Xuan Ji Ge - Oriental Tech Aesthetics Design System */

:root {
  /* 主色调 - 东方美学 */
  --ink-black: #1a1a1a;
  --ink-black-light: #2d2d2d;
  --cinnabar-red: #c9372c;
  --cinnabar-red-dark: #a02a22;
  --imperial-gold: #d4af37;
  --imperial-gold-light: #e5c158;
  --jade-green: #00a86b;
  --jade-green-light: #00c77e;
  
  /* 辅助色 */
  --deep-teal: #2d5a5a;
  --ink-wash: #f8f6f1;
  --paper-yellow: #f5f5dc;
  --gray-100: #f7f7f7;
  --gray-200: #e5e5e5;
  --gray-600: #666666;
  --gray-900: #1a1a1a;
  
  /* 功能色 */
  --success: #00a86b;
  --warning: #d4af37;
  --danger: #c9372c;
  --info: #2d5a5a;
  
  /* 字体 */
  --font-display: 'Noto Serif SC', 'Source Han Serif SC', 'STSong', 'SimSun', serif;
  --font-body: 'Noto Sans SC', 'Source Han Sans SC', 'Microsoft YaHei', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  
  /* 阴影 */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-gold: 0 0 20px rgba(212, 175, 55, 0.3);
  
  /* 圆角 */
  --radius-sm: 4px;
  --radius: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;
  
  /* 过渡 */
  --transition-fast: 150ms ease;
  --transition: 300ms ease;
  --transition-slow: 500ms ease;
}

/* 基础重置 */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--ink-wash);
  color: var(--ink-black);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

/* 水墨背景效果 */
.ink-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: 
    radial-gradient(ellipse at 20% 30%, rgba(0,0,0,0.03) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 70%, rgba(0,0,0,0.03) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 50%, rgba(212,175,55,0.02) 0%, transparent 70%),
    var(--ink-wash);
  animation: inkFlow 20s ease-in-out infinite;
}

@keyframes inkFlow {
  0%, 100% { 
    background-position: 0% 0%, 100% 100%, 50% 50%;
    transform: scale(1);
  }
  50% { 
    background-position: 2% 1%, 98% 99%, 52% 51%;
    transform: scale(1.02);
  }
}

/* 导航栏 */


/* ===== 平铺式导航栏样式 ===== */

.navbar-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--imperial-gold);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  transition: var(--transition);
  flex-shrink: 0;
}

.navbar-brand:hover {
  color: var(--imperial-gold-light);
  text-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

.navbar-brand-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--imperial-gold) 0%, var(--cinnabar-red) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  animation: rotate 20s linear infinite;
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* 平铺导航栏 */
.navbar-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge */
  flex: 1;
  margin-left: 1rem;
  padding: 0.25rem 0;
}

.navbar-nav::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

.nav-item {
  flex-shrink: 0;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.5rem 0.75rem;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-size: 0.85rem;
  border-radius: var(--radius);
  transition: var(--transition-fast);
  white-space: nowrap;
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

.nav-link.active {
  background: var(--cinnabar-red);
  color: white;
}

/* 移动端菜单按钮 */
.navbar-toggler {
  display: none;
  background: none;
  border: none;
  color: var(--imperial-gold);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
}

/* 移动端适配 */
@media (max-width: 768px) {
  .navbar-container {
    flex-wrap: wrap;
    height: auto;
    padding: 0.5rem 1rem;
  }
  
  .navbar-brand {
    font-size: 1.1rem;
  }
  
  .navbar-brand-icon {
    width: 32px;
    height: 32px;
    font-size: 1rem;
  }
  
  .navbar-nav {
    order: 3;
    width: 100%;
    margin-left: 0;
    margin-top: 0.5rem;
    padding: 0.25rem 0;
    gap: 0.15rem;
    overflow-x: scroll;
    -webkit-overflow-scrolling: touch;
  }
  
  .nav-link {
    padding: 0.4rem 0.6rem;
    font-size: 0.8rem;
  }
}
@media (max-width: 768px) {
  .dropdown-menu {
    position: static;
    display: none;
    box-shadow: none;
    border: none;
    background: rgba(0, 0, 0, 0.2);
    width: 100%;
    margin-top: 4px;
    animation: none;
  }
  
  .nav-dropdown::after {
    display: none;
  }
  
  .dropdown-menu::before {
    display: none;
  }
  
  .nav-dropdown.active .dropdown-menu {
    display: block;
  }
  
  .dropdown-item {
    padding: 12px 16px 12px 32px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }
  
  .dropdown-item:hover {
    background: rgba(201, 55, 44, 0.15);
    padding-left: 36px;
  }
  
  .dropdown-item::before {
    left: 16px;
  }
  
  .hot-tag {
    margin-left: 8px;
  }
}


/* ===== Footer 样式 ===== */
.footer {
  background: linear-gradient(135deg, var(--ink-black) 0%, #0f0f0f 100%);
  color: white;
  padding: 3rem 1rem 2rem;
  margin-top: 4rem;
  border-top: 3px solid var(--imperial-gold);
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--imperial-gold);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-link {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 0.95rem;
  transition: var(--transition);
  position: relative;
}

.footer-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--imperial-gold);
  transition: width 0.3s ease;
}

.footer-link:hover {
  color: var(--imperial-gold);
}

.footer-link:hover::after {
  width: 100%;
}

.footer-copyright {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  line-height: 1.8;
}

.footer-copyright a {
  color: rgba(255, 255, 255, 0.4);
  text-decoration: none;
  transition: var(--transition);
}

.footer-copyright a:hover {
  color: var(--imperial-gold);
}

@media (max-width: 768px) {
  .footer {
    padding: 2rem 1rem 1.5rem;
    margin-top: 2rem;
  }
  
  .footer-brand {
    font-size: 1.25rem;
  }
  
  .footer-links {
    gap: 1rem;
  }
  
  .footer-link {
    font-size: 0.9rem;
  }
}
