/* ============================================================
   济南知虹文化传媒有限公司官网 - 主样式文件
   设计稿：1920px，像素级还原 + PC/移动自适应
   ============================================================ */

/* ---- Reset & Base ---- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Noto Sans SC', sans-serif;
  background-color: #f9f9f9;
  color: #1a1c1c;
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

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

/* ---- CSS Variables ---- */
:root {
  --red-primary: #9d0518;
  --red-cta: #c0272d;
  --dark: #1a1c1c;
  --brown: #5a403e;
  --border: #e3bebb;
  --bg-gray: #f3f3f4;
  --bg-white: #f9f9f9;
  --header-h: 80px;
  --max-w: 1400px;
  --section-pad: 120px;
  --side-pad: 261.5px;
}

/* ---- Container ---- */
.container {
  width: 100%;
  max-width: 1464px; /* 1400px content + 32px*2 inner padding */
  margin: 0 auto;
  padding: 0 32px;
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-h);
  background: rgba(249, 249, 249, 0.9);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.header-inner {
  max-width: 1464px;
  margin: 0 auto;
  padding: 0 32px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.logo-link {
  flex-shrink: 0;
}

.logo-img {
  height: 40px;
  width: auto;
}

/* Nav */
.main-nav {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-shrink: 0;
}

.nav-link {
  font-size: 16px;
  font-weight: 500;
  color: var(--brown);
  letter-spacing: 0.7px;
  white-space: nowrap;
  padding-bottom: 6px;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.nav-link:hover {
  color: var(--red-primary);
}

.nav-link.active {
  color: var(--red-primary);
  border-bottom-color: var(--red-primary);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  flex-shrink: 0;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ============================================================
   SECTION COMMON
   ============================================================ */
.section-label {
  font-family: 'Noto Serif', serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--red-primary);
  letter-spacing: 2.8px;
  text-transform: uppercase;
}

.section-label-wrap {
  width: 100%;
}

.section-label-wrap.center {
  text-align: center;
}

.section-heading {
  font-size: 32px;
  font-weight: 700;
  color: var(--dark);
  line-height: 40px;
  margin-top: 16px;
}

.section-heading.center {
  text-align: center;
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero-section {
  position: relative;
  margin-top: var(--header-h);
  height: 800px;
  background: #000;
  overflow: hidden;
}

.hero-swiper {
  width: 100%;
  height: 100%;
}

.hero-swiper .swiper-slide {
  position: relative;
  height: 100%;
  overflow: hidden;
}

.hero-swiper .swiper-slide .hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-swiper .swiper-slide .hero-content {
  position: relative;
  z-index: 1;
}

/* 纯图片轮播 */
.hero-slide--image .hero-bg--pure {
  position: absolute;
  inset: 0;
}

.hero-pure-link {
  display: block;
  width: 100%;
  height: 100%;
}

.hero-pure-img {
  transform: scale(1.04);
}

.hero-slide--image.swiper-slide-active .hero-pure-img,
.hero-swiper .swiper-slide-active.hero-slide--image .hero-pure-img {
  transform: scale(1);
  transition: transform 9s ease-out;
}

.hero-slide--image .hero-overlay {
  display: none;
}

/* 背景缓慢缩放 */
.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.06);
  transition: transform 0.4s ease-out;
  will-change: transform;
}

.hero-swiper .swiper-slide-active .hero-bg-img {
  transform: scale(1);
  transition: transform 9s ease-out;
}

/* 内容分层入场 */
.hero-animate-item {
  opacity: 0;
  transform: translate3d(0, 28px, 0);
  transition:
    opacity 0.55s ease,
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-swiper .swiper-slide:not(.swiper-slide-active) .hero-animate-item {
  transition-duration: 0.3s;
}

.hero-swiper .swiper-slide-active .hero-animate-item {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.hero-swiper .swiper-slide-active .hero-animate-item[data-hero-delay="1"] { transition-delay: 0.08s; }
.hero-swiper .swiper-slide-active .hero-animate-item[data-hero-delay="2"] { transition-delay: 0.18s; }
.hero-swiper .swiper-slide-active .hero-animate-item[data-hero-delay="3"] { transition-delay: 0.28s; }
.hero-swiper .swiper-slide-active .hero-animate-item[data-hero-delay="4"] { transition-delay: 0.38s; }
.hero-swiper .swiper-slide-active .hero-animate-item[data-hero-delay="5"] { transition-delay: 0.48s; }
.hero-swiper .swiper-slide-active .hero-animate-item[data-hero-delay="6"] { transition-delay: 0.58s; }

.hero-swiper .swiper-slide-active .hero-book-wrap {
  transform: translate3d(0, 0, 0) scale(1);
}

.hero-swiper .swiper-slide .hero-book-wrap {
  transform: translate3d(0, 28px, 0) scale(0.96);
}

.hero-pagination {
  bottom: 32px !important;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.hero-pagination .swiper-pagination-bullet {
  width: 28px;
  height: 4px;
  margin: 0 !important;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
  opacity: 1;
  transition: width 0.35s ease, background 0.35s ease, transform 0.35s ease;
}

.hero-pagination .swiper-pagination-bullet-active {
  width: 44px;
  background: var(--red-cta);
  transform: none;
}

.hero-section .hero-nav {
  opacity: 0;
  visibility: hidden;
  transform: translateY(-50%) scale(0.92);
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease,
    transform 0.3s ease,
    background 0.25s ease;
}

.hero-section:hover .hero-nav,
.hero-section:focus-within .hero-nav,
.hero-swiper--controls-visible .hero-nav {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) scale(1);
}

.hero-nav {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  background: rgba(0, 0, 0, 0.35);
  border-radius: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s ease, opacity 0.25s ease;
}

.hero-nav img {
  width: 18px;
  height: 18px;
  display: block;
}

.hero-nav:hover {
  background: rgba(0, 0, 0, 0.55);
}

.hero-nav-prev {
  left: 24px;
}

.hero-nav-next {
  right: 24px;
}

.hero-nav.swiper-button-disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.hero-book-wrap a {
  display: block;
  width: 100%;
  height: 100%;
}

.hero-bg {
  position: absolute;
  inset: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.6) 50%, rgba(0,0,0,0.8) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 64px;
}

/* Hero Book Column */
.hero-book-col {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50%;
}

.hero-book-wrap {
  width: 520px;
  max-width: 100%;
  aspect-ratio: 520 / 697;
  box-shadow: 30px 30px 50px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}

.hero-book-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Hero Text Column */
.hero-text-col {
  flex: 0 0 auto;
  width: 50%;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.hero-heading {
  font-size: 84px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -2.1px;
  word-break: break-word;
}

.hero-heading-black {
  color: #fff;
}

.hero-heading-red {
  color: var(--red-cta);
}

.hero-subtitle {
  font-size: 30px;
  font-weight: 400;
  color: #fff;
  letter-spacing: 3px;
  line-height: 36px;
}

.hero-book-label-wrap {
  padding-top: 16px;
}

.hero-book-label {
  display: inline-block;
  width: 357px;
  max-width: 100%;
}

.hero-book-title {
  font-size: 36px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 1.8px;
  line-height: 40px;
  display: block;
  white-space: nowrap;
}

.hero-book-underline {
  height: 4px;
  background: var(--red-cta);
  margin-top: 8px;
  width: 100%;
}

.hero-author-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 6px 0;
}

.hero-author-name {
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  line-height: 32px;
  white-space: nowrap;
}

.hero-badge {
  display: inline-block;
  background: var(--red-cta);
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  line-height: 28px;
  padding: 4px 16px;
  border-radius: 9999px;
  white-space: nowrap;
}

.hero-quote {
  font-size: 30px;
  font-weight: 300;
  color: #fff;
  letter-spacing: 0.75px;
  line-height: 36px;
  padding: 6px 0;
}

@media (prefers-reduced-motion: reduce) {
  .hero-bg-img,
  .hero-animate-item,
  .hero-swiper .swiper-slide .hero-book-wrap {
    transition: none !important;
    transform: none !important;
  }

  .hero-swiper .swiper-slide-active .hero-animate-item {
    opacity: 1;
  }
}

/* ============================================================
   BOOKS SECTION
   ============================================================ */
.books-section {
  padding: var(--section-pad) 0;
  background: var(--bg-white);
}

.books-section-header {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 100%;
  margin-bottom: 64px;
  min-height: 56px;
}

.books-section-header .section-heading {
  margin-top: 0;
}

.books-section-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.books-nav-btns {
  position: absolute;
  right: 0;
  bottom: 0;
  display: flex;
  gap: 16px;
  align-items: center;
  flex-shrink: 0;
}

.books-btn {
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 9999px;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s;
  padding: 1px;
}

.books-btn:hover {
  background: var(--border);
}

.books-btn img {
  width: 6.167px;
  height: 10px;
  object-fit: contain;
  display: block;
}

.books-btn--disabled {
  opacity: 0.35 !important;
  cursor: not-allowed;
}

.books-btn:focus-visible {
  outline: 2px solid var(--red-primary);
  outline-offset: 2px;
}

/* ---- Books Swiper ---- */
.books-swiper {
  width: 100%;
  overflow: visible;
  clip-path: inset(-60px -32px -20px -32px);
  padding-bottom: 12px;
}

.books-swiper.fade-in {
  opacity: 1;
  transform: none;
}

@media (max-width: 768px) {
  .books-swiper {
    clip-path: inset(-40px -4px -10px -4px);
  }

  .books-section-header {
    align-items: flex-start;
    min-height: auto;
    padding-bottom: 56px;
  }

  .books-nav-btns {
    right: 0;
    bottom: 0;
  }
}

.books-swiper .swiper-wrapper {
  transition-timing-function: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.books-swiper .swiper-slide {
  height: auto;
  box-sizing: border-box;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

/* 桌面端 3 行网格：行间距 64px（spaceBetween 32 + margin 32） */
@media (min-width: 1024px) {
  .books-swiper .swiper-slide:nth-child(-n+8) {
    margin-bottom: 32px;
  }
}

.books-swiper.swiper-ready .swiper-slide {
  opacity: 1;
  transform: translateY(0);
}

.books-swiper.swiper-ready .swiper-slide:nth-child(1) { transition-delay: 0.04s; }
.books-swiper.swiper-ready .swiper-slide:nth-child(2) { transition-delay: 0.08s; }
.books-swiper.swiper-ready .swiper-slide:nth-child(3) { transition-delay: 0.12s; }
.books-swiper.swiper-ready .swiper-slide:nth-child(4) { transition-delay: 0.16s; }
.books-swiper.swiper-ready .swiper-slide:nth-child(5) { transition-delay: 0.20s; }
.books-swiper.swiper-ready .swiper-slide:nth-child(6) { transition-delay: 0.24s; }
.books-swiper.swiper-ready .swiper-slide:nth-child(7) { transition-delay: 0.28s; }
.books-swiper.swiper-ready .swiper-slide:nth-child(8) { transition-delay: 0.32s; }
.books-swiper.swiper-ready .swiper-slide:nth-child(9) { transition-delay: 0.36s; }
.books-swiper.swiper-ready .swiper-slide:nth-child(10) { transition-delay: 0.40s; }
.books-swiper.swiper-ready .swiper-slide:nth-child(11) { transition-delay: 0.44s; }
.books-swiper.swiper-ready .swiper-slide:nth-child(12) { transition-delay: 0.48s; }

/* Book Card */
.book-card {
  display: flex;
  flex-direction: column;
  gap: 24px;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  height: 100%;
}

.book-cover-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 310 / 413.33;
  overflow: hidden;
  background: #fff;
  box-shadow: 20px 20px 60px rgba(0, 0, 0, 0.08), -5px 0 15px rgba(0, 0, 0, 0.03);
  transition: box-shadow 0.35s ease, transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.book-card:hover .book-cover-wrap {
  transform: translateY(-4px);
  box-shadow: 24px 24px 64px rgba(0, 0, 0, 0.1), -5px 0 18px rgba(0, 0, 0, 0.04);
}

.book-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  box-shadow: 0 8px 5px rgba(0, 0, 0, 0.08), 0 20px 13px rgba(0, 0, 0, 0.03);
  transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.book-card:hover .book-cover {
  transform: scale(1.02);
}

.book-overlay {
  position: absolute;
  inset: 0;
  background: rgba(157, 5, 24, 0.05);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.book-card:hover .book-overlay {
  opacity: 1;
}

.book-info {
  display: flex;
  flex-direction: column;
  gap: 8.5px;
}

.book-category {
  font-size: 14px;
  font-weight: 700;
  color: var(--red-primary);
  letter-spacing: -0.6px;
  text-transform: uppercase;
  line-height: 16px;
}

.book-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--dark);
  line-height: 32px;
  transition: color 0.2s;
}

.book-card:hover .book-title {
  color: var(--red-primary);
}

.books-empty {
  padding: 80px 20px;
  text-align: center;
  font-size: 18px;
  color: rgba(90, 64, 62, 0.7);
}

/* ============================================================
   ABOUT SECTION
   ============================================================ */
.about-section {
  background: var(--bg-gray);
  padding: var(--section-pad) 0;
  overflow: hidden;
}

.about-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 32px;
  align-items: center;
}

.about-text-col {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 48px 0;
}

.about-heading {
  font-size: 48px;
  font-weight: 700;
  color: var(--dark);
  line-height: 56px;
  letter-spacing: -0.48px;
}

.about-desc {
  font-size: 18px;
  font-weight: 400;
  color: var(--brown);
  line-height: 29.25px;
  padding-top: 7px;
}

.about-cta {
  padding-bottom: 24px;
  padding-top: 8px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--red-cta);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.7px;
  padding: 12px 32px;
  transition: background 0.2s, transform 0.2s;
  cursor: pointer;
  white-space: nowrap;
}

.btn-primary:hover {
  background: #a81f24;
  transform: translateY(-1px);
}

.btn-arrow {
  width: 9.333px;
  height: 9.333px;
  object-fit: contain;
}

/* Stats */
.about-stats {
  display: flex;
  gap: 48px;
  border-top: 1px solid var(--border);
  padding-top: 49px;
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.stat-number {
  font-size: 48px;
  font-weight: 700;
  color: var(--red-primary);
  line-height: 56px;
  letter-spacing: -0.48px;
  white-space: nowrap;
}

.stat-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--dark);
  letter-spacing: 1.4px;
  text-transform: uppercase;
  opacity: 0.6;
  line-height: 20px;
  white-space: nowrap;
}

