/* czstsg-home.css - 首页专属样式 */

/* ── 顶部导航覆盖（首页：黑底 absolute 浮在 hero 上） ── */
.top-nav--home {
  position: absolute; top: 0; left: 0; right: 0;
  padding: 18px 48px;
  background: oklch(0 0 0 / 0.3);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid oklch(100% 0 0 / 0.1);
  z-index: 100;
}
.top-nav--home .logo-area img { height: 40px; }
.top-nav--home .nav-links > li > a {
  color: oklch(100% 0 0 / 0.8);
}
.top-nav--home .nav-links > li > a:hover {
  color: var(--white);
  background: oklch(100% 0 0 / 0.12);
}
.top-nav--home .nav-links > li .dropdown {
  background: oklch(0 0 0 / 0.85);
  border: 1px solid oklch(100% 0 0 / 0.1);
  box-shadow: 0 12px 40px oklch(0 0 0 / 0.25);
}
.top-nav--home .nav-links > li .dropdown a {
  color: oklch(100% 0 0 / 0.75);
}
.top-nav--home .nav-links > li .dropdown a:hover {
  color: var(--white);
  background: oklch(100% 0 0 / 0.08);
}

.section {
  min-height: 100vh;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
html { scroll-snap-type: y mandatory; }

.section-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 80px 24px;
  width: 100%;
}
.section-header { text-align: center; margin-bottom: 48px; }
.section-header h2 {
  font-family: var(--font-display);
  font-size: 2.2rem; font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}
.section-header p {
  color: var(--ink-soft);
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

/* ── Hero ── */
.hero {
  justify-content: center;
  align-items: center;
  text-align: center;
  background:
    linear-gradient(oklch(0 0 0 / 0.45), oklch(0 0 0 / 0.2) 50%, oklch(0 0 0 / 0.5)),
    url('../images/hero-bg.jpg') center/cover no-repeat;
}
.hero .hero-content {
  position: relative; z-index: 2;
  color: var(--white);
  max-width: 760px; padding: 0 24px;
}
.hero-tag {
  display: inline-block;
  padding: 6px 18px;
  border: 1px solid oklch(100% 0 0 / 0.4);
  border-radius: 50px;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  color: oklch(100% 0 0 / 0.85);
  margin-bottom: 24px;
}
.hero-title {
  font-family: var(--font-display);
  font-size: 4.5rem; font-weight: 900;
  letter-spacing: 0.2em;
  margin-bottom: 16px;
  text-shadow: 0 2px 16px oklch(0 0 0 / 0.4);
}
.hero-subtitle {
  font-size: 1.05rem;
  letter-spacing: 0.16em;
  color: oklch(100% 0 0 / 0.85);
  margin-bottom: 40px;
}
.search-wrap {
  display: flex;
  max-width: 580px; margin: 0 auto 24px;
  background: oklch(100% 0 0 / 0.95);
  border-radius: 50px;
  overflow: hidden;
  box-shadow: 0 8px 32px oklch(0 0 0 / 0.25);
}
.search-wrap input {
  flex: 1;
  border: none; outline: none;
  padding: 14px 24px;
  font-size: 0.95rem;
  background: transparent;
  color: var(--ink);
}
.search-btn {
  padding: 0 28px;
  background: var(--accent);
  color: var(--white);
  border: none;
  font-size: 0.92rem; font-weight: 500;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: background 200ms ease;
}
.search-btn:hover { background: var(--accent-dim); }
.hot-tags {
  display: flex; justify-content: center; flex-wrap: wrap;
  gap: 8px 14px;
  font-size: 0.82rem;
}
.hot-tags a {
  color: oklch(100% 0 0 / 0.75);
  padding: 4px 12px;
  border-radius: 20px;
  background: oklch(0 0 0 / 0.2);
  transition: all 200ms ease;
}
.hot-tags a:hover { color: var(--white); background: oklch(0 0 0 / 0.4); }

.scroll-hint {
  position: absolute; bottom: 32px; left: 50%;
  transform: translateX(-50%);
  color: oklch(100% 0 0 / 0.6);
  font-size: 0.78rem; letter-spacing: 0.16em;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  animation: floaty 2.4s ease-in-out infinite;
}
.scroll-hint svg { width: 20px; height: 20px; }
@keyframes floaty { 0%,100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 6px); } }

/* ── Dot Navigation ── */
.nav-dots {
  position: fixed; right: 28px; top: 50%;
  transform: translateY(-50%);
  z-index: 90;
  display: flex; flex-direction: column; gap: 14px;
}
.nav-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: oklch(50% 0.03 25 / 0.3);
  cursor: pointer;
  transition: all 280ms var(--ease-out-expo);
  position: relative;
}
.nav-dot::after {
  content: attr(data-label);
  position: absolute; right: 22px; top: 50%;
  transform: translateY(-50%);
  font-size: 0.72rem; font-weight: 500;
  color: var(--accent); white-space: nowrap;
  opacity: 0; pointer-events: none;
  transition: opacity 200ms ease;
}
.nav-dot:hover::after, .nav-dot.active::after { opacity: 1; }
.nav-dot.active {
  background: var(--accent);
  width: 12px; height: 12px;
  box-shadow: 0 0 0 6px oklch(48% 0.18 25 / 0.15);
}

