/* ===================================
   臺中跨境電商媒合平台 - 主要樣式
   =================================== */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@300;400;500;700&display=swap');

:root {
  --primary: #0A2463;
  --primary-dark: #061A47;
  --primary-light: #1E3A8A;
  --accent: #00B4D8;
  --accent-light: #38BDF8;
  --green: #0369A1;
  --bg: #FFFFFF;
  --bg-soft: #F0F4FF;
  --bg-grey: #F5F7FA;
  --text: #1A1A2E;
  --text-mid: #4A5568;
  --text-light: #718096;
  --border: #E2E8F0;
  --shadow-sm: 0 2px 8px rgba(10, 36, 99, 0.08);
  --shadow: 0 4px 20px rgba(10, 36, 99, 0.12);
  --shadow-lg: 0 8px 40px rgba(10, 36, 99, 0.18);
  --radius: 8px;
  --transition: all 0.25s ease;
  --font-serif: 'Noto Sans TC', sans-serif;
  --font: 'Noto Sans TC', sans-serif;
  --nav-height: 80px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  overflow-x: hidden;
}

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

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

ul {
  list-style: none;
}

/* ===================================
   TOP BAR（科技藍細條）
   =================================== */
.site-topbar {
  height: 4px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 60%, var(--accent-light) 100%);
}

/* ===================================
   NAVBAR
   =================================== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: white;
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  height: var(--nav-height);
}

.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 24px;
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  text-decoration: none;
}

.nav-logo img {
  height: 60px;
  width: auto;
}

.nav-logo-text {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary);
  white-space: nowrap;
}

/* Center links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  justify-content: center;
}

.nav-link {
  padding: 8px 14px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-mid);
  border-radius: 6px;
  white-space: nowrap;
  cursor: pointer;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.nav-link:hover {
  color: var(--primary);
  background: #EEF2FF;
}

.nav-link.active {
  color: var(--primary);
  font-weight: 700;
}

/* Dropdown */
.nav-dropdown-wrap {
  position: relative;
}

.nav-dropdown-wrap:hover .nav-dropdown,
.nav-dropdown-wrap.open .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  min-width: 180px;
  padding: 6px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  z-index: 200;
}

.nav-dropdown a {
  display: block;
  padding: 9px 14px;
  font-size: 0.88rem;
  color: var(--text-mid);
  border-radius: 5px;
  white-space: nowrap;
}

.nav-dropdown a:hover {
  background: #EEF2FF;
  color: var(--primary);
  padding-left: 18px;
}

.nav-dropdown-arrow {
  font-size: 0.6rem;
  transition: transform 0.2s;
  margin-left: 2px;
}

.nav-dropdown-wrap:hover .nav-dropdown-arrow {
  transform: rotate(180deg);
}

/* Right social icons */
.nav-social {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* 頁首社群 icon — 與頁尾完全一致 */
.nav-social-btn {
  width: 40px;
  min-width: 40px;
  max-width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid #CCCCCC;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: var(--text-mid);
  font-family: var(--font);
  text-decoration: none;
  overflow: hidden;
  transition: var(--transition);
  flex-shrink: 0;
  line-height: 1;
  padding: 0 !important;
  text-align: center;
  text-indent: 0;
}

/* LINE 文字按鈕 */
.nav-social-line {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.nav-social-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
}

/* Mobile hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  margin-left: auto;
}

.nav-hamburger span {
  width: 22px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: var(--transition);
}

/* Mobile nav drawer */
.mobile-nav {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  background: white;
  border-bottom: 2px solid var(--border);
  padding: 12px 20px 16px;
  z-index: 999;
  box-shadow: var(--shadow);
  max-height: calc(100vh - var(--nav-height));
  overflow-y: auto;
}

.mobile-nav.open {
  display: block;
}

.mobile-nav a {
  display: block;
  padding: 12px 14px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-mid);
  border-bottom: 1px solid #F0F0F0;
}

.mobile-nav a:last-child {
  border-bottom: none;
}

.mobile-nav a:hover {
  color: var(--primary);
}

.mobile-nav-group {
  padding: 12px 14px;
  border-bottom: 1px solid #F0F0F0;
}

.mobile-nav-group-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-mid);
  margin-bottom: 6px;
}

.mobile-nav-sub {
  padding-left: 16px;
}

.mobile-nav-sub a {
  padding: 8px 10px;
  font-size: 0.88rem;
  border-bottom: none;
}

.mobile-social {
  display: flex;
  gap: 10px;
  padding: 14px;
  border-top: 1px solid #F0F0F0;
  margin-top: 4px;
}

/* ===================================
   BREADCRUMB
   =================================== */
.page-hero {
  background: #f8fafc;
  background-image: 
    radial-gradient(#e2e8f0 1.5px, transparent 1.5px),
    linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  background-size: 40px 40px, 100% 100%;
  position: relative;
  padding: 80px 0;
  text-align: left; /* Left alignment for modern look */
  overflow: hidden;
  border-bottom: 1px solid #e2e8f0;
}

/* Background Watermark */
.page-hero::before {
  content: "NEW STARTUP";
  position: absolute;
  top: 50%;
  right: -5%;
  transform: translateY(-50%);
  font-size: 12rem;
  font-weight: 900;
  color: rgba(10, 36, 99, 0.04);
  white-space: nowrap;
  pointer-events: none;
  z-index: 1;
  font-family: var(--font-sans);
}

.page-hero-inner {
  position: relative;
  z-index: 5;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}

.page-hero-title-wrap {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 12px;
}

/* Bold vertical accent bar */
.page-hero-accent {
  width: 6px;
  height: 48px;
  background: var(--primary);
  border-radius: 10px;
  flex-shrink: 0;
}

.page-hero-title {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--primary-dark);
  margin: 0;
  letter-spacing: -0.02em;
}

