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

body {
  font-family: "Microsoft YaHei", sans-serif;
  background: #f5f7fb;
  color: #333;
  line-height: 1.7;
}

a {
  text-decoration: none;
  color: inherit;
}

ul,
ol {
  list-style: none;
}

.container {
  width: 92%;
  max-width: 1280px;
  margin: 0 auto;
}

/* 顶部导航 */
.topbar {
  background: #ffffff;
  border-bottom: 1px solid #e8ecf3;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.topbar-inner {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.logo {
  font-size: 26px;
  font-weight: bold;
  color: #ff8200;
  min-width: 80px;
}

.search-box {
  flex: 1;
  max-width: 420px;
}

.search-box input {
  width: 100%;
  height: 40px;
  border: 1px solid #d8dee9;
  border-radius: 20px;
  padding: 0 16px;
  outline: none;
  background: #f7f9fc;
}

.top-links {
  display: flex;
  gap: 24px;
}

.top-links a {
  color: #333;
  font-size: 15px;
}

.top-links a:hover {
  color: #ff8200;
}

/* 主体布局 */
.layout {
  display: grid;
  grid-template-columns: 220px 1fr 300px;
  gap: 24px;
  margin-top: 24px;
  align-items: start;
}

.card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 6px 20px rgba(16, 24, 40, 0.06);
  padding: 20px;
}

/* 左侧 */
.left-sidebar {
  position: sticky;
  top: 92px;
}

.side-menu li {
  margin-bottom: 10px;
}

.side-menu li a {
  display: block;
  padding: 12px 14px;
  border-radius: 10px;
  color: #333;
  transition: 0.2s;
}

.side-menu li a:hover,
.side-menu li.active a {
  background: #fff4e8;
  color: #ff8200;
  font-weight: bold;
}

/* 中间 */
.center-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.post-box h2 {
  font-size: 20px;
  color: #222;
}

.post-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.post-header span {
  color: #999;
  font-size: 14px;
}

.post-box textarea {
  width: 100%;
  min-height: 120px;
  border: 1px solid #dce3ee;
  border-radius: 12px;
  padding: 14px;
  font-size: 15px;
  resize: vertical;
  outline: none;
  background: #fafcff;
}

.post-box textarea:focus {
  border-color: #ff8200;
  background: #fff;
}

.post-actions {
  margin-top: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.tips {
  color: #999;
  font-size: 13px;
}

.post-actions button {
  background: #ff8200;
  color: #fff;
  border: none;
  padding: 10px 24px;
  border-radius: 22px;
  cursor: pointer;
  font-size: 15px;
}

.post-actions button:hover {
  opacity: 0.92;
}

.feed-item {
  padding: 20px;
}

.feed-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.feed-top h3 {
  font-size: 18px;
  color: #222;
}

.meta {
  font-size: 13px;
  color: #999;
  margin-top: 2px;
}

.feed-text {
  margin-top: 16px;
  font-size: 16px;
  color: #333;
  white-space: pre-wrap;
  word-break: break-word;
}

.feed-footer {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid #f0f2f6;
  display: flex;
  justify-content: space-around;
  color: #777;
  font-size: 14px;
}

.feed-footer span {
  cursor: pointer;
}

.feed-footer span:hover {
  color: #ff8200;
}

/* 右侧 */
.right-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: sticky;
  top: 92px;
}

.user-card h3,
.hot-card h3,
.notice-card h3 {
  font-size: 18px;
  margin-bottom: 14px;
  color: #222;
}

.user-card p,
.notice-card p {
  margin-bottom: 10px;
  font-size: 14px;
  color: #555;
}

.hot-list li {
  padding: 10px 0;
  border-bottom: 1px dashed #edf1f7;
  font-size: 14px;
}

.hot-list li:last-child {
  border-bottom: none;
}

.hot-list a:hover {
  color: #ff8200;
}

/* 响应式 */
@media (max-width: 1100px) {
  .layout {
    grid-template-columns: 200px 1fr;
  }

  .right-sidebar {
    display: none;
  }
}

@media (max-width: 768px) {
  .topbar-inner {
    flex-wrap: wrap;
    height: auto;
    padding: 12px 0;
  }

  .search-box {
    order: 3;
    max-width: 100%;
    width: 100%;
  }

  .layout {
    grid-template-columns: 1fr;
  }

  .left-sidebar,
  .right-sidebar {
    position: static;
  }

  .left-sidebar {
    order: -1;
  }

  .side-menu {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .side-menu li {
    margin-bottom: 0;
  }

  .top-links {
    gap: 14px;
    flex-wrap: wrap;
  }
}