/* 全局重置 & 基础变量（神圣美学风格：白+浅金+柔和渐变） */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
}

:root {
  /* 品牌色：神圣白+浅金+柔和渐变 */
  --white: #ffffff;
  --off-white: #f9f9f9;
  --gold-light: #f5e7d3;
  --gold: #d4b98c;
  --gold-dark: #b89c6c;
  --gray-light: #f0f0f0;
  --gray: #e0e0e0;
  --gray-dark: #999999;
  --text: #333333;
  --text-light: #666666;
  --gradient: linear-gradient(120deg, var(--white) 0%, var(--gold-light) 100%);
  --shadow: 0 4px 20px rgba(0,0,0,0.05);
  --shadow-hover: 0 8px 30px rgba(0,0,0,0.1);
  --transition: all 0.3s ease;
}

body {
  background-color: var(--off-white);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

.container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* 通用按钮样式 */
.btn {
  display: inline-block;
  padding: 1rem 2.2rem;
  border: none;
  border-radius: 0;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.9rem;
}

.btn-primary {
  background-color: var(--gold);
  color: var(--white);
}

.btn-primary:hover {
  background-color: var(--gold-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.btn-outline {
  background-color: transparent;
  border: 1px solid var(--gold);
  color: var(--gold-dark);
}

.btn-outline:hover {
  background-color: var(--gold);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.btn-sm {
  padding: 0.6rem 1.5rem;
  font-size: 0.8rem;
}

/* 标题样式（神圣美学） */
.title {
  font-weight: 300;
  letter-spacing: -0.5px;
  color: var(--text);
  position: relative;
}

.title-sm {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
}

.title-md {
  font-size: 2.5rem;
  margin-bottom: 2rem;
}

.title-lg {
  font-size: 3.2rem;
  margin-bottom: 2.5rem;
}

.title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 60px;
  height: 2px;
  background-color: var(--gold);
}

/* 头部导航 */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--white);
  z-index: 1000;
  padding: 1.5rem 0;
  box-shadow: var(--shadow);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--gold-dark);
  letter-spacing: 1px;
}

.logo span {
  color: var(--text);
}

.nav-links {
  display: flex;
  gap: 3rem;
}

.nav-links a {
  font-weight: 500;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text);
}

.nav-links a:hover, .nav-links a.active {
  color: var(--gold);
}

.nav-actions {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.language-switcher {
  cursor: pointer;
  font-size: 1.1rem;
  color: var(--text);
}

.cart-icon {
  position: relative;
  cursor: pointer;
  font-size: 1.2rem;
  color: var(--text);
}

.cart-count {
  position: absolute;
  top: -8px;
  right: -8px;
  background-color: var(--gold);
  color: var(--white);
  font-size: 0.7rem;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.menu-icon {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
}

/* 首页英雄区（神圣光感风格） */
.hero {
  height: 100vh;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('../icons/angel-symbol.svg') center/cover no-repeat;
  opacity: 0.05;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: 2rem;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-light);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.hero-title {
  font-size: 4rem;
  font-weight: 300;
  margin-bottom: 1.5rem;
  color: var(--text);
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--text-light);
  margin-bottom: 3rem;
  line-height: 1.8;
}

/* 分类区（首页） */
.categories {
  padding: 8rem 0;
  background-color: var(--white);
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-top: 4rem;
}

.category-card {
  height: 400px;
  background-color: var(--off-white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  border-radius: 0;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.category-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient);
  opacity: 0;
  transition: var(--transition);
  z-index: 0;
}

.category-card:hover::before {
  opacity: 0.1;
}

.category-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-hover);
}

.category-icon {
  font-size: 3rem;
  color: var(--gold);
  margin-bottom: 1.5rem;
  z-index: 1;
}

.category-title {
  font-size: 1.2rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  z-index: 1;
}

/* 产品列表页 */
.product-list-page {
  padding: 10rem 0 6rem;
  background-color: var(--white);
}

.product-filter {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--gray);
}

.filter-links {
  display: flex;
  gap: 2rem;
}

.filter-links a {
  font-weight: 500;
  color: var(--text-light);
}

.filter-links a.active {
  color: var(--gold);
  border-bottom: 2px solid var(--gold);
}

.sort-select {
  padding: 0.8rem 1rem;
  border: 1px solid var(--gray);
  background-color: var(--white);
  color: var(--text);
  font-weight: 500;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3rem;
}