.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: flex-start; /* Left aligned */
  gap: 8px;
  font-size: 0.9rem;
  color: var(--text-light);
  padding-left: 30px; /* Aligned with title text after the 6px bar + gap */
}

.breadcrumb a {
  color: var(--text-light);
  transition: var(--transition);
}

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

.breadcrumb span {
  color: var(--text-dark);
  font-weight: 500;
}

.breadcrumb i {
  font-size: 0.7rem;
  opacity: 0.5;
}

/* ===================================
   HERO CAROUSEL
   =================================== */
.hero-carousel {
  position: relative;
  height: calc(100vh - var(--nav-height));
  min-height: 520px;
  max-height: 800px;
  overflow: hidden;
  background: #111;
}

.carousel-slides {
  display: flex;
  height: 100%;
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.carousel-slide {
  min-width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.carousel-slide-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 8s ease;
}

.carousel-slide.active .carousel-slide-bg {
  transform: scale(1.06);
}

.carousel-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(6, 26, 71, 0.82) 0%, rgba(10, 36, 99, 0.6) 50%, rgba(0, 20, 60, 0.35) 100%);
}

.carousel-content {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 48px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.carousel-badge {
  display: inline-block;
  padding: 5px 14px;
  background: rgba(0, 180, 216, 0.25);
  border: 1px solid rgba(0, 180, 216, 0.5);
  border-radius: 20px;
  color: var(--accent-light);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  margin-bottom: 20px;
  width: fit-content;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease 0.1s;
}

.carousel-title {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 4.5vw, 3.2rem);
  font-weight: 700;
  color: white;
  line-height: 1.3;
  max-width: 680px;
  margin-bottom: 16px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease 0.25s;
}

.carousel-subtitle {
  font-size: clamp(0.9rem, 1.8vw, 1rem);
  color: rgba(255, 255, 255, 0.82);
  max-width: 540px;
  line-height: 1.8;
  margin-bottom: 32px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease 0.4s;
}

.carousel-btns {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease 0.55s;
}

.carousel-slide.active .carousel-badge,
.carousel-slide.active .carousel-title,
.carousel-slide.active .carousel-subtitle,
.carousel-slide.active .carousel-btns {
  opacity: 1;
  transform: translateY(0);
}

.btn-red {
  padding: 13px 32px;
  background: linear-gradient(135deg, var(--accent) 0%, #0077B6 100%);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 0.98rem;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(0, 180, 216, 0.35);
  letter-spacing: 0.03em;
}

.btn-red:hover {
  background: linear-gradient(135deg, var(--accent-light) 0%, var(--accent) 100%);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 180, 216, 0.5);
  filter: brightness(1.08);
}

.btn-red:active {
  transform: translateY(-1px);
}

.btn-ghost {
  padding: 13px 32px;
  background: rgba(255, 255, 255, 0.05);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-radius: 8px;
  font-size: 0.98rem;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: var(--transition);
  backdrop-filter: blur(4px);
}

.btn-ghost:hover {
  border-color: white;
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* Carousel controls */
.carousel-prev,
.carousel-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.15);
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: white;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  z-index: 10;
  transition: var(--transition);
  backdrop-filter: blur(4px);
}

.carousel-prev {
  left: 24px;
}

.carousel-next {
  right: 24px;
}

.carousel-prev:hover,
.carousel-next:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: white;
}

/* Dots */
.carousel-dots {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: var(--transition);
  border: none;
  padding: 0;
}

.carousel-dot.active {
  background: white;
  transform: scale(1.4);
}

/* ===================================
   SECTIONS
   =================================== */
section {
  padding: 72px 0;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}

.sec-tag {
  display: inline-block;
  padding: 4px 14px;
  background: #EEF2FF;
  border: 1px solid #F0CCCC;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.sec-title {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
}

.sec-divider {
  width: 48px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 2px;
  margin: 0 0 20px;
}

.sec-divider.center {
  margin: 0 auto 20px;
}

.sec-subtitle {
  font-size: 0.95rem;
  color: var(--text-mid);
  line-height: 1.8;
  max-width: 600px;
}

.sec-header {
  text-align: center;
  margin-bottom: 52px;
}

.sec-header .sec-tag {
  display: inline-block;
}

.sec-header .sec-divider {
  margin: 8px auto 16px;
}

.sec-header .sec-subtitle {
  margin: 0 auto;
}

/* ===================================
   HOMEPAGE - ABOUT SNIPPET
   =================================== */
.about-snippet {
  background: var(--bg-soft);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.about-img-wrap {
  position: relative;
}

.about-img-main {
  width: 100%;
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 5/4;
  object-fit: cover;
}

.about-float {
  position: absolute;
  bottom: -16px;
  right: -16px;
  background: var(--primary);
  color: white;
  padding: 14px 18px;
  border-radius: 12px;
  box-shadow: var(--shadow);
  text-align: center;
}

.about-float strong {
  display: block;
  font-size: 1.6rem;
  color: var(--accent-light);
}

.about-float span {
  font-size: 0.78rem;
}

.about-text {
  font-size: 0.95rem;
  color: var(--text-mid);
  line-height: 1.9;
  margin-bottom: 14px;
}

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 28px;
}

.feat-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px;
  background: white;
  border-radius: 10px;
  border: 1px solid var(--border);
}

