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

html {
    overflow-x: hidden; /* 防止水平滚动条 */
}

body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
    overflow-x: hidden; /* 防止水平滚动条 */
    min-height: 100vh;
}

.main {
    overflow: hidden; /* 防止内容溢出 */
}

.hidden {
    display: none !important;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航栏样式 */
.navbar {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo a {
    font-size: 24px;
    font-weight: bold;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo-img {
    height: 40px;
    width: auto;
    margin-right: 10px;
}

.logo-text {
    display: inline-block;
    color: #9b59b6;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .logo-text {
        display: none;
    }
    
    .logo-img {
        height: 35px;
    }
    
    /* 移动端下拉菜单 */
    .nav-menu .dropdown .dropdown-menu {
        position: static;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
        margin-left: 20px;
    }
    
    .nav-menu .dropdown.active .dropdown-menu {
        display: block;
    }
    
    .nav-menu .dropdown-menu a {
        padding-left: 10px;
        border-bottom: 1px solid #f0f0f0;
    }
}

.logo i {
    margin-right: 10px;
    color: #9b59b6;
}

.nav-menu {
    display: flex;
    list-style: none;
}

.nav-menu li {
    margin-left: 30px;
}

.nav-menu a {
    text-decoration: none;
    color: #333;
    font-size: 16px;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
    padding-bottom: 5px;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #9b59b6;
    transition: width 0.3s ease;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: #9b59b6;
}

/* 下拉菜单 */
.nav-menu .dropdown {
    position: relative;
}

.nav-menu .dropdown .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #fff;
    list-style: none;
    padding: 0;
    margin: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-radius: 4px;
    min-width: 160px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    transform: translateY(10px);
}

.nav-menu .dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-menu .dropdown-menu li {
    margin: 0;
}

.nav-menu .dropdown-menu a {
    padding: 10px 15px;
    border-radius: 0;
    border-bottom: 1px solid #f0f0f0;
    white-space: nowrap;
}

.nav-menu .dropdown-menu li:last-child a {
    border-bottom: none;
    border-radius: 0 0 4px 4px;
}

.nav-menu .dropdown-menu a:hover {
    background-color: #f8f9fa;
}

/* 管理登录按钮样式 */
.nav-menu .admin-login {
    background-color: #9b59b6;
    color: #fff !important;
    padding: 8px 16px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.nav-menu .admin-login:hover {
    background-color: #8e44ad;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 3px 0;
    transition: 0.3s;
}

/* 轮播图样式 */
.hero-section {
    position: relative;
    height: 500px;
    overflow: hidden;
    margin-top: 70px;
    margin-bottom: 0px;
}

.slider {
    position: relative;
    height: 100%;
    overflow: hidden;
}

.slide-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: inherit;
    position: absolute;
    top: 0;
    left: 0;
}

.slider-container {
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.slide.active {
    opacity: 1;
}

.slide-content {
    display: flex;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    max-width: 600px;
    text-align: center;
}

.slide-content h1 {
    display: block;
    font-size: 36px;
    margin-bottom: 15px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.slide-content p {
    display: block;
    font-size: 18px;
    margin-bottom: 20px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.slider-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    transform: translateY(-50%);
}

.slider-controls button {
    background-color: rgba(255, 255, 255, 0.5);
    color: #333;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
    border: none;
    outline: none;
    font-size: 16px;
    z-index: 10;
    pointer-events: auto;
}

.slider-controls button:hover {
    background-color: rgba(255, 255, 255, 0.8);
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: #9b59b6;
    color: #fff;
}

.btn-primary:hover {
    background-color: #8e44ad;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.4);
}

.btn-secondary {
    background-color: #9b59b6;
    color: #fff;
}

.btn-secondary:hover {
    background-color: #8e44ad;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.4);
}

/* 页面标题 */
.page-header {
    background-color: #9b59b6;
    color: #fff;
    padding: 100px 0 60px;
    text-align: center;
}

.page-header h1 {
    font-size: 36px;
    margin-bottom: 10px;
}

.page-header p {
    font-size: 18px;
    opacity: 0.9;
}

/* 热门线路样式 */
.popular-tours,
.tours-section {
    padding: 20px 0 80px 0;
    background-color: #fff;
}

/* 旅游线路列表样式 */
.tours-list {
    padding: 20px 0 80px 0;
    margin-top: -60px;
    background-color: #fff;
}

.section-title {
    text-align: center;
    font-size: 32px;
    margin-bottom: 50px;
    color: #333;
}

.tours-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

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

/* 确保tour-detail页面中的tour-card与tours页面保持一致 */
.tour-detail-section .tour-card {
    margin-bottom: 30px;
}

.tour-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.tour-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

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

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

.tour-price {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: #9b59b6;
    color: #fff;
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 18px;
}

.tour-content {
    padding: 20px;
}

.tour-content h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #333;
}

.tour-info {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 14px;
    color: #666;
}

.tour-info span {
    display: flex;
    align-items: center;
}

.tour-info i {
    margin-right: 5px;
    color: #9b59b6;
}

.tour-info-price {
    font-weight: bold;
    color: #9b59b6;
    font-size: 16px;
}

.tour-content p {
    margin-bottom: 20px;
    color: #666;
    font-size: 14px;
    line-height: 1.6;
}

.tour-content .btn {
    float: right;
}

/* 特色服务样式 */
.services,
.services-section {
    padding: 40px 0 80px;
    background-color: #f8f9fa;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.service-card,
.service-item {
    text-align: center;
    padding: 30px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.service-card:hover,
.service-item:hover {
    transform: translateY(-5px);
}

.service-icon {
    width: 80px;
    height: 80px;
    background-color: #9b59b6;
    color: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 20px;
    font-size: 32px;
}

.service-card h3,
.service-item h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #333;
}

.service-card p,
.service-item p {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
}



/* 发展历程样式 */
.history-section {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: #9b59b6;
    transform: translateX(-50%);
}

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

.timeline-item:nth-child(even) .timeline-content {
    left: 0;
}

.timeline-item:nth-child(odd) .timeline-content {
    left: 50%;
}

.timeline-content {
    position: relative;
    width: 45%;
    padding: 20px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.timeline-content h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #9b59b6;
}

.timeline-content p {
    color: #666;
    line-height: 1.6;
}

/* 团队介绍样式 */
.team-section {
    padding: 80px 0;
    background-color: #fff;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.team-member {
    text-align: center;
    padding: 20px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.team-member:hover {
    transform: translateY(-5px);
}

.member-image {
    margin-bottom: 20px;
}

.member-image img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.member-info h3 {
    font-size: 20px;
    margin-bottom: 5px;
    color: #333;
}

.member-info p {
    color: #666;
    font-size: 14px;
    margin-bottom: 10px;
}

/* 服务优势样式 */
.advantages-section {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.advantage-item {
    text-align: center;
    padding: 30px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.advantage-icon {
    width: 60px;
    height: 60px;
    background-color: #9b59b6;
    color: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 20px;
    font-size: 24px;
}

.advantage-item h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #333;
}

.advantage-item p {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
}

/* 联系我们样式 */
.contact-section {
    padding: 40px 0;
}

.contact-section h2 {
    text-align: center;
    margin-bottom: 40px;
    color: #333;
    font-size: 28px;
}

.contact-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    align-items: start;
}

.contact-text h3 {
    color: #9b59b6;
    margin: 25px 0 15px;
    font-size: 20px;
}

.contact-text p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.contact-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

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

/* 联系方式详情样式 */
.contact-details {
    margin-bottom: 20px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.contact-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.contact-label {
    font-weight: bold;
    color: #9b59b6;
    margin-right: 10px;
    font-size: 16px;
    min-width: 80px;
    flex-shrink: 0;
}

.contact-value {
    color: #666;
    line-height: 1.6;
    flex: 1;
}

/* 留言列表样式 */
.messages-container {
    grid-column: 1 / -1;
}

.messages-container h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #333;
}

#messages-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.message-item {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.message-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e9ecef;
}

.message-name {
    font-weight: bold;
    color: #333;
}

.message-date {
    color: #666;
    font-size: 14px;
}

.message-subject {
    font-weight: bold;
    margin-bottom: 10px;
    color: #9b59b6;
}

.message-text {
    color: #333;
    line-height: 1.6;
    margin-bottom: 15px;
}

.message-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.delete-btn {
    padding: 8px 16px;
    background-color: #e74c3c;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

.delete-btn:hover {
    background-color: #c0392b;
}

.empty-messages {
    text-align: center;
    color: #666;
    padding: 40px;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
}

.info-item i {
    width: 50px;
    height: 50px;
    background-color: #9b59b6;
    color: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    margin-right: 20px;
    flex-shrink: 0;
}

.info-item h3 {
    font-size: 18px;
    margin-bottom: 5px;
    color: #333;
}

.info-item p {
    color: #666;
    line-height: 1.6;
}





/* 地图样式 */
.map-section {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.map-container {
    height: 400px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.map-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #999;
}

.map-placeholder i {
    font-size: 48px;
    margin-bottom: 20px;
}



/* 常见问题样式 */
.faq-section {
    padding: 80px 0;
    background-color: #fff;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.faq-question {
    padding: 20px;
    background-color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background-color: #f8f9fa;
}

.faq-question h3 {
    font-size: 18px;
    color: #333;
    font-weight: 500;
}

.faq-question i {
    color: #9b59b6;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background-color: #f8f9fa;
}

.faq-item.active .faq-answer {
    padding: 20px;
    max-height: 200px;
}

.faq-answer p {
    color: #666;
    line-height: 1.6;
}

/* 页脚样式 */
.footer {
    background-color: #333;
    color: #fff;
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: #fff;
}

.footer-section p {
    margin-bottom: 15px;
    color: #ccc;
    line-height: 1.6;
    font-size: 14px;
}

.footer-section ul {
    list-style: none;
}

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

.footer-section ul li a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 14px;
}

.footer-section ul li a:hover {
    color: #9b59b6;
}

.footer-section ul li i {
    margin-right: 10px;
    color: #9b59b6;
}



.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #444;
    color: #ccc;
    font-size: 14px;
}

/* 关于我们页面样式 */
.about-section {
    padding: 40px 0;
}

.about-section h2 {
    text-align: center;
    margin-bottom: 40px;
    color: #333;
    font-size: 28px;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: start;
}

.about-image {
    margin: 0 auto;
    max-width: 300px;
    text-align: center;
}

.about-text h3 {
    color: #9b59b6;
    margin: 25px 0 15px;
    font-size: 20px;
}

.about-text p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.about-text ul {
    list-style-type: disc;
    margin-left: 20px;
    margin-bottom: 20px;
}

.about-text ul li {
    color: #666;
    margin-bottom: 8px;
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.about-image img:hover {
    transform: translateY(-5px);
}

/* 发展历程样式 - 居中显示 */
.history-timeline {
    margin: 40px auto;
    padding: 0;
    max-width: 800px; /* 不超过导航栏最大宽度 */
    position: relative;
}

/* 添加垂直连接线 */
.history-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 40px;
    bottom: 40px;
    width: 4px;
    background-color: #9b59b6;
    transform: translateX(-50%);
    border-radius: 2px;
    z-index: 0;
}

.history-timeline .timeline-item {
    position: relative;
    margin-bottom: 40px;
    width: 100%;
    left: 0 !important;
    right: 0 !important;
    z-index: 1;
}

.history-timeline .timeline-content {
    position: relative;
    padding: 25px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    box-sizing: border-box; /* 确保padding不影响宽度计算 */
    color: #666;
    line-height: 1.6;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 100% !important;
    text-align: center;
    margin: 0 auto !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 1;
}

/* 确保内容居中 */
.history-timeline .timeline-year {
    display: block;
    font-size: 18px;
    font-weight: bold;
    color: #9b59b6;
    margin-bottom: 10px;
}

/* 移除不需要的连接线 */
.history-timeline .timeline-item::before,
.history-timeline .timeline-content::before {
    display: none !important;
}

/* 内容悬停效果 */
.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* 内容连接到时间线的线条 */
.timeline-item:nth-child(even) .timeline-content::before {
    content: '';
    position: absolute;
    right: -20px;
    top: 25px;
    width: 20px;
    height: 2px;
    background-color: #9b59b6;
}

.timeline-item:nth-child(odd) .timeline-content::before {
    content: '';
    position: absolute;
    left: -20px;
    top: 25px;
    width: 20px;
    height: 2px;
    background-color: #9b59b6;
}

.timeline-year {
    display: block;
    font-weight: bold;
    color: #9b59b6;
    font-size: 20px;
    margin-bottom: 12px;
    font-family: 'Microsoft YaHei', Arial, sans-serif;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .history-timeline::before {
        left: 30px;
    }
    
    .timeline-item::before {
        left: 30px;
        transform: none;
    }
    
    .timeline-item:nth-child(even) .timeline-content,
    .timeline-item:nth-child(odd) .timeline-content {
        margin-left: 80px;
        margin-right: 0;
        width: calc(100% - 110px);
        padding-left: 40px;
        padding-right: 25px;
    }
    
    .timeline-item:nth-child(even) .timeline-content::before,
    .timeline-item:nth-child(odd) .timeline-content::before {
        left: -20px;
        right: auto;
    }
}

/* 公司优势样式 */
.advantages-list {
    margin: 20px 0;
    display: flex;
    gap: 20px;
    justify-content: space-between;
    flex-wrap: nowrap; /* 确保不换行 */
    width: 100%; /* 确保列表占满容器宽度 */
}

.advantage-item {
    flex: 1; /* 让每个优势项目均分宽度 */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex-basis: 0; /* 重置基础宽度，确保真正均分 */
    flex-grow: 1; /* 允许项目增长以填充空间 */
    flex-shrink: 1; /* 允许项目收缩以适应空间 */
    min-width: 0; /* 允许收缩到内容宽度 */
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

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

.advantage-icon {
    font-size: 32px;
    color: #fff;
    background-color: #9b59b6;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 15px;
    flex-shrink: 0;
}

.advantage-content h4 {
    color: #333;
    margin-bottom: 10px;
    font-size: 16px;
}

.advantage-content p {
    color: #666;
    line-height: 1.5;
    margin: 0;
    font-size: 14px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: #fff;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: left 0.3s ease;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        margin: 20px 0;
    }
    
    .nav-menu .admin-login {
        background-color: #9b59b6;
        color: #fff !important;
        padding: 10px 20px;
        border-radius: 4px;
        display: inline-block;
        margin-top: 10px;
    }

    .slide-content h1 {
        font-size: 32px;
    }

    .slide-content p {
        font-size: 16px;
    }

    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
    }

    .timeline::before {
        left: 30px;
    }

    .timeline-content {
        width: calc(100% - 80px);
        left: 80px !important;
    }


}

@media (max-width: 480px) {
    .slide-content {
        left: 5%;
        right: 5%;
    }

    .slide-content h1 {
        font-size: 24px;
    }

    .slide-content p {
        font-size: 14px;
    }

    .section-title {
        font-size: 24px;
    }

    .page-header h1 {
        font-size: 28px;
    }

    .tours-grid {
        grid-template-columns: 1fr;
    }

    .services-grid,
    .advantages-grid,
    .team-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    /* 旅游详情页面响应式样式 */
    .tour-detail-header {
        grid-template-columns: 1fr;
    }

    .tour-detail-images {
        margin-bottom: 20px;
        max-width: 100%;
    }

    .main-image img {
        width: 100%;
        height: auto;
        max-height: 300px;
        object-fit: cover;
    }

    .tour-detail-info {
        padding: 0;
    }

    .thumbnail-images {
        gap: 5px;
    }

    .thumbnail-images img {
        width: 70px;
        height: 50px;
    }

    .tour-meta {
        flex-direction: column;
        gap: 10px;
    }

    .tour-price {
        font-size: 24px;
    }

    .tour-detail-price {
        font-size: 24px;
    }

    .tour-detail-basic h3 {
        font-size: 20px;
    }


}

/* 旅游详情页面样式 */
.tour-detail-section {
    padding: 20px 0 80px 0;
    margin-top: -60px;
    background-color: #fff;
}

.tour-detail {
    padding: 80px 0;
    background-color: #fff;
}

/* 旅游详情头部样式，与tours.html中的tour-card头部保持一致 */
.tour-detail-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: start;
}

.tour-left {
    display: flex;
    flex-direction: column;
}

.tour-right {
    display: flex;
    flex-direction: column;
}

.tour-right .tour-info {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
    font-size: 14px;
    color: #666;
}

.tour-right .tour-info span {
    display: flex;
    align-items: center;
}

.tour-right .tour-info i {
    margin-right: 5px;
    color: #9b59b6;
}

.tour-right .tour-info .tour-price-info {
    color: #9b59b6;
    font-size: 19px;
    font-weight: bold;
}

.tour-detail-header .tour-image {
    height: 400px;
    overflow: hidden;
    position: relative;
    border-radius: 8px;
    margin-bottom: 20px;
}

.tour-detail-header .tour-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.tour-detail-header .tour-image img:hover {
    transform: scale(1.1);
}

.tour-detail-header .tour-price {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: #9b59b6;
    color: #fff;
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 18px;
}

.tour-detail-header .tour-content {
    padding: 0;
}

.tour-detail-header .tour-content h1 {
    font-size: 28px;
    margin-bottom: 20px;
    color: #333;
}

.tour-detail-images {
    margin-top: 20px;
}

.thumbnail-images {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 10px;
    min-height: 80px;
}

.thumbnail-images img {
    width: 100%;
    height: 80px;
    object-fit: cover;
    border-radius: 5px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.thumbnail-images img:hover {
    border-color: #9b59b6;
    transform: scale(1.05);
}

.tour-detail-info {
    padding: 0;
}

.tour-detail-info h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #333;
}

.tour-detail-info p {
    margin-bottom: 20px;
    color: #666;
    font-size: 14px;
    line-height: 1.6;
}

.tour-detail-info ul {
    margin-bottom: 20px;
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    padding-left: 20px;
}

.tour-detail-info ul li {
    margin-bottom: 8px;
}

.tour-detail-info .book-now-btn {
    float: right;
}

.tour-detail-basic h3 {
    font-size: 28px;
    margin-bottom: 15px;
    color: #333;
}

.tour-detail-price {
    font-size: 32px;
    color: #9b59b6;
    font-weight: bold;
    margin-bottom: 20px;
}

.tour-price {
    font-size: 32px;
    color: #9b59b6;
    font-weight: bold;
    margin-bottom: 20px;
}

.tour-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    color: #666;
    font-size: 16px;
}

