/* ============================================
   j9九游会 - 体育历史与文化档案馆
   主样式表 style.css
   ============================================ */

/* --- CSS Variables --- */
:root {
  --color-primary: #c62828;
  --color-primary-dark: #8e0000;
  --color-secondary: #1a1a2e;
  --color-accent: #d4a843;
  --color-bg: #faf9f6;
  --color-bg-alt: #f0ede6;
  --color-text: #2c2c2c;
  --color-text-light: #6b6b6b;
  --color-border: #ddd;
  --color-white: #ffffff;
  --font-serif: 'Merriweather', 'Noto Serif SC', Georgia, serif;
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --max-width: 1200px;
  --radius: 8px;
  --shadow: 0 2px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
  --transition: all 0.3s ease;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--color-primary-dark); }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-serif); line-height: 1.4; color: var(--color-secondary); }
h1 { font-size: 2.2rem; margin-bottom: 1rem; }
h2 { font-size: 1.7rem; margin: 2rem 0 1rem; }
h3 { font-size: 1.3rem; margin: 1.5rem 0 0.8rem; }
h4 { font-size: 1.1rem; margin: 1rem 0 0.5rem; }
p { margin-bottom: 1.2rem; }
ul, ol { margin-bottom: 1rem; padding-left: 1.5rem; }
li { margin-bottom: 0.3rem; }
table { border-collapse: collapse; width: 100%; }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }

/* --- Navigation --- */
.main-nav {
  background: var(--color-secondary);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--color-white);
  font-weight: 700;
  font-size: 1.1rem;
}
.nav-logo img { border-radius: 50%; }
.nav-logo:hover { color: var(--color-accent); }
.nav-brand { font-family: var(--font-serif); }
.nav-menu {
  list-style: none;
  display: flex;
  gap: 8px;
  margin: 0;
  padding: 0;
}
.nav-menu li a {
  color: rgba(255,255,255,0.85);
  padding: 8px 16px;
  border-radius: var(--radius);
  font-size: 0.95rem;
  transition: var(--transition);
}
.nav-menu li a:hover,
.nav-menu li a.active {
  color: var(--color-white);
  background: rgba(255,255,255,0.12);
}
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.hamburger {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-white);
  position: relative;
}
.hamburger::before, .hamburger::after {
  content: '';
  position: absolute;
  width: 24px;
  height: 2px;
  background: var(--color-white);
  left: 0;
}
.hamburger::before { top: -7px; }
.hamburger::after { top: 7px; }

/* --- Breadcrumb --- */
.breadcrumb-wrap {
  background: var(--color-bg-alt);
  border-bottom: 1px solid var(--color-border);
  padding: 10px 0;
}
.breadcrumb {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 0;
  margin: 0;
  font-size: 0.85rem;
}
.breadcrumb li::after { content: ' / '; color: var(--color-text-light); margin-left: 4px; }
.breadcrumb li:last-child::after { content: ''; }
.breadcrumb a { color: var(--color-text-light); }
.breadcrumb a:hover { color: var(--color-primary); }
.breadcrumb li:last-child span { color: var(--color-text); font-weight: 600; }

/* --- Hero Section --- */
.hero-section {
  background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-primary-dark) 100%);
  color: var(--color-white);
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: url('/images/hero-bg.webp') center/cover no-repeat;
  opacity: 0.15;
}
.hero-content { position: relative; z-index: 1; }
.hero-section h1 {
  font-size: 2.8rem;
  color: var(--color-white);
  margin-bottom: 1rem;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.hero-section .subtitle {
  font-size: 1.2rem;
  opacity: 0.9;
  max-width: 700px;
  margin: 0 auto 2rem;
}
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 2rem;
}
.stat-item { text-align: center; }
.stat-number { font-size: 2.5rem; font-weight: 900; color: var(--color-accent); display: block; }
.stat-label { font-size: 0.9rem; opacity: 0.8; }

/* --- Section Common --- */
.section { padding: 60px 0; }
.section-alt { background: var(--color-bg-alt); }
.section-header { text-align: center; margin-bottom: 40px; }
.section-header h2 { font-size: 2rem; position: relative; display: inline-block; }
.section-header h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--color-primary);
  margin: 12px auto 0;
  border-radius: 2px;
}
.section-header p { color: var(--color-text-light); margin-top: 10px; max-width: 600px; margin-left: auto; margin-right: auto; }

