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

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

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

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

/* ===== 头部 ===== */
.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.logo img {
  height: 40px;
}

nav ul {
  display: flex;
  gap: 30px;
  list-style: none;
}

nav ul li a {
  font-weight: 600;
  color: #000;
}

nav ul li a.active,
nav ul li a:hover {
  color: #007ACC;
}

.btn-buy {
  padding: 8px 16px;
  border: 1px solid #007ACC;
  border-radius: 20px;
  color: #007ACC;
}

/* ===== Testimonials 区 ===== */
.testimonials {
  padding: 10px 20px;
  background: #F9FCFF;
}

.testimonials h2 {
  font-family: 'Dancing Script', cursive;
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 60px;
}

.testimonials-container {
  display: flex;
  justify-content: center;
  gap: 60px;
  flex-wrap: wrap;
}

/* 单张证言卡 */
.testimonial-card {
  width: 330px;
  text-align: center;
}

/* 吊挂木框背景 */
.testimonial-text {
  background: url('images/frame-hanging.png') no-repeat center top;
  background-size: 350px 450px;
  padding: 170px 70px 70px;
  min-height: 400px;
  font-size: 0.8rem;
  color: #333;
  margin-bottom: 30px;
}

/* 作者信息行 */
.testimonial-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
}

/* Sparkella 卡通 */
.character {
  width: 60px;
}

/* 用户头像 */
.avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
}

/* 名称 + 星星 */
.meta-info {
  text-align: left;
}

.user-name {
  display: block;
  font-family: 'Dancing Script', cursive;
  font-size: 1.2rem;
  margin-bottom: 4px;
}

.stars {
  display: flex;
  gap: 0.05px;
}

.stars img {
  width: 30px;
  height: 30px;
}

/* 响应式 */
@media (max-width: 768px) {
  .testimonials-container {
    flex-direction: column;
    align-items: center;
  }
}

/* ===== 页脚 ===== */
.site-footer {
  background: #A3D0F2;
  padding-top: 40px;
  color: #000;
}

.footer-cols {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 30px;
}

.footer-col h4 {
  font-family: 'Dancing Script', cursive;
  font-size: 1.4rem;
  margin-bottom: 15px;
}

.footer-col ul {
  list-style: none;
}

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

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

.footer-bottom {
  text-align: center;
  padding: 20px 0;
  border-top: 1px solid #ddd;
}

.footer-bottom p {
  margin: 5px 0;
  font-size: 0.9rem;
}

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

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

.footer-links a {
  font-size: 0.9rem;
}

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

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

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

/* ====== 容器 ====== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 25px 0;
}

.logo img {
  height: 40px;
}

nav ul {
  display: flex;
  gap: 30px;
}

nav ul li a {
  font-weight: 600;
  color: #333;
  transition: color .2s;
}

nav ul li a:hover {
  color: #007ACC;
}

.btn-buy {
  display: inline-block;
  padding: 8px 16px;
  background: #007ACC;
  color: #fff;
  border-radius: 20px;
  font-weight: 600;
}

/* ====== Hero 区 ====== */
.hero {
  text-align: center;
  padding: 100px 20px 60px;
}

.hero h1 {
  font-family: 'Dancing Script', cursive;
  font-size: 3rem;
  margin-bottom: 40px;
  color: #333;
}

.books {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-bottom: 40px;
}

.books img {
  width: 180px;
  transition: transform .3s;
}

.books img:nth-child(1) {
  transform: rotate(-8deg);
}

.books img:nth-child(2) {
  transform: rotate(4deg) translateY(-10px);
}

.books img:nth-child(3) {
  transform: rotate(6deg);
}

.books img:hover {
  transform: scale(1.05);
}

.btn-explore {
  display: inline-block;
  padding: 12px 28px;
  background: #3898EC;
  color: #fff;
  border-radius: 25px;
  font-size: 1rem;
  font-weight: 600;
  transition: background .2s;
}

.btn-explore:hover {
  background: #2E7DC1;
}

/* ====== 响应式 ====== */
@media (max-width: 768px) {
  .books {
    flex-direction: column;
    gap: 20px;
    align-items: center;
  }

  .books img {
    width: 140px;
    transform: none !important;
  }
}

