/* ===================== 全局样式 / 科技主题 ===================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg-dark:      #0a0c10;
  --bg-card:      #111520;
  --bg-card2:     #161b27;
  --bg-hover:     #1a2236;
  --border:       #1e2d45;
  --border-light: #243350;
  --accent:       #00d4ff;
  --accent2:      #0099cc;
  --accent-glow:  rgba(0, 212, 255, 0.15);
  --green:        #00e676;
  --yellow:       #ffd740;
  --red:          #ff5252;
  --purple:       #7c4dff;
  --text-primary: #e8eaf6;
  --text-secondary:#8fa3c0;
  --text-muted:   #4a5d78;
  --radius:       8px;
  --radius-lg:    12px;
  --shadow:       0 4px 20px rgba(0,0,0,0.4);
  --shadow-card:  0 2px 12px rgba(0,0,0,0.3);
  --transition:   all 0.25s ease;
  --font:         'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

html { scroll-behavior: smooth; }
body {
  background: var(--bg-dark);
  color: var(--text-primary);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.6;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ===================== 滚动条 ===================== */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: var(--border-light); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent2); }

/* ===================== 导航栏 ===================== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: 56px;
  background: rgba(10, 12, 16, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}
.navbar.scrolled {
  background: rgba(10, 12, 16, 0.98);
  box-shadow: 0 2px 20px rgba(0,0,0,0.5);
}
.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  height: 100%;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-logo { flex-shrink: 0; }
.logo-text {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 1px;
  color: #fff;
}
.logo-dot { color: var(--accent); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
}
.nav-item {
  padding: 6px 14px;
  border-radius: 6px;
  color: var(--text-secondary);
  font-size: 14px;
  transition: var(--transition);
  white-space: nowrap;
}
.nav-item:hover, .nav-item.active {
  color: var(--accent);
  background: var(--accent-glow);
}
.nav-item.active { color: #fff; font-weight: 500; }

.nav-actions { display: flex; align-items: center; gap: 12px; margin-left: auto; }

.btn-admin {
  padding: 7px 18px;
  background: var(--accent);
  color: #000 !important;
  font-weight: 600;
  font-size: 13px;
  border-radius: 6px;
  transition: var(--transition);
  white-space: nowrap;
}
.btn-admin:hover {
  background: #fff;
  box-shadow: 0 0 16px var(--accent);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-secondary);
  border-radius: 2px;
  transition: var(--transition);
}

/* ===================== 搜索框 ===================== */
.nav-search {
  flex: 1;
  max-width: 480px;
  display: flex;
  align-items: center;
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  transition: var(--transition);
}
.nav-search:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-glow);
}
.search-input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  padding: 8px 14px;
  color: var(--text-primary);
  font-size: 13px;
}
.search-input::placeholder { color: var(--text-muted); }
.search-btn {
  background: none;
  border: none;
  padding: 8px 12px;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
}
.search-btn:hover { color: var(--accent); }

/* ===================== 悬浮微信 ===================== */
.float-wechat {
  position: fixed;
  right: 20px;
  bottom: 80px;
  width: 44px;
  height: 44px;
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--green);
  z-index: 900;
  transition: var(--transition);
}
.float-wechat:hover {
  border-color: var(--green);
  box-shadow: 0 0 12px rgba(0,230,118,0.3);
}
.float-wechat-popup {
  position: absolute;
  right: 56px;
  bottom: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px;
  text-align: center;
  min-width: 140px;
  display: none;
  box-shadow: var(--shadow);
}
.float-wechat-popup p { color: var(--text-secondary); font-size: 12px; margin-top: 8px; }
.float-wechat:hover .float-wechat-popup { display: block; }

/* ===================== 页脚 ===================== */
.footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  position: relative;
}
.footer-main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 56px 24px 40px;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 64px;
  align-items: start;
}
.footer-brand .footer-logo {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 14px;
  letter-spacing: 1px;
}
.footer-brand-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 20px;
}
.footer-socials {
  display: flex;
  gap: 10px;
}
.footer-social-btn {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--bg-card2);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: var(--transition);
}
.footer-social-btn:hover {
  color: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 10px var(--accent-glow);
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.footer-col-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.footer-col-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-col-links li a {
  font-size: 13px;
  color: var(--text-muted);
  transition: var(--transition);
}
.footer-col-links li a:hover {
  color: var(--accent);
  padding-left: 4px;
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 18px 24px;
  text-align: center;
}
.footer-copy { color: var(--text-muted); font-size: 12px; }

@media (max-width: 1024px) {
  .footer-main {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .footer-cols { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  .footer-main { padding: 40px 16px 32px; }
  .footer-cols { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}

/* ===================== 通用卡片 ===================== */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: var(--transition);
}
.card:hover {
  border-color: var(--border-light);
  box-shadow: var(--shadow-card);
  transform: translateY(-2px);
}

/* ===================== 响应式 ===================== */
@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 56px;
    left: 0; right: 0;
    background: rgba(10,12,16,0.98);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 12px 16px;
    gap: 4px;
  }
  .nav-links.open { display: flex; }
  .nav-search { display: none; }
  .btn-admin { padding: 6px 12px; font-size: 12px; }
}
