﻿/* ==================== Reset & Base Styles ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

/* ==================== Color Palette ==================== */
:root {
    --primary-dark: #1a5f7a; /* 深海藍 */
    --primary-light: #4a9fb5; /* 天空藍 */
    --accent-sand: #e8d5c4; /* 沙灘米 */
    --white: #ffffff;
    --light-gray: #f0f4f7;
    --text-dark: #2c3e50;
    --text-light: #7f8c8d;
    --border-color: #ddd;
}

/* ==================== Typography ==================== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    color: var(--primary-dark);
}

h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

h2 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    text-align: center;
    position: relative;
    padding-bottom: 1rem;
}

    h2::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 60px;
        height: 3px;
        background: linear-gradient(90deg, var(--primary-light), var(--accent-sand));
    }

h3 {
    font-size: 1.5rem;
    margin-bottom: 0.8rem;
}

p {
    margin-bottom: 1rem;
    color: var(--text-dark);
}

a {
    color: var(--primary-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

    a:hover {
        color: var(--primary-dark);
    }

/* ==================== Container & Layout ==================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 60px 0;
}

/* ==================== Navbar ==================== */
nav {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(26, 95, 122, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.navbar-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-dark);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

    .navbar-logo::before {
        content: '🌊';
        font-size: 1.8rem;
    }

.navbar-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

    .navbar-menu a {
        color: var(--text-dark);
        font-weight: 500;
        transition: color 0.3s ease;
    }

        .navbar-menu a:hover {
            color: var(--primary-light);
        }

.book-btn {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-light));
    color: var(--white);
    padding: 0.7rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    cursor: pointer;
    display: inline-block;
}

    .book-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 5px 20px rgba(26, 95, 122, 0.3);
        color: var(--white);
    }

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

    .hamburger span {
        width: 25px;
        height: 3px;
        background-color: var(--primary-dark);
        border-radius: 2px;
        transition: 0.3s;
    }

/* ==================== Hero Section ==================== */
.hero {
    background: linear-gradient(135deg, rgba(26, 95, 122, 0.9), rgba(74, 159, 181, 0.9)), url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><defs><pattern id="wave" x="0" y="0" width="120" height="120" patternUnits="userSpaceOnUse"><path d="M0,60 Q30,40 60,60 T120,60" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="2"/></pattern></defs><rect width="1200" height="600" fill="%231a5f7a"/><rect width="1200" height="600" fill="url(%23wave)"/></svg>');
    background-size: cover;
    background-position: center;
    color: var(--white);
    text-align: center;
    padding: 120px 20px;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

    .hero::before {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        height: 100px;
        background: linear-gradient(to bottom, transparent, rgba(248, 249, 250, 0.3));
        pointer-events: none;
    }

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
    animation: fadeInUp 1s ease-out;
}

.hero h1 {
    color: var(--white);
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 300;
}

.hero-cta {
    display: inline-block;
    background-color: var(--accent-sand);
    color: var(--primary-dark);
    padding: 1rem 2.5rem;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 700;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

    .hero-cta:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
        background-color: #f0e0d0;
    }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==================== News Section ==================== */
.news {
    background-color: var(--light-gray);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.news-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .news-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 25px rgba(26, 95, 122, 0.15);
    }

    .news-card h3 {
        color: var(--primary-dark);
        margin-bottom: 0.8rem;
    }

.news-date {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

/* ==================== About Section ==================== */
.about {
    background-color: var(--white);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-text h3 {
    color: var(--primary-dark);
    margin-bottom: 1.5rem;
}

.about-image {
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, var(--primary-light), var(--accent-sand));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    color: rgba(255, 255, 255, 0.3);
}

.feature-list {
    list-style: none;
    margin: 1.5rem 0;
}

    .feature-list li {
        padding: 0.8rem 0;
        padding-left: 2rem;
        position: relative;
        color: var(--text-dark);
    }

        .feature-list li::before {
            content: '✓';
            position: absolute;
            left: 0;
            color: var(--primary-light);
            font-weight: bold;
            font-size: 1.2rem;
        }

/* ==================== Rooms Section ==================== */
.rooms {
    background-color: var(--light-gray);
}

.rooms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.room-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .room-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 10px 30px rgba(26, 95, 122, 0.2);
    }

.room-image {
    width: 100%;
    height: 250px;
    background: linear-gradient(135deg, var(--primary-light), var(--accent-sand));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.3);
}