.tour-meta span {
    display: flex;
    align-items: center;
}

.tour-meta i {
    margin-right: 8px;
    color: #9b59b6;
}

.tour-detail-description,
.tour-detail-itinerary,
.tour-detail-inclusions,
.tour-detail-exclusions {
    margin-bottom: 40px;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 10px;
}

.tour-detail-description h4,
.tour-detail-itinerary h4,
.tour-detail-inclusions h4,
.tour-detail-exclusions h4 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #333;
}

.tour-detail-description p {
    line-height: 1.8;
    color: #666;
}

.tour-detail-itinerary {
    line-height: 1.8;
    color: #666;
}

.tour-detail-inclusions ul,
.tour-detail-exclusions ul {
    list-style: none;
    padding: 0;
}

.tour-detail-inclusions li,
.tour-detail-exclusions li {
    padding: 8px 0;
    line-height: 1.6;
    color: #666;
}

.tour-detail-inclusions li::before,
.tour-detail-exclusions li::before {
    content: '✓';
    color: #9b59b6;
    margin-right: 10px;
    font-weight: bold;
}

.tour-detail-exclusions li::before {
    content: '✗';
    color: #e74c3c;
}

.day {
    margin-bottom: 30px;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #9b59b6;
}

.day h4 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #333;
}

.day p {
    color: #666;
    line-height: 1.6;
}

/* 预订按钮样式 */
.book-now-btn {
    display: inline-block;
    padding: 15px 40px;
    background-color: #9b59b6;
    color: #fff;
    font-size: 18px;
    font-weight: bold;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 30px;
}

.book-now-btn:hover {
    background-color: #8e44ad;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(155, 89, 182, 0.4);
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease;
}