﻿/* ============================================================
   博才資訊 botry-v1 — 主視覺樣式表
   主色系：#C38EC8 · #FFEFC5 · #FFEAE0 · #2d1b3c
   ============================================================ */

/* ---------- Google Fonts ---------- */
@import url('http://fonts.googleapis.com/css2?family=Noto+Serif+TC:wght@400;700&family=Noto+Sans+TC:wght@400;500;700&display=swap');

/* ---------- Root Tokens ---------- */
:root {
  --c-plum:        #2d1b3c;
  --c-plum-mid:    #4a2d62;
  --c-purple:      #C38EC8;
  --c-purple-lt:   #dbb8e0;
  --c-purple-pale: #f0e0f3;
  --c-cream:       #FFEFC5;
  --c-peach:       #FFEAE0;
  --c-peach-deep:  #ffd4bc;
  --c-white:       #ffffff;
  --c-text:        #2d1b3c;
  --c-text-muted:  #6b4e7a;
  --c-border:      rgba(195, 142, 200, 0.25);

  --radius-sm:  8px;
  --radius-md:  16px;
  --radius-lg:  28px;
  --radius-xl:  40px;

  --shadow-card:  0 4px 24px rgba(45, 27, 60, 0.08), 0 1px 4px rgba(45, 27, 60, 0.06);
  --shadow-hover: 0 8px 36px rgba(45, 27, 60, 0.14), 0 2px 8px rgba(45, 27, 60, 0.08);

  --font-sans:  'Noto Sans TC', 'PingFang TC', 'Microsoft JhengHei', sans-serif;
  --font-serif: 'Noto Serif TC', serif;
}

/* ---------- Base Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: var(--font-sans);
  color: var(--c-text);
  background: var(--c-white);
  line-height: 1.7;
  overflow-x: hidden;
}

a { text-decoration: none; transition: opacity .2s; }
a:hover { opacity: .75; }

/* ============================================================
   HERO CAROUSEL
   ============================================================ */
.botry-v1-hero-carousel {
  position: relative;
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 12px 48px rgba(45, 27, 60, 0.18);
}

.botry-v1-hero-carousel .carousel-inner {
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
}

.botry-v1-hero-carousel .carousel-item {
  position: relative;
  min-height: 540px;
  max-height: 680px;
}

.botry-v1-hero-carousel .carousel-item img {
  width: 100%;
  height: 560px;
  object-fit: cover;
  object-position: center;
  filter: brightness(.55) saturate(.9);
  transition: transform .8s ease, filter .6s ease;
}

.botry-v1-hero-carousel .carousel-item.active img {
  transform: scale(1.03);
}

/* Caption */
.botry-v1-hero-carousel .carousel-caption {
  bottom: auto;
  top: 50%;
  transform: translateY(-50%);
  text-align: left;
  left: 8%;
  right: 8%;
  padding: 0;
  animation: fadeSlideUp .7s ease both;
}

@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(calc(-50% + 24px)); }
  to   { opacity: 1; transform: translateY(-50%); }
}

.botry-v1-hero-carousel .carousel-caption h1 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--c-white);
  text-shadow: 0 2px 16px rgba(45, 27, 60, .5);
  margin-bottom: .5rem;
}

.botry-v1-hero-carousel .carousel-caption .lead {
  font-size: clamp(.9rem, 2vw, 1.15rem);
  color: rgba(255,255,255,.88);
  letter-spacing: .08em;
  margin-bottom: 1.2rem;
}

/* Stats badges inside carousel */
.stats-badge {
  display: inline-block;
  background: rgba(195,142,200,.35);
  backdrop-filter: blur(8px);
  border: 1.5px solid rgba(195,142,200,.6);
  color: #fff;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .1em;
  padding: .3em .85em;
  border-radius: var(--radius-xl);
  margin-right: .5rem;
  margin-top: .4rem;
}

