/* ===== 红色宣传 - 自包含样式 ===== */

/* 变量定义（不依赖主 style.css） */
:root {
  --red-primary: #b22222;
  --red-dark: #8b0000;
  --red-light: #fff1f0;
  --red-gold: #ffd700;
  --red-bg: #f8f5f2;
  --red-surface: #ffffff;
  --red-border: #e8e0dc;
  --red-text: #1a1a1a;
  --red-text-2: #555555;
  --red-text-3: #888888;
  --red-text-4: #aaaaaa;
  --red-shadow: 0 4px 20px rgba(0,0,0,.08);
  --red-shadow-sm: 0 2px 8px rgba(0,0,0,.05);
  --red-radius: 12px;
  --red-radius-sm: 8px;
  --red-font: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
  --red-font-display: 'Noto Serif SC', Georgia, serif;
  --red-nav-h: 64px;
}

/* ===== Hero ===== */
.red-hero {
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--red-nav-h) + 60px) 24px 60px;
  background: linear-gradient(135deg, #8b0000 0%, #b22222 40%, #cd3333 70%, #8b0000 100%);
  position: relative;
  overflow: hidden;
}
.red-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 60%, rgba(255,215,0,.08), transparent 55%),
    radial-gradient(ellipse at 70% 30%, rgba(255,255,255,.05), transparent 50%);
  pointer-events: none;
}
.red-hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
}
.red-hero-badge {
  display: inline-block;
  padding: 6px 18px;
  background: rgba(255,215,0,.15);
  border: 1px solid rgba(255,215,0,.3);
  border-radius: 100px;
  color: #ffd700;
  font-size: .8125rem;
  font-weight: 500;
  margin-bottom: 24px;
  font-family: var(--red-font);
}
.red-hero h1 {
  font-family: var(--red-font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
  margin-bottom: 16px;
}
.red-hero h1 em {
  font-style: normal;
  color: #ffd700;
}
.red-hero p {
  font-size: 1.0625rem;
  color: rgba(255,255,255,.7);
  margin-bottom: 32px;
  line-height: 1.8;
  font-family: var(--red-font);
}
.red-hero-stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.1);
}
.red-hero-stat .num {
  font-family: var(--red-font-display);
  font-size: 1.75rem;
  font-weight: 700;
  color: #ffd700;
  line-height: 1;
}
.red-hero-stat .label {
  font-size: .8125rem;
  color: rgba(255,255,255,.5);
  margin-top: 4px;
  font-family: var(--red-font);
}

/* ===== Festival Banner ===== */
.festival-banner {
  background: linear-gradient(135deg, #8b0000, #b22222);
  color: #fff;
  padding: 20px 24px;
  text-align: center;
  font-family: var(--red-font);
}
.festival-banner h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 4px;
  color: #ffd700;
}
.festival-banner p {
  font-size: .875rem;
  color: rgba(255,255,255,.7);
}
.festival-banner a {
  color: #ffd700;
  font-weight: 600;
  text-decoration: none;
}
.festival-banner a:hover {
  text-decoration: underline;
}

/* ===== Section（自包含，不依赖主样式） ===== */
.red-section {
  padding: 48px 24px;
  background: var(--red-bg);
  font-family: var(--red-font);
}
.red-section-inner {
  max-width: 1100px;
  margin: 0 auto;
}
.red-section-header {
  text-align: center;
  margin-bottom: 32px;
}
.red-section-header h2 {
  font-family: var(--red-font-display);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--red-text);
  margin-bottom: 8px;
}
.red-section-header p {
  font-size: .9375rem;
  color: var(--red-text-3);
}