.feat-icon {
  width: 34px;
  height: 34px;
  background: var(--primary);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.feat-text strong {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
}

.feat-text span {
  font-size: 0.78rem;
  color: var(--text-light);
}

.btn-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: white;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-top: 24px;
  transition: var(--transition);
  box-shadow: 0 4px 12px rgba(10, 36, 99, 0.25);
  letter-spacing: 0.03em;
}

.btn-more:hover {
  background: linear-gradient(135deg, var(--accent) 0%, var(--primary-light) 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 180, 216, 0.35);
}

/* ===================================
   HOMEPAGE - NEWS SNIPPET
   =================================== */
.news-section {
  background: var(--bg);
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.news-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  cursor: pointer;
}

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

.news-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.news-body {
  padding: 18px 20px;
}

.news-date {
  font-size: 0.78rem;
  color: var(--text-light);
  margin-bottom: 6px;
}

.news-title {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
  line-height: 1.4;
}

.news-summary {
  font-size: 0.85rem;
  color: var(--text-mid);
  line-height: 1.6;
}

/* ===================================
   HOMEPAGE - FEATURED PRODUCTS
   =================================== */
.featured-section {
  background: var(--bg-soft);
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.product-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

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

.product-card-img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  background: #f5f5f5;
}

.product-card-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 10px;
  background: var(--primary);
  color: white;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
}

.product-card-img-wrap {
  position: relative;
}

.product-card-body {
  padding: 18px 20px;
}

.product-card-name {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}

.product-card-price {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 10px;
}

.product-card-price small {
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--text-light);
}

.product-card-desc {
  font-size: 0.85rem;
  color: var(--text-mid);
  line-height: 1.6;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  background: var(--primary);
  color: white;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  transition: var(--transition);
}

.product-card-btn:hover {
  background: var(--primary-dark);
}

/* ===================================
   PRODUCTS PAGE - LAYOUT
   =================================== */
.products-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 40px;
  align-items: start;
  padding: 40px 0 72px;
}

/* Sidebar */
.products-sidebar {
  position: sticky;
  top: calc(var(--nav-height) + 20px);
}

.sidebar-section-title {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary);
}

.sidebar-cat-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sidebar-cat-item {
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 0.9rem;
  color: var(--text-mid);
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
}

.sidebar-cat-item:hover {
  color: var(--primary);
  background: #EEF2FF;
}

.sidebar-cat-item.active {
  color: var(--primary);
  background: #EEF2FF;
  border-color: #F0CCCC;
  font-weight: 600;
}

/* Products grid */
.products-main {}

.products-main-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.products-main-title {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary);
}

.products-count {
  font-size: 0.85rem;
  color: var(--text-light);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}

/* Product thumbnail card (used in products.html) */
.prod-thumb {
  background: white;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  transition: var(--transition);
  cursor: pointer;
}

.prod-thumb:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.prod-thumb-img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: #f5f5f5;
}

.prod-thumb-body {
  padding: 14px;
}

.prod-thumb-name {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text);
  margin-bottom: 4px;
}

.prod-thumb-price {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--primary);
}

/* ===================================
   PRODUCT DETAIL PAGE
   =================================== */
.product-detail-section {
  padding: 40px 0 72px;
}

.product-detail-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

/* Image gallery */
.product-gallery {}

.product-gallery-main {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: var(--shadow);
  margin-bottom: 14px;
}

.product-gallery-thumbs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.product-gallery-thumb {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
}

.product-gallery-thumb.active,
.product-gallery-thumb:hover {
  border-color: var(--primary);
}

/* Product info */
.product-info {}

.product-category-tag {
  display: inline-block;
  font-size: 0.82rem;
  color: var(--text-light);
  margin-bottom: 8px;
}

.product-name {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
  line-height: 1.3;
}

.product-price-tag {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 20px;
}

.product-award {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: linear-gradient(135deg, #FFF5D6, #FFE799);
  border: 1px solid #F0D060;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #7A5A00;
  margin-bottom: 16px;
}

.product-short {
  font-size: 0.95rem;
  color: var(--text-mid);
  line-height: 1.8;
  padding: 16px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
}

.product-buy-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 16px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--font);
  transition: var(--transition);
  margin-bottom: 14px;
  text-decoration: none;
}

.product-buy-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.product-share {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 24px;
}

.share-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
}

.share-btn:hover {
  transform: translateY(-2px);
}

.share-btn.fb {
  background: #1877F2;
}

.share-btn.line {
  background: #06C755;
}

/* Product full description */
.product-desc-section {
  padding: 0 0 72px;
}

.product-desc-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px;
}

.product-desc-title {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid #F0CCCC;
}

.product-award-highlight {
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 12px;
  font-size: 0.9rem;
}

.product-detail-list {
  padding-left: 4px;
  margin-bottom: 20px;
}

