* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Serif SC', serif;
    background: linear-gradient(135deg, #f5f3ef 0%, #e8e4d9 100%);
    min-height: 100vh;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background: linear-gradient(135deg, #8B4513 0%, #A0522D 50%, #8B4513 100%);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo h1 {
    color: #fff;
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 2px;
}

.logo p {
    color: #ffd700;
    font-size: 0.8rem;
    margin-top: 0.2rem;
}

.nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav a {
    color: #fff;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.nav a:hover,
.nav a.active {
    background: rgba(255, 255, 255, 0.2);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: #fff;
    margin: 4px 0;
    transition: all 0.3s ease;
}

.section {
    display: none;
    padding: 2rem 5%;
    min-height: calc(100vh - 120px);
}

.section.active {
    display: block;
}

.hero {
    background: linear-gradient(135deg, rgba(139, 69, 19, 0.9) 0%, rgba(160, 82, 45, 0.8) 100%);
    padding: 4rem 0;
    text-align: center;
    border-radius: 20px;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(139, 69, 19, 0.3);
}

.hero h2 {
    color: #fff;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero p {
    color: #ffd700;
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.search-box {
    display: flex;
    justify-content: center;
    gap: 1rem;
    max-width: 500px;
    margin: 0 auto;
}

.search-box input {
    flex: 1;
    padding: 1rem 1.5rem;
    border: none;
    border-radius: 30px;
    font-size: 1rem;
    outline: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.search-box button {
    padding: 1rem 2rem;
    background: #ffd700;
    border: none;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #8B4513;
}

.search-box button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
}

.carousel-container {
    position: relative;
    max-width: 100%;
    margin: 2rem auto;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.carousel {
    display: flex;
    transition: transform 0.5s ease;
}

.carousel-item {
    min-width: 100%;
    position: relative;
}

.carousel-item img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.carousel-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    color: #fff;
    padding: 2rem;
    font-size: 1.5rem;
    font-weight: 600;
}

.carousel-prev,
.carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.8);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-prev:hover,
.carousel-next:hover {
    background: #ffd700;
}

.carousel-prev {
    left: 20px;
}

.carousel-next {
    right: 20px;
}

.carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.indicator {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: #ffd700;
    transform: scale(1.2);
}

.featured-section {
    margin-top: 2rem;
}

.featured-section h3 {
    text-align: center;
    font-size: 2rem;
    color: #8B4513;
    margin-bottom: 2rem;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.card:hover .card-image img {
    transform: scale(1.1);
}

.card-content {
    padding: 1.5rem;
}

.card-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #8B4513;
    margin-bottom: 0.5rem;
}

.card-desc {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tag {
    padding: 0.3rem 0.8rem;
    background: #f5f3ef;
    border-radius: 15px;
    font-size: 0.8rem;
    color: #8B4513;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.section-header h2 {
    font-size: 2rem;
    color: #8B4513;
}

.filter-tabs {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.filter-tab {
    padding: 0.5rem 1.2rem;
    background: #fff;
    border: 1px solid #8B4513;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #8B4513;
}

.filter-tab:hover,
.filter-tab.active {
    background: #8B4513;
    color: #fff;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: #fff;
    margin: 5% auto;
    padding: 2rem;
    border-radius: 20px;
    width: 90%;
    max-width: 600px;
    position: relative;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.close {
    position: absolute;
    right: 1rem;
    top: 1rem;
    font-size: 2rem;
    cursor: pointer;
    color: #8B4513;
}

.modal-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 1.5rem;
}

.modal-content h3 {
    font-size: 1.8rem;
    color: #8B4513;
    margin-bottom: 1rem;
}

.modal-content p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.modal-info {
    display: flex;
    gap: 1rem;
}

.modal-info span {
    padding: 0.5rem 1rem;
    background: #f5f3ef;
    border-radius: 15px;
    color: #8B4513;
}

.map-section {
    margin-top: 2rem;
}

.map-section h3 {
    text-align: center;
    font-size: 2rem;
    color: #8B4513;
    margin-bottom: 0.5rem;
}

.map-desc {
    text-align: center;
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.map-container {
    background: #fff;
    border-radius: 15px;
    padding: 1rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    position: relative;
}

.map-controls {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.95);
    padding: 0.5rem;
    border-radius: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

.zoom-btn {
    width: 35px;
    height: 35px;
    border: none;
    background: #8B4513;
    color: #fff;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.zoom-btn:hover {
    background: #A0522D;
    transform: scale(1.1);
}

.zoom-level {
    font-size: 0.85rem;
    color: #8B4513;
    font-weight: 500;
    min-width: 50px;
    text-align: center;
}

.map-wrapper {
    width: 100%;
    height: 500px;
    overflow: hidden;
    border-radius: 10px;
    position: relative;
    cursor: grab;
}

.map-wrapper:active {
    cursor: grabbing;
}

#mapImage {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.2s ease;
    transform-origin: center center;
}

.map-tooltip {
    position: absolute;
    background: rgba(139, 69, 19, 0.95);
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
    z-index: 20;
    white-space: nowrap;
}

.map-tooltip.visible {
    opacity: 1;
}

.map-legend {
    margin-top: 1.5rem;
    background: #fff;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.map-legend h4 {
    font-size: 1.2rem;
    color: #8B4513;
    margin-bottom: 1rem;
}

.legend-items {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.legend-color {
    width: 20px;
    height: 20px;
    border-radius: 4px;
}

.footer {
    text-align: center;
    padding: 2rem;
    background: #8B4513;
    color: #fff;
    margin-top: 3rem;
}

@media (max-width: 768px) {
    .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #8B4513;
        padding: 1rem;
    }

    .nav.active {
        display: block;
    }

    .nav ul {
        flex-direction: column;
        gap: 1rem;
    }

    .menu-toggle {
        display: flex;
    }

    .hero h2 {
        font-size: 1.8rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .search-box {
        flex-direction: column;
        padding: 0 1rem;
    }

    .carousel-item img {
        height: 250px;
    }

    .carousel-caption {
        font-size: 1.2rem;
        padding: 1rem;
    }

    .carousel-prev,
    .carousel-next {
        width: 40px;
        height: 40px;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .filter-tabs {
        justify-content: flex-start;
    }

    .modal-content {
        margin: 10% auto;
        width: 95%;
        padding: 1.5rem;
    }

    .modal-image img {
        height: 200px;
    }

    .modal-content h3 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 1rem 3%;
    }

    .logo h1 {
        font-size: 1.4rem;
    }

    .hero {
        padding: 2rem 0;
    }

    .hero h2 {
        font-size: 1.5rem;
    }

    .card-grid {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 1rem 3%;
    }

    .map-wrapper {
        height: 300px;
    }

    .map-controls {
        top: 0.5rem;
        right: 0.5rem;
    }

    .legend-items {
        gap: 1rem;
    }

    .legend-item span:last-child {
        font-size: 0.8rem;
    }
}

.progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, #8B4513, #D4AF37, #8B4513);
    width: 0%;
    z-index: 1000;
    transition: width 0.1s ease;
}

.random-btn {
    margin-top: 1rem;
    padding: 0.8rem 2rem;
    background: linear-gradient(135deg, #D4AF37 0%, #B8860B 100%);
    color: #fff;
    border: none;
    border-radius: 30px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Noto Serif SC', serif;
}

.random-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.4);
}

.hot-section {
    background: #fff;
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.hot-header {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    gap: 1rem;
}

.hot-header h3 {
    color: #8B4513;
    font-size: 1.8rem;
}

.hot-subtitle {
    color: #666;
    font-size: 1rem;
}

.hot-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.favorites-count {
    background: #D4AF37;
    color: #fff;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.8rem;
    margin-left: 0.3rem;
}

.card-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.card-action-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0.3rem 0.6rem;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.card-action-btn:hover {
    transform: scale(1.2);
}

.card-action-btn.liked {
    color: #e74c3c;
    animation: heartBeat 0.3s ease;
}

.card-action-btn.favorited {
    color: #D4AF37;
    animation: starPop 0.3s ease;
}

@keyframes heartBeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.3); }
}

@keyframes starPop {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.3); }
}

