/* Global Styles */
:root {
    --primary-color: #1e5f74;
    --secondary-color: #deb959;
    --accent-color: #ff7e67;
    --light-color: #f8f9fa;
    --dark-color: #333;
    --gray-color: #6c757d;
    --light-gray: #e9ecef;
    --font-main: 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    line-height: 1.6;
    color: var(--dark-color);
    background-color: #f4f4f4;
}

a {
    text-decoration: none;
    color: var(--dark-color);
    transition: all 0.3s ease;
}

a:hover {
    color: var(--primary-color);
}

ul {
    list-style: none;
}

button {
    cursor: pointer;
    border: none;
    outline: none;
    transition: all 0.3s ease;
}

.primary-btn {
    background-color: var(--primary-color);
    color: white;
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: 600;
}

.primary-btn:hover {
    background-color: #164959;
    transform: translateY(-2px);
}

.secondary-btn {
    background-color: var(--secondary-color);
    color: var(--dark-color);
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: 600;
}

.secondary-btn:hover {
    background-color: #c5a44e;
    transform: translateY(-2px);
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.section-header p {
    font-size: 1.1rem;
    color: var(--gray-color);
}

/* Header and Navigation */
header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.logo h1 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 0;
}

.logo p {
    font-size: 0.9rem;
    color: var(--gray-color);
}

.nav-links {
    display: flex;
    gap: 20px;
}

.nav-links a {
    font-weight: 500;
    padding: 5px 10px;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.auth-buttons {
    display: flex;
    gap: 10px;
}

.login-btn {
    background-color: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    padding: 8px 15px;
    border-radius: 4px;
    font-weight: 500;
}

.login-btn:hover {
    background-color: var(--primary-color);
    color: white;
}

.signup-btn {
    background-color: var(--primary-color);
    color: white;
    padding: 8px 15px;
    border-radius: 4px;
    font-weight: 500;
}

.signup-btn:hover {
    background-color: #164959;
}

/* Hero Section */
.hero {
    height: 80vh;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../images/backgrounds/photo-1617014209067-ea13fa8c2ef8.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.search-container {
    display: flex;
    max-width: 600px;
    margin: 0 auto 30px;
}

.search-container input {
    flex: 1;
    padding: 15px;
    border: none;
    border-radius: 4px 0 0 4px;
    font-size: 1rem;
}

.search-container button {
    background-color: var(--secondary-color);
    color: var(--dark-color);
    padding: 15px 25px;
    border-radius: 0 4px 4px 0;
    font-weight: 600;
}

.search-container button:hover {
    background-color: #c5a44e;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

/* Routes Section */
.routes-section {
    padding: 80px 5%;
    max-width: 1400px;
    margin: 0 auto;
}

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

.route-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

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

.route-image {
    height: 200px;
    overflow: hidden;
}

.route-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
}

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

.route-info {
    padding: 20px;
}

.route-info h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.route-info p {
    color: var(--gray-color);
    margin-bottom: 15px;
}

.route-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    color: var(--gray-color);
}

.route-info button {
    background-color: var(--primary-color);
    color: white;
    padding: 8px 15px;
    border-radius: 4px;
    font-weight: 500;
}

.route-info button:hover {
    background-color: #164959;
}

.view-more {
    text-align: center;
    margin-top: 40px;
}

.view-more button {
    background-color: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: 500;
}

.view-more button:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Destinations Section */
.destinations-section {
    padding: 80px 5%;
    background-color: var(--light-color);
    max-width: 1400px;
    margin: 0 auto;
}

.destinations-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.destination-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    height: 320px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.destination-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
}

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

.destination-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    padding: 20px;
    color: white;
    transition: all 0.3s ease;
}

.destination-card:hover .destination-overlay {
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
}

.destination-overlay h3 {
    margin-bottom: 10px;
}

.destination-overlay p {
    margin-bottom: 15px;
    font-size: 0.9rem;
    opacity: 0.9;
}

.destination-overlay button {
    background-color: var(--secondary-color);
    color: var(--dark-color);
    padding: 8px 15px;
    border-radius: 4px;
    font-weight: 500;
}

.destination-overlay button:hover {
    background-color: #c5a44e;
}

/* Services Section */
.services-section {
    padding: 80px 5%;
    max-width: 1400px;
    margin: 0 auto;
}

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

.service-card {
    background-color: white;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

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

.service-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.service-card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.service-card p {
    color: var(--gray-color);
}

/* Community Section */
.community-section {
    padding: 80px 5%;
    background-color: var(--light-color);
    max-width: 1400px;
    margin: 0 auto;
}

.community-container {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 30px;
}

.community-posts {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.post-card {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.post-user {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.post-user img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 15px;
}

.user-info h4 {
    margin-bottom: 5px;
}

.user-info span {
    font-size: 0.8rem;
    color: var(--gray-color);
}

.post-content {
    margin-bottom: 20px;
}

.post-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 15px;
}

.post-images img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 4px;
}

.post-actions {
    display: flex;
    gap: 15px;
}

.post-actions button {
    background-color: transparent;
    color: var(--gray-color);
    padding: 8px 12px;
    font-size: 0.9rem;
    border-radius: 4px;
}

.post-actions button:hover {
    background-color: var(--light-gray);
    color: var(--primary-color);
}

.community-sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.sidebar-section {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.sidebar-section h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--light-gray);
}

.sidebar-section ul {
    margin-top: 10px;
}

.sidebar-section li {
    padding: 8px 0;
    color: var(--primary-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

.sidebar-section li:hover {
    color: var(--secondary-color);
    transform: translateX(5px);
}

.sidebar-section p {
    margin-bottom: 15px;
    color: var(--gray-color);
}

/* About Section */
.about-section {
    padding: 80px 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.about-mission h3, .about-team h3 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.about-mission p, .about-team p {
    margin-bottom: 20px;
    color: var(--gray-color);
}

.team-members {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.team-member {
    text-align: center;
}

.team-member img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 10px;
}

.team-member h4 {
    margin-bottom: 5px;
}

.team-member p {
    font-size: 0.9rem;
    color: var(--gray-color);
}

/* Footer */
footer {
    background-color: var(--dark-color);
    color: white;
    padding-top: 60px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5% 40px;
}

.footer-section h3 {
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-icons a {
    color: white;
    font-size: 1.5rem;
}

.social-icons a:hover {
    color: var(--secondary-color);
}

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

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

.footer-section a {
    color: #ddd;
}

.footer-section a:hover {
    color: var(--secondary-color);
}

.footer-section p {
    margin-bottom: 10px;
    color: #ddd;
}

.footer-section i {
    margin-right: 10px;
}

.subscribe-form {
    display: flex;
    margin-top: 15px;
}

.subscribe-form input {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 4px 0 0 4px;
}

.subscribe-form button {
    background-color: var(--secondary-color);
    color: var(--dark-color);
    padding: 10px 15px;
    border-radius: 0 4px 4px 0;
    font-weight: 500;
}

.subscribe-form button:hover {
    background-color: #c5a44e;
}

.footer-bottom {
    background-color: #222;
    text-align: center;
    padding: 20px 0;
    margin-top: 20px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .about-container {
        grid-template-columns: 1fr;
    }
    
    .hero-content h1 {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        gap: 15px;
    }
    
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .community-container {
        grid-template-columns: 1fr;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .routes-container,
    .destinations-container,
    .services-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .search-container {
        flex-direction: column;
    }
    
    .search-container input,
    .search-container button {
        width: 100%;
        border-radius: 4px;
    }
    
    .search-container button {
        margin-top: 10px;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .post-images {
        grid-template-columns: 1fr;
    }
} 