* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', '微软雅黑', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background: rgba(255, 255, 255, 0.95);
    min-height: 100vh;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px 0;
    border-bottom: 3px solid #667eea;
}

header h1 {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.subtitle {
    font-size: 1.1rem;
    color: #666;
    font-style: italic;
}

.nav-bar {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
    padding: 20px 0;
}

.nav-btn {
    padding: 12px 24px;
    border: none;
    background: #f8f9fa;
    color: #495057;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    text-decoration: none;
}

.nav-btn:hover {
    background: #e9ecef;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.nav-btn.active {
    background: #667eea;
    color: white;
    border-color: #5a6fd8;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.search-section {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 15px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

#searchInput {
    flex: 1;
    max-width: 400px;
    padding: 12px 20px;
    border: 2px solid #dee2e6;
    border-radius: 25px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s ease;
}

#searchInput:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

#searchBtn, #clearBtn {
    padding: 12px 24px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

#searchBtn {
    background: #28a745;
    color: white;
}

#searchBtn:hover {
    background: #218838;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(40, 167, 69, 0.3);
}

#clearBtn {
    background: #6c757d;
    color: white;
}

#clearBtn:hover {
    background: #5a6268;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(108, 117, 125, 0.3);
}

.stats-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
    padding: 20px 0;
}

.stat-card {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:nth-child(2) {
    background: linear-gradient(135deg, #4ecdc4, #44a08d);
    box-shadow: 0 4px 15px rgba(78, 205, 196, 0.3);
}

.stat-card:nth-child(3) {
    background: linear-gradient(135deg, #45b7d1, #96c93d);
    box-shadow: 0 4px 15px rgba(69, 183, 209, 0.3);
}

.stat-card:nth-child(4) {
    background: linear-gradient(135deg, #f093fb, #f5576c);
    box-shadow: 0 4px 15px rgba(240, 147, 251, 0.3);
}

.stat-card:nth-child(5) {
    background: linear-gradient(135deg, #4facfe, #00f2fe);
    box-shadow: 0 4px 15px rgba(79, 172, 254, 0.3);
}

.stat-card:nth-child(6) {
    background: linear-gradient(135deg, #43e97b, #38f9d7);
    box-shadow: 0 4px 15px rgba(67, 233, 123, 0.3);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.stat-card h3 {
    font-size: 0.9rem;
    margin-bottom: 10px;
    opacity: 0.9;
}

.stat-card span {
    font-size: 2rem;
    font-weight: bold;
}

.sites-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
    padding: 20px 0;
}

.site-card {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border-left: 5px solid #e9ecef;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.site-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.site-card:active {
    transform: translateY(-2px);
    transition: all 0.1s ease;
}

.site-card .card-preview-hint {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.9), rgba(118, 75, 162, 0.9));
    color: white;
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.site-card:hover .card-preview-hint {
    opacity: 1;
    transform: translateY(-2px);
}

.site-card.temple,
.site-card.heritage,
.site-card.ancient,
.site-card.residence,
.site-card.other {
    border-left-color: #e9ecef;
}

.site-name {
    font-size: 1.3rem;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.site-category {
    display: inline-block;
    padding: 4px 12px;
    background: #667eea;
    color: white;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

.site-card.temple .site-category {
    background: #28a745;
}

.site-card.heritage .site-category {
    background: #17a2b8;
}

.site-card.ancient .site-category {
    background: #ffc107;
    color: #333;
}

.site-card.residence .site-category {
    background: #e83e8c;
}

.site-card.other .site-category {
    background: #6f42c1;
}

.site-description {
    color: #666;
    line-height: 1.8;
    margin-top: 15px;
    text-align: justify;
}

.site-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
    font-size: 0.9rem;
    color: #888;
}

.site-location {
    font-weight: 500;
}

.site-period {
    font-style: italic;
}

footer {
    text-align: center;
    margin-top: 50px;
    padding: 30px 0;
    border-top: 2px solid #eee;
    color: #666;
    background: #f8f9fa;
    border-radius: 10px;
}

footer p:last-child {
    margin-top: 8px;
}

footer a {
    color: #999;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

footer a:hover {
    color: #666;
}

@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    .nav-bar {
        justify-content: center;
    }
    
    .nav-btn {
        padding: 10px 16px;
        font-size: 0.9rem;
    }
    
    .search-section {
        flex-direction: column;
        gap: 10px;
    }
    
    #searchInput {
        max-width: 100%;
    }
    
    .stats-section {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .sites-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .site-card {
        padding: 20px;
    }
    
    .site-name {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .stats-section {
        grid-template-columns: 1fr;
    }
    
    .stat-card span {
        font-size: 1.5rem;
    }
    
    .site-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
}