@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@400;600;700;900&family=ZCOOL+XiaoWei&display=swap');

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

:root {
  --bg-primary: #212121;
  --bg-secondary: #2a2a2a;
  --bg-tertiary: #333333;
  --gold: #ffd700;
  --gold-light: #ffe44d;
  --gold-dark: #cca300;
  --red: #c62828;
  --red-light: #e53935;
  --text-primary: #f5f5f5;
  --text-secondary: #bdbdbd;
  --text-muted: #9e9e9e;
  --border-color: #424242;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

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

body {
  font-family: 'Noto Serif SC', serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.8;
  min-height: 100vh;
  overflow-x: hidden;
}

a {
  color: var(--gold);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--gold-light);
}

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

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

/* ============ Header / Magazine Masthead ============ */
.site-header {
  background: var(--bg-secondary);
  border-bottom: 3px solid var(--gold);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.5);
}

.masthead {
  text-align: center;
  padding: 30px 20px 20px;
  background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
  border-bottom: 1px solid var(--border-color);
}

.masthead .logo {
  font-family: 'ZCOOL XiaoWei', serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: var(--gold);
  letter-spacing: 8px;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
  margin-bottom: 5px;
}

.masthead .subtitle {
  font-size: 0.9rem;
  color: var(--text-muted);
  letter-spacing: 4px;
  text-transform: uppercase;
}

.masthead .date-line {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-top: 8px;
  font-style: italic;
}

/* ============ Navigation ============ */
.main-nav {
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border-color);
}

.main-nav .nav-list {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  list-style: none;
  gap: 0;
}

.main-nav .nav-list li {
  position: relative;
}

.main-nav .nav-list a {
  display: block;
  padding: 14px 28px;
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  transition: all 0.3s ease;
  border-bottom: 2px solid transparent;
}

.main-nav .nav-list a:hover,
.main-nav .nav-list a.active {
  color: var(--gold);
  border-bottom-color: var(--gold);
  background: rgba(255, 215, 0, 0.05);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--gold);
  font-size: 1.8rem;
  cursor: pointer;
  padding: 10px 20px;
  width: 100%;
  text-align: left;
}

/* ============ Hero / Banner ============ */
.hero {
  position: relative;
  min-height: 500px;
  background: var(--bg-secondary);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-bottom: 1px solid var(--border-color);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(33, 33, 33, 0.85) 0%, rgba(33, 33, 33, 0.6) 50%, rgba(33, 33, 33, 0.9) 100%),
              url('https://trae-api-cn.mchost.guru/api/ide/v1/text_to_image?prompt=vintage%20newspaper%20archive%20black%20gold%20documentary&image_size=landscape_16_9');
  background-size: cover;
  background-position: center;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 60px 20px;
  max-width: 900px;
}

.hero-tag {
  display: inline-block;
  padding: 6px 18px;
  background: var(--red);
  color: #fff;
  font-size: 0.8rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 25px;
  font-weight: 700;
}

.hero h1 {
  font-family: 'ZCOOL XiaoWei', serif;
  font-size: clamp(2rem, 6vw, 4rem);
  color: var(--gold);
  line-height: 1.3;
  margin-bottom: 20px;
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.8);
}

.hero p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 700px;
  margin: 0 auto 30px;
  line-height: 1.9;
}

.hero-meta {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.hero-meta span {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ============ Section Titles ============ */
.section-title {
  text-align: center;
  margin: 60px 0 40px;
  position: relative;
}

.section-title h2 {
  font-family: 'ZCOOL XiaoWei', serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--gold);
  display: inline-block;
  padding: 0 40px;
  position: relative;
}

.section-title::before,
.section-title::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 80px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.section-title::before {
  left: calc(50% - 160px);
}

.section-title::after {
  right: calc(50% - 160px);
}

.section-title .sub {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-top: 8px;
  font-family: 'Noto Serif SC', serif;
}

/* ============ Timeline ============ */
.timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: 20px 0;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 3px;
  background: linear-gradient(180deg, var(--gold) 0%, var(--red) 50%, var(--gold) 100%);
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  margin-bottom: 50px;
  width: 100%;
  display: flex;
  justify-content: center;
}

.timeline-item:nth-child(odd) .timeline-content {
  margin-right: auto;
  text-align: right;
}

.timeline-item:nth-child(even) .timeline-content {
  margin-left: auto;
  text-align: left;
}

.timeline-item:nth-child(odd) .timeline-content {
  width: 45%;
  padding-right: 40px;
}

.timeline-item:nth-child(even) .timeline-content {
  width: 45%;
  padding-left: 40px;
}

.timeline-dot {
  position: absolute;
  left: 50%;
  top: 20px;
  transform: translateX(-50%);
  width: 18px;
  height: 18px;
  background: var(--gold);
  border: 3px solid var(--bg-primary);
  border-radius: 50%;
  z-index: 2;
  box-shadow: 0 0 0 3px var(--gold), 0 0 15px rgba(255, 215, 0, 0.5);
}