.product-detail-list li {
  padding: 6px 0;
  font-size: 0.9rem;
  color: var(--text-mid);
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.product-detail-list li::before {
  content: "・";
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 1px;
}

.product-spec-box {
  background: var(--bg-soft);
  border: 1px solid #F0E4D4;
  border-radius: 8px;
  padding: 16px 20px;
  font-size: 0.88rem;
  color: var(--text-mid);
  line-height: 1.8;
  margin-top: 12px;
}

.product-spec-box strong {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

/* ===================================
   EXPERIENCE PAGE
   =================================== */
.experience-section {
  background: var(--bg);
}

.exp-intro {
  max-width: 820px;
  margin: 0 auto 48px;
  text-align: center;
}

.exp-notice-box {
  display: inline-block;
  padding: 12px 24px;
  background: linear-gradient(135deg, var(--primary), #A05020);
  color: white;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 16px;
}

.exp-booking-box {
  background: white;
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  padding: 16px 20px;
  font-size: 0.9rem;
  color: var(--text-mid);
  text-align: left;
  max-width: 600px;
  margin: 0 auto;
}

.exp-booking-box strong {
  color: var(--primary);
}

.exp-booking-box a {
  color: var(--green);
  font-weight: 600;
  text-decoration: underline;
}

.videos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-bottom: 48px;
}

.video-card {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  aspect-ratio: 16/9;
  background: #000;
}

.video-card iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.gallery-item {
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 16/9;
  cursor: pointer;
  position: relative;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.8rem;
  opacity: 0;
}

.gallery-item:hover .gallery-overlay {
  background: rgba(0, 0, 0, 0.3);
  opacity: 1;
}

/* ===================================
   ABOUT PAGE
   =================================== */
.about-page-section {
  padding: 64px 0;
}

.about-page-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

/* Park section */
.park-section {
  background: var(--bg-soft);
}

.park-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.park-map {
  border-radius: 16px;
  overflow: hidden;
  height: 380px;
  box-shadow: var(--shadow-lg);
}

.park-map iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.map-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #F0E4D4, #E4D0B8);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: var(--primary);
}

.map-placeholder .mi {
  font-size: 2.5rem;
}

.map-placeholder a {
  padding: 10px 20px;
  background: var(--primary);
  color: white;
  border-radius: 6px;
  font-size: 0.88rem;
  font-weight: 500;
  transition: var(--transition);
}

.map-placeholder a:hover {
  background: var(--primary-dark);
}

/* ===================================
   FOOTER  (白底三欄，仿原站設計)
   =================================== */
.site-footer {
  background: #FFFFFF;
  color: var(--text);
  border-top: 1px solid var(--border);
  padding: 32px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 180px 1.2fr 1fr;
  gap: 40px;
  align-items: start;
  padding-bottom: 32px;
}

/* Col 1 – Logo */
.footer-logo-col {}

.footer-logo-img {
  width: 160px;
  height: auto;
  display: block;
}

/* Col 2 – Contact */
.footer-contact-col {}

.footer-contact-title {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
}

.footer-info-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.footer-info-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--text-mid);
  line-height: 1.6;
}

.fi-icon {
  width: 20px;
  flex-shrink: 0;
  color: var(--text-light);
  font-size: 0.85rem;
  margin-top: 2px;
}

.footer-info-item a {
  color: var(--text-mid);
}

.footer-info-item a:hover {
  color: var(--primary);
}

/* Social buttons – outlined circles */
.footer-social {
  display: flex;
  gap: 10px;
  margin-bottom: 0px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid #CCCCCC;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-mid);
  font-size: 0.9rem;
  transition: var(--transition);
  background: white;
}

.footer-social a:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
}

/* LINE uses text "LINE" style */
.footer-social a.ln {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* Accessibility badge */
.footer-acc-badge {
  display: inline-block;
}

.footer-acc-badge img {
  height: 40px;
  width: auto;
  display: block;
}

/* Col 3 – About text */
.footer-about-col {}

.footer-about-title {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.6;
  margin-bottom: 14px;
}

.footer-about-text {
  font-size: 0.88rem;
  color: var(--text-mid);
  line-height: 1.9;
  margin-bottom: 10px;
}

/* Bottom bar */
.footer-bar {
  border-top: 1px solid var(--border);
  padding: 14px 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--text-light);
}

/* ===================================
   STICKY PRODUCT BAR
   =================================== */
.sticky-product-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: white;
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
  z-index: 800;
  padding: 12px 0;
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.sticky-product-bar.visible {
  transform: translateY(0);
}

.sticky-bar-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.sticky-bar-img {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid var(--border);
}

.sticky-bar-info {
  flex: 1;
}

.sticky-bar-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.3;
}

.sticky-bar-cat {
  font-size: 0.8rem;
  color: var(--text-light);
}

.sticky-bar-price {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  white-space: nowrap;
  padding: 0 20px;
}

.sticky-bar-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background: #1A1A1A;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--font);
  white-space: nowrap;
  transition: var(--transition);
  text-decoration: none;
}

.sticky-bar-btn:hover {
  background: #333;
}

/* ===================================
   BACK TO TOP
   =================================== */
.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 44px;
  height: 44px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
  z-index: 500;
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: all;
}

.back-to-top:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 9000;
  align-items: center;
  justify-content: center;
}

.lightbox.open {
  display: flex;
}

