/* ===== CSS Variables ===== */
:root {
  --cream: #F5F0E8;
  --warm-mid: #E8D5C4;
  --warm-deep: #C9A88C;
  --sage: #9BAE8D;
  --sage-dark: #7A8E6E;
  --text: #3C342E;
  --text-light: #8C8278;
  --white-warm: #FFFAF5;
  --shadow-soft: 0 4px 24px rgba(60, 52, 46, 0.06);
  --shadow-card: 0 2px 16px rgba(60, 52, 46, 0.04);
  --radius: 16px;
  --transition: 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ===== Reset ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: "PingFang SC", "Noto Sans SC", "Microsoft YaHei", -apple-system, sans-serif;
  color: var(--text);
  background: var(--cream);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

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

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 100px 0;
}

/* ===== Nav ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(245, 240, 232, 0.85);
  backdrop-filter: blur(12px);
  transition: background 0.3s;
}

.nav.scrolled {
  background: rgba(245, 240, 232, 0.95);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--text);
}

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

.nav-links a {
  font-size: 0.9rem;
  color: var(--text-light);
  letter-spacing: 0.04em;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: var(--text);
}

/* ===== Hero ===== */
.hero {
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 40%, rgba(232, 213, 196, 0.3) 0%, transparent 70%),
    radial-gradient(ellipse 60% 50% at 20% 80%, rgba(155, 174, 141, 0.15) 0%, transparent 70%),
    radial-gradient(ellipse 60% 50% at 80% 80%, rgba(201, 168, 140, 0.15) 0%, transparent 70%);
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 0 24px;
}

.hero-title {
  position: relative;
  display: inline-block;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 300;
  letter-spacing: 0.06em;
  line-height: 1.3;
  color: var(--text);
  margin-bottom: 24px;
  text-align: center;
}

.hero-weight {
  font-size: 0.618em;
  letter-spacing: 0.04em;
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--text-light);
  letter-spacing: 0.08em;
  margin-bottom: 40px;
}

.btn {
  display: inline-block;
  padding: 14px 40px;
  border: 1px solid var(--warm-deep);
  color: var(--text);
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  border-radius: 40px;
  transition: all 0.4s;
  cursor: pointer;
  background: transparent;
}

.btn:hover {
  background: var(--warm-deep);
  color: var(--white-warm);
}

/* ===== Section tags and titles ===== */
.section-tag {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  color: var(--sage-dark);
  margin-bottom: 12px;
  text-transform: uppercase;
}

.section-title {
  font-size: 2rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  margin-bottom: 48px;
  color: var(--text);
}

/* ===== About ===== */
.about {
  text-align: center;
}

.about-text {
  max-width: 640px;
  margin: 0 auto;
  font-size: 1.05rem;
  color: var(--text-light);
  line-height: 2.2;
  letter-spacing: 0.03em;
}

/* ===== Featured ===== */
.featured {
  background: var(--white-warm);
  text-align: center;
}

.featured .product-card {
  position: relative;
}

.featured-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--warm-deep);
  color: var(--white-warm);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  padding: 4px 12px;
  border-radius: 20px;
  z-index: 2;
}

/* ===== Products ===== */
.products {
  background: var(--white-warm);
  text-align: center;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.product-card {
  display: block;
  text-align: left;
  border-radius: var(--radius);
  transition: transform 0.3s, box-shadow 0.3s;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
}

.product-img {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius);
  margin-bottom: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  background: linear-gradient(135deg, #F0E8DB 0%, #E3D5C3 50%, #ECD9C8 100%);
}

.product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #F0E8DB 0%, #E3D5C3 50%, #ECD9C8 100%);
}

.product-name {
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}

.product-desc {
  font-size: 0.85rem;
  color: var(--text-light);
  line-height: 1.6;
}

.loading-text {
  grid-column: 1 / -1;
  color: var(--text-light);
  font-size: 0.95rem;
  padding: 40px 0;
}

/* ===== Store ===== */
.store {
  text-align: center;
}

.store-intro {
  font-size: 1rem;
  color: var(--text-light);
  margin-top: -24px;
  margin-bottom: 40px;
}

.store-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.store-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 24px;
  border-radius: var(--radius);
  background: var(--white-warm);
  box-shadow: var(--shadow-card);
  transition: transform 0.3s, box-shadow 0.3s;
}

.store-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
}

.store-card-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
  color: var(--sage-dark);
}

.store-card h3 {
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
  color: var(--text);
}

.store-card p {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 16px;
}

.store-arrow {
  font-size: 0.85rem;
  color: var(--warm-deep);
  letter-spacing: 0.04em;
  transition: letter-spacing 0.3s;
}

.store-card:hover .store-arrow {
  letter-spacing: 0.08em;
}

/* ===== Detail page store buttons ===== */
.detail-store {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(60, 52, 46, 0.08);
}

.detail-store-label {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 12px;
  letter-spacing: 0.04em;
}

.detail-store-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  border: 1px solid var(--warm-deep);
  color: var(--text);
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  border-radius: 40px;
  transition: all 0.4s;
  cursor: pointer;
  background: transparent;
  text-decoration: none;
}

.store-btn:hover {
  background: var(--warm-deep);
  color: var(--white-warm);
}

.store-btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* ===== Values ===== */
.values {
  text-align: center;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}

.value-item {
  text-align: center;
}

.value-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 20px;
  color: var(--sage-dark);
}

.value-item h3 {
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

.value-item p {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.8;
}

/* ===== Footer ===== */
.footer {
  background: var(--text);
  color: var(--cream);
  text-align: center;
  padding: 60px 0;
}

.footer-brand {
  font-size: 1.3rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.footer-tagline {
  font-size: 0.9rem;
  color: var(--warm-mid);
  letter-spacing: 0.06em;
  margin-bottom: 32px;
}

.footer-copy {
  font-size: 0.75rem;
  color: var(--text-light);
  letter-spacing: 0.04em;
}

/* ===== Reveal animation ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity var(--transition), transform var(--transition);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .store-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 64px 0;
  }

  .nav-links {
    gap: 16px;
  }

  .nav-links a {
    font-size: 0.8rem;
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .values-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .store-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .section-title {
    font-size: 1.6rem;
    margin-bottom: 32px;
  }

  .hero-title {
    font-size: clamp(1.6rem, 8vw, 2.4rem);
  }
}