.modal-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    justify-content: center;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    border: 2px solid #8B4513;
    background: #fff;
    border-radius: 20px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: 'Noto Serif SC', serif;
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.action-btn.liked {
    background: #e74c3c;
    border-color: #e74c3c;
    color: #fff;
}

.action-btn.favorited {
    background: #D4AF37;
    border-color: #D4AF37;
    color: #fff;
}

.clear-favorites {
    padding: 0.6rem 1.2rem;
    background: #e74c3c;
    color: #fff;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: 'Noto Serif SC', serif;
}

.clear-favorites:hover {
    background: #c0392b;
    transform: translateY(-2px);
}

.favorites-empty {
    text-align: center;
    padding: 4rem 2rem;
}

.favorites-empty p {
    color: #666;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.explore-btn {
    padding: 0.8rem 2rem;
    background: linear-gradient(135deg, #8B4513 0%, #A0522D 100%);
    color: #fff;
    border: none;
    border-radius: 30px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Noto Serif SC', serif;
}

.explore-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(139, 69, 19, 0.3);
}

.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #8B4513 0%, #A0522D 100%);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(139, 69, 19, 0.3);
    transition: all 0.3s ease;
    z-index: 999;
}

.back-to-top.show {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(139, 69, 19, 0.4);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.toast {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 1rem 2rem;
    border-radius: 30px;
    font-size: 1rem;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    z-index: 1001;
}

.toast.show {
    opacity: 1;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateX(-50%) translateY(20px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

@media (max-width: 768px) {
    .hot-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .modal-actions {
        flex-wrap: wrap;
    }
    
    .action-btn {
        font-size: 0.9rem;
        padding: 0.5rem 1rem;
    }
    
    .back-to-top {
        width: 45px;
        height: 45px;
        bottom: 1.5rem;
        right: 1.5rem;
    }
}