/* 普米族文化公益网站样式 */

:root {
  --primary: #8B0000;
  --primary-light: #CD5C5C;
  --primary-dark: #5C0000;
  --secondary: #B22222;
  --secondary-light: #DC143C;
  --accent: #F0E68C;
  --accent-gold: #DAA520;
  --bg-primary: #FAF8F5;
  --bg-secondary: #F5F0E8;
  --bg-white: #FFFFFF;
  --text-primary: #2D2D2D;
  --text-secondary: #6B6B6B;
  --text-light: #9A9A9A;
  --border: #E0D8D0;
  --border-light: #EDE8E0;
  --spacing-xs: 8px;
  --spacing-sm: 16px;
  --spacing-md: 24px;
  --spacing-lg: 40px;
  --spacing-xl: 80px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
  --transition: all 0.3s ease;
}

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

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: "Noto Sans SC", "Microsoft YaHei", sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

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

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

ul, ol { list-style: none; }

h1, h2, h3, h4, h5, h6 {
  font-family: "Noto Serif SC", "Source Han Serif CN", "SimSun", serif;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text-primary);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p { margin-bottom: 1rem; }

.font-decorative {
  font-family: "ZCOOL XiaoWei", "Ma Shan Zheng", serif;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.section {
  padding: var(--spacing-xl) 0;
}

.section-title {
  text-align: left;
  margin-bottom: var(--spacing-lg);
  position: relative;
  font-size: 1.5rem;
  color: #1a3a2a;
  font-weight: 600;
}

/* 顶部导航 */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 70px;
  background: rgba(250, 248, 245, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  z-index: 1000;
  transition: var(--transition);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: "Noto Serif SC", serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--secondary);
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.1rem;
}

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

.nav-link {
  position: relative;
  font-size: 1rem;
  color: var(--text-primary);
  padding: 8px 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--secondary);
  transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link:hover,
.nav-link.active {
  color: var(--secondary);
}

/* 登录状态用户菜单 */
.nav-link.logged-in {
  padding: 0;
}

.user-menu {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 20px;
  background: #f5f7fa;
  cursor: pointer;
  position: relative;
  transition: all 0.3s ease;
}

.user-menu:hover {
  background: #e8e8e8;
}

.user-avatar-small {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
}

.user-menu span {
  font-size: 0.9rem;
  color: #333;
  max-width: 80px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 8px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  min-width: 140px;
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 1000;
}

.user-menu:hover .user-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.user-dropdown a {
  display: block;
  padding: 10px 16px;
  color: #333;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.user-dropdown a:hover {
  background: #f5f7fa;
  color: #1a3a2a;
}

/* 导航栏搜索框 */
.nav-search {
  display: flex;
  align-items: center;
  margin-left: 20px;
  position: relative;
}

.nav-search input {
  width: 180px;
  padding: 10px 40px 10px 16px;
  font-size: 0.95rem;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--bg-white);
  outline: none;
  transition: all 0.3s ease;
}

.nav-search input:focus {
  width: 220px;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(139, 69, 19, 0.1);
}

.nav-search input::placeholder {
  color: var(--text-light);
}

.nav-search button {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--primary);
  color: white;
  border: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.nav-search button:hover {
  background: var(--primary-dark);
}

@media (max-width: 992px) {
  .nav-search {
    display: none;
  }
}

/* 导航下拉菜单 */
.nav-dropdown {
  position: relative;
  display: inline-block;
}

.nav-dropdown > .nav-link {
  cursor: pointer;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  min-width: 140px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  border-radius: 4px;
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.2s ease;
  z-index: 1000;
}

.nav-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu a {
  display: block;
  padding: 10px 16px;
  color: var(--text-primary);
  font-size: 0.9rem;
  transition: all 0.2s;
  white-space: nowrap;
}

.dropdown-menu a:hover {
  background: var(--bg-secondary);
  color: var(--secondary);
}

.dropdown-menu a.active {
  color: var(--secondary);
  background: var(--bg-secondary);
}

/* 用户导航下拉菜单样式 */
.user-nav-dropdown {
  position: relative;
  display: inline-block;
}

.user-nav-link {
  display: flex !important;
  align-items: center;
  gap: 8px;
  padding: 6px 12px !important;
}

.user-avatar-small {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--secondary);
}

.user-name {
  max-width: 80px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dropdown-arrow {
  font-size: 10px;
  margin-left: 2px;
}

.user-dropdown-menu {
  min-width: 160px;
  right: 0;
  left: auto !important;
}

.user-dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
}

.user-dropdown-menu svg {
  flex-shrink: 0;
  opacity: 0.7;
}

.dropdown-divider {
  height: 1px;
  background: var(--border-color);
  margin: 8px 0;
}

