/* 全局样式和字体 */
body {
    font-family: 'Noto Sans SC', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
    line-height: 1.6;
}

h1, h2, h3 {
    font-weight: 700;
    color: #2c3e50;
}

p {
    font-weight: 300;
}

/* 容器 */
.container {
    width: 90%;
    max-width: 1000px;
    margin: auto;
    overflow: hidden;
    padding: 20px 0;
}

/* 顶部 Hero 区域 */
.hero {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('https://upload.wikimedia.org/wikipedia/commons/thumb/3/3a/Nanjing_Skyline_from_Zifeng_Tower_2017_Dec.jpg/1920px-Nanjing_Skyline_from_Zifeng_Tower_2017_Dec.jpg');
    height: 60vh;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 0;
    color: #fff;
}

.hero-content p {
    font-size: 1.2rem;
    font-weight: 300;
}

/* 内容区域的版块 */
section {
    background: #fff;
    margin-bottom: 20px;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

section h2 {
    text-align: center;
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 2rem;
    border-bottom: 3px solid #007bff;
    padding-bottom: 10px;
    display: inline-block;
}

/* 居中标题 */
#about, #history, #food {
    text-align: center;
}

/* 景点卡片网格 */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-content {
    padding: 15px;
    flex-grow: 1; /* 确保内容区占满剩余空间 */
}

.card-content h3 {
    margin-top: 0;
}

/* 页脚 */
footer {
    text-align: center;
    padding: 20px;
    background-color: #2c3e50;
    color: #ecf0f1;
    margin-top: 40px;
}

footer p {
    margin: 5px 0;
    font-weight: 300;
}

/* 响应式设计 */
@media(max-width: 768px) {
    .hero {
        height: 40vh;
    }
    .hero-content h1 {
        font-size: 2.2rem;
    }
    section h2 {
        font-size: 1.8rem;
    }
}