﻿@charset "utf-8";

:root {
  --botry-c-bg:        #f7f5fb;
  --botry-c-purple:    #6c5fc7;
  --botry-c-purple-dk: #4b3fa0;
  --botry-c-purple-lt: #ede9f8;
  --botry-c-violet:    #9b8de8;
  --botry-c-sage:      #7aad9a;
  --botry-c-cream:     #faf8f2;
  --botry-c-text:      #2a2240;
  --botry-c-text-md:   #5a5272;
  --botry-c-text-lt:   #8e87a8;
  --botry-c-border:    rgba(108, 95, 199, 0.18);
  --botry-c-white:     #ffffff;
  --botry-font-sans:   'Noto Sans TC', sans-serif;
  --botry-font-serif:  'Noto Serif TC', serif;
  --botry-radius-nav:  14px;
  --botry-shadow-nav:  0 8px 32px rgba(108,95,199,0.12);
  --botry-transition:  0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── NAV BASE ── */
.botry-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 9999;
  font-family: var(--botry-font-sans);
  transition: background var(--botry-transition), box-shadow var(--botry-transition), backdrop-filter var(--botry-transition);
}
.botry-nav.botry-nav--scrolled {
  background: rgba(247, 245, 251, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 2px 24px rgba(108,95,199,0.10);
}
.botry-nav__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

/* ── LOGO ── */
.botry-nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.botry-nav__logo-mark {
  width: 38px; height: 38px;
  background: linear-gradient(135deg, var(--botry-c-purple), var(--botry-c-violet));
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: white;
  font-family: var(--botry-font-serif);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.02em;
  box-shadow: 0 4px 12px rgba(108,95,199,0.35);
}
.botry-nav__logo-text {
  display: flex; flex-direction: column;
  line-height: 1.2;
}
.botry-nav__logo-cn {
  font-size: 14px;
  font-weight: 700;
  color: var(--botry-c-text);
  letter-spacing: 0.02em;
}
.botry-nav__logo-en {
  font-size: 9px;
  letter-spacing: 0.1em;
  color: var(--botry-c-text-lt);
  text-transform: uppercase;
  font-weight: 400;
}

/* ── DESKTOP MENU ── */
.botry-nav__menu {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  list-style: none;
  margin: 0; padding: 0;
}
.botry-nav__item { 
  position: relative; 
}
.botry-nav__link {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0.5rem 0.85rem;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--botry-c-text-md);
  text-decoration: none;
  border-radius: 8px;
  transition: color var(--botry-transition), background var(--botry-transition);
  white-space: nowrap;
}
.botry-nav__link:hover,
.botry-nav__link--active {
  color: var(--botry-c-purple);
  background: var(--botry-c-purple-lt);
}
.botry-nav__arrow {
  font-size: 9px;
  opacity: 0.6;
  transition: transform var(--botry-transition);
}
.botry-nav__item:hover .botry-nav__arrow {
  transform: rotate(180deg);
}

/* ── DROPDOWN 修正版（穩定不跳開）── */
/* 填補滑鼠移動時的空隙 */
.botry-nav__item::before {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  right: 0;
  height: 15px;
  background: transparent;
  z-index: 9999;
}

.botry-nav__dropdown {
  position: absolute;
  top: calc(100% + 5px);
  left: 50%;
  transform: translateX(-50%);
  background: white;
  border: 1px solid var(--botry-c-border);
  border-radius: var(--botry-radius-nav);
  padding: 0.6rem;
  min-width: 180px;
  box-shadow: var(--botry-shadow-nav);
  list-style: none;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  z-index: 10000;
}

.botry-nav__item:hover .botry-nav__dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.botry-nav__dropdown li a {
  display: block;
  padding: 0.55rem 1rem;
  font-size: 13px;
  color: var(--botry-c-text-md);
  text-decoration: none;
  border-radius: 8px;
  transition: background var(--botry-transition), color var(--botry-transition);
  white-space: nowrap;
}

.botry-nav__dropdown li a:hover {
  background: var(--botry-c-purple-lt);
  color: var(--botry-c-purple);
}

/* ── NAV CTA ── */
.botry-nav__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, var(--botry-c-purple), var(--botry-c-purple-dk));
  color: white !important;
  padding: 0.52rem 1.1rem;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(108,95,199,0.35);
  transition: transform var(--botry-transition), box-shadow var(--botry-transition);
  white-space: nowrap;
}
.botry-nav__cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(108,95,199,0.45);
}

