:root {
    /* 颜色变量 */
    --bg-primary: #121212;
    --bg-secondary: #1a1a1a;
    --bg-accent: #ffffff;
    --text-main: #ffffff;
    --text-muted: #cccccc;
    --text-dark: #121212;
    --border-color: rgba(255, 255, 255, 0.1);
    --overlay: rgba(0, 0, 0, 0.4);

    /* 字体变量 */
    --font-serif: "Playfair Display", serif;
    --font-sans: "Inter", "Montserrat", sans-serif;

    /* 间距与尺寸 */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 8rem;
    --container-max: 1440px;
    --header-height: 80px;
    --border-radius-pill: 50px;
    --border-radius-sm: 8px;

    /* 动画 */
    --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* 1. 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-main);
    font-family: var(--font-sans);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1, h2, h3, h4, .serif {
    font-family: var(--font-serif);
    font-weight: 400;
    line-height: 1.2;
}

i, .italic {
    font-style: italic;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* 2. 按钮样式 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 32px;
    border-radius: var(--border-radius-pill);
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid transparent;
}

.btn-primary {
    background-color: var(--bg-accent);
    color: var(--text-dark);
}

.btn-primary:hover {
    background-color: var(--text-muted);
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--text-main);
    color: var(--text-main);
}

.btn-outline:hover {
    background-color: var(--bg-accent);
    color: var(--text-dark);
}

/* 3. 导航栏样式 (Header) */
.top-notification {
    background-color: #0a1128; /* 深蓝色通知栏 */
    color: var(--text-main);
    text-align: center;
    padding: 8px 0;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
}

.main-header {
    height: var(--header-height);
    display: flex;
    align-items: center;
    position: absolute;
    top: 36px; /* 留出通知栏空间 */
    left: 0;
    right: 0;
    z-index: 1000;
    transition: var(--transition);
}

.main-header.scrolled {
    position: fixed;
    top: 0;
    background-color: rgba(18, 18, 18, 0.95);
    backdrop-filter: blur(10px);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo img {
    height: 40px;
}

.nav-menu {
    display: flex;
    gap: var(--spacing-md);
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    opacity: 0.8;
}

.nav-link:hover {
    opacity: 1;
}

/* 4. 首屏主视觉 (Hero Section) */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-size: cover;
    background-position: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.5), rgba(0,0,0,0.2));
}

.hero-content {
    position: relative;
    z-index: 10;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 6rem);
    margin-bottom: var(--spacing-sm);
}

/* 预订搜索栏 (Booking Bar) */
.booking-bar {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1100px;
    background: var(--bg-secondary);
    padding: 30px;
    display: flex;
    gap: 20px;
    align-items: flex-end;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    z-index: 100;
}

.booking-field {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.booking-field label {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.1em;
}

.booking-field select, 
.booking-field input {
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 8px 0;
    outline: none;
    font-size: 1rem;
}

/* 5. 模块化网格展示 (Masonry/Grid) */
.grid-section {
    padding: var(--spacing-xl) 0;
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 20px;
}

.grid-item {
    position: relative;
    overflow: hidden;
}

.grid-item-lg { grid-column: span 8; }
.grid-item-sm { grid-column: span 4; }

/* 6. 交错式房间列表 (Z-Layout) */
.room-list {
    padding: var(--spacing-xl) 0;
}

.room-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
}

.room-item:nth-child(even) {
    flex-direction: row-reverse;
}

.room-image {
    flex: 1.2;
    overflow: hidden;
}

.room-image img {
    width: 100%;
    height: 600px;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.room-image:hover img {
    transform: scale(1.05);
}

.room-info {
    flex: 0.8;
}

.room-category {
    font-size: 0.9rem;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: var(--spacing-sm);
}

.room-title {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-md);
}

/* 7. 评价区域 (Testimonials) */
.testimonials {
    padding: var(--spacing-xl) 0;
    background-color: var(--bg-secondary);
}

.testimonial-track {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    padding-bottom: var(--spacing-md);
    scrollbar-width: none;
}

.testimonial-card {
    min-width: 400px;
    background: var(--bg-primary);
    padding: var(--spacing-md);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
}

.rating {
    color: #f1c40f;
    margin-bottom: var(--spacing-sm);
}

/* 8. 页脚样式 (Footer) */
.main-footer {
    padding: var(--spacing-xl) 0 var(--spacing-md);
    border-top: 1px solid var(--border-color);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.footer-logo img {
    height: 50px;
    margin-bottom: var(--spacing-md);
}

.footer-heading {
    font-size: 1rem;
    text-transform: uppercase;
    margin-bottom: var(--spacing-md);
    letter-spacing: 0.1em;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--text-main);
}

.footer-bottom {
    padding-top: var(--spacing-md);
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* 9. 实用工具类 */
.text-center { text-align: center; }
.mb-1 { margin-bottom: var(--spacing-sm); }
.mb-2 { margin-bottom: var(--spacing-md); }
.section-title { font-size: 3.5rem; margin-bottom: var(--spacing-lg); }

/* 10. 响应式媒体查询 */

/* Tablet (1024px) */
@media (max-width: 1024px) {
    :root {
        --spacing-xl: 5rem;
    }
    
    .room-item, .room-item:nth-child(even) {
        flex-direction: column;
        gap: var(--spacing-md);
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .grid-item-lg, .grid-item-sm {
        grid-column: span 12;
    }
}

/* Mobile (768px) */
@media (max-width: 768px) {
    .nav-menu {
        display: none; /* 简化：移动端通常使用汉堡菜单 */
    }
    
    .booking-bar {
        position: static;
        transform: none;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        margin-top: -20px;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .room-title {
        font-size: 1.8rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .testimonial-card {
        min-width: 280px;
    }
}