/* =========================================
   Little Fox 穿戴甲独立站 - 公共样式表
   版本: 1.0 | 黑白灰风格
   ========================================= */

/* ---------- 全局重置 ---------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: #FFFFFF;
  color: #1E1E1E;
  line-height: 1.4;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body.no-scroll {
  overflow: hidden;
  height: 100vh;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ---------- 顶部通知栏 ---------- */
.top-bar {
  background-color: #F5F5F5;
  color: #4A4A4A;
  text-align: center;
  padding: 10px 0;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.3px;
}
.top-bar i {
  margin-right: 6px;
}

/* ---------- 导航栏 ---------- */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  flex-wrap: wrap;
  gap: 16px;
}
.logo-area {
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo-icon {
  font-size: 1.8rem;
  color: #2C2C2C;
}
.logo-text {
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: -0.3px;
  background: linear-gradient(135deg, #2C2C2C 0%, #555555 100%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}
.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
  flex-wrap: wrap;
}
.nav-links a {
  text-decoration: none;
  font-weight: 500;
  color: #2C2C2C;
  transition: color 0.2s;
  font-size: 1rem;
}
.nav-links a:hover {
  color: #888888;
}
.cart-icon {
  position: relative;
  font-size: 1.5rem;
  color: #2C2C2C;
  cursor: pointer;
  transition: color 0.2s;
}
.cart-icon:hover {
  color: #888888;
}
.cart-badge {
  position: absolute;
  top: -8px;
  right: -12px;
  background: #333333;
  color: white;
  font-size: 0.7rem;
  font-weight: 600;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
}

/* ---------- 面包屑 ---------- */
.breadcrumb {
  margin: 20px 0 30px;
  font-size: 0.85rem;
  color: #6B6B6B;
}
.breadcrumb a {
  text-decoration: none;
  color: #4A4A4A;
}
.breadcrumb span {
  color: #6B6B6B;
}

/* ---------- Hero 区域（首页） ---------- */
.hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding: 60px 0 40px;
  gap: 40px;
}
.hero-content {
  flex: 1;
  min-width: 280px;
}
.hero-badge {
  display: inline-block;
  background: #E0E0E0;
  color: #3A3A3A;
  padding: 6px 14px;
  border-radius: 40px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 24px;
}
.hero-content h1 {
  font-size: 3.2rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -1px;
  color: #222222;
  margin-bottom: 20px;
}
.hero-content p {
  font-size: 1.1rem;
  color: #5A5A5A;
  max-width: 480px;
  margin-bottom: 32px;
  line-height: 1.5;
}
.btn-primary {
  background-color: #2C2C2C;
  border: none;
  color: white;
  padding: 14px 34px;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 40px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.btn-primary:hover {
  background-color: #555555;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}
.hero-image {
  flex: 1;
  display: flex;
  justify-content: center;
  min-width: 260px;
}
.hero-abstract {
  width: 280px;
  height: 280px;
  background: radial-gradient(circle at 30% 30%, #E8E8E8, #D0D0D0);
  border-radius: 60% 40% 50% 50% / 45% 40% 60% 55%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 25px 40px -15px rgba(0,0,0,0.1);
}
.hero-abstract i {
  font-size: 8rem;
  color: #7A7A7A;
  text-shadow: 0 10px 15px rgba(0,0,0,0.05);
}

/* ---------- 特点区域（首页） ---------- */
.features {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 32px;
  margin: 70px 0;
  background: #F9F9F9;
  padding: 48px 32px;
  border-radius: 48px;
}
.feature-card {
  flex: 1;
  text-align: center;
  min-width: 180px;
}
.feature-icon {
  font-size: 2.2rem;
  color: #3A3A3A;
  margin-bottom: 16px;
}
.feature-card h4 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: #222222;
}
.feature-card p {
  font-size: 0.9rem;
  color: #6B6B6B;
}

/* ---------- 通用产品网格 ---------- */
.section-title {
  text-align: center;
  font-size: 2.2rem;
  font-weight: 600;
  margin: 50px 0 16px;
  color: #222222;
}
.section-sub {
  text-align: center;
  color: #6B6B6B;
  margin-bottom: 48px;
  font-size: 1rem;
}
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 40px 24px;
  margin-bottom: 60px;
}
.product-card {
  background: #FFFFFF;
  border-radius: 32px;
  transition: transform 0.25s ease, box-shadow 0.25s;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 30px -12px rgba(0, 0, 0, 0.1);
}
.product-img, .nail-art-preview img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: 28px;
  background-color: #F0F0F0;
  display: block;
}
.product-info {
  padding: 0 12px 20px 12px;
}
.product-title {
  font-weight: 700;
  font-size: 1.2rem;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  margin-bottom: 6px;
  color: #1E1E1E;
}
.product-price {
  font-weight: 700;
  color: #3A3A3A;
  font-size: 1.2rem;
}
.product-desc {
  font-size: 0.8rem;
  color: #7A7A7A;
  margin: 8px 0 16px;
}
.btn-add {
  background: none;
  border: 1.5px solid #D0D0D0;
  padding: 8px 0;
  border-radius: 40px;
  width: 100%;
  font-weight: 500;
  font-size: 0.85rem;
  color: #4A4A4A;
  transition: all 0.2s;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.btn-add:hover {
  background: #2C2C2C;
  border-color: #2C2C2C;
  color: white;
}

/* ---------- 商品详情页专用 ---------- */
.product-detail {
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
  margin-bottom: 60px;
}
.product-gallery {
  flex: 1;
  min-width: 280px;
}
.main-image {
  width: 100%;
  border-radius: 32px;
  background-color: #F0F0F0;
  overflow: hidden;
}
.main-image img {
  width: 100%;
  height: auto;
  display: block;
}
.product-info-detail {
  flex: 1;
  min-width: 280px;
}
.product-info-detail h1 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: #1E1E1E;
}
.product-price-detail {
  font-size: 1.8rem;
  font-weight: 700;
  color: #3A3A3A;
  margin-bottom: 20px;
}
.product-desc-detail {
  font-size: 1rem;
  color: #5A5A5A;
  line-height: 1.5;
  margin-bottom: 24px;
  border-bottom: 1px solid #D0D0D0;
  padding-bottom: 24px;
}
.product-meta {
  margin-bottom: 28px;
}
.meta-item {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 0.9rem;
}
.meta-label {
  font-weight: 600;
  width: 100px;
  color: #3A3A3A;
}
.meta-value {
  color: #6B6B6B;
}
.quantity-selector {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}
.quantity-btn {
  width: 40px;
  height: 40px;
  border-radius: 40px;
  background: #F0F0F0;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  transition: 0.2s;
}
.quantity-btn:hover {
  background: #2C2C2C;
  color: white;
}
.quantity-input {
  width: 60px;
  text-align: center;
  font-size: 1.1rem;
  font-weight: 500;
  border: 1px solid #D0D0D0;
  border-radius: 30px;
  padding: 8px 0;
  font-family: inherit;
}
.btn-add-cart {
  background-color: #2C2C2C;
  border: none;
  color: white;
  padding: 14px 28px;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 40px;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
  width: 100%;
  justify-content: center;
}
.btn-add-cart:hover {
  background-color: #555555;
  transform: translateY(-2px);
}
.size-guide {
  background: #F9F9F9;
  border-radius: 28px;
  padding: 20px;
  margin-top: 20px;
}
.size-guide h4 {
  font-weight: 600;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #1E1E1E;
}
.size-guide p {
  font-size: 0.85rem;
  color: #6B6B6B;
  margin-bottom: 12px;
}
.size-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
}
.size-table th, .size-table td {
  padding: 8px;
  text-align: left;
  border-bottom: 1px solid #D0D0D0;
}
.size-table th {
  font-weight: 600;
  color: #3A3A3A;
}

