/* header */
.site-header {
margin: 0 40px;
}
/* org */
.grid-container {
	margin-left: auto;
	margin-right: auto;
	max-width: 100%;
	padding-left: 0px;
	padding-right: 0px;
}
/* Header */
.header{ position:sticky; top:0; z-index:50; background:rgba(255,255,255,.9); backdrop-filter: blur(8px); border-bottom:1px solid #eee;}
.header__inner{ height:64px; display:flex; align-items:center; justify-content:space-between; }
.header__brand{ font-weight:800; font-size: var(--text-lg); }
.nav{ display:flex; gap: var(--space-4); }
.nav__link{ color:var(--color-text); padding:.5rem .75rem; border-radius: .375rem; }
.nav__link--active, .nav__link:hover{ background:#f3f4f6; text-decoration:none; }

/* Hero */
.hero{ padding: var(--space-16) 0 var(--space-12); }
.hero__inner{ display:grid; grid-template-columns: 1.2fr 1fr; gap: var(--space-8); align-items:center; color:#fff; }
@media (max-width:1024px){ .hero__inner{ grid-template-columns:1fr; } }
.hero__title{ font-size: clamp(2rem, 3vw + 1rem, 3rem); margin-bottom: var(--space-4); color:#fff; }
.hero__subtitle{ color: var(--color-muted); margin-bottom: var(--space-6); color:#fff; }
/* Hero as background image */
/* 基準：先給 vh 當相容性後備 */
.hero {
  /* 1) 高度策略：至少 360px，目標佔 60vh，最多 720px */
  min-height: clamp(360px, 60vh, 720px);

  /* 2) 直向置中內容 */
  display: flex;
  align-items: center;

  /* 3) 背景圖本來就有 */
  background-image: var(--hero-bg);
  background-size: cover;
  background-position: 65% center; /* 右偏一點較好構圖，可依圖調整 */
  background-repeat: no-repeat;

  /* 建議保留些內距 */
  padding: clamp(24px, 6vw, 64px) 0;
}

/* 支援新單位時，用 svh 更穩（不受手機瀏覽器工具列影響） */
@supports (height: 1svh) {
  .hero { min-height: clamp(360px, 60svh, 720px); }
}

/* 平板 / 手機微調 */
@media (max-width: 1024px) {
  .hero { background-position: center; } /* 縮小時置中 */
}

/* 讓文字不被背景干擾（可依喜好調淡或移除） */
.hero::after{
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero__inner{ position: relative; z-index: 1; }

@media (max-width:1024px){
  .hero{ background-position: center; } /* 手機置中 */
}

/* Carousel */
.carousel{ overflow:hidden; }
.carousel__track{ display:flex; gap: var(--space-4); scroll-snap-type:x mandatory; overflow-x:auto; padding-bottom:.5rem; }
.carousel__item{ min-width: 260px; scroll-snap-align:start; }
.carousel__item .card{ height:100%; }

/* Carousel  */

 /* 優化的無限循環輪播樣式 */
  :root {
      --carousel-primary: #5a6c57;
      --carousel-secondary: #666666;
      --carousel-white: #ffffff;
      --carousel-shadow: rgba(0, 0, 0, 0.1);
      --carousel-transition: cubic-bezier(0.4, 0, 0.2, 1);

      /* 響應式變數 */
      --slide-width: min(320px, 100vw);
      --slide-height: min(180px, 50vw);
      --slide-gap: min(24px, 3vw);
      --nav-size: min(50px, 12vw);
  }

    .activities-events-section {
        padding: 0 0 clamp(30px, 6vw, 60px) 0;
        background: var(--carousel-white);
        overflow: hidden;
        position: relative;
    }

    .section-header {
        text-align: center;
        margin-bottom: clamp(30px, 6vw, 50px);
        padding: 0 12px;
    }


    .subtitle {
        font-size: clamp(0.9rem, 2.5vw, 1.1rem);
        color: var(--carousel-secondary);
        margin: 0;
        font-weight: 400;
    }

    .carousel-container {
        position: relative;
        width: 100%;
    }

    .carousel-viewport {
        /* width: 100%; */
        overflow: hidden;
        position: relative;
    }

    .carousel-slider {
        display: flex;
        align-items: center;
        transition: transform 0.6s var(--carousel-transition);
        will-change: transform;
        backface-visibility: hidden;
        perspective: 1000px;
        padding: 20px 0;

    }

    .slide-item {
        flex: 0 0 auto;
        width: var(--slide-width);
        height: var(--slide-height);
        margin-right: var(--slide-gap);
        border-radius: clamp(8px, 2vw, 16px);
        overflow: hidden;
        box-shadow: 0 4px 10px var(--carousel-shadow);
        transition: all 0.4s var(--carousel-transition);
        cursor: pointer;
        position: relative;
    }

    .slide-item::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(45deg, transparent 70%, rgba(255, 255, 255, 0.1) 100%);
        opacity: 0;
        transition: opacity 0.3s ease;
        z-index: 1;
    }

    .slide-item:hover {
        transform: translateY(clamp(-3px, -1vw, -8px)) scale(1.02);
        box-shadow: 0 clamp(8px, 2vw, 10px) clamp(10px, 5vw, 10px) rgba(0, 0, 0, 0.15);
    }

    .slide-item:hover::before {
        opacity: 1;
    }

    .slide-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.4s var(--carousel-transition);
        display: block;
    }

    .slide-item:hover img {
        transform: scale(1.0);
    }

    /* 導航箭頭 */
    .carousel-nav {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        background: rgba(255, 255, 255, 0.95);
        border: 1px solid rgba(0, 0, 0, 0.08);
        width: var(--nav-size);
        height: var(--nav-size);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all 0.3s var(--carousel-transition);
        z-index: 10;
        backdrop-filter: blur(20px);
        color: #2c3e50;
        padding: 0;
        outline: none;
    }

    .carousel-nav:hover {
        background: var(--carousel-white);
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
        transform: translateY(-50%) scale(1.1);
        border-color: var(--carousel-primary);
    }

    .carousel-nav:active {
        transform: translateY(-50%) scale(0.95);
    }

    .prev-nav {
        left: clamp(15px, 3vw, 30px);
    }

    .next-nav {
        right: clamp(15px, 3vw, 30px);
    }

    /* 導航點 */
    .carousel-dots {
        display: flex;
        justify-content: center;
        gap: clamp(8px, 2vw, 12px);
        margin-top: clamp(20px, 5vw, 30px);
        padding: 0 20px;
    }

    .dot {
        width: clamp(10px, 2.5vw, 12px);
        height: clamp(3px, 1vw, 4px);
        padding: 0;
        border: none;
        background-color: #d1d5db;
        cursor: pointer;
        transition: all 0.3s var(--carousel-transition);
        border-radius: 2px;
        outline: none;
    }

    .dot.active {
        background-color: var(--carousel-primary);
        transform: scale(1.4);
        width: clamp(20px, 4vw, 24px);
    }

    .dot:hover:not(.active) {
        background-color: #9ca3af;
        transform: scale(1.2);
    }

    /* 進度條 */
    .carousel-progress {
        width: 100%;
        height: 2px;
        background: rgba(0, 0, 0, 0.1);
        margin-top: 20px;
        border-radius: 1px;
        overflow: hidden;
    }

    .progress-bar {
        height: 100%;
        background: linear-gradient(90deg, var(--carousel-primary), #7ba877);
        width: 20%;
        transition: width 4s linear;
        border-radius: 1px;
    }

    /* 響應式優化 */
    @media (max-width: 1400px) {
        :root {
            --slide-width: min(380px, 82vw);
            --slide-height: min(220px, 48vw);
        }
    }

    @media (max-width: 1200px) {
        :root {
            --slide-width: min(350px, 80vw);
            --slide-height: min(200px, 45vw);
            --slide-gap: min(20px, 2.5vw);
        }
    }

    @media (max-width: 992px) {
        :root {
            --slide-width: min(320px, 75vw);
            --slide-height: min(180px, 42vw);
            --nav-size: min(45px, 11vw);
        }
    }

    @media (max-width: 768px) {
        :root {
            --slide-width: min(300px, 85vw);
            --slide-height: min(170px, 50vw);
            --slide-gap: min(16px, 2vw);
            --nav-size: min(42px, 10vw);
        }

        .carousel-nav {
            opacity: 0.9;
        }

        .carousel-nav:hover {
            opacity: 1;
        }
         .site-header {
          margin: 0 0 0 24px;
        }
        .gp-icon svg {
          height: 1.5em;
          width: 1.5em;
          top: .125em;
          position: relative;
         }
        .mobile-menu-control-wrapper .menu-toggle, .mobile-menu-control-wrapper .menu-toggle:hover, .mobile-menu-control-wrapper .menu-toggle:focus, .has-inline-mobile-toggle #site-navigation.toggled  {
        background-color:  rgba(0, 0, 0, 0);
        }
    }

    @media (max-width: 480px) {
        :root {
            --slide-width: min(280px, 88vw);
            --slide-height: min(160px, 52vw);
            --slide-gap: min(12px, 1.5vw);
            --nav-size: min(40px, 9vw);
        }

        .activities-events-section {
            padding: 40px 0 30px 0;
        }
    }

    @media (max-width: 360px) {
        :root {
            --slide-width: min(260px, 90vw);
            --slide-height: min(150px, 55vw);
            --slide-gap: min(10px, 1vw);
        }

    }

    /* 載入狀態 */
    .slide-item img {
        background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
        background-size: 200% 100%;
        animation: loading 1s infinite;
    }

    @keyframes loading {
        0% {
            background-position: 200% 0;
        }

        100% {
            background-position: -200% 0;
        }
    }

    .slide-item img[src] {
        animation: none;
        background: none;
    }

    /* 高對比度模式支持 */
    @media (prefers-contrast: high) {
        .carousel-nav {
            border-width: 2px;
            border-color: #000;
        }

        .dot {
            border: 1px solid #000;
        }

        .dot.active {
            background-color: #000;
        }
    }

    /* 減少動畫模式支持 */
    @media (prefers-reduced-motion: reduce) {

        .carousel-slider,
        .slide-item,
        .carousel-nav,
        .dot,
        .progress-bar {
            transition-duration: 0.1s;
        }

        .slide-item:hover {
            transform: none;
        }
    }

/* Feature */
.feature{ display:flex; gap: var(--space-4); align-items:flex-start; }
.feature__icon{ width:40px; height:40px; border-radius:12px; display:grid; place-items:center; background:var(--color-bg); }
.feature__title{ margin:0; font-weight:700; }
.feature__desc{ margin:.25rem 0 0; color: var(--color-bg); }

/* CTA */
.cta{ background: linear-gradient(180deg, #f0f9ff, #fff); border-top:1px solid #e6f0ff; border-bottom:1px solid #e6f0ff; }
.cta__box{ display:flex; align-items:center; justify-content:space-between; gap: var(--space-6); }
@media (max-width:768px){ .cta__box{ flex-direction:column; align-items:flex-start; } }

/* Footer */
.footer{ padding: var(--space-12) 0; background:#0b1220; color:#cbd5e1; }
.footer a{ color:#e2e8f0; }
.footer__cols{ display:grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: var(--space-8); }
@media (max-width:1024px){ .footer__cols{ grid-template-columns:1fr 1fr; } }
@media (max-width:640px){ .footer__cols{ grid-template-columns:1fr; } }
.footer__brand{ font-weight:800; font-size: var(--text-xl); margin-bottom: var(--space-4); }
.footer__bottom{ margin-top: var(--space-8); border-top:1px solid rgba(255,255,255,.1); padding-top: var(--space-4);
                 display:flex; justify-content:space-between; gap: var(--space-4); }
@media (max-width:640px){ .footer__bottom{ flex-direction:column; } }


/* Grid Layout */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 4rem;
}

/* Responsive Grid */
@media (max-width: 1024px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

/* Interest Tile Styling */
.interest-tile {
  position: relative;
  display: block;
  text-decoration: none;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  aspect-ratio: 4/3; /* 保持固定比例 */
}

.interest-tile:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* Image Styling */
.interest-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.interest-tile:hover img {
  transform: scale(1.05);
}

/* Text Overlay */
.interest-tile span {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: rgba(110 , 110, 110, 0.3); /* 背景 */
  color: white;
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.4;
  padding: 20px;
  transition: background-color 0.3s ease;
}

.interest-tile:hover span {
  background: rgba(32, 50, 40, 0.8); /* 深綠色背景 */
}

/* Text Styling */
.interest-tile span br {
  margin-bottom: 0.5rem;
}


/* Destination area */
.destinations{
  background: var(--panel);
  padding: var(--space-12) 0;
}
.destinations__grid{
  display:grid;
  grid-template-columns: 1fr 1.3fr;
  align-items:center;
  gap: clamp(var(--space-6), 4vw, var(--space-12));
}
.destinations__copy h2{
  font-size: var(--text-2xl);
  line-height:1.25;
  margin: 0 0 var(--space-4);
  color:#466160;
}
.destinations__copy p{
  color:#4b5563;
  margin: 0 0 var(--space-6);
  font-size: var(--text-base);
}

/* 膠囊按鈕群 */
.chip-list{
  display:flex; flex-wrap:wrap; gap: var(--space-3);
  margin:0; padding:0; list-style:none;
}
.chip{
  display:inline-flex; align-items:center; justify-content:center;
  padding: .6rem 1rem;
  background: var(--chip-bg);
  color: var(--chip-fg);
  border-radius: 999px;
  font-weight:600;
  text-decoration:none;
  font-size: .95rem;
  box-shadow: 0 1px 0 rgba(0,0,0,.06), 0 1px 8px rgba(0,0,0,.05) inset;
}
.chip:hover, .chip:focus-visible{
  background: var(--color-bg);
  outline: 1px var(--chip-bg);
  color:var(--chip-bg);
}

/* 地圖 */
.destinations__map{
  aspect-ratio: 10/9;
  background: #eef1f2;
  border-radius: 16px;
  padding: clamp(var(--space-4), 2vw, var(--space-8));
  box-shadow: 0 1px 2px rgba(0,0,0,.06);
}
.destinations__map svg{ width:100%; height:100%; display:block; }

/* 州互動（之後 JS 可加高亮 class） */
.destinations__map [id]{ transition: fill .2s, stroke .2s; }
.destinations__map .is-active{ fill:#cfe3df; stroke:#41615f; }

/* RWD：≤ 900px 改為上下排 */
@media (max-width: 900px){
  .destinations__grid{ grid-template-columns: 1fr; }
  .destinations__map{ order: 2; }
  .destinations__copy{ order: 1; }
  .destinations__copy h2{ font-size: var(--text-xl); }
}
.au-map [id] { transition: fill .2s, stroke .2s; }
.au-map .is-active path,
.au-map .is-active circle { fill: #cfe3df; stroke: #466160; }

/* Blog Articles Section */
.home-blog {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.home-blog .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}


.section-header .description {
    font-size: 0.95rem;
    color: #888;
    margin-bottom: 0;
    margin-top:0.5rem;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

.blog-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.blog-card a {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.blog-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #e9ecef;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-card:hover .blog-image img {
    transform: scale(1.05);
}

.placeholder-image {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.placeholder-image::before {
    content: "📝";
    font-size: 2rem;
    opacity: 0.5;
}

.blog-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-date {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 8px;
    font-weight: 500;
}

.blog-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    line-height: 1.4;
    margin-bottom: 15px;
    flex: 1;
    display: -webkit-box;
    /* -webkit-line-clamp: 2; */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
}

.blog-tags .tag {
    font-size: 0.75rem;
    color: #0066cc;
    background: rgba(0, 102, 204, 0.1);
    padding: 4px 8px;
    border-radius: 12px;
    font-weight: 500;
}

.blog-cta {
    text-align: center;
}

.btn-more {
    display: inline-flex;
    align-items: center;
    padding: 12px 30px;
    background: white;
    color: #333;
    text-decoration: none;
    border: 1px solid #e9ecef;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
    gap: 8px;
}

.btn-more:hover {
    background: #333;
    color: white;
    transform: translateX(5px);
}

.no-posts {
    grid-column: 1 / -1;
    text-align: center;
    color: #888;
    font-style: italic;
    padding: 40px 0;
}

/* 響應式設計 */
@media (max-width: 992px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    .section-head h2 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .home-blog {
        padding: 60px 0;
    }

    .blog-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .section-head {
        margin-bottom: 40px;
    }

    .section-head h2 {
        font-size: 1.8rem;
    }

    .blog-image {
        height: 180px;
    }
}

/* features-section */

/* Features Section */
.features-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    position: relative;
    overflow: hidden;
}

/* 上下虛線邊框 */
.features-section::before{
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 3px;
    background-image: repeating-linear-gradient(
        90deg,
        #2563eb 0,
        #2563eb 10px,
        transparent 10px,
        transparent 20px
    );
}

.features-section::before {
    top: 0;
}

.features-section::after {
    bottom: 0;
}

.features-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    align-items: start;
}

.feature-item {
    text-align: center;
    padding: 30px 20px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.feature-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(37, 99, 235, 0.1);
    background: rgba(255, 255, 255, 0.95);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(245, 158, 11, 0.1));
    border-radius: 20px;
    padding: 8px;
    transition: all 0.3s ease;
}

.feature-item:hover .feature-icon {
    transform: scale(1.1);
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.15), rgba(245, 158, 11, 0.15));
}

.feature-icon svg {
    width: 48px;
    height: 48px;
}

.feature-item h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 5px 0;
    letter-spacing: -0.5px;
}

.feature-item .subtitle {
    font-size: 1rem;
    color: #64748b;
    margin: 0 0 20px 0;
    font-weight: 500;
}

.feature-description {
    text-align: left;
    max-width: 200px;
    margin: 0 auto;
}

.feature-description p {
    font-size: 0.9rem;
    color: #475569;
    line-height: 1.6;
    margin: 0 0 8px 0;
    padding-left: 12px;
    position: relative;
}

.feature-description p::before {
    content: '•';
    color: #2563eb;
    font-weight: bold;
    position: absolute;
    left: 0;
    top: 0;
}

.feature-description p:last-child {
    margin-bottom: 0;
}

/* 背景裝飾 */
.features-section::before {
    background:
        radial-gradient(circle at 20% 30%, rgba(37, 99, 235, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(245, 158, 11, 0.03) 0%, transparent 50%);
}

/* 響應式設計 */
@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .features-section {
        padding: 60px 0;
    }
}

@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .feature-item {
        padding: 25px 15px;
    }

    .features-section {
        padding: 50px 0;
    }

    .feature-icon {
        width: 70px;
        height: 70px;
        margin-bottom: 15px;
    }

    .feature-icon svg {
        width: 40px;
        height: 40px;
    }

    .feature-item h3 {
        font-size: 1.2rem;
    }

    .feature-description {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .features-section .container {
        padding: 0 15px;
    }

    .feature-item {
        padding: 20px 15px;
    }

    .feature-description p {
        font-size: 0.85rem;
    }
}

/* Contact Section */
.contact-section {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.contact-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

/* Section Titles */
.section-title h2 {
    font-size: 1.8rem;
    font-weight: 600;
    color: #333;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

/* .section-title h2::before,
.section-title h2::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 80px;
    height: 1px;
    background-color: #ddd;
}

.section-title h2::before {
    left: -10px;
}

.section-title h2::after {
    right: -10px;
} */

/* Office Section */
.office-section {
    text-align: center;
}

.office-image {
    margin-bottom: 30px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}

.office-image img {
  display:block;
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.office-image:hover img {
    transform: scale(1.05);
}

.office-locations {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.location-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: 2px solid #00bcd4;
    border-radius: 8px;
    text-decoration: none;
    color: #00bcd4;
    font-weight: 500;
    transition: all 0.3s ease;
    background: white;
}

.location-btn.goldcoast {
    border-color: #ffc107;
    color: #ffc107;
}

.location-btn:hover {
    background-color: #00bcd4;
    color: white;
    transform: translateX(5px);
}

.location-btn.goldcoast:hover {
    background-color: #ffc107;
    color: white;
}

.company-type {
    font-size: 0.9rem;
    opacity: 0.8;
}

.arrow-icon {
    transition: transform 0.3s ease;
}

.location-btn:hover .arrow-icon {
    transform: translateX(3px);
}

/* LINE Consultation Section */
.line-consultation {
    background: white;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}

.line-content {
    display: flex;
    margin: 0 auto;
    justify-content: center;
    flex-direction: column;
    align-items: center;
}

.line-description {
    margin-bottom: 30px;
}

.line-description p {
    font-size: 1rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 8px;
}

.line-description p:last-child {
    margin-bottom: 0;
}

.line-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #00c851, #00a63f);
    color: white;
    padding: 16px 32px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 200, 81, 0.3);
}

.line-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 200, 81, 0.4);
    background: linear-gradient(135deg, #00a63f, #007e33);
}

.line-btn .arrow-icon {
    transition: transform 0.3s ease;
}

.line-btn:hover .arrow-icon {
    transform: translateX(3px);
}

/* Social Section */
.social-section {
    /* border-top: 1px solid #eee; */
    padding-top: 30px;
}

.section-subtitle h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    text-align: center;
    margin-bottom: 25px;
    position: relative;
}

.section-subtitle h3::before,
.section-subtitle h3::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 60px;
    height: 1px;
    background-color: #ddd;
}

.section-subtitle h3::before {
    left: -5px;
}

.section-subtitle h3::after {
    right: -5px;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border: 2px solid #ddd;
    border-radius: 50%;
    color: #666;
    text-decoration: none;
    transition: all 0.3s ease;
    background: white;
}

.social-icon:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.social-icon.instagram:hover {
    border-color: #e4405f;
    color: #e4405f;
    background: linear-gradient(45deg, #f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%);
    color: white;
}

.social-icon.facebook:hover {
    border-color: #1877f2;
    background-color: #1877f2;
    color: white;
}

.social-icon.youtube:hover {
    border-color: #ff0000;
    background-color: #ff0000;
    color: white;
}

.social-icon.tiktok:hover {
    border-color: #000;
    background-color: #000;
    color: white;
}

.social-icon.wechat:hover {
    border-color: #07c160;
    background-color: #07c160;
    color: white;
}

/* 響應式設計 */
@media (max-width: 1024px) {
    .contact-grid {
        gap: 60px;
    }

    .section-title h2::before,
    .section-title h2::after {
        width: 60px;
    }

    .section-title h2::before {
        left: -80px;
    }

    .section-title h2::after {
        right: -80px;
    }

    .section-subtitle h3::before,
    .section-subtitle h3::after {
        width: 40px;
    }

    .section-subtitle h3::before {
        left: -60px;
    }

    .section-subtitle h3::after {
        right: -60px;
    }
}

@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .contact-section {
        padding: 60px 0;
    }

    .line-consultation {
        padding: 30px 20px;
    }

    .section-title h2::before,
    .section-title h2::after,
    .section-subtitle h3::before,
    .section-subtitle h3::after {
        display: none;
    }

    .office-locations {
        flex-direction: column;
        align-items: center;
    }

    .location-btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }

    .social-icons {
        gap: 12px;
    }

    .social-icon {
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 480px) {
    .contact-section .container {
        padding: 0 15px;
    }

    .section-title h2 {
        font-size: 1.5rem;
    }

    .line-btn {
        width: 100%;
        justify-content: center;
        padding: 14px 24px;
        font-size: 1rem;
    }

    .office-image img {
        height: 250px;
    }
}

/* ---- */

/* Testimonials Section */
.testimonials-section {
    padding: 80px 0 60px;
    background-color: #fff;
}

.testimonials-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

/* Testimonials Grid */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4rem;
    margin-bottom: 40px;
}

/* .testimonial-card {
    background: white;
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
} */

.testimonial-card{
  position: relative;
  overflow: visible;
  /* 讓預留高度與頭像大小一起縮放 */
  --avatar-size: clamp(48px, 6vw, 64px);
  --header-float: clamp(18px, 3.5vw, 28px); /* 浮出卡片的高度 */
  padding: 3rem 1.5rem 1.5rem;
  background: white;
  border-radius: 16px;
    transition: all 0.3s ease;
    border: 1px solid #f1f1f1;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 2px 16px 10px rgba(0, 0, 0, 0.12);
}

/* Card Header */
/* .card-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
     width: fit-content;
  margin-inline: auto;
} */

/* 2) 浮出置中：header 絕對定位在卡片頂部中央 */
.card-header{
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: calc(0px - var(--header-float)); /* 往上漂出卡片邊框 */
  display: flex;
  align-items: center;
  gap: 16px;
  width: max-content;
  margin: 0; /* 避免不同瀏覽器額外空隙 */
  z-index: 2;
  background: white;
  padding: 0 2rem;
}

.avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    background-color: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 如果沒有圖片，顯示預設樣式 */
.avatar:empty::before {
    content: '👤';
    font-size: 24px;
    color: #999;
}

.user-info {
    flex: 1;
}

.sharer {
    font-size: 0.85rem;
    color: #999;
}

.name {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
}

/* Card Content */
.card-content .date {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 10px;
}

.achievement {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    line-height: 1.4;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.testimonial-text {
    margin-bottom: 20px;
}

.testimonial-text p {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.testimonial-text p:last-child {
    margin-bottom: 0;
}

.more-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #666;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    background: #f8f9fa;
    padding: 8px 16px;
    border-radius: 20px;
}

.more-btn:hover {
    color: #2563eb;
    background: #e3f2fd;
    transform: translateX(3px);
}

.more-btn svg {
    transition: transform 0.3s ease;
}

.more-btn:hover svg {
    transform: translateX(2px);
}

/* Consultation CTA Section */
.consultation-cta {
    background: linear-gradient(135deg, #2c5034, #34495e);
    color: white;
    padding: 50px 0;
    text-align: center;
}

.consultation-cta .container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.consultation-cta h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 30px;
    color: white;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s ease;
    min-width: 180px;
    justify-content: center;
}

.download-btn {
    background: white;
    color: #2c3e50;
    border: 2px solid white;
}

.download-btn:hover {
    background: transparent;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.2);
}

.contact-btn {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.contact-btn:hover {
    background: white;
    color: #2c3e50;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.2);
}

/* 響應式設計 */
@media (max-width: 1024px) {
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .testimonial-card:nth-child(3) {
        grid-column: 1 / -1;
        max-width: 500px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .testimonials-section {
        padding: 60px 0 50px;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 45px;
    }

    .testimonial-card:nth-child(3) {
        grid-column: auto;
        max-width: none;
    }

    .section-header {
        margin-bottom: 40px;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .cta-btn {
        width: 100%;
        max-width: 300px;
    }

    .consultation-cta h3 {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {

     .testimonials-section {
        padding: 60px 0 50px;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 45px;
    }

    .testimonial-card:nth-child(3) {
        grid-column: auto;
        max-width: none;
    }

    .testimonial-card {
        padding: 3rem 1rem 1.5rem;
    }

    .card-header {
        gap: 12px;
        margin-bottom: 15px;
    }

    .avatar {
        width: 45px;
        height: 45px;
    }

    .achievement {
        font-size: 1rem;
    }

    .testimonial-text p {
        font-size: 0.85rem;
    }
}
