/* ============================================
   mk体育 体育社区 - 主样式表
   配色方案: 活力橙 #FF6700 / 石墨灰 #36454F / 天空蓝 #87CEEB
   ============================================ */

/* === 字体引入 === */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@300;400;500;700;900&display=swap');

/* === CSS变量 === */
:root {
  --primary: #FF6700;
  --primary-dark: #E05A00;
  --primary-light: #FF8533;
  --secondary: #36454F;
  --secondary-light: #4A5D6A;
  --accent: #87CEEB;
  --accent-dark: #5BB5D5;
  --bg-main: #F5F5F5;
  --bg-card: #FFFFFF;
  --bg-dark: #1A2530;
  --text-primary: #2C2C2C;
  --text-secondary: #666666;
  --text-light: #999999;
  --text-white: #FFFFFF;
  --border: #E0E0E0;
  --border-light: #F0F0F0;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.12);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.16);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --font-title: 'Noto Sans SC', '微软雅黑', 'Microsoft YaHei', sans-serif;
  --font-body: 'Noto Sans SC', '微软雅黑', 'Microsoft YaHei', sans-serif;
  --max-width: 1200px;
  --transition: all 0.3s ease;
}

/* === 重置样式 === */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--text-primary);
  background-color: var(--bg-main);
  line-height: 1.8;
  overflow-x: hidden;
}

a {
  color: var(--accent-dark);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--primary);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul, ol {
  list-style: none;
}

/* === 通用容器 === */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 60px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.section-header h2 {
  font-family: var(--font-title);
  font-size: 2rem;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 12px;
  position: relative;
  display: inline-block;
}

.section-header h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: var(--primary);
  margin: 12px auto 0;
  border-radius: 2px;
}

.section-header p {
  color: var(--text-secondary);
  font-size: 1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* === 顶部导航 === */
.site-header {
  background: var(--bg-card);
  border-bottom: 3px solid var(--primary);
  box-shadow: var(--shadow-sm);
  position: relative;
  z-index: 100;
}

.header-top {
  background: var(--secondary);
  color: var(--text-white);
  padding: 8px 0;
  font-size: 0.85rem;
}

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

.header-top a {
  color: var(--accent);
}

.header-top a:hover {
  color: var(--primary-light);
}

.header-main {
  padding: 15px 0;
}

.header-main .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.site-logo .logo-icon {
  width: 48px;
  height: 48px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  font-weight: 900;
}

.site-logo .logo-text {
  font-family: var(--font-title);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--secondary);
}

.site-logo .logo-text span {
  color: var(--primary);
}

/* === 主导航 === */
.main-nav {
  background: var(--secondary);
  padding: 0;
}

.main-nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-list {
  display: flex;
  gap: 0;
}

.nav-list li a {
  display: block;
  padding: 14px 20px;
  color: var(--text-white);
  font-size: 0.95rem;
  font-weight: 500;
  transition: var(--transition);
  border-bottom: 3px solid transparent;
}

.nav-list li a:hover,
.nav-list li a.active {
  background: rgba(255,103,0,0.15);
  color: var(--primary-light);
  border-bottom-color: var(--primary);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-white);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 14px 20px;
}

/* === 面包屑导航 === */
.breadcrumb {
  background: var(--bg-card);
  padding: 12px 0;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.9rem;
}

.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.breadcrumb-list li::after {
  content: '>';
  margin-left: 8px;
  color: var(--text-light);
}

.breadcrumb-list li:last-child::after {
  display: none;
}

.breadcrumb-list li a {
  color: var(--accent-dark);
}

.breadcrumb-list li:last-child a {
  color: var(--text-secondary);
  pointer-events: none;
}

/* === Hero Banner === */
.hero-banner {
  background: linear-gradient(135deg, var(--secondary) 0%, var(--bg-dark) 100%);
  color: var(--text-white);
  padding: 60px 0;
  position: relative;
  overflow: hidden;
}

