:root {
    --primary-sky: #0ea5e9;
    --primary-sky-dark: #0284c7;
    --primary-sky-deep: #0369a1;
    --primary-sky-light: #e0f2fe;
    --ocean-teal: #06b6d4;
    --ocean-teal-dark: #0891b2;
    --sand-accent: #f59e0b;
    --sand-accent-hover: #d97706;
    --coral-accent: #f97316;
    --bg-light: #f8fafc;
    --card-bg: #ffffff;
    --text-dark: #0f172a;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

html, body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans TC", sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    margin: 0;
    padding: 0;
    line-height: 1.6;
    overflow-x: hidden;
}

/* 全站自訂精緻捲軸 */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #94a3b8;
    border-radius: 6px;
    border: 2px solid #f1f5f9;
}

::-webkit-scrollbar-thumb:hover {
    background: #0284c7;
}

/* 頂部天藍導航列 */
.navbar-sky {
    background: linear-gradient(135deg, #0284c7 0%, #0ea5e9 100%);
    box-shadow: 0 4px 20px rgba(14, 165, 233, 0.25);
    padding: 0.65rem 1rem;
}

.navbar-sky .navbar-brand {
    color: #ffffff;
    font-weight: 700;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.navbar-sky .brand-title {
    white-space: nowrap;
    letter-spacing: 0.5px;
}

.navbar-logo {
    max-height: 36px;
    width: auto;
    object-fit: contain;
    border-radius: 6px;
    background-color: rgba(255, 255, 255, 0.95);
    padding: 2px 6px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.navbar-logo:hover {
    transform: scale(1.04);
}

.footer-logo {
    max-height: 48px;
    width: auto;
    object-fit: contain;
}

.navbar-sky .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.45rem 0.65rem !important;
    border-radius: 8px;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    transition: all 0.2s ease-in-out;
}

.navbar-sky .nav-link:hover,
.navbar-sky .nav-link.active {
    color: #ffffff !important;
    background-color: rgba(255, 255, 255, 0.18);
    transform: translateY(-1px);
}

/* Hero Banner */
.hero-banner {
    background: linear-gradient(180deg, #0369a1 0%, #0284c7 60%, #0ea5e9 100%);
    color: white;
    padding: 4.5rem 1rem 3.5rem 1rem;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.hero-banner h1 {
    font-size: 2.5rem;
    font-weight: 800;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
    margin-bottom: 1rem;
    color: #ffffff;
}

.hero-banner p.lead {
    font-size: 1.25rem;
    max-width: 800px;
    margin: 0 auto 1.8rem auto;
    color: #f0f9ff;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
    opacity: 0.98;
}

.hero-banner .btn-hero-outline {
    background-color: rgba(255, 255, 255, 0.15);
    border: 2px solid #ffffff;
    color: #ffffff !important;
    font-weight: 600;
    backdrop-filter: blur(4px);
    transition: all 0.25s ease;
}

.hero-banner .btn-hero-outline:hover {
    background-color: #ffffff;
    color: #0284c7 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.hero-banner .hero-tag {
    background-color: rgba(255, 255, 255, 0.92);
    color: #0369a1 !important;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    font-size: 0.9rem;
}

/* 首頁輪播特效 (切換動畫、Ken Burns 動態縮放 & 視覺強化) */
#heroCarousel {
    position: relative;
    border-radius: 1.25rem;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
    background-color: #0f172a;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

#heroCarousel:hover {
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

#heroCarousel.carousel-fade .carousel-item {
    height: 420px;
    overflow: hidden;
    background-color: #0f172a;
    opacity: 0;
    transition-duration: 0.9s;
    transition-property: opacity, transform;
    transform: scale(0.96);
}

#heroCarousel.carousel-fade .carousel-item.active,
#heroCarousel.carousel-fade .carousel-item-next.carousel-item-start,
#heroCarousel.carousel-fade .carousel-item-prev.carousel-item-end {
    opacity: 1;
    transform: scale(1);
}

#heroCarousel.carousel-fade .active.carousel-item-start,
#heroCarousel.carousel-fade .active.carousel-item-end {
    opacity: 0;
    transform: scale(1.05);
}

#heroCarousel .carousel-img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    transform: scale(1);
    transition: transform 6s cubic-bezier(0.25, 1, 0.5, 1);
}

#heroCarousel .carousel-item.active .carousel-img {
    animation: kenburns 10s ease-in-out infinite alternate;
}

@keyframes kenburns {
    0% {
        transform: scale(1) translateY(0);
    }
    100% {
        transform: scale(1.1) translateY(-10px);
    }
}

/* 輪播指示器動態效果 */
#heroCarousel .carousel-indicators {
    margin-bottom: 1.2rem;
}

#heroCarousel .carousel-indicators [data-bs-target] {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin: 0 5px;
    background-color: rgba(255, 255, 255, 0.5);
    border: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

