body {
  margin: 0;
  font-family: "Segoe UI", Arial, sans-serif;
  background: #0a0a0f;
  color: #e0e0e0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
header {
  background: #111118;
  color: #00fff2;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid #00fff2;
  box-shadow: 0 0 12px #00fff2;
}
header h1 { margin: 0; font-size: 24px; }
header nav a {
  color: #00fff2;
  margin-left: 15px;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.2s;
}
header nav a:hover { color: #fff; }

main {
  flex: 1;
  display: flex;
  margin: 20px;
  gap: 20px;
}
.left { flex: 3; display: flex; flex-direction: column; gap: 20px; }
.block {
  background: #161622;
  border-radius: 10px;
  padding: 15px;
  border: 1px solid #00fff2;
  box-shadow: 0 0 10px #00fff2;
}
.block h2 {
  margin-top: 0;
  font-size: 20px;
  border-bottom: 1px solid #333;
  padding-bottom: 8px;
  color: #00fff2;
}

/* 子版块大格子 */
.subforum-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #1a1a28;
  border: 1px solid #00fff2;
  box-shadow: 0 0 8px #00fff2;
  border-radius: 10px;
  padding: 15px;
  margin: 12px 0;
  transition: background 0.2s, transform 0.2s;
}
.subforum-card:hover {
  background: #222233;
  transform: translateY(-2px);
  cursor: pointer;
}
.subforum-left {
  display: flex;
  align-items: center;
}
.subforum-icon {
  width: 40px;
  height: 40px;
  margin-right: 15px;
}
.subforum-info { display: flex; flex-direction: column; }
.subforum-title {
  font-size: 18px;
  color: #00fff2;
  font-weight: bold;
  text-decoration: none;
}
.subforum-title:hover { color: #fff; }
.subforum-desc { font-size: 13px; color: #aaa; }

.subforum-stats { text-align: center; margin: 0 20px; }
.thread-count {
  font-size: 18px;
  color: #00fff2;
  font-weight: bold;
}
.thread-count span {
  display: block;
  font-size: 12px;
  color: #aaa;
}

.subforum-lastpost {
  display: flex;
  align-items: center;
  min-width: 250px;
}
.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin-right: 10px;
}
.lastpost-info { display: flex; flex-direction: column; font-size: 13px; }
.lastpost-title { color: #00fff2; font-weight: bold; }
.lastpost-date { color: #888; }
.lastpost-user { color: #aaa; }

/* 聊天区 */
.chat-box {
  max-height: 200px;
  overflow-y: auto;
  margin-bottom: 10px;
  background: #0f0f18;
  padding: 10px;
  border-radius: 6px;
  font-size: 14px;
}
.chat-message { margin: 6px 0; }
.username { font-weight: bold; margin-right: 5px; }
.admin { color: #00fff2; text-shadow: 0 0 6px #00fff2, 0 0 12px #00fff2; }
.mod { color: #a855f7; text-shadow: 0 0 6px #a855f7, 0 0 12px #a855f7; }
.vip { color: #facc15; text-shadow: 0 0 6px #facc15, 0 0 12px #facc15; }

.chat-input { display: flex; margin-top: 10px; }
.chat-input input {
  flex: 1;
  padding: 8px;
  border: 1px solid #00fff2;
  border-radius: 6px 0 0 6px;
  background: #111118;
  color: #e0e0e0;
}
.chat-input button {
  padding: 8px 12px;
  border: none;
  border-radius: 0 6px 6px 0;
  background: #00fff2;
  color: #000;
  font-weight: bold;
  cursor: pointer;
}

/* 右侧栏 */
.right { flex: 1; display: flex; flex-direction: column; gap: 20px; }
.sidebar-block {
  background: #161622;
  border-radius: 10px;
  padding: 15px;
  border: 1px solid #00fff2;
  box-shadow: 0 0 8px #00fff2;
}
.sidebar-block h3 {
  margin-top: 0;
  font-size: 18px;
  border-bottom: 1px solid #333;
  padding-bottom: 6px;
  color: #00fff2;
}

/* 页脚 */
footer {
  background: #111118;
  color: #aaa;
  padding: 20px;
  text-align: center;  /* 居中版权信息 */
  border-top: 2px solid #00fff2;
  box-shadow: 0 0 10px #00fff2;
  margin-top: auto;
}
footer a {
  color: #00fff2;
  text-decoration: none;
}
footer a:hover { color: #fff; }
.user-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%; /* 圆形 */
  object-fit: cover;
}

.user-details {
  display: flex;
  flex-direction: column;
  font-size: 14px;
}

.user-id {
  font-weight: bold;
  text-shadow: 0 0 5px currentColor,
               0 0 10px currentColor,
               0 0 20px currentColor,
               0 0 40px currentColor;
}
.username {
  font-weight: bold;
  text-shadow: 0 0 5px currentColor,
               0 0 10px currentColor,
               0 0 20px currentColor,
               0 0 40px currentColor;
}

