/* 全域佈局樣式：導覽列、基礎排版、共用容器與頁尾 */

:root {
  --bg: #f8f4ec;
  --surface: #ffffff;
  --surface-2: #f7efe3;
  --paper: #fffdfa;
  --paper-soft: #f2e7d8;
  --text-light: #ffffff;
  --text-dark: #1e2430;
  --muted: #766d63;
  --line: rgba(30, 36, 48, 0.12);
  --line-dark: rgba(30, 36, 48, 0.12);
  --accent: #d58d3f;
  --accent-2: #d45757;
  --shadow: 0 20px 60px rgba(130, 96, 53, 0.12);
  --radius: 24px;
  --container: 1240px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text-dark);
  background:
    radial-gradient(circle at top left, rgba(255, 214, 153, 0.55), transparent 34%),
    radial-gradient(circle at bottom right, rgba(255, 183, 197, 0.42), transparent 28%),
    linear-gradient(180deg, #fffdf8 0%, #fdf6ec 45%, #f8efe2 100%);
  font-family: "Noto Sans TC", sans-serif;
  overflow-x: hidden;
}

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

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

.container {
  max-width: var(--container);
}

.grain-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.1;
  z-index: 1;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(213,141,63,0.14) 0.6px, transparent 0.8px),
    radial-gradient(circle at 80% 40%, rgba(212,87,87,0.12) 0.6px, transparent 0.8px),
    radial-gradient(circle at 50% 80%, rgba(30,36,48,0.08) 0.6px, transparent 0.8px);
  background-size: 180px 180px, 220px 220px, 260px 260px;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1030;
  transition: background-color 0.35s ease, box-shadow 0.35s ease, backdrop-filter 0.35s ease;
}

.site-header.scrolled {
  background: rgba(255, 251, 244, 0.86);
  backdrop-filter: blur(14px);
  box-shadow: 0 10px 30px rgba(106, 82, 50, 0.12);
}

