/* ============================================
   全局品牌视觉风格
   主色（链接、按钮、分页）：#6B7B8D（灰蓝）
   价格色：#B8957A（暖棕）
   点缀色（页头页脚）：#c9a89b（玫瑰棕）
   背景：#f8f6f5（暖灰）
   文字：#555 / #333 / #444
   设计语言：轻盈、字距宽、层次分明
   ============================================ */

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  line-height: 1.7;
  color: #444;
  background: #f8f6f5;
}

/* ===== 导航栏 ===== */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 2.5rem;
  background: #f8f6f5;
  border-bottom: 1px solid #e8e3e1;
  position: relative;
  z-index: 1000;
}

.nav-brand a {
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: 2px;
  text-decoration: none;
  color: #333;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: #777;
  font-size: 0.9rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: color 0.2s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: #c9a89b;
  transition: width 0.3s ease;
}

.nav-links a:hover {
  color: #333;
}

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

/* 下拉菜单 */
.dropdown {
  position: relative;
  cursor: pointer;
}

.dropdown > span {
  color: #777;
  font-size: 0.9rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: color 0.2s;
}

.dropdown:hover > span {
  color: #333;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  list-style: none;
  padding: 0.6rem 0;
  min-width: 160px;
  border-radius: 4px;
  z-index: 1001;
}

.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu {
  display: block;
}

.dropdown-menu li {
  padding: 0.2rem 1.2rem;
}

.dropdown-menu li a {
  color: #666;
  text-decoration: none;
  display: block;
  font-size: 0.8rem;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  transition: color 0.2s;
}

.dropdown-menu li a:hover {
  color: #c9a89b;
}

/* ===== 主内容 ===== */
main {
  max-width: 1200px;
  margin: 2.5rem auto;
  padding: 0 2rem;
}

/* ===== 页面标题（h1）——如 Products、Bra、Orion 等，保留大写 ===== */
main h1 {
  font-size: 2rem;
  font-weight: 300;
  letter-spacing: 3px;
  color: #333;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

/* ===== 次级标题（h2，如产品详情 Details） ===== */
main h2 {
  font-size: 1.3rem;
  font-weight: 300;
  letter-spacing: 2px;
  color: #444;
  margin-top: 1.5rem;
  margin-bottom: 0.8rem;
}

/* ===== 正文段落 ===== */
main p {
  letter-spacing: 0.3px;
  line-height: 1.8;
  color: #555;
}

/* ===== 产品网格 ===== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 2rem;
  margin-top: 1.5rem;
}

.product-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.07);
}

.product-card a {
  text-decoration: none;
  color: inherit;
  display: block;
}

.product-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  display: block;
  background: #f0edeb;
}

/* 产品名称：正常大小写 + 字距 */
.product-card h3 {
  padding: 0.8rem 1rem 0.2rem;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.8px;
  color: #333;
}

/* 价格：暖棕色 */
.product-card .price {
  padding: 0 1rem;
  color: #B8957A;
  font-weight: 400;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
}

/* 分类/系列标签：大写 + 字距 */
.product-card .meta {
  padding: 0 1rem 1rem;
  font-size: 0.75rem;
  letter-spacing: 1.5px;
  color: #bbb;
  text-transform: uppercase;
}

/* ===== 产品详情页 ===== */
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  background: #fff;
  padding: 2.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

.product-detail .product-image img {
  width: 100%;
  height: auto;
  border-radius: 4px;
}

/* 详情页产品名称：正常大小写 + 字距（显式覆盖全局 uppercase） */
.product-info h1 {
  font-size: 2rem;
  font-weight: 300;
  letter-spacing: 1.5px;
  color: #333;
  margin-bottom: 0.3rem;
  text-transform: none; /* 关键：覆盖 main h1 的 uppercase */
}

/* 详情页价格：暖棕色 */
.product-info .price {
  font-size: 1.5rem;
  color: #B8957A;
  font-weight: 400;
  letter-spacing: 1px;
  margin-bottom: 1rem;
}

.product-info .description {
  color: #777;
  letter-spacing: 0.3px;
  line-height: 1.8;
  margin-bottom: 1.2rem;
}

.product-info p {
  margin-bottom: 0.4rem;
  color: #666;
  letter-spacing: 0.3px;
}

.product-info p strong {
  font-weight: 500;
  letter-spacing: 0.5px;
  color: #444;
}

/* 详情页链接：灰蓝色（与价格区分） */
.product-info a {
  color: #6B7B8D;
  text-decoration: none;
  transition: color 0.2s;
  letter-spacing: 0.5px;
}

.product-info a:hover {
  color: #4A5A6A;
  text-decoration: underline;
}

.full-description {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #f0edeb;
}

.product-detail .full-description ul {
  list-style-position: inside;
  padding-left: 0;
}

.product-detail .full-description li {
  margin-left: 0;
  color: #666;
  letter-spacing: 0.3px;
  line-height: 1.8;
}

/* ===== 分页导航 ===== */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.4rem;
  margin-top: 2.5rem;
  padding: 1rem 0;
  flex-wrap: wrap;
}