/* ===== Filter Tabs ===== */
.red-filter-tabs {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.red-filter-tab {
  padding: 8px 20px;
  border-radius: 100px;
  font-size: .875rem;
  font-weight: 500;
  color: var(--red-text-2);
  background: var(--red-surface);
  border: 1.5px solid var(--red-border);
  text-decoration: none;
  transition: all .2s;
  font-family: var(--red-font);
}
.red-filter-tab:hover {
  border-color: var(--red-primary);
  color: var(--red-primary);
}
.red-filter-tab.active {
  background: var(--red-primary);
  border-color: var(--red-primary);
  color: #fff;
}

/* ===== Empty State ===== */
.red-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--red-text-3);
}
.red-empty-icon {
  margin-bottom: 16px;
  opacity: .3;
}
.red-empty h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--red-text-3);
  font-family: var(--red-font);
}

/* ===== Cards Grid ===== */
.red-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}
a.red-card {
  text-decoration: none;
  color: inherit;
}
.red-card {
  background: var(--red-surface);
  border-radius: var(--red-radius);
  overflow: hidden;
  box-shadow: var(--red-shadow-sm);
  transition: transform .3s, box-shadow .3s;
  display: flex;
  flex-direction: column;
  border-left: 4px solid var(--red-primary);
  font-family: var(--red-font);
}
.red-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--red-shadow);
}
.red-card-photo {
  position: relative;
  height: 180px;
  overflow: hidden;
  background: linear-gradient(135deg, #f5e6e6, #f0d0d0);
}
.red-card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.red-card-no-photo {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--red-primary);
  opacity: .3;
  font-size: 2.5rem;
}
.red-card-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: .7rem;
  font-weight: 600;
  background: rgba(178,34,34,.85);
  color: #fff;
  backdrop-filter: blur(8px);
}
.red-card-body {
  padding: 14px 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.red-card-title {
  font-size: 1.0625rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--red-text);
  line-height: 1.45;
}
.red-card-hero {
  font-size: .8125rem;
  color: var(--red-primary);
  font-weight: 600;
  margin-bottom: 6px;
}
.red-card-summary {
  font-size: .8125rem;
  color: var(--red-text-2);
  line-height: 1.5;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.red-card-footer {
  padding: 10px 16px;
  border-top: 1px solid var(--red-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.red-card-era {
  font-size: .75rem;
  color: var(--red-text-3);
}
.red-card-link {
  font-size: .75rem;
  font-weight: 600;
  color: var(--red-primary);
}

/* ===== Detail Page ===== */
.red-detail-page {
  min-height: 100vh;
  background: var(--red-bg);
  padding: calc(var(--red-nav-h) + 24px) 24px 48px;
  font-family: var(--red-font);
}
.red-detail-container {
  max-width: 800px;
  margin: 0 auto;
}
.red-detail-card {
  background: var(--red-surface);
  border-radius: var(--red-radius);
  overflow: hidden;
  box-shadow: var(--red-shadow);
}
.red-detail-hero {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  display: block;
}
.red-detail-no-photo {
  width: 100%;
  height: 250px;
  background: linear-gradient(135deg, #f5e6e6, #f0d0d0);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--red-primary);
  opacity: .3;
}
.red-detail-body {
  padding: 32px;
}
.red-detail-title {
  font-family: var(--red-font-display);
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--red-text);
  line-height: 1.4;
}
.red-detail-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.red-detail-meta span {
  padding: 4px 14px;
  border-radius: 100px;
  font-size: .8125rem;
  font-weight: 600;
}
.red-meta-category {
  background: var(--red-light);
  color: var(--red-primary);
}
.red-meta-era {
  background: #f5f5f5;
  color: var(--red-text-2);
}
.red-meta-date {
  background: #f5f5f5;
  color: var(--red-text-3);
}
.red-detail-hero-box {
  padding: 16px 20px;
  background: var(--red-light);
  border-radius: var(--red-radius-sm);
  margin-bottom: 24px;
  border-left: 4px solid var(--red-primary);
  font-size: .9375rem;
}
.red-detail-hero-box strong {
  color: var(--red-primary);
}
.red-detail-content {
  font-size: 1rem;
  line-height: 2;
  color: var(--red-text-2);
  white-space: pre-wrap;
  margin-bottom: 32px;
}
.red-detail-source {
  padding: 16px;
  background: #f9f9f9;
  border-radius: var(--red-radius-sm);
  font-size: .8125rem;
  color: var(--red-text-3);
  margin-bottom: 24px;
}
.red-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 32px;
  border-radius: 100px;
  background: var(--red-primary);
  color: #fff;
  font-size: .9375rem;
  font-weight: 600;
  text-decoration: none;
  transition: all .3s;
  font-family: var(--red-font);
}
.red-back-btn:hover {
  background: var(--red-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(178,34,34,.3);
}

/* ===== Mobile Festival Banner ===== */
.m-festival-banner {
  margin: 10px 12px;
  padding: 14px 16px;
  background: linear-gradient(135deg, #8b0000, #b22222);
  border-radius: var(--red-radius);
  color: #fff;
  font-family: var(--red-font);
}
.m-festival-banner h4 {
  font-size: 14px;
  font-weight: 700;
  color: #ffd700;
  margin-bottom: 4px;
}
.m-festival-banner p {
  font-size: 12px;
  color: rgba(255,255,255,.7);
  line-height: 1.5;
  margin-bottom: 6px;
}
.m-festival-banner a {
  color: #ffd700;
  font-weight: 600;
  font-size: 12px;
  text-decoration: none;
}

/* ===== Mobile Pills ===== */
.red-pills {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  overflow-x: auto;
  scrollbar-width: none;
}
.red-pills::-webkit-scrollbar { display: none; }
.red-pill {
  flex-shrink: 0;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  background: var(--red-surface);
  color: var(--red-text-2);
  border: 1px solid var(--red-border);
  cursor: pointer;
  transition: all .2s;
  white-space: nowrap;
  text-decoration: none;
  font-family: var(--red-font);
}
.red-pill.active {
  background: var(--red-primary);
  color: #fff;
  border-color: var(--red-primary);
}

/* ===== Mobile Feed ===== */
.red-feed-item {
  break-inside: avoid;
  margin-bottom: 10px;
  background: var(--red-surface);
  border-radius: var(--red-radius);
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,.05);
  transition: transform .2s;
  display: block;
  border-left: 3px solid var(--red-primary);
  text-decoration: none;
  color: inherit;
}
.red-feed-item:active { transform: scale(.97); }
.red-feed-img {
  width: 100%;
  display: block;
  background: #f5e6e6;
  min-height: 100px;
}
.red-feed-img img {
  width: 100%;
  display: block;
}
.red-feed-no-img {
  width: 100%;
  height: 120px;
  background: linear-gradient(135deg, #f5e6e6, #f0d0d0);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--red-primary);
  opacity: .3;
}
.red-feed-body {
  padding: 10px 12px 12px;
  font-family: var(--red-font);
}
.red-feed-title {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  margin-bottom: 4px;
  color: var(--red-text);
}
.red-feed-hero {
  font-size: 12px;
  color: var(--red-primary);
  font-weight: 600;
  margin-bottom: 6px;
}
.red-feed-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 600;
  background: var(--red-light);
  color: var(--red-primary);
  margin-bottom: 6px;
}
.red-feed-summary {
  font-size: 13px;
  color: var(--red-text-2);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .red-hero { min-height: 40vh; padding: 80px 16px 40px; }
  .red-hero h1 { font-size: 1.75rem; }
  .red-hero p { font-size: .9375rem; }
  .red-hero-stats { gap: 24px; }
  .red-hero-stat .num { font-size: 1.375rem; }
  .red-section { padding: 32px 16px; }
  .red-section-header h2 { font-size: 1.375rem; }
  .red-cards-grid { grid-template-columns: 1fr; gap: 14px; }
  .red-card-photo { height: 150px; }
  .red-detail-body { padding: 20px 16px; }
  .red-detail-title { font-size: 1.375rem; }
  .red-detail-content { font-size: .9375rem; line-height: 1.8; }
}
@media (max-width: 480px) {
  .red-hero-stats { flex-wrap: wrap; gap: 16px; }
  .red-filter-tabs { gap: 6px; }
  .red-filter-tab { padding: 6px 14px; font-size: .8125rem; }
}