/* ---------- 相关推荐 ---------- */
.related-title {
  font-size: 1.8rem;
  font-weight: 600;
  margin: 40px 0 24px;
  color: #1E1E1E;
  text-align: center;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 30px;
  margin-bottom: 60px;
}
.related-card {
  background: #FFFFFF;
  border-radius: 28px;
  transition: transform 0.25s ease;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}
.related-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 20px -8px rgba(0,0,0,0.1);
}
.related-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 28px;
  background-color: #F0F0F0;
}
.related-info {
  padding: 12px 12px 16px;
}
.related-info h4 {
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 4px;
  color: #1E1E1E;
}
.related-price {
  color: #3A3A3A;
  font-weight: 600;
}

/* ---------- 购物车页面 ---------- */
.cart-container {
  background: #F9F9F9;
  border-radius: 32px;
  padding: 32px;
  margin-bottom: 60px;
}
.cart-title {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 24px;
  color: #1E1E1E;
}
.cart-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid #D0D0D0;
}
.cart-item-img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 20px;
  background-color: #F0F0F0;
}
.cart-item-info {
  flex: 2;
  min-width: 150px;
}
.cart-item-name {
  font-weight: 600;
  font-size: 1.1rem;
  color: #1E1E1E;
}
.cart-item-price {
  color: #3A3A3A;
  font-weight: 600;
}
.cart-item-quantity {
  display: flex;
  align-items: center;
  gap: 12px;
}
.qty-btn {
  width: 32px;
  height: 32px;
  border-radius: 30px;
  background: white;
  border: 1px solid #D0D0D0;
  cursor: pointer;
}
.qty-btn:hover {
  background: #2C2C2C;
  color: white;
  border-color: #2C2C2C;
}
.cart-item-remove {
  color: #6B6B6B;
  cursor: pointer;
}
.cart-item-remove:hover {
  color: #2C2C2C;
}
.cart-summary {
  margin-top: 32px;
  text-align: right;
}
.cart-total {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: #1E1E1E;
}
.checkout-btn {
  background: #2C2C2C;
  border: none;
  padding: 14px 32px;
  border-radius: 40px;
  color: white;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
.checkout-btn:hover {
  background: #555555;
}
.empty-cart {
  text-align: center;
  padding: 60px 20px;
}
.btn-shop {
  display: inline-block;
  margin-top: 20px;
  background: #2C2C2C;
  padding: 12px 28px;
  border-radius: 40px;
  color: white;
  text-decoration: none;
  transition: background 0.2s;
}
.btn-shop:hover {
  background: #555555;
}

/* ---------- 筛选栏（商品列表页） ---------- */
.filter-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  margin: 30px 0 20px;
}
.filter-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.filter-btn {
  background: none;
  border: 1px solid #D0D0D0;
  padding: 6px 20px;
  border-radius: 40px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  color: #4A4A4A;
}
.filter-btn.active, .filter-btn:hover {
  background: #2C2C2C;
  border-color: #2C2C2C;
  color: white;
}

