/* ==========================================================================
   港式燒味批發 - 主樣式
   ========================================================================== */

:root {
  --color-bg: #0a0a0a;
  --color-bg-soft: #141414;
  --color-bg-card: #1a1a1a;
  --color-gold: #c9a961;
  --color-gold-light: #e6c98a;
  --color-red: #8b0000;
  --color-red-bright: #c41e3a;
  --color-text: #f5f5f5;
  --color-text-muted: #a8a8a8;
  --color-border: rgba(201, 169, 97, 0.2);
  --font-serif: 'Noto Serif TC', 'Source Han Serif TC', serif;
  --font-sans: 'Noto Sans TC', 'Source Han Sans TC', sans-serif;
  --font-display: 'Cinzel', var(--font-serif);
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 8rem;
  --transition-fast: 0.2s ease;
  --transition-base: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  --container-max: 1280px;
  --header-height: 80px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.7;
  font-size: 16px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color var(--transition-fast); }
a:hover { color: var(--color-gold); }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul, ol { list-style: none; }

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.2;
}
h1 { font-size: clamp(2.5rem, 6vw, 5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.5rem); }
h3 { font-size: clamp(1.35rem, 3vw, 2.15rem); }
h4 { font-size: 1.25rem; }
p { margin-bottom: 1rem; color: var(--color-text-muted); }

.container {
  width: min(100% - 2rem, var(--container-max));
  margin: 0 auto;
}
.narrow-content { max-width: 920px; }
section { padding: var(--space-xl) 0; }
.compact-section { padding-top: var(--space-lg); }
.center-block { text-align: center; margin-top: 3rem; }
.text-gold { color: var(--color-gold); }
.section-link { margin-top: 2rem; }
.full-btn { width: 100%; justify-content: center; }

.page-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  background: var(--color-bg);
  transition: opacity 0.5s, visibility 0.5s;
}
.page-loader.loaded { opacity: 0; visibility: hidden; }
.loader-spinner {
  width: 56px;
  height: 56px;
  border: 2px solid var(--color-border);
  border-top-color: var(--color-gold);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  z-index: 1300;
  background: linear-gradient(90deg, var(--color-gold), var(--color-red-bright));
}
.cursor-follower {
  position: fixed;
  top: 0;
  left: 0;
  width: 28px;
  height: 28px;
  border: 1px solid var(--color-gold);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  opacity: 0.65;
  transition: width .2s, height .2s, background .2s, opacity .2s;
}
.cursor-follower.hover {
  width: 52px;
  height: 52px;
  background: rgba(201,169,97,0.12);
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 1000;
  background: rgba(10,10,10,0.45);
  border-bottom: 1px solid transparent;
  transition: background var(--transition-base), border-color var(--transition-base), height var(--transition-base);
}
.site-header.scrolled {
  background: rgba(10,10,10,0.92);
  backdrop-filter: blur(20px);
  border-bottom-color: var(--color-border);
}
.header-inner {
  height: 100%;
  width: min(100% - 2rem, 1440px);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.logo {
  font-family: var(--font-serif);
  color: var(--color-gold);
  font-weight: 900;
  font-size: 1.6rem;
}
.nav-list {
  display: flex;
  gap: 1.25rem;
  align-items: center;
}
.nav-link {
  color: var(--color-text-muted);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.5rem 0;
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--color-gold);
  transition: width var(--transition-fast);
}
.nav-link:hover,
.nav-link.active { color: var(--color-gold); }
.nav-link:hover::after,
.nav-link.active::after { width: 100%; }

