:root {
  --primary: #1a1a2e;
  --secondary: #16213e;
  --accent: #e94560;
  --accent-hover: #c73d54;
  --bg: #f8f9fa;
  --card-bg: #ffffff;
  --text: #333333;
  --text-light: #666666;
  --border: #e0e0e0;
  --wenbo: #8B4513;
  --yanyi: #FF6B6B;
  --shangye: #4ECDC4;
  --lvyou: #45B7D1;
  --tiyu: #96CEB4;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 15px;
}

.header {
  background: linear-gradient(135deg, #e94560 0%, #c73d54 50%, #1a1a2e 100%);
  color: white;
  padding: 0.8rem 0;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 1px;
}

.nav {
  display: flex;
  gap: 0.4rem;
}

.nav a {
  color: white;
  text-decoration: none;
  padding: 0.4rem 1rem;
  border-radius: 6px;
  font-weight: 500;
  font-size: 0.85rem;
  transition: all 0.3s;
}

.nav a:hover,
.nav a.active {
  background: rgba(255,255,255,0.15);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem 1.5rem;
}

.page-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: var(--primary);
}

.page-subtitle {
  color: var(--text-light);
  margin-bottom: 1.2rem;
  font-size: 0.85rem;
}

/* 周筛选器 */
.week-filter {
  background: var(--card-bg);
  padding: 1rem 1.5rem;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
}

.week-nav-btn {
  background: var(--primary);
  color: white;
  border: none;
  padding: 0.5rem 1.2rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.8rem;
  cursor: pointer;
  transition: background 0.3s;
  white-space: nowrap;
}

.week-nav-btn:hover {
  background: var(--accent);
}

.week-display {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
}

.week-label {
  font-size: 0.7rem;
  color: var(--text-light);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.week-range {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary);
}

.week-count {
  font-size: 0.75rem;
  color: var(--accent);
  font-weight: 600;
}

/* 日期筛选器 (即将上线页用) */
.date-filter {
  background: var(--card-bg);
  padding: 1rem 1.2rem;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.date-filter label {
  font-weight: 600;
  color: var(--text);
  font-size: 0.85rem;
}

.date-filter input[type="date"] {
  padding: 0.4rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.85rem;
  font-family: inherit;
}

.date-filter button {
  background: var(--accent);
  color: white;
  border: none;
  padding: 0.4rem 1.2rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.3s;
}

.date-filter button:hover {
  background: var(--accent-hover);
}

.category-section {
  margin-bottom: 2rem;
}

.category-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.8rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid var(--border);
}

.category-title {
  font-size: 1.1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.category-count {
  color: var(--text-light);
  font-size: 0.8rem;
  font-weight: 400;
}

.more-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  transition: color 0.3s;
}

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

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

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

.activity-card {
  background: var(--card-bg);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.activity-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.card-badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  font-size: 0.65rem;
  font-weight: 600;
  color: white;
  margin-bottom: 0.4rem;
}

.card-content {
  padding: 0.9rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-title {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  line-height: 1.4;
  color: var(--primary);
}

.card-desc {
  font-size: 0.78rem;
  color: var(--text-light);
  margin-bottom: 0.6rem;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.card-meta {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.75rem;
  color: var(--text-light);
}

.card-meta-item {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.card-footer {
  padding: 0.6rem 0.9rem;
  border-top: 1px solid var(--border);
  background: #fafafa;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-heat {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.75rem;
  color: var(--accent);
  font-weight: 600;
}

.card-link {
  color: var(--accent);
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.card-link:hover {
  text-decoration: underline;
}

.financial-tag {
  background: #fff3cd;
  color: #856404;
  padding: 0.4rem 0.6rem;
  border-radius: 6px;
  font-size: 0.7rem;
  margin-top: 0.4rem;
  border-left: 3px solid #ffc107;
}

.financial-tag strong {
  display: block;
  margin-bottom: 0.15rem;
}

.empty-state {
  text-align: center;
  padding: 2.5rem 1.5rem;
  color: var(--text-light);
}

.empty-state-icon {
  font-size: 2.5rem;
  margin-bottom: 0.8rem;
}

.empty-state h3 {
  font-size: 1rem;
  margin-bottom: 0.4rem;
  color: var(--text);
}

.detail-page .activity-card {
  margin-bottom: 1rem;
}

.detail-page .card-desc {
  -webkit-line-clamp: unset;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  margin-bottom: 1.2rem;
  font-size: 0.85rem;
}

.back-link:hover {
  text-decoration: underline;
}

@media (max-width: 1024px) {
  .card-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  body {
    font-size: 14px;
  }

  .header {
    padding: 0.5rem 0;
  }

  .header-inner {
    flex-direction: column;
    gap: 0.4rem;
    padding: 0 0.8rem;
  }

  .logo {
    font-size: 1rem;
  }

  .nav {
    width: 100%;
    justify-content: center;
    gap: 0.2rem;
  }

  .nav a {
    padding: 0.3rem 0.7rem;
    font-size: 0.8rem;
  }

  .container {
    padding: 0.8rem 0.6rem;
  }

  .page-title {
    font-size: 1.2rem;
    margin-bottom: 0.3rem;
  }

  .page-subtitle {
    font-size: 0.8rem;
    margin-bottom: 0.8rem;
  }

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

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

  .category-header {
    margin-bottom: 0.5rem;
    padding-bottom: 0.3rem;
  }

  .category-title {
    font-size: 1rem;
  }

  .category-count {
    font-size: 0.75rem;
  }

  .more-link {
    font-size: 0.75rem;
  }

  .date-filter {
    flex-direction: column;
    align-items: flex-start;
    padding: 0.6rem 0.8rem;
    gap: 0.5rem;
  }

  .date-filter label,
  .date-filter input[type="date"],
  .date-filter button {
    font-size: 0.8rem;
  }

  .week-filter {
    flex-direction: column;
    gap: 0.4rem;
    padding: 0.6rem 0.8rem;
    margin-bottom: 0.8rem;
  }

  .week-range {
    font-size: 0.9rem;
  }

  .week-label {
    font-size: 0.65rem;
  }

  .week-count {
    font-size: 0.7rem;
  }

  .activity-card {
    border-radius: 8px;
  }

  .card-content {
    padding: 0.6rem 0.7rem;
  }

  .card-badge {
    font-size: 0.6rem;
    padding: 0.15rem 0.5rem;
    margin-bottom: 0.3rem;
  }

  .card-title {
    font-size: 0.85rem;
    margin-bottom: 0.3rem;
  }

  .card-desc {
    font-size: 0.75rem;
    margin-bottom: 0.4rem;
    -webkit-line-clamp: 2;
  }

  .card-meta {
    font-size: 0.7rem;
    gap: 0.15rem;
  }

  .card-footer {
    padding: 0.4rem 0.7rem;
  }

  .card-heat,
  .card-link {
    font-size: 0.7rem;
  }

  .financial-tag {
    font-size: 0.65rem;
    padding: 0.3rem 0.5rem;
  }

  .back-link {
    font-size: 0.8rem;
    margin-bottom: 0.8rem;
  }

  .empty-state {
    padding: 1.5rem 1rem;
  }

  .empty-state-icon {
    font-size: 2rem;
  }

  .empty-state h3 {
    font-size: 0.9rem;
  }
}