.timeline-item.featured .timeline-dot {
  background: var(--red);
  box-shadow: 0 0 0 3px var(--red), 0 0 20px rgba(198, 40, 40, 0.6);
  width: 22px;
  height: 22px;
}

.timeline-content {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--gold);
  padding: 20px 25px;
  border-radius: 4px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-item:nth-child(odd) .timeline-content {
  border-left: none;
  border-right: 4px solid var(--gold);
}

.timeline-content:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.timeline-time {
  font-family: 'ZCOOL XiaoWei', serif;
  color: var(--gold);
  font-size: 0.9rem;
  letter-spacing: 2px;
  margin-bottom: 6px;
}

.timeline-content h3 {
  font-size: 1.15rem;
  color: var(--text-primary);
  margin-bottom: 10px;
  line-height: 1.5;
}

.timeline-content p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.timeline-tag {
  display: inline-block;
  margin-top: 10px;
  padding: 3px 10px;
  background: var(--red);
  color: #fff;
  font-size: 0.7rem;
  border-radius: 2px;
  letter-spacing: 1px;
}

/* ============ Cards Grid ============ */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
  border-color: var(--gold);
}

.card-img {
  width: 100%;
  height: 220px;
  overflow: hidden;
  position: relative;
}

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

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

.card-body {
  padding: 22px 25px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-category {
  display: inline-block;
  font-size: 0.75rem;
  color: var(--red);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 10px;
  font-weight: 700;
}

.card h3 {
  font-size: 1.2rem;
  color: var(--text-primary);
  margin-bottom: 12px;
  line-height: 1.5;
  transition: color 0.3s ease;
}

.card:hover h3 {
  color: var(--gold);
}

.card-summary {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
  flex: 1;
  margin-bottom: 15px;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  padding-top: 15px;
  border-top: 1px solid var(--border-color);
}

.card-meta .read-more {
  color: var(--gold);
  font-weight: 600;
  letter-spacing: 1px;
}

.card-meta .read-more:hover {
  color: var(--gold-light);
}

/* ============ Drop Cap (首字母下沉) ============ */
.drop-cap::first-letter {
  float: left;
  font-family: 'ZCOOL XiaoWei', serif;
  font-size: 4.5rem;
  line-height: 0.8;
  padding: 8px 12px 0 0;
  color: var(--gold);
  font-weight: 900;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.drop-cap-red::first-letter {
  color: var(--red);
}

/* ============ Article / Exclusive ============ */
.article {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px;
}

.article-header {
  text-align: center;
  margin-bottom: 40px;
  padding-bottom: 30px;
  border-bottom: 2px solid var(--gold);
}

.article-header .cat {
  color: var(--red);
  font-size: 0.85rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 10px;
}

.article-header h1 {
  font-family: 'ZCOOL XiaoWei', serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--gold);
  line-height: 1.4;
  margin-bottom: 20px;
}

.article-header .meta {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.article-header .meta span {
  margin: 0 10px;
}

.article-body {
  font-size: 1.05rem;
  line-height: 2;
  color: var(--text-primary);
}

.article-body p {
  margin-bottom: 25px;
  text-indent: 0;
}

.article-body h2 {
  font-family: 'ZCOOL XiaoWei', serif;
  color: var(--gold);
  font-size: 1.6rem;
  margin: 40px 0 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-color);
}

.article-body blockquote {
  border-left: 4px solid var(--red);
  padding: 15px 25px;
  margin: 25px 0;
  background: rgba(198, 40, 40, 0.1);
  font-style: italic;
  color: var(--text-secondary);
  border-radius: 0 4px 4px 0;
}

.article-body ul,
.article-body ol {
  padding-left: 25px;
  margin-bottom: 20px;
}

.article-body li {
  margin-bottom: 10px;
  line-height: 1.8;
}

/* ============ Contact Page ============ */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 20px;
}

.contact-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  padding: 40px 30px;
  text-align: center;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.contact-card:hover {
  transform: translateY(-5px);
  border-color: var(--gold);
}

.contact-card .icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 2rem;
}

.contact-card h3 {
  font-family: 'ZCOOL XiaoWei', serif;
  font-size: 1.3rem;
  color: var(--gold);
  margin-bottom: 15px;
}

.contact-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 10px;
}

.contact-card .value {
  color: var(--gold);
  font-weight: 600;
  font-size: 1.05rem;
}

.contact-card .label {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 5px;
}

/* ============ About Page ============ */
.about-section {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 20px;
}

.about-section h2 {
  font-family: 'ZCOOL XiaoWei', serif;
  color: var(--gold);
  font-size: 2rem;
  margin-bottom: 25px;
  padding-bottom: 12px;
  border-bottom: 3px solid var(--gold);
  display: inline-block;
}

