/* 全域樣式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans TC', sans-serif;
    line-height: 1.6;
    color: #333;
}

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

/* 導航欄 */
.navbar {
    background-color: #2c3e50;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.nav-brand {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: #f39c12;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: #fff;
    margin: 3px 0;
    transition: 0.3s;
}

/* 首頁橫幅 */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
                url('images/民宿外觀.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    margin-top: 70px;
}

.hero-content {
    animation: fadeInUp 1s ease-in-out;
}

.hero-title {
    font-size: 4.5rem;
    margin-bottom: 2rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 2rem 3rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    display: inline-block;
    border: 3px solid #f39c12;
    backdrop-filter: blur(10px);
}

.hero-text {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    line-height: 2;
}

.hero-text .highlight {
    color: #f39c12;
    font-size: 2rem;
    font-weight: 700;
    margin: 1rem 0;
}

.btn-primary {
    display: inline-block;
    padding: 1rem 2.5rem;
    background-color: #f39c12;
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 700;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(243, 156, 18, 0.4);
}

.btn-primary:hover {
    background-color: #e67e22;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(243, 156, 18, 0.6);
}

/* 章節標題 */
.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #2c3e50;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, #f39c12, #e67e22);
    border-radius: 2px;
}

/* 三合院民宿小故事 */
.story-section {
    padding: 5rem 0;
    background-color: #f8f9fa;
}

.story-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.story-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.story-text p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    text-align: justify;
    line-height: 1.8;
}

/* 酒姑地名由來 */
.origin-section {
    padding: 5rem 0;
}

.origin-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    max-width: 1000px;
    margin: 0 auto;
}

.origin-card p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.source {
    text-align: right;
    font-style: italic;
    font-size: 0.9rem;
    opacity: 0.8;
    margin-top: 2rem;
}

/* 時間軸左右對比輪播 */
.timeline-section {
    padding: 5rem 0;
    background-color: #f8f9fa;
}

.timeline-comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.timeline-side {
    background: #fff;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.timeline-year {
    font-size: 1.5rem;
    font-weight: 700;
    color: #f39c12;
    margin-bottom: 1rem;
}

.timeline-content h3 {
    font-size: 1.8rem;
    color: #2c3e50;
    margin-bottom: 1.5rem;
}

.timeline-content p {
    margin-top: 1rem;
    color: #555;
    line-height: 1.6;
}

.side-carousel {
    position: relative;
}

.side-carousel-container {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
}

.side-slides {
    position: relative;
    width: 100%;
    height: 350px;
}

.side-slides img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.side-slides img.active {
    opacity: 1;
    position: relative;
}

.side-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px 15px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 50%;
    transition: background 0.3s;
    z-index: 10;
}

.side-btn:hover {
    background: rgba(0, 0, 0, 0.8);
}

.side-btn.prev {
    left: 10px;
}

.side-btn.next {
    right: 10px;
}

.side-dots {
    text-align: center;
    margin-top: 1rem;
}

.side-dot {
    height: 12px;
    width: 12px;
    margin: 0 4px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
    transition: background-color 0.3s;
}

.side-dot.active {
    background-color: #f39c12;
}

/* 二崙開拓史 */
.history-section {
    padding: 5rem 0;
}

.history-content {
    max-width: 900px;
    margin: 0 auto;
}

.history-content p {
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
    text-align: justify;
    line-height: 1.9;
    text-indent: 2em;
}

/* 家族故事 */
.family-section {
    padding: 5rem 0;
    background-color: #f8f9fa;
}

.family-text p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    text-align: justify;
    line-height: 1.8;
    text-indent: 2em;
}

.wedding-section {
    margin-top: 3rem;
    background: #fff;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.wedding-section h3 {
    color: #e74c3c;
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    text-align: center;
}

.subtitle {
    text-align: center;
    color: #7f8c8d;
    margin-bottom: 2rem;
}

.wedding-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.wedding-item {
    text-align: center;
}

.wedding-item img {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 0.5rem;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

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

/* 房型介紹 */
.rooms-section {
    padding: 5rem 0;
}

.room-layout-image {
    text-align: center;
    margin-bottom: 3rem;
}

.room-layout-image img {
    max-width: 50%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.room-layout-image img:hover {
    transform: scale(1.02);
}

.rooms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.room-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.room-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.room-image {
    height: 250px;
    overflow: hidden;
    position: relative;
}

.room-carousel {
    position: relative;
    height: 100%;
}

.room-carousel-container {
    position: relative;
    height: 100%;
    overflow: hidden;
}

.room-slides {
    position: relative;
    height: 100%;
}

.room-slides img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.room-slides img.active {
    opacity: 1;
}

.room-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 8px 12px;
    font-size: 14px;
    cursor: pointer;
    border-radius: 50%;
    transition: background 0.3s;
    z-index: 10;
    opacity: 0;
}

.room-card:hover .room-btn {
    opacity: 1;
}

.room-btn:hover {
    background: rgba(0, 0, 0, 0.8);
}

.room-btn.prev {
    left: 10px;
}

.room-btn.next {
    right: 10px;
}

.room-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 5px;
    z-index: 10;
}

