:root {
  --pink: #e070f0;
  --pink-dark: #c255d4;
  --pink-soft: #f9e6ff;
  --bg: #faf7fc;
  --surface: #ffffff;
  --text: #1f1a24;
  --muted: #6b6278;
  --border: #eadcf0;
  --header-h: 64px;
  --wrap: min(1080px, 100% - 2rem);
  --radius: 14px;
  --ease: 0.2s ease;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  font-family: "Noto Sans TC", system-ui, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

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

a:hover {
  color: var(--pink);
}

button {
  font-family: inherit;
  cursor: pointer;
}

.wrap {
  width: var(--wrap);
  margin-inline: auto;
}

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

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
  flex-shrink: 0;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
}

.nav {
  display: none;
  gap: 1.75rem;
  margin-left: auto;
}

.nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
}

.nav a:hover {
  color: var(--pink-dark);
}

.header-end {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
}

@media (min-width: 768px) {
  .nav {
    display: flex;
  }

  .header-end {
    margin-left: 0;
  }
}

.lang-dropdown {
  position: relative;
}

.lang-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  transition: border-color var(--ease), box-shadow var(--ease);
}

.lang-dropdown-trigger:hover,
.lang-dropdown.is-open .lang-dropdown-trigger {
  border-color: var(--pink);
  box-shadow: 0 4px 14px rgba(224, 112, 240, 0.12);
}

.lang-dropdown-icon {
  display: flex;
  color: var(--pink-dark);
  line-height: 0;
}

.lang-dropdown-caret {
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid var(--muted);
  transition: transform var(--ease);
}

.lang-dropdown.is-open .lang-dropdown-caret {
  transform: rotate(180deg);
}

.lang-dropdown-menu {
  position: absolute;
  top: calc(100% + 0.4rem);
  right: 0;
  min-width: 9rem;
  list-style: none;
  padding: 0.35rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(31, 26, 36, 0.12);
  z-index: 60;
}

.lang-dropdown-menu[hidden] {
  display: none;
}

.lang-dropdown-menu button {
  display: block;
  width: 100%;
  padding: 0.55rem 0.75rem;
  border: none;
  background: transparent;
  text-align: left;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text);
  border-radius: 8px;
  transition: background var(--ease), color var(--ease);
}

.lang-dropdown-menu button:hover {
  background: var(--pink-soft);
}

.lang-dropdown-menu button.is-active {
  background: var(--pink-soft);
  color: var(--pink-dark);
  font-weight: 700;
}

.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  border: none;
  background: var(--pink-soft);
  border-radius: 10px;
}

.menu-toggle span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform var(--ease), opacity var(--ease);
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (min-width: 768px) {
  .menu-toggle {
    display: none;
  }
}

@media (max-width: 767px) {
  .nav.is-open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    padding: 1rem;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
    gap: 0;
  }

  .nav.is-open a {
    padding: 0.85rem 0.5rem;
    border-bottom: 1px solid var(--border);
  }
}

/* Hero */
.hero {
  padding: 3.5rem 0 4rem;
  background: linear-gradient(160deg, var(--pink-soft) 0%, var(--bg) 55%, var(--surface) 100%);
}

.hero-inner {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 768px) {
  .hero-inner {
    grid-template-columns: 1fr auto;
    gap: 3rem;
  }
}

.eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--pink-dark);
  margin-bottom: 0.75rem;
}

