/* 基础样式 */
:root {
    --primary-color: #ff6b6b;
    --secondary-color: #48dbfb;
    --dark-color: #2d3436;
    --light-color: #f5f6fa;
    --gray-color: #dfe6e9;
    --success-color: #1dd1a1;
    --border-radius: 8px;
    --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

body {
    background-color: #f8f9fa;
    color: var(--dark-color);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航栏 */
.navbar {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 15px 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--dark-color);
    text-decoration: none;
}

.logo span {
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links a {
    color: var(--dark-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.btn-login {
    background-color: var(--primary-color);
    color: white !important;
    padding: 8px 20px;
    border-radius: var(--border-radius);
    transition: background-color 0.3s;
}

.btn-login:hover {
    background-color: #ff5252;
}

/* 路线容器 */
.route-container {
    padding: 40px 0;
}

/* 路线头部 */
.route-header {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
}

.cover-image {
    flex: 1;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.cover-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: transform 0.5s;
}

.cover-image:hover img {
    transform: scale(1.02);
}

.route-meta {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.author-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid white;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.author-info h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.post-date {
    color: #7f8c8d;
    font-size: 0.9rem;
}

.route-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--dark-color);
    line-height: 1.3;
}

.route-stats {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
}

.route-stats span {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #7f8c8d;
    font-size: 0.95rem;
}

.route-actions {
    display: flex;
    gap: 15px;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-like {
    background-color: white;
    color: var(--dark-color);
    border: 1px solid var(--gray-color);
}

.btn-like:hover {
    background-color: #f8f9fa;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-share {
    background-color: var(--secondary-color);
    color: white;
}

.btn-share:hover {
    background-color: #3ecff1;
}

.btn-download {
    background-color: var(--dark-color);
    color: white;
}

.btn-download:hover {
    background-color: #3d4a4d;
}

/* 路线内容 */
.route-content {
    display: flex;
    gap: 30px;
}

.content-main {
    flex: 2.5;
}

.content-sidebar {
    flex: 1;
}

.route-description,
.route-map,
.route-points,
.sidebar-card {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: var(--box-shadow);
}

h2 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--dark-color);
}

.route-description p {
    line-height: 1.8;
    color: #555;
}

.map-placeholder {
    position: relative;
    height: 400px;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.map-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.map-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

.map-overlay:hover {
    background-color: rgba(0, 0, 0, 0.5);
}

/* 途经点 */
.points-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.point-item {
    display: flex;
    gap: 15px;
    padding-bottom: 20px;
    border-bottom: 1px dashed #eee;
}

.point-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.point-marker {
    width: 30px;
    height: 30px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    flex-shrink: 0;
}

.point-content h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: var(--dark-color);
}

.point-content p {
    color: #7f8c8d;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

/* 侧边栏 */
.route-info {
    list-style: none;
}

.route-info li {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

.route-info li:last-child {
    border-bottom: none;
}

.info-label {
    color: #7f8c8d;
}

.info-value {
    font-weight: 600;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    background-color: #f0f5ff;
    color: #4a80f0;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
}

/* 更多路线 */
.more-routes {
    margin-top: 50px;
}

.routes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.route-card {
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: transform 0.3s;
}

.route-card:hover {
    transform: translateY(-5px);
}

.route-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.route-card h3 {
    padding: 15px;
    font-size: 1.1rem;
}

.card-stats {
    display: flex;
    gap: 15px;
    padding: 0 15px 15px;
    color: #7f8c8d;
    font-size: 0.85rem;
}

/* 页脚 */
.site-footer {
    background-color: var(--dark-color);
    color: white;
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer-section p {
    margin-bottom: 15px;
    color: #b2b2b2;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: #b2b2b2;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section ul li a:hover {
    color: white;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    color: white;
    font-size: 1.2rem;
    transition: color 0.3s;
}

.social-links a:hover {
    color: var(--secondary-color);
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #3d3d3d;
    color: #b2b2b2;
    font-size: 0.9rem;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .route-header {
        flex-direction: column;
    }

    .cover-image img {
        height: 300px;
    }

    .route-content {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .route-title {
        font-size: 1.8rem;
    }

    .route-actions {
        flex-wrap: wrap;
    }

    .btn {
        flex: 1;
        justify-content: center;
    }
}