/* ===== 暗区突围攻略站 — 共享样式 ===== */

* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: -apple-system, "Microsoft YaHei", "PingFang SC", sans-serif;
  background: #0a0a0f;
  color: #e0e0e0;
  line-height: 1.6;
}

/* ===== 导航栏 ===== */
.navbar {
  position: fixed; top: 0; width: 100%;
  background: rgba(10,10,15,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,200,50,0.15);
  z-index: 999;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 2rem; height: 60px;
}
.navbar .nav-links {
  display: flex; gap: 1.5rem; list-style: none; margin: 0; padding: 0;
}
.navbar #loginBtn {
  flex-shrink: 0;
}.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,200,50,0.15);
  z-index: 999;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 0 2rem; height: 60px;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
}
.navbar .nav-links {
  display: flex; gap: 1.5rem; list-style: none; margin: 0; padding: 0;
  justify-content: center; grid-column: 2;
}
.navbar #loginBtn {
  grid-column: 3; justify-self: end;
  flex-shrink: 0;
}
.navbar .logo {
  font-size: 1.3rem; font-weight: 700;
  color: #ffc832; letter-spacing: 1px;
}
.navbar .logo span { color: #888; font-weight: 300; }
.nav-links { display: flex; gap: 1.8rem; list-style: none; }
.nav-links a {
  color: #aaa; text-decoration: none; font-size: 0.92rem;
  transition: color 0.2s;
}
.nav-links a:hover { color: #ffc832; }

/* ===== Hero ===== */
.hero {
  margin-top: 60px;
  min-height: 70vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  background: linear-gradient(135deg, #0a0a0f 0%, #1a1508 50%, #0a0a0f 100%);
  padding: 3rem 2rem;
}
.hero h1 {
  font-size: 3.5rem; font-weight: 800;
  background: linear-gradient(135deg, #ffc832, #ff8c00);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1rem;
}
.hero p {
  font-size: 1.15rem; color: #999; max-width: 600px;
  margin-bottom: 2rem;
}
.hero .cta {
  display: inline-block;
  padding: 0.8rem 2.5rem;
  background: linear-gradient(135deg, #ffc832, #ff8c00);
  color: #0a0a0f; font-weight: 700; border-radius: 8px;
  text-decoration: none; font-size: 1rem;
  transition: transform 0.2s, box-shadow 0.2s;
}
.hero .cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255,200,50,0.3);
}
.hero .cta.secondary {
  background: transparent;
  border: 1px solid #ffc832;
  color: #ffc832;
  margin-left: 0.5rem;
}

/* ===== 通用 Section ===== */
section {
  max-width: 1100px; margin: 0 auto; padding: 4rem 2rem;
}
section h2 {
  font-size: 1.8rem; color: #ffc832;
  margin-bottom: 0.5rem; border-left: 4px solid #ffc832;
  padding-left: 1rem;
}
section .subtitle { color: #888; margin-bottom: 2.5rem; font-size: 0.95rem; }

/* ===== 卡片网格 ===== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}
.card {
  background: #12121a;
  border: 1px solid #1e1e2a;
  border-radius: 12px;
  padding: 1.5rem;
  transition: border-color 0.2s, transform 0.2s;
}
.card:hover {
  border-color: rgba(255,200,50,0.3);
  transform: translateY(-3px);
}
.card .icon { font-size: 2rem; margin-bottom: 0.8rem; display: block; }
.card h3 { font-size: 1.1rem; margin-bottom: 0.5rem; color: #fff; }
.card p { font-size: 0.88rem; color: #999; }
.card .tag {
  display: inline-block; margin-top: 0.8rem;
  padding: 0.2rem 0.7rem; border-radius: 4px;
  font-size: 0.75rem; font-weight: 600;
}
.tag-map    { background: #1a3a1a; color: #6f6; }
.tag-weapon { background: #3a1a1a; color: #f66; }
.tag-tip    { background: #1a1a3a; color: #66f; }

/* ===== 地图列表 ===== */
.map-list { display: flex; flex-direction: column; gap: 1rem; }
.map-item {
  display: flex; align-items: center; gap: 1.2rem;
  background: #12121a; border: 1px solid #1e1e2a;
  border-radius: 10px; padding: 1rem 1.2rem;
  transition: border-color 0.2s;
}
.map-item:hover { border-color: rgba(255,200,50,0.3); }
.map-item .map-icon { font-size: 2rem; width: 48px; text-align: center; }
.map-item .map-info { flex: 1; }
.map-item .map-info h4 { color: #fff; margin-bottom: 0.2rem; }
.map-item .map-info p { font-size: 0.85rem; color: #888; }
.map-item .diff {
  padding: 0.2rem 0.8rem; border-radius: 20px;
  font-size: 0.78rem; font-weight: 600;
}
.diff-easy { background: #1a3a1a; color: #6f6; }
.diff-med  { background: #3a3a1a; color: #ffc832; }
.diff-hard { background: #3a1a1a; color: #f66; }

/* ===== 通用 Tip 框 ===== */
.tip-box {
  background: #0f0f16; border-left: 3px solid #ffc832;
  padding: 0.8rem 1rem; border-radius: 0 8px 8px 0; margin: 1rem 0;
  font-size: 0.9rem; color: #ddd;
}
.tip-box strong { color: #ffc832; }

/* ===== Footer ===== */
footer {
  text-align: center; padding: 2rem; color: #555;
  border-top: 1px solid #1a1a22; font-size: 0.85rem;
}

/* ===== 物资点地图查看器 ===== */
.map-viewer {
  background: #12121a; border: 1px solid #1e1e2a;
  border-radius: 12px; overflow: hidden; margin-bottom: 2rem;
}
.map-image-container {
  position: relative; width: 100%; background: #0a0a0f;
}
.map-image {
  width: 100%; display: block; user-select: none;
}
.map-placeholder {
  width: 100%; aspect-ratio: 16/10; display: flex; flex-direction: column;
  align-items: center; justify-content: center; color: #555; gap: 0.5rem;
  font-size: 0.9rem;
}
.map-placeholder span { font-size: 3rem; }
.map-markers { position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; }
.map-marker {
  position: absolute; transform: translate(-50%, -50%);
  width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; pointer-events: auto;
  border: 2px solid rgba(255,255,255,0.5);
  transition: transform 0.15s, box-shadow 0.15s;
  z-index: 10;
}
.map-marker:hover {
  transform: translate(-50%, -50%) scale(1.3);
  box-shadow: 0 0 12px rgba(255,200,50,0.5);
  z-index: 100;
}
.map-marker .mm-icon { font-size: 0.75rem; line-height: 1; }

.map-controls {
  padding: 1rem 1.2rem; border-top: 1px solid #1e1e2a;
}
.mc-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 0.8rem;
}
.mc-title { color: #ffc832; font-weight: 600; font-size: 0.92rem; }
.mc-toggle-all {
  display: flex; align-items: center; gap: 0.4rem;
  cursor: pointer; font-size: 0.82rem; color: #999;
}
.mc-toggle-all input[type="checkbox"] {
  accent-color: #ffc832;
}
.mc-types {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
}
.mc-type-item {
  display: flex; align-items: center; gap: 0.3rem;
  padding: 0.3rem 0.6rem; background: #0f0f16;
  border-radius: 6px; cursor: pointer; font-size: 0.82rem; color: #ccc;
  user-select: none; transition: background 0.2s;
}
.mc-type-item:hover { background: #1a1a22; }
.mc-type-item input[type="checkbox"] { accent-color: #ffc832; }
.mc-dot {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%;
}

/* ===== 响应式 ===== */
@media (max-width: 640px) {
  .hero h1 { font-size: 2.2rem; }
  .navbar { padding: 0 1rem; }
  .nav-links { gap: 1rem; }
  .nav-links a { font-size: 0.82rem; }
  .card-grid { grid-template-columns: 1fr; }
}