/* About image */
.about-image-col {
  position: relative;
  align-self: center;
}

.about-image-wrap {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #e2e2e2;
  overflow: hidden;
}

.about-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* ============================================================
   NEWS SECTION
   ============================================================ */
.news-section {
  padding: var(--section-pad) 0;
  background: var(--bg-white);
}

.news-grid {
  display: grid;
  grid-template-columns: 4fr 8fr;
  gap: 64px;
}

.news-sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.news-heading {
  /* inherits .section-heading */
}

.news-desc {
  font-size: 16px;
  font-weight: 400;
  color: var(--brown);
  line-height: 24px;
  padding-top: 16px;
  padding-bottom: 32px;
}

.btn-outline {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--dark);
  color: var(--dark);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.7px;
  padding: 17px 1px;
  width: 100%;
  text-align: center;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}

.btn-outline:hover {
  background: var(--dark);
  color: #fff;
}

/* News List */
.news-list {
  display: flex;
  flex-direction: column;
  cursor: pointer;
}

.news-item {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-bottom: 32px;
  transition: opacity 0.2s;
}

.news-item:hover {
  opacity: 0.8;
}

.news-item-bordered {
  border-top: 1px solid var(--border);
  padding-top: 33px;
}

.news-date {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex-shrink: 0;
}

