/* 主题banner样式 */
.theme-banner {
    height: 300px;
    background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('https://via.placeholder.com/1920x400/007bff/ffffff?text=Mountain+Adventure');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    margin-top: 70px;
}

.banner-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* 视图切换按钮 */
.view-toggle {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 20px;
    text-align: right;
}

.view-toggle button {
    padding: 8px 15px;
    margin-left: 10px;
    border: 1px solid #ddd;
    background: white;
    cursor: pointer;
    border-radius: 4px;
}

.view-toggle button.active {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

/* 路线卡片样式 - 图文视图 */
.routes-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.grid-view {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    display: none;
}

.grid-view.active {
    display: grid;
}

.route-card {
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s;
    background: white;
}

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

.route-image {
    position: relative;
    height: 200px;
}

.route-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.duration {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.9rem;
}

.route-info {
    padding: 20px;
}

.route-tags {
    margin: 10px 0;
    display: flex;
    gap: 15px;
}

.route-tags span {
    color: #666;
    font-size: 0.9rem;
}

.route-desc {
    margin: 10px 0;
    color: #666;
    line-height: 1.5;
}

.route-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
}

.price {
    color: #e74c3c;
    font-size: 1.2rem;
    font-weight: bold;
}

.view-detail {
    padding: 8px 15px;
    background: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.3s;
}

.view-detail:hover {
    background: #0056b3;
}

/* 列表视图样式 */
.list-view {
    display: none;
}

.list-view.active {
    display: block;
}

.route-list-item {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 20px;
    margin-bottom: 20px;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    background: white;
}

.route-list-image {
    height: 200px;
}

.route-list-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.route-list-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.route-meta {
    display: flex;
    gap: 20px;
    margin: 10px 0;
    color: #666;
}

.route-actions {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .route-list-item {
        grid-template-columns: 1fr;
    }
    
    .theme-banner {
        height: 200px;
    }
    
    .banner-content h1 {
        font-size: 2rem;
    }
} 