@import url('theme.css');

:root {
  --primary-color: var(--lc-primary);
  --primary-dark: var(--lc-primary-dark);
  --secondary-color: var(--lc-secondary);
  --secondary-light: var(--lc-secondary-light);
  --red-color: var(--lc-danger);
  --header-height: 56px;
  --notice-height: 36px;
  --nav-height: 60px;
  --card-radius: 12px;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
}

/* ==================== 重置样式 ==================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  max-width: 100%;
}

html, body {
  width: 100%;
  overflow-x: hidden;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  background: #f5f7fa;
  color: #333;
  line-height: 1.6;
  padding-top: calc(var(--header-height) + var(--notice-height) + 10px);
  min-height: 100vh;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

button {
  cursor: pointer;
  border: none;
  outline: none;
  font-family: inherit;
}

input, select, textarea {
  font-family: inherit;
  outline: none;
}

/* ==================== 公告栏 ==================== */
.site-notice {
  background: var(--lc-btn-secondary-bg);
  padding: 8px 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.site-notice .notice-icon-fixed {
  font-size: 16px;
  flex-shrink: 0;
  color: #fff;
  animation: noticeBounce 1s ease-in-out infinite;
  backface-visibility: hidden;
  will-change: transform;
}

.site-notice .notice-scroll-container {
  flex: 1;
  overflow: hidden;
  white-space: nowrap;
}

.site-notice .notice-content {
  display: inline-block;
  white-space: nowrap;
  animation: noticeScroll 15s linear infinite;
  backface-visibility: hidden;
  will-change: transform;
}

.site-notice .notice-text {
  color: #fff;
  font-size: 14px;
}

@keyframes noticeScroll {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

@keyframes noticeBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

@media (prefers-reduced-motion: reduce) {
  .site-notice .notice-icon-fixed,
  .site-notice .notice-content {
    animation-play-state: paused;
  }
}

/* ==================== 页面容器 ==================== */
.page-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.main-content {
  flex: 1;
}

/* ==================== 顶部固定导航栏 ==================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  background: var(--lc-header-bg);
}

.header-content {
  max-width: 1200px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  padding: 0 15px;
  gap: 15px;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.header-left .logo-icon {
  font-size: 28px;
}

.header-left .logo-text {
  font-size: 18px;
  font-weight: 600;
  color: #fff;
}

.header-search {
  flex: 1;
  max-width: 400px;
  position: relative;
}

.header-search-input {
  width: 100%;
  padding: 8px 40px 8px 16px;
  border: none;
  border-radius: 20px;
  font-size: 14px;
  background: rgba(255,255,255,0.95);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.header-search-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #999;
  font-size: 16px;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
}

.header-auth {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-auth .login-link-red {
  color: var(--lc-danger);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  padding: 6px 12px;
  background: rgba(255,255,255,0.95);
  border-radius: 20px;
  transition: all 0.2s;
}

.header-auth .login-link-red:hover {
  background: #fff;
  box-shadow: 0 2px 8px rgba(245,63,63,0.3);
}

.header-auth .user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 18px;
  border: 2px solid rgba(255,255,255,0.4);
}

.header-auth .user-info {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-auth .user-name {
  display: none;
}

.site-header.user-header {
  background: #fff;
  display: flex;
  align-items: center;
  padding: 0 15px;
}

.site-header.user-header .header-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #333;
  font-weight: 600;
  font-size: 18px;
  text-decoration: none;
}

.site-header.user-header .logo-icon {
  font-size: 28px;
}

.site-header.user-header .logout-btn {
  font-size: 13px;
  color: var(--lc-secondary);
  cursor: pointer;
  margin-left: auto;
  padding: 6px 15px;
  background: rgba(255,107,53,0.1);
  border-radius: 20px;
  border: none;
  font-weight: 500;
  transition: all 0.2s;
}
.site-header.user-header .logout-btn:hover {
  background: rgba(255,107,53,0.2);
  color: var(--lc-secondary);
}

.header-avatar:hover {
  background: rgba(255,255,255,0.3);
}

.avatar-icon {
  font-size: 18px;
}

/* ==================== 快速入口 ==================== */
.main-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px;
  width: 100%;
  box-sizing: border-box;
}

/* ==================== 轮播Banner ==================== */
.banner-carousel {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 10px;
  background: var(--lc-header-bg);
  width: 100%;
  max-width: 100%;
}

.banner-slides {
  display: flex;
  height: 100%;
  transition: transform 0.3s ease;
}

.banner-slide {
  min-width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  padding: 20px 30px;
  color: #fff;
}

.banner-slide-content {
  flex: 1;
}

.banner-slide-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
}

.banner-slide-desc {
  font-size: 14px;
  opacity: 0.9;
  margin-bottom: 15px;
}

.banner-slide-btn {
  display: inline-block;
  padding: 8px 20px;
  background: #fff;
  color: var(--primary-color);
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
}