/* ── HAMBURGER ── */
.botry-nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: background var(--botry-transition);
}
.botry-nav__toggle:hover { background: var(--botry-c-purple-lt); }
.botry-nav__toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--botry-c-text);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.botry-nav__toggle.botry-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.botry-nav__toggle.botry-open span:nth-child(2) { opacity: 0; }
.botry-nav__toggle.botry-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── MOBILE DRAWER ── */
.botry-nav__drawer {
  display: none;
  position: fixed;
  top: 70px; left: 0; right: 0; bottom: 0;
  background: rgba(247,245,251,0.97);
  backdrop-filter: blur(16px);
  z-index: 8999;
  overflow-y: auto;
  padding: 1.5rem 1.5rem 3rem;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.botry-nav__drawer.botry-open {
  transform: translateX(0);
}
.botry-drawer__list { list-style: none; padding: 0; margin: 0; }
.botry-drawer__list > li { border-bottom: 1px solid var(--botry-c-border); }
.botry-drawer__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0.5rem;
  font-size: 16px;
  font-weight: 500;
  color: var(--botry-c-text);
  text-decoration: none;
  transition: color var(--botry-transition);
}
.botry-drawer__link:hover { color: var(--botry-c-purple); }
.botry-drawer__sub { list-style: none; padding: 0 0 0.8rem 1rem; display: none; }
.botry-drawer__sub.botry-open { display: block; }
.botry-drawer__sub li a {
  display: block;
  padding: 0.5rem 0.5rem;
  font-size: 14px;
  color: var(--botry-c-text-md);
  text-decoration: none;
  transition: color var(--botry-transition);
}
.botry-drawer__sub li a:hover { color: var(--botry-c-purple); }
.botry-drawer__cta {
  margin-top: 1.5rem;
  display: block;
  text-align: center;
  background: linear-gradient(135deg, var(--botry-c-purple), var(--botry-c-purple-dk));
  color: white;
  padding: 1rem;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(108,95,199,0.35);
}

/* ─────────────────────────────────────────────
   FOOTER STYLES
───────────────────────────────────────────── */
.botry-footer {
  background: linear-gradient(160deg, #1e1836 0%, #2a2250 50%, #1b1630 100%);
  color: rgba(255,255,255,0.75);
  font-family: var(--botry-font-sans);
  padding: 4rem 2rem 2rem;
  position: relative;
  overflow: hidden;
}
.botry-footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(108,95,199,0.5), transparent);
}
.botry-footer::after {
  content: '';
  position: absolute;
  top: -60px; right: -80px;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(108,95,199,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.botry-footer__inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem 2rem;
  position: relative;
}
.botry-footer__brand-name {
  font-family: var(--botry-font-serif);
  font-size: 18px;
  font-weight: 700;
  color: white;
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  gap: 10px;
}
.botry-footer__brand-mark {
  width: 32px; height: 32px;
  background: linear-gradient(135deg, var(--botry-c-purple), var(--botry-c-violet));
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
}
.botry-footer__desc {
  font-size: 13px;
  line-height: 1.8;
  color: rgba(255,255,255,0.55);
  margin-bottom: 1.4rem;
}
.botry-footer__contact-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  margin-bottom: 0.6rem;
  color: rgba(255,255,255,0.65);
}
.botry-footer__contact-icon {
  font-size: 14px;
  flex-shrink: 0;
  margin-top: 1px;
}
.botry-footer__contact-item a {
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  transition: color var(--botry-transition);
}
.botry-footer__contact-item a:hover { color: var(--botry-c-violet); }
.botry-footer__col-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--botry-c-violet);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(108,95,199,0.25);
}
.botry-footer__links {
  list-style: none;
  padding: 0; margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.botry-footer__links li a {
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  transition: color var(--botry-transition);
  display: flex;
  align-items: center;
  gap: 6px;
}
.botry-footer__links li a::before {
  content: '›';
  color: var(--botry-c-purple);
  font-weight: 700;
}
.botry-footer__links li a:hover { color: rgba(255,255,255,0.9); }
.botry-footer__bottom {
  max-width: 1280px;
  margin: 3rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: 12px;
  color: rgba(255,255,255,0.35);
  position: relative;
}
.botry-footer__bottom-links {
  display: flex;
  gap: 1.5rem;
}
.botry-footer__bottom-links a {
  color: rgba(255,255,255,0.35);
  text-decoration: none;
  transition: color var(--botry-transition);
}
.botry-footer__bottom-links a:hover { color: rgba(255,255,255,0.65); }
.botry-footer__line-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #06c755;
  color: white;
  padding: 0.4rem 0.9rem;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: transform var(--botry-transition);
}
.botry-footer__line-btn:hover { transform: scale(1.04); }