.hero {
  min-height: 100vh;
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: var(--header-height) 0 0;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(10,10,10,0.48), rgba(10,10,10,0.9));
  z-index: 1;
}
.hero-image,
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: min(100% - 2rem, 1000px);
}
.hero-tagline {
  color: var(--color-gold);
  text-transform: uppercase;
  font-family: var(--font-display);
  font-size: 0.86rem;
  letter-spacing: 0.12em;
  margin-bottom: 1rem;
}
.hero-title { margin-bottom: 1.25rem; }
.hero-subtitle {
  font-size: clamp(1.05rem, 2.2vw, 1.45rem);
  color: var(--color-text);
  margin-bottom: 2rem;
}
.hero-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.page-hero {
  min-height: 55vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding-top: var(--header-height);
  overflow: hidden;
}
.page-hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(10,10,10,0.7), rgba(10,10,10,0.95)), url('/assets/images/page-hero-placeholder.svg') center/cover;
}
.page-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  padding: 0 var(--space-md);
}
.breadcrumb {
  display: inline-flex;
  gap: 0.5rem;
  align-items: center;
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin-top: 1rem;
}
.breadcrumb a:hover,
.breadcrumb-sep { color: var(--color-gold); }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.85rem 1.5rem;
  border-radius: 4px;
  font-weight: 700;
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base), background var(--transition-base);
}
.btn-primary {
  background: linear-gradient(135deg, var(--color-gold), var(--color-gold-light));
  color: var(--color-bg);
  box-shadow: 0 8px 30px rgba(201,169,97,0.28);
}
.btn-primary:hover {
  color: var(--color-bg);
  transform: translateY(-3px);
  box-shadow: 0 14px 38px rgba(201,169,97,0.42);
}
.btn-outline {
  border: 1px solid var(--color-gold);
  color: var(--color-gold);
}
.btn-outline:hover {
  background: var(--color-gold);
  color: var(--color-bg);
  transform: translateY(-3px);
}

.about { background: var(--color-bg-soft); }
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: var(--space-lg);
  align-items: center;
}
.about-image {
  border: 1px solid var(--color-border);
  border-radius: 4px;
  overflow: hidden;
  background: var(--color-bg-card);
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}
.stat-item,
.product-card,
.contact-method-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  transition: transform var(--transition-base), border-color var(--transition-base), box-shadow var(--transition-base);
}
.stat-item {
  padding: 1.25rem;
  text-align: center;
}
.stat-number {
  display: block;
  font-family: var(--font-display);
  color: var(--color-gold);
  font-size: 2rem;
  font-weight: 700;
}
.stat-label { color: var(--color-text-muted); }
.section-title {
  text-align: center;
  margin-bottom: var(--space-lg);
}
.section-title p { max-width: 720px; margin-left: auto; margin-right: auto; }

.products-grid,
.products-grid-large,
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-md);
}
.products-grid-large { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.product-card {
  position: relative;
  overflow: hidden;
}
.product-card:hover {
  border-color: var(--color-gold);
  box-shadow: 0 20px 40px rgba(0,0,0,0.5), 0 0 30px rgba(201,169,97,0.15);
}
.product-image {
  aspect-ratio: 1 / 1;
  background: #111;
  overflow: hidden;
}
.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.product-info { padding: var(--space-md); }
.product-title {
  color: var(--color-gold);
  font-size: 1.45rem;
  margin-bottom: 0.75rem;
}
.product-desc { color: var(--color-text-muted); }
.product-price { color: var(--color-gold-light); font-weight: 700; }
.product-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  margin-top: 1rem;
  border-top: 1px solid var(--color-border);
  font-size: 0.85rem;
  color: var(--color-text-muted);
}
.product-cta {
  display: inline-flex;
  margin-top: 1rem;
  color: var(--color-gold);
  font-weight: 700;
}
.product-badge {
  position: absolute;
  z-index: 5;
  top: 1rem;
  left: 1rem;
  padding: 0.35rem 0.75rem;
  border-radius: 2px;
  background: var(--color-red-bright);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
}
.product-badge.gold {
  background: linear-gradient(135deg, var(--color-gold), var(--color-gold-light));
  color: var(--color-bg);
}
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: var(--space-lg);
  padding: var(--space-sm);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  position: sticky;
  top: var(--header-height);
  z-index: 50;
  backdrop-filter: blur(20px);
  background: rgba(20,20,20,0.85);
}
.filter-btn {
  padding: 0.6rem 1.5rem;
  border: 1px solid var(--color-border);
  border-radius: 30px;
  color: var(--color-text-muted);
  font-size: 0.875rem;
  font-weight: 600;
  transition: all var(--transition-base);
}
.filter-btn:hover,
.filter-btn.active {
  background: linear-gradient(135deg, var(--color-gold), var(--color-gold-light));
  border-color: var(--color-gold);
  color: var(--color-bg);
}
.feature-card { padding: 2.5rem 2rem; text-align: center; }
.feature-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--color-bg);
  background: linear-gradient(135deg, var(--color-gold), var(--color-gold-light));
  font-family: var(--font-display);
  font-weight: 700;
}