.lightbox-img {
  max-width: 90vw;
  max-height: 88vh;
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: white;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* ===================================
   REVEAL ANIMATION
   =================================== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===================================
   TABLET (≤1024px)
   =================================== */
@media (max-width: 1024px) {

  .about-grid,
  .about-page-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-float {
    right: 16px;
    bottom: -12px;
  }

  .park-content {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-logo-col {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
  }

  .product-detail-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .products-layout {
    grid-template-columns: 1fr;
  }

  .products-sidebar {
    position: static;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ===================================
   MOBILE (≤768px)
   =================================== */
@media (max-width: 768px) {
  :root {
    --nav-height: 68px;
  }

  section {
    padding: 52px 0;
  }

  .container {
    padding: 0 20px;
  }

  .nav-links,
  .nav-social {
    display: none;
  }

  .nav-hamburger {
    display: flex;
  }

  /* 輪播高度由手機改善區塊控制 */

  .about-features {
    grid-template-columns: 1fr;
  }

  .videos-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
  }

  .featured-grid {
    grid-template-columns: 1fr;
  }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
  }

  .footer-info-list,
  .footer-social {
    justify-content: center;
    align-items: center;
  }

  .footer-info-item {
    justify-content: center;
  }

  .footer-logo-col {
    grid-column: auto;
  }

  .sticky-bar-inner {
    padding: 0 16px;
    gap: 10px;
  }

  .sticky-bar-price {
    padding: 0 10px;
    font-size: 1rem;
  }

  .sticky-bar-btn {
    padding: 10px 18px;
    font-size: 0.88rem;
  }

  .page-hero {
    padding: 36px 0 28px;
  }

  .page-hero-title {
    font-size: 1.4rem;
  }
}

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

  .products-grid {
    grid-template-columns: 1fr;
  }
}

/* ===================================
   NEWS PAGE – SEARCH BAR
   =================================== */
.news-search-section {
  background: var(--bg-soft);
  padding: 32px 0 24px;
  border-bottom: 1px solid var(--border);
}

.news-search-wrap {
  display: flex;
  align-items: center;
  gap: 0;
  max-width: 640px;
  margin: 0 auto;
  background: #fff;
  border: 2px solid var(--border);
  border-radius: 50px;
  padding: 6px 6px 6px 18px;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s;
}

.news-search-wrap:focus-within {
  border-color: var(--primary);
}

.news-search-icon {
  color: var(--text-light);
  font-size: 0.95rem;
  margin-right: 10px;
  flex-shrink: 0;
}

.news-search-input {
  flex: 1;
  border: none;
  outline: none;
  font-family: var(--font);
  font-size: 0.95rem;
  color: var(--text);
  background: transparent;
}

.news-search-input::placeholder {
  color: var(--text-light);
}

.news-search-btn {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 40px;
  padding: 9px 22px;
  font-family: var(--font);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  flex-shrink: 0;
}

.news-search-btn:hover {
  background: var(--primary-dark);
}

.news-search-clear {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-light);
  font-size: 1rem;
  padding: 6px 10px;
  transition: color 0.2s;
}

.news-search-clear:hover {
  color: var(--primary);
}

.search-results-info {
  text-align: center;
  margin-top: 12px;
  font-size: 0.88rem;
  color: var(--text-mid);
}

.no-results-msg {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-light);
}

.no-results-msg i {
  font-size: 2.2rem;
  margin-bottom: 12px;
  display: block;
}

.no-results-msg p {
  font-size: 1rem;
  margin-bottom: 8px;
}

/* ===================================
   NEWS PAGE – LAYOUT & CALENDAR
   =================================== */
.news-main-layout {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  margin-top: 40px;
}

.news-sidebar {
  width: 320px;
  flex-shrink: 0;
  position: sticky;
  top: 120px;
}

.news-content-main {
  flex: 1;
  min-width: 0;
}

/* Calendar Card */
.calendar-card {
  background: white;
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}

.calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.cal-current-month {
  font-weight: 700;
  color: var(--text);
  font-size: 1.1rem;
}

.cal-btn {
  background: var(--bg-soft);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  color: var(--text);
}

.cal-btn:hover {
  background: var(--primary);
  color: white;
}

.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-weight: 600;
  font-size: 0.8rem;
  color: var(--text-light);
  margin-bottom: 10px;
}

.calendar-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}

.cal-day {
  aspect-ratio: 1/1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  cursor: pointer;
  border-radius: 50%;
  transition: var(--transition);
  position: relative;
}

.cal-day:hover {
  background: var(--bg-soft);
}

.cal-day.has-event .dot {
  width: 4px;
  height: 4px;
  background: var(--primary);
  border-radius: 50%;
  position: absolute;
  bottom: 6px;
}

.cal-day.selected {
  background: var(--primary);
  color: white;
}

.cal-day.selected .dot {
  background: white !important;
}

.cal-day.not-current {
  opacity: 0.3;
  cursor: default;
}

