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

body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

header {
    background-color: #4CAF50;
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

header h1 {
    text-align: center;
    margin-bottom: 1rem;
}

nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
}

nav ul li {
    margin: 0 1rem;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

nav ul li a:hover {
    text-decoration: underline;
}

.sub-nav {
    background-color: #388E3C;
    padding: 0.5rem 0;
}

.sub-nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    flex-wrap: wrap;
}

.sub-nav ul li {
    margin: 0 0.5rem;
}

.sub-nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
}

.sub-nav ul li a:hover {
    text-decoration: underline;
}

main {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

section {
    background-color: white;
    margin-bottom: 2rem;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

h2 {
    color: #4CAF50;
    margin-bottom: 1rem;
    border-bottom: 2px solid #4CAF50;
    padding-bottom: 0.5rem;
}

.price-table table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}

.price-table th, .price-table td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: center;
}

.price-table th {
    background-color: #4CAF50;
    color: white;
}

.price-table tr:nth-child(even) {
    background-color: #f2f2f2;
}

.additional-services ul {
    list-style-type: none;
    padding: 1rem;
}

.additional-services li {
    padding: 0.5rem 0;
    border-bottom: 1px dashed #eee;
}

.room-search form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1rem;
    background-color: #f9f9f9;
    border-radius: 8px;
}

.room-search label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.room-search input, .room-search select {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.room-search button {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    align-self: end;
}

.room-search button:hover {
    background-color: #45a049;
}

#room-results {
    margin-top: 2rem;
}

#results-content {
    padding: 1rem;
    background-color: #e8f5e9;
    border-radius: 4px;
    min-height: 50px;
}

#visualization-section {
    margin-top: 2rem;
}

#visualization-section h3 {
    color: #4CAF50;
    margin-bottom: 1rem;
}

.chart-container {
    position: relative;
    height: 300px;
    width: 100%;
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 1rem;
    box-sizing: border-box;
}

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

@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        align-items: center;
    }
    
    nav ul li {
        margin: 0.5rem 0;
    }
    
    .room-search form {
        grid-template-columns: 1fr;
    }
    
    main {
        margin: 1rem auto;
        padding: 0 0.5rem;
    }
    
    section {
        padding: 1rem;
    }
    
    .sub-nav ul {
        flex-direction: column;
        align-items: center;
    }
    
    .sub-nav ul li {
        margin: 0.25rem 0;
    }
}