.product-card {
  background-color: var(--off-white);
  transition: var(--transition);
  overflow: hidden;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.product-img {
  height: 300px;
  background-color: var(--gray-light);
  background-size: cover;
  background-position: center;
  margin-bottom: 1.5rem;
}

.product-info {
  padding: 0 1.5rem 2rem;
}

.product-name {
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.product-price {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--gold-dark);
  margin-bottom: 1rem;
}

/* 普通产品详情页 */
.product-detail-page {
  padding: 10rem 0 6rem;
  background-color: var(--white);
}

.product-detail-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
}

.product-detail-img {
  height: 600px;
  background-color: var(--gray-light);
  background-size: cover;
  background-position: center;
}

.product-detail-info {
  padding: 2rem 0;
}

.product-detail-badge {
  display: inline-block;
  padding: 0.5rem 1.2rem;
  background-color: var(--gold-light);
  color: var(--gold-dark);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1.5rem;
}

.product-detail-title {
  font-size: 2.8rem;
  font-weight: 300;
  margin-bottom: 1rem;
}

.product-detail-price {
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--gold-dark);
  margin-bottom: 2rem;
}

.product-detail-desc {
  line-height: 1.8;
  color: var(--text-light);
  margin-bottom: 3rem;
}

.product-detail-specs {
  margin-bottom: 3rem;
  border-top: 1px solid var(--gray);
  border-bottom: 1px solid var(--gray);
  padding: 1.5rem 0;
}

.spec-item {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.8rem;
}

.spec-label {
  color: var(--text-light);
}

.quantity-selector {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.quantity-btn {
  width: 40px;
  height: 40px;
  border: 1px solid var(--gray);
  background-color: var(--white);
  cursor: pointer;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.quantity-input {
  width: 60px;
  height: 40px;
  text-align: center;
  border: 1px solid var(--gray);
}

/* 书籍详情页（核心模块） */
.book-detail-page {
  padding: 10rem 0 6rem;
  background-color: var(--white);
}

.book-detail-container {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 6rem;
}

.book-cover {
  height: 650px;
  background-color: var(--gray-light);
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow);
}

.book-info {
  padding: 2rem 0;
}

.book-badge {
  display: inline-block;
  padding: 0.5rem 1.2rem;
  background-color: var(--gold-light);
  color: var(--gold-dark);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1.5rem;
}

.book-title {
  font-size: 2.8rem;
  font-weight: 300;
  margin-bottom: 1rem;
}

.book-author {
  font-size: 1.2rem;
  color: var(--text-light);
  font-style: italic;
  margin-bottom: 2rem;
}

.book-desc {
  line-height: 1.8;
  color: var(--text-light);
  margin-bottom: 3rem;
}

/* 书籍购买选项 */
.book-pricing {
  border-top: 1px solid var(--gray);
  border-bottom: 1px solid var(--gray);
  padding: 2rem 0;
  margin-bottom: 3rem;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 2rem;
}

.pricing-card {
  padding: 1.5rem;
  border: 1px solid var(--gray);
  transition: var(--transition);
}

.pricing-card:hover {
  border-color: var(--gold);
  background-color: var(--gold-light);
}

.pricing-type {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-light);
  margin-bottom: 0.8rem;
}

.pricing-price {
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--gold-dark);
  margin-bottom: 1rem;
}

.pricing-note {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 1.5rem;
}

/* 章节列表 */
.chapters-section {
  margin-bottom: 4rem;
}

.chapters-list {
  border-top: 1px solid var(--gray);
}

.chapter-item {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--gray);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chapter-info {
  display: flex;
  flex-direction: column;
}

.chapter-number {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 0.3rem;
}

.chapter-title {
  font-size: 1.1rem;
  font-weight: 500;
}

.chapter-actions {
  display: flex;
  gap: 1rem;
}

.chapter-free {
  color: #28a745;
  background: transparent;
  border: none;
  font-weight: 500;
  cursor: pointer;
}

.chapter-locked {
  color: #dc3545;
  background: transparent;
  border: none;
  font-weight: 500;
}

.chapter-unlock {
  padding: 0.5rem 1rem;
  border: 1px solid var(--gold);
  color: var(--gold-dark);
  background: transparent;
  cursor: pointer;
  font-size: 0.85rem;
  transition: var(--transition);
}

