/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", "微软雅黑", sans-serif;
    background-color: #f0f0f0;
    color: #333;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: #0066cc;
}

a:hover {
    text-decoration: underline;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* 头部样式 */
header {
    background-color: #0066cc;
    color: white;
    padding: 20px 0;
    text-align: center;
}

header h1 {
    font-size: 32px;
    margin-bottom: 5px;
}

header p {
    font-size: 14px;
}

/* 导航栏样式 */
nav {
    background-color: #333;
}

nav ul {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
}

nav ul li {
    position: relative;
}

nav ul li a {
    display: block;
    padding: 12px 25px;
    color: white;
    font-size: 15px;
}

nav ul li a:hover {
    background-color: #0066cc;
    text-decoration: none;
}

/* 下拉菜单 */
nav ul li ul {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #444;
    min-width: 140px;
    display: none;
}

nav ul li:hover ul {
    display: block;
}

nav ul li ul li a {
    padding: 10px 15px;
    font-size: 14px;
}

/* 主内容区 */
main {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
    background-color: white;
}

/* 横幅图片 */
.banner {
    width: 100%;
    margin-bottom: 20px;
}

.banner img {
    width: 100%;
}

/* 面包屑导航 */
.breadcrumb {
    padding: 10px 0;
    margin-bottom: 15px;
    font-size: 14px;
    color: #666;
    border-bottom: 1px solid #ddd;
}

.breadcrumb span {
    margin: 0 5px;
}

/* 内容区域 */
.content-section {
    padding: 20px 0;
}

.content-section h2 {
    font-size: 24px;
    color: #0066cc;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #0066cc;
}

.content-section h3 {
    font-size: 20px;
    color: #333;
    margin: 25px 0 15px 0;
}

.content-section h4 {
    font-size: 16px;
    color: #444;
    margin: 15px 0 10px 0;
}

.content-section p {
    margin-bottom: 12px;
    text-indent: 2em;
}

.content-section ul {
    margin: 15px 0;
    padding-left: 30px;
}

.content-section ul li {
    margin-bottom: 8px;
    list-style: disc;
}

.content-section strong {
    color: #0066cc;
}

/* 详情图片 */
.detail-img {
    width: 100%;
    max-width: 700px;
    margin: 20px auto;
    border: 1px solid #ddd;
    padding: 5px;
}

.detail-img img {
    width: 100%;
}

/* 卡片网格 */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin: 25px 0;
}

.card {
    border: 1px solid #ddd;
    background-color: #f9f9f9;
}

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

.card-body {
    padding: 15px;
}

.card-body h4 {
    font-size: 16px;
    color: #0066cc;
    margin-bottom: 8px;
}

.card-body p {
    font-size: 14px;
    color: #666;
    text-indent: 0;
    margin-bottom: 0;
}

/* 引用样式 */
.quote {
    background-color: #f0f7ff;
    border-left: 4px solid #0066cc;
    padding: 15px 20px;
    margin: 20px 0;
}

.quote p {
    text-indent: 0;
    margin-bottom: 5px;
    font-style: italic;
}

/* 时间线样式 */
.timeline {
    margin: 20px 0;
    padding-left: 30px;
    border-left: 2px solid #0066cc;
}

.timeline-item {
    margin-bottom: 20px;
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -36px;
    top: 5px;
    width: 12px;
    height: 12px;
    background-color: #0066cc;
    border-radius: 50%;
}

.timeline-content {
    background-color: #f9f9f9;
    padding: 15px;
    border: 1px solid #ddd;
}

.timeline-content h4 {
    color: #0066cc;
    margin-bottom: 8px;
}

.timeline-content p {
    text-indent: 0;
    font-size: 14px;
    color: #666;
    margin-bottom: 0;
}

/* 特色展示 */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin: 25px 0;
}

.feature-item {
    text-align: center;
    padding: 20px 10px;
    background-color: #f0f7ff;
    border: 1px solid #ddd;
}

.feature-icon {
    font-size: 30px;
    margin-bottom: 8px;
}

.feature-item h4 {
    color: #0066cc;
    font-size: 16px;
    margin-bottom: 5px;
}

.feature-item p {
    font-size: 13px;
    color: #666;
    text-indent: 0;
    margin-bottom: 0;
}

/* 联系表单 */
.contact-form {
    max-width: 500px;
    margin: 25px auto;
    padding: 20px;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #ccc;
    font-size: 14px;
    font-family: inherit;
}

.form-group button {
    background-color: #0066cc;
    color: white;
    border: none;
    padding: 10px 30px;
    font-size: 15px;
    cursor: pointer;
}

.form-group button:hover {
    background-color: #0052a3;
}

/* 页脚 */
footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 20px 0;
    margin-top: 30px;
}

footer p {
    margin-bottom: 5px;
    font-size: 14px;
}

footer a {
    color: #66b3ff;
}

/* 返回顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background-color: #0066cc;
    color: white;
    text-align: center;
    line-height: 40px;
    font-size: 20px;
    text-decoration: none;
}

.back-to-top:hover {
    background-color: #0052a3;
    text-decoration: none;
}

/* 景点列表 */
.spot-list {
    margin: 20px 0;
}

.spot-item {
    padding: 15px;
    margin-bottom: 10px;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
}

.spot-info h4 {
    color: #0066cc;
    margin-bottom: 8px;
}

.spot-info p {
    font-size: 14px;
    color: #666;
    text-indent: 0;
    margin-bottom: 0;
}

.spot-rating {
    color: #ff8800;
    font-size: 14px;
    margin-top: 5px;
}

/* 信息框 */
.info-box {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin: 20px 0;
}

.info-item {
    background-color: #f9f9f9;
    padding: 15px;
    border: 1px solid #ddd;
}

.info-item h4 {
    color: #008844;
    margin-bottom: 8px;
    font-size: 15px;
}

.info-item p {
    font-size: 14px;
    color: #666;
    text-indent: 0;
    margin-bottom: 0;
}

/* 响应式设计 */
@media (max-width: 768px) {
    nav ul {
        flex-wrap: wrap;
    }
    
    nav ul li a {
        padding: 10px 15px;
        font-size: 14px;
    }
    
    .card-grid {
        grid-template-columns: 1fr;
    }
    
    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .info-box {
        grid-template-columns: 1fr;
    }
}