/* ── News ── */
.news-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 32px;
  align-items: start;
}
.carousel-wrap { position: relative; }
.carousel-track { position: relative; border-radius: 12px; overflow: hidden; aspect-ratio: 16/10; }
.carousel-slide {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity 600ms var(--ease-out-expo);
}
.carousel-slide.active { opacity: 1; position: relative; }
.carousel-slide img,
.carousel-slide .slide-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.slide-placeholder {
  width: 100%; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  background: linear-gradient(135deg, oklch(94% 0.015 65), oklch(88% 0.03 60));
  color: var(--accent);
}
.slide-placeholder svg { width: 64px; height: 64px; opacity: 0.7; }
.slide-placeholder span { font-family: var(--font-display); font-size: 1.05rem; font-weight: 500; letter-spacing: 0.1em; color: var(--ink-soft); }
.slide-overlay {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 18px 22px;
  background: linear-gradient(transparent, oklch(0 0 0 / 0.75));
  color: var(--white);
}
.slide-overlay h3 { font-family: var(--font-display); font-size: 1.05rem; font-weight: 600; line-height: 1.4; }
.carousel-dots {
  position: absolute; bottom: 14px; right: 16px;
  display: flex; gap: 8px; z-index: 2;
}
.carousel-dots .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: oklch(100% 0 0 / 0.45);
  border: none; padding: 0; cursor: pointer;
  transition: all 200ms ease;
}
.carousel-dots .dot.active { background: var(--white); width: 22px; border-radius: 4px; }

.tab-list { display: flex; gap: 8px; margin-bottom: 18px; border-bottom: 1px solid oklch(80% 0.02 60 / 0.3); }
.tab-btn {
  padding: 10px 18px;
  background: none; border: none;
  font-size: 0.95rem; font-weight: 500;
  color: var(--ink-soft);
  cursor: pointer;
  position: relative;
  transition: color 200ms ease;
}
.tab-btn::after {
  content: ''; position: absolute;
  bottom: -1px; left: 18px; right: 18px;
  height: 2px; background: var(--accent);
  transform: scaleX(0); transition: transform 220ms var(--ease-out-expo);
}
.tab-btn.active { color: var(--accent); }
.tab-btn.active::after { transform: scaleX(1); }
.tab-content { display: none; }
.tab-content.active { display: block; animation: fadeIn 320ms ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

.news-list { display: flex; flex-direction: column; gap: 2px; }
.news-item {
  display: flex; align-items: center; gap: 18px;
  padding: 14px 6px;
  border-bottom: 1px dashed oklch(80% 0.02 60 / 0.25);
  transition: all 220ms ease;
}
.news-item:last-child { border-bottom: none; }
.news-item:hover { padding-left: 12px; background: var(--paper-warm); }
.news-item .item-date {
  font-family: var(--font-body);
  font-size: 0.82rem; color: var(--accent);
  font-weight: 500; letter-spacing: 0.04em;
  flex-shrink: 0; min-width: 84px;
}
.news-item .item-title {
  flex: 1;
  font-size: 0.94rem; color: var(--ink);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  transition: color 200ms ease;
}
.news-item:hover .item-title { color: var(--accent); }

/* ── Services ── */
.service-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  margin-bottom: 56px;
}
.service-card {
  padding: 28px 18px;
  background: var(--white);
  border: 1px solid oklch(80% 0.02 60 / 0.15);
  border-radius: 12px;
  text-align: center;
  transition: all 280ms var(--ease-out-expo);
}
.service-card:hover {
  transform: translateY(-4px);
  border-color: oklch(48% 0.18 25 / 0.3);
  box-shadow: 0 12px 32px oklch(48% 0.18 25 / 0.1);
}
.service-card .card-icon { font-size: 2rem; margin-bottom: 12px; }
.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.02rem; font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}
.service-card p { font-size: 0.78rem; color: var(--ink-soft); line-height: 1.5; }

.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 32px;
  background: var(--paper-warm);
  border-radius: 12px;
}
.stat-item { text-align: center; }
.stat-num {
  font-family: var(--font-display);
  font-size: 2.4rem; font-weight: 700;
  color: var(--accent);
  line-height: 1.1;
}
.stat-label {
  font-size: 0.88rem; color: var(--ink-soft);
  letter-spacing: 0.06em;
  margin-top: 6px;
}