.hero h1 {
  font-size: clamp(1.85rem, 5vw, 2.75rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.hero h1 span {
  display: block;
}

.text-gradient {
  background: linear-gradient(90deg, var(--pink-dark), var(--pink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 28rem;
  margin-bottom: 1.5rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.hero-note {
  font-size: 0.85rem;
  color: var(--muted);
}

.hero-logo img {
  width: min(200px, 50vw);
  margin-inline: auto;
  border-radius: 50%;
  box-shadow: 0 16px 40px rgba(224, 112, 240, 0.25);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.4rem;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 999px;
  border: 2px solid transparent;
  transition: background var(--ease), color var(--ease), border-color var(--ease);
}

.btn-primary {
  background: linear-gradient(90deg, var(--pink-dark), var(--pink));
  color: #fff;
}

.btn-primary:hover {
  filter: brightness(1.05);
  color: #fff;
}

.btn-secondary {
  background: var(--surface);
  border-color: var(--border);
  color: var(--text);
}

.btn-secondary:hover {
  border-color: var(--pink);
  color: var(--pink-dark);
}

.btn-sm {
  padding: 0.45rem 1rem;
  font-size: 0.8rem;
}

/* Blocks */
.block {
  padding: 4rem 0;
}

.block--alt {
  background: var(--surface);
}

.block-title {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.block-lead {
  color: var(--muted);
  max-width: 32rem;
  margin-bottom: 2rem;
}

.feature-row {
  display: grid;
  gap: 1rem;
}

@media (min-width: 700px) {
  .feature-row {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature {
  padding: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

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

.feature h3 {
  font-size: 1rem;
  margin-bottom: 0.4rem;
}

.feature p {
  font-size: 0.88rem;
  color: var(--muted);
}

/* Filters */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.filter-btn {
  padding: 0.45rem 1rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  transition: background var(--ease), color var(--ease), border-color var(--ease);
}

.filter-btn:hover {
  border-color: var(--pink);
  color: var(--text);
}

.filter-btn.is-active {
  background: var(--pink-dark);
  border-color: var(--pink-dark);
  color: #fff;
}

/* Product grid */
.product-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

@media (min-width: 560px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

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

.block--alt .product-card {
  background: var(--bg);
}

.product-card:hover {
  box-shadow: 0 8px 28px rgba(224, 112, 240, 0.12);
}

.product-card.is-hidden {
  display: none;
}

.product-thumb {
  position: relative;
  aspect-ratio: 2 / 1;
  background: var(--pink-soft);
  overflow: hidden;
}

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

.product-thumb--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--pink);
  font-size: 1.5rem;
  opacity: 0.5;
}

.product-badges {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  display: flex;
  gap: 0.35rem;
}

.product-badge {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}

.product-badge--free {
  background: var(--text);
  color: #fff;
}

.product-badge--featured {
  background: var(--pink);
  color: #fff;
}

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

.product-body h3 {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
}

.product-body p {
  font-size: 0.85rem;
  color: var(--muted);
  flex: 1;
}

.product-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.tag {
  font-size: 0.68rem;
  font-weight: 600;
  padding: 0.15rem 0.45rem;
  background: var(--pink-soft);
  color: var(--pink-dark);
  border-radius: 4px;
}

.product-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.35rem;
}

.product-actions .btn-secondary {
  flex: 1;
  min-width: 0;
}

/* Stores */
.store-row {
  display: grid;
  gap: 1rem;
}

@media (min-width: 560px) {
  .store-row {
    grid-template-columns: 1fr 1fr;
  }
}

.store-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  transition: border-color var(--ease), box-shadow var(--ease);
}

.store-card:hover {
  border-color: var(--pink);
  box-shadow: 0 6px 20px rgba(224, 112, 240, 0.1);
  color: var(--text);
}

.store-card--accent {
  background: linear-gradient(135deg, var(--pink-soft), var(--surface));
}

.store-card strong {
  font-size: 1.15rem;
}

.store-card span {
  font-size: 0.88rem;
  color: var(--muted);
  flex: 1;
}

.store-card em {
  font-style: normal;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--pink-dark);
}

/* Contact */
.contact-wrap {
  display: grid;
  gap: 2rem;
}

@media (min-width: 600px) {
  .contact-wrap {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

.fine-print {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.75rem;
}

.social-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.social-list a {
  display: block;
  padding: 0.75rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-weight: 600;
  color: var(--text);
}

.block--alt .social-list a {
  background: var(--bg);
}

.social-list a:hover {
  border-color: var(--pink);
  color: var(--pink-dark);
}

/* Footer */
.footer {
  padding: 2rem 0;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
}
