:root {
    --primary-color: #ff6b6b;
    --secondary-color: #333;
    --bg-color: #f4f7f6;
    --card-bg: #ffffff;
    --text-color: #2d3436;
    --shadow: 0 4px 15px rgba(0,0,0,0.1);
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", sans-serif;
}

/* 导航栏 */
.navbar {
    background: white;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.lang-switch button {
    background: none;
    border: 1px solid #ddd;
    padding: 5px 15px;
    cursor: pointer;
    border-radius: 20px;
    margin-left: 5px;
    transition: 0.3s;
}

.lang-switch button.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Hero */
.hero {
    text-align: center;
    padding: 2.5rem 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.search-container {
    position: relative;
    max-width: 500px;
    margin: 0 auto 1.5rem;
}

.search-container input {
    width: 100%;
    padding: 12px 45px 12px 20px;
    border-radius: 25px;
    border: none;
    font-size: 1rem;
    outline: none;
}

.search-container i {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #888;
}

/* Filter Buttons */
.filter-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    max-width: 900px;
    margin: 0 auto;
}

.filter-btn {
    padding: 6px 16px;
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.4);
    color: white;
    border-radius: 20px;
    cursor: pointer;
    transition: 0.3s;
    font-size: 0.85rem;
}

.filter-btn.active {
    background: white;
    color: #764ba2;
    font-weight: bold;
}

/* Grid */
.gallery-container {
    padding: 2rem 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

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

/* Card */
.card {
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
    cursor: pointer;
}

.card:hover {
    transform: translateY(-5px);
}

.card-img-wrapper {
    position: relative;
    height: 180px;
    overflow: hidden;
}

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

.card-rating-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(255, 255, 255, 0.95);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 4px;
}

.card-rating-badge i {
    color: #ffbb3c;
}

.card-body {
    padding: 1rem;
}

.card-tag {
    font-size: 0.7rem;
    color: var(--primary-color);
    text-transform: uppercase;
    font-weight: 800;
}

.card-title {
    margin: 0.5rem 0;
    font-size: 1.1rem;
    font-weight: bold;
}

.card-meta {
    font-size: 0.85rem;
    color: #777;
    margin-top: 0.8rem;
    border-top: 1px solid #eee;
    padding-top: 0.8rem;
}

.card-price {
    color: var(--primary-color);
    font-weight: bold;
}

.hidden {
    display: none;
}

.no-result {
    text-align: center;
    padding: 3rem;
    color: #999;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
    overflow: auto;
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 0;
    border-radius: 12px;
    width: 90%;
    max-width: 700px;
    position: relative;
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    color: white;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10;
    width: 36px;
    height: 36px;
    background: rgba(0,0,0,0.4);
    border-radius: 50%;
    text-align: center;
    line-height: 36px;
}

#modalImg {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.modal-info {
    padding: 1.5rem;
}

.modal-header-info {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

#modalTitle {
    font-size: 1.4rem;
    color: #333;
}

.modal-tag {
    background: var(--bg-color);
    color: var(--primary-color);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
}

.modal-stats {
    display: flex;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem 0;
    justify-content: space-around;
}

.stat-item {
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 1.1rem;
    font-weight: bold;
    color: #333;
}

.stat-label {
    font-size: 0.75rem;
    color: #888;
}

.location-box {
    background: #fff;
    border: 1px solid #eee;
    padding: 0.8rem;
    border-radius: 6px;
    font-size: 0.9rem;
    color: #555;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 1rem;
}

.location-box i {
    color: var(--primary-color);
    margin-top: 3px;
}

.map-btn {
    display: block;
    text-align: center;
    background: var(--primary-color);
    color: white;
    padding: 12px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
}

footer {
    text-align: center;
    padding: 2rem;
    background: #333;
    color: #aaa;
    margin-top: 2rem;
}

@media (max-width: 600px) {
    .modal-content {
        margin: 0;
        width: 100%;
        height: 100%;
        border-radius: 0;
    }
}
