/* 全局变量 */
:root {
  /* 主色 */
  --primary: #7C5CFC;
  --primary-light: #9775FA;
  --primary-dark: #6741d9;
  
  /* 彩虹辅助色（色弱友好低饱和版） */
  --rainbow-red: #FF6B6B;
  --rainbow-orange: #FFA94D;
  --rainbow-yellow: #FFD43B;
  --rainbow-green: #69DB7C;
  --rainbow-blue: #4DABF7;
  --rainbow-purple: #9775FA;
  
  /* 中性色 */
  --text-primary: #212529;
  --text-secondary: #495057;
  --text-tertiary: #868e96;
  --bg-primary: #ffffff;
  --bg-secondary: #f8f9fa;
  --bg-tertiary: #e9ecef;
  --border-color: #dee2e6;
  
  /* 状态色 */
  --success: #51cf66;
  --warning: #ffd43b;
  --danger: #ff6b6b;
  --info: #4dabf7;
  
  /* 尺寸 */
  --container-width: 1200px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 20px;
  
  /* 阴影 */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
  
  /* 过渡 */
  --transition: all 0.3s ease;
}

/* 深色模式 */
body.dark {
  --text-primary: #f8f9fa;
  --text-secondary: #dee2e6;
  --text-tertiary: #adb5bd;
  --bg-primary: #212529;
  --bg-secondary: #2b3035;
  --bg-tertiary: #343a40;
  --border-color: #495057;
}

/* 字号调整 */
body.font-small { font-size: 14px; }
body.font-medium { font-size: 16px; }
body.font-large { font-size: 18px; }

/* 全局重置 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  transition: var(--transition);
}

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

ul, ol {
  list-style: none;
}

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

button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  transition: var(--transition);
}

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

.section {
  padding: 60px 0;
}

.section-gray {
  background-color: var(--bg-secondary);
}

.section-header {
  margin-bottom: 30px;
}

.section-header.center {
  text-align: center;
}

.section-title {
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 8px;
}

.section-desc {
  color: var(--text-secondary);
  font-size: 16px;
}

.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.ml-1 { margin-left: 8px; }

.text-center { text-align: center; }

/* 屏幕阅读器专用（隐藏视觉但保留语义） */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* 网格布局 */
.grid {
  display: grid;
}

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

.gap-20 { gap: 20px; }
.gap-30 { gap: 30px; }

/* 按钮样式 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius-md);
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
}

.btn-sm { padding: 6px 12px; font-size: 14px; }
.btn-lg { padding: 12px 24px; font-size: 16px; }
.btn-block { width: 100%; }

.btn-primary {
  background-color: var(--primary);
  color: #fff;
}

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

.btn-outline {
  border-color: var(--border-color);
  color: var(--text-secondary);
  background-color: transparent;
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* 标签样式 */
.tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  color: #fff;
  margin-right: 8px;
}

.tag-red { background-color: var(--rainbow-red); }
.tag-orange { background-color: var(--rainbow-orange); }
.tag-yellow { background-color: var(--rainbow-yellow); color: #856404; }
.tag-green { background-color: var(--rainbow-green); }
.tag-blue { background-color: var(--rainbow-blue); }
.tag-purple { background-color: var(--rainbow-purple); }

/* 表单样式 */
.form-control {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: inherit;
  font-size: inherit;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(124, 92, 252, 0.1);
}

.form-small {
  padding: 4px 8px;
  font-size: 14px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 500;
}

/* 彩虹分隔线 */
.rainbow-divider {
  height: 6px;
  background: linear-gradient(90deg, 
    var(--rainbow-red) 0%, 
    var(--rainbow-orange) 20%, 
    var(--rainbow-yellow) 40%, 
    var(--rainbow-green) 60%, 
    var(--rainbow-blue) 80%, 
    var(--rainbow-purple) 100%
  );
}

.rainbow-divider.top {
  margin-bottom: 40px;
}

/* 头部导航 */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--bg-primary);
  box-shadow: var(--shadow-sm);
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
}

.logo-icon {
  font-size: 24px;
}

.nav {
  display: flex;
  gap: 32px;
}