/* ====== Grow 区 ====== */
.grow {
  background: #EAF6FF;
  padding: 80px 20px;
}

.grow-container {
  display: flex;
  align-items: center;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.grow-image img {
  width: 100%;
  max-width: 450px;
  border-radius: 30px;
  display: block;
}

.grow-text {
  flex: 10;
}

.grow-text h2 {
  font-family: 'Dancing Script', cursive;
  font-size: 2.5rem;
  line-height: 1.2;
  color: #333;
  margin-bottom: 20px;
}

.grow-text .btn-explore {
  /* 重用之前 btn-explore 样式即可，无需额外修改 */
}

/* —— 响应式 —— */
@media (max-width: 768px) {
  .grow-container {
    flex-direction: column;
    text-align: center;
  }

  .grow-image img {
    max-width: 300px;
    margin-bottom: 30px;
  }

  .grow-text h2 {
    font-size: 2rem;
  }
}

/* ====== About Author 区 ====== */
.about-author {
  padding: 80px 20px;
  background: #fff;
}

.about-author h2 {
  text-align: center;
  font-family: 'Dancing Script', cursive;
  font-size: 2.5rem;
  margin-bottom: 60px;
}

/* 作者行布局 */
.author-row {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-bottom: 80px;
}

/* 反转左右 */
.author-row.reverse {
  flex-direction: row-reverse;
}

/* 头像部分 */
.author-photo {
  flex: 0 0 300px;
  text-align: center;
}

.author-photo img {
  width: 100%;
  max-width: 300px;
  border-radius: 50%;
  display: block;
}

/* Kim 专用装饰画框 */
.photo-frame {
  position: relative;
  display: inline-block;
}

.photo-frame img {
  border-radius: 50%;
  z-index: 1;
}

.photo-frame::before {
  content: '';
  position: absolute;
  top: -20px;
  left: -20px;
  right: -20px;
  bottom: -20px;
  background: url('images/deco-frame.png') no-repeat center/contain;
  z-index: 0;
}

.author-name {
  font-family: 'Dancing Script', cursive;
  font-size: 1.5rem;
  margin-top: 20px;
}

/* 文本信息部分 */
.author-info {
  flex: 1;
  position: relative;
  font-family: 'Open Sans', sans-serif;
  font-size: 1rem;
  line-height: 1.6;
}

.author-info p {
  margin: 0;
}

/* 装饰图：彩旗+迪斯科球 */
.author-info .deco-top {
  position: absolute;
  top: -40px;
  right: 0;
  width: 120px;
}

/* 装饰图：星星杯 */
.author-info .deco-bottom {
  position: absolute;
  bottom: -20px;
  right: 20px;
  width: 80px;
}

/* —— 响应式 —— */
@media (max-width: 768px) {

  .author-row,
  .author-row.reverse {
    flex-direction: column;
    text-align: center;
  }

  .author-photo,
  .author-info {
    width: 100%;
  }

  .author-info .deco-top,
  .author-info .deco-bottom {
    display: none;
  }
}

/* ===== Sign‑up 区 ===== */
.signup {
  background: #A3D0F2;
  padding: 80px 20px;
}

.signup-container {
  display: flex;
  gap: 50px;
  max-width: 1200px;
  margin: 0 auto;
}

/* 左侧 */
.signup-left {
  position: relative;
  flex: 1;
  text-align: center;
}

.btn-go {
  position: absolute;
  top: 0;
  left: 0;
  background: #3A7BBF;
  color: #fff;
  padding: 8px 20px;
  border-radius: 20px;
}

.books-img {
  max-width: 300px;
  width: 100%;
  display: block;
  margin: 40px auto 20px;
}

.signup-text {
  font-family: 'Dancing Script', cursive;
  font-size: 1.5rem;
  line-height: 1.4;
  color: #000;
}

/* 右侧表单 */
.signup-form {
  flex: 1;
}

.signup-form h2 {
  font-family: 'Dancing Script', cursive;
  font-size: 2.5rem;
  margin-bottom: 30px;
}

.form-group {
  position: relative;
  margin-bottom: 20px;
}

.form-group .icon {
  position: absolute;
  top: 50%;
  left: 12px;
  transform: translateY(-50%);
  width: 20px;
}

.form-group input {
  width: 100%;
  padding: 12px 12px 12px 44px;
  border: none;
  border-radius: 20px;
  font-family: 'Open Sans', sans-serif;
  font-size: 1rem;
}

/* 电话与邮箱并排 */
.phone-email {
  display: flex;
  gap: 20px;
}

.phone-email .form-group {
  flex: 1;
}

/* 复选框 */
.checkbox-group {
  display: flex;
  align-items: center;
  margin-top: 10px;
}

.checkbox-group input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-right: 8px;
}