/* Legend & Clear */
.calendar-legend {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.legend-item {
  font-size: 0.82rem;
  color: var(--text-mid);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.legend-item .dot.highlight {
  width: 6px;
  height: 6px;
  background: var(--primary);
  border-radius: 50%;
}

.btn-clear-date {
  width: 100%;
  padding: 8px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: var(--transition);
  color: var(--text-mid);
  font-weight: 500;
}

.btn-clear-date:hover {
  border-color: var(--primary);
  color: var(--primary);
}

@media (max-width: 992px) {
  .news-main-layout {
    flex-direction: column;
  }

  .news-sidebar {
    width: 100%;
    position: static;
  }
}

/* ===================================
   NEWS PAGE – LISTING CARDS
   =================================== */
.news-list-section {
  padding: 48px 0 72px;
}

.news-grid-news-page {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.news-event-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.25s ease;
  height: 100%;
}

.news-event-card:hover {
  transform: translateY(-5px);
}

.news-event-card-img {
  width: 100%;
  aspect-ratio: 16/11;
  border-radius: 12px;
  overflow: hidden;
  background: #f0e4d4;
  margin-bottom: 12px;
}

.news-event-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.news-event-card-body {
  padding: 0 4px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.news-event-card-date {
  font-size: 0.8rem;
  color: #999;
  margin-bottom: 10px;
}

.news-event-card-title {
  font-family: var(--font);
  font-size: 1.1rem;
  font-weight: 700;
  color: #333;
  line-height: 1.4;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.8em;
}

.news-event-card-summary {
  font-size: 0.88rem;
  color: #666;
  line-height: 1.6;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-event-card-infos {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.neci {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  font-size: 0.88rem;
  color: #666;
}

.neci strong {
  font-weight: 600;
  color: #666;
}

.news-event-card-footer {
  margin-top: auto;
}

@media (max-width: 1200px) {
  .news-grid-news-page {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 992px) {
  .news-grid-news-page {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .news-grid-news-page {
    grid-template-columns: 1fr;
  }
}

/* ===================================
   NEWS PAGE – DETAIL
   =================================== */
.news-detail-section {
  padding: 48px 0 80px;
}

.news-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 28px;
  transition: gap 0.2s;
}

.news-back-link:hover {
  gap: 12px;
}

.news-article {
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  overflow: hidden;
}

.news-article-header {
  padding: 40px 48px 28px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 28px;
}

.news-article-category-badge {
  display: inline-block;
  background: var(--bg-soft);
  border: 1px solid var(--accent);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 20px;
  letter-spacing: 0.04em;
  margin-bottom: 16px;
}

.news-article-title {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.45;
  margin-bottom: 14px;
}

.news-article-meta {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.news-meta-date {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--text-light);
}

/* Event Info Box */
.news-event-infobox {
  margin: 0 48px 28px;
  border: 1.5px solid #e0cdb6;
  border-radius: 12px;
  overflow: hidden;
  background: #fffaf5;
}

.news-event-infobox-header {
  background: linear-gradient(90deg, var(--primary) 0%, #a83030 100%);
  color: #fff;
  font-size: 0.92rem;
  font-weight: 700;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.news-event-infobox-grid {
  padding: 4px 0;
}

.news-event-row {
  display: flex;
  align-items: flex-start;
  gap: 0;
  padding: 12px 20px;
  border-bottom: 1px solid #ede0cc;
  font-size: 0.92rem;
}

.news-event-row:last-child {
  border-bottom: none;
}

.news-event-label {
  width: 110px;
  flex-shrink: 0;
  font-weight: 700;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.news-event-label i {
  width: 14px;
  color: var(--accent);
}

.news-event-value {
  flex: 1;
  color: var(--text-mid);
  line-height: 1.6;
}

.news-event-reg-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 20px;
  background: var(--primary);
  color: #fff;
  border-radius: 20px;
  font-size: 0.86rem;
  font-weight: 600;
  transition: background 0.2s;
}

.news-event-reg-link:hover {
  background: var(--primary-dark);
}

/* Article Body */
.news-article-body {
  padding: 36px 48px;
  color: var(--text-mid);
  font-size: 0.97rem;
  line-height: 1.95;
}

.news-article-body p {
  margin-bottom: 1.2em;
}

.news-article-body p:last-child {
  margin-bottom: 0;
}

/* Gallery */
.news-article-gallery {
  padding: 0 48px 36px;
}

.news-gallery-heading {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.news-gallery-heading i {
  color: var(--accent);
}

.news-gallery-grid {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.news-gallery-item {
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  background: #f0e4d4;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s;
}

.news-gallery-item:hover {
  box-shadow: var(--shadow);
}

.news-gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
}

.news-gallery-item:hover img {
  transform: scale(1.02);
}

.news-gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s;
}

.news-gallery-item:hover .news-gallery-overlay {
  opacity: 1;
}

.news-gallery-overlay i {
  color: #fff;
  font-size: 1.8rem;
}

/* Share Buttons */
.news-article-share {
  padding: 24px 48px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.news-share-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-mid);
  display: flex;
  align-items: center;
  gap: 6px;
}

.news-share-btns {
  display: flex;
  gap: 10px;
}

.news-share-fb,
.news-share-line {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 18px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  transition: opacity 0.2s;
}

.news-share-fb:hover,
.news-share-line:hover {
  opacity: 0.85;
}

.news-share-fb {
  background: #1877F2;
  color: #fff;
}

.news-share-line {
  background: #00B900;
  color: #fff;
}

/* Prev / Next */
.news-prevnext {
  display: flex;
  gap: 16px;
  margin-top: 32px;
}

.prevnext-prev,
.prevnext-next {
  flex: 1;
}

.prevnext-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  font-size: 0.88rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.prevnext-btn:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
  color: var(--primary);
}

.prevnext-btn.next {
  justify-content: flex-end;
}

.prevnext-btn>i {
  color: var(--primary);
  font-size: 1rem;
  flex-shrink: 0;
}

.prevnext-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow: hidden;
}

.prevnext-info span {
  font-size: 0.76rem;
  color: var(--text-light);
}

.prevnext-info strong {
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 240px;
}

/* ===================================
   NEWS PAGE – RESPONSIVE
   =================================== */
@media (max-width: 768px) {
  .news-event-card {
    flex-direction: column;
  }

  .news-event-card-img {
    width: 100%;
    min-height: 180px;
    height: 200px;
  }

  .news-article-header {
    padding: 24px 24px 20px;
  }

  .news-article-title {
    font-size: 1.35rem;
  }

  .news-event-infobox {
    margin: 0 24px 0;
  }

  .news-article-body {
    padding: 24px;
  }

  .news-article-gallery {
    padding: 0 24px 24px;
  }

  .news-gallery-item {
    border-radius: 8px;
  }

  .news-article-share {
    padding: 20px 24px;
  }

  .news-event-label {
    width: 90px;
    font-size: 0.84rem;
  }

  .prevnext-info strong {
    max-width: 140px;
  }
}

/* ===================================
   HOMEPAGE - VIDEOS GRID
   =================================== */
.videos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 24px;
  justify-content: center;
}

/* 當只有一個影片時，置中顯示且縮小最大寬度避免過大 */
.videos-grid:has(> :last-child:nth-child(1)) {
  max-width: 800px;
  margin: 0 auto;
}

.video-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid var(--border);
}

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

.video-card iframe {
  width: 100%;
  aspect-ratio: 16/9;
  border: none;
  display: block;
}

/* 針對行動裝置優化 */
@media (max-width: 480px) {
  .videos-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

@media (max-width: 480px) {
  .news-search-wrap {
    padding: 5px 5px 5px 14px;
  }

  .news-gallery-item img {
    max-height: 520px;
    object-fit: contain;
  }

  .news-prevnext {
    flex-direction: column;
  }

  .prevnext-btn.next {
    justify-content: flex-start;
  }

  .news-event-row {
    flex-direction: column;
    gap: 4px;
  }

  .news-event-label {
    width: auto;
  }
}

/* ===================================
   SITEMAP PAGE
   =================================== */
.sitemap-section {
  padding: 52px 0 80px;
  background: var(--bg-soft);
}

.sitemap-card {
  background: #fff;
  border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.sitemap-block {
  padding: 36px 48px;
}

.sitemap-divider {
  height: 1px;
  background: var(--border);
  margin: 0 48px;
}

.sitemap-heading {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.sitemap-heading i {
  color: var(--accent);
  font-size: 1rem;
}

.sitemap-text {
  font-size: 0.95rem;
  color: var(--text-mid);
  line-height: 1.8;
  margin-bottom: 12px;
}

.sitemap-zones {
  list-style: none;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin: 16px 0 0;
}

.sitemap-zones li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
}

.zone-num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Shortcut key rows */
.sitemap-keys {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 16px;
}

.sk-row {
  display: flex;
  align-items: flex-start;
  gap: 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}

.sk-row:last-child {
  border-bottom: none;
}

.sk-key {
  flex-shrink: 0;
  width: 140px;
  padding: 13px 18px;
  background: #fdf6ee;
  font-family: monospace;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--primary);
  border-right: 1px solid var(--border);
  display: flex;
  align-items: center;
}

.sk-desc {
  flex: 1;
  padding: 13px 18px;
  color: var(--text-mid);
  line-height: 1.7;
}

.sitemap-note {
  font-size: 0.86rem;
  color: var(--text-light);
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 16px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.7;
}

.sitemap-note i {
  color: var(--accent);
  margin-top: 2px;
  flex-shrink: 0;
}

/* Page map grid */
.sitemap-map-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.sitemap-page-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 22px 14px;
  background: var(--bg-soft);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 600;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
  text-decoration: none;
}

.sitemap-page-card i {
  font-size: 1.5rem;
  color: var(--accent);
  transition: color 0.2s;
}

.sitemap-page-card:hover,
.sitemap-page-card.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.sitemap-page-card:hover i,
.sitemap-page-card.active i {
  color: #fff;
}

/* Sitemap responsive */
@media (max-width: 768px) {
  .sitemap-block {
    padding: 24px;
  }

  .sitemap-divider {
    margin: 0 24px;
  }

  .sitemap-map-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .sk-key {
    width: 110px;
    padding: 12px 12px;
    font-size: 0.82rem;
  }

  .sk-desc {
    padding: 12px 14px;
  }

  .sitemap-zones {
    gap: 12px;
  }
}

@media (max-width: 480px) {
  .sitemap-map-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .sk-row {
    flex-direction: column;
  }

  .sk-key {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
}

/* ===================================
   MOBILE UX IMPROVEMENTS
   =================================== */

/* ── 漢堡選單 → X 動畫 ── */
.nav-hamburger {
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  padding: 0;
  border-radius: 6px;
  transition: background 0.2s;
}

.nav-hamburger:hover {
  background: #EEF2FF;
}

.nav-hamburger span {
  transition: transform 0.25s ease, opacity 0.2s ease;
  display: block;
}

.nav-hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-hamburger.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.nav-hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ── 行動導覽列整體改善 ── */
.mobile-nav {
  padding: 0 0 4px;
  border-radius: 0 0 12px 12px;
  overflow: hidden;
  animation: slideDown 0.22s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 觸控目標最小 48px */
.mobile-nav>a {
  display: flex !important;
  align-items: center;
  min-height: 48px;
  padding: 0 20px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-mid);
  border-bottom: 1px solid #F0F0F0;
  transition: background 0.15s, color 0.15s;
}

.mobile-nav>a:hover {
  color: var(--primary);
  background: #FFF8F8;
}

.mobile-nav>a:last-of-type {
  border-bottom: none;
}

/* ── 產品介紹 折疊子選單 ── */
.mobile-nav-group {
  padding: 0;
  border-bottom: 1px solid #F0F0F0;
}

.mobile-nav-group-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  min-height: 48px;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-mid);
  user-select: none;
  transition: background 0.15s, color 0.15s;
}

.mobile-nav-group-title:hover {
  color: var(--primary);
  background: #FFF8F8;
}

.mobile-nav-group-title span {
  flex: 1;
}

.mobile-nav-chevron {
  font-size: 0.72rem;
  color: var(--text-light);
  transition: transform 0.25s ease;
  flex-shrink: 0;
  margin-left: 8px;
}

.mobile-nav-group.expanded .mobile-nav-chevron {
  transform: rotate(180deg);
  color: var(--primary);
}

.mobile-nav-group.expanded .mobile-nav-group-title {
  color: var(--primary);
  font-weight: 600;
}

/* 子選單折疊動畫 */
.mobile-nav-sub {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background: #FAFAFA;
  padding-left: 0;
}

.mobile-nav-group.expanded .mobile-nav-sub {
  max-height: 400px;
}

.mobile-nav-sub a {
  display: flex !important;
  align-items: center;
  min-height: 44px;
  padding: 0 20px 0 36px !important;
  font-size: 0.9rem;
  color: var(--text-mid);
  border-bottom: 1px solid #F0F0F0 !important;
  position: relative;
  transition: background 0.15s, color 0.15s;
}

.mobile-nav-sub a::before {
  content: '';
  position: absolute;
  left: 22px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.7;
}

.mobile-nav-sub a:last-child {
  border-bottom: none !important;
}

.mobile-nav-sub a:hover {
  color: var(--primary);
  background: #EEF2FF;
}

/* ── 社群圖示列 ── */
.mobile-social {
  display: flex;
  justify-content: center;
  gap: 15px;
  padding: 16px 20px;
  border-top: 1px solid #F0F0F0;
  margin-top: 0;
}

.mobile-social .nav-social-btn {
  width: 42px;
  min-width: 42px;
  max-width: 42px;
  height: 42px;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden;
  padding: 0 !important;
}

.mobile-social .nav-social-line {
  font-size: 0.72rem;
  line-height: 1;
}

/* ── 手機輪播底部控制列 ── */
.carousel-mobile-bar {
  display: none;
  /* 桌機隱藏 */
}

@media (max-width: 768px) {

  /* 桌機箭頭隱藏 */
  .carousel-prev,
  .carousel-next {
    display: none;
  }

  /* 手機版 dots：保持 absolute，位移到 mobile-bar 正上方 */
  .carousel-dots {
    bottom: 58px;
    gap: 6px;
  }

  .carousel-dot {
    width: 24px;
    height: 4px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.4);
    transition: background 0.3s, width 0.3s;
  }

  .carousel-dot.active {
    background: white;
    width: 36px;
    transform: none;
  }

  /* 手機輪播恢復原本大小 */
  .hero-carousel {
    height: 80vw;
    min-height: 380px;
    max-height: 600px;
  }

  /* 底部控制列（僅左右箭頭） */
  .carousel-mobile-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 56px;
    padding: 0 16px 8px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.42));
    z-index: 10;
  }

  .carousel-mob-arrow {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    color: white;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    backdrop-filter: blur(4px);
    transition: background 0.2s;
  }

  .carousel-mob-arrow:active {
    background: rgba(255, 255, 255, 0.35);
  }

  /* 輪播內容 */
  .carousel-content {
    padding: 0 22px 72px;
    justify-content: center;
  }

  /* 字體大小優化 */
  .carousel-title {
    font-size: clamp(1.3rem, 6vw, 1.9rem);
    margin-bottom: 10px;
  }

  .carousel-subtitle {
    font-size: 0.88rem;
    margin-bottom: 20px;
    -webkit-line-clamp: 3;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .carousel-btns {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
  }

  .btn-red,
  .btn-ghost {
    padding: 11px 22px;
    font-size: 0.9rem;
  }
}