.nav-item {
  position: relative;
  padding: 8px 0;
  font-weight: 500;
  color: var(--text-secondary);
}

.nav-item:hover,
.nav-item.active {
  color: var(--primary);
}

.nav-item.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--rainbow-red), var(--rainbow-purple));
  border-radius: 2px;
}

.nav-tools {
  display: flex;
  align-items: center;
  gap: 12px;
}

.tool-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
}

.tool-btn:hover {
  background-color: var(--bg-secondary);
  color: var(--primary);
}

.accessibility-tools {
  display: flex;
  gap: 4px;
}

.hamburger {
  display: none;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--text-secondary);
}

/* 移动端菜单 */
.mobile-menu {
  display: none;
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--bg-primary);
  padding: 20px;
  z-index: 99;
  flex-direction: column;
  gap: 16px;
}

.mobile-menu.active {
  display: flex;
}

.mobile-nav-item {
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 16px;
  font-weight: 500;
  color: var(--text-secondary);
}

.mobile-nav-item:hover,
.mobile-nav-item.active {
  background-color: var(--bg-secondary);
  color: var(--primary);
}

/* 轮播图样式 */
.carousel-section {
  position: relative;
  overflow: hidden;
}

.carousel {
  position: relative;
  width: 100%;
  height: 450px;
  overflow: hidden;
  margin: 0;
}

.carousel-track {
  position: relative;
  width: 100%;
  height: 100%;
}

.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.8s ease;
  pointer-events: none;
}

.carousel-slide.active {
  opacity: 1;
  pointer-events: auto;
}

.carousel-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.2) 100%);
  display: flex;
  align-items: center;
}

.carousel-content {
  max-width: 600px;
  color: #fff;
}

.carousel-title {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.3;
}

.carousel-desc {
  font-size: 18px;
  margin-bottom: 24px;
  opacity: 0.9;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: rgba(255,255,255,0.2);
  color: #fff;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
  z-index: 10;
}

.carousel-btn:hover {
  background-color: rgba(255,255,255,0.3);
}

.carousel-prev {
  left: 20px;
}

.carousel-next {
  right: 20px;
}

.carousel-indicators {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: rgba(255,255,255,0.5);
  transition: all 0.3s ease;
}

.indicator.active {
  width: 30px;
  border-radius: 5px;
  background-color: #fff;
}

/* 首屏Hero区 */
.hero {
  padding: 60px 0 40px;
  background: linear-gradient(135deg, rgba(124, 92, 252, 0.05) 0%, rgba(255, 107, 107, 0.05) 100%);
  text-align: left;
}

.hero-wrapper {
  display: flex;
  align-items: center;
  gap: 50px;
}

.hero-content {
  flex: 1.2;
  min-width: 0;
}

.hero-image {
  flex: 0.8;
  flex-shrink: 0;
  position: relative;
}

.hero-img {
  width: 100%;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}

.hero-img-badge {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(255, 255, 255, 0.95);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  box-shadow: var(--shadow-md);
  white-space: nowrap;
}

.hero-title {
  font-size: 38px;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.3;
}

.hero-subtitle {
  font-size: 18px;
  color: var(--primary);
  font-weight: 500;
  margin-bottom: 20px;
}

.hero-desc {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 28px;
}

.hero-desc p {
  margin-bottom: 12px;
}

.hero-desc .keyword {
  color: var(--text-primary);
  font-weight: 500;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
}

.hero-tip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background-color: rgba(124, 92, 252, 0.1);
  border-radius: 20px;
  font-size: 14px;
  color: var(--primary);
}

/* 快捷入口卡片 */
.entry-card {
  background-color: var(--bg-primary);
  border-radius: var(--radius-lg);
  padding: 30px 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid transparent;
}

.entry-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-color);
}

.entry-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: #fff;
  margin: 0 auto 16px;
}