/* ---------- 分页 ---------- */
.pagination {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: 30px 0 60px;
}
.page-btn {
  background: #F0F0F0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 30px;
  cursor: pointer;
  transition: 0.2s;
  color: #3A3A3A;
}
.page-btn.active {
  background: #2C2C2C;
  color: white;
}
.page-btn.disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* ---------- 邮件订阅 ---------- */
.newsletter {
  background: #F5F5F5;
  border-radius: 48px;
  padding: 56px 32px;
  margin: 60px 0;
  text-align: center;
}
.newsletter h3 {
  font-size: 1.9rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: #222222;
}
.newsletter p {
  color: #5A5A5A;
  margin-bottom: 28px;
}
.news-form {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  max-width: 500px;
  margin: 0 auto;
}
.news-form input {
  flex: 1;
  padding: 14px 20px;
  border-radius: 60px;
  border: 1px solid #D0D0D0;
  font-size: 1rem;
  background: white;
  outline: none;
  font-family: inherit;
}
.news-form input:focus {
  outline: 1px solid #888888;
}
.news-form button {
  background: #2C2C2C;
  border: none;
  padding: 12px 28px;
  border-radius: 40px;
  color: white;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
.news-form button:hover {
  background: #555555;
}

/* ---------- 底部 ---------- */
footer {
  border-top: 1px solid #E0E0E0;
  padding: 48px 0 32px;
  margin-top: 40px;
}
.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-col {
  flex: 1;
  min-width: 160px;
}
.footer-col h4 {
  font-weight: 600;
  margin-bottom: 18px;
  font-size: 1rem;
  color: #222222;
}
.footer-col p, .footer-col a {
  display: block;
  color: #6B6B6B;
  text-decoration: none;
  margin-bottom: 12px;
  font-size: 0.85rem;
}
.footer-col a:hover {
  color: #888888;
}
.social-icons {
  display: flex;
  gap: 20px;
  margin-top: 12px;
}
.social-icons a {
  color: #7A7A7A;
  font-size: 1.3rem;
  margin-bottom: 0;
}
.copyright {
  text-align: center;
  font-size: 0.75rem;
  color: #9A9A9A;
  padding-top: 24px;
  border-top: 1px solid #E0E0E0;
}

/* ---------- 入场动画（首页专用，但无妨放在公共样式） ---------- */
.intro-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, #FAFAFA 0%, #EBEBEB 100%);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(3px);
  transition: opacity 0.8s ease;
  opacity: 1;
}
.intro-stage {
  text-align: center;
  width: 100%;
  max-width: 600px;
  perspective: 800px;
}
.gather-container {
  position: relative;
  display: inline-block;
  margin-bottom: 24px;
}
.hero-fox {
  font-size: 6rem;
  filter: drop-shadow(0 12px 20px rgba(0,0,0,0.1));
  animation: gentleBounce 0.9s cubic-bezier(0.2, 0.9, 0.4, 1.1) forwards;
  transform-origin: center;
  display: inline-block;
}
.floating-nail-item {
  position: absolute;
  width: 38px;
  height: 58px;
  background: linear-gradient(135deg, #C8C8C8, #A8A8A8);
  border-radius: 18px 18px 12px 12px;
  box-shadow: 0 10px 18px rgba(0,0,0,0.05);
  opacity: 0;
  transform: scale(0.4) rotate(0deg);
  animation: flyAndSpin 0.7s cubic-bezier(0.2, 0.8, 0.5, 1.2) forwards;
  pointer-events: none;
}
.nail-f1 { top: -60px; left: -55px; animation-delay: 0.1s; transform: rotate(-25deg); background: linear-gradient(145deg, #BEBEBE, #9E9E9E);}
.nail-f2 { top: -70px; right: -50px; animation-delay: 0.2s; transform: rotate(15deg); background: linear-gradient(145deg, #CACACA, #AAAAAA);}
.nail-f3 { bottom: -50px; left: -30px; animation-delay: 0.25s; transform: rotate(35deg); background: #B6B6B6;}
.nail-f4 { bottom: -60px; right: -35px; animation-delay: 0.15s; transform: rotate(-35deg); background: #C4C4C4;}
.nail-f5 { top: -30px; right: -85px; animation-delay: 0.3s; transform: rotate(55deg); width: 32px; height: 52px; background: #B0B0B0;}
.nail-f6 { top: 20px; left: -85px; animation-delay: 0.22s; transform: rotate(-55deg); width: 34px; height: 54px; background: #BCBCBC;}
@keyframes flyAndSpin {
  0% { opacity: 0; transform: translate(0, 0) scale(0.3) rotate(0deg); }
  40% { opacity: 0.9; }
  100% { opacity: 1; transform: translate(0, 0) scale(1) rotate(0deg); }
}
@keyframes gentleBounce {
  0% { transform: scale(0.6) translateY(20px); opacity: 0; }
  60% { transform: scale(1.08) translateY(-6px); }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}
.brand-title {
  font-size: 2.6rem;
  font-weight: 800;
  background: linear-gradient(125deg, #3A3A3A, #1A1A1A);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  margin-top: 28px;
  opacity: 0;
  animation: textRise 0.8s 0.5s forwards;
}
.brand-sub {
  font-size: 1rem;
  color: #5A5A5A;
  letter-spacing: 3px;
  font-weight: 500;
  margin-top: 8px;
  opacity: 0;
  animation: textRise 0.8s 0.7s forwards;
}
@keyframes textRise {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}
.glow-circle {
  position: absolute;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(0,0,0,0.08) 0%, rgba(0,0,0,0) 80%);
  border-radius: 50%;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: -1;
  pointer-events: none;
}
.intro-overlay.hide {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s ease, visibility 0.6s;
}

/* ---------- 响应式 ---------- */
@media (max-width: 768px) {
  .container {
    padding: 0 20px;
  }
  .product-info-detail h1 {
    font-size: 1.8rem;
  }
  .product-price-detail {
    font-size: 1.5rem;
  }
}
@media (max-width: 640px) {
  .brand-title { font-size: 1.8rem; }
  .hero-fox { font-size: 4rem; }
  .floating-nail-item { width: 28px; height: 44px; }
  .nail-f1 { top: -45px; left: -45px; }
  .nail-f2 { top: -50px; right: -40px; }
}
.logo-img {
    height: 90px;
    width: auto;
}