:root {
  --bg: #121212;
  --bg-2: #181818;
  --bg-3: #222;
  --text: rgba(255, 255, 255, 0.82);
  --text-strong: #fff;
  --muted: rgba(255, 255, 255, 0.55);
  --line: rgba(255, 255, 255, 0.08);
  --accent: #c9a66b;
  --header-h: 76px;
  --gap: 18px;
  --max: 1222px;
  --font: "Noto Sans TC", "Microsoft JhengHei", "PingFang TC", "Hiragino Sans GB", "Microsoft YaHei", Arial, Helvetica, sans-serif;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100dvh;
  line-height: 1.5;
  font-weight: 500;
  overflow-x: hidden;
  padding-bottom: var(--safe-bottom);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

button,
input {
  font: inherit;
  color: inherit;
}

.wrap {
  width: min(var(--max), calc(100% - 28px));
  margin: 0 auto;
}

.site-header {
  height: calc(var(--header-h) + var(--safe-top));
  padding-top: var(--safe-top);
  background: rgba(18, 18, 18, 0.94);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(10px);
}

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 1 auto;
  min-width: 0;
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
}

.logo-text {
  font-weight: 800;
  font-size: 20px;
  letter-spacing: 0.04em;
  color: var(--text-strong);
  line-height: 1.05;
  white-space: nowrap;
}

.logo-text small {
  display: block;
  margin-top: 3px;
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--muted);
  font-weight: 700;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  flex: 1;
}

.nav a {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-strong);
  white-space: nowrap;
  position: relative;
}

.nav a.is-current {
  color: var(--accent);
}

.nav a.is-current::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 2px;
  background: var(--accent);
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 0 0 auto;
}

.header-tools a,
.header-tools button {
  background: none;
  border: 0;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-strong);
  min-height: 40px;
  display: inline-flex;
  align-items: center;
}

.icon-search {
  width: 22px;
  height: 22px;
}

.search-pop {
  display: none;
  position: absolute;
  top: calc(var(--header-h) + var(--safe-top));
  left: 0;
  right: 0;
  background: #111;
  border-bottom: 1px solid var(--line);
  padding: 14px 0 16px;
  z-index: 30;
}

.search-pop.is-open {
  display: block;
}

.search-pop input {
  width: 100%;
  background: #2a2a2a;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 12px 14px;
  outline: none;
  font-size: 16px;
}

.hero {
  position: relative;
  min-height: min(58vh, 520px);
  display: grid;
  place-items: end stretch;
  overflow: hidden;
  background: #0a0a0a;
}

.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(18, 18, 18, 0.28) 0%, rgba(18, 18, 18, 0.55) 42%, rgba(18, 18, 18, 0.96) 100%);
}

.hero-copy {
  position: relative;
  z-index: 1;
  padding: 48px 0 40px;
}

.kicker {
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.22em;
  margin-bottom: 10px;
}

.hero-copy h1 {
  color: var(--text-strong);
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 800;
  line-height: 1.15;
}

.hero-lead {
  max-width: 560px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 15px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.btn-gold,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 10px;
  font-weight: 800;
  font-size: 14px;
}

.btn-gold {
  background: var(--accent);
  color: #1a1408;
}

.btn-ghost {
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.section-block {
  padding: 36px 0 48px;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.section-head h2 {
  color: var(--text-strong);
  font-size: 22px;
  font-weight: 800;
}

.section-head .more {
  color: var(--accent);
  font-weight: 800;
  font-size: 14px;
}

.page-title {
  background: var(--bg-2);
  padding: 28px 0 24px;
  text-align: center;
}

.page-title h1 {
  color: var(--text-strong);
  font-size: clamp(26px, 5vw, 42px);
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.crumbs {
  margin-top: 10px;
  font-size: 15px;
  font-weight: 800;
  color: var(--text);
}

.crumbs a:hover {
  color: var(--text-strong);
}

.crumbs .sep {
  display: inline-block;
  margin: 0 8px;
  opacity: 0.45;
}

.crumbs .sep::before {
  content: "/";
}

.shop-main {
  padding: 28px 0 56px;
  min-height: 42vh;
}

.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap);
}

.card {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #111;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
  border-radius: 4px;
  color: inherit;
  display: block;
}

.card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.card:hover img,
.card:focus-visible img {
  transform: scale(1.06);
}

.card-mask {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 40px 14px 12px;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.82) 72%);
}