.icon-red { background-color: var(--rainbow-red); }
.icon-orange { background-color: var(--rainbow-orange); }
.icon-yellow { background-color: var(--rainbow-yellow); color: #856404; }
.icon-green { background-color: var(--rainbow-green); }
.icon-blue { background-color: var(--rainbow-blue); }
.icon-purple { background-color: var(--rainbow-purple); }

.entry-card h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.entry-card p {
  font-size: 14px;
  color: var(--text-secondary);
}

/* 选项卡 */
.tabs {
  display: flex;
  gap: 24px;
}

.tab-item {
  padding: 8px 0;
  font-size: 16px;
  font-weight: 500;
  color: var(--text-tertiary);
  border-bottom: 2px solid transparent;
}

.tab-item:hover {
  color: var(--text-secondary);
}

.tab-item.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

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

.more-wrap {
  text-align: center;
  margin-top: 30px;
}

/* 资讯卡片 */
.news-list {
  list-style: none;
  padding: 0;
}

.news-card {
  background-color: var(--bg-primary);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  height: 100%;
}

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

.news-cover {
  position: relative;
  height: 180px;
  overflow: hidden;
  margin: 0;
}

.news-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

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

.news-cover .tag {
  position: absolute;
  top: 12px;
  left: 12px;
}

.news-body {
  padding: 16px;
}

.news-body h3 {
  font-size: 16px;
  line-height: 1.5;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.news-desc {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-meta {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-tertiary);
}

.news-meta time,
.news-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* 帖子列表 */
.post-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.post-item {
  display: flex;
  gap: 16px;
  padding: 20px;
  background-color: var(--bg-primary);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.post-item:hover {
  box-shadow: var(--shadow-md);
}

.post-avatar img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.avatar-placeholder {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--bg-tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--text-tertiary);
}

.post-content {
  flex: 1;
  min-width: 0;
}

.post-title {
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 8px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.post-excerpt {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 13px;
  color: var(--text-tertiary);
}

.post-meta .author {
  color: var(--text-secondary);
  font-weight: 500;
}

.post-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.post-time {
  margin-left: auto;
}

/* 活动卡片 */
.event-card {
  background-color: var(--bg-primary);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  height: 100%;
}

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

.event-cover {
  position: relative;
  height: 160px;
  overflow: hidden;
  margin: 0;
}

.event-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.event-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  background-color: var(--rainbow-blue);
  color: #fff;
}

.event-tag-green { background-color: var(--rainbow-green); }
.event-tag-purple { background-color: var(--rainbow-purple); }

.event-body {
  padding: 16px;
}

.event-body h3 {
  font-size: 16px;
  margin-bottom: 12px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.event-info {
  margin-bottom: 16px;
}

.event-info p {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* 新人指南样式 */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.step-item {
  position: relative;
  padding: 30px 24px;
  background-color: var(--bg-primary);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: var(--transition);
}

.step-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.step-number {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background-color: rgba(124, 92, 252, 0.1);
  color: var(--primary);
  font-size: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-item h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.step-item p {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.6;
}

/* 公益专区样式 */
.public-welfare-card {
  padding: 30px 24px;
  background-color: var(--bg-primary);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

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

.pw-icon {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-md);
  font-size: 28px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.pw-red { background: linear-gradient(135deg, #ff6b6b, #fa5252); }
.pw-blue { background: linear-gradient(135deg, #4dabf7, #339af0); }
.pw-green { background: linear-gradient(135deg, #69db7c, #51cf66); }

.public-welfare-card h3 {
  font-size: 18px;
  margin-bottom: 10px;
}

.public-welfare-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 16px;
}

.pw-meta {
  margin-bottom: 16px;
  font-size: 13px;
  color: var(--text-tertiary);
}

/* 价值观卡片 */
.value-card {
  text-align: center;
  padding: 30px 20px;
  border-radius: var(--radius-lg);
  background-color: var(--bg-primary);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

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

.value-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  color: #fff;
}

.value-card h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.value-card p {
  font-size: 14px;
  color: var(--text-secondary);
}

/* 数据看板样式 */
.data-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--rainbow-purple) 100%);
  color: #fff;
}

.data-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  text-align: center;
}

.data-number {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1;
}

.data-number span {
  font-size: 24px;
  margin-left: 4px;
  font-weight: 500;
}

.data-label {
  font-size: 16px;
  opacity: 0.9;
}

/* 相关推荐模块样式 */
.recommend-card {
  padding: 24px;
  background-color: var(--bg-primary);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: block;
}

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

.recommend-icon {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: #fff;
  margin-bottom: 16px;
}

.recommend-red { background: linear-gradient(135deg, #ff6b6b, #fa5252); }
.recommend-orange { background: linear-gradient(135deg, #ffa94d, #fd7e14); }
.recommend-green { background: linear-gradient(135deg, #69db7c, #51cf66); }
.recommend-blue { background: linear-gradient(135deg, #4dabf7, #339af0); }

.recommend-card h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.recommend-card p {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 12px;
  line-height: 1.6;
}

.recommend-more {
  font-size: 13px;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.recommend-card:hover .recommend-more {
  gap: 8px;
}

/* 页面头部 */
.page-header {
  padding: 60px 0 40px;
  text-align: center;
  background: linear-gradient(135deg, rgba(124, 92, 252, 0.05) 0%, rgba(255, 107, 107, 0.05) 100%);
}

.page-header h1 {
  font-size: 36px;
  margin-bottom: 8px;
}

.page-header p {
  font-size: 16px;
  color: var(--text-secondary);
}

.page-content {
  max-width: 800px;
  margin: 0 auto;
}

/* 面包屑导航样式 */
.breadcrumb {
  padding: 12px 0;
  background-color: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
}

.breadcrumb ol {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-tertiary);
  list-style: none;
}

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

.breadcrumb li::after {
  content: '/';
  color: var(--text-tertiary);
}

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

.breadcrumb a {
  color: var(--text-secondary);
}

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

.breadcrumb li[aria-current="page"] {
  color: var(--text-primary);
  font-weight: 500;
}

/* 关于页面 */
.about-section {
  margin-bottom: 40px;
}

.about-section h2 {
  font-size: 24px;
  margin-bottom: 16px;
  padding-left: 12px;
  border-left: 4px solid var(--primary);
}

.about-section p {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 12px;
}

.mission-card {
  text-align: center;
  padding: 24px;
  border-radius: var(--radius-lg);
  background-color: var(--bg-secondary);
  transition: var(--transition);
}

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

.mission-icon {
  width: 50px;
  height: 50px;
  margin: 0 auto 12px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  background-color: var(--primary);
  color: #fff;
}

.mission-card h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.mission-card p {
  font-size: 14px;
  color: var(--text-secondary);
}

/* 时间线 */
.timeline {
  position: relative;
  padding-left: 30px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 10px;
  top: 0;
  bottom: 0;
  width: 2px;
  background-color: var(--border-color);
}

.timeline-item {
  position: relative;
  margin-bottom: 30px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -26px;
  top: 6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background-color: var(--primary);
  border: 3px solid var(--bg-primary);
}

.timeline-year {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 6px;
}

.timeline-content h3 {
  font-size: 18px;
  margin-bottom: 6px;
}

.timeline-content p {
  color: var(--text-secondary);
  font-size: 14px;
}

.contact-list li {
  margin-bottom: 10px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.contact-list li i {
  color: var(--primary);
  width: 20px;
  text-align: center;
}

/* 筛选栏 */
.filter-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding: 16px 20px;
  background-color: var(--bg-secondary);
  border-radius: var(--radius-lg);
}

.filter-categories {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 14px;
  color: var(--text-secondary);
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
}

.filter-btn:hover,
.filter-btn.active {
  background-color: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.filter-sort {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* 分页 */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 40px;
  list-style: none;
  padding: 0;
}

.page-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  background-color: var(--bg-primary);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-btn:hover,
.page-btn.active {
  background-color: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* 社区布局 */
.community-layout,
.help-layout {
  display: flex;
  gap: 30px;
}

.sidebar {
  width: 260px;
  flex-shrink: 0;
}

.main-content {
  flex: 1;
  min-width: 0;
}

.sidebar-card {
  background-color: var(--bg-primary);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}

.sidebar-card h4 {
  font-size: 16px;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-color);
}

.category-list li {
  margin-bottom: 4px;
}

.category-list li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-size: 14px;
}

.category-list li a:hover,
.category-list li.active a {
  background-color: var(--bg-secondary);
  color: var(--primary);
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-cloud .tag {
  padding: 4px 10px;
  font-size: 12px;
  cursor: pointer;
  transition: var(--transition);
}

.tag-cloud .tag:hover {
  transform: scale(1.05);
}

.sidebar-notice {
  background: linear-gradient(135deg, rgba(124, 92, 252, 0.05) 0%, rgba(255, 107, 107, 0.05) 100%);
  border: 1px solid rgba(124, 92, 252, 0.1);
}

.sidebar-notice h4 {
  border-bottom-color: rgba(124, 92, 252, 0.1);
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--primary);
}

.sidebar-notice ul li {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 8px;
  padding-left: 16px;
  position: relative;
}

.sidebar-notice ul li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--primary);
}

.sidebar-notice p {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.sidebar-notice .highlight {
  color: var(--primary);
  font-weight: 600;
  font-size: 14px;
}

/* 帖子筛选 */
.post-filter {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.filter-tabs {
  display: flex;
  gap: 24px;
}

.filter-tab {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-tertiary);
  padding-bottom: 6px;
  border-bottom: 2px solid transparent;
}

.filter-tab:hover {
  color: var(--text-secondary);
}

.filter-tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.report-btn {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* 帮助中心 */
.help-section {
  margin-bottom: 40px;
}

.help-section h2 {
  font-size: 24px;
  margin-bottom: 20px;
  padding-left: 12px;
  border-left: 4px solid var(--primary);
}

/* 折叠面板（原生details） */
.accordion {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.accordion-item {
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.accordion-header {
  width: 100%;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 500;
  text-align: left;
  background-color: transparent;
  cursor: pointer;
  list-style: none;
}

.accordion-header::-webkit-details-marker {
  display: none;
}

.accordion-header:hover {
  background-color: var(--bg-secondary);
}

.accordion-header i {
  transition: transform 0.3s ease;
  color: var(--text-tertiary);
}

.accordion-item[open] .accordion-header i {
  transform: rotate(180deg);
}

.accordion-body {
  padding: 0 20px 16px;
  color: var(--text-secondary);
}

/* 规则内容 */
.rules-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.rule-item {
  padding: 20px;
  background-color: var(--bg-primary);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.rule-item h3 {
  font-size: 18px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
}

.rule-item ul {
  padding-left: 20px;
  list-style-type: disc;
}

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

/* 举报指南 */
.report-guide h3 {
  font-size: 18px;
  margin: 20px 0 12px;
}

.report-guide ol {
  padding-left: 20px;
}

.report-guide ol li {
  margin-bottom: 10px;
  color: var(--text-secondary);
}

.report-notice {
  margin-top: 20px;
  padding: 16px;
  background-color: rgba(124, 92, 252, 0.05);
  border-radius: var(--radius-md);
  border-left: 4px solid var(--primary);
}

.report-notice p {
  color: var(--text-secondary);
}

.privacy-content p,
.privacy-content ul {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 12px;
}

.privacy-content ul {
  padding-left: 20px;
}

.privacy-content ul li {
  margin-bottom: 8px;
}

/* 正文内链样式 */
.inner-link {
  color: var(--primary);
  font-weight: 500;
  border-bottom: 1px dashed var(--primary-light);
  transition: var(--transition);
}

.inner-link:hover {
  color: var(--primary-dark);
  border-bottom-style: solid;
}

/* 弹窗 */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal.active {
  display: flex;
}

.modal-content {
  background-color: var(--bg-primary);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
  font-size: 18px;
}

.modal-close {
  font-size: 20px;
  color: var(--text-tertiary);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  background-color: var(--bg-secondary);
  color: var(--text-primary);
}

.modal-body {
  padding: 20px;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 16px 20px;
  border-top: 1px solid var(--border-color);
}

.radio-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.radio-item {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.radio-item:hover {
  background-color: var(--bg-secondary);
}

.radio-item input {
  accent-color: var(--primary);
}

/* 底部 */
.footer {
  background-color: var(--bg-secondary);
  padding-top: 0;
  margin-top: 60px;
}

.footer-content {
  padding: 0 0 30px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.footer-brand {
  flex-shrink: 0;
}

.footer-quick-links {
  flex: 1;
  min-width: 300px;
}

.footer-quick-links h4 {
  font-size: 16px;
  margin-bottom: 16px;
  font-weight: 600;
}

.quick-links-row {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.quick-links-row a {
  color: var(--text-secondary);
  font-size: 14px;
}

.quick-links-row a:hover {
  color: var(--primary);
}

.footer-terms {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 20px 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 20px;
}

.footer-terms a {
  color: var(--text-secondary);
  font-size: 14px;
}

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

.terms-divider {
  color: var(--text-tertiary);
  font-size: 12px;
}

.footer-bottom {
  text-align: center;
  color: var(--text-tertiary);
  font-size: 13px;
}

.footer-bottom p {
  margin-bottom: 6px;
}

.footer-bottom a {
  color: var(--text-tertiary);
}

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

.footer-seo-links {
  margin-top: 8px;
  font-size: 12px;
}

.footer-seo-links a {
  opacity: 0.8;
}

.footer-seo-links a:hover {
  opacity: 1;
}

.social-links {
  display: flex;
  gap: 12px;
}

.social-links a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--bg-tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
}

.social-links a:hover {
  background-color: var(--primary);
  color: #fff;
}

/* 响应式适配 */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  
  .sidebar {
    display: none;
  }

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

  .data-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

@media (max-width: 768px) {
  .nav {
    display: none;
  }
  
  .hamburger {
    display: flex;
  }
  
  .accessibility-tools {
    display: none;
  }
  
  .hero-title {
    font-size: 32px;
  }
  
  .section {
    padding: 40px 0;
  }
  
  .section-title {
    font-size: 22px;
  }
  
  .page-header h1 {
    font-size: 28px;
  }
  
  .grid-4,
  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
  }
  
  .footer-top {
    flex-direction: column;
    text-align: center;
  }
  
  .quick-links-row {
    justify-content: center;
  }
  
  .social-links {
    justify-content: center;
  }
  
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .tabs {
    gap: 16px;
  }
  
  .tab-item {
    font-size: 14px;
  }
  
  .filter-bar {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .post-item {
    padding: 16px;
  }
  
  .post-meta {
    flex-wrap: wrap;
    gap: 10px;
  }
  
  .post-time {
    margin-left: 0;
    width: 100%;
  }

  .carousel {
    height: 350px;
  }
  
  .carousel-title {
    font-size: 28px;
  }
  
  .carousel-desc {
    font-size: 16px;
  }

  .hero-wrapper {
    flex-direction: column-reverse;
    text-align: center;
  }

  .hero-image {
    max-width: 400px;
    width: 100%;
  }

  .data-number {
    font-size: 36px;
  }
  
  .data-number span {
    font-size: 18px;
  }

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

@media (max-width: 576px) {
  .carousel {
    height: 280px;
  }
  
  .carousel-title {
    font-size: 22px;
  }
  
  .carousel-desc {
    font-size: 14px;
    margin-bottom: 16px;
  }
  
  .carousel-btn {
    width: 36px;
    height: 36px;
    font-size: 18px;
  }
  
  .carousel-prev { left: 10px; }
  .carousel-next { right: 10px; }

  .hero-title {
    font-size: 28px;
  }

  .hero-desc {
    font-size: 14px;
  }

  .hero-img-badge {
    font-size: 12px;
    padding: 6px 12px;
  }

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

  .data-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  
  .data-number {
    font-size: 28px;
  }
  
  .data-label {
    font-size: 14px;
  }

  .footer-terms {
    gap: 8px;
  }

  .footer-terms a {
    font-size: 12px;
  }

  .recommend-section .grid-4 {
    grid-template-columns: 1fr;
  }
}

/* 无障碍：焦点样式 */
button:focus,
a:focus,
input:focus,
textarea:focus,
select:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* 减少动画偏好 */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
/* 【轮播兜底补充·不影响原有样式】 */
.carousel .indicator { cursor: pointer; }
.carousel-slide { z-index: 0; }
.carousel-slide.active { z-index: 1; }