/* --- Card Grid --- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.card {
  background: var(--color-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.card-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
}
.card-body { padding: 20px; }
.card-body h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }
.card-body h3 a { color: var(--color-secondary); }
.card-body h3 a:hover { color: var(--color-primary); }
.card-body p { font-size: 0.92rem; color: var(--color-text-light); margin-bottom: 0.8rem; }
.card-meta { font-size: 0.82rem; color: var(--color-text-light); }

/* --- Timeline --- */
.timeline {
  position: relative;
  padding: 20px 0;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--color-primary);
  transform: translateX(-50%);
}
.timeline-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 40px;
  position: relative;
}
.timeline-item:nth-child(odd) { flex-direction: row; }
.timeline-item:nth-child(even) { flex-direction: row-reverse; }
.timeline-content {
  width: 45%;
  background: var(--color-white);
  padding: 20px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.timeline-year {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-primary);
  color: var(--color-white);
  padding: 4px 16px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.9rem;
  z-index: 1;
}

/* --- Collection Showcase --- */
.collection-showcase { margin: 2rem 0; }
.showcase-main { margin-bottom: 1rem; }
.showcase-main img {
  width: 100%;
  max-height: 600px;
  object-fit: contain;
  background: #f5f5f5;
  border-radius: var(--radius);
  cursor: zoom-in;
}
.showcase-thumbs {
  display: flex;
  gap: 12px;
}
.showcase-thumbs .thumb {
  width: 120px;
  height: 80px;
  object-fit: cover;
  border-radius: 4px;
  cursor: pointer;
  opacity: 0.7;
  transition: var(--transition);
  border: 2px solid transparent;
}
.showcase-thumbs .thumb:hover {
  opacity: 1;
  border-color: var(--color-primary);
}

/* --- Article Layout --- */
.page-content { padding: 40px 0; }
.article-header { margin-bottom: 2rem; }
.article-header h1 { font-size: 2rem; }
.article-meta { color: var(--color-text-light); font-size: 0.9rem; margin-top: 0.5rem; }
.collection-badge, .interview-badge, .history-badge {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.collection-badge { background: #e8f5e9; color: #2e7d32; }
.interview-badge { background: #e3f2fd; color: #1565c0; }
.history-badge { background: #fff3e0; color: #e65100; }

/* --- Asymmetric Layout --- */
.asymmetric-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
  align-items: start;
}
.content-main h2 { font-size: 1.5rem; border-bottom: 2px solid var(--color-primary); padding-bottom: 0.5rem; }
.content-sidebar { position: sticky; top: 84px; }
.sidebar-card {
  background: var(--color-white);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}
.sidebar-card h4 { font-size: 1rem; margin-bottom: 1rem; color: var(--color-primary); }

/* --- Data Table --- */
.data-table { width: 100%; font-size: 0.9rem; }
.data-table th, .data-table td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--color-border);
  text-align: left;
}
.data-table th { font-weight: 600; color: var(--color-text-light); width: 35%; white-space: nowrap; }

/* --- Interview Styles --- */
.interview-hero { margin: 2rem 0; }
.interview-hero img { width: 100%; border-radius: var(--radius); }
.interview-hero figcaption { font-size: 0.85rem; color: var(--color-text-light); margin-top: 0.5rem; font-style: italic; }
.person-card {
  display: flex;
  gap: 20px;
  background: var(--color-bg-alt);
  padding: 20px;
  border-radius: var(--radius);
  margin-bottom: 2rem;
  align-items: flex-start;
}
.person-card img { border-radius: var(--radius); flex-shrink: 0; }
.person-info h3 { margin-bottom: 0.5rem; }
.person-info p { margin-bottom: 0.3rem; font-size: 0.92rem; }
.intro-text { font-size: 1.05rem; font-style: italic; color: var(--color-text-light); border-left: 4px solid var(--color-primary); padding-left: 16px; }

/* --- Q&A Section --- */
.qa-section { margin: 2rem 0; }
.qa-item {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--color-border);
}
.qa-item:last-child { border-bottom: none; }
.question { font-weight: 600; color: var(--color-secondary); margin-bottom: 0.8rem; }
.answer { color: var(--color-text); line-height: 1.9; }

/* --- Audio & Video Player --- */
.audio-player, .video-player {
  background: var(--color-bg-alt);
  padding: 20px;
  border-radius: var(--radius);
  margin: 2rem 0;
}
.audio-player h3, .video-player h3 { margin-bottom: 1rem; }
audio { width: 100%; }
.video-wrapper { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; border-radius: var(--radius); }
.video-wrapper video { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
.audio-desc, .video-desc { font-size: 0.85rem; color: var(--color-text-light); margin-top: 0.5rem; }

/* --- Photo Grid --- */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin: 1rem 0;
}
.photo-grid img { border-radius: var(--radius); width: 100%; height: 220px; object-fit: cover; }