/* ── RESPONSIVE NAV ── */
@media (max-width: 900px) {
  .botry-nav__menu, .botry-nav__cta { display: none; }
  .botry-nav__toggle { display: flex; }
  .botry-nav__drawer { display: block; }
}

/* ── RESPONSIVE FOOTER ── */
@media (max-width: 900px) {
  .botry-footer__inner {
    grid-template-columns: 1fr 1fr;
  }
  .botry-footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .botry-footer__inner { grid-template-columns: 1fr; }
  .botry-footer { padding: 3rem 1.2rem 1.5rem; }
  .botry-footer__bottom { flex-direction: column; text-align: center; }
  .botry-footer__bottom-links { flex-wrap: wrap; justify-content: center; gap: 0.8rem; }
}

/* ── 行動裝置：為 footer__bottom 增加底部空間 ── */
@media (max-width: 768px) {
  .botry-footer__bottom {
    margin-bottom: 60px;
  }
}

/* ===== 滿版 + 置中強制修正 ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-x: hidden;
  background: #f7f5fb;
}

/* 所有區塊滿版 */
.botry-nav,
.botry-hero,
.botry-section,
.botry-trust,
.botry-cta-strip,
.botry-footer {
  width: 100%;
  position: relative;
  left: 0;
  right: 0;
}

/* 內部容器置中 */
.botry-nav__inner,
.botry-hero__inner,
.botry-section__container,
.botry-trust__inner,
.botry-footer__inner,
.botry-footer__bottom {
  max-width: 1280px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: 2rem;
  padding-right: 2rem;
}

/* 確保所有內容不會超出邊界 */
.botry-hero,
.botry-section,
.botry-trust,
.botry-cta-strip {
  overflow-x: hidden;
}

/* 修正 main 內容區域 */
#main-content {
  width: 100%;
  position: relative;
  padding-top: 0;
}

/* 修正 hero 區塊 */
.botry-hero {
  margin-top: 0;
  padding-top: 0;
}

/* ===== H1 標題樣式 ===== */
.botry-hero__h1 {
  color: var(--botry-c-purple);
  font-weight: 700;
  text-align: center;
}

/* 行動裝置小螢幕 - 斷行時上下間距40px 左右縮進20px */
@media (max-width: 768px) {
  .botry-hero__h1 {
    margin-top: 40px;
    margin-bottom: 40px;
    padding-left: 20px;
    padding-right: 20px;
  }
}

/* ===== H2 標題樣式 ===== */

  .botry-hero__h2 {
    font-family: var(--botry-font-serif);
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 700;
    line-height: 1.25;
    color: var(--botry-c-text);
    margin-bottom: 1rem;
    animation: botry-fade-up 0.6s 0.2s both;
  }
  .botry-hero__h2 em {
    font-style: normal;
    background: linear-gradient(135deg, var(--botry-c-purple) 0%, var(--botry-c-violet) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
  }

/* 行動裝置小螢幕 - 斷行時上下間距40px 左右縮進20px */
@media (max-width: 768px) {
  .botry-hero__h2 {
    margin-top: 40px;
    margin-bottom: 40px;
    padding-left: 20px;
    padding-right: 20px;
  }
}



/* RWD 手機版減少左右留白 */
@media (max-width: 768px) {
  .botry-nav__inner,
  .botry-hero__inner,
  .botry-section__container,
  .botry-trust__inner,
  .botry-footer__inner,
  .botry-footer__bottom {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  .botry-hero__inner > div:first-child {
    padding-right: 0;
  }
  
  .botry-hero__h1,
  .botry-hero__desc,
  .botry-section__h2,
  .botry-section__p,
  .botry-service-card__title,
  .botry-service-card__desc {
    word-wrap: break-word;
    overflow-wrap: break-word;
  }
}