.hero-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255,103,0,0.2) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-banner .container {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 40px;
}

.hero-content {
  flex: 1;
}

.hero-content h1 {
  font-family: var(--font-title);
  font-size: 2.5rem;
  font-weight: 900;
  margin-bottom: 16px;
  line-height: 1.3;
}

.hero-content h1 span {
  color: var(--primary);
}

.hero-content p {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: 24px;
  line-height: 1.8;
}

.hero-image {
  flex: 0 0 400px;
}

.hero-image img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  text-align: center;
}

.btn-primary {
  background: var(--primary);
  color: var(--text-white);
}

.btn-primary:hover {
  background: var(--primary-dark);
  color: var(--text-white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  color: var(--text-white);
  border: 2px solid var(--accent);
}

.btn-outline:hover {
  background: var(--accent);
  color: var(--secondary);
}

.btn-group {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* === 卡片瀑布流布局 === */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid var(--border-light);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.card-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/10;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.card:hover .card-image img {
  transform: scale(1.05);
}

.card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--primary);
  color: var(--text-white);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

.card-body {
  padding: 20px;
}

.card-body h3 {
  font-family: var(--font-title);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 10px;
  line-height: 1.5;
}

.card-body h3 a {
  color: var(--secondary);
}

.card-body h3 a:hover {
  color: var(--primary);
}

.card-body p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 12px;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid var(--border-light);
  font-size: 0.85rem;
  color: var(--text-light);
}

.card-meta .meta-item {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* === 用户头像 === */
.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--text-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.avatar-sm {
  width: 32px;
  height: 32px;
  font-size: 0.75rem;
}

.avatar-lg {
  width: 56px;
  height: 56px;
  font-size: 1.2rem;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.user-info .user-name {
  font-weight: 600;
  color: var(--secondary);
  font-size: 0.95rem;
}

.user-info .user-time {
  font-size: 0.8rem;
  color: var(--text-light);
}

/* === 引用块（用户观点） === */
.opinion-card {
  background: var(--bg-card);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.opinion-card:hover {
  box-shadow: var(--shadow-md);
  border-left-color: var(--accent-dark);
}

.opinion-card blockquote {
  font-size: 1rem;
  color: var(--text-primary);
  line-height: 1.8;
  margin-bottom: 16px;
  font-style: italic;
}

.opinion-card blockquote::before {
  content: '\201C';
  font-size: 3rem;
  color: var(--primary);
  line-height: 0;
  vertical-align: -0.6em;
  margin-right: 4px;
}

/* === 公告栏 === */
.announcement-bar {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--text-white);
  padding: 10px 0;
  overflow: hidden;
}

.announcement-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.announcement-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  background: rgba(255,255,255,0.1);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
}

.announcement-item:hover {
  background: rgba(255,255,255,0.2);
}

.announcement-item .tag {
  background: var(--accent);
  color: var(--secondary);
  padding: 2px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}

.announcement-item .text {
  flex: 1;
  font-size: 0.9rem;
}

.announcement-item .time {
  font-size: 0.8rem;
  opacity: 0.7;
  white-space: nowrap;
}

/* === 讨论区卡片 === */
.forum-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  text-align: center;
  border: 1px solid var(--border-light);
}

.forum-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.forum-card .forum-image {
  height: 180px;
  overflow: hidden;
  position: relative;
}

.forum-card .forum-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.forum-card:hover .forum-image img {
  transform: scale(1.08);
}

.forum-card .forum-image .overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  padding: 20px 16px 12px;
}

.forum-card .forum-image .overlay h3 {
  color: var(--text-white);
  font-size: 1.2rem;
  font-weight: 700;
}

.forum-card .forum-body {
  padding: 20px;
}

.forum-card .forum-stats {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 12px;
}

.forum-card .stat-item {
  text-align: center;
}

.forum-card .stat-item .num {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary);
}

.forum-card .stat-item .label {
  font-size: 0.8rem;
  color: var(--text-light);
}