/* 响应式 */
@media (max-width: 768px) {
  .signup-container {
    flex-direction: column;
    text-align: center;
  }

  .phone-email {
    flex-direction: column;
  }
}

/* ===== 页脚 ===== */
.site-footer {
  background: #A3D0F2;
  color: #000;
  font-family: 'Open Sans', sans-serif;
}

.footer-cols {
  display: flex;
  justify-content: space-between;
  max-width: 1200px;
  margin: 60px auto 30px;
  gap: 20px;
}

.footer-col h4 {
  font-family: 'Dancing Script', cursive;
  font-size: 1.4rem;
  margin-bottom: 15px;
}

.footer-col ul {
  list-style: none;
}

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

.footer-col ul li a {
  color: inherit;
  text-decoration: none;
  font-size: 0.95rem;
}

/* 底部版权 & 图标 */
.footer-bottom {
  text-align: center;
  padding: 20px 0;
  border-top: 1px solid #ddd;
}

.footer-bottom p {
  margin: 5px 0;
  font-size: 0.9rem;
}

.footer-icons {
  margin: 10px 0;
}

.footer-icons img {
  width: 30px;
  margin: 0 8px;
}

.footer-links a {
  color: inherit;
  text-decoration: none;
  font-size: 0.9rem;
}

/* —— 全局 & 容器 —— */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Open Sans', sans-serif;
  background: #fff;
  color: #333;
}

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

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

/* —— 头部 —— */
/* 可复用之前的 header 样式 */

/* —— 产品详情 主体 —— */
.product-detail {
  padding: 60px 0;
}

.detail-container {
  display: flex;
  flex-direction: column;
  gap: 60px;
}

