/* 初始化 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  background-color: #fff;
  color: #333;
}

/* 页面整体居中容器 */
.page-container {
  max-width: 930px;
  margin: 0 auto;
  padding: 0 16px;
}

/* 顶部导航栏 */
.navbar {
  background-color: #fff;
  border-bottom: 1px solid #eee;
  padding: 12px 0;
  position: sticky;
  top: 0;
  z-index: 999;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 20px;
}

.logo {
  height: 25px;
}

.nav-link {
  text-decoration: none;
  font-size: 15px;
  color: #333;
  transition: 0.2s;
}

.nav-link:hover,
.nav-link.active {
  color: #007bff;
}

/* 广告图区域 */
.ad-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px 0;
}

/* 公告栏 */

.ad-img {
  width: 100%;
  height: 60px;
  object-fit: cover;
  display: block;
  border-radius: 6px;
}

.alert-box {
  background-color: rgba(255, 111, 6, .1);
  border: 1px solid #ff6f06;
  padding: 12px 16px;
  margin-top: 16px;
  border-radius: 6px;
  color: #ff6f06;
  font-size: 14px;
}

.alert-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.alert-content .icon {
  font-size: 18px;
  margin-right: 8px;
}

.alert-content .message {
  flex: 1;
  line-height: 1.5;
}

.alert-content .close-btn {
  background: none;
  border: none;
  font-size: 18px;
  color: #856404;
  cursor: pointer;
  padding: 0 8px;
  line-height: 1;
}
/* 侧边导航容器 */
.forum-list {
  list-style: none;
  padding: 0;
  margin: 0;
  max-height: 500px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* 每个条目 */
.forum-list li a {
  display: flex;
  align-items: center;
  padding: 8px 10px;
  font-size: 14px;
  color: #333;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
  gap: 8px;
}

/* 鼠标悬停高亮 */
.forum-list li a:hover {
  background-color: #f5f5f5;
}

/* 图标样式 */
.forum-list img {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  flex-shrink: 0;
}

/* 当前选中项 */
.nav-link.active {
  background-color: #e6f0ff;
  font-weight: bold;
  color: #007bff;
}
.profile-box {
  background: #fff;
  padding: 15px;
  border-radius: 8px;
  font-size: 14px;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.05);
}

.profile-box h3 {
  margin: 6px 0;
  font-size: 16px;
}

.profile-box p {
  margin: 6px 0;
  color: #333;
  line-height: 1.4;
}

.profile-box input[type="text"] {
  width: 100%;
  padding: 6px 10px;
  margin: 10px 0 5px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 14px;
  box-sizing: border-box;
}

.btn {
  width: 100%;
  font-size: 14px;
  text-align: center;
}

.hot-box {
  background: #fff;
  padding: 10px 15px;
  border-radius: 8px;
  font-size: 14px;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.05);
}

.hot-box h4 {
  font-size: 15px;
  margin-bottom: 10px;
  border-left: 2px solid #007bff;
  padding-left: 6px;
  color: #007bff;
}

.hot-box ol {
  margin: 0;
  padding-left: 20px;
  list-style: decimal;
  color: #333;
}

.hot-box li {
  margin: 6px 0;
  font-size: 13.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rank-content ol {
  display: none;
}

.rank-content ol.active {
  display: block;
}

.tabs span:hover {
  color: #007bff;
}

.tabs span {
  cursor: pointer;
  padding-bottom: 4px;
}

.pinned-module {
  margin-top: 15px;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  background: #fff;
  width: 100%;
  max-width: 540px;
}

.pinned-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: bold;
  font-size: 15px;
  border-bottom: 1px solid #eee;
  padding-bottom: 6px;
  margin-bottom: 10px;
}

.pinned-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.pinned-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 0;
  font-size: 14px;
}

.pinned-list li img.flag {
  width: 12px;
  height: 12px;
  margin-right: 4px;
  vertical-align: middle;
}

.pinned-list li span {
  color: #999;
  font-size: 13px;
}
.pinned-list a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s ease;
}

.pinned-list a:hover {
  color: #007bff;
  text-decoration: none;
}

.post-card {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  width: 100% !important;
  padding: 8px 0 !important;
  background: #fff !important;
  border-bottom: 1px solid #eee !important;
  box-sizing: border-box !important;
}

.post-info {
  flex: 1 !important;
  min-width: 0 !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
}

.post-title,
.post-meta,
.post-excerpt {
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  margin: 0 !important;
}

.post-thumb {
  width: 90px !important;
  height: 90px !important;
  object-fit: cover !important;
  flex-shrink: 0 !important;
  margin: 0 !important;
}

.card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.card-link:hover {
  text-decoration: none;
}