.logout-link {
  color: #e74c3c !important;
}

.logout-link:hover {
  background: #fdf2f2 !important;
}

/* 移动端用户下拉菜单 */
@media (max-width: 768px) {
  .user-nav-link {
    padding: 12px 16px !important;
  }
  
  .user-avatar-small {
    width: 28px;
    height: 28px;
  }
  
  .user-dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    background: rgba(0,0,0,0.05);
    display: none;
  }
  
  .user-nav-dropdown.active .user-dropdown-menu {
    display: block;
  }
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
}

.menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--secondary);
  transition: var(--transition);
}

.main {
  padding-top: 70px;
  background: #f5f7fa;
  min-height: calc(100vh - 70px);
}

/* 首页主内容区统一与社群页面一致 */
.main .container {
  max-width: 1400px;
  padding: 24px;
}

.main .section {
  padding: 24px 0;
}

.main .section:first-child {
  padding-top: 0;
}

/* 轮播 Banner */
.banner {
  position: relative;
  height: 600px;
  overflow: hidden;
  background: var(--secondary);
}

.banner-slides {
  display: flex;
  height: 100%;
  transition: transform 0.5s ease;
}

.banner-slide {
  min-width: 100%;
  height: 100%;
  position: relative;
}

.banner-slide::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.7) 100%);
  z-index: 1;
}

.banner-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.banner-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: white;
  max-width: 800px;
  padding: 0 var(--spacing-md);
  z-index: 2;
}

.banner-title {
  font-size: 4rem;
  font-family: "Noto Serif SC", serif;
  font-weight: 700;
  color: #fff;
  margin-bottom: var(--spacing-sm);
  text-shadow: 0 2px 20px rgba(0,0,0,0.5), 0 0 40px rgba(0,0,0,0.3);
  letter-spacing: 0.1em;
}

.banner-subtitle {
  font-size: 1.5rem;
  color: #fff;
  opacity: 0.95;
  margin-bottom: var(--spacing-md);
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.banner-controls {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 10;
}

.banner-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: var(--transition);
}

.banner-dot.active {
  background: var(--accent-gold);
  width: 30px;
  border-radius: 6px;
}

.banner-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  color: white;
  font-size: 1.2rem;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.banner-arrow:hover {
  background: rgba(255,255,255,0.2);
}

.banner-arrow.prev { left: 30px; }
.banner-arrow.next { right: 30px; }

/* 快速入口卡片区 */
.quick-entry {
  background: var(--bg-white);
  padding: var(--spacing-xl) 0;
}

.entry-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--spacing-md);
}

.entry-card {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.entry-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  border-color: #1a3a2a;
}

.entry-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto var(--spacing-sm);
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: white;
}

.entry-title {
  font-size: 1.1rem;
  margin-bottom: var(--spacing-xs);
}

.entry-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* 文化专题区 */
.featured-section {
  background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
  padding: var(--spacing-xl) 0;
}

.featured-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-lg);
}

.featured-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  transition: all 0.3s ease;
  border: 1px solid #e8e8e8;
}

.featured-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transform: translateY(-4px);
  border-color: #1a3a2a;
}

.featured-image {
  height: 280px;
  background: var(--secondary);
  position: relative;
  overflow: hidden;
}

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

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

.featured-tag {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--accent);
  color: white;
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
}

.featured-content {
  padding: var(--spacing-md);
}

.featured-title {
  font-size: 1.3rem;
  margin-bottom: var(--spacing-xs);
  color: var(--secondary);
}

.featured-text {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: var(--spacing-sm);
}

.featured-link {
  color: var(--secondary);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.featured-link:hover {
  color: var(--accent);
}

/* 内容详情页通用样式 */
.page-header {
  background: linear-gradient(135deg, var(--secondary), var(--secondary-light));
  background-size: cover;
  background-position: center;
  padding: 80px 0 60px;
  text-align: center;
  color: white;
  position: relative;
}

.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="0.5"/></svg>');
  background-size: 100px;
  opacity: 0.5;
}