.card h3 {
  color: var(--text-strong);
  font-size: 16px;
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.card .desc {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
  max-height: 2.7em;
  overflow: hidden;
}

.card .badge {
  display: inline-flex;
  margin-top: 8px;
  color: #1a1408;
  background: var(--accent);
  font-size: 12px;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: 999px;
}

.status {
  grid-column: 1 / -1;
  text-align: center;
  padding: 64px 16px;
  color: var(--muted);
}

.status h2 {
  color: var(--text-strong);
  font-size: 22px;
  margin-bottom: 8px;
}

.contact-page {
  padding: 28px 0 56px;
  min-height: 42vh;
}

.contact-intro {
  text-align: center;
  color: var(--muted);
  margin-bottom: 22px;
}

.contact-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.contact-card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px 18px;
}

.contact-card h3 {
  color: var(--accent);
  font-size: 13px;
  letter-spacing: 0.12em;
  margin-bottom: 8px;
}

.contact-cards .status {
  grid-column: 1 / -1;
}

.site-footer {
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  padding: 40px 0 22px;
  color: var(--text);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
}

.site-footer h4 {
  color: var(--text-strong);
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 14px;
}

.site-footer p,
.site-footer li {
  font-size: 14px;
  line-height: 1.8;
}

.site-footer ul {
  list-style: none;
}

.site-footer a:hover {
  color: var(--accent);
}

.contact-row {
  margin-bottom: 10px;
}

.contact-row span {
  display: block;
  color: var(--text-strong);
  font-weight: 800;
  font-size: 13px;
}

.copy {
  margin-top: 32px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}

.toast-host {
  position: fixed;
  top: calc(14px + var(--safe-top));
  left: 50%;
  transform: translateX(-50%);
  z-index: 80;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
  width: min(92vw, 360px);
}

.toast {
  background: #111;
  color: #fff;
  border: 1px solid rgba(201, 166, 107, 0.35);
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  text-align: center;
}

.menu-btn {
  display: none;
  background: none;
  border: 0;
  color: #fff;
  cursor: pointer;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
}

.drawer-backdrop,
.mobile-drawer {
  display: none;
}

@media (max-width: 1100px) {
  .grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .footer-grid,
  .contact-cards {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 860px) {
  :root {
    --header-h: 64px;
    --gap: 12px;
  }
  .nav,
  .login-link {
    display: none;
  }
  .menu-btn {
    display: inline-flex;
  }
  .logo-text {
    font-size: 16px;
  }
  .brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 10px;
  }
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .card h3 {
    font-size: 13px;
  }
  .card .badge {
    font-size: 11px;
  }
  .card-mask {
    padding: 28px 10px 10px;
  }
  .footer-grid,
  .contact-cards {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .hero {
    min-height: 420px;
  }
  .hero-copy {
    padding: 36px 0 28px;
  }
  .drawer-backdrop.is-open {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 45;
  }
  .mobile-drawer.is-open {
    display: block;
    position: fixed;
    top: calc(var(--header-h) + var(--safe-top));
    left: 0;
    right: 0;
    background: #141414;
    z-index: 50;
    padding: 8px 22px calc(18px + var(--safe-bottom));
    border-bottom: 1px solid var(--line);
    max-height: calc(100dvh - var(--header-h));
    overflow: auto;
  }
  .mobile-drawer a {
    display: block;
    padding: 16px 0;
    font-size: 16px;
    font-weight: 800;
    color: #fff;
    border-bottom: 1px solid var(--line);
    min-height: 48px;
  }
  .mobile-drawer a.is-current {
    color: var(--accent);
  }
}

@media (max-width: 420px) {
  .wrap {
    width: min(var(--max), calc(100% - 16px));
  }
  .logo-text small {
    display: none;
  }
  .card .desc {
    display: none;
  }
}

@media (hover: none) {
  .card:hover img {
    transform: none;
  }
}