#heroCarousel .carousel-indicators .active {
    width: 28px;
    border-radius: 10px;
    background-color: #ffffff;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.9);
}

/* 輪播切換按鈕動畫效果 */
#heroCarousel .carousel-control-prev,
#heroCarousel .carousel-control-next {
    width: 12%;
    opacity: 0;
    transition: all 0.35s ease;
}

#heroCarousel:hover .carousel-control-prev,
#heroCarousel:hover .carousel-control-next {
    opacity: 0.85;
}

#heroCarousel .carousel-control-prev:hover,
#heroCarousel .carousel-control-next:hover {
    opacity: 1;
}

#heroCarousel .carousel-control-prev-icon,
#heroCarousel .carousel-control-next-icon {
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(6px);
    border-radius: 50%;
    padding: 1.5rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    background-size: 50% 50%;
    transition: transform 0.25s ease, background-color 0.25s ease;
}

#heroCarousel .carousel-control-prev:hover .carousel-control-prev-icon {
    transform: scale(1.1) translateX(-3px);
    background-color: rgba(2, 132, 199, 0.9);
}

#heroCarousel .carousel-control-next:hover .carousel-control-next-icon {
    transform: scale(1.1) translateX(3px);
    background-color: rgba(2, 132, 199, 0.9);
}

/* 按鈕風格 */
.btn-sky {
    background-color: var(--primary-sky);
    border-color: var(--primary-sky);
    color: #ffffff;
    font-weight: 600;
    border-radius: 50px;
    padding: 0.6rem 1.6rem;
    transition: all 0.25s ease;
}

.btn-sky:hover {
    background-color: var(--primary-sky-dark);
    border-color: var(--primary-sky-dark);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(14, 165, 233, 0.4);
    transform: translateY(-2px);
}

.btn-cta {
    background: linear-gradient(135deg, #f59e0b 0%, #f97316 100%);
    border: none;
    color: #ffffff;
    font-weight: 700;
    border-radius: 50px;
    padding: 0.75rem 2rem;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
    transition: all 0.25s ease;
}

.btn-cta:hover {
    background: linear-gradient(135deg, #d97706 0%, #ea580c 100%);
    color: #ffffff;
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.5);
    transform: translateY(-2px);
}

.btn-outline-sky {
    color: var(--primary-sky-dark);
    border: 2px solid var(--primary-sky);
    font-weight: 600;
    border-radius: 50px;
    padding: 0.5rem 1.4rem;
    transition: all 0.2s ease;
}

.btn-outline-sky:hover, .btn-outline-sky.active {
    background-color: var(--primary-sky);
    color: #ffffff;
    border-color: var(--primary-sky);
}

/* 卡片與容器樣式 */
.island-card {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid rgba(14, 165, 233, 0.12);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
    transition: all 0.3s ease;
    overflow: hidden;
    height: 100%;
}

.island-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(14, 165, 233, 0.15);
    border-color: rgba(14, 165, 233, 0.3);
}

.card-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(2, 132, 199, 0.9);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    backdrop-filter: blur(4px);
}

.price-tag {
    color: var(--coral-accent);
    font-weight: 800;
    font-size: 1.45rem;
}

.price-unit {
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: normal;
}

/* 價格計算機專用面板 */
.calculator-box {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 2px dashed #38bdf8;
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2.5rem;
}

/* 相簿網格 */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.gallery-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.08);
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(0deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 100%);
    color: #ffffff;
    padding: 1rem 0.8rem 0.6rem 0.8rem;
    font-size: 0.95rem;
    font-weight: 500;
}

/* 頁尾 */
.footer-sky {
    background: #0f172a;
    color: #94a3b8;
    padding: 3.5rem 1rem 2rem 1rem;
    margin-top: 4rem;
}

.footer-sky h5 {
    color: #ffffff;
    font-weight: 700;
    margin-bottom: 1.2rem;
}

.footer-sky a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-sky a:hover {
    color: var(--primary-sky);
}

/* 浮動按鈕群組與回到頂端 */
.floating-actions {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
}

.back-to-top-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: #0284c7;
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.back-to-top-btn.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top-btn:hover {
    background-color: #0369a1;
    color: #ffffff;
    transform: translateY(-3px) scale(1.08);
    box-shadow: 0 8px 20px rgba(2, 132, 199, 0.5);
}

/* 浮動 LINE 按鈕 */
.line-floating-btn {
    background-color: #06c755;
    color: white;
    border-radius: 50px;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 0.95rem;
    box-shadow: 0 6px 20px rgba(6, 199, 85, 0.45);
    text-decoration: none;
    transition: all 0.3s ease;
}

.line-floating-btn:hover {
    background-color: #05b34c;
    color: white;
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 10px 25px rgba(6, 199, 85, 0.55);
}

/* 燈箱 Modal */
.lightbox-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.88);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    padding: 1.5rem;
}

.lightbox-content {
    max-width: 90%;
    max-height: 85vh;
    position: relative;
    text-align: center;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    background: none;
    border: none;
}