/* ====== 全局样式 ====== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Open Sans', sans-serif;
  background: #EAF6FF;
  color: #333;
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

ul {
  list-style: none;
}

.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 30px;
  font-weight: 600;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(135deg, #ff9a9e 0%, #fad0c4 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
}

/* ====== 页眉样式 ====== */
.site-header {
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 15px 0;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.logo {
  width: 120px;
}

.logo img {
  height: 40px;
}

.site-nav ul {
  display: flex;
  gap: 15px;
}

.site-nav a {
  font-weight: 600;
  position: relative;
  padding: 5px 0;
  color: #2d3436;
  font-size: 0.9rem;
}

.site-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #ff9a9e, #fad0c4);
  transition: width 0.3s ease;
}

.site-nav a:hover::after {
  width: 100%;
}

.btn-buy {
  background: linear-gradient(135deg, #6a67ce 0%, #5a57b8 100%);
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.9rem;
}

/* ====== 图书展示区域 ====== */
.book-hero,
.plan-hero,
.big-lie-hero {
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.book-hero {
  background: linear-gradient(135deg, #f6d365 0%, #fda085 100%);
}

.plan-hero {
  background: linear-gradient(135deg, #a1c4fd 0%, #c2e9fb 100%);
}

.big-lie-hero {
  background: linear-gradient(135deg, #d4fc79 0%, #96e6a1 100%);
}

.hero-inner {
  display: flex;
  align-items: center;
  gap: 40px;
  position: relative;
  z-index: 2;
}

.cover {
  flex: 0 0 40%;
  max-width: 300px;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
  border-radius: 8px;
  overflow: hidden;
  transform: rotate(-3deg);
  transition: transform 0.4s ease;
  z-index: 2;
}

.cover:hover {
  transform: rotate(0) scale(1.02);
}

.hero-text {
  flex: 1;
  position: relative;
  z-index: 2;
}

h1 {
  font-family: 'Dancing Script', cursive;
  font-size: 2.8rem;
  line-height: 1.1;
  margin-bottom: 20px;
  color: #2d3436;
}

.hero-text p {
  margin-bottom: 25px;
  font-size: 1.05rem;
  color: #2d3436;
  background: rgba(255, 255, 255, 0.5);
  padding: 15px;
  border-radius: 8px;
  backdrop-filter: blur(5px);
}

/* ====== 页脚样式 ====== */
.site-footer {
  background: linear-gradient(135deg, #2d3436 0%, #000000 100%);
  color: white;
  padding: 50px 0 20px;
}

.footer-cols {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  margin-bottom: 30px;
}

.footer-col {
  flex: 1;
  min-width: 180px;
}

.footer-col h4 {
  font-size: 1.1rem;
  margin-bottom: 15px;
  color: #ff6b6b;
  position: relative;
  padding-bottom: 8px;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background-color: #ff6b6b;
}

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

.footer-col a {
  display: inline-block;
  padding: 3px 0;
  font-size: 0.9rem;
}

.footer-col a:hover {
  color: #ff6b6b;
  transform: translateX(3px);
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-icons {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin: 15px 0;
}

.footer-icons img {
  width: 35px;
  height: 35px;
  filter: invert(1);
  opacity: 0.7;
  transition: all 0.3s ease;
}

.footer-icons img:hover {
  opacity: 1;
  transform: translateY(-3px);
}

.footer-links {
  margin-top: 8px;
  font-size: 0.9rem;
}

.footer-links a {
  color: #ff6b6b;
  margin: 0 4px;
}

.footer-links a:hover {
  text-decoration: underline;
}

/* ====== 移动端响应式设计 ====== */
@media (max-width: 992px) {
  .hero-inner {
    gap: 30px;
  }

  h1 {
    font-size: 2.5rem;
  }

  .cover {
    max-width: 280px;
  }
}

@media (max-width: 768px) {
  .header-inner {
    flex-direction: column;
    gap: 10px;
    padding: 10px 0;
    height: auto;
  }

  .site-nav ul {
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    margin: 10px 0;
  }

  .site-nav a {
    font-size: 0.85rem;
  }

  .hero-inner {
    flex-direction: column;
    text-align: center;
    gap: 25px;
  }

  .cover {
    margin: 0 auto;
    transform: rotate(-2deg);
    max-width: 250px;
  }

  h1 {
    font-size: 2.2rem;
  }

  .book-hero,
  .plan-hero,
  .big-lie-hero {
    padding: 60px 0;
  }

  .hero-text p {
    font-size: 1rem;
    padding: 12px;
  }

  .btn {
    padding: 10px 24px;
    font-size: 0.9rem;
  }

  .footer-cols {
    gap: 20px;
  }

  .footer-col {
    flex: 0 0 calc(50% - 10px);
  }
}

@media (max-width: 576px) {
  .site-nav ul {
    gap: 8px;
  }

  .site-nav a {
    font-size: 0.8rem;
  }

  .btn-buy {
    padding: 6px 12px;
    font-size: 0.8rem;
  }

  h1 {
    font-size: 1.9rem;
    line-height: 1.2;
  }

  .hero-text p {
    font-size: 0.95rem;
    padding: 10px;
  }

  .cover {
    max-width: 220px;
  }

  .footer-col {
    flex: 0 0 100%;
  }

  .footer-col h4 {
    font-size: 1rem;
  }

  .footer-col ul li {
    font-size: 0.9rem;
  }

  .footer-icons img {
    width: 30px;
    height: 30px;
  }
}

@media (max-width: 400px) {
  h1 {
    font-size: 1.7rem;
  }

  .hero-text p {
    font-size: 0.9rem;
  }

  .btn {
    padding: 8px 20px;
  }
}