/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 全局变量 */
:root {
    --primary-color: #8B2323;  /* 中国红 */
    --secondary-color: #DEB887;  /* 浅褐色 */
    --text-color: #333;
    --light-bg: #F5F5F5;
    --header-height: 80px;
    --footer-height: 300px;
}

body {
    font-family: "Microsoft YaHei", "SimSun", sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--light-bg);
}

/* 头部导航样式 */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo h1 {
    font-size: 2em;
    color: var(--primary-color);
    font-weight: bold;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-color);
    font-size: 1.1em;
    padding: 10px;
    transition: all 0.3s ease;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
}

/* 主要内容区域 */
main {
    margin-top: var(--header-height);
    min-height: calc(100vh - var(--header-height) - var(--footer-height));
}

/* Banner样式 */
.banner, .food-banner, .scenic-banner, .trip-banner, .about-banner, .history-banner {
    position: relative;
    height: 600px;
    overflow: hidden;
    background-color: #000;
}

.banner-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.banner-content h1 {
    font-size: 3em;
    margin-bottom: 20px;
}

.banner-content p {
    font-size: 1.5em;
}

/* 通用标题样式 */
.section-title {
    text-align: center;
    font-size: 2em;
    margin: 50px 0 30px;
    color: var(--primary-color);
}

/* 文化特色页面样式 */
.culture-section {
    max-width: 1200px;
    margin: 50px auto;
    padding: 0 20px;
}

.culture-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: center;
}

.culture-content.reverse {
    direction: rtl;
}

.culture-content.reverse > * {
    direction: ltr;
}

.culture-text h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.5em;
}

.culture-text p {
    margin-bottom: 20px;
}

.culture-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 10px;
}

.culture-gallery {
    max-width: 1200px;
    margin: 50px auto;
    padding: 0 20px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    text-align: center;
}

/* 美食特产页面样式 */
.food-grid-large {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.food-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.food-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.food-info {
    padding: 20px;
}

.food-info h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.specialty-section {
    max-width: 1200px;
    margin: 50px auto;
    padding: 0 20px;
}

.specialty-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
}

