body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    background: #f8f8f8;
    margin: 0;
    padding: 0;
    color: #333;
}

header {
    text-align: center;
    padding: 2rem;
    color: white;
    font-size: 2rem;
}

h1 {
    font-size: 4rem;
    margin: 0.5rem 0;
    color: #c36134;
}

main {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.year-block {
    margin-bottom: 3rem;
}

.year-title {
    font-size: 2rem;
    border-bottom: 2px solid #ddd;
    margin-bottom: 1rem;
    padding-bottom: 0.3rem;
    color: #111;
}

.magazine-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1.5rem;
}

.magazine-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease;
}

.magazine-card:hover {
    transform: translateY(-5px);
}

.magazine-card img {
    width: 100%;
    height: 270px;
    object-fit: cover;
}

.magazine-info {
    padding: 0.8rem;
    font-size: 0.9rem;
}

.magazine-info h3 {
    margin: 0;
    font-size: 1rem;
    color: #444;
}

.magazine-info p {
    margin: 0.3rem 0;
    color: #666;
    font-size: 0.85rem;
}

footer {
    text-align: center;
    padding: 1.5rem;
    font-size: 0.85rem;
    background: #eee;
}

/* 时间轴导航 */
#timeline-nav {
    position: sticky;
    top: 0;
    background: #fff;
    padding: 0.5rem 1rem;
    border-bottom: 1px solid #ddd;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    z-index: 10;
}

#timeline-nav a {
    text-decoration: none;
    font-weight: bold;
    color: #555;
    transition: color 0.2s, transform 0.2s;
}

#timeline-nav a:hover {
    color: #111;
    transform: scale(1.1);
}

/* Lightbox 大图预览 */
.lightbox {
    display: none;
    /* 默认隐藏 */
    position: fixed;
    z-index: 100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.lightbox-img {
    max-width: 80%;
    max-height: 80%;
    margin: auto;
    display: block;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.lightbox-caption {
    margin-top: 1rem;
    color: #fff;
    font-size: 1rem;
    text-align: center;
    max-width: 80%;
}

.close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 2.5rem;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
}

.close:hover {
    color: #f00;
}

/* 左右切换按钮 */
.prev,
.next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    color: white;
    font-weight: bold;
    font-size: 2rem;
    user-select: none;
    transition: 0.3s;
}

.prev {
    left: 20px;
    transform: translateY(-50%);
}

.next {
    right: 20px;
    transform: translateY(-50%);
}

.prev:hover,
.next:hover {
    color: #f00;
}

/* 缩略图预览条 */
.lightbox-thumbnails {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    margin-top: 1rem;
    padding: 0.5rem;
    max-width: 90%;
    justify-content: center;
}

.lightbox-thumbnails img {
    width: 60px;
    height: 80px;
    object-fit: cover;
    border: 2px solid transparent;
    border-radius: 6px;
    cursor: pointer;
    transition: transform 0.2s, border 0.2s;
}

.lightbox-thumbnails img:hover {
    transform: scale(1.1);
    border-color: #fff;
}

.lightbox-thumbnails img.active {
    border-color: #f00;
}
/* 整屏 Banner */
.banner {
  width: 100%;
  height: 40vh; /* 整屏 */
  background: url("banner-desktop.jpg") center/100% no-repeat; /* 替换成你的banner图 */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  color: #fff;
}

/* 移动端用竖版图 */
@media (max-width: 768px) {
  .banner {
    background: url("banner-mobile.jpg") center/100% no-repeat;
  }
}

/* 遮罩层，让文字更清晰 */
.banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4);
}

.banner-content {
  position: relative;
  z-index: 1;
  max-width: 90%;
  padding: 1rem;
}

.banner h1 {
  font-size: 3.5rem;
  margin: 0;
}

.banner p {
  font-size: 1.5rem;
  margin-top: 1rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .banner h1 {
    font-size: 2.2rem;
  }
  .banner p {
    font-size: 1.1rem;
  }

}
/* 图表模块 */
.stats {
  max-width: 1200px;
  margin: 3rem auto;
  padding-top: 1rem;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.08);
}

.stats h2 {
  text-align: center;
  margin-bottom: 1.5rem;
}
h2 button {
  margin-left: 0.5rem;
  padding: 0.5rem 1rem;
  font-size: 1rem;
  border: none;
  border-radius: 6px;
  background: #36a2eb;
  color: #fff;
  cursor: pointer;
  transition: background 0.3s;
}

h2 button:hover {
  background: #1d8ed1;
}

#magazineChart {
  width: 100% !important;
  height: 400px !important;
}





