/* MUYO static boutique — independent-store aesthetic */
:root {
  --bg: #faf8f5;
  --bg-alt: #f3efe8;
  --surface: #ffffff;
  --ink: #1a1816;
  --muted: #5c5854;
  --accent: #8b6914;
  --accent-soft: #c4a35a;
  --line: #e8e4dc;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 18px 40px rgba(26, 24, 22, 0.08);
  --font: "DM Sans", system-ui, sans-serif;
  --font-display: "Outfit", var(--font);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
}

.container {
  width: min(1120px, 92vw);
  margin-inline: auto;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 248, 245, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.lang-switch {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  background: var(--surface);
}

.lang-switch .lang-btn {
  border: none;
  background: transparent;
  padding: 0.35rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--muted);
  font-family: inherit;
}

.lang-switch .lang-btn.is-active {
  background: var(--ink);
  color: var(--bg);
}

.lang-switch .lang-btn:not(.is-active):hover {
  color: var(--ink);
}

.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--ink);
  letter-spacing: -0.03em;
}

.logo:hover {
  text-decoration: none;
  color: var(--accent);
}

.logo-dot {
  color: var(--accent-soft);
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 1.1rem;
  font-size: 0.88rem;
  font-weight: 500;
}

.main-nav a {
  color: var(--ink);
  white-space: nowrap;
}

.main-nav a:hover {
  color: var(--accent);
  text-decoration: none;
}

/* 顶栏四系列：图标 + 文案（原底部横条图标上移） */
.nav-cat {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  color: var(--ink);
}

.nav-cat:hover {
  color: var(--accent);
  text-decoration: none;
}

.main-nav .strip-icon--nav {
  width: 26px;
  height: 26px;
}

.nav-muted {
  opacity: 0.75;
}

.nav-cta {
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg) !important;
}

.nav-cta:hover {
  background: var(--accent);
  text-decoration: none;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='%231a1816' stroke-width='2'%3E%3Cpath d='M4 7h16M4 12h16M4 17h16'/%3E%3C/svg%3E") center/22px no-repeat;
  cursor: pointer;
}

@media (max-width: 900px) {
  .nav-toggle {
    display: block;
  }

  .main-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 4vw 1.25rem;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }

  .main-nav.is-open {
    display: flex;
  }

  .main-nav a {
    padding: 0.5rem 0;
  }
}

/* Hero */
.hero {
  padding: 3rem 0 2rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: center;
}

@media (max-width: 860px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
}

.eyebrow {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  font-weight: 600;
  margin: 0 0 0.75rem;
}

.hero h1 {
  font-size: clamp(2rem, 4.5vw, 2.85rem);
  margin: 0 0 1rem;
}

.lead {
  color: var(--muted);
  max-width: 36rem;
  margin: 0 0 1.5rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.25rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.btn-primary {
  background: var(--ink);
  color: var(--bg);
}

.btn-primary:hover {
  background: var(--accent);
  text-decoration: none;
}

.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}

.btn-ghost:hover {
  border-color: var(--ink);
  text-decoration: none;
}

.btn-lg {
  padding: 0.85rem 1.5rem;
  font-size: 1rem;
}

.hero-visual {
  min-height: 280px;
}

.hero-card {
  height: 100%;
  min-height: 280px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-card-img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  display: block;
}

/* 分类图标（顶栏与旧横条共用样式类名） */
.strip-icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  background: var(--bg) center/contain no-repeat;
  border-radius: 50%;
  border: 1px solid var(--line);
}

.strip-icon[data-icon="incense"] {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48' fill='none' stroke='%231a1816' stroke-width='1.5'%3E%3Cpath d='M24 8v6M20 14h8M22 18h4v14h-4z'/%3E%3Cpath d='M18 32h12v4H18z'/%3E%3C/svg%3E");
}

.strip-icon[data-icon="mala"] {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48' fill='none' stroke='%231a1816' stroke-width='1.5'%3E%3Cellipse cx='24' cy='22' rx='14' ry='10'/%3E%3Ccircle cx='24' cy='12' r='3'/%3E%3Ccircle cx='14' cy='26' r='2.5'/%3E%3Ccircle cx='34' cy='26' r='2.5'/%3E%3C/svg%3E");
}

.strip-icon[data-icon="crystal"] {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48' fill='none' stroke='%231a1816' stroke-width='1.5'%3E%3Cpath d='M24 6l10 12-10 24L14 18z'/%3E%3Cpath d='M14 18h20'/%3E%3C/svg%3E");
}

.strip-icon[data-icon="wood"] {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48' fill='none' stroke='%231a1816' stroke-width='1.5'%3E%3Cpath d='M10 38c4-16 8-22 14-30 6 8 10 14 14 30'/%3E%3Cpath d='M24 8v30'/%3E%3C/svg%3E");
}

/* Sections */
.section {
  padding: 3.5rem 0;
}

.section-alt {
  background: var(--bg-alt);
}

.section-head {
  max-width: 640px;
  margin-bottom: 2rem;
}

