/* ===== 红色衡阳 - 主样式表 ===== */

:root {
  --red-dark: #8B0000;
  --red-primary: #C41E3A;
  --red-light: #E8453C;
  --gold: #DAA520;
  --gold-light: #F0D060;
  --gold-dark: #B8860B;
  --bg-cream: #FFF8F0;
  --bg-white: #FFFFFF;
  --text-dark: #2C1810;
  --text-medium: #5D4037;
  --text-light: #8D6E63;
  --shadow: 0 4px 20px rgba(139, 0, 0, 0.1);
  --shadow-strong: 0 8px 40px rgba(139, 0, 0, 0.15);
  --radius: 12px;
  --transition: all 0.3s ease;
}

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

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", "Hiragino Sans GB", sans-serif;
  background: var(--bg-cream);
  color: var(--text-dark);
  line-height: 1.8;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ===== 头部导航 ===== */
.site-header {
  background: linear-gradient(135deg, var(--red-dark) 0%, var(--red-primary) 50%, #A01020 100%);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

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

.site-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo-icon {
  width: 44px;
  height: 44px;
  background: var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--red-dark);
  font-weight: 900;
}

.site-title {
  font-size: 28px;
  font-weight: 900;
  color: var(--gold);
  letter-spacing: 6px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.site-nav {
  display: flex;
  gap: 4px;
  list-style: none;
}

.site-nav a {
  display: block;
  padding: 10px 22px;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  border-radius: 8px;
  transition: var(--transition);
  letter-spacing: 2px;
  position: relative;
}

.site-nav a:hover,
.site-nav a.active {
  background: rgba(255, 255, 255, 0.15);
  color: var(--gold-light);
}

.site-nav a.active::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 3px;
  background: var(--gold);
  border-radius: 2px;
}

/* 移动端汉堡菜单 */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.menu-toggle span {
  display: block;
  width: 28px;
  height: 3px;
  background: var(--gold);
  margin: 6px 0;
  border-radius: 2px;
  transition: var(--transition);
}

/* ===== 主横幅 ===== */
.hero-banner {
  background: linear-gradient(135deg, #6B0000 0%, var(--red-primary) 40%, var(--red-dark) 100%);
  padding: 80px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 50%, rgba(218, 165, 32, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 50%, rgba(218, 165, 32, 0.06) 0%, transparent 50%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.hero-title {
  font-size: 56px;
  font-weight: 900;
  color: var(--gold);
  letter-spacing: 12px;
  margin-bottom: 16px;
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
  animation: fadeInDown 0.8s ease;
}

.hero-subtitle {
  font-size: 20px;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 6px;
  font-weight: 300;
  animation: fadeInUp 0.8s ease;
}

.hero-decoration {
  margin: 24px auto 0;
  width: 80px;
  height: 4px;
  background: var(--gold);
  border-radius: 2px;
  animation: scaleIn 1s ease;
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes scaleIn {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

/* ===== 内容区 ===== */
.main-content {
  flex: 1;
  max-width: 1000px;
  margin: 0 auto;
  padding: 48px 24px;
  width: 100%;
}

.section-title {
  font-size: 32px;
  font-weight: 900;
  color: var(--red-dark);
  text-align: center;
  margin-bottom: 8px;
  letter-spacing: 4px;
}

.section-subtitle {
  font-size: 16px;
  color: var(--text-light);
  text-align: center;
  margin-bottom: 48px;
  letter-spacing: 2px;
}

/* ===== 时间线 ===== */
.timeline {
  position: relative;
  padding: 20px 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  top: 0;
  bottom: 0;
  background: linear-gradient(to bottom, var(--red-dark), var(--red-light), var(--red-dark));
  border-radius: 2px;
}

.timeline-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 48px;
  position: relative;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.timeline-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.timeline-item:nth-child(odd) {
  flex-direction: row;
  padding-right: calc(50% + 40px);
}

.timeline-item:nth-child(even) {
  flex-direction: row-reverse;
  padding-left: calc(50% + 40px);
}

.timeline-year {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  background: var(--red-primary);
  color: var(--gold);
  padding: 8px 20px;
  border-radius: 20px;
  font-weight: 900;
  font-size: 18px;
  letter-spacing: 2px;
  white-space: nowrap;
  z-index: 10;
  box-shadow: 0 4px 12px rgba(196, 30, 58, 0.4);
  top: 0;
}

.timeline-card {
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 28px 32px;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--red-primary);
  transition: var(--transition);
  flex: 1;
}

.timeline-item:nth-child(even) .timeline-card {
  border-left: none;
  border-right: 4px solid var(--red-primary);
}

.timeline-card:hover {
  box-shadow: var(--shadow-strong);
  transform: translateY(-2px);
}

.timeline-card h3 {
  font-size: 20px;
  color: var(--red-dark);
  margin-bottom: 8px;
  letter-spacing: 2px;
}

.timeline-card p {
  color: var(--text-medium);
  font-size: 15px;
  line-height: 1.8;
}

.timeline-dot {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 16px;
  height: 16px;
  background: var(--gold);
  border: 3px solid var(--red-primary);
  border-radius: 50%;
  top: 10px;
  z-index: 5;
  box-shadow: 0 0 0 6px rgba(196, 30, 58, 0.15);
}

/* ===== 卡片列表（红色故事/英烈） ===== */
.cards-grid {
  display: grid;
  gap: 32px;
}

.content-card {
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--red-primary);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.content-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(196, 30, 58, 0.03) 0%, transparent 70%);
  pointer-events: none;
}

.content-card:hover {
  box-shadow: var(--shadow-strong);
  transform: translateY(-2px);
}

.content-card h3 {
  font-size: 22px;
  color: var(--red-dark);
  margin-bottom: 12px;
  letter-spacing: 2px;
  padding-bottom: 12px;
  border-bottom: 2px solid rgba(196, 30, 58, 0.1);
}

.content-card .card-meta {
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 16px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.content-card .card-meta span {
  background: rgba(196, 30, 58, 0.06);
  padding: 4px 12px;
  border-radius: 12px;
  font-weight: 500;
}

.content-card p {
  color: var(--text-medium);
  font-size: 15px;
  line-height: 1.9;
  margin-bottom: 12px;
}

.content-card .card-highlight {
  background: linear-gradient(135deg, rgba(218, 165, 32, 0.08), rgba(196, 30, 58, 0.04));
  border-left: 3px solid var(--gold);
  padding: 12px 16px;
  border-radius: 0 8px 8px 0;
  margin-top: 12px;
  font-style: italic;
  color: var(--text-dark);
}

/* ===== 关于页面 ===== */
.about-section {
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 48px;
  box-shadow: var(--shadow);
  text-align: center;
  border-top: 4px solid var(--red-primary);
}

.about-section h2 {
  font-size: 28px;
  color: var(--red-dark);
  margin-bottom: 24px;
  letter-spacing: 4px;
}

.about-section p {
  color: var(--text-medium);
  font-size: 16px;
  line-height: 2;
  max-width: 700px;
  margin: 0 auto 16px;
  text-align: left;
}

.about-quote {
  display: inline-block;
  background: linear-gradient(135deg, var(--red-dark), var(--red-primary));
  color: var(--gold);
  padding: 20px 36px;
  border-radius: 40px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 4px;
  margin: 24px 0;
  box-shadow: 0 6px 24px rgba(196, 30, 58, 0.3);
}

/* ===== 评论引导区 ===== */
.comment-section {
  margin-top: 48px;
  padding: 36px;
  background: var(--bg-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
  border-top: 4px solid var(--gold);
}

.comment-section h3 {
  font-size: 20px;
  color: var(--red-dark);
  margin-bottom: 12px;
  letter-spacing: 2px;
}

.comment-section p {
  color: var(--text-medium);
  margin-bottom: 20px;
}

.btn-comment {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 36px;
  background: linear-gradient(135deg, var(--red-primary), var(--red-dark));
  color: white;
  text-decoration: none;
  border-radius: 30px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 2px;
  transition: var(--transition);
  box-shadow: 0 4px 16px rgba(196, 30, 58, 0.3);
}

.btn-comment:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(196, 30, 58, 0.4);
  background: linear-gradient(135deg, var(--red-light), var(--red-primary));
}

/* ===== 加载和空状态 ===== */
.loading {
  text-align: center;
  padding: 60px 24px;
  color: var(--text-light);
}

.loading-spinner {
  width: 48px;
  height: 48px;
  border: 4px solid rgba(196, 30, 58, 0.1);
  border-top-color: var(--red-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 16px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.empty-state {
  text-align: center;
  padding: 60px 24px;
  color: var(--text-light);
}

.empty-state .empty-icon {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.5;
}

/* ===== 评论展示区 ===== */
.comments-display {
  margin-top: 48px;
}

.comments-display .section-title {
  font-size: 24px;
  margin-bottom: 32px;
}

.comment-item {
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
  border-left: 3px solid var(--gold);
}

.comment-item .comment-author {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(196, 30, 58, 0.06);
}

.comment-item .comment-author img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
}

.comment-item .comment-author .name {
  font-weight: 600;
  color: var(--red-dark);
  font-size: 14px;
}

.comment-item .comment-author .time {
  font-size: 12px;
  color: var(--text-light);
  margin-left: auto;
}

.comment-item .comment-body {
  color: var(--text-medium);
  font-size: 15px;
  line-height: 1.8;
}

.comment-item .comment-body h2,
.comment-item .comment-body h3 {
  color: var(--red-dark);
  font-size: 18px;
  margin-bottom: 10px;
}

.comment-item .comment-body strong {
  color: var(--red-primary);
}

/* ===== 页脚 ===== */
.site-footer {
  background: linear-gradient(135deg, var(--red-dark), #5C0000);
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
  padding: 32px 24px;
  font-size: 14px;
  letter-spacing: 2px;
}

/* 隐藏 EdgeOne Makers 注入的免责声明和半透明浮层 */
.site-footer + div,
.site-footer + p,
[class*="disclaimer"],
[id*="disclaimer"],
[class*="edgeone"],
[class*="eo-"],
[id*="edgeone"],
[id*="eo-"],
footer ~ div:has(small),
footer ~ small,
div:has(> small:contains("demonstration")),
div:has(> small:contains("testing purposes")),
div:has(> small:contains("For demonstration")),
div[style*="position: fixed"][style*="bottom"],
div[style*="position:fixed"][style*="bottom"] {
  display: none !important;
}

.site-footer .footer-gold {
  color: var(--gold);
  font-weight: 600;
}

/* ===== 响应式 ===== */
@media (max-width: 768px) {
  .header-inner {
    height: 60px;
  }

  .site-title {
    font-size: 20px;
    letter-spacing: 3px;
  }

  .site-nav {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, var(--red-dark), var(--red-primary));
    flex-direction: column;
    padding: 16px;
    gap: 8px;
    transform: translateY(-120%);
    transition: transform 0.3s ease;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    z-index: 999;
  }

  .site-nav.open {
    transform: translateY(0);
  }

  .site-nav a {
    text-align: center;
    padding: 14px;
  }

  .menu-toggle {
    display: block;
  }

  .hero-title {
    font-size: 36px;
    letter-spacing: 6px;
  }

  .hero-subtitle {
    font-size: 16px;
    letter-spacing: 3px;
  }

  .hero-banner {
    padding: 48px 16px;
  }

  .timeline::before {
    left: 24px;
  }

  .timeline-item,
  .timeline-item:nth-child(odd),
  .timeline-item:nth-child(even) {
    flex-direction: row;
    padding-left: 64px;
    padding-right: 0;
  }

  .timeline-year {
    left: 24px;
    transform: translateX(-50%);
    font-size: 14px;
    padding: 6px 14px;
  }

  .timeline-dot {
    left: 24px;
  }

  .timeline-card {
    border-left: 4px solid var(--red-primary);
    border-right: none;
  }

  .timeline-item:nth-child(even) .timeline-card {
    border-right: none;
    border-left: 4px solid var(--red-primary);
  }

  .content-card {
    padding: 24px;
  }

  .about-section {
    padding: 28px;
  }

  .section-title {
    font-size: 24px;
  }
}

/* ===== 分类卡片链接 ===== */
.content-card-link {
  display: block;
  text-decoration: none;
  cursor: pointer;
  color: inherit;
  transition: var(--transition);
}

.content-card-link:hover {
  box-shadow: var(--shadow-strong);
  transform: translateY(-2px);
}

.content-card-link:hover .card-readmore {
  color: var(--red-light);
}

.content-card-link h3 {
  color: var(--red-dark);
}

.card-summary {
  color: var(--text-medium);
  font-size: 15px;
  line-height: 1.8;
  margin-top: 8px;
}

.card-summary p {
  margin-bottom: 4px;
}

/* 卡片摘要和阅读更多 */
.card-excerpt {
  color: var(--text-medium);
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 8px;
}

.card-readmore {
  display: inline-block;
  color: var(--red-primary);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
  transition: var(--transition);
  margin-bottom: 12px;
}

.card-meta-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid rgba(196, 30, 58, 0.06);
  font-size: 13px;
  color: var(--text-light);
}

.card-meta-row .card-time {
  margin-left: auto;
}

/* ===== ISSUE/Page 正文内容 ===== */
.issue-body-content {
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--red-primary);
  line-height: 2;
  color: var(--text-medium);
  font-size: 16px;
}

.issue-body-content h2 {
  color: var(--red-dark);
  font-size: 24px;
  margin-bottom: 16px;
  letter-spacing: 2px;
  border-bottom: 2px solid rgba(196, 30, 58, 0.1);
  padding-bottom: 12px;
}

.issue-body-content h3 {
  color: var(--red-dark);
  font-size: 20px;
  margin: 20px 0 12px;
  letter-spacing: 1px;
}

.issue-body-content h4 {
  color: var(--red-primary);
  font-size: 17px;
  margin: 16px 0 10px;
}

.issue-body-content strong {
  color: var(--red-dark);
}

.issue-body-content blockquote {
  background: linear-gradient(135deg, rgba(218, 165, 32, 0.08), rgba(196, 30, 58, 0.04));
  border-left: 4px solid var(--gold);
  padding: 12px 20px;
  margin: 16px 0;
  border-radius: 0 8px 8px 0;
  font-style: italic;
}

.issue-body-content hr {
  border: none;
  border-top: 1px solid rgba(196, 30, 58, 0.15);
  margin: 24px 0;
}

.issue-body-content p {
  margin-bottom: 12px;
}

/* ===== 元数据 ===== */
.issue-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  padding: 16px 36px;
  background: rgba(196, 30, 58, 0.04);
  border-radius: var(--radius);
  font-size: 14px;
  color: var(--text-light);
}

.issue-meta .meta-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
}

/* ===== 标签徽章 ===== */
.label-tag {
  display: inline-block;
  padding: 2px 12px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 1px;
}

/* ===== 评论列表增强 ===== */
.comments-list {
  margin-top: 16px;
}

.avatar-placeholder {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--red-dark);
  font-size: 16px;
  font-weight: 900;
}

/* ===== 打印样式 ===== */
@media print {
  .site-header, .site-footer, .btn-comment, .comment-section {
    display: none;
  }
}
