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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
  max-width: 960px;
  margin: 0 auto;
  padding: 0;
  color: #1a1a1a;
  background: #f0f2f5;
  line-height: 1.6;
}

/* Header */
header {
  background: linear-gradient(135deg, #ff4757 0%, #ff6b81 100%);
  color: #fff;
  padding: 1.5rem 1.5rem 1rem;
  text-align: center;
  position: relative;
}
header h1 {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: 2px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
header h1 a { color: #fff; text-decoration: none; }
.tagline {
  margin: 0.25rem 0 0.75rem;
  font-size: 0.95rem;
  opacity: 0.9;
}
.header-btn {
  display: inline-block;
  padding: 0.6rem 1.8rem;
  background: #fff;
  color: #ff4757;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
  transition: transform 0.2s, box-shadow 0.2s;
}
.header-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

/* Navigation */
nav {
  background: #fff;
  border-bottom: 1px solid #e8e8e8;
  padding: 0 1rem;
  overflow-x: auto;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
}
nav a {
  display: inline-block;
  padding: 0.75rem 1rem;
  color: #555;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
nav a:hover,
nav a.active {
  color: #ff4757;
  border-bottom-color: #ff4757;
}

/* Announcement Bar */
.announcement {
  background: linear-gradient(90deg, #fff5f5 0%, #ffe0e3 100%);
  padding: 0.6rem 1rem;
  font-size: 0.85rem;
  color: #d63031;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.announcement .tag {
  background: #ff4757;
  color: #fff;
  padding: 0.15rem 0.5rem;
  border-radius: 3px;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
}

/* Main Content */
main {
  padding: 1rem;
}

/* Forum Section */
.forum-section {
  margin-bottom: 1.5rem;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.section-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  font-size: 1.1rem;
  font-weight: 700;
  border-bottom: 1px solid #f0f0f0;
  background: #fafafa;
}
.section-title .icon {
  font-size: 1.3rem;
}
.section-cover {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 6px;
}

/* Post */
a.post,
a.post-featured {
  text-decoration: none;
  color: inherit;
  display: flex;
}
a.post-featured { display: block; }

.post {
  display: flex;
  gap: 1rem;
  padding: 0.85rem 1rem;
  border-top: 1px solid #f5f5f5;
  transition: background 0.15s;
  cursor: pointer;
}
.post:first-of-type { border-top: none; }
.post:hover { background: #fafafa; }

.post-thumb {
  width: 120px;
  height: 80px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}
.post-info { flex: 1; min-width: 0; }
.post-info h3 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.post-info .meta {
  font-size: 0.78rem;
  color: #999;
  margin-bottom: 0.25rem;
}
.post-info .excerpt {
  font-size: 0.85rem;
  color: #666;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Featured Post (large image) */
.post-featured {
  padding: 1rem;
  border-top: 1px solid #f5f5f5;
  cursor: pointer;
  transition: background 0.15s;
}
.post-featured:hover { background: #fafafa; }
.post-featured .featured-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 0.75rem;
}
.post-featured h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}
.post-featured .meta {
  font-size: 0.78rem;
  color: #999;
  margin-bottom: 0.3rem;
}
.post-featured .excerpt {
  font-size: 0.85rem;
  color: #666;
  line-height: 1.5;
}

/* Hot Tags */
.hot-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 1rem;
}
.hot-tags a {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  background: #f5f5f5;
  color: #555;
  border-radius: 50px;
  font-size: 0.82rem;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.hot-tags a:hover {
  background: #ff4757;
  color: #fff;
}

/* Stats Bar */
.stats-bar {
  display: flex;
  justify-content: space-around;
  background: #fff;
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  text-align: center;
}
.stats-bar .stat-item .num {
  font-size: 1.5rem;
  font-weight: 800;
  color: #ff4757;
}
.stats-bar .stat-item .label {
  font-size: 0.78rem;
  color: #999;
  margin-top: 0.15rem;
}

/* Footer */
footer {
  background: #2d3436;
  color: #b2bec3;
  margin-top: 1.5rem;
  border-radius: 8px 8px 0 0;
  overflow: hidden;
}
.footer-top {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
  padding: 2rem 1.5rem;
}
.footer-col h4 {
  color: #fff;
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #ff4757;
  display: inline-block;
}
.footer-col p {
  font-size: 0.82rem;
  line-height: 1.8;
}
.footer-col ul {
  list-style: none;
  padding: 0;
}
.footer-col ul li {
  margin-bottom: 0.4rem;
}
.footer-col ul li a {
  color: #b2bec3;
  text-decoration: none;
  font-size: 0.82rem;
  transition: color 0.2s;
}
.footer-col ul li a:hover { color: #ff4757; }

.footer-bottom {
  background: #222;
  padding: 1rem 1.5rem;
  text-align: center;
  font-size: 0.75rem;
  color: #636e72;
  line-height: 1.8;
}
.footer-bottom a {
  color: #ff4757;
  text-decoration: none;
}

.footer-disclaimer {
  background: #1e272e;
  padding: 1rem 1.5rem;
  font-size: 0.75rem;
  color: #636e72;
  line-height: 1.7;
  border-top: 1px solid #333;
}

/* Responsive */
@media (max-width: 600px) {
  header h1 { font-size: 1.5rem; }
  .post-thumb { width: 90px; height: 65px; }
  .post-featured .featured-img { height: 150px; }
  .stats-bar { flex-wrap: wrap; gap: 0.5rem; }
  .stats-bar .stat-item { flex: 0 0 45%; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 1rem; padding: 1.5rem 1rem; }
}