.chapter-unlock:hover {
  background-color: var(--gold);
  color: var(--white);
}

/* 电子书下载区 */
.ebook-download {
  padding: 2rem;
  background-color: var(--gold-light);
  margin-bottom: 4rem;
  text-align: center;
}

.download-title {
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  color: var(--gold-dark);
}

/* 期刊订阅区 */
.subscription-section {
  padding: 2rem;
  background-color: var(--off-white);
  border: 1px solid var(--gray);
}

.subscription-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}

.subscription-card {
  padding: 2rem;
  background-color: var(--white);
  border: 1px solid var(--gray);
  transition: var(--transition);
}

.subscription-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  border-color: var(--gold);
}

.subscription-type {
  font-size: 1.2rem;
  font-weight: 500;
  margin-bottom: 1rem;
}

.subscription-price {
  font-size: 2rem;
  font-weight: 600;
  color: var(--gold-dark);
  margin-bottom: 1rem;
}

.subscription-period {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 1.5rem;
}

.subscription-benefits {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 2rem;
  color: var(--text-light);
}

/* 购物车页面 */
.cart-page {
  padding: 10rem 0 6rem;
  background-color: var(--white);
}

.cart-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 4rem;
}

.cart-table th, .cart-table td {
  padding: 1.5rem;
  text-align: left;
  border-bottom: 1px solid var(--gray);
}

.cart-table th {
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.9rem;
  color: var(--text-light);
}

.cart-item-img {
  width: 80px;
  height: 80px;
  background-color: var(--gray-light);
  background-size: cover;
  background-position: center;
}

.cart-item-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.cart-total {
  max-width: 400px;
  margin-left: auto;
  border-top: 2px solid var(--gold);
  padding-top: 2rem;
}

.total-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.total-row.total {
  font-weight: 600;
  font-size: 1.3rem;
  margin-top: 1rem;
  color: var(--gold-dark);
}

.checkout-section {
  margin-top: 2rem;
}

/* 客服表单页面 */
.form-page {
  padding: 10rem 0 6rem;
  background-color: var(--white);
}

.form-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 3rem;
  background-color: var(--off-white);
  box-shadow: var(--shadow);
}

.form-title {
  text-align: center;
  margin-bottom: 3rem;
}

.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group.full-width {
  grid-column: 1 / 3;
}

.form-label {
  display: block;
  margin-bottom: 0.8rem;
  font-weight: 500;
  color: var(--text);
}

.form-input, .form-textarea {
  width: 100%;
  padding: 1rem;
  border: 1px solid var(--gray);
  background-color: var(--white);
  font-size: 1rem;
  color: var(--text);
}

.form-textarea {
  height: 200px;
  resize: none;
}

.form-submit {
  grid-column: 1 / 3;
  text-align: center;
}

/* 响应式适配（移动端优先） */
@media (max-width: 1200px) {
  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .product-detail-container, .book-detail-container {
    gap: 4rem;
  }
  
  .pricing-grid, .subscription-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 992px) {
  .nav-links {
    display: none;
  }
  
  .menu-icon {
    display: block;
  }
  
  .hero-title {
    font-size: 3rem;
  }
  
  .product-detail-container, .book-detail-container {
    grid-template-columns: 1fr;
  }
  
  .product-detail-img, .book-cover {
    max-width: 400px;
    height: 500px;
    margin: 0 auto;
  }
  
  .pricing-grid, .subscription-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 1rem;
  }
  
  .title-lg {
    font-size: 2.5rem;
  }
  
  .title-md {
    font-size: 2rem;
  }
  
  .categories-grid {
    grid-template-columns: 1fr;
  }
  
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .contact-form {
    grid-template-columns: 1fr;
  }
  
  .form-group.full-width, .form-submit {
    grid-column: 1;
  }
  
  .cart-table th, .cart-table td {
    padding: 1rem 0.5rem;
  }
  
  .cart-item-img {
    width: 60px;
    height: 60px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2.2rem;
  }
  
  .products-grid {
    grid-template-columns: 1fr;
  }
  
  .action-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }
  
  .btn {
    width: 100%;
  }
  
  .cart-table {
    font-size: 0.9rem;
  }
  
  .cart-table th:nth-child(3), .cart-table td:nth-child(3) {
    display: none;
  }
}