/* 上半：封面 + 信息 */
.product-overview {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

.cover img {
  width: 300px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.info h1 {
  font-family: 'Dancing Script', cursive;
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.byline {
  font-size: 1rem;
  color: #666;
  margin-bottom: 15px;
}

/* 评分 */
.rating {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.rating .stars {
  display: flex;
  gap: 4px;
}

.rating .stars img {
  width: 20px;
  height: 20px;
}

.rating-value {
  margin-left: 8px;
  font-weight: 600;
}

/* 价格 & 运输 */
.price-shipping {
  display: flex;
  gap: 30px;
  align-items: center;
  margin-bottom: 25px;
}

.price .label {
  font-weight: 600;
}

.price .amount {
  margin-left: 8px;
  font-size: 1.2rem;
  color: #007ACC;
}

.ship,
.ship-date {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.95rem;
}

.ship-date span {
  color: #2E7D32;
  font-weight: 600;
}

/* 加入购物车按钮 */
.btn-add-cart {
  padding: 12px 32px;
  background: #3898EC;
  color: #fff;
  border: none;
  border-radius: 25px;
  font-size: 1rem;
  cursor: pointer;
}

/* 下半：Overview & Details */
.product-details {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

/* Overview 样式 */
.overview h2 {
  font-family: 'Dancing Script', cursive;
  font-size: 1.8rem;
  border-bottom: 2px solid #ccc;
  display: inline-block;
  margin-bottom: 15px;
}

.overview p {
  text-indent: 2em;
  line-height: 1.6;
}

/* Details 样式 */
.details {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

.details h2 {
  font-family: 'Dancing Script', cursive;
  font-size: 1.8rem;
  border-bottom: 2px solid #ccc;
  display: inline-block;
  margin-bottom: 15px;
}

.detail-list {
  list-style: none;
}

.detail-list li {
  margin-bottom: 8px;
  font-size: 0.95rem;
  line-height: 1.4;
}

.details-illustration {
  text-align: center;
  flex: 1;
}

.details-illustration img {
  max-width: 200px;
  display: block;
  margin-bottom: 10px;
}

.back-link {
  font-size: 0.9rem;
  color: #007ACC;
}

/* —— 响应式 —— */
@media (max-width: 768px) {
  .product-overview {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .price-shipping {
    flex-direction: column;
    gap: 10px;
  }

  .details {
    flex-direction: column;
    text-align: center;
  }

  /* ===== 页脚 ===== */
  .site-footer {
    background: #A3D0F2;
    color: #000;
    font-family: 'Open Sans', sans-serif;
  }

  .footer-cols {
    display: flex;
    justify-content: space-between;
    max-width: 1200px;
    margin: 60px auto 30px;
    gap: 20px;
  }

  .footer-col h4 {
    font-family: 'Dancing Script', cursive;
    font-size: 1.4rem;
    margin-bottom: 15px;
  }

  .footer-col ul {
    list-style: none;
  }

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

  .footer-col ul li a {
    color: inherit;
    text-decoration: none;
    font-size: 0.95rem;
  }

  /* 底部版权 & 图标 */
  .footer-bottom {
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid #ddd;
  }

  .footer-bottom p {
    margin: 5px 0;
    font-size: 0.9rem;
  }

  .footer-icons {
    margin: 10px 0;
  }

  .footer-icons img {
    width: 30px;
    margin: 0 8px;
  }

  .footer-links a {
    color: inherit;
    text-decoration: none;
    font-size: 0.9rem;
  }

  .btn-explore {
    display: inline-block;
    padding: 12px 28px;
    background: #3898EC;
    color: #fff;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    transition: background .2s;
  }

  .btn-explore:hover {
    background: #2E7DC1;
  }
}

@media (max-width: 768px) {

  /* 头部导航优化 */
  header .container {
    flex-direction: column;
    gap: 15px;
    padding: 15px 0;
  }

  nav ul {
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
  }

  .btn-buy {
    margin-top: 10px;
  }

  /* Hero区域优化 */
  .hero {
    padding: 120px 20px 40px;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .books {
    flex-direction: column;
    gap: 20px;
  }

  .books img {
    width: 65%;
    max-width: 220px;
    transform: none !important;
  }

  /* Grow区域优化 */
  .grow-container {
    flex-direction: column;
    text-align: center;
    gap: 30px;
  }

  .grow-image img {
    max-width: 100%;
  }

  .grow-text h2 {
    font-size: 2rem;
  }

  /* 作者区域优化 */
  .author-row,
  .author-row.reverse {
    flex-direction: column;
    text-align: center;
    gap: 30px;
    margin-bottom: 60px;
  }

  .author-photo {
    flex: 0 0 auto;
  }

  .author-info .deco-top,
  .author-info .deco-bottom {
    display: none;
  }

  /* 注册区域优化 */
  .signup-container {
    flex-direction: column;
    text-align: center;
    gap: 30px;
  }

  .signup-text {
    font-size: 1.3rem;
  }

  .phone-email {
    flex-direction: column;
    gap: 0;
  }

  /* 页脚优化 */
  .footer-cols {
    flex-direction: column;
    gap: 30px;
    text-align: center;
  }

  .footer-col h4::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .footer-icons {
    gap: 15px;
    justify-content: center;
  }

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

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

@media (max-width: 480px) {

  /* 超小屏幕额外优化 */
  .hero h1 {
    font-size: 1.8rem;
  }

  .books img {
    width: 80%;
  }

  .btn-explore,
  .btn-buy {
    padding: 10px 20px;
    font-size: 0.9rem;
  }

  .author-info {
    padding: 20px;
  }

  .signup-form {
    padding: 25px;
  }

  .signup-text {
    font-size: 1.1rem;
  }

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

.form-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
}