/* === 新手指南 === */
.guide-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.guide-item {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 30px 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid var(--border-light);
}

.guide-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

.guide-item .icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 1.8rem;
  color: var(--text-white);
}

.guide-item h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 10px;
}

.guide-item p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* === 贡献榜 === */
.leaderboard {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.leaderboard-header {
  background: linear-gradient(135deg, var(--secondary), var(--bg-dark));
  color: var(--text-white);
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.leaderboard-item {
  display: flex;
  align-items: center;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border-light);
  transition: var(--transition);
}

.leaderboard-item:hover {
  background: rgba(255,103,0,0.05);
}

.leaderboard-item .rank {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  margin-right: 16px;
  flex-shrink: 0;
}

.leaderboard-item:nth-child(1) .rank { background: #FFD700; color: #333; }
.leaderboard-item:nth-child(2) .rank { background: #C0C0C0; color: #333; }
.leaderboard-item:nth-child(3) .rank { background: #CD7F32; color: #FFF; }
.leaderboard-item:nth-child(n+4) .rank { background: var(--border); color: var(--text-secondary); }

.leaderboard-item .user-stats {
  margin-left: auto;
  display: flex;
  gap: 20px;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.leaderboard-item .user-stats span {
  white-space: nowrap;
}

/* === 帖子详情页 === */
.post-detail {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 40px;
  margin-bottom: 30px;
}

.post-detail .post-title {
  font-family: var(--font-title);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 16px;
  line-height: 1.4;
}

.post-detail .post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.post-detail .post-content {
  font-size: 1rem;
  line-height: 2;
  color: var(--text-primary);
}

.post-detail .post-content p {
  margin-bottom: 16px;
}

.post-detail .post-content img {
  border-radius: var(--radius-md);
  margin: 20px 0;
}

/* === 评论区 === */
.comments-section {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 30px;
}

.comments-section h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--primary);
}

.comment-item {
  display: flex;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border-light);
}

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

.comment-body {
  flex: 1;
}

.comment-body .comment-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.comment-body .comment-text {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--text-primary);
}

.comment-body .comment-actions {
  display: flex;
  gap: 16px;
  margin-top: 10px;
  font-size: 0.85rem;
  color: var(--text-light);
}

.comment-body .comment-actions span {
  cursor: pointer;
  transition: var(--transition);
}

.comment-body .comment-actions span:hover {
  color: var(--primary);
}

/* === 论坛帖子列表 === */
.post-list-item {
  display: flex;
  gap: 20px;
  padding: 20px;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid var(--border-light);
}

.post-list-item:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

.post-list-item .post-info {
  flex: 1;
}

.post-list-item .post-info h4 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--secondary);
  margin-bottom: 8px;
}

.post-list-item .post-info h4 a {
  color: var(--secondary);
}

.post-list-item .post-info h4 a:hover {
  color: var(--primary);
}

.post-list-item .post-info .excerpt {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 8px;
}

.post-list-item .post-stats {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 80px;
  text-align: center;
}

.post-list-item .post-stats .count {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary);
}

.post-list-item .post-stats .label {
  font-size: 0.75rem;
  color: var(--text-light);
}

/* === 侧边栏 === */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.sidebar-widget {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.sidebar-widget .widget-header {
  background: var(--secondary);
  color: var(--text-white);
  padding: 14px 20px;
  font-size: 1rem;
  font-weight: 700;
}

.sidebar-widget .widget-body {
  padding: 16px 20px;
}

.sidebar-widget .widget-list li {
  padding: 10px 0;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.9rem;
}

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

.sidebar-widget .widget-list li a {
  color: var(--text-primary);
  display: flex;
  justify-content: space-between;
}

.sidebar-widget .widget-list li a:hover {
  color: var(--primary);
}

/* === 图集 === */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

.gallery-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4/3;
  box-shadow: var(--shadow-sm);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

/* === 页脚 === */
.site-footer {
  background: var(--bg-dark);
  color: rgba(255,255,255,0.8);
  padding: 50px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-col h4 {
  color: var(--text-white);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 3px;
  background: var(--primary);
}

.footer-col p {
  font-size: 0.9rem;
  line-height: 1.8;
  margin-bottom: 12px;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  transition: var(--transition);
}

.footer-col ul li a:hover {
  color: var(--primary);
  padding-left: 4px;
}

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-white);
  transition: var(--transition);
}

