/* XCMC 玩家社区 - 全局样式 */
:root {
  --bg-dark: #0f0f23;
  --bg-card: #1a1a2e;
  --bg-card2: #16213e;
  --accent: #00d4ff;
  --accent2: #0099cc;
  --danger: #ff4466;
  --success: #4caf50;
  --text: #e0e0e0;
  --text-dim: #888888;
  --text-muted: #555555;
  --border: rgba(0,212,255,0.1);
}
* { margin:0; padding:0; box-sizing:border-box; }
body {
  font-family: -apple-system, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  background: var(--bg-dark);
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* 导航 */
.nav {
  background: linear-gradient(135deg, #1a1a2e, #16213e);
  border-bottom: 1px solid var(--border);
  padding: 0 20px;
  display: flex;
  align-items: center;
  height: 56px;
  position: sticky; top: 0; z-index: 100;
}
.nav-brand {
  font-size: 20px; font-weight: bold;
  color: var(--accent);
  margin-right: 30px;
}
.nav-links { display: flex; gap: 4px; flex:1; }
.nav-links a {
  padding: 8px 16px; border-radius: 8px;
  color: var(--text-dim); font-size: 14px;
  transition: all .2s;
}
.nav-links a:hover, .nav-links a.active {
  background: rgba(0,212,255,0.1);
  color: var(--accent);
  text-decoration: none;
}
.nav-user { display:flex; align-items:center; gap:12px; }
.nav-user .avatar {
  width:32px; height:32px; border-radius:50%;
  background: var(--bg-card); border:2px solid var(--border);
}
.btn {
  display:inline-block; padding:8px 20px; border-radius:20px;
  font-size:14px; font-weight:bold; border:none; cursor:pointer;
  transition: all .2s;
}
.btn-primary { background:linear-gradient(135deg,var(--accent),var(--accent2)); color:#fff; }
.btn-primary:hover { opacity:0.9; }
.btn-danger { background:rgba(255,68,102,0.15); color:var(--danger); border:1px solid rgba(255,68,102,0.3); }
.btn-sm { padding:4px 12px; font-size:12px; }

/* 容器 */
.container { max-width:960px; margin:0 auto; padding:20px; }

/* 卡片 */
.card {
  background: linear-gradient(135deg, var(--bg-card), var(--bg-card2));
  border-radius: 12px; padding: 20px;
  border: 1px solid var(--border);
  margin-bottom: 16px;
}

/* 帖子 */
.post-card { transition: transform .15s; }
.post-card:hover { transform: translateY(-2px); }
.post-header { display:flex; align-items:center; gap:10px; margin-bottom:12px; }
.post-avatar {
  width:40px; height:40px; border-radius:50%;
  background:var(--bg-dark); border:2px solid var(--border);
}
.post-username { font-weight:bold; color:#fff; }
.post-time { font-size:12px; color:var(--text-muted); }
.post-tag {
  font-size:11px; color:var(--accent);
  background:rgba(0,212,255,0.1); padding:2px 8px;
  border-radius:10px; border:1px solid rgba(0,212,255,0.2);
}
.post-category {
  margin-left:auto; font-size:11px; color:var(--accent);
  background:rgba(0,212,255,0.08); padding:3px 10px; border-radius:10px;
}
.post-title { font-size:18px; font-weight:bold; color:#fff; margin-bottom:8px; }
.post-content { color:var(--text-dim); margin-bottom:12px; word-break:break-word; }
.post-images { display:flex; gap:8px; flex-wrap:wrap; margin-bottom:12px; }
.post-images img {
  width:140px; height:140px; object-fit:cover;
  border-radius:8px; cursor:pointer; background:var(--bg-dark);
}
.post-actions {
  display:flex; gap:20px; padding-top:12px;
  border-top:1px solid rgba(255,255,255,0.05);
}
.post-actions a { color:var(--text-muted); font-size:13px; }
.post-actions a:hover { color:var(--accent); text-decoration:none; }

/* 分类栏 */
.category-bar { display:flex; gap:8px; margin-bottom:20px; flex-wrap:wrap; }
.category-bar a {
  padding:6px 16px; border-radius:20px; font-size:13px;
  color:#bbbbbb; background:rgba(255,255,255,0.06);
  border:1px solid rgba(255,255,255,0.12);
}
.category-bar a:hover, .category-bar a.active {
  color:var(--accent); background:rgba(0,212,255,0.1);
  border-color:rgba(0,212,255,0.3); text-decoration:none;
}

/* 服务器状态 */
.server-hero {
  border-radius:16px; padding:30px; text-align:center;
  margin-bottom:20px; position:relative; overflow:hidden;
}
.server-hero.online { background:linear-gradient(135deg,#1a2a3a,#0d2137); border:1px solid rgba(0,212,255,0.15); }
.server-hero.offline { background:linear-gradient(135deg,#2a1a1a,#37200d); border:1px solid rgba(244,67,54,0.15); }
.server-name { font-size:28px; font-weight:bold; color:#fff; margin-bottom:8px; }
.server-addr { font-size:14px; color:var(--accent); cursor:pointer; }
.server-addr:hover { text-decoration:underline; }
.players-big { font-size:60px; font-weight:bold; color:var(--accent); line-height:1; }
.players-slash { font-size:28px; color:var(--text-muted); margin:0 4px; }
.players-max { font-size:28px; color:var(--text-dim); font-weight:bold; }
.players-label { font-size:12px; color:var(--text-muted); margin-top:4px; }
.players-bar { width:100%; height:6px; background:rgba(255,255,255,0.08); border-radius:3px; margin-top:16px; overflow:hidden; }
.players-bar-fill { height:100%; background:linear-gradient(90deg,var(--accent),#00e5ff); border-radius:3px; transition:width .5s; }
.info-grid { display:grid; grid-template-columns:1fr 1fr; gap:12px; margin-bottom:20px; }
.info-item {
  background:var(--bg-card); border-radius:12px; padding:16px;
  text-align:center; border:1px solid var(--border);
}
.info-item .value { font-size:15px; font-weight:bold; color:#fff; word-break:break-all; }
.info-item .label { font-size:11px; color:var(--text-muted); margin-top:2px; }
.player-tags { display:flex; flex-wrap:wrap; gap:8px; }
.player-tag {
  font-size:12px; color:var(--accent);
  background:rgba(0,212,255,0.08); padding:4px 10px;
  border-radius:14px; border:1px solid rgba(0,212,255,0.15);
}

/* 个人中心 */
.profile-header { text-align:center; padding:30px 0; }
.profile-avatar {
  width:80px; height:80px; border-radius:50%;
  border:3px solid rgba(0,212,255,0.4); background:var(--bg-dark);
}
.profile-nickname { font-size:22px; font-weight:bold; color:#fff; margin-top:10px; }
.profile-mc { font-size:13px; color:var(--accent); }
.stats-row {
  display:flex; justify-content:space-around;
  background:var(--bg-card); border-radius:12px; padding:20px;
  border:1px solid var(--border); margin-bottom:20px;
}
.stat-item { text-align:center; }
.stat-value { font-size:22px; font-weight:bold; color:#fff; }
.stat-label { font-size:11px; color:var(--text-muted); }

/* 菜单 */
.menu-card {
  background:var(--bg-card); border-radius:12px;
  border:1px solid var(--border); overflow:hidden;
}
.menu-item {
  display:flex; align-items:center; padding:14px 20px;
  border-bottom:1px solid rgba(255,255,255,0.05);
  color:var(--text); font-size:14px; cursor:pointer;
  transition:background .15s;
}
.menu-item:hover { background:rgba(0,212,255,0.05); }
.menu-item:last-child { border-bottom:none; }
.menu-icon { margin-right:10px; }
.menu-arrow { margin-left:auto; color:var(--text-muted); }

/* 表单 */
.form-group { margin-bottom:18px; }
.form-label { display:block; font-size:12px; color:var(--accent); margin-bottom:6px; font-weight:bold; }
.form-input {
  width:100%; padding:10px 14px; border-radius:10px;
  background:rgba(255,255,255,0.03); border:1px solid rgba(0,212,255,0.15);
  color:#fff; font-size:14px;
}
.form-input:focus { outline:none; border-color:var(--accent); }
.form-input::placeholder { color:var(--text-muted); }
select.form-input { background:var(--bg-card); color:#fff; }
select.form-input option { background:var(--bg-dark); color:#fff; }
textarea.form-input { height:120px; resize:vertical; }

/* 图片上传 */
.upload-area {
  border:2px dashed rgba(0,212,255,0.3); border-radius:12px;
  padding:30px; text-align:center; cursor:pointer;
  color:var(--text-muted); transition:all .2s;
}
.upload-area:hover { border-color:var(--accent); color:var(--accent); }
.image-grid { display:flex; flex-wrap:wrap; gap:10px; margin-top:12px; }
.image-grid img { width:100px; height:100px; object-fit:cover; border-radius:8px; }

/* 空状态 */
.empty-state { text-align:center; padding:60px 20px; }
.empty-icon { font-size:50px; margin-bottom:12px; }
.empty-text { font-size:16px; color:var(--text-muted); }

/* 删除按钮 */
.btn-delete {
  font-size:12px; color:var(--danger);
  padding:4px 12px; border:1px solid rgba(244,67,54,0.3);
  border-radius:14px; background:none; cursor:pointer;
}
.btn-fav { font-size:12px; cursor:pointer; background:none; border:none; color:var(--text-muted); }

/* 灯箱 */
.lightbox {
  position:fixed; inset:0; background:rgba(0,0,0,0.9);
  display:flex; align-items:center; justify-content:center;
  z-index:1000; cursor:pointer;
}
.lightbox img { max-width:90vw; max-height:90vh; border-radius:8px; }

/* 响应式 */
@media (max-width:600px) {
  .nav { padding:0 12px; }
  .nav-links a { padding:6px 10px; font-size:12px; }
  .container { padding:12px; }
  .info-grid { grid-template-columns:1fr; }
  .post-images img { width:100px; height:100px; }
}