/* ── 超小螢幕 (≤360pF2FF;
}

/* ── 社群圖示列 ── */
.mobile-social {
  display: flex;
  justify-content: center;
  gap: 15px;
  padding: 16px 20px;
  border-top: 1px solid #F0F0F0;
  margin-top: 0;
}

.mobile-social .nav-social-btn {
  width: 42px;
  min-width: 42px;
  max-width: 42px;
  height: 42px;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden;
  padding: 0 !important;
}

.mobile-social .nav-social-line {
  font-size: 0.72rem;
  line-height: 1;
}

/* ── 手機輪播底部控制列 ── */
.carousel-mobile-bar {
  display: none;
  /* 桌機隱藏 */
}

@media (max-width: 768px) {

  /* 桌機箭頭隱藏 */
  .carousel-prev,
  .carousel-next {
    display: none;
  }

  /* 手機版 dots：保持 absolute，位移到 mobile-bar 正上方 */
  .carousel-dots {
    bottom: 58px;
    gap: 6px;
  }

  .carousel-dot {
    width: 24px;
    height: 4px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.4);
    transition: background 0.3s, width 0.3s;
  }

  .carousel-dot.active {
    background: white;
    width: 36px;
    transform: none;
  }

  /* 手機輪播恢復原本大小 */
  .hero-carousel {
    height: 80vw;
    min-height: 380px;
    max-height: 600px;
  }

  /* 底部控制列（僅左右箭頭） */
  .carousel-mobile-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 56px;
    padding: 0 16px 8px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.42));
    z-index: 10;
  }

  .carousel-mob-arrow {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    color: white;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    backdrop-filter: blur(4px);
    transition: background 0.2s;
  }

  .carousel-mob-arrow:active {
    background: rgba(255, 255, 255, 0.35);
  }

  /* 輪播內容 */
  .carousel-content {
    padding: 0 22px 72px;
    justify-content: center;
  }

  /* 字體大小優化 */
  .carousel-title {
    font-size: clamp(1.3rem, 6vw, 1.9rem);
    margin-bottom: 10px;
  }

  .carousel-subtitle {
    font-size: 0.88rem;
    margin-bottom: 20px;
    -webkit-line-clamp: 3;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .carousel-btns {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
  }

  .btn-red,
  .btn-ghost {
    padding: 11px 22px;
    font-size: 0.9rem;
  }
}

/* ── 超小螢幕 (≤360pap;
    gap: 10px;
  }

  .btn-red,
  .btn-ghost {
    padding: 11px 22px;
    font-size: 0.9rem;
  }
}

/* ── 超小螢幕 (≤360p