.banner-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}

.banner-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: all 0.2s;
}

.banner-dot.active {
  background: #fff;
  width: 20px;
  border-radius: 4px;
}

/* ==================== 6宫格快捷入口 ==================== */
.quick-entry {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 10px;
  background: #fff;
  border-radius: 12px;
  margin-bottom: 10px;
  width: 100%;
  max-width: 100%;
}

/* 响应式：PC端一行八列 */
@media screen and (min-width: 768px) {
  .quick-entry {
    grid-template-columns: repeat(8, 1fr);
    gap: 15px;
    padding: 20px;
  }
}

.quick-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 12px 8px;
  border-radius: var(--card-radius);
  background: #f9f9f9;
  text-decoration: none;
  color: #333;
  transition: all 0.2s;
}

.quick-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.quick-item .icon-box {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.quick-item .icon-box.charity { background: linear-gradient(135deg, #FFF0F0 0%, #FFE0E0 100%); }
.quick-item .icon-box.material { background: linear-gradient(135deg, #FFF8E6 0%, #FFF3D6 100%); }
.quick-item .icon-box.practice { background: linear-gradient(135deg, #F0FFF4 0%, #E0FFE6 100%); }
.quick-item .icon-box.course { background: linear-gradient(135deg, #F0F5FF 0%, #E6EEFF 100%); }
.quick-item .icon-box.service { background: linear-gradient(135deg, #F5F0FF 0%, #EEE5FF 100%); }
.quick-item .icon-box.leisure { background: linear-gradient(135deg, #F5F5F5 0%, #EEEEEE 100%); }
.quick-item .icon-box.volunteer { background: linear-gradient(135deg, #FFF0F0 0%, #FFE4E4 100%); }

/* 课程视听高亮样式（核心主推模块） */
.quick-item.highlight {
  position: relative;
  background: linear-gradient(135deg, #F0F5FF 0%, #E6EEFF 100%);
  border: 2px solid var(--primary-color);
}

.quick-item.highlight::before {
  content: '主推';
  position: absolute;
  top: -8px;
  right: -8px;
  background: var(--secondary-color);
  color: #fff;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 8px;
  font-weight: 600;
}

.quick-item .label {
  font-size: 12px;
  font-weight: 500;
  text-align: center;
}

/* ==================== 爱心行动专区 ==================== */
.love-action-section {
  background: #fff;
  border-radius: 12px;
  margin-bottom: 15px;
  overflow: hidden;
}

.section-header {
  padding: 12px 15px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  border-bottom: 1px solid #f0f0f0;
  flex-wrap: nowrap;
}

.section-header.red {
  background: var(--lc-btn-danger-bg);
  color: #fff;
  border: none;
}

.section-header.blue {
  background: var(--lc-btn-info-bg);
  color: #fff;
  border: none;
}

.section-header.green {
  background: var(--lc-btn-success-bg);
  color: #fff;
  border: none;
}

.section-header.orange {
  background: var(--lc-btn-warning-bg);
  color: #fff;
  border: none;
}

.section-header.gray {
  background: var(--lc-btn-default-bg);
  color: #fff;
  border: none;
}

.section-header.light-orange {
  background: linear-gradient(90deg, #FFF0E6 0%, #FFE4CC 100%);
  color: var(--lc-warning);
  border: none;
}

.section-title {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  flex: 1;
  min-width: 0;
  flex-wrap: wrap;
}

.section-title .icon {
  font-size: 18px;
  flex-shrink: 0;
}

.section-title .title-text {
  font-size: 16px;
  font-weight: 600;
  flex-shrink: 0;
}

.section-title .subtitle {
  font-size: 12px;
  opacity: 0.85;
  margin-left: 8px;
  flex-shrink: 1;
  min-width: 0;
  word-break: break-word;
}

.more-link {
  font-size: 13px;
  opacity: 0.85;
  text-decoration: none;
  flex-shrink: 0;
  white-space: nowrap;
}

.love-action-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  padding: 15px;
}

.action-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 15px;
  background: #FFF5F5;
  border-radius: var(--card-radius);
  text-decoration: none;
  color: #333;
  transition: all 0.2s;
}

.action-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.action-card .card-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 10px;
}

.action-card .card-icon.volunteer { background: var(--lc-btn-danger-bg); color: #fff; }
.action-card .card-icon.donate { background: var(--lc-card-donate-bg); color: #fff; }
.action-card .card-icon.help { background: var(--lc-card-help-bg); color: #fff; }
.action-card .card-icon.certificate { background: var(--lc-card-cert-bg); color: #fff; }

.action-card .card-title {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 4px;
}

.action-card .card-desc {
  font-size: 12px;
  color: #999;
}

/* ==================== 资源推荐板块 ==================== */
.resource-section {
  background: #fff;
  border-radius: 12px;
  margin-bottom: 10px;
  width: 100%;
  max-width: 100%;
}

.resource-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  padding: 6px;
  width: 100%;
  max-width: 100%;
}

/* ==================== 媒体卡片 ==================== */
.media-card {
  flex-shrink: 0;
  width: 160px;
  text-decoration: none;
  color: #333;
}

.media-card .cover-wrap {
  position: relative;
  width: 160px;
  height: 100px;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 8px;
  background: #f0f0f0;
}

.grid-media-card {
  width: 100%;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: var(--card-radius);
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  text-decoration: none;
  color: #333;
}

.grid-media-card .cover-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1/1;
  border-radius: 0;
  overflow: hidden;
  margin-bottom: 0;
  background: #f0f0f0;
  flex-shrink: 0;
}

.grid-media-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.grid-media-card .play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 36px;
  height: 36px;
  background: rgba(0,0,0,0.5);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 14px;
}

.grid-media-card .duration {
  position: absolute;
  bottom: 5px;
  right: 5px;
  background: rgba(0,0,0,0.7);
  color: #fff;
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 3px;
}

.grid-media-card .title {
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 4px;
  color: #333;
}

.grid-media-card .meta {
  font-size: 11px;
  color: #999;
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: nowrap;
}

.grid-media-card .meta .author-name {
  color: #555;
  font-weight: 500;
  flex-shrink: 1;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  min-width: 0;
}

.media-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-card .play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 36px;
  height: 36px;
  background: rgba(0,0,0,0.5);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 14px;
}

.media-card .duration {
  position: absolute;
  bottom: 5px;
  right: 5px;
  background: rgba(0,0,0,0.7);
  color: #fff;
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 3px;
}

.media-card .title {
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 4px;
}

.media-card .meta {
  font-size: 11px;
  color: #999;
  display: flex;
  gap: 8px;
}

/* ==================== 图文卡片 ==================== */
.article-card {
  width: 100%;
  text-decoration: none;
  color: #333;
  background: #fff;
  border-radius: var(--card-radius);
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.article-card.featured {
  grid-column: span 2;
  display: flex;
  flex-direction: column;
}

.article-card.featured .article-cover {
  width: 100%;
  aspect-ratio: 1/1;
  background: #f0f0f0;
  position: relative;
  overflow: hidden;
}

.article-card.featured .article-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-card.featured .article-content {
  padding: 12px;
}

.article-card.featured .title {
  font-size: 16px;
  font-weight: bold;
  color: #333;
  margin-bottom: 6px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-card.featured .excerpt {
  font-size: 13px;
  color: #999;
  line-height: 1.4;
}

.article-card.normal {
  display: flex;
  align-items: flex-start;
}

.article-card.normal .article-cover {
  width: 70px;
  height: 70px;
  flex-shrink: 0;
  border-radius: 8px;
  overflow: hidden;
  background: #f0f0f0;
}

.article-card.normal .article-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-card.normal .article-content {
  flex: 1;
  padding: 10px 10px 10px 12px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.article-card.normal .title {
  font-size: 13px;
  font-weight: bold;
  color: #333;
  margin-bottom: 6px;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.article-card.normal .excerpt {
  font-size: 11px;
  color: #999;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-card.small {
  display: flex;
  flex-direction: column;
}

.article-card.small .article-cover {
  display: none;
}

.article-card.small .article-content {
  padding: 12px;
  flex: 1;
}

.article-card.small .title {
  font-size: 13px;
  font-weight: bold;
  color: #333;
  margin-bottom: 4px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-card.small .excerpt {
  font-size: 11px;
  color: #999;
  line-height: 1.4;
}

/* ==================== 分类板块 ==================== */
.category-section {
  background: #fff;
  border-radius: 12px;
  margin-bottom: 10px;
  width: 100%;
  max-width: 100%;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  padding: 12px;
  width: 100%;
  max-width: 100%;
}

#charitySection .category-grid {
  grid-template-columns: repeat(4, 1fr);
}

#charitySection .charity-card-lg {
  grid-column: span 2;
}

#charitySection .charity-card-sm {
  grid-column: span 1;
}

@media screen and (min-width: 768px) {
  #charitySection .charity-card-lg {
    grid-column: span 2;
    display: flex;
    flex-direction: row;
  }
  
  #charitySection .charity-card-lg .article-cover {
    width: 40%;
    height: 180px;
    flex-shrink: 0;
    border-radius: 12px;
    overflow: hidden;
    background: #f0f0f0;
  }
  
  #charitySection .charity-card-lg .article-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  #charitySection .charity-card-lg .article-content {
    flex: 1;
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  
  #charitySection .charity-card-lg .title {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  
  #charitySection .charity-card-lg .excerpt {
    font-size: 14px;
    color: #999;
    line-height: 1.5;
  }
  
  #charitySection .charity-card-sm {
    grid-column: span 1;
    display: flex;
    flex-direction: column;
  }
  
  #charitySection .charity-card-sm .article-cover {
    width: 100%;
    height: 140px;
    border-radius: 10px;
    overflow: hidden;
    background: #f0f0f0;
  }
  
  #charitySection .charity-card-sm .article-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  #charitySection .charity-card-sm .article-content {
    padding: 12px;
  }
  
  #charitySection .charity-card-sm .title {
    font-size: 14px;
    font-weight: bold;
    color: #333;
    margin-bottom: 6px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  
  #charitySection .charity-card-sm .excerpt {
    font-size: 12px;
    color: #999;
    line-height: 1.4;
  }
}

/* ==================== 数据看板 ==================== */
.data-stats {
  background: linear-gradient(135deg, #F8FAFC 0%, #EEF2FF 100%);
  border-radius: 16px;
  margin-bottom: 15px;
  overflow: hidden;
  width: 100%;
  max-width: 100%;
  box-shadow: 0 4px 20px rgba(35, 184, 166, 0.1);
  position: relative;
}

.data-stats::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--lc-gradient-multi);
}

.data-stats::after {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 100px;
  height: 100px;
  background: rgba(35, 184, 166, 0.08);
  border-radius: 50%;
  pointer-events: none;
}

.stats-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: linear-gradient(90deg, rgba(35, 184, 166, 0.05) 0%, rgba(255, 107, 53, 0.05) 100%);
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.stats-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.stats-icon {
  font-size: 22px;
}

.stats-text {
  font-size: 18px;
  font-weight: 700;
  color: #1E293B;
}

.stats-badge {
  padding: 4px 12px;
  background: var(--lc-btn-primary-bg);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  border-radius: 12px;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(1.02); }
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  padding: 20px;
  width: 100%;
  max-width: 100%;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 12px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.stat-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  opacity: 0;
  transition: opacity 0.3s;
}

.stat-item:hover::before {
  opacity: 1;
}

.stat-item:nth-child(1)::before { background: var(--lc-stat-line-1); }
.stat-item:nth-child(2)::before { background: var(--lc-stat-line-2); }
.stat-item:nth-child(3)::before { background: var(--lc-stat-line-3); }
.stat-item:nth-child(4)::before { background: var(--lc-stat-line-4); }

.stat-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.stat-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  transition: transform 0.3s;
}

.stat-item:hover .stat-icon-wrap {
  transform: scale(1.1);
}

.stat-icon-wrap.activity {
  background: linear-gradient(135deg, #FFF0E6 0%, #FFE4CC 100%);
}

.stat-icon-wrap.people {
  background: linear-gradient(135deg, #F0F5FF 0%, #E6EEFF 100%);
}

.stat-icon-wrap.material {
  background: linear-gradient(135deg, #F0FFF4 0%, #E0FFE6 100%);
}

.stat-icon-wrap.volunteer {
  background: linear-gradient(135deg, #F5F0FF 0%, #EEE5FF 100%);
}

.stat-icon {
  font-size: 24px;
}

.stat-content {
  text-align: center;
  flex: 1;
}

.stat-item .stat-value {
  font-size: 28px;
  font-weight: 800;
  background: var(--lc-gradient-primary-secondary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
  margin-bottom: 4px;
}

.stat-item .stat-label {
  font-size: 12px;
  color: #64748B;
  font-weight: 500;
  display: block;
}

.stat-trend {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 8px;
  margin-top: 8px;
}

.stat-trend.up {
  color: var(--lc-status-active);
  background: rgba(0, 180, 42, 0.1);
}

.stat-trend.down {
  color: var(--lc-status-inactive);
  background: rgba(245, 63, 63, 0.1);
}

/* ==================== 物资互助 ==================== */
.material-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  padding: 15px;
}

@media (min-width: 768px) {
  .material-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.material-card {
  padding: 20px;
  border-radius: var(--card-radius);
  text-decoration: none;
  color: #333;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.material-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
}

.material-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

.material-card.urgent {
  background: linear-gradient(135deg, #FFF5F5 0%, #FFE8E8 100%);
  border: 1px solid #FFCDD2;
}

.material-card.urgent::before {
  background: linear-gradient(90deg, var(--lc-danger), var(--lc-red-300));
}

.material-card.donate {
  background: linear-gradient(135deg, #F0FFF4 0%, #E6FFFA 100%);
  border: 1px solid #B2EBF2;
}

.material-card.donate::before {
  background: linear-gradient(90deg, var(--lc-success), var(--lc-success-light));
}

.material-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
}

.material-card-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.material-card.urgent .material-card-icon {
  background: rgba(245, 63, 63, 0.15);
}

.material-card.donate .material-card-icon {
  background: rgba(0, 180, 42, 0.15);
}

.material-card-title-wrap {
  flex: 1;
}

.material-card h4 {
  font-size: 15px;
  font-weight: 600;
  margin: 0;
}

.material-card-subtitle {
  font-size: 11px;
  color: #999;
  margin-top: 2px;
}

.material-card-content {
  margin-bottom: 15px;
}

.material-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 12px;
  color: #666;
}

.material-card ul li {
  padding: 6px 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.material-card ul li::before {
  content: '•';
  font-size: 14px;
}

.material-card-scroll {
  overflow: hidden;
  position: relative;
}

.material-card-scroll ul {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  animation: materialScroll 10s linear infinite;
  padding: 0;
}

.material-card-scroll ul li {
  flex-shrink: 0;
  white-space: nowrap;
  padding: 6px 12px;
  background: rgba(0,0,0,0.05);
  border-radius: 15px;
  font-size: 12px;
}

@keyframes materialScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.material-card.urgent ul li::before {
  color: var(--lc-danger);
}

.material-card.donate ul li::before {
  color: var(--lc-success);
}

.material-card-stats {
  display: flex;
  gap: 15px;
  padding-top: 12px;
  border-top: 1px dashed rgba(0,0,0,0.06);
}

.stat-item {
  text-align: center;
  flex: 1;
}

.stat-number {
  font-size: 18px;
  font-weight: 700;
}

.material-card.urgent .stat-number {
  color: var(--lc-danger);
}

.material-card.donate .stat-number {
  color: var(--lc-success);
}

.stat-label {
  font-size: 11px;
  color: #999;
  margin-top: 2px;
}

.material-card-footer {
  margin-top: 15px;
  display: flex;
  justify-content: flex-end;
}

.material-card-btn {
  padding: 6px 14px;
  border-radius: 15px;
  font-size: 12px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

.material-card.urgent .material-card-btn {
  background: rgba(245, 63, 63, 0.1);
  color: var(--lc-danger);
}

.material-card.urgent .material-card-btn:hover {
  background: var(--lc-danger);
  color: #fff;
}

.material-card.donate .material-card-btn {
  background: rgba(0, 180, 42, 0.1);
  color: var(--lc-success);
}

.material-card.donate .material-card-btn:hover {
  background: var(--lc-success);
  color: #fff;
}

/* 物资卡片双按钮布局（我要申领 + 立即捐赠） */
.material-card-btns {
  display: flex;
  gap: 8px;
  width: 100%;
  justify-content: space-between;
}
.material-card-btns .material-card-btn {
  flex: 1;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.material-card-btns .material-btn-claim {
  background: var(--lc-card-neighbor-bg);
  color: #fff;
  box-shadow: 0 2px 8px rgba(255, 107, 53, 0.25);
}
.material-card-btns .material-btn-claim:hover {
  background: linear-gradient(135deg, #E55A2B, #FF7C42);
  transform: translateY(-1px);
}
.material-card-btns .material-btn-donate {
  background: var(--lc-card-volunteer-bg);
  color: #fff;
  box-shadow: 0 2px 8px rgba(0, 180, 42, 0.25);
}
.material-card-btns .material-btn-donate:hover {
  background: linear-gradient(135deg, #009122, #2BAE3A);
  transform: translateY(-1px);
}
@media (max-width: 480px) {
  .material-card-btns .material-card-btn {
    font-size: 12px;
    padding: 7px 8px;
  }
}

/* 列表项操作栏（含申领按钮） */
.card-action-bar {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed #eef0f3;
}
.card-action-bar .action-btn {
  flex: 1;
  padding: 7px 10px;
  border-radius: 16px;
  border: none;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.card-action-bar .action-btn.claim {
  background: var(--lc-card-neighbor-bg);
  color: #fff;
}
.card-action-bar .action-btn.claim:hover {
  background: linear-gradient(135deg, #E55A2B, #FF7C42);
  transform: translateY(-1px);
}
.card-action-bar .action-btn.detail {
  background: #F5F7FA;
  color: #4E5969;
}
.card-action-bar .action-btn.detail:hover {
  background: #E8F5F3;
  color: var(--lc-primary);
}
.card-action-bar .action-btn:disabled {
  background: #F3F4F6 !important;
  color: #9CA3AF !important;
  cursor: not-allowed;
  transform: none !important;
}

/* 分类页操作横幅（申领/发布） */
.action-banner {
  display: flex;
  gap: 10px;
  padding: 0 15px;
  margin: 15px 0;
}
.action-banner-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 14px;
  border: none;
  border-radius: 18px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
  color: #fff;
  text-align: left;
  position: relative;
  overflow: hidden;
}
.action-banner-btn.claim {
  background: var(--lc-card-neighbor-bg);
  box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}
.action-banner-btn.claim:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}
.action-banner-btn.publish {
  background: var(--lc-btn-primary-bg);
  box-shadow: 0 4px 15px rgba(124, 58, 237, 0.3);
}
.action-banner-btn.publish:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(124, 58, 237, 0.4);
}
.action-banner-btn .banner-icon {
  font-size: 22px;
  flex-shrink: 0;
}
.action-banner-btn .banner-text {
  font-size: 15px;
  font-weight: 700;
  flex-shrink: 0;
}
.action-banner-btn .banner-hint {
  font-size: 11px;
  opacity: 0.85;
  font-weight: 500;
  border-left: 1px solid rgba(255,255,255,0.4);
  padding-left: 8px;
  margin-left: 4px;
}
@media (max-width: 480px) {
  .action-banner {
    padding: 0 10px;
    gap: 8px;
  }
  .action-banner-btn {
    padding: 10px 12px;
    font-size: 13px;
  }
  .action-banner-btn .banner-icon { font-size: 18px; }
  .action-banner-btn .banner-text { font-size: 14px; }
  .action-banner-btn .banner-hint {
    font-size: 10px;
    padding-left: 6px;
  }
}

/* ==================== 志愿团队 ==================== */
.team-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  padding: 15px;
}

@media (min-width: 480px) {
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  .team-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.team-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px;
  background: #f9f9f9;
  border-radius: var(--card-radius);
  text-decoration: none;
  color: #333;
}

.team-card .team-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--lc-btn-primary-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #fff;
  flex-shrink: 0;
}

.team-card .team-info {
  flex: 1;
}

.team-card .team-name {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 4px;
}

.team-card .team-meta {
  font-size: 12px;
  color: #999;
}

.team-card .join-btn {
  padding: 6px 12px;
  background: var(--secondary-color);
  color: #fff;
  border-radius: 15px;
  font-size: 12px;
}

/* ==================== 合作单位滚动栏 ==================== */
.partners-scroll {
  background: linear-gradient(135deg, #fff 0%, #f8fafc 100%);
  border-radius: 12px;
  padding: 20px 15px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.partners-scroll h3 {
  font-size: 16px;
  color: #333;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.partners-scroll h3::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--lc-loading-bg);
}

.partners-track {
  display: flex;
  gap: 15px;
  animation: scroll 20s linear infinite;
}

.partner-item {
  width: 100px;
  height: 50px;
  background: linear-gradient(135deg, #fff 0%, #f5f7fa 100%);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: #666;
  border: 1px solid #e8e8e8;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.partner-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  border-color: var(--lc-primary);
}

.partner-item .partner-icon {
  font-size: 20px;
  margin-bottom: 2px;
}

@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ==================== 帮助咨询 ==================== */
.help-section {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 15px;
  background: #fff;
  border-radius: 12px;
  margin-bottom: 15px;
}

.help-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 20px 15px;
  background: #f9f9f9;
  border-radius: var(--card-radius);
  text-decoration: none;
  color: #333;
  transition: all 0.2s;
}

.help-item:hover {
  background: #f0f0f0;
}

.help-item .help-icon {
  font-size: 28px;
}

.help-item .help-text {
  font-size: 13px;
}

/* ==================== 底部版权区 ==================== */
.site-footer {
  background: #2C2C2C;
  color: #999;
  padding: 20px 15px calc(20px + var(--nav-height));
  text-align: center;
  flex-shrink: 0;
}

.footer-slogan {
  font-size: 18px;
  color: #fff;
  margin-bottom: 15px;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 15px;
  flex-wrap: wrap;
}

.footer-links a {
  color: #999;
  font-size: 13px;
  text-decoration: none;
}

.footer-links a:hover {
  color: #fff;
}

.footer-eco-label {
  color: #ccc;
  font-size: 13px;
  font-weight: 700;
}

.footer-copyright {
  font-size: 12px;
  line-height: 1.8;
}

/* ==================== 底部Tab导航 ==================== */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: #fff;
  border-top: 1px solid #eee;
  display: flex;
  align-items: center;
  justify-content: space-around;
  z-index: 1000;
  padding: 0 10px;
  box-shadow: 0 -2px 12px rgba(0,0,0,0.06);
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 5px 10px;
  text-decoration: none;
  color: #999;
  font-size: 10px;
  transition: color 0.2s;
  flex-shrink: 0;
  min-width: 0;
  position: relative;
}

.nav-badge {
  display: none;
  position: absolute;
  top: 2px;
  right: 8px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--lc-danger);
  color: var(--lc-surface);
  font-size: 11px;
  line-height: 18px;
  text-align: center;
  font-weight: 700;
}

/* 用户端统一 H5 壳层 */
html {
  background: #e9eef5;
}

body.user-h5-app {
  width: min(430px, 100%) !important;
  min-height: 100vh !important;
  margin: 0 auto !important;
  padding-bottom: 88px !important;
  overflow-x: hidden !important;
  background: #f6f8fb !important;
  box-shadow: 0 0 28px rgba(15, 23, 42, 0.08);
}

body.user-h5-app .site-header,
body.user-h5-app .user-header,
body.user-h5-app .simple-header,
body.user-h5-app > .header,
body.user-h5-app .page-header {
  position: sticky !important;
  top: 0 !important;
  z-index: 120 !important;
  width: 100% !important;
  border-radius: 0 0 18px 18px;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
}

body.user-h5-app .nav-container,
body.user-h5-app .header-content,
body.user-h5-app .main-container,
body.user-h5-app .page-container,
body.user-h5-app .upgrade-container,
body.user-h5-app .container {
  width: 100% !important;
  max-width: 430px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

body.user-h5-app .main-container,
body.user-h5-app .upgrade-container,
body.user-h5-app .container {
  padding-left: 14px !important;
  padding-right: 14px !important;
}

body.user-h5-app .header-nav,
body.user-h5-app .desktop-nav,
body.user-h5-app .site-footer,
body.user-h5-app .global-footer {
  display: none !important;
}

body.user-h5-app .bottom-nav {
  left: 50% !important;
  right: auto !important;
  width: min(430px, 100%) !important;
  transform: translateX(-50%) !important;
  border-radius: 18px 18px 0 0;
}

body.user-h5-app img,
body.user-h5-app table {
  max-width: 100%;
}

.nav-item .nav-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 40px;
}

.nav-item.active {
  color: var(--secondary-color);
}

.nav-item .nav-icon {
  font-size: 20px;
}

.nav-item.nav-publish {
  position: relative;
  top: -15px;
  background: linear-gradient(135deg, var(--secondary-color) 0%, var(--secondary-light) 100%);
  border-radius: 50%;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(255, 107, 53, 0.4);
  padding: 0;
}

.nav-item.nav-publish .nav-icon {
  font-size: 24px;
  color: #fff;
}

.nav-item.nav-publish .nav-text {
  display: none;
}

.bottom-slogan {
  display: none;
  font-size: 10px;
  color: var(--primary-color);
  position: absolute;
  bottom: 5px;
  right: 15px;
}

/* ==================== 悬浮客服和回到顶部 ==================== */
.floating-buttons {
  position: fixed;
  right: 15px;
  bottom: calc(var(--nav-height) + 15px);
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 999;
}

.floating-service {
  width: 48px;
  height: 48px;
  background: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 22px;
  box-shadow: 0 4px 12px rgba(35, 184, 166, 0.4);
  cursor: pointer;
}

.back-to-top {
  width: 48px;
  height: 48px;
  background: rgba(255,255,255,0.95);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  cursor: pointer;
  border: 1px solid #eee;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--primary-color);
  color: #fff;
  border-color: var(--primary-color);
}

/* ==================== 空状态 ==================== */
.empty-state {
  text-align: center;
  padding: 30px;
  color: #999;
}

.empty-state .icon {
  font-size: 32px;
  margin-bottom: 8px;
}

/* ==================== 登录弹窗 ==================== */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 2000;
  justify-content: center;
  align-items: center;
}

.modal-overlay.show {
  display: flex;
}

.login-modal {
  background: #fff;
  border-radius: 16px;
  width: 90%;
  max-width: 360px;
  padding: 30px;
  text-align: center;
}

.login-modal h3 {
  font-size: 18px;
  margin-bottom: 20px;
}

.login-modal .login-btn {
  width: 100%;
  padding: 12px;
  background: var(--secondary-color);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  margin-top: 15px;
  cursor: pointer;
}

/* ==================== 响应式 ==================== */
/* 480px以下：gap/padding减小，封面16:10比例，标题最多2行 */
@media screen and (max-width: 480px) {
  .resource-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    padding: 8px;
    overflow-x: visible;
  }

  .resource-list .grid-media-card {
    width: 100%;
  }

  .resource-list .grid-media-card .cover-wrap {
    aspect-ratio: 1/1;
  }

  .resource-list .grid-media-card .title {
    font-size: 12px;
    font-weight: 700;
    white-space: normal;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.3;
    padding: 0 6px;
  }

  .resource-list .grid-media-card .meta {
    font-size: 10px;
    padding: 0 6px 6px;
    gap: 4px;
  }

  .resource-list .grid-media-card .play-btn {
    width: 28px;
    height: 28px;
    font-size: 12px;
  }

  .resource-list .grid-media-card .duration {
    font-size: 10px;
    padding: 1px 4px;
  }

  .category-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    padding: 8px;
  }

  #charitySection .category-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  #charitySection .charity-card-lg,
  #charitySection .charity-card-sm {
    grid-column: span 1;
  }

  .category-grid .grid-media-card .cover-wrap {
    aspect-ratio: 1/1;
  }

  .category-grid .grid-media-card .title {
    font-size: 12px;
    font-weight: 700;
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.3;
  }
}

/* 360px以下：最小屏适配，2列，封面1:1比例，标题强制2行 */
@media screen and (max-width: 360px) {
  .resource-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
    padding: 6px;
    overflow-x: visible;
  }

  .resource-list .grid-media-card .cover-wrap {
    aspect-ratio: 1/1;
  }

  .resource-list .grid-media-card .title {
    font-size: 11px;
    white-space: normal;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.3;
    height: auto;
    padding: 0 4px;
  }

  .resource-list .grid-media-card .meta {
    font-size: 9px;
    padding: 0 4px 4px;
  }

  .category-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
    padding: 6px;
  }

  .category-grid .grid-media-card .cover-wrap {
    aspect-ratio: 1/1;
  }

  .category-grid .grid-media-card .title {
    font-size: 11px;
  }
}

/* 768px以上（PC端）：4列布局，居中显示 */
@media screen and (min-width: 768px) {
  .resource-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    padding: 16px;
    max-width: 1200px;
    margin: 0 auto;
    overflow-x: visible;
  }

  .resource-list .grid-media-card .cover-wrap {
    aspect-ratio: 1/1;
  }

  .resource-list .grid-media-card .title {
    font-size: 14px;
    font-weight: 700;
  }

  .resource-list .grid-media-card .meta {
    font-size: 12px;
  }

  .category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    padding: 16px;
    max-width: 1200px;
    margin: 0 auto;
  }

  .category-grid .grid-media-card .cover-wrap {
    aspect-ratio: 1/1;
  }

  .category-grid .grid-media-card .title {
    font-size: 14px;
    font-weight: 700;
  }

  #charitySection .category-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  #charitySection .charity-card-lg {
    grid-column: span 2;
  }
  
  #charitySection .charity-card-sm {
    grid-column: span 1;
  }
}

/* 1024px以上（更大屏幕）：4列布局，增大间距，居中显示 */
@media screen and (min-width: 1024px) {
  .resource-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
    overflow-x: visible;
  }

  .category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
  }
  
  #charitySection .category-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  #charitySection .charity-card-lg {
    grid-column: span 2;
  }
  
  #charitySection .charity-card-sm {
    grid-column: span 1;
  }
}

