/* 
 * Hotel Delicious - Style Guide
 * Design: Modern Gallery Style / Luxury Hospitality
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Playfair+Display:ital,wght@0,400;0,700;1,400&display=swap');

/* 1. CSS变量定义 */
:root {
    /* 颜色变量 */
    --primary-black: #1A1A1A;
    --primary-white: #FFFFFF;
    --accent-gold: #D4AF37;
    --accent-gold-light: #E5C366;
    --text-main: #1A1A1A;
    --text-muted: #4A4A4A;
    --bg-light: #F9F9F9;
    --bg-dark: #111111;
    --border-color: #EEEEEE;
    --success-green: #27AE60;
    --error-red: #EB5757;

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

    /* 间距与布局 */
    --section-padding: 100px 0;
    --container-width: 1200px;
    --border-radius-sm: 4px;
    --border-radius-md: 8px;
    --border-radius-lg: 30px;
    
    /* 动画 */
    --transition-fast: 0.3s ease;
    --transition-slow: 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-main);
    background-color: var(--primary-white);
    -webkit-font-smoothing: antialiased;
}

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

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

ul {
    list-style: none;
}

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

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

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

.btn-primary {
    background-color: var(--primary-black);
    color: var(--primary-white);
}

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

.btn-outline {
    background-color: transparent;
    border-color: var(--primary-white);
    color: var(--primary-white);
}

.btn-outline:hover {
    background-color: var(--primary-white);
    color: var(--primary-black);
}

.btn-ghost {
    background-color: transparent;
    border-color: var(--primary-black);
    color: var(--primary-black);
}

.btn-ghost:hover {
    background-color: var(--primary-black);
    color: var(--primary-white);
}

/* 4. 导航栏样式 */
.header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 30px 0;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-serif);
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.nav-menu {
    display: flex;
    gap: 40px;
}

.nav-link {
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background: currentColor;
    transition: var(--transition-fast);
}

.nav-link:hover::after {
    width: 100%;
}

.header-cta {
    display: flex;
    gap: 15px;
    align-items: center;
}

/* 5. Hero Section */
.hero {
    height: 100vh;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--primary-white);
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.3);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero-subtitle {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: 20px;
    display: block;
}

.hero h1 {
    font-size: clamp(48px, 8vw, 84px);
    margin-bottom: 24px;
}

.hero-desc {
    font-size: 18px;
    margin-bottom: 40px;
    opacity: 0.9;
}

/* 6. 交错式布局 (About/Story Section) */
.section {
    padding: var(--section-padding);
}

.staggered-row {
    display: flex;
    align-items: center;
    gap: 80px;
}

.staggered-row.reverse {
    flex-direction: row-reverse;
}

.image-wrapper {
    flex: 1;
    position: relative;
}

.floating-card {
    position: absolute;
    bottom: 30px;
    left: -30px;
    background: var(--primary-white);
    padding: 20px 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    border-radius: var(--border-radius-md);
}

.rating-stars {
    color: var(--accent-gold);
    font-size: 14px;
}

/* 7. 菜单卡片样式 */
.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 42px;
    margin-bottom: 15px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.menu-card {
    background: var(--primary-white);
    padding: 20px;
    transition: var(--transition-slow);
    border: 1px solid transparent;
}

.menu-card:hover {
    border-color: var(--border-color);
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
}

.menu-thumb {
    width: 100%;
    aspect-ratio: 1/1;
    margin-bottom: 20px;
    overflow: hidden;
}

.menu-thumb img {
    transition: var(--transition-slow);
}

.menu-card:hover .menu-thumb img {
    transform: scale(1.05);
}

.menu-info {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 10px;
}

.menu-tag {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 5px;
}

.tag-veg { background: var(--success-green); }
.tag-nonveg { background: var(--error-red); }

/* 8. 画廊网格 (Bento Grid) */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 300px);
    gap: 15px;
}

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

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

.gallery-item.large {
    grid-column: span 2;
    grid-row: span 2;
}

/* 9. 预订表单 */
.reservation-section {
    background: var(--bg-dark);
    color: var(--primary-white);
    display: flex;
}

.res-form-side {
    flex: 1;
    padding: 80px;
}

.res-image-side {
    flex: 1;
    background-size: cover;
    background-position: center;
}

.form-group {
    margin-bottom: 24px;
}

.form-input {
    width: 100%;
    padding: 15px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--border-radius-sm);
    color: var(--primary-white);
    outline: none;
}

.form-input:focus {
    border-color: var(--accent-gold);
}

/* 10. 页脚样式 */
.footer-banner {
    background: var(--primary-black);
    color: var(--primary-white);
    text-align: center;
    padding: 80px 0;
}

.footer-main {
    padding: 60px 0 30px;
    background: var(--primary-white);
    border-top: 1px solid var(--border-color);
}

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

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

/* Tablet (max-width: 1024px) */
@media (max-width: 1024px) {
    .staggered-row {
        gap: 40px;
    }
    
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(4, 250px);
    }
    
    .res-form-side {
        padding: 40px;
    }
}

/* Mobile (max-width: 768px) */
@media (max-width: 768px) {
    .header {
        padding: 20px 0;
    }

    .nav-menu {
        display: none; /* 实际开发应配合JS转为汉堡菜单 */
    }

    .section {
        padding: 60px 0;
    }

    .staggered-row, .staggered-row.reverse {
        flex-direction: column;
        gap: 40px;
    }

    .floating-card {
        left: 20px;
        bottom: 20px;
    }

    .grid-3 {
        grid-template-columns: 1fr;
    }

    .reservation-section {
        flex-direction: column;
    }

    .res-image-side {
        height: 300px;
    }

    .hero h1 {
        font-size: 40px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

/* 12. 实用工具类 */
.text-gold { color: var(--accent-gold); }
.mt-20 { margin-top: 20px; }
.mb-40 { margin-bottom: 40px; }
.text-center { text-align: center; }
.uppercase { text-transform: uppercase; letter-spacing: 2px; }

/* 13. 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content {
    animation: fadeInUp 1.2s var(--transition-slow);
}

.hover-zoom {
    overflow: hidden;
}

.hover-zoom img:hover {
    transform: scale(1.1);
}