/* ROB RUN WIKI - 浅色控制台主题（参考 WARDOGS 控制台截图），三栏高信息密度自适应 */
:root {
  --bg: #f2f3f5;          /* 浅灰页面底 */
  --panel: #ffffff;       /* 白卡片 */
  --panel-2: #f6f7f9;     /* 次级浅底 */
  --border: #e5e7eb;      /* 浅边框 */
  --text: #1f2328;        /* 深灰正文 */
  --muted: #8a919e;       /* 次要灰 */
  --accent: #2fb9a8;      /* 青色闪电强调 */
  --accent-2: #b08a4a;    /* 棕金线条 */
  --danger: #d05a4a;
  --ok: #4f9d69;
  --blue: #4a90d9;
  --red: #d9534f;
  --green: #5cb85c;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  line-height: 1.6;
}

.container { max-width: 1280px; margin: 0 auto; padding: 0 16px; }

/* 顶部导航 */
.topbar {
  background: var(--panel);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 10;
  box-shadow: 0 1px 3px rgba(0,0,0,.04);
}
.topbar-inner { display: flex; align-items: center; gap: 24px; height: 56px; }
.logo { font-size: 20px; font-weight: 800; color: var(--text); text-decoration: none; }
.logo span { color: var(--accent); }
.nav { display: flex; gap: 4px; flex: 1; }
.nav a {
  color: var(--muted); text-decoration: none; padding: 6px 12px; border-radius: 6px; font-size: 14px;
}
.nav a:hover, .nav a.active { color: var(--accent); background: var(--panel-2); }

.steam-status {
  display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted);
  background: var(--panel-2); padding: 6px 12px; border-radius: 20px;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }

/* 三栏布局 */
.layout {
  display: grid;
  grid-template-columns: 200px 1fr 260px;
  gap: 20px;
  padding: 20px 16px;
}
.sidebar h3 { font-size: 14px; color: var(--muted); margin: 16px 0 10px; letter-spacing: 1px; }
.sidebar ul { list-style: none; }
.sidebar a { color: var(--text); text-decoration: none; display: block; padding: 6px 8px; border-radius: 6px; font-size: 14px; }
.sidebar a:hover { background: var(--panel-2); color: var(--accent); }
.sidebar a.active { color: var(--accent); font-weight: 600; }

/* 卡片 */
.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 18px;
  box-shadow: 0 1px 3px rgba(0,0,0,.04);
}
.card h1 { font-size: 26px; margin-bottom: 10px; }
.card h2 { font-size: 19px; margin-bottom: 12px; border-left: 3px solid var(--accent); padding-left: 10px; }
.card h3 { font-size: 16px; margin-bottom: 8px; }
.card p { color: var(--muted); margin-bottom: 10px; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.entry {
  background: var(--panel); border: 1px solid var(--border); border-radius: 10px;
  padding: 14px; text-decoration: none; color: var(--text); transition: .15s;
}
.entry:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: 0 4px 12px rgba(47,185,168,.12); }
.entry h3 { color: var(--text); }
.entry p { font-size: 13px; margin: 0; }

.btn {
  display: inline-block; padding: 8px 18px; border-radius: 8px; text-decoration: none; font-size: 14px;
  cursor: pointer; border: 1px solid transparent;
}
.btn.primary { background: var(--accent); color: #fff; }
.btn.ghost { border: 1px solid var(--border); color: var(--muted); background: var(--panel); }
.cta-row { display: flex; gap: 12px; margin-top: 12px; }

.news-list { list-style: none; }
.news-list li { padding: 8px 0; border-bottom: 1px dashed var(--border); font-size: 14px; }
.news-list li:last-child { border-bottom: none; }
.date { color: var(--muted); margin-right: 10px; font-size: 12px; }

.stat-box {
  background: var(--panel-2); border-radius: 10px; padding: 16px; text-align: center;
}
.stat-num { font-size: 28px; font-weight: 800; color: var(--accent); }
.stat-label { font-size: 12px; color: var(--muted); }
.hot-list li { margin-bottom: 6px; }

.footer { border-top: 1px solid var(--border); padding: 20px 0; color: var(--muted); font-size: 13px; text-align: center; }

/* Hero 横幅 */
.hero {
  background: linear-gradient(135deg, #1f3d3a 0%, #23564f 55%, #2fb9a8 130%);
  border-radius: 14px; padding: 34px 30px; margin-bottom: 18px; color: #fff;
  box-shadow: 0 6px 20px rgba(31,61,58,.25);
}
.hero h1 { font-size: 28px; margin-bottom: 8px; letter-spacing: .5px; }
.hero p { color: rgba(255,255,255,.82); font-size: 15px; margin-bottom: 18px; }
.hero-stats { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 20px; }
.hero-stat {
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.18);
  border-radius: 10px; padding: 12px 18px; min-width: 120px;
}
.hero-num { font-size: 24px; font-weight: 800; }
.hero-label { font-size: 12px; color: rgba(255,255,255,.75); }
.hero .cta-row .btn.ghost { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.3); }