.navbar {
  padding: 1rem 0;
  transition: padding 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --bs-navbar-color: rgba(30, 36, 48, 0.84);
  --bs-navbar-hover-color: var(--accent);
  --bs-navbar-active-color: var(--accent);
  --bs-navbar-disabled-color: rgba(30, 36, 48, 0.3);
  --bs-navbar-toggler-icon-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%280, 0, 0, 0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar-brand {
  display: flex;
  flex-direction: column;
  line-height: 1;
  transition: transform 0.35s ease;
}

.navbar-brand.has-logo {
  flex-direction: row;
  align-items: center;
  gap: 0.85rem;
}

.brand-logo {
  width: 100px;
  height: 100px;
  object-fit: contain;
  border-radius: 14px;
  /* background: rgba(255, 255, 255, 0.82); */
  padding: 0.2rem;
  /* box-shadow: 0 10px 24px rgba(106, 82, 50, 0.14); */
  transition: width 0.35s ease, height 0.35s ease;
}

.site-header.scrolled .brand-logo {
  width: 60px;
  height: 60px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand-cn {
  font-family: "Noto Serif TC", serif;
  font-size: 1.4rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.brand-en {
  margin-top: 0.3rem;
  font-size: 0.68rem;
  letter-spacing: 0.28em;
  color: rgba(30, 36, 48, 0.62);
}

.navbar-dark .navbar-nav .nav-link {
  position: relative;
  padding: 0.65rem 1rem;
  color: rgba(30, 36, 48, 0.84);
  font-weight: 600;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link:focus {
  color: var(--text-dark);
}

.nav-cta {
  border: 1px solid rgba(213, 141, 63, 0.34);
  border-radius: 999px;
  margin-left: 0.5rem;
  background: linear-gradient(135deg, rgba(255,255,255,0.8), rgba(255,240,220,0.95));
}

.section-block {
  position: relative;
  z-index: 2;
  padding: 110px 0;
}

.section-dark {
  color: var(--text-dark);
  background:
    linear-gradient(180deg, rgba(255,250,244,0.96), rgba(247,238,225,0.98));
}

.section-light {
  color: var(--text-dark);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.9), rgba(248,239,226,0.92));
}

.section-accent {
  color: var(--text-dark);
  background:
    linear-gradient(135deg, rgba(255,227,204,0.95), rgba(255,245,232,0.98) 52%, rgba(255,203,203,0.7));
}

.section-tag {
  display: inline-block;
  margin-bottom: 1rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--accent);
}

.section-heading h2 {
  margin: 0;
  font-family: "Noto Serif TC", serif;
  font-size: clamp(2rem, 4vw, 4rem);
  font-weight: 900;
  line-height: 1.05;
}

.heading-split {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 3rem;
}

.heading-split p {
  max-width: 500px;
  margin: 0;
  font-size: 1rem;
  line-height: 1.9;
  color: rgba(23, 23, 23, 0.72);
}

.editorial-copy p {
  margin-bottom: 1rem;
  font-size: 1.02rem;
  line-height: 2;
}

.site-footer {
  position: relative;
  z-index: 2;
  padding: 28px 0 40px;
  border-top: 1px solid rgba(30,36,48,0.08);
  background: linear-gradient(180deg, #fffaf3, #f6ecde);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: rgba(30,36,48,0.72);
}

.back-to-top {
  color: var(--text-dark);
}

.floating-social-group {
  position: fixed;
  right: 18px;
  bottom: 20px;
  z-index: 1100;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.floating-contact {
  position: relative;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 18px 35px rgba(213,141,63,0.28);
  transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
}

.floating-top {
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
}

.floating-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.floating-fb {
  background: linear-gradient(135deg, #1877f2, #4da3ff);
}

.floating-ig {
  background: linear-gradient(135deg, #833ab4, #fd1d1d 55%, #fcb045);
}

.floating-line {
  background: linear-gradient(135deg, #06c755, #05b34c);
}

.floating-email {
  background: linear-gradient(135deg, #ff9f5a, #ff7e7e);
}

.floating-top {
  background: linear-gradient(135deg, #1f2937, #4b5563);
}

.floating-contact:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 24px 40px rgba(0,0,0,0.34);
}

.floating-contact svg {
  width: 26px;
  height: 26px;
}

.btn-editorial-primary {
  padding: 1.1rem 2.8rem;
  font-size: 1.05rem;
  font-weight: 700;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), #e39d54);
  color: #fff;
  box-shadow: 0 16px 32px rgba(213, 141, 63, 0.28);
  transition: all 0.35s ease;
}

.btn-editorial-primary:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 48px rgba(213, 141, 63, 0.42);
  background: linear-gradient(135deg, #e39d54, var(--accent));
  color: #fff;
}

.btn-editorial-primary[href=""], 
.btn-editorial-primary[href="#"],
.btn-editorial-primary[href^="{"] { 
  display: none !important; 
}

/* Swiper 輪播樣式修正 */
.heroSwiper {
  width: 100%;
  height: 100%;
}

.swiper-button-next,
.swiper-button-prev {
  width: 3.5rem;
  height: 3.5rem;
  background-color: rgba(30, 36, 48, 0.45);
  border-radius: 50%;
  backdrop-filter: blur(4px);
  color: #fff;
  transition: all 0.3s ease;
}

.swiper-button-next:after,
.swiper-button-prev:after {
  font-size: 1.2rem;
  font-weight: bold;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
  background-color: rgba(30, 36, 48, 0.8);
  transform: scale(1.1);
}

.swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  background: #fff;
  opacity: 0.5;
  transition: all 0.3s ease;
}

.swiper-pagination-bullet-active {
  opacity: 1;
  width: 32px;
  border-radius: 6px;
  background: var(--accent);
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

@media (max-width: 991.98px) {
  .navbar-collapse {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 20px;
    background: rgba(255, 250, 242, 0.97);
    box-shadow: 0 18px 40px rgba(127, 96, 56, 0.12);
  }

  .nav-cta {
    margin-left: 0;
    margin-top: 0.4rem;
    display: inline-block;
    text-align: center;
  }

  .heading-split {
    flex-direction: column;
    align-items: flex-start;
  }

  .section-block {
    padding: 88px 0;
  }
}

.navbar-toggler {
  padding: 0.5rem;
  border-color: #000;
  box-shadow: none !important;
  margin-right: 15px;
}

.navbar-toggler-icon {
}

@media (max-width: 991.98px) {
  .navbar > .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .navbar-toggler {
    z-index: 10;
  }
}

@media (min-width: 768px) {
  .brand-logo {
    width: 100px !important;
    height: 100px !important;
  }
}

@media (max-width: 767.98px) {
  .site-header.scrolled .navbar {
    /* padding: 1.5rem 0 0 0; */
  }

  .navbar-brand.has-logo {
    margin: 0;
    flex-direction: row;
    align-items: center;
    text-align: left;
    gap: 0.65rem;
  }

  .brand-logo {
    width: 60px;
    height: 60px;
    border-radius: 10px;
  }

  .brand-cn {
    font-size: 1.15rem;
  }

  .brand-en {
    font-size: 0.58rem;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}