/* --- Related Links --- */
.related-links {
  background: var(--color-bg-alt);
  padding: 20px;
  border-radius: var(--radius);
  margin-top: 2rem;
}
.related-links h3 { margin-bottom: 0.8rem; }
.related-links ul { list-style: none; padding: 0; }
.related-links li { margin-bottom: 0.5rem; }
.related-links a { font-size: 0.95rem; }

/* --- APP Download --- */
.app-download-section { padding: 60px 0; }
.app-download-section h1 { text-align: center; margin-bottom: 2rem; }
.app-hero-grid {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 40px;
  align-items: center;
}
.app-info h2 { color: var(--color-primary); margin-bottom: 1rem; }
.app-features { margin: 2rem 0; }
.feature-item {
  margin-bottom: 1.5rem;
  padding-left: 16px;
  border-left: 3px solid var(--color-accent);
}
.feature-item h3 { font-size: 1.05rem; margin-bottom: 0.3rem; }
.feature-item p { font-size: 0.92rem; color: var(--color-text-light); margin-bottom: 0; }
.download-buttons { display: flex; gap: 16px; margin: 2rem 0; }
.btn-download {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  border-radius: var(--radius);
  color: var(--color-white);
  font-size: 1rem;
  transition: var(--transition);
}
.btn-ios { background: #000; }
.btn-android { background: #3ddc84; color: #000; }
.btn-download:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); color: var(--color-white); }
.btn-android:hover { color: #000; }
.btn-icon { font-size: 1.5rem; }
.btn-text small { display: block; font-size: 0.7rem; opacity: 0.8; }
.app-version { font-size: 0.85rem; color: var(--color-text-light); }
.app-mockup img { max-width: 100%; border-radius: 24px; box-shadow: var(--shadow-lg); }

/* --- Legal Pages --- */
.legal-article { max-width: 800px; margin: 0 auto; }
.legal-article h1 { text-align: center; margin-bottom: 0.5rem; }
.legal-article .article-meta { text-align: center; margin-bottom: 2rem; }
.legal-article h2 { font-size: 1.3rem; margin-top: 2rem; }

/* --- Footer --- */
.site-footer {
  background: var(--color-secondary);
  color: rgba(255,255,255,0.8);
  padding: 50px 0 30px;
  margin-top: 60px;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-bottom: 30px;
}
.footer-col h4 {
  color: var(--color-white);
  font-size: 1rem;
  margin-bottom: 1rem;
  font-family: var(--font-sans);
}
.footer-col ul { list-style: none; padding: 0; }
.footer-col li { margin-bottom: 0.4rem; }
.footer-col a { color: rgba(255,255,255,0.65); font-size: 0.9rem; }
.footer-col a:hover { color: var(--color-accent); }
.footer-social {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.social-link {
  color: rgba(255,255,255,0.7);
  padding: 8px 16px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 20px;
  font-size: 0.85rem;
}
.social-link:hover { color: var(--color-white); border-color: var(--color-accent); background: rgba(255,255,255,0.05); }
.footer-contact, .footer-disclaimer, .footer-copyright {
  text-align: center;
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}
.footer-contact p, .footer-disclaimer p, .footer-copyright p { margin-bottom: 0.3rem; }
.footer-disclaimer { opacity: 0.6; }
.footer-copyright { opacity: 0.5; margin-top: 1rem; }

/* --- Responsive --- */
@media (max-width: 1024px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .asymmetric-layout { grid-template-columns: 1fr; }
  .content-sidebar { position: static; }
  .app-hero-grid { grid-template-columns: 1fr; }
  .app-mockup { text-align: center; }
  .app-mockup img { max-width: 300px; margin: 0 auto; }
}

@media (max-width: 768px) {
  html { font-size: 15px; }
  .nav-toggle { display: block; }
  .nav-menu {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--color-secondary);
    flex-direction: column;
    padding: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  }
  .nav-menu.open { display: flex; }
  .nav-menu li a { display: block; padding: 12px 16px; }
  .hero-section { padding: 50px 0; }
  .hero-section h1 { font-size: 2rem; }
  .hero-stats { flex-wrap: wrap; gap: 20px; }
  .stat-number { font-size: 2rem; }
  .card-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .timeline::before { left: 20px; }
  .timeline-item, .timeline-item:nth-child(even) { flex-direction: column; padding-left: 50px; }
  .timeline-content { width: 100%; }
  .timeline-year { left: 20px; transform: translateX(-50%); }
  .person-card { flex-direction: column; align-items: center; text-align: center; }
  .download-buttons { flex-direction: column; }
  .section { padding: 40px 0; }
  .photo-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  h1 { font-size: 1.6rem; }
  h2 { font-size: 1.3rem; }
  .showcase-thumbs { flex-wrap: wrap; }
}