.section-head h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.5rem, 3vw, 1.85rem);
}

.section-head p {
  margin: 0;
  color: var(--muted);
}

.section-head--row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  max-width: none;
}

.section-head--row > div {
  flex: 1 1 280px;
}

.section-more {
  flex-shrink: 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
  white-space: nowrap;
}

.section-more:hover {
  text-decoration: underline;
}

/* Category listing page */
.breadcrumb {
  padding: 0.85rem 0 0;
  font-size: 0.88rem;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.65rem;
}

.breadcrumb a {
  color: var(--muted);
}

.breadcrumb a:hover {
  color: var(--accent);
}

.category-hero {
  padding: 1.25rem 0 2rem;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.category-hero h1 {
  margin: 0 0 0.65rem;
  font-size: clamp(1.65rem, 3.5vw, 2.15rem);
}

.category-intro {
  margin: 0;
  max-width: 42rem;
  color: var(--muted);
  font-size: 1.02rem;
}

.listing-meta {
  margin: 1rem 0 0;
  font-size: 0.9rem;
  color: var(--ink);
}

.listing-meta .js-product-count {
  font-weight: 700;
  color: var(--accent);
}

.nav-cat.is-active {
  color: var(--accent);
}

.nav-cat.is-active .strip-icon {
  border-color: var(--accent-soft);
  background-color: rgba(196, 163, 90, 0.12);
}

.product-grid--listing {
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.listing-cta {
  text-align: center;
  padding: 2.5rem 0 3.5rem;
}

.listing-cta .container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

/* Product grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.5rem;
}

.product-card {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.25s, transform 0.25s;
}

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

.product-energy-banner {
  margin: 0;
  padding: 0.55rem 0.65rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-align: center;
  line-height: 1.45;
  color: #fff;
  background: linear-gradient(105deg, #6b4c0a 0%, #b8923c 45%, #8b6914 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.product-card figure {
  margin: 0;
  aspect-ratio: 1;
  background: var(--bg-alt);
  overflow: hidden;
}

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

.product-body {
  padding: 1.1rem 1.15rem 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.5rem;
}

.product-body h3 {
  margin: 0;
  font-size: 1.05rem;
}

.product-meta {
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.product-desc {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
  flex: 1;
}

.product-foot {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
  color: var(--muted);
}

/* Story */
.story-section {
  background: var(--surface);
  border-block: 1px solid var(--line);
}

.story-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2.5rem;
  align-items: start;
}

@media (max-width: 800px) {
  .story-grid {
    grid-template-columns: 1fr;
  }
}

.story-text h2 {
  margin-top: 0;
}

.story-lead {
  font-size: 1.1rem;
  color: var(--ink);
}

.story-points {
  padding-left: 1.2rem;
  color: var(--muted);
}

.story-aside blockquote {
  margin: 0;
  padding: 1.5rem;
  background: var(--bg);
  border-radius: var(--radius);
  border-left: 4px solid var(--accent-soft);
  font-style: italic;
  font-size: 1.05rem;
}

.cite {
  margin: 0.75rem 0 0;
  font-size: 0.85rem;
  color: var(--muted);
}

/* Quiz */
.quiz-section {
  padding: 3rem 0 4rem;
}

.quiz-card {
  background: linear-gradient(135deg, var(--surface), var(--bg-alt));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2rem 2.25rem;
  box-shadow: var(--shadow);
}

.quiz-copy h2 {
  margin-top: 0;
}

.quiz-list {
  color: var(--muted);
  margin: 1rem 0 1.5rem;
}

.hint {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 1rem;
}

.hint code {
  font-size: 0.78rem;
  background: var(--bg);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
}

/* Contact */
.contact-section {
  padding-bottom: 4rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 2.5rem;
  align-items: start;
}

@media (max-width: 720px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

.contact-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1rem 0;
}

.chip {
  padding: 0.5rem 1rem;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink);
  font-weight: 600;
  font-size: 0.88rem;
}

.chip:hover {
  border-color: var(--accent);
  text-decoration: none;
}

.qr-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
  text-align: center;
}

.qr-label {
  margin: 0 0 0.75rem;
  font-weight: 600;
  font-size: 0.9rem;
}

.qr-placeholder {
  aspect-ratio: 1;
  max-width: 200px;
  margin: 0 auto;
  border: 2px dashed var(--line);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.4;
  background: var(--bg);
}

.qr-placeholder small {
  font-size: 0.7rem;
}

.fine-print {
  font-size: 0.78rem;
  color: var(--muted);
  margin: 1rem 0 0;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 2rem 0;
  background: var(--surface);
  font-size: 0.88rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
}

.footer-inner p {
  margin: 0.25rem 0 0;
  color: var(--muted);
}

.footer-links {
  display: flex;
  gap: 1.25rem;
}

.footer-links a {
  color: var(--muted);
}

.copyright {
  width: 100%;
  text-align: center;
  margin-top: 0.5rem !important;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-size: 0.8rem;
}
