:root {
  --vg-green: #174c3c;
  --vg-green-dark: #0f352a;
  --vg-gold: #e8c978;
  --vg-cream: #fffdf7;
  --vg-muted: #dce8e3;
  --content-width: 1600px;
  --header-height: 72px;
  --floating-height: 64px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  margin: 0;
  padding: 0 0 var(--floating-height);
  background: var(--vg-green-dark);
  color: #222222;
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    "PingFang TC",
    "Microsoft JhengHei",
    sans-serif;
  overflow-x: hidden;
}

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

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

/* 頂部導航 */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(15, 53, 42, 0.96);
  border-bottom: 1px solid rgba(232, 201, 120, 0.28);
  backdrop-filter: blur(14px);
}

.header-inner {
  width: min(100%, var(--content-width));
  min-height: var(--header-height);
  margin: 0 auto;
  padding: 8px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
}

.brand img {
  width: auto;
  max-width: 220px;
  max-height: 54px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.desktop-nav a {
  position: relative;
  padding: 12px 0;
  color: var(--vg-cream);
  font-size: 15px;
  font-weight: 700;
}

.desktop-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 6px;
  width: 0;
  height: 2px;
  background: var(--vg-gold);
  transition: width 0.25s ease;
}

.desktop-nav a:hover::after {
  width: 100%;
}

.menu-toggle,
.mobile-menu {
  display: none;
}

/* 主要內容 */
main {
  width: 100%;
  margin: 0 auto;
}

/* 所有純圖片區塊 */
.image-section {
  width: 100%;
  margin: 0 auto;
  padding: 0;
  overflow: hidden;
  line-height: 0;
  text-align: center;
  background: var(--vg-green-dark);
}

.image-section > a,
.image-section picture {
  display: block;
  width: 100%;
  margin: 0 auto;
}

.image-section img {
  display: block;
  width: 100%;
  max-width: var(--content-width);
  height: auto;
  margin: 0 auto;
}

/* 三張 Hero 正常排列 */
.hero-section {
  width: 100%;
  margin: 0 auto;
  padding: 0;
}

.hero-section > a,
.hero-section picture {
  display: block;
  width: 100%;
  margin: 0 auto;
}

.hero-section img {
  display: block;
  width: 100%;
  max-width: var(--content-width);
  height: auto;
  margin: 0 auto;
}

/* 17 張產品圖片 */
.products-section {
  width: 100%;
  margin: 0 auto;
  padding: 0;
  background: var(--vg-green-dark);
}

.products-section .product-image {
  display: block;
  width: 100%;
  margin: 0 auto;
  padding: 0;
  line-height: 0;
}

.products-section .product-image picture {
  display: block;
  width: 100%;
  margin: 0 auto;
}

.products-section .product-image img {
  display: block;
  width: 100%;
  max-width: var(--content-width);
  height: auto;
  margin: 0 auto;
}

/* SEO 內容 */
.seo-content {
  margin: 0;
  padding: 76px 24px;
  background:
    radial-gradient(circle at 50% 0, rgba(232, 201, 120, 0.16), transparent 42%),
    linear-gradient(180deg, var(--vg-green) 0%, var(--vg-green-dark) 100%);
  color: var(--vg-cream);
}

.content-inner {
  width: min(100%, 920px);
  margin: 0 auto;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--vg-gold);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.28em;
}

.content-inner h1 {
  margin: 0 0 18px;
  color: var(--vg-cream);
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.15;
}

.content-inner p {
  max-width: 760px;
  margin: 0 auto;
  color: var(--vg-muted);
  font-size: 17px;
  line-height: 1.9;
}