/* ── Books ── */
.book-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.book-card {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 18px;
  padding: 22px;
  background: var(--white);
  border: 1px solid oklch(80% 0.02 60 / 0.15);
  border-radius: 12px;
  transition: all 280ms var(--ease-out-expo);
}
.book-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px oklch(48% 0.18 25 / 0.1);
  border-color: oklch(48% 0.18 25 / 0.25);
}
.book-cover {
  width: 110px; height: 156px;
  overflow: hidden;
  border-radius: 4px;
  box-shadow: 0 4px 12px oklch(0 0 0 / 0.12);
  background: var(--paper-warm);
}
.book-cover img { width: 100%; height: 100%; object-fit: cover; }
.book-info { display: flex; flex-direction: column; }
.book-tag {
  align-self: flex-start;
  padding: 2px 10px;
  font-size: 0.72rem;
  background: oklch(48% 0.18 25 / 0.1);
  color: var(--accent);
  border-radius: 12px;
  margin-bottom: 8px;
}
.book-info h3 {
  font-family: var(--font-display);
  font-size: 1.05rem; font-weight: 600;
  color: var(--ink);
  margin-bottom: 4px;
}
.book-author { font-size: 0.82rem; color: var(--ink-soft); margin-bottom: 8px; }
.book-desc {
  font-size: 0.84rem; color: var(--ink-soft);
  line-height: 1.55;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── Exhibition ── */
.exhibit-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.exhibit-card {
  border-radius: 12px;
  overflow: hidden;
  background: var(--white);
  box-shadow: 0 4px 16px oklch(0 0 0 / 0.06);
  transition: all 280ms var(--ease-out-expo);
}
.exhibit-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px oklch(0 0 0 / 0.14);
}
.exhibit-banner { aspect-ratio: 16/10; overflow: hidden; }
.exhibit-banner img { width: 100%; height: 100%; object-fit: cover; transition: transform 480ms var(--ease-out-expo); }
.exhibit-card:hover .exhibit-banner img { transform: scale(1.06); }
.exhibit-info { padding: 18px 22px; }
.exhibit-info h3 {
  font-family: var(--font-display);
  font-size: 1.05rem; font-weight: 600;
  color: var(--ink);
}

/* ── Info ── */
.info {
  background: var(--paper-warm);
  scroll-snap-align: start;
}
.info .section-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.4fr;
  gap: 40px;
  padding-top: 64px; padding-bottom: 32px;
  max-width: 1280px;
  align-items: start;
}
.info-brand .brand-name {
  font-family: var(--font-display);
  font-size: 1.6rem; font-weight: 700;
  color: var(--ink);
  margin-bottom: 14px;
}
.info-brand p { font-size: 0.86rem; color: var(--ink-soft); line-height: 1.7; }
.info-hours h3, .info-links h3, .friendly-links h3 {
  font-family: var(--font-display);
  font-size: 1.05rem; font-weight: 600;
  color: var(--ink);
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--accent);
  display: inline-block;
}
.info-hours dl { font-size: 0.84rem; line-height: 1.8; }
.info-hours dt { color: var(--ink); font-weight: 500; margin-top: 6px; }
.info-hours dd { color: var(--ink-soft); }
.info-links ul li { margin-bottom: 8px; }
.info-links ul li a { font-size: 0.86rem; color: var(--ink-soft); transition: color 200ms ease; }
.info-links ul li a:hover { color: var(--accent); }
.friendly-links .link-row { display: flex; flex-wrap: wrap; gap: 8px 14px; }
.friendly-links .link-row a {
  font-size: 0.78rem; color: var(--ink-soft);
  padding: 3px 10px;
  background: var(--white);
  border-radius: 12px;
  transition: all 200ms ease;
}
.friendly-links .link-row a:hover { color: var(--accent); background: oklch(48% 0.18 25 / 0.08); }
.footer-bottom {
  grid-column: 1 / -1;
  text-align: center;
  font-size: 0.78rem;
  color: var(--ink-soft);
  padding-top: 24px;
  border-top: 1px solid oklch(80% 0.02 60 / 0.2);
}

/* ── Responsive ── */
@media (max-width: 1100px) {
  .service-grid { grid-template-columns: repeat(4, 1fr); }
  .book-grid, .exhibit-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .section { min-height: auto; scroll-snap-align: none; }
  html { scroll-snap-type: none; }
  .nav-dots { display: none; }
  .section-inner { padding: 56px 16px; }
  .section-header h2 { font-size: 1.7rem; }
  .hero-title { font-size: 2.6rem; }
  .hero-subtitle { font-size: 0.9rem; }
  .news-grid { grid-template-columns: 1fr; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-row { grid-template-columns: repeat(2, 1fr); padding: 20px; }
  .stat-num { font-size: 1.8rem; }
  .book-grid, .exhibit-grid { grid-template-columns: 1fr; }
  .info .section-inner { grid-template-columns: 1fr; gap: 28px; padding-top: 40px; }
  .search-wrap { max-width: 100%; }
}
