/* ================= 基础重置 ================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

:root {
    --primary-color: #1a2a3a; /* 深邃蓝 */
    --accent-color: #c8a165;  /* 奢华金 */
    --text-light: #ffffff;
    --text-dark: #333333;
    --bg-light: #f9f9f9;
}

body {
    color: var(--text-dark);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ================= 导航栏 ================= */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    background: rgba(26, 42, 58, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
}

.navbar .logo {
    color: var(--accent-color);
    font-size: 24px;
    font-weight: bold;
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: var(--text-light);
    font-size: 16px;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--accent-color);
}

.btn-book {
    background-color: var(--accent-color);
    color: var(--text-light);
    padding: 10px 25px;
    border-radius: 4px;
    font-weight: bold;
    transition: background 0.3s;
}

.btn-book:hover {
    background-color: #b08b4f;
}

/* ================= 主视觉横幅 (Hero) ================= */
.hero {
    height: 100vh;
    
    /* 这里使用了 ../ 退回到上一级寻找 images 文件夹，注意这个绝对不能少 */
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('../images/hero-bg.jpg') no-repeat center center/cover;
    
    /* 如果没有图片，显示深蓝色背景作为备用 */
    background-color: var(--primary-color);
    
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-light);
    padding: 0 20px;
}
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    font-weight: 300;
}

.btn-primary {
    display: inline-block;
    padding: 15px 40px;
    background-color: transparent;
    color: var(--accent-color);
    border: 2px solid var(--accent-color);
    font-size: 1.1rem;
    transition: all 0.3s;
}

.btn-primary:hover {
    background-color: var(--accent-color);
    color: var(--text-light);
}

/* ================= 客房展示区 ================= */
.rooms-section {
    padding: 100px 50px;
    background-color: var(--bg-light);
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.section-title p {
    color: #666;
    font-size: 1.1rem;
}

.room-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.room-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.room-card:hover {
    transform: translateY(-10px);
}

.room-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    background-color: #ddd;
}

.room-info {
    padding: 25px;
}

.room-info h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.room-info p {
    color: #666;
    margin-bottom: 15px;
}

.room-info .price {
    display: block;
    font-size: 1.2rem;
    color: var(--accent-color);
    font-weight: bold;
}

/* ================= 页脚 ================= */
footer {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 60px 50px 20px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto 40px;
    text-align: center;
}

.footer-info h3 {
    color: var(--accent-color);
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.footer-info p {
    margin-bottom: 10px;
    color: #ccc;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #888;
    font-size: 0.9rem;
}

/* ================= 响应式设计 ================= */
@media (max-width: 768px) {
    .navbar {
        padding: 15px 20px;
        flex-direction: column;
        gap: 15px;
    }
    
    .nav-links {
        display: none; 
    }
    
    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .rooms-section {
        padding: 60px 20px;
    }
}