/* 搜索框 */
.search-box { position: relative; max-width: 520px; margin-bottom: 18px; }
.search-box input {
  width: 100%; padding: 11px 16px; border-radius: 10px; border: none; font-size: 15px;
  background: rgba(255,255,255,.95); color: var(--text); box-shadow: 0 2px 8px rgba(0,0,0,.12);
}
.search-box input:focus { outline: none; background: #fff; }
.search-results {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 20;
  background: var(--panel); border: 1px solid var(--border); border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,.15); display: none; overflow: hidden;
}
.search-item {
  display: flex; flex-direction: column; gap: 2px; padding: 11px 14px; text-decoration: none;
  color: var(--text); border-bottom: 1px solid var(--border);
}
.search-item:last-child { border-bottom: none; }
.search-item:hover { background: var(--panel-2); }
.search-item strong { font-size: 14px; }
.search-item span { font-size: 12.5px; color: var(--muted); }
.search-empty { padding: 14px; color: var(--muted); font-size: 14px; }

/* 筛选条 */
.filter-bar { display: flex; flex-direction: column; gap: 10px; margin: 4px 0 14px; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  border: 1px solid var(--border); background: var(--panel); color: var(--muted);
  padding: 5px 13px; border-radius: 16px; font-size: 13px; cursor: pointer; transition: .15s;
}
.chip:hover { border-color: var(--accent); color: var(--accent); }
.chip.active { background: var(--accent); color: #fff; border-color: var(--accent); }
.filter-input {
  max-width: 360px; padding: 9px 14px; border: 1px solid var(--border); border-radius: 8px;
  font-size: 14px; background: var(--panel); color: var(--text);
}
.filter-input:focus { outline: none; border-color: var(--accent); }

/* 地图图例 */
.legend-row { display: flex; flex-wrap: wrap; gap: 16px; margin: 4px 0 8px; font-size: 13px; color: var(--muted); }
.legend { display: inline-flex; align-items: center; gap: 6px; }
.legend i.dot { width: 10px; height: 10px; border-radius: 50%; }

.stars { color: var(--accent-2); letter-spacing: 2px; font-size: 14px; }

/* 站点统计条 */
.site-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; padding: 18px 20px; }
.stat-tile { text-align: center; padding: 10px 6px; border-right: 1px solid var(--border); }
.stat-tile:last-child { border-right: none; }
.stat-tile .stat-num { font-size: 26px; font-weight: 800; color: var(--accent); }
.stat-tile .stat-label { font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.stat-tile a { font-size: 12px; color: var(--accent); text-decoration: none; }
@media (max-width: 720px) { .site-stats { grid-template-columns: repeat(2, 1fr); } .stat-tile { border-right: none; } }

/* 地图点位速查 */
.point-list { list-style: none; }
.point-list li { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px dashed var(--border); font-size: 14px; color: var(--text); }
.point-list li:last-child { border-bottom: none; }
.point-list a { color: var(--accent); text-decoration: none; }
.pnum { width: 24px; height: 24px; flex: 0 0 24px; border-radius: 50%; color: #fff; font-size: 13px; font-weight: bold; display: inline-flex; align-items: center; justify-content: center; }

/* 内容页通用 */
.page-title { font-size: 24px; margin-bottom: 16px; }
.tag { display: inline-block; font-size: 12px; padding: 2px 8px; border-radius: 10px; margin-right: 6px; }
.tag.easy { background: #e6f2ea; color: var(--ok); }
.tag.mid { background: #f5eede; color: var(--accent-2); }
.tag.hard { background: #f7e9e6; color: var(--danger); }

table.data { width: 100%; border-collapse: collapse; font-size: 14px; }
table.data th, table.data td { border: 1px solid var(--border); padding: 8px 10px; text-align: left; }
.table-wrap { overflow-x: auto; }
table.data th { background: var(--panel-2); color: var(--muted); }

/* 表单 */
.form { display: flex; flex-direction: column; gap: 12px; max-width: 560px; }
.form label { font-size: 14px; color: var(--muted); display: flex; flex-direction: column; gap: 4px; }
.form input, .form textarea {
  background: var(--panel); border: 1px solid var(--border); color: var(--text);
  padding: 9px 12px; border-radius: 8px; font-size: 14px; font-family: inherit;
}
.form input:focus, .form textarea:focus { outline: none; border-color: var(--accent); }
.form-msg { font-size: 13px; color: var(--ok); }
.recruit-item {
  background: var(--panel-2); border: 1px solid var(--border); border-radius: 8px;
  padding: 12px; margin-bottom: 10px;
}
.recruit-item p { margin: 6px 0; color: var(--text); }
.recruit-item small { color: var(--muted); }
.recruit-head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.muted { color: var(--muted); }

/* 响应式 */
@media (max-width: 1024px) {
  .layout { grid-template-columns: 180px 1fr; }
  .sidebar.right { display: none; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .layout { grid-template-columns: 1fr; }
  .sidebar.left { display: none; }
  .grid-3 { grid-template-columns: 1fr; }
  .nav { overflow-x: auto; }
  .steam-status { display: none; }
}