.home-banner {
  padding: var(--space-lg) 0;
  background: var(--color-bg-soft);
}
.home-banner-frame {
  position: relative;
  overflow: hidden;
  min-height: 360px;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  background: var(--color-bg-card);
}
.home-banner-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
}
.home-banner-slide.active { opacity: 1; position: relative; }
.home-banner-slide img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  opacity: 0.45;
}
.home-banner-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: var(--space-lg);
  width: min(100%, 720px);
}

.cta-section {
  text-align: center;
  background: linear-gradient(rgba(10,10,10,0.86), rgba(10,10,10,0.86)), url('/assets/images/banner-placeholder.svg') center/cover fixed;
}
.article-cover {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  margin-bottom: var(--space-md);
  border: 1px solid var(--color-border);
}
.cms-content {
  color: var(--color-text-muted);
  font-size: 1.05rem;
}
.cms-content h2,
.cms-content h3 { color: var(--color-gold); margin: 2rem 0 1rem; }
.cms-content ul { list-style: disc; padding-left: 1.3rem; margin-bottom: 1rem; }
.cms-content ol { list-style: decimal; padding-left: 1.3rem; margin-bottom: 1rem; }

.contact-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  gap: var(--space-md);
}
.contact-form-wrap,
.info-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  padding: var(--space-md);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-sm);
}
.form-group { margin-bottom: var(--space-sm); }
.form-label {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--color-gold);
  font-weight: 600;
}
.form-input,
.form-select {
  width: 100%;
  padding: 1rem;
  background: transparent;
  border: 1px solid var(--color-border);
  color: var(--color-text);
  font-family: inherit;
  font-size: 1rem;
}
.form-input:focus,
.form-select:focus {
  outline: none;
  border-color: var(--color-gold);
  box-shadow: 0 0 0 3px rgba(201,169,97,0.1);
}
.form-textarea { min-height: 140px; resize: vertical; }
.form-error { color: #ff6b6b; font-size: 0.8rem; }
.has-error .form-input,
.has-error .form-select { border-color: #ff6b6b; }
.form-checkbox-group {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.5rem;
}
.form-checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: 4px;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 200px;
  gap: 1rem;
}
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
}
.gallery-item.wide { grid-column: span 2; }
.gallery-item.tall { grid-row: span 2; }
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item figcaption {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  color: var(--color-gold);
  font-weight: 700;
}
.map-section {
  height: 460px;
  position: relative;
  overflow: hidden;
}
.map-section iframe {
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(.7) invert(.9);
}

.site-footer {
  background: #050505;
  border-top: 1px solid var(--color-border);
  padding: var(--space-lg) 0 var(--space-md);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}
.footer-grid h4 { margin-bottom: 1rem; }
.footer-grid li { color: var(--color-text-muted); margin-bottom: 0.5rem; }
.footer-logo { font-size: 1.75rem; }
.footer-bottom {
  padding-top: var(--space-md);
  border-top: 1px solid var(--color-border);
  text-align: center;
}
.footer-keywords { font-size: 0.78rem; }

.whatsapp-float {
  position: fixed;
  right: 25px;
  bottom: 25px;
  width: 60px;
  height: 60px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  z-index: 999;
  font-weight: 900;
  box-shadow: 0 5px 20px rgba(37,211,102,0.5);
  animation: pulse-whatsapp 2.5s infinite;
}
.whatsapp-float:hover { color: #fff; transform: scale(1.08); }
.honeypot { position: absolute; left: -9999px; }
.inline-check { border: 0 !important; padding-left: 0 !important; }
.form-note { text-align: center; margin-top: 1rem; font-size: 0.82rem; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse-whatsapp {
  0%, 100% { box-shadow: 0 5px 20px rgba(37,211,102,0.5); }
  50% { box-shadow: 0 5px 30px rgba(37,211,102,0.9); }
}

@media (max-width: 1024px) {
  .nav-list { display: none; }
  .about-grid,
  .contact-main-grid,
  .footer-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .cursor-follower { display: none; }
}
@media (max-width: 600px) {
  :root { --header-height: 72px; --space-xl: 5rem; --space-lg: 3rem; --space-md: 1.25rem; }
  .hero { min-height: 92vh; }
  .hero-cta { align-items: stretch; }
  .hero-cta .btn { width: 100%; }
  .home-banner-content { padding: 1.25rem; }
  .form-row { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; grid-auto-rows: 240px; }
  .gallery-item.wide,
  .gallery-item.tall { grid-column: auto; grid-row: auto; }
  .whatsapp-float { width: 52px; height: 52px; bottom: 18px; right: 18px; font-size: 0.8rem; }
}