.news-day {
  font-size: 24px;
  font-weight: 700;
  color: var(--red-primary);
  line-height: 32px;
  white-space: nowrap;
}

.news-month {
  font-size: 14px;
  font-weight: 500;
  color: var(--dark);
  letter-spacing: 0.7px;
  opacity: 0.6;
  line-height: 20px;
  white-space: nowrap;
}

.news-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.news-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--dark);
  line-height: 32px;
}

.news-excerpt {
  font-size: 16px;
  font-weight: 400;
  color: var(--brown);
  line-height: 24px;
  overflow: hidden;
}

.news-arrow {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.news-arrow img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* ============================================================
   PARTNERS SECTION
   ============================================================ */
.partners-section {
  background: var(--bg-gray);
  padding: var(--section-pad) 0;
  overflow: hidden;
}

.partners-section .container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.partners-track-outer {
  width: 100%;
  height: 144px;
  overflow: hidden;
  position: relative;
}

.partners-track {
  display: flex;
  align-items: center;
  gap: 96px;
  padding: 0 48px;
  animation: marquee 20s linear infinite;
  width: max-content;
}

.partner-item {
  flex-shrink: 0;
  width: 256px;
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.partner-item img {
  max-width: 256px;
  max-height: 78.5px;
  object-fit: contain;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--bg-gray);
  border-top: 1px solid var(--border);
  padding-top: 33px;
  padding-bottom: 16px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 4fr 2fr 2fr 3fr 2fr;
  gap: 6px 32px;
  padding-bottom: 4px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding-bottom: 4px;
}

.footer-logo-link {
  display: inline-block;
}

.footer-logo {
  height: 40px;
  width: auto;
}

.footer-intro {
  font-size: 16px;
  font-weight: 400;
  color: var(--brown);
  line-height: 24px;
  max-width: 384px;
}

.footer-links-col {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-bottom: 48px;
}

.footer-col-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--dark);
  letter-spacing: 1.4px;
  text-transform: uppercase;
  line-height: 20px;
}