.seo-actions {
  margin-top: 30px;
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.button {
  min-width: 160px;
  padding: 14px 24px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 800;
}

.button-gold {
  background: var(--vg-gold);
  color: var(--vg-green-dark);
}

.button-outline {
  border: 1px solid rgba(255, 255, 255, 0.55);
  color: var(--vg-cream);
}

/* 頁尾 */
.site-footer {
  margin: 0;
  padding: 48px 20px 110px;
  text-align: center;
  background: #0b281f;
  color: var(--vg-cream);
  border-top: 1px solid rgba(232, 201, 120, 0.16);
}

.footer-inner {
  width: min(100%, 760px);
  margin: 0 auto;
}

.footer-inner img {
  width: auto;
  max-width: 180px;
  max-height: 50px;
  margin: 0 auto 16px;
}

.footer-inner p {
  margin: 8px 0;
  color: var(--vg-muted);
}

.footer-inner .copyright {
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 13px;
}

/* 固定底部導航 */
.floating-bar {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 1200;
  width: min(100%, 820px);
  min-height: var(--floating-height);
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: rgba(11, 40, 31, 0.97);
  border: 1px solid rgba(232, 201, 120, 0.2);
  border-bottom: 0;
  border-radius: 18px 18px 0 0;
  box-shadow: 0 -10px 32px rgba(0, 0, 0, 0.24);
  overflow: hidden;
  backdrop-filter: blur(14px);
}

.floating-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: var(--floating-height);
  padding: 7px 6px;
  color: var(--vg-cream);
  font-size: 12px;
  font-weight: 800;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.floating-item:last-child {
  border-right: 0;
}

.floating-icon {
  margin-bottom: 4px;
  color: var(--vg-gold);
  font-size: 16px;
  line-height: 1;
}

.floating-primary {
  background: linear-gradient(135deg, #d7b65b, var(--vg-gold));
  color: var(--vg-green-dark);
}

.floating-primary .floating-icon {
  color: var(--vg-green-dark);
}

/* 手機版 */
@media (max-width: 768px) {
  :root {
    --header-height: 62px;
    --floating-height: 58px;
  }

  body {
    padding-bottom: var(--floating-height);
  }

  .header-inner {
    min-height: var(--header-height);
    padding: 6px 14px;
  }

  .brand img {
    max-width: 158px;
    max-height: 46px;
  }

  .desktop-nav {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 68px;
    height: 38px;
    border: 1px solid rgba(232, 201, 120, 0.42);
    border-radius: 999px;
    background: transparent;
    color: var(--vg-cream);
    font-weight: 800;
    cursor: pointer;
  }

  .mobile-menu {
    display: none;
    padding: 6px 16px 14px;
    background: rgba(15, 53, 42, 0.98);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

  .mobile-menu.is-open {
    display: grid;
  }

  .mobile-menu a {
    padding: 14px 4px;
    color: var(--vg-cream);
    font-weight: 700;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .mobile-menu a:last-child {
    border-bottom: 0;
  }

  .image-section img,
  .hero-section img,
  .products-section .product-image img {
    width: 100%;
    max-width: none;
  }

  .seo-content {
    padding: 54px 20px;
  }

  .content-inner p {
    font-size: 16px;
  }

  .seo-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .button {
    width: 100%;
  }

  .site-footer {
    padding: 40px 20px 92px;
  }

  .floating-bar {
    width: 100%;
    border-left: 0;
    border-right: 0;
    border-radius: 0;
  }
}

/* =========================================
   強制內容居中修正版
   外層全寬，內層圖片容器最大 1600px
========================================= */
.image-section,
.hero-section,
.products-section {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
}

.image-section,
.hero-section {
  display: flex !important;
  justify-content: center !important;
  align-items: flex-start !important;
}

.image-section > a,
.hero-section > a {
  display: block !important;
  flex: 0 1 var(--content-width) !important;
  width: min(100%, var(--content-width)) !important;
  max-width: var(--content-width) !important;
  margin: 0 auto !important;
}

.image-section > a > picture,
.hero-section > a > picture {
  display: block !important;
  width: 100% !important;
  max-width: var(--content-width) !important;
  margin: 0 auto !important;
}

.image-section > a > picture > img,
.hero-section > a > picture > img {
  display: block !important;
  width: 100% !important;
  max-width: var(--content-width) !important;
  height: auto !important;
  margin: 0 auto !important;
}

.products-section {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
}

.products-section > .product-image {
  display: block !important;
  flex: none !important;
  width: min(100%, var(--content-width)) !important;
  max-width: var(--content-width) !important;
  margin: 0 auto !important;
}

.products-section > .product-image picture,
.products-section > .product-image img {
  display: block !important;
  width: 100% !important;
  max-width: var(--content-width) !important;
  height: auto !important;
  margin: 0 auto !important;
}

@media (max-width: 768px) {
  .image-section > a,
  .hero-section > a,
  .products-section > .product-image {
    width: 100% !important;
    max-width: 100% !important;
  }
}



/* 產品圖片卡片邊框 */
.products-section .product-image {
  width: min(100%, 1600px);
  margin: 12px auto;
  padding: 3px;
  overflow: hidden;

  border: 1px solid rgba(232, 201, 120, 0.85);
  border-radius: 14px;

  background:
    linear-gradient(
      135deg,
      rgba(232, 201, 120, 0.95),
      rgba(92, 70, 20, 0.55),
      rgba(232, 201, 120, 0.85)
    );

  box-shadow:
    0 10px 28px rgba(0, 0, 0, 0.3),
    0 0 18px rgba(232, 201, 120, 0.12);
}

/* 圖片內層 */
.products-section .product-image picture {
  display: block;
  width: 100%;
  overflow: hidden;
  border-radius: 11px;
  background: #0b281f;
}

/* 圖片 */
.products-section .product-image img {
  display: block;
  width: 100%;
  max-width: 1600px;
  height: auto;
  margin: 0 auto;
  border-radius: 10px;

  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

/* 電腦滑過效果 */
@media (hover: hover) {
  .products-section .product-image {
    transition:
      transform 0.25s ease,
      box-shadow 0.25s ease;
  }

  .products-section .product-image:hover {
    transform: translateY(-3px);

    box-shadow:
      0 16px 36px rgba(0, 0, 0, 0.38),
      0 0 24px rgba(232, 201, 120, 0.24);
  }
}

/* 手機版 */
@media (max-width: 768px) {
  .products-section {
    padding: 8px 8px 14px;
  }

  .products-section .product-image {
    width: 100%;
    margin: 8px auto;
    padding: 2px;
    border-radius: 10px;
  }

  .products-section .product-image picture,
  .products-section .product-image img {
    border-radius: 8px;
  }
}