.page-title {
  font-size: 2.5rem;
  color: #fff;
  margin-bottom: var(--spacing-xs);
  position: relative;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.page-subtitle {
  color: #fff;
  opacity: 0.85;
  font-size: 1.1rem;
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.content-wrapper {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: var(--spacing-lg);
  padding: var(--spacing-xl) 0;
}

.content-main {
  background: var(--bg-white);
  padding: var(--spacing-lg);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.content-sidebar {
  position: sticky;
  top: 90px;
  height: fit-content;
}

.sidebar-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--spacing-md);
  margin-bottom: var(--spacing-md);
}

.sidebar-title {
  font-size: 1rem;
  color: var(--secondary);
  margin-bottom: var(--spacing-sm);
  padding-bottom: var(--spacing-xs);
  border-bottom: 2px solid var(--secondary-light);
}

/* 文章卡片 */
.article-list {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.article-card {
  display: flex;
  gap: var(--spacing-md);
  padding: var(--spacing-md);
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.article-card:hover {
  box-shadow: var(--shadow-sm);
  transform: translateX(4px);
}

.article-thumb {
  width: 160px;
  height: 100px;
  border-radius: var(--radius-sm);
  background: var(--secondary);
  flex-shrink: 0;
  overflow: hidden;
}

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

.article-info h4 {
  font-size: 1.1rem;
  margin-bottom: var(--spacing-xs);
  color: var(--secondary);
}

.article-info p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: var(--spacing-xs);
}

.article-meta {
  font-size: 0.8rem;
  color: var(--text-light);
}

/* 资料库上传区域 */
.upload-section {
  background: var(--bg-white);
  border: 2px dashed var(--border);
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg);
  text-align: center;
  margin-bottom: var(--spacing-lg);
}

.upload-icon {
  font-size: 3rem;
  margin-bottom: var(--spacing-sm);
}

.upload-btn {
  display: inline-block;
  background: var(--primary);
  color: white;
  padding: 12px 32px;
  border-radius: var(--radius-md);
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

.upload-btn:hover {
  background: var(--primary-light);
  transform: scale(1.02);
}

/* 上传弹窗 */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 2000;
  align-items: center;
  justify-content: center;
}

.modal.active {
  display: flex;
}

.modal-content {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg);
  max-width: 500px;
  width: 90%;
}

.modal-title {
  font-size: 1.3rem;
  margin-bottom: var(--spacing-md);
  color: var(--secondary);
}

.form-group {
  margin-bottom: var(--spacing-md);
}

.form-label {
  display: block;
  margin-bottom: var(--spacing-xs);
  font-weight: 500;
  color: var(--text-primary);
}

.form-input, 
.form-select, 
.form-textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  transition: var(--transition);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(139, 69, 19, 0.1);
}

.form-textarea {
  resize: vertical;
  min-height: 80px;
}

.modal-actions {
  display: flex;
  gap: var(--spacing-sm);
  justify-content: flex-end;
}

.btn {
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-primary {
  background: #1a3a2a;
  color: white;
}

.btn-primary:hover {
  background: #2d5a45;
}

.btn-secondary {
  background: #e8e8e8;
  border: none;
  color: #555;
}

.btn-secondary:hover {
  background: #d0d0d0;
}

/* 公益行动页面 */
.charity-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-md);
}

.charity-card {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.charity-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transform: translateY(-4px);
  border-color: #1a3a2a;
}

.charity-image {
  height: 180px;
  background: linear-gradient(135deg, var(--secondary), var(--primary));
}

.charity-content {
  padding: var(--spacing-md);
}

.charity-title {
  font-size: 1.2rem;
  margin-bottom: var(--spacing-xs);
  color: var(--secondary);
}

.charity-desc {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: var(--spacing-sm);
}

.charity-link {
  display: inline-block;
  color: var(--accent);
  font-weight: 500;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
  padding: 0;
}

/* 可展开公益卡片 */
.charity-expandable {
  position: relative;
}

.charity-detail {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
  background: var(--bg-secondary);
}

.charity-expandable.expanded .charity-detail {
  max-height: 800px;
  padding: var(--spacing-md);
}

.charity-detail-content {
  text-align: left;
}

.charity-detail-content h4 {
  font-size: 1.1rem;
  color: var(--secondary);
  margin: var(--spacing-md) 0 var(--spacing-sm);
}

.charity-detail-content h4:first-child {
  margin-top: 0;
}

.charity-detail-content p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: var(--spacing-sm);
}

.charity-detail-content ul {
  list-style: disc;
  padding-left: var(--spacing-md);
  margin-bottom: var(--spacing-sm);
}

.charity-detail-content li {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: var(--spacing-xs);
}

.volunteer-types {
  display: grid;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-sm);
}

.volunteer-type {
  background: var(--bg-white);
  padding: var(--spacing-sm);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--accent);
}

.volunteer-type strong {
  display: block;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.volunteer-type p {
  margin: 0;
  font-size: 0.85rem;
}

.charity-signup {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: white;
  padding: var(--spacing-md);
  border-radius: var(--radius-md);
  margin-top: var(--spacing-md);
  text-align: center;
}

.charity-signup h4 {
  color: white;
  margin: 0 0 var(--spacing-sm);
}

.signup-hint {
  font-size: 0.85rem;
  opacity: 0.9;
  margin-bottom: var(--spacing-sm);
}

.charity-signup .btn {
  background: white;
  color: var(--secondary);
  border: none;
}

.charity-signup .btn:hover {
  background: var(--bg-secondary);
}

/* 页脚 */
.footer {
  background: var(--secondary);
  color: rgba(255,255,255,0.85);
  padding: var(--spacing-xl) 0 var(--spacing-lg);
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--spacing-lg);
}