.room-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background-color 0.3s;
}

.room-dot.active {
    background-color: #f39c12;
}

.room-info {
    padding: 1.5rem;
}

.room-info h3 {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.room-type {
    color: #7f8c8d;
    margin-bottom: 0.5rem;
}

.room-numbers {
    color: #f39c12;
    font-weight: 500;
}

.kitchen-section {
    background: linear-gradient(135deg, #43cea2 0%, #185a9d 100%);
    color: #fff;
    padding: 3rem;
    border-radius: 15px;
    text-align: center;
}

.kitchen-section h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.kitchen-carousel {
    position: relative;
    margin: 2rem auto;
    max-width: 600px;
}

.kitchen-carousel-container {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.kitchen-slides {
    position: relative;
    width: 100%;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.kitchen-slides img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    border-radius: 10px;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    background-color: #f8f9fa;
}

.kitchen-slides img.active {
    opacity: 1;
}

.kitchen-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px 15px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 50%;
    transition: background 0.3s;
    z-index: 10;
    opacity: 0;
}

.kitchen-section:hover .kitchen-btn {
    opacity: 1;
}

.kitchen-btn:hover {
    background: rgba(0, 0, 0, 0.8);
}

.kitchen-btn.prev {
    left: 15px;
}

.kitchen-btn.next {
    right: 15px;
}

.kitchen-dots {
    text-align: center;
    margin-top: 1rem;
}

.kitchen-dot {
    height: 12px;
    width: 12px;
    margin: 0 5px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
    transition: background-color 0.3s;
}

.kitchen-dot.active {
    background-color: #fff;
}

/* 住宿資訊 */
.info-section {
    padding: 5rem 0;
    background-color: #f8f9fa;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.info-card {
    background: #fff;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.info-card:hover {
    transform: translateY(-5px);
}

.info-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.info-card h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.info-card p {
    color: #555;
}

.small-text {
    font-size: 0.9rem;
    color: #7f8c8d;
}

.rules-section {
    background: #fff;
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.rules-section h3 {
    text-align: center;
    color: #2c3e50;
    font-size: 2rem;
    margin-bottom: 2rem;
}

.rules-list {
    list-style: none;
    max-width: 600px;
    margin: 0 auto;
}

.rules-list li {
    padding: 1rem;
    margin-bottom: 0.5rem;
    background: #f8f9fa;
    border-radius: 8px;
    font-size: 1.1rem;
}

.rules-list li.prohibited {
    background: #ffe6e6;
    color: #e74c3c;
    font-weight: 600;
}

/* 聯絡我們 */
.contact-section {
    padding: 5rem 0;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-info, .contact-map {
    background: #fff;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.contact-info h3, .contact-map h3 {
    color: #2c3e50;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.contact-phone, .contact-line {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #555;
}

.contact-subtitle {
    color: #7f8c8d;
    margin-top: 1rem;
}

.google-map {
    margin-top: 1rem;
}

.google-map iframe {
    width: 100%;
    height: 300px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.google-map iframe:hover {
    transform: scale(1.02);
}

/* 頁尾 */
.footer {
    background: #2c3e50;
    color: #fff;
    text-align: center;
    padding: 2rem 0;
}

.footer p {
    margin-bottom: 0.5rem;
}

/* 動畫 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 響應式設計 */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: #2c3e50;
        flex-direction: column;
        padding: 1rem 0;
    }

    .nav-menu.active {
        display: flex;
    }

    .hamburger {
        display: flex;
    }

    .hero-title {
        font-size: 2.5rem;
        padding: 1.5rem 2rem;
        margin: 0 1rem;
    }

    .hero-text {
        font-size: 1.1rem;
    }

    .hero-text .highlight {
        font-size: 1.5rem;
    }

    .story-content,
    .contact-content {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 2rem;
    }

    .timeline-comparison {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .timeline-side {
        padding: 1.5rem;
    }
    
    .side-slides {
        height: 250px;
    }
    
    .timeline-year {
        font-size: 1.3rem;
    }
    
    .timeline-content h3 {
        font-size: 1.5rem;
    }
}