.pagination a,
.pagination span {
  display: inline-block;
  padding: 0.4rem 0.9rem;
  min-width: 2.4rem;
  text-align: center;
  border: 1px solid #e8e3e1;
  border-radius: 4px;
  text-decoration: none;
  color: #777;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.pagination a:hover {
  background: #f8f6f5;
  border-color: #6B7B8D;
  color: #333;
}

.pagination .current {
  background: #6B7B8D;
  color: #fff;
  border-color: #6B7B8D;
}

.pagination .disabled {
  color: #ddd;
  cursor: not-allowed;
  border-color: #f0edeb;
}

/* ===== 联系表单 ===== */
.contact-form {
  max-width: 600px;
  margin: 2rem auto;
  background: #fff;
  padding: 2.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

.contact-form h1 {
  text-align: center;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.3rem;
  color: #555;
  font-size: 0.85rem;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 1px solid #e8e3e1;
  border-radius: 4px;
  font-size: 1rem;
  font-family: inherit;
  background: #faf9f8;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #6B7B8D;
  box-shadow: 0 0 0 3px rgba(107,123,141,0.15);
  background: #fff;
}

.btn-submit {
  background: #6B7B8D;
  color: #fff;
  border: none;
  padding: 0.7rem 2.5rem;
  font-size: 0.85rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border-radius: 40px;
  cursor: pointer;
  transition: background 0.25s;
}

.btn-submit:hover {
  background: #4A5A6A;
}

.success-message {
  max-width: 600px;
  margin: 2rem auto;
  padding: 1rem 2rem;
  background: #f0edeb;
  border-radius: 4px;
  color: #555;
  text-align: center;
  border-left: 4px solid #6B7B8D;
}

/* ===== 欢迎页（Hero）专用样式 ===== */
.hero-page {
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: #1a1a1a;
}

.hero-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-image: url('/assets/images/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
  text-align: center;
  color: #fff;
  padding: 0 2rem;
  box-sizing: border-box;
}

/* 欢迎页品牌名：正常大小写，无强制大写 */
.hero-content h1 {
  font-size: 3.5rem;
  font-weight: 300;
  letter-spacing: 6px;
  margin-bottom: 0.5rem;
  color: #fff;
  /* 移除 text-transform: uppercase */
}

.hero-content .hero-tagline {
  font-size: 1.25rem;
  font-weight: 300;
  letter-spacing: 2px;
  line-height: 1.8;
  max-width: 700px;
  margin-bottom: 2rem;
  color: rgba(255, 255, 255, 0.85);
}

.hero-content .btn-cta {
  display: inline-block;
  padding: 0.8rem 2.8rem;
  border: 1.5px solid rgba(255, 255, 255, 0.6);
  border-radius: 40px;
  color: #fff;
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  background: transparent;
}

.hero-content .btn-cta:hover {
  background: #fff;
  color: #333;
  border-color: #fff;
}

@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2.4rem;
    letter-spacing: 3px;
  }
  .hero-content .hero-tagline {
    font-size: 1rem;
    letter-spacing: 1.5px;
  }
  .hero-content .btn-cta {
    font-size: 0.75rem;
    padding: 0.7rem 2rem;
    letter-spacing: 2px;
  }
}

/* ===== 页脚 ===== */
footer {
  text-align: center;
  padding: 2.5rem 2rem 2rem;
  margin-top: 3rem;
  background: #f8f6f5;
  border-top: 1px solid #e8e3e1;
  color: #888;
  font-size: 0.9rem;
}

