/* 海角社区视频网 - 全局样式 */

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

body {
  font-family: 'Microsoft YaHei', Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f5f7fa;
}

/* 主页样式 */
.hjsq-main-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

.hjsq-header {
  background: linear-gradient(135deg, #1e88e5 0%, #1565c0 100%);
  color: white;
  padding: 25px 0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.hjsq-header-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.hjsq-logo {
  font-size: 28px;
  font-weight: bold;
  text-decoration: none;
  color: white;
  display: flex;
  align-items: center;
  gap: 12px;
}

.hjsq-nav {
  display: flex;
  gap: 30px;
}

.hjsq-nav a {
  color: white;
  text-decoration: none;
  font-size: 16px;
  transition: opacity 0.3s;
  padding: 8px 16px;
  border-radius: 6px;
}

.hjsq-nav a:hover {
  background-color: rgba(255,255,255,0.15);
}

.hjsq-hero {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 80px 20px;
  text-align: center;
  margin-bottom: 40px;
  border-radius: 12px;
  margin-top: 20px;
}

.hjsq-hero h2 {
  font-size: 42px;
  margin-bottom: 20px;
  font-weight: 700;
}

.hjsq-hero p {
  font-size: 20px;
  opacity: 0.95;
  max-width: 700px;
  margin: 0 auto;
}

.hjsq-section {
  margin-bottom: 50px;
}

.hjsq-section-title {
  font-size: 32px;
  margin-bottom: 30px;
  color: #2c3e50;
  padding-bottom: 15px;
  border-bottom: 3px solid #1e88e5;
  display: inline-block;
}

.hjsq-forum-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 25px;
  margin-bottom: 40px;
}

.hjsq-forum-card {
  background: white;
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 3px 15px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
  border: 1px solid #e8ecef;
}

.hjsq-forum-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.hjsq-forum-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
}

.hjsq-forum-card h3 {
  font-size: 22px;
  margin-bottom: 12px;
  color: #1e88e5;
}

.hjsq-forum-card p {
  color: #666;
  line-height: 1.7;
  margin-bottom: 15px;
}

.hjsq-forum-meta {
  display: flex;
  justify-content: space-between;
  color: #999;
  font-size: 14px;
  border-top: 1px solid #eee;
  padding-top: 12px;
}

.hjsq-topic-list {
  background: white;
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 3px 15px rgba(0,0,0,0.08);
}

.hjsq-topic-item {
  padding: 20px;
  border-bottom: 1px solid #f0f0f0;
  transition: background-color 0.3s;
  display: flex;
  gap: 20px;
  align-items: center;
}

.hjsq-topic-item:hover {
  background-color: #f8f9fa;
}

.hjsq-topic-item:last-child {
  border-bottom: none;
}

.hjsq-topic-image {
  width: 120px;
  height: 120px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

.hjsq-topic-content {
  flex: 1;
}

.hjsq-topic-title {
  font-size: 20px;
  color: #2c3e50;
  margin-bottom: 10px;
  font-weight: 600;
}

.hjsq-topic-desc {
  color: #666;
  margin-bottom: 10px;
  line-height: 1.6;
}

.hjsq-topic-stats {
  display: flex;
  gap: 20px;
  color: #999;
  font-size: 14px;
}

.hjsq-footer {
  background: #2c3e50;
  color: white;
  padding: 40px 20px 20px;
  margin-top: 60px;
}

.hjsq-footer-content {
  max-width: 1400px;
  margin: 0 auto;
  text-align: center;
}

.hjsq-footer-links {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.hjsq-footer-links a {
  color: #bdc3c7;
  text-decoration: none;
  transition: color 0.3s;
}

.hjsq-footer-links a:hover {
  color: white;
}

/* 板块页面样式 */
.hjsq-section-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 60px 20px;
  text-align: center;
  margin-bottom: 40px;
  border-radius: 12px;
  margin-top: 20px;
}

.hjsq-section-header h2 {
  font-size: 36px;
  margin-bottom: 15px;
}

.hjsq-section-header p {
  font-size: 18px;
  opacity: 0.9;
}

.hjsq-thread-list {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 3px 15px rgba(0,0,0,0.08);
}

.hjsq-thread-item {
  padding: 25px;
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  gap: 20px;
  transition: background-color 0.3s;
}

.hjsq-thread-item:hover {
  background-color: #f8f9fa;
}

.hjsq-thread-item:last-child {
  border-bottom: none;
}

.hjsq-thread-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.hjsq-thread-main {
  flex: 1;
}

.hjsq-thread-title {
  font-size: 20px;
  color: #1e88e5;
  margin-bottom: 10px;
  font-weight: 600;
}

.hjsq-thread-excerpt {
  color: #666;
  line-height: 1.7;
  margin-bottom: 12px;
}

.hjsq-thread-info {
  display: flex;
  gap: 20px;
  color: #999;
  font-size: 14px;
}

.hjsq-sidebar {
  background: white;
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 3px 15px rgba(0,0,0,0.08);
  margin-bottom: 25px;
}

.hjsq-sidebar h3 {
  font-size: 20px;
  margin-bottom: 20px;
  color: #2c3e50;
  padding-bottom: 12px;
  border-bottom: 2px solid #1e88e5;
}

.hjsq-hot-list {
  list-style: none;
}

.hjsq-hot-item {
  padding: 12px 0;
  border-bottom: 1px solid #f0f0f0;
  color: #666;
  transition: color 0.3s;
  cursor: pointer;
}

.hjsq-hot-item:hover {
  color: #1e88e5;
}

.hjsq-hot-item:last-child {
  border-bottom: none;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .hjsq-nav {
    display: none;
  }

  .hjsq-hero h2 {
    font-size: 28px;
  }

  .hjsq-forum-grid {
    grid-template-columns: 1fr;
  }

  .hjsq-topic-item {
    flex-direction: column;
  }

  .hjsq-topic-image {
    width: 100%;
    height: 200px;
  }

  .hjsq-thread-item {
    flex-direction: column;
  }

  .hjsq-thread-avatar {
    width: 60px;
    height: 60px;
  }
}