/* Carousel indicators */
.botry-v1-hero-carousel .carousel-indicators button {
  width: 32px;
  height: 4px;
  border-radius: 2px;
  border: none;
  background: rgba(255,255,255,.45);
  transition: background .3s, width .3s;
}

.botry-v1-hero-carousel .carousel-indicators button.active {
  width: 56px;
  background: var(--c-purple);
}

/* Carousel controls */
.botry-v1-hero-carousel .carousel-control-prev,
.botry-v1-hero-carousel .carousel-control-next {
  width: 52px;
  height: 52px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(195,142,200,.35);
  backdrop-filter: blur(8px);
  border-radius: 50%;
  opacity: 1;
  margin: 0 1.5rem;
  transition: background .25s;
}

.botry-v1-hero-carousel .carousel-control-prev:hover,
.botry-v1-hero-carousel .carousel-control-next:hover {
  background: rgba(195,142,200,.65);
}

/* ============================================================
   SECTION PADDING UTILITY
   ============================================================ */
.botry-v1-section-padding {
  padding: 5rem 0;
}

/* ============================================================
   SERVICE CARDS (三卡)
   ============================================================ */
.botry-v1-service-card {
  background: var(--c-white);
  border: 1.5px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: 2.4rem 2rem 2rem;
  text-align: center;
  height: 100%;
  position: relative;
  overflow: hidden;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s;
  box-shadow: var(--shadow-card);
}

.botry-v1-service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, var(--c-purple-pale) 0%, transparent 55%);
  opacity: 0;
  transition: opacity .35s;
  border-radius: inherit;
}

.botry-v1-service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: var(--c-purple);
}

.botry-v1-service-card:hover::before { opacity: 1; }

.botry-v1-service-icon {
  width: 72px;
  height: 72px;
  background: linear-gradient(135deg, var(--c-cream) 0%, var(--c-peach) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.2rem;
  font-size: 1.9rem;
  color: var(--c-plum-mid);
  border: 2px solid rgba(195,142,200,.3);
  position: relative;
  z-index: 1;
}

.botry-v1-service-card h3 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--c-plum);
  margin-bottom: .6rem;
  position: relative;
  z-index: 1;
}

.botry-v1-service-card p {
  font-size: .9rem;
  color: var(--c-text-muted);
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
  line-height: 1.6;
}



/* ============================================================
   ADVANTAGE SECTION
   ============================================================ */
.botry-v1-advantage-section {
  padding: 5rem 0;
  background: linear-gradient(160deg, #fff 0%, var(--c-cream) 100%);
  position: relative;
  overflow: hidden;
}

.botry-v1-advantage-section::after {
  content: '';
  position: absolute;
  right: -120px;
  top: -80px;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(195,142,200,.12) 0%, transparent 70%);
  pointer-events: none;
}

/* Founder tag pill */
.botry-v1-founder-tag {
  display: inline-block;
  background: var(--c-peach);
  border: 1px solid var(--c-peach-deep);
  color: var(--c-plum-mid);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .1em;
  padding: .3em 1em;
  border-radius: var(--radius-xl);
}

/* E-E-A-T quote block */
.botry-v1-eeat-quote {
  background: linear-gradient(135deg, var(--c-purple-pale) 0%, #f8f0fb 100%);
  border-left: 4px solid var(--c-purple);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 1.4rem 1.6rem;
  margin: 1.5rem 0;
  position: relative;
}

.botry-v1-eeat-quote p {
  color: var(--c-plum);
  font-size: .95rem;
  line-height: 1.75;
}

/* Stats boxes */
.botry-v1-stats-box {
  background: var(--c-white);
  border: 1.5px solid var(--c-border);
  border-radius: var(--radius-md);
  padding: 1.2rem 1rem;
  text-align: center;
  box-shadow: var(--shadow-card);
  transition: box-shadow .25s, transform .25s;
}

.botry-v1-stats-box:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.botry-v1-stats-number {
  display: block;
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--c-plum-mid);
  line-height: 1.1;
  margin-bottom: .25rem;
}

