:root {
    --primary-color: #2c5f2d; /* 深绿色，代表自然 */
    --secondary-color: #97bc62; /* 浅绿色 */
    --accent-color: #d4a017; /* 金色，代表寺庙 */
    --text-color: #333;
    --light-bg: #f4f7f6;
    --white: #ffffff;
    --font-main: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    line-height: 1.6;
    color: var(--text-color);
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

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

.bg-light {
    background-color: var(--light-bg);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 10px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--accent-color);
}

section {
    padding: 4rem 0;
}

/* Header & Nav */
header {
    background-color: var(--white);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

nav ul {
    display: flex;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: var(--primary-color);
}

/* 修正 Header 样式逻辑 */
header {
    position: relative; /* 恢复默认 */
    background: transparent;
    box-shadow: none;
}

/* 实际上我希望nav悬浮，那么我应该把nav拿出来或者用fixed。
   为了简单且美观，我让nav固定在顶部，背景白色。
*/
header nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    padding: 1rem 5%;
}

nav ul li a.active {
    color: var(--primary-color);
    font-weight: bold;
    border-bottom: 2px solid var(--accent-color);
}

.hero {
    margin-top: 0;
    padding-top: 80px; /* 给nav留出空间 */
    height: 60vh; /* 统一高度，首页可以更高 */
    min-height: 400px;
    background-attachment: fixed; /* 视差滚动效果 */
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--white);
}

/* 默认Hero (清迈) */
.hero {
    background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('https://images.unsplash.com/photo-1512343879784-a960bf40e7f2?ixlib=rb-1.2.1&auto=format&fit=crop&w=1920&q=80');
}

/* 首页 Hero */
.main-hero {
    height: 100vh;
    background-image: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url('https://images.unsplash.com/photo-1552465011-b4e21bf6e79a?ixlib=rb-1.2.1&auto=format&fit=crop&w=1920&q=80');
}

/* 曼谷 Hero */
.bangkok-hero {
    background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('https://images.unsplash.com/photo-1563492065599-3520f775eeed?ixlib=rb-1.2.1&auto=format&fit=crop&w=1920&q=80');
}

/* 博客 Hero */
.blog-hero {
    height: 40vh;
    min-height: 300px;
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('https://images.unsplash.com/photo-1488646953014-85cb44e25828?ixlib=rb-1.2.1&auto=format&fit=crop&w=1920&q=80');
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--accent-color);
    color: var(--white);
    border-radius: 5px;
    transition: background 0.3s;
    font-weight: bold;
}

.btn:hover {
    background-color: #b58912;
}

/* 首页 Destination Card 特殊样式 */
.destination-card a {
    display: block;
    color: inherit;
}

.read-more {
    display: inline-block;
    margin-top: 10px;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 0.9rem;
}

/* Blog Layout */
.blog-container {
    display: flex;
    gap: 40px;
    padding: 4rem 20px;
    margin-top: 0; /* 抵消section padding */
}

.blog-post {
    flex: 2;
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.blog-meta {
    margin-bottom: 20px;
    color: #666;
    font-size: 0.9rem;
}

.blog-meta span {
    margin-right: 15px;
}

.blog-content .lead {
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 2rem;
    color: #444;
}

.blog-content h2 {
    color: var(--primary-color);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.blog-content p {
    margin-bottom: 1rem;
}

.blog-content ul {
    list-style: disc;
    margin-left: 20px;
    margin-bottom: 1rem;
}

.blog-content img {
    width: 100%;
    border-radius: 10px;
    margin: 2rem 0;
}

.blog-footer {
    margin-top: 3rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
    font-style: italic;
    color: #666;
}

.sidebar {
    flex: 1;
}

.widget {
    background: var(--white);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    margin-bottom: 30px;
}

.widget h3 {
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--secondary-color);
    color: var(--primary-color);
}

.widget ul li {
    margin-bottom: 10px;
}

.widget ul li a {
    color: var(--text-color);
    transition: color 0.2s;
}

.widget ul li a:hover {
    color: var(--primary-color);
}

/* Blog Grid (首页) */
.blog-grid .card .meta {
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 5px;
}

.blog-grid .card h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.blog-grid .card p {
    font-size: 0.9rem;
    color: #666;
}

/* About Section */
.about-content {
    display: flex;
    align-items: center;
    gap: 40px;
}

.about-text {
    flex: 1;
}

.about-text p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.about-image {
    flex: 1;
}

.about-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Attractions Section */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

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

.card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-content {
    padding: 20px;
}

.card-content h3 {
    margin-bottom: 10px;
    color: var(--primary-color);
}

/* Food Section */
.food-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
}

.food-item {
    text-align: center;
    padding: 30px 20px;
    background: var(--white);
    border-radius: 10px;
    border: 1px solid #eee;
    transition: box-shadow 0.3s;
}

.food-item:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.food-icon {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.food-item h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
}

/* Transport Section */
.transport-list {
    max-width: 800px;
    margin: 0 auto;
}

.transport-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
    background: var(--white);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}

.transport-list .icon {
    font-size: 2rem;
    color: var(--primary-color);
    margin-right: 20px;
    min-width: 50px;
    text-align: center;
}

.transport-list .info h3 {
    margin-bottom: 5px;
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: var(--white);
    text-align: center;
    padding: 2rem 0;
}

.social-links {
    margin-top: 1rem;
}

.social-links a {
    color: var(--white);
    font-size: 1.5rem;
    margin: 0 10px;
    transition: color 0.3s;
}

.social-links a:hover {
    color: var(--accent-color);
}

/* Responsive */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .about-content {
        flex-direction: column;
    }

    nav ul {
        display: none; /* 移动端暂时隐藏菜单，简化处理 */
    }
    
    nav {
        justify-content: center;
    }
}