.footer-col-title-right {
  text-align: right;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-links li a {
  font-size: 16px;
  font-weight: 400;
  color: var(--brown);
  line-height: 24px;
  transition: color 0.2s;
}

.footer-links li a:hover {
  color: var(--red-primary);
}

.footer-contact-col {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.footer-contact-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-contact-list li {
  font-size: 16px;
  font-weight: 400;
  color: var(--brown);
  line-height: 24px;
}

.footer-qr-col {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-end;
  padding-bottom: 12px;
}

.footer-qr-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 112px;
}

.footer-qr-box {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 9px;
  width: 112px;
  height: 112px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-qr-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.footer-qr-label {
  font-size: 14px;
  font-weight: 400;
  color: var(--brown);
  opacity: 0.7;
  white-space: nowrap;
  line-height: 16px;
}

.footer-bottom {
  border-top: 1px solid var(--border);
  margin-top: 32px;
  padding: 33px 0 32px;
  text-align: center;
}

.footer-copyright {
  font-size: 14px;
  font-weight: 400;
  color: var(--brown);
  letter-spacing: 0.7px;
  line-height: 20px;
}

.footer-copyright a {
  color: inherit;
  text-decoration: none;
}

.footer-copyright a:hover {
  color: var(--red-primary);
  text-decoration: underline;
}

/* ============================================================
   RESPONSIVE — Tablet (≤1200px)
   ============================================================ */
@media (max-width: 1200px) {
  :root {
    --section-pad: 80px;
  }

  .container,
  .header-inner {
    padding-left: 40px;
    padding-right: 40px;
  }

  .hero-heading {
    font-size: 60px;
  }

  .hero-book-wrap {
    width: 380px;
  }

  .about-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .about-heading {
    font-size: 36px;
    line-height: 44px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 32px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-qr-col {
    align-items: flex-start;
  }

  .footer-col-title-right {
    text-align: left;
  }
}

/* ============================================================
   RESPONSIVE — Mobile Large (≤900px)
   ============================================================ */
@media (max-width: 900px) {
  :root {
    --section-pad: 60px;
  }

  .container,
  .header-inner {
    padding-left: 24px;
    padding-right: 24px;
  }

  /* Hide desktop nav and search, show hamburger */
  .main-nav {
    display: none;
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: rgba(249, 249, 249, 0.98);
    backdrop-filter: blur(6px);
    flex-direction: column;
    gap: 0;
    padding: 16px 24px 24px;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    z-index: 999;
  }

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

  .main-nav .nav-link {
    padding: 14px 0;
    border-bottom: 1px solid rgba(227, 190, 187, 0.4);
    width: 100%;
    border-bottom-width: 1px;
    border-left: none;
    border-right: none;
    border-top: none;
  }

  .main-nav .nav-link.active {
    border-bottom-color: rgba(227, 190, 187, 0.4);
  }

  .hamburger {
    display: flex;
  }

  /* Hero */
  .hero-section {
    height: auto;
    min-height: 500px;
  }

  .hero-swiper,
  .hero-swiper .swiper-slide {
    height: auto;
    min-height: 500px;
  }

  .hero-swiper .swiper-slide .hero-content {
    padding: 40px 24px;
    min-height: 500px;
    box-sizing: border-box;
  }

  .hero-nav {
    display: none;
  }

  .hero-swiper--controls-visible .hero-nav {
    display: flex;
  }

  .hero-pagination {
    bottom: 16px !important;
  }

  .hero-pagination .swiper-pagination-bullet {
    width: 22px;
    height: 3px;
  }

  .hero-pagination .swiper-pagination-bullet-active {
    width: 34px;
  }

  .hero-content {
    flex-direction: column;
    align-items: center;
    gap: 40px;
    height: auto;
  }

  .hero-book-col,
  .hero-text-col {
    width: 100%;
  }

  .hero-book-col {
    justify-content: center;
  }

  .hero-book-wrap {
    width: min(280px, 70vw);
  }

  .hero-heading {
    font-size: 40px;
    letter-spacing: -1px;
  }

  .hero-subtitle {
    font-size: 18px;
    letter-spacing: 1px;
  }

  .hero-book-title {
    font-size: 24px;
  }

  .hero-author-name {
    font-size: 18px;
  }

  .hero-badge {
    font-size: 14px;
  }

  .hero-quote {
    font-size: 18px;
  }

  .books-section-header {
    align-items: flex-start;
    min-height: auto;
    padding-bottom: 56px;
  }

  .books-section-title {
    align-items: flex-start;
    text-align: left;
  }

  /* About */
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-text-col {
    padding: 0;
    order: 2;
  }

  .about-image-col {
    order: 1;
  }

  .about-heading {
    font-size: 32px;
    line-height: 40px;
  }

  .about-desc {
    font-size: 16px;
  }

  /* News */
  .news-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .news-sidebar {
    flex-direction: column;
  }

  .btn-outline {
    max-width: 280px;
  }

  .news-title {
    font-size: 18px;
    line-height: 26px;
  }

  .news-day {
    font-size: 20px;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px 24px;
    padding: 0;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-qr-col {
    grid-column: 1 / -1;
    align-items: flex-start;
  }

  .footer-col-title-right {
    text-align: left;
  }

  .footer-bottom {
    margin-top: 16px;
    padding: 24px 0;
  }

  .footer-copyright {
    white-space: normal;
    text-align: center;
  }
}

/* ============================================================
   RESPONSIVE — Mobile Small (≤480px)
   ============================================================ */
@media (max-width: 480px) {
  :root {
    --section-pad: 48px;
  }

  .container,
  .header-inner {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero-heading {
    font-size: 32px;
  }

  .section-heading {
    font-size: 26px;
  }

  .about-heading {
    font-size: 28px;
    line-height: 36px;
  }

  .stat-number {
    font-size: 36px;
  }

  .about-stats {
    gap: 32px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .news-title {
    font-size: 16px;
    line-height: 24px;
  }

  .news-excerpt {
    font-size: 14px;
  }

  .news-item {
    gap: 16px;
  }

  .partners-track {
    gap: 48px;
    padding: 0 24px;
  }

  .partner-item {
    width: 160px;
    height: 60px;
  }
}

/* ============================================================
   SCROLL ANIMATION
   ============================================================ */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }
.fade-in-delay-4 { transition-delay: 0.4s; }
