:root {
    --primary-color: #0d9488;
    /* 江南水乡的青绿色 */
    --secondary-color: #0f766e;
    --background-color: #f8fafc;
    --text-main: #1e293b;
    --text-muted: #475569;
    --light-gray: #e2e8f0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "PingFang SC", "Microsoft YaHei", "WenQuanYi Micro Hei", sans-serif;
}

body {
    background-color: var(--background-color);
    color: var(--text-main);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* 顶部导航栏 */
header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 50;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    /* 使logo和导航分别靠两端 */
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    margin-left: auto;
    /* 强制靠右 */
}

.nav-links a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-main);
    cursor: pointer;
}

.nav-actions {
    display: flex;
    gap: 1.5rem;
}

.nav-actions a {
    color: var(--text-main);
    font-size: 1.2rem;
    transition: color 0.3s;
}

.nav-actions a:hover {
    color: var(--primary-color);
}

/* 主内容区 */
main {
    flex: 1;
    width: 100%;
}

/* 英雄区域 (Hero) */
.hero {
    background: linear-gradient(to bottom, #e0f2fe, var(--background-color));
    padding: 6rem 1.5rem;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--text-main);
    letter-spacing: 4px;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: var(--primary-color);
    color: white;
    padding: 0.875rem 2rem;
    border-radius: 2rem;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 6px -1px rgba(13, 148, 136, 0.2);
}

.btn:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 8px -1px rgba(13, 148, 136, 0.3);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: transparent;
    color: var(--primary-color);
    padding: 0.6rem 1.5rem;
    border-radius: 2rem;
    text-decoration: none;
    font-weight: 500;
    border: 2px solid var(--primary-color);
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: white;
}

/* 特色服务区 */
.services-section {
    background-color: white;
    padding: 4rem 1.5rem;
    border-bottom: 1px solid var(--light-gray);
}

.services-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.service-item i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    transition: transform 0.3s;
}

.service-item:hover i {
    transform: scale(1.1);
}

.service-item h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.service-item p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* 景点卡片网格 */
.features-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 5rem 1.5rem;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 3rem;
    color: var(--text-main);
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.card {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 20px -3px rgba(0, 0, 0, 0.1);
}

.card-image {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

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

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

.card-content {
    padding: 2rem;
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.card p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.card-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.card-link:hover {
    text-decoration: underline;
}

/* 行程推荐区 */
.itinerary-section {
    background-color: white;
    padding: 5rem 1.5rem;
}

.itinerary-container {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.itinerary-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 2rem;
    background-color: var(--background-color);
    border-radius: 1rem;
    border: 1px solid var(--light-gray);
    transition: box-shadow 0.3s;
}

.itinerary-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.iti-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-right: 2rem;
}

.iti-info {
    flex: 1;
}

.iti-info h3 {
    font-size: 1.25rem;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

.iti-info p {
    color: var(--text-muted);
}

.iti-info i {
    color: var(--primary-color);
    margin: 0 0.5rem;
    font-size: 0.9em;
}

/* 底部 */
footer {
    background: #1e293b;
    color: #94a3b8;
    padding: 3rem 1.5rem;
    text-align: center;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    font-size: 0.95rem;
    line-height: 2;
}

.footer-container a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.3s;
    margin: 0 0.5rem;
}

.footer-container a:hover {
    color: white;
}

/* 响应式调整 */
@media (max-width: 768px) {

    .nav-links,
    .nav-actions {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
        margin-left: auto;
    }

    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        padding: 1rem 0;
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
        text-align: center;
        gap: 1.5rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

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

    .itinerary-card {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .iti-icon {
        margin-right: 0;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

    /* 聯絡我們頁面移動端適配 */
    .contact-info-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .contact-item {
        padding: 1.5rem;
    }

    .contact-address {
        padding: 1.5rem;
    }

    .page-header {
        padding: 3rem 1rem;
    }

    .page-header h1 {
        font-size: 2rem;
    }
}

/* 內部頁面共用樣式 (關於我們、聯絡我們、隱私政策) */
.page-header {
    background: linear-gradient(to bottom, #e0f2fe, var(--background-color));
    padding: 4rem 1.5rem;
    text-align: center;
    border-bottom: 1px solid var(--light-gray);
}

.page-header h1 {
    font-size: 2.5rem;
    color: var(--text-main);
    margin-bottom: 1rem;
}

.page-header p {
    font-size: 1.2rem;
    color: var(--text-muted);
}

.content-section {
    padding: 4rem 1.5rem;
    background-color: white;
}

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

.text-content {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.8;
}

.text-content p {
    margin-bottom: 1.5rem;
}

/* 關於我們特定樣式 */
.license-image {
    margin-top: 4rem;
    text-align: center;
}

.license-image h3 {
    color: var(--text-main);
    margin-bottom: 2rem;
    font-size: 1.5rem;
}

.license-real-img {
    max-width: 100%;
    max-height: 800px;
    object-fit: contain;
    border-radius: 0.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--light-gray);
    transition: transform 0.3s ease;
}

.license-real-img:hover {
    transform: scale(1.02);
}

/* 聯絡我們特定樣式 */
.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

.contact-item {
    background-color: var(--background-color);
    padding: 2rem;
    border-radius: 1rem;
    text-align: center;
    border: 1px solid var(--light-gray);
    transition: transform 0.3s;
    word-break: break-all;
    /* 防止長文字或連結溢出 */
    overflow-wrap: break-word;
}

.contact-item:hover {
    transform: translateY(-5px);
}

.contact-icon {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.contact-item h3 {
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

.contact-item p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.contact-item a {
    color: var(--primary-color);
    text-decoration: none;
}

.contact-item a:hover {
    text-decoration: underline;
}

.contact-address {
    background-color: var(--background-color);
    padding: 2rem;
    border-radius: 1rem;
    text-align: center;
    border: 1px solid var(--light-gray);
    word-break: break-all;
    overflow-wrap: break-word;
}

.contact-address h3 {
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

.contact-address p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* 隱私政策特定樣式 */
.privacy-content h2 {
    color: var(--text-main);
    font-size: 1.8rem;
    margin-bottom: 2rem;
    text-align: center;
}

.privacy-content h3 {
    color: var(--text-main);
    font-size: 1.3rem;
    margin: 2.5rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--light-gray);
}

.privacy-content ul {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.privacy-content li {
    margin-bottom: 0.5rem;
}

.privacy-contact {
    background-color: var(--background-color);
    padding: 1.5rem;
    border-radius: 0.5rem;
    margin-top: 1.5rem;
    border-left: 4px solid var(--primary-color);
}

.privacy-contact p {
    margin-bottom: 0.5rem;
}

.privacy-contact p:last-child {
    margin-bottom: 0;
}