/* 全局样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: #1a1a1a;
  background: #fafafa;
}

/* 导航栏 */
.navbar {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #eee;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
}

.nav-brand {
  font-weight: 700;
  font-size: 1.1rem;
  color: #1a1a1a;
}

.nav-links a {
  margin-left: 1.5rem;
  text-decoration: none;
  color: #666;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: #1a1a1a;
}

/* Hero 区域 */
.hero {
  text-align: center;
  padding: 5rem 2rem 4rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.hero h1 {
  font-size: 2.8rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.subtitle {
  font-size: 1.2rem;
  opacity: 0.9;
  margin-bottom: 3rem;
}

.total-raised {
  display: inline-block;
  background: rgba(255, 255, 255, 0.15);
  padding: 1.5rem 3rem;
  border-radius: 16px;
  backdrop-filter: blur(10px);
}

.total-amount {
  font-size: 3rem;
  font-weight: 800;
}

.total-label {
  font-size: 0.9rem;
  opacity: 0.8;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* 通用 section */
section {
  padding: 4rem 2rem;
  max-width: 800px;
  margin: 0 auto;
}

section h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  text-align: center;
}

/* 故事区域 */
.story-section {
  background: white;
}

.story-content {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #333;
}

.story-content p {
  margin-bottom: 1.2rem;
}

.disclaimer {
  background: #f8f9fa;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  border-left: 4px solid #667eea;
  font-size: 0.95rem;
  color: #555;
}

/* 支持区域 */
.support-section {
  background: #f5f5f7;
}

.support-desc {
  text-align: center;
  color: #666;
  margin-bottom: 2rem;
}

.support-form {
  background: white;
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.form-group input[type="text"],
.form-group input[type="number"] {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.2s;
}

.form-group input:focus {
  outline: none;
  border-color: #667eea;
}

.amount-buttons {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}

.amount-btn {
  flex: 1;
  min-width: 70px;
  padding: 0.75rem;
  border: 2px solid #ddd;
  background: white;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.amount-btn:hover {
  border-color: #667eea;
}

.amount-btn.active {
  border-color: #667eea;
  background: #667eea;
  color: white;
}

.custom-amount input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
}

.pay-btn {
  width: 100%;
  padding: 1rem;
  background: #667eea;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.pay-btn:hover:not(:disabled) {
  background: #5568d3;
}

.pay-btn:disabled {
  background: #ccc;
  cursor: not-allowed;
}

/* 排行榜 */
.leaderboard-section {
  background: white;
}

.leaderboard-desc {
  text-align: center;
  color: #666;
  margin-bottom: 2rem;
}

.leaderboard {
  background: #fafafa;
  border-radius: 12px;
  overflow: hidden;
}

.leaderboard-item {
  display: flex;
  align-items: center;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid #eee;
  transition: background 0.2s;
}

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

.leaderboard-item:hover {
  background: #f0f0f0;
}

.rank {
  width: 40px;
  font-size: 1.2rem;
  font-weight: 700;
  color: #999;
}

.rank-1 { color: #FFD700; }
.rank-2 { color: #C0C0C0; }
.rank-3 { color: #CD7F32; }

.supporter-name {
  flex: 1;
  font-weight: 500;
}

.supporter-amount {
  font-weight: 700;
  color: #667eea;
}

.loading {
  text-align: center;
  padding: 2rem;
  color: #999;
}

/* 页脚 */
.footer {
  text-align: center;
  padding: 2rem;
  background: #1a1a1a;
  color: #999;
  font-size: 0.9rem;
}

.footer a {
  color: #999;
  text-decoration: none;
  margin: 0 0.5rem;
}

.footer a:hover {
  color: white;
}

/* 左右两栏布局 */
.main-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

.left-column {
  min-width: 0;
}

.left-column section {
  padding: 2rem 0;
  max-width: 100%;
}

.right-column {
  position: sticky;
  top: 80px;
  align-self: start;
}

.sidebar-widget {
  background: white;
  border-radius: 16px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.sidebar-widget h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.sidebar-widget .leaderboard {
  max-height: 400px;
  overflow-y: auto;
}

/* 响应式 */
@media (max-width: 900px) {
  .main-layout {
    grid-template-columns: 1fr;
  }
  
  .right-column {
    position: static;
    order: -1;
  }
}

@media (max-width: 600px) {
  .navbar {
    padding: 1rem;
  }
  
  .nav-links {
    display: none;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .total-amount {
    font-size: 2.2rem;
  }
  
  section {
    padding: 3rem 1rem;
  }
  
  .amount-buttons {
    gap: 0.25rem;
  }
  
  .amount-btn {
    min-width: 55px;
    padding: 0.6rem 0.25rem;
    font-size: 0.9rem;
  }
}
/* （注：内容由AI生成） */