footer .footer-divider {
  width: 40px;
  height: 1px;
  background: #ddd;
  margin: 0 auto 1rem;
}

footer .footer-link {
  display: inline-block;
  margin-bottom: 0.8rem;
  color: #555;
  text-decoration: none;
  font-size: 0.8rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  transition: color 0.2s;
  position: relative;
}

footer .footer-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 1px;
  background: #c9a89b;
  transition: width 0.3s ease;
}

footer .footer-link:hover {
  color: #333;
}

footer .footer-link:hover::after {
  width: 100%;
}

footer .footer-copy {
  font-size: 0.8rem;
  color: #bbb;
  letter-spacing: 1px;
  margin: 0;
}

/* ===== 响应式 ===== */
@media (max-width: 768px) {
  .product-detail {
    grid-template-columns: 1fr;
    padding: 1.5rem;
  }

  nav {
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }

  .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1.2rem;
  }

  .contact-form {
    padding: 1.5rem;
  }
}

/* ===== 响应式 - 平板及以下 ===== */
@media (max-width: 768px) {
  .product-detail {
    grid-template-columns: 1fr;
    padding: 1.5rem;
  }

  nav {
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }

  .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1.2rem;
  }

  .contact-form {
    padding: 1.5rem;
  }
}

/* ===== 响应式 - 手机（≤ 480px）新增优化 ===== */
@media (max-width: 480px) {
  /* 导航：进一步缩小字号和间距 */
  nav {
    padding: 0.8rem 1rem;
    gap: 0.3rem;
  }

  .nav-brand a {
    font-size: 1.2rem;
    letter-spacing: 1.5px;
  }

  .nav-links {
    gap: 0.6rem;
    flex-wrap: wrap;
  }

  .nav-links a,
  .dropdown > span {
    font-size: 0.75rem;
    letter-spacing: 0.6px;
  }

  /* 下拉菜单自适应 */
  .dropdown-menu {
    min-width: 120px;
    right: 0;
    left: auto;
  }

  .dropdown-menu li a {
    font-size: 0.7rem;
  }

  /* H1 标题：减小字号 */
  main h1 {
    font-size: 1.5rem;
    letter-spacing: 1.5px;
  }

  .product-info h1 {
    font-size: 1.4rem;
    letter-spacing: 1px;
  }

  /* 产品网格：单列或更紧凑的两列 */
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
  }

  .product-card h3 {
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    padding: 0.5rem 0.6rem 0.1rem;
  }

  .product-card .price {
    font-size: 0.8rem;
    padding: 0 0.6rem;
  }

  .product-card .meta {
    font-size: 0.65rem;
    letter-spacing: 1px;
    padding: 0 0.6rem 0.6rem;
  }

  /* 详情页 */
  .product-detail {
    padding: 1rem;
    gap: 1.5rem;
  }

  .product-info .price {
    font-size: 1.2rem;
  }

  /* 分页导航 */
  .pagination a,
  .pagination span {
    font-size: 0.75rem;
    padding: 0.3rem 0.6rem;
    min-width: 2rem;
  }

  /* 页脚 */
  footer {
    padding: 1.5rem 1rem 1rem;
    margin-top: 2rem;
  }

  footer .footer-link {
    font-size: 0.7rem;
    letter-spacing: 1.5px;
  }

  footer .footer-copy {
    font-size: 0.7rem;
  }

  /* 联系表单 */
  .contact-form {
    padding: 1rem;
  }

  .form-group label {
    font-size: 0.75rem;
  }

  .form-group input,
  .form-group textarea {
    font-size: 0.9rem;
    padding: 0.5rem 0.7rem;
  }

  .btn-submit {
    font-size: 0.75rem;
    padding: 0.5rem 1.8rem;
    letter-spacing: 1.2px;
  }

  /* 欢迎页 */
  .hero-content h1 {
    font-size: 2rem;
    letter-spacing: 2px;
  }

  .hero-content .hero-tagline {
    font-size: 0.9rem;
    letter-spacing: 1px;
  }

  .hero-content .btn-cta {
    font-size: 0.7rem;
    padding: 0.6rem 1.5rem;
    letter-spacing: 1.5px;
  }
}