/* ========== Global Reset ========== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    Arial, sans-serif;
  background: #faf7f4;
  color: #111827;
  line-height: 1.5;
}

/* 全局链接样式 */
a {
  color: #7c3aed;
  text-decoration: none;
}
a:hover {
  color: #5b21b6;
}

/* Utilities */
.container {
  width: min(96vw, 960px);
  margin: 0 auto;
}

.py-12 { padding: 3rem 0; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: .75rem; }

.text-3xl { font-size: 1.9rem; letter-spacing: -.01em; }
.text-xl  { font-size: 1.25rem; }
.font-semibold { font-weight: 600; }

/* ========== Navigation ========== */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #ede9fe;
}

.nav-container {
  width: min(96vw, 960px);
  margin: 0 auto;
  padding: 0.85rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-weight: 700;
  font-size: 1.25rem;
  color: #111827;
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 24px;
}

.nav-links a {
  font-size: .95rem;
  text-decoration: none;
  color: #4b5563;
  position: relative;
  padding-bottom: 2px;
  transition: color .18s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0%;
  height: 1.5px;
  background: #111827;
  transition: width .18s ease;
}

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

/* ========== Products ========== */
#products {
  background: #faf7f4;
}

.product-card {
  border-radius: 20px;
  padding: 18px 18px 20px;
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(15, 23, 42, .06);
  border: 1px solid rgba(226, 232, 240, .9);
  margin-bottom: 20px;
}

/* 左图右文布局 */
.product-card .product-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: stretch;
}

.product-card .product-media {
  flex: 0 0 260px;   /* 左边图片大约 260px 宽 */
  max-width: 260px;
}

.product-card .product-info {
  flex: 1 1 auto;
  min-width: 260px;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* ========== Slider（自动高度 + 完整显示图片） ========== */
.slider {
  position: relative;
  width: 100%;
  max-width: 100%;
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  background: #f4f4f5;
  display: block;
}

.slides {
  display: flex;
  height: auto;
  transform: translateX(0%);
  transition: transform .6s cubic-bezier(.22,.61,.36,1);
}

/* 每张图完整显示，不裁剪 */
.slides img {
  flex: 0 0 100%;
  width: 100%;
  height: auto;
  max-height: 420px;      /* 给个上限，防止太高 */
  object-fit: contain;    /* 不裁切图片内容 */
  display: block;
  background: #f4f4f5;
}

/* Dots */
.dots {
  position: absolute;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255,255,255,.8);
  border: none;
  cursor: pointer;
}
.dot.is-active {
  background: #111827;
}

/* Product text */
.title {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 18px 0 6px;
}
.sub {
  color: #6b7280;
  margin-bottom: 10px;
}
.price {
  font-size: 1.12rem;
  font-weight: 600;
  margin-bottom: 14px;
}

/* CTA buttons */
.cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 18px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all .18s ease;
}

.btn-ghost {
  background: #ffffff;
  color: #111827;
  box-shadow: 0 0 0 1px rgba(148,163,184,.7);
}
.btn-ghost:hover {
  background: #f9fafb;
  transform: translateY(-2px);
}

.btn-solid {
  background: #111827;
  color: #f9fafb;
  box-shadow: 0 8px 18px rgba(15,23,42,.5);
}
.btn-solid:hover {
  background: #020617;
  transform: translateY(-2px);
}

/* Notes */
.notes {
  margin: 10px 0 0;
  padding-left: 20px;
  color: #6b7280;
  font-size: .9rem;
  line-height: 1.65;
}
.notes li + li {
  margin-top: 2px;
}

/* ========== About ========== */
.section-muted {
  background: #f5f3ff;
  border-top: 1px solid #e5e7eb;
  border-bottom: 1px solid #e5e7eb;
}

#about .text-3xl {
  margin-bottom: .75rem;
}

.about-text {
  max-width: 640px;
  color: #4b5563;
  line-height: 1.8;
  font-size: .98rem;
}

/* ========== Contact ========== */
#contact {
  background: #faf7f4;
}

.contact-intro {
  color: #4b5563;
  font-size: .96rem;
  max-width: 620px;
}

.contact-grid {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 24px;
  align-items: stretch;
}

.contact-card {
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid rgba(226, 232, 240, .9);
  box-shadow: 0 10px 28px rgba(15, 23, 42, .05);
  padding: 18px 18px 20px;
}

.contact-form .form-group {
  margin-bottom: 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.contact-form label {
  font-size: .88rem;
  color: #374151;
}

.contact-form input,
.contact-form textarea {
  font-family: inherit;
  font-size: .94rem;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid #d1d5db;
  outline: none;
  background: #f9fafb;
  transition:
    border-color .15s ease,
    box-shadow .15s ease,
    background .15s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  background: #ffffff;
  border-color: #6366f1;
  box-shadow: 0 0 0 1px #6366f1;
}

.contact-submit {
  margin-top: 4px;
  padding-inline: 20px;
}

.contact-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, .1);
}

/* ========== Floating IG Button ========== */
.floating-ig {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 999;
  background: #8b5cf6;
  color: #fff;
  padding: 12px 20px;
  border-radius: 999px;
  font-size: .95rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(139,92,246,.35);
  transition:
    transform .18s ease,
    box-shadow .18s ease,
    background .18s ease;
}
.floating-ig:hover {
  transform: translateY(-3px);
  background: #7c3aed;
  box-shadow: 0 12px 24px rgba(139,92,246,.45);
}

/* ========== Footer ========== */
.footer {
  text-align: center;
  padding: 20px 0 30px;
  font-size: 0.85rem;
  color: #9ca3af;
}

/* ========== Responsive ========== */
@media (max-width: 768px) {
  .nav-container {
    padding-inline: 8px;
  }
  .nav-links {
    gap: 16px;
  }
  .text-3xl {
    font-size: 1.5rem;
  }
  .product-card {
    padding: 16px 14px 18px;
  }

  .product-card .product-inner {
    flex-direction: column;
  }
  .product-card .product-media,
  .product-card .product-info {
    max-width: 100%;
    flex: 1 1 100%;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }
  .contact-visual {
    order: -1;
  }
}

@media (max-width: 480px) {
  .title {
    font-size: 1.2rem;
  }
  .sub {
    font-size: .9rem;
  }
  .price {
    font-size: 1rem;
  }
  .btn {
    width: 100%;
    justify-content: center;
  }
  .floating-ig {
    right: 14px;
    bottom: 14px;
    padding: 10px 16px;
    font-size: .85rem;
  }
}

