/* ============ 勿忘人生官网 · 通用样式 ============ */
:root {
  --primary: #2d5a3d;
  --primary-light: #4a8b5f;
  --accent: #d4a017;
  --accent-light: #f0c040;
  --bg-dark: #0f1419;
  --bg-card: #1a1f26;
  --bg-card-hover: #242a33;
  --text: #e8eaed;
  --text-dim: #9aa0a6;
  --border: #2d343d;
  --success: #4ade80;
  --danger: #ef4444;
  --warning: #f59e0b;
  --info: #3b82f6;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Segoe UI', 'Microsoft YaHei', -apple-system, sans-serif;
  background: var(--bg-dark);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}
a { color: var(--accent-light); text-decoration: none; }
a:hover { color: var(--accent); }

/* ============ 导航栏 ============ */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(15, 20, 25, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
  display: flex; align-items: center; justify-content: space-between;
  height: 60px;
}
.nav-brand {
  font-size: 1.3rem; font-weight: 700;
  color: var(--accent);
  display: flex; align-items: center; gap: 10px;
}
.nav-brand .mc-icon { font-size: 1.5rem; }
.nav-links { display: flex; gap: 6px; list-style: none; }
.nav-links a {
  padding: 8px 16px; border-radius: 8px;
  color: var(--text-dim); font-size: 0.95rem;
  transition: all 0.2s;
}
.nav-links a:hover, .nav-links a.active {
  background: var(--bg-card); color: var(--accent-light);
}
.nav-links a.active { background: var(--primary); color: #fff; }

/* ============ 容器 ============ */
.container { max-width: 1200px; margin: 0 auto; padding: 2rem; }

/* ============ Hero区 ============ */
.hero {
  background: linear-gradient(135deg, #1a3a2a 0%, #0f1419 100%);
  padding: 4rem 2rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.hero h1 {
  font-size: 3rem; font-weight: 800;
  background: linear-gradient(90deg, var(--accent), var(--success));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  margin-bottom: 1rem;
}
.hero .subtitle { font-size: 1.1rem; color: var(--text-dim); margin-bottom: 2rem; }
.hero-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 28px; border-radius: 10px;
  font-weight: 600; font-size: 1rem;
  border: none;
  cursor: pointer !important;
  transition: all 0.2s;
  text-decoration: none;
  user-select: none;
}
.btn:hover, .btn-primary:hover, .btn-accent:hover, .btn-ghost:hover {
  cursor: pointer !important;
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 6px 20px rgba(0,0,0,0.4);
  filter: brightness(1.1);
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-light); }
.btn-accent { background: var(--accent); color: #1a1a1a; }
.btn-accent:hover { background: var(--accent-light); }
.btn-ghost { background: transparent; border: 2px solid var(--border); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); background: rgba(212,160,23,0.1); }

/* 服务器信息卡片 */
.server-info {
  display: inline-flex; gap: 2rem; flex-wrap: wrap;
  background: var(--bg-card); padding: 1rem 2rem; border-radius: 12px;
  border: 1px solid var(--border); margin-top: 2rem;
}
.server-info .item { text-align: center; }
.server-info .label { font-size: 0.8rem; color: var(--text-dim); }
.server-info .value { font-size: 1.1rem; font-weight: 700; color: var(--accent); }
.copy-btn { cursor: pointer; padding: 2px 8px; font-size: 0.85rem; color: var(--accent-light); }

/* ============ 卡片网格 ============ */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.feature-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 14px; padding: 1.8rem;
  transition: all 0.25s;
}
.feature-card:hover { background: var(--bg-card-hover); transform: translateY(-4px); border-color: var(--primary); }
.feature-card .icon { font-size: 2rem; margin-bottom: 0.8rem; }
.feature-card h3 { font-size: 1.2rem; margin-bottom: 0.5rem; color: var(--accent-light); }
.feature-card p { color: var(--text-dim); font-size: 0.95rem; }

/* ============ 快速导航 ============ */
.quick-nav { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; margin-top: 2rem; }
.quick-nav a {
  display: block; background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 12px; padding: 1.5rem; text-align: center;
  transition: all 0.2s; color: var(--text);
}
.quick-nav a:hover { border-color: var(--accent); background: var(--bg-card-hover); }
.quick-nav .qicon { font-size: 2.5rem; display: block; margin-bottom: 0.5rem; }
.quick-nav .qname { font-weight: 600; font-size: 1.05rem; }

/* ============ 章节标题 ============ */
.section { padding: 3rem 0; }
.section-title {
  font-size: 1.8rem; font-weight: 700;
  margin-bottom: 1.5rem; padding-bottom: 0.8rem;
  border-bottom: 2px solid var(--primary);
  display: flex; align-items: center; gap: 10px;
}

/* ============ 搜索框 ============ */
.search-bar {
  display: flex; gap: 10px; margin-bottom: 1.5rem; flex-wrap: wrap;
}
.search-bar input, .search-bar select {
  background: var(--bg-card); border: 1px solid var(--border);
  color: var(--text); padding: 10px 14px; border-radius: 8px;
  font-size: 0.95rem; outline: none;
}
.search-bar input { flex: 1; min-width: 200px; }
.search-bar input:focus, .search-bar select:focus { border-color: var(--accent); }