.room-content {
    padding: 1.5rem;
}

    .room-content h3 {
        color: var(--primary-dark);
        margin-bottom: 0.8rem;
    }

.room-price {
    font-size: 1.5rem;
    color: var(--primary-light);
    font-weight: 700;
    margin: 1rem 0;
}

.room-features {
    font-size: 0.9rem;
    color: var(--text-light);
    margin: 1rem 0;
}

/* ==================== Amenities Section ==================== */
.amenities {
    background-color: var(--white);
}

.amenities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.amenity-item {
    text-align: center;
    padding: 2rem;
    background: var(--light-gray);
    border-radius: 10px;
    transition: all 0.3s ease;
}

    .amenity-item:hover {
        background: linear-gradient(135deg, var(--primary-light), var(--accent-sand));
        color: var(--white);
        transform: translateY(-5px);
    }

.amenity-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.amenity-item h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.amenity-item:hover h3 {
    color: var(--white);
}

/* ==================== Location Section ==================== */
.location {
    background-color: var(--light-gray);
}

.location-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.location-info h3 {
    color: var(--primary-dark);
    margin-bottom: 1.5rem;
}

.location-item {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

    .location-item:last-child {
        border-bottom: none;
    }

.location-label {
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 0.3rem;
}

.location-value {
    color: var(--text-dark);
}

.attractions {
    margin-top: 1.5rem;
}

    .attractions h4 {
        color: var(--primary-dark);
        margin-bottom: 1rem;
    }

.attractions-list {
    list-style: none;
}

    .attractions-list li {
        padding: 0.6rem 0;
        padding-left: 1.5rem;
        position: relative;
        color: var(--text-dark);
    }

        .attractions-list li::before {
            content: '📍';
            position: absolute;
            left: 0;
        }

.map-placeholder {
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, var(--primary-light), var(--accent-sand));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.2rem;
    text-align: center;
    padding: 2rem;
}

/* ==================== FAQ Section ==================== */
.faq {
    background-color: var(--white);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

    .faq-item:hover {
        box-shadow: 0 3px 15px rgba(26, 95, 122, 0.1);
    }

.faq-question {
    background-color: var(--light-gray);
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: var(--primary-dark);
    transition: background-color 0.3s ease;
    user-select: none;
}

    .faq-question:hover {
        background-color: #e8f1f5;
    }

    .faq-question::after {
        content: '+';
        font-size: 1.5rem;
        font-weight: 300;
        transition: transform 0.3s ease;
    }

.faq-item.active .faq-question {
    background-color: var(--primary-light);
    color: var(--white);
}

    .faq-item.active .faq-question::after {
        transform: rotate(45deg);
    }

.faq-answer {
    display: none;
    padding: 1.5rem;
    background-color: var(--white);
    color: var(--text-dark);
    line-height: 1.8;
}

.faq-item.active .faq-answer {
    display: block;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==================== Footer ==================== */
footer {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-light));
    color: var(--white);
    padding: 3rem 20px 1rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: var(--accent-sand);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--accent-sand);
    transition: color 0.3s ease;
}

    .footer-section a:hover {
        color: var(--white);
    }

.footer-links {
    list-style: none;
}

    .footer-links li {
        margin-bottom: 0.5rem;
    }

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 2rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

/* ==================== Responsive Design ==================== */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .navbar-menu {
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background-color: var(--white);
        flex-direction: column;
        gap: 0;
        display: none;
        padding: 1rem 0;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }

        .navbar-menu.active {
            display: flex;
        }

        .navbar-menu li {
            width: 100%;
            text-align: center;
            padding: 1rem 0;
            border-bottom: 1px solid var(--border-color);
        }

            .navbar-menu li:last-child {
                border-bottom: none;
            }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .location-content {
        grid-template-columns: 1fr;
    }

    .rooms-grid {
        grid-template-columns: 1fr;
    }

    section {
        padding: 40px 0;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    h1 {
        font-size: 1.5rem;
    }

    h2 {
        font-size: 1.4rem;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .hero {
        padding: 80px 20px;
        min-height: 400px;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .amenities-grid {
        grid-template-columns: 1fr;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }
}

/* ==================== Utility Classes ==================== */
.text-center {
    text-align: center;
}

.mt-1 {
    margin-top: 1rem;
}

.mt-2 {
    margin-top: 2rem;
}

.mb-1 {
    margin-bottom: 1rem;
}

.mb-2 {
    margin-bottom: 2rem;
}