.about-section p {
  font-size: 1.05rem;
  line-height: 2;
  color: var(--text-primary);
  margin-bottom: 25px;
}

.about-section .team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 25px;
  margin-top: 30px;
}

.team-member {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  padding: 25px 20px;
  text-align: center;
  transition: border-color 0.3s ease;
}

.team-member:hover {
  border-color: var(--gold);
}

.team-member .avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-dark), var(--bg-tertiary));
  margin: 0 auto 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-family: 'ZCOOL XiaoWei', serif;
  color: var(--gold);
}

.team-member h4 {
  color: var(--gold);
  font-size: 1.1rem;
  margin-bottom: 5px;
}

.team-member .role {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 10px;
}

.team-member p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ============ Footer ============ */
.site-footer {
  background: var(--bg-secondary);
  border-top: 3px solid var(--gold);
  margin-top: 60px;
}

.footer-top {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px 40px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}

.footer-col h4 {
  font-family: 'ZCOOL XiaoWei', serif;
  color: var(--gold);
  font-size: 1.1rem;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-color);
}

.footer-col p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 15px;
}

.footer-col ul {
  list-style: none;
  padding: 0;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  transition: color 0.3s ease, padding-left 0.3s ease;
}

.footer-col ul li a:hover {
  color: var(--gold);
  padding-left: 5px;
}

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 15px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all 0.3s ease;
  font-size: 1.1rem;
}

.footer-social a:hover {
  background: var(--gold);
  color: var(--bg-primary);
  border-color: var(--gold);
  transform: translateY(-3px);
}

.footer-bottom {
  background: var(--bg-primary);
  padding: 20px;
  text-align: center;
  border-top: 1px solid var(--border-color);
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-bottom a {
  color: var(--text-muted);
}

.footer-bottom a:hover {
  color: var(--gold);
}

/* ============ Latest Page Specific ============ */
.latest-header {
  text-align: center;
  padding: 50px 20px 30px;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
}

.latest-header h1 {
  font-family: 'ZCOOL XiaoWei', serif;
  color: var(--gold);
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 15px;
}

.latest-header p {
  color: var(--text-secondary);
  font-size: 1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* ============ Pagination ============ */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 40px 0;
  padding: 0 20px;
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 14px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.pagination a:hover,
.pagination .active {
  background: var(--gold);
  color: var(--bg-primary);
  border-color: var(--gold);
}

/* ============ Back to Top ============ */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--gold);
  color: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  transition: all 0.3s ease;
  z-index: 999;
}

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

/* ============ Responsive ============ */
@media (max-width: 900px) {
  .footer-top {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .timeline-item,
  .timeline-item:nth-child(odd),
  .timeline-item:nth-child(even) {
    display: block;
    margin-bottom: 35px;
  }

  .timeline-item:nth-child(odd) .timeline-content,
  .timeline-item:nth-child(even) .timeline-content {
    width: calc(100% - 50px);
    margin-left: 50px;
    margin-right: 0;
    padding: 15px 20px;
    text-align: left;
  }

  .timeline-item:nth-child(odd) .timeline-content {
    border-right: none;
    border-left: 4px solid var(--gold);
  }

  .timeline-dot {
    left: 20px;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .main-nav .nav-list {
    display: none;
    flex-direction: column;
    width: 100%;
  }

  .main-nav .nav-list.open {
    display: flex;
  }

  .main-nav .nav-list li {
    width: 100%;
    border-bottom: 1px solid var(--border-color);
  }

  .main-nav .nav-list a {
    padding: 12px 20px;
  }

  .hero {
    min-height: 400px;
  }

  .hero h1 {
    font-size: clamp(1.8rem, 5vw, 2.5rem);
  }

  .section-title::before,
  .section-title::after {
    display: none;
  }

  .card-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 40px 20px 30px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    padding: 20px;
  }

  .article {
    padding: 20px 15px;
  }

  .article-body {
    font-size: 1rem;
  }

  .hero-meta {
    flex-direction: column;
    gap: 10px;
  }
}

@media (max-width: 480px) {
  .masthead .logo {
    letter-spacing: 4px;
  }

  .main-nav .nav-list a {
    padding: 10px 16px;
    font-size: 0.9rem;
    letter-spacing: 1px;
  }

  .card-img {
    height: 180px;
  }

  .back-to-top {
    width: 42px;
    height: 42px;
    font-size: 1.2rem;
    bottom: 20px;
    right: 20px;
  }

  .drop-cap::first-letter {
    font-size: 3.5rem;
  }
}

/* ============ Utility ============ */
.text-gold { color: var(--gold); }
.text-red { color: var(--red); }
.text-muted { color: var(--text-muted); }
.text-center { text-align: center; }
.mt-20 { margin-top: 20px; }
.mt-40 { margin-top: 40px; }
.mb-20 { margin-bottom: 20px; }
.mb-40 { margin-bottom: 40px; }