/* ============ 结果列表 ============ */
.results { display: grid; gap: 1rem; }
.result-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 10px; padding: 1.2rem;
}
.result-card h4 { color: var(--accent-light); margin-bottom: 0.5rem; display: flex; align-items: center; gap: 8px; }
.tier-badge { font-size: 0.75rem; padding: 2px 8px; border-radius: 4px; font-weight: 700; }
.tier-badge.normal { background: #374151; color: #d1d5db; }
.tier-badge.elite { background: #7c3aed; color: #fff; }
.tier-badge.boss { background: #dc2626; color: #fff; }

/* 掉落条目 */
.drop-entry {
  display: flex; align-items: center; justify-content: space-between;
  padding: 6px 12px; margin: 4px 0;
  background: var(--bg-dark); border-radius: 6px; font-size: 0.9rem;
}
.drop-entry .item-id { font-family: monospace; color: var(--text); }
.drop-entry .prob { font-weight: 700; color: var(--accent-light); }
.prob-bar { width: 120px; height: 6px; background: #333; border-radius: 3px; overflow: hidden; }
.prob-bar-fill { height: 100%; background: linear-gradient(90deg, var(--primary), var(--accent)); border-radius: 3px; transition: width 0.3s; }

/* ============ 袭击 ============ */
.wave-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 12px; margin-bottom: 1rem; overflow: hidden;
}
.wave-header {
  background: var(--primary); padding: 0.8rem 1.2rem;
  display: flex; justify-content: space-between; align-items: center;
}
.wave-header .wave-num { font-size: 1.4rem; font-weight: 700; color: #fff; }
.wave-header .wave-level { color: rgba(255,255,255,0.8); font-size: 0.9rem; }
.wave-body { padding: 1rem 1.2rem; }
.wave-mobs { margin-bottom: 1rem; }
.wave-mob-chip {
  display: inline-block; background: var(--bg-dark);
  padding: 4px 10px; margin: 2px; border-radius: 6px;
  font-size: 0.85rem;
}
.wave-mob-chip .count { color: var(--accent-light); font-weight: 700; margin-left: 4px; }

/* ============ 套装 ============ */
.armor-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 1.5rem; }
.armor-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 14px; overflow: hidden; cursor: pointer;
  transition: all 0.2s;
}
.armor-card:hover { transform: translateY(-4px); border-color: var(--accent); }
.armor-header {
  padding: 1.2rem; text-align: center; color: #fff;
  font-weight: 700; font-size: 1.2rem;
}
.armor-body { padding: 1rem; }
.armor-piece {
  display: flex; justify-content: space-between; align-items: center;
  padding: 6px 10px; margin: 4px 0;
  background: var(--bg-dark); border-radius: 6px; font-size: 0.88rem;
  font-family: monospace;
}

/* ============ 配方 ============ */
.recipe-material {
  display: inline-flex; gap: 4px; background: var(--bg-dark);
  padding: 4px 10px; border-radius: 6px; margin: 2px;
  font-size: 0.88rem;
}
.time-badge { background: var(--info); color: #fff; padding: 2px 8px; border-radius: 4px; font-size: 0.8rem; }

/* ============ 标签 ============ */
.chip {
  display: inline-block; background: var(--bg-dark);
  color: var(--text-dim); padding: 2px 10px;
  border-radius: 12px; font-size: 0.8rem;
  margin: 2px;
}
.chip.active { background: var(--accent); color: #1a1a1a; font-weight: 600; }

/* ============ Tab ============ */
.tabs { display: flex; gap: 0; border-bottom: 2px solid var(--border); margin-bottom: 1.5rem; }
.tab {
  padding: 10px 24px; cursor: pointer;
  background: transparent; border: none; color: var(--text-dim);
  font-size: 1rem; font-weight: 600;
  border-bottom: 2px solid transparent; margin-bottom: -2px;
  transition: all 0.2s;
}
.tab.active { color: var(--accent); border-bottom-color: var(--accent); }
.tab-content { display: none; }
.tab-content.active { display: block; }

/* ============ Footer ============ */
.footer {
  text-align: center; padding: 2rem;
  border-top: 1px solid var(--border);
  color: var(--text-dim); font-size: 0.9rem;
  margin-top: 3rem;
}
.footer a { margin: 0 10px; }

/* ============ 时间线 ============ */
.timeline { position: relative; padding-left: 2rem; }
.timeline::before {
  content: ''; position: absolute; left: 8px; top: 0; bottom: 0;
  width: 2px; background: var(--border);
}
.timeline-item { position: relative; margin-bottom: 2rem; }
.timeline-item::before {
  content: ''; position: absolute; left: -28px; top: 6px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--accent); border: 3px solid var(--bg-dark);
}
.timeline-date { color: var(--accent); font-weight: 700; font-size: 0.9rem; }
.timeline-content { background: var(--bg-card); padding: 1rem; border-radius: 10px; border: 1px solid var(--border); margin-top: 0.5rem; }

/* ============ 响应式 ============ */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hero h1 { font-size: 2rem; }
  .container { padding: 1rem; }
  .hero { padding: 2rem 1rem; }
  .section { padding: 2rem 0; }
}