.footer-brand {
  max-width: 280px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  font-family: "Noto Serif SC", serif;
  font-size: 1.3rem;
  color: white;
  margin-bottom: var(--spacing-sm);
}

.footer-desc {
  font-size: 0.9rem;
  opacity: 0.8;
  line-height: 1.6;
}

.footer-title {
  font-size: 1rem;
  color: white;
  margin-bottom: var(--spacing-sm);
}

.footer-links li {
  margin-bottom: var(--spacing-xs);
}

.footer-links a {
  font-size: 0.9rem;
  opacity: 0.75;
}

.footer-links a:hover {
  opacity: 1;
  color: var(--accent-gold);
}

.footer-bottom {
  margin-top: var(--spacing-lg);
  padding-top: var(--spacing-md);
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
  font-size: 0.85rem;
  opacity: 0.6;
}

/* 返回顶部 */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 45px;
  height: 45px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transition: var(--transition);
  z-index: 999;
  border: none;
  font-size: 1.2rem;
}

.back-to-top.visible {
  opacity: 1;
}

.back-to-top:hover {
  background: var(--primary-light);
  transform: translateY(-3px);
}

/* 响应式布局 */
@media (max-width: 1024px) {
  .entry-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .content-wrapper {
    grid-template-columns: 1fr;
  }

  .content-sidebar {
    position: static;
  }

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

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

@media (max-width: 768px) {
  .nav {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--bg-white);
    flex-direction: column;
    padding: var(--spacing-md);
    gap: 0;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
  }

  .nav.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-link {
    padding: var(--spacing-sm) 0;
    border-bottom: 1px solid var(--border-light);
  }

  .menu-toggle {
    display: flex;
  }

  .banner {
    height: 400px;
  }

  .banner-title {
    font-size: 2rem;
  }

  .banner-subtitle {
    font-size: 1rem;
  }

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

  .charity-cards {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-brand {
    max-width: 100%;
  }

  .page-title {
    font-size: 2rem;
  }
}

/* 动画效果 */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in {
  animation: fadeIn 0.6s ease forwards;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }

/* 登录按钮 */
.login-btn {
  background: var(--primary);
  color: white !important;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.95rem;
}

.login-btn:hover {
  background: var(--primary-light);
  color: white !important;
}

.login-btn::after {
  display: none;
}

/* 社群CTA模块 */
.community-cta {
  padding: 60px 0;
}

.cta-content {
  display: flex;
  align-items: center;
  gap: 48px;
  color: white;
}

.cta-icon {
  width: 120px;
  height: 120px;
  background: rgba(255,255,255,0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cta-text {
  flex: 1;
}

.cta-text h2 {
  font-size: 2rem;
  color: white;
  margin-bottom: 8px;
}

.cta-text p {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-bottom: 16px;
}

.cta-stats {
  display: flex;
  gap: 32px;
  margin-bottom: 20px;
  font-size: 0.95rem;
}

.cta-stats strong {
  color: var(--accent-gold);
  margin-right: 4px;
}

.cta-actions {
  display: flex;
  gap: 16px;
}

.btn-outline-white {
  display: inline-block;
  padding: 12px 28px;
  border: 2px solid white;
  border-radius: var(--radius-md);
  color: white;
  font-size: 1rem;
  transition: var(--transition);
}

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

/* 管理员待审核卡片 */
.admin-pending-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 24px;
  background: linear-gradient(135deg, rgba(196, 30, 58, 0.1), rgba(212, 175, 55, 0.1));
  border: 2px solid var(--accent);
  border-radius: var(--radius-lg);
}

.pending-icon {
  width: 48px;
  height: 48px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  flex-shrink: 0;
}

.pending-info {
  flex: 1;
}

.pending-info h4 {
  font-size: 1.1rem;
  color: var(--accent);
  margin-bottom: 4px;
}

.pending-info p {
  color: var(--text-secondary);
  margin: 0;
}

.pending-info strong {
  color: var(--accent);
}

@media (max-width: 768px) {
  .cta-content {
    flex-direction: column;
    text-align: center;
  }

  .cta-stats {
    justify-content: center;
  }

  .cta-actions {
    flex-direction: column;
  }

  .admin-pending-card {
    flex-direction: column;
    text-align: center;
  }
}