/* 通用响应式 - 768px以下 */
@media (max-width: 768px) {
  .quick-entry {
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    padding: 10px;
  }

  .quick-item {
    padding: 10px 6px;
  }

  .quick-item .icon-box {
    width: 36px;
    height: 36px;
    font-size: 18px;
  }

  .quick-item .label {
    font-size: 12px;
  }

  .love-action-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    padding: 10px;
  }

  .action-card {
    padding: 12px 8px;
  }

  .action-card .card-icon {
    width: 36px;
    height: 36px;
    font-size: 18px;
    margin-bottom: 6px;
  }

  .action-card .card-title {
    font-size: 12px;
  }

  .action-card .card-desc {
    font-size: 10px;
  }

  /* 文章卡片在移动端2列网格中统一显示为纵向布局 */
  .article-card.featured {
    grid-column: span 1;
    display: flex;
    flex-direction: column;
  }

  .article-card.featured .article-cover {
    width: 100%;
    aspect-ratio: 1/1;
  }

  .article-card.normal {
    flex-direction: column;
  }

  .article-card.normal .article-cover {
    width: 100%;
    aspect-ratio: 1/1;
    height: auto;
  }

  .article-card.small {
    flex-direction: column;
  }

  .article-card.small .article-cover {
    display: block;
    width: 100%;
    aspect-ratio: 1/1;
    height: auto;
  }

  .category-grid .article-card {
    flex-direction: column;
  }

  .category-grid .article-card .article-cover {
    width: 100%;
    aspect-ratio: 1/1;
  }

  .category-grid .article-card .title {
    font-size: 12px;
    line-height: 1.4;
  }

  .category-grid .article-card .excerpt {
    font-size: 11px;
    line-height: 1.3;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 15px;
  }

  .stat-item {
    padding: 12px 8px;
  }

  .stat-icon-wrap {
    width: 40px;
    height: 40px;
    margin-bottom: 10px;
  }

  .stat-icon {
    font-size: 20px;
  }

  .stat-item .stat-value {
    font-size: 24px;
  }

  .stat-item .stat-label {
    font-size: 11px;
  }

  .stats-header {
    padding: 12px 15px;
  }

  .stats-text {
    font-size: 16px;
  }

  .stats-badge {
    font-size: 10px;
    padding: 3px 10px;
  }

  .material-grid {
    grid-template-columns: 1fr;
  }

  .team-grid {
    grid-template-columns: 1fr;
  }

  .help-section {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    padding: 10px;
  }

  .help-item {
    padding: 15px 10px;
  }

  .help-item .help-icon {
    font-size: 22px;
  }

  .help-item .help-text {
    font-size: 12px;
  }

  .banner-carousel {
    height: 160px;
  }

  .banner-slide-title {
    font-size: 16px;
  }
}
