/* ========================================
   江南國際旅行社有限公司 - 主樣式表
   ======================================== */

/* 基礎設定 */
html, body {
    height: 100%;
    margin: 0;
}

body {
    font-family: 'Noto Sans TC', sans-serif;
    scroll-behavior: smooth;
}

.playfair {
    font-family: 'Playfair Display', serif;
}

/* Hero 區塊 */
.hero-container {
    position: relative;
    height: 100vh;
    width: 100%;
    overflow: hidden;
}

.gray-base {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    z-index: 1;
}

.image-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
}

.content-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

/* 服務卡片 */
.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* 車輛圖片 */
.car-image {
    transition: transform 0.5s ease;
    height: 100%;
    width: 100%;
    object-fit: cover;
}

.car-image:hover {
    transform: scale(1.03);
}

/* 價格表格 */
.rate-table {
    border-collapse: collapse;
    width: 100%;
}

.rate-table th,
.rate-table td {
    border: 1px solid #e5e7eb;
    padding: 12px;
    text-align: center;
}

.rate-table th {
    background-color: #1e40af;
    color: white;
}

.rate-table tr:nth-child(even) {
    background-color: #f9fafb;
}

/* 圖片展示區 */
.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
}

.image-gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 0.5rem;
    height: 250px;
}

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

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

.image-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 0.75rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.image-gallery-item:hover .image-caption {
    transform: translateY(0);
}

/* 載入指示器 */
#lang-loader {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px 20px;
    border-radius: 30px;
    z-index: 9999;
    font-size: 14px;
}

/* ========================================
   導航欄響應式調整
   ======================================== */

/* 導航連結基礎樣式 - 防止文字換行 */
.nav-links a {
    white-space: nowrap;
}

/* 導航連結樣式 - 桌面版響應式調整 */
@media (max-width: 1024px) {
    .nav-links a {
        font-size: 0.8rem;
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
    .nav-links {
        gap: 0.25rem;
    }
}

/* 公司名稱在手機版適當縮小 */
@media (max-width: 640px) {
    .flex-shrink-0 .text-xl {
        font-size: 0.875rem;
    }
}