.botry-v1-stats-box p {
  font-size: .82rem;
  color: var(--c-text-muted);
  margin: 0;
}

/* GEO FAQ box */
.botry-v1-geo-faq-box {
  background: var(--c-white);
  border: 1.5px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}

.botry-v1-geo-faq-box::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 120px; height: 120px;
  background: radial-gradient(circle at top right, var(--c-purple-pale) 0%, transparent 70%);
  pointer-events: none;
}

.botry-v1-geo-faq-box h4 {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: var(--c-plum);
  font-weight: 700;
}

.botry-v1-geo-faq-box .fw-bold {
  color: var(--c-plum);
  font-size: .9rem;
}

.botry-v1-geo-faq-box .bg-white {
  background: var(--c-purple-pale) !important;
  border-left: 3px solid var(--c-purple);
  color: var(--c-plum);
  font-size: .88rem;
  line-height: 1.65;
}

/* text-purple utility */
.text-purple { color: var(--c-purple-lt) !important; }

/* ============================================================
   REGION TAGS + LONG-TAIL BOX
   ============================================================ */
.botry-v1-region-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
}

.botry-v1-region-tags span {
  display: inline-block;
  background: var(--c-peach);
  border: 1.5px solid var(--c-peach-deep);
  color: var(--c-plum-mid);
  font-size: .82rem;
  font-weight: 500;
  padding: .35em 1em;
  border-radius: var(--radius-xl);
  transition: background .2s, border-color .2s, transform .2s;
  cursor: default;
}

.botry-v1-region-tags span:hover {
  background: var(--c-purple-pale);
  border-color: var(--c-purple);
  transform: translateY(-2px);
}

.botry-v1-longtail-box {
  background: linear-gradient(135deg, var(--c-cream) 0%, var(--c-peach) 100%);
  border: 1.5px solid rgba(195,142,200,.3);
  border-radius: var(--radius-lg);
  padding: 2rem 2.4rem;
  margin-top: 1rem;
  box-shadow: var(--shadow-card);
}

.botry-v1-longtail-box p { color: var(--c-plum); }

/* ============================================================
   CONTACT SECTION
   ============================================================ */
.botry-v1-section-padding.contact-section,
section[style*="FFEFC5"] {
  background: var(--c-cream) !important;
}

/* ============================================================
   GEO KNOWLEDGE (bg-soft-peach)
   ============================================================ */
.bg-soft-peach,
section[style*="FFEAE0"] {
  background: var(--c-peach) !important;
}

.bg-soft-peach .bg-white,
section[style*="FFEAE0"] .bg-white {
  border: 1.5px solid rgba(195,142,200,.28) !important;
  box-shadow: var(--shadow-card);
  transition: box-shadow .25s, transform .25s;
}

.bg-soft-peach .bg-white:hover,
section[style*="FFEAE0"] .bg-white:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

/* round-5 variant */
.rounded-5 { border-radius: var(--radius-lg) !important; }

/* border-purple utility */
.border-purple { border-color: rgba(195,142,200,.4) !important; }

/* ============================================================
   CTA BUTTON
   ============================================================ */
.btn-lg.rounded-pill[style] {
  background: linear-gradient(135deg, var(--c-purple) 0%, var(--c-plum-mid) 100%) !important;
  color: #fff !important;
  border: none;
  box-shadow: 0 6px 24px rgba(195,142,200,.4);
  transition: box-shadow .3s, transform .25s;
  font-size: 1rem;
}

.btn-lg.rounded-pill[style]:hover {
  box-shadow: 0 10px 36px rgba(195,142,200,.55);
  transform: translateY(-2px);
}

/* ============================================================
   CONTACT INFO
   ============================================================ */
section[style*="FFEFC5"] h2,
section[style*="background: #FFEFC5"] h2 {
  color: var(--c-plum) !important;
}

section[style*="FFEFC5"] p {
  color: var(--c-plum);
  font-size: .95rem;
}