.specialty-item {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.specialty-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.specialty-info {
    padding: 20px;
}

.specialty-features {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.specialty-features span {
    background: var(--light-bg);
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.9em;
}

.dishes-section {
    max-width: 1200px;
    margin: 50px auto;
    padding: 0 20px;
}

.dishes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.dish-item {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.dish-item:hover {
    transform: translateY(-5px);
}

.dish-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.dish-item h3 {
    padding: 15px;
    color: var(--primary-color);
}

.dish-item p {
    padding: 0 15px 15px;
}

/* 旅游景点页面样式 */
.scenic-section {
    max-width: 1200px;
    margin: 50px auto;
    padding: 0 20px;
}

.scenic-content {
    background: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.scenic-description h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.5em;
}

.visit-info {
    list-style: none;
    margin: 20px 0;
}

.visit-info li {
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
}

.visit-info li::before {
    content: "•";
    color: var(--primary-color);
    position: absolute;
    left: 0;
}

.scenic-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 20px;
}

.scenic-gallery img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 5px;
    transition: transform 0.3s ease;
}

.scenic-gallery img:hover {
    transform: scale(1.05);
}

.other-scenic {
    max-width: 1200px;
    margin: 50px auto;
    padding: 0 20px;
}

.scenic-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.scenic-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.scenic-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.scenic-card-info {
    padding: 20px;
}

.scenic-card-info h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

/* 行程规划页面样式 */
.trip-routes {
    max-width: 1200px;
    margin: 50px auto;
    padding: 0 20px;
}

.route-card {
    background: white;
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.route-header {
    background: var(--primary-color);
    color: white;
    padding: 20px;
    border-radius: 10px 10px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.route-tag {
    font-size: 0.9em;
}

.route-content {
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.day-plan h4 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.day-plan ul {
    list-style: none;
}

.day-plan li {
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
}

.day-plan li::before {
    content: "→";
    color: var(--primary-color);
    position: absolute;
    left: 0;
}

.transportation {
    max-width: 1200px;
    margin: 50px auto;
    padding: 0 20px;
}

.transport-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.transport-item {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.transport-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 15px;
}

.transport-item h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.accommodation {
    max-width: 1200px;
    margin: 50px auto;
    padding: 0 20px;
}

.hotel-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.hotel-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.hotel-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.hotel-info {
    padding: 20px;
}

.hotel-info h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.hotel-info ul {
    list-style: none;
    margin-top: 15px;
}

.hotel-info li {
    margin-bottom: 5px;
    color: #666;
}

.travel-tips {
    max-width: 1200px;
    margin: 50px auto;
    padding: 0 20px;
}

.tips-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.tip-card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.tip-card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

/* 关于天水页面样式 */
.city-overview {
    max-width: 1200px;
    margin: 50px auto;
    padding: 0 20px;
}

.overview-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: center;
}

.overview-text p {
    margin-bottom: 30px;
}

.city-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    text-align: center;
}

.stat-item {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.stat-number {
    display: block;
    font-size: 2em;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.overview-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 10px;
}

.geography-climate {
    max-width: 1200px;
    margin: 50px auto;
    padding: 0 20px;
}

.geo-climate-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.climate-info, .geography-info {
    background: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.climate-data {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.season-item {
    text-align: center;
    padding: 15px;
    background: var(--light-bg);
    border-radius: 10px;
}

.season-item h4 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.geography-info img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 5px;
    margin-top: 20px;
}

.folk-customs {
    max-width: 1200px;
    margin: 50px auto;
    padding: 0 20px;
}

.customs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.custom-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.custom-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.custom-info {
    padding: 20px;
}

.custom-info h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.achievements {
    max-width: 1200px;
    margin: 50px auto;
    padding: 0 20px;
}

.achievements-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.achievement-item {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.achievement-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.achievement-item h3 {
    color: var(--primary-color);
    margin: 15px 0;
}

.achievement-item p {
    padding: 0 20px 20px;
}

.contact-info {
    max-width: 1200px;
    margin: 50px auto;
    padding: 0 20px;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.contact-item {
    background: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.icon {
    font-size: 2em;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.contact-item h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

/* 页脚样式 */
.footer {
    background: #333;
    color: white;
    padding: 50px 0 20px;
    margin-top: 50px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-info h3,
.footer-links h3 {
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.footer-links ul {
    list-style: none;
}

.footer-links a {
    color: white;
    text-decoration: none;
    line-height: 2;
}

.footer-links a:hover {
    color: var(--secondary-color);
}

.footer-bottom {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* 响应式设计 */
@media screen and (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 20px;
        gap: 10px;
    }

    .nav-menu.active {
        display: flex;
    }

    .banner, .food-banner, .scenic-banner, .trip-banner, .about-banner {
        height: 400px;
    }

    .banner-content {
        width: 90%;
    }

    .banner-content h1 {
        font-size: 2em;
    }

    .banner-content p {
        font-size: 1.2em;
    }

    .culture-content,
    .overview-content,
    .geo-climate-content {
        grid-template-columns: 1fr;
    }

    .culture-content.reverse {
        direction: ltr;
    }

    .city-stats {
        grid-template-columns: 1fr;
    }

    .climate-data {
        grid-template-columns: 1fr;
    }
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-out forwards;
}

/* 地图容器样式 */
.map-container {
    background: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.map-container img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 20px;
}

.map-info h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.map-info ul {
    list-style: none;
}

.map-info li {
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
}

.map-info li::before {
    content: "•";
    color: var(--primary-color);
    position: absolute;
    left: 0;
}

/* 文化特色预览样式 */
.culture-preview {
    max-width: 1200px;
    margin: 50px auto;
    padding: 0 20px;
}

.culture-preview-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.culture-preview-main {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 30px;
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.culture-preview-main:hover {
    transform: translateY(-5px);
}

.culture-preview-image {
    height: 400px;
    overflow: hidden;
}

.culture-preview-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.culture-preview-main:hover .culture-preview-image img {
    transform: scale(1.05);
}

.culture-preview-text {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.culture-preview-text h3 {
    color: var(--primary-color);
    font-size: 2em;
    margin-bottom: 20px;
}

.culture-preview-text p {
    font-size: 1.1em;
    line-height: 1.8;
    margin-bottom: 30px;
}

.culture-link {
    display: inline-block;
    padding: 10px 25px;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    transition: all 0.3s ease;
    align-self: flex-start;
}

.culture-link:hover {
    background: #6B1A1A;
    transform: translateY(-2px);
}

.culture-preview-secondary {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.culture-preview-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.culture-preview-item:hover {
    transform: translateY(-5px);
}

.culture-preview-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.culture-preview-item:hover img {
    transform: scale(1.05);
}

.preview-item-text {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.8), rgba(0,0,0,0));
    color: white;
}

.preview-item-text h3 {
    font-size: 1.5em;
    margin-bottom: 10px;
}

.preview-item-text p {
    font-size: 1em;
    line-height: 1.6;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.culture-preview-item:hover .preview-item-text p {
    opacity: 1;
    transform: translateY(0);
}

@media screen and (max-width: 768px) {
    .culture-preview-main {
        grid-template-columns: 1fr;
    }
    
    .culture-preview-secondary {
        grid-template-columns: 1fr;
    }
    
    .culture-preview-image {
        height: 300px;
    }
    
    .culture-preview-text {
        padding: 20px;
    }
}

/* 特色美食预览样式 */
.food-preview {
    max-width: 1200px;
    margin: 50px auto;
    padding: 0 20px;
}

.food-preview-container {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 30px;
}

.food-preview-main, .food-preview-secondary {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.food-preview-main:hover, .food-preview-secondary:hover {
    transform: translateY(-5px);
}

.food-preview-main img, .food-preview-secondary img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.food-preview-main:hover img, .food-preview-secondary:hover img {
    transform: scale(1.05);
}

.food-preview-text {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px;
    background: linear-gradient(to top, rgba(0,0,0,0.9), rgba(0,0,0,0));
    color: white;
}

.food-preview-text h3 {
    font-size: 1.8em;
    margin-bottom: 15px;
}

.food-preview-text p {
    font-size: 1.1em;
    line-height: 1.6;
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.food-preview-main:hover .food-preview-text p,
.food-preview-secondary:hover .food-preview-text p {
    opacity: 1;
    transform: translateY(0);
}

.food-link {
    display: inline-block;
    padding: 8px 20px;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 20px;
    font-size: 0.9em;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
}

.food-preview-main:hover .food-link,
.food-preview-secondary:hover .food-link {
    opacity: 1;
    transform: translateY(0);
}

.food-link:hover {
    background: #6B1A1A;
    transform: translateY(-2px);
}

/* 最新动态样式 */
.news {
    max-width: 1200px;
    margin: 50px auto;
    padding: 0 20px;
}

.news-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.news-item {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.news-item:hover {
    transform: translateY(-5px);
}

.news-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-item:hover .news-image img {
    transform: scale(1.05);
}

.news-tag {
    position: absolute;
    top: 20px;
    left: 20px;
    padding: 5px 15px;
    background: var(--primary-color);
    color: white;
    border-radius: 15px;
    font-size: 0.9em;
}

.news-content {
    padding: 25px;
}

.news-date {
    display: block;
    color: #666;
    font-size: 0.9em;
    margin-bottom: 10px;
}

.news-content h3 {
    color: var(--primary-color);
    font-size: 1.4em;
    margin-bottom: 15px;
}

.news-content p {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
}

.news-link {
    display: inline-block;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}

.news-link:hover {
    color: #6B1A1A;
    transform: translateX(5px);
}

@media screen and (max-width: 768px) {
    .food-preview-container {
        grid-template-columns: 1fr;
    }
    
    .news-container {
        grid-template-columns: 1fr;
    }
    
    .food-preview-main img,
    .food-preview-secondary img {
        height: 300px;
    }
    
    .news-image {
        height: 200px;
    }
} 