.footer-social a:hover {
  background: var(--primary);
}

.footer-bottom {
  padding: 20px 0;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
}

.footer-disclaimer {
  background: rgba(0,0,0,0.2);
  padding: 16px 0;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
  text-align: center;
  line-height: 1.6;
}

/* === 两栏布局 === */
.two-col-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 30px;
}

/* === 标签 === */
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  display: inline-block;
  padding: 4px 14px;
  background: rgba(135,206,235,0.15);
  color: var(--accent-dark);
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  transition: var(--transition);
}

.tag:hover {
  background: var(--accent);
  color: var(--secondary);
}

/* === 分页 === */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 30px;
}

.pagination a, .pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  transition: var(--transition);
}

.pagination a {
  background: var(--bg-card);
  color: var(--text-secondary);
  box-shadow: var(--shadow-sm);
}

.pagination a:hover, .pagination span.active {
  background: var(--primary);
  color: var(--text-white);
}

/* === 动画 === */
@keyframes bounceIn {
  0% { opacity: 0; transform: translateY(20px); }
  60% { opacity: 1; transform: translateY(-5px); }
  100% { transform: translateY(0); }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-bounce {
  animation: bounceIn 0.6s ease-out;
}

.animate-pulse {
  animation: pulse 0.4s ease;
}

.fade-in-up {
  animation: fadeInUp 0.5s ease-out forwards;
}

/* === 响应式设计 === */
@media (max-width: 992px) {
  .hero-banner .container {
    flex-direction: column;
    text-align: center;
  }
  .hero-image {
    flex: none;
    max-width: 100%;
  }
  .two-col-layout {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .guide-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  html { font-size: 15px; }

  .header-top .container {
    flex-direction: column;
    gap: 4px;
    text-align: center;
  }

  .nav-toggle {
    display: block;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    width: 100%;
  }

  .nav-list.active {
    display: flex;
  }

  .main-nav .container {
    flex-wrap: wrap;
  }

  .hero-content h1 {
    font-size: 1.8rem;
  }

  .section {
    padding: 40px 0;
  }

  .section-header h2 {
    font-size: 1.6rem;
  }

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

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

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

  .post-detail {
    padding: 24px 16px;
  }

  .post-detail .post-title {
    font-size: 1.4rem;
  }

  .post-list-item {
    flex-direction: column;
  }

  .post-list-item .post-stats {
    flex-direction: row;
    gap: 16px;
    min-width: auto;
  }

  .btn-group {
    flex-direction: column;
    align-items: stretch;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .leaderboard-item .user-stats {
    gap: 10px;
  }
}

@media (max-width: 480px) {
  html { font-size: 14px; }

  .container {
    padding: 0 15px;
  }

  .hero-content h1 {
    font-size: 1.5rem;
  }

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

/* === APP下载页 === */
.app-download-hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 50%, var(--secondary) 100%);
  color: var(--text-white);
  padding: 80px 0;
  text-align: center;
}

.app-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.app-feature-item {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 30px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.app-feature-item .feature-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

/* === 隐私政策/免责声明页 === */
.legal-content {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 40px;
  box-shadow: var(--shadow-sm);
  line-height: 2;
}

.legal-content h2 {
  font-size: 1.4rem;
  color: var(--secondary);
  margin: 30px 0 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--border-light);
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content p {
  margin-bottom: 16px;
  color: var(--text-primary);
}

.legal-content ul {
  margin: 12px 0 20px 24px;
  list-style: disc;
}

.legal-content ul li {
  margin-bottom: 8px;
  color: var(--text-secondary);
}