.badge.bg-purple,
.badge[style*="C38EC8"] {
  background: var(--c-purple-pale) !important;
  color: var(--c-plum-mid) !important;
  border: 1px solid rgba(195,142,200,.5);
  font-weight: 600;
  padding: .4em .85em;
  border-radius: var(--radius-sm);
}

/* Map iframe wrapper */
section[style*="FFEFC5"] [style*="iframe"],
section[style*="FFEFC5"] > .container [style*="border-radius: 30px"] {
  box-shadow: 0 8px 32px rgba(45,27,60,.15) !important;
}

/* ============================================================
   TYPOGRAPHY — Global overrides
   ============================================================ */
.display-5.fw-bold {
  font-family: var(--font-serif);
  letter-spacing: .02em;
}

.display-3 {
  font-family: var(--font-serif);
  letter-spacing: .03em;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 991.98px) {
  .botry-v1-hero-carousel .carousel-item img { height: 420px; }
  .botry-v1-section-padding { padding: 3.5rem 0; }
  .botry-v1-advantage-section { padding: 3.5rem 0; }
  .botry-v1-eeat-quote { padding: 1.1rem 1.2rem; }
  .botry-v1-geo-faq-box { margin-top: 2rem; }
}

@media (max-width: 767.98px) {
  .botry-v1-hero-carousel .carousel-caption { left: 5%; right: 5%; }
  .botry-v1-hero-carousel .carousel-caption h1 { font-size: 1.75rem; }
  .botry-v1-hero-carousel .carousel-item img { height: 340px; }
  .botry-v1-hero-carousel .carousel-control-prev,
  .botry-v1-hero-carousel .carousel-control-next { margin: 0 .5rem; }
  .botry-v1-service-card { padding: 1.8rem 1.4rem 1.6rem; }
  .botry-v1-longtail-box { padding: 1.4rem 1.2rem; }
  .botry-v1-stats-number { font-size: 1.75rem; }
}

@media (max-width: 575.98px) {
  .botry-v1-hero-carousel { border-radius: 0 0 var(--radius-lg) var(--radius-lg); }
  .botry-v1-hero-carousel .carousel-item img { height: 280px; }
  .stats-badge { font-size: .7rem; }
}

/* ============================================================
   SCROLL-IN FADE ANIMATION (JS-optional, graceful)
   ============================================================ */
@media (prefers-reduced-motion: no-preference) {
  .botry-v1-service-card,
  .botry-v1-stats-box,
  .botry-v1-geo-faq-box {
    animation: entryFade .55s ease both;
  }

  .col-md-4:nth-child(2) .botry-v1-service-card { animation-delay: .1s; }
  .col-md-4:nth-child(3) .botry-v1-service-card { animation-delay: .2s; }

  @keyframes entryFade {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0); }
  }
}

/*新加的*/

/* ============================================================
   BTN OUTLINE PURPLE — 最終覆蓋版（放最後，權重最高）
   ============================================================ */
a.btn-outline-purple,
.btn-outline-purple {
  border: 2px solid #a14d9e !important;
  color: #4a2d62 !important;
  background: transparent !important;
  border-radius: 40px !important;
  padding: .45rem 1.6rem !important;
  font-size: .85rem !important;
  font-weight: 600 !important;
  letter-spacing: .04em !important;
  display: inline-block !important;
  text-decoration: none !important;
  opacity: 1 !important;
  line-height: 1.5 !important;
  cursor: pointer !important;
  transition: background .25s, color .25s, box-shadow .25s !important;
  position: relative !important;
  z-index: 1 !important;
}

a.btn-outline-purple:hover,
a.btn-outline-purple:focus,
.btn-outline-purple:hover,
.btn-outline-purple:focus {
  background: #a14d9e !important;
  color: #ffffff !important;
  opacity: 1 !important;
  text-decoration: none !important;
  box-shadow: 0 4px 16px rgba(161, 77, 158, .4) !important;
  transform: none !important;
}


