/* ============================================
   沙漠春天酒店 - 全局样式表
   Desert Spring Hotel - Global Stylesheet
   ============================================ */

/* CSS Variables - 品牌色彩系统 */
:root {
    --bg-primary: #F8F7F4;
    --bg-secondary: #FFFFFF;
    --color-primary: #2C3E50;
    --color-accent: #C9A961;
    --color-accent-hover: #B8944F;
    --text-dark: #333333;
    --text-light: #FFFFFF;
    --text-muted: #666666;
    --border-color: #E5E5E5;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
    --transition: all 0.4s ease;
    --font-title: 'Noto Sans SC', 'Source Han Sans SC', 'Microsoft YaHei', sans-serif;
    --font-body: 'Noto Sans SC', 'Microsoft YaHei', sans-serif;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-primary);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-title);
    font-weight: 700;
    line-height: 1.3;
}

h1 { font-size: 48px; }
h2 { font-size: 32px; }
h3 { font-size: 24px; }

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

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

ul {
    list-style: none;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================================
   Header & Navigation
   ============================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(44, 62, 80, 0.95);
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.header.scrolled {
    background: rgba(44, 62, 80, 0.98);
    box-shadow: var(--shadow-md);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    height: 40px;
    width: auto;
    max-width: 150px;
    object-fit: contain;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: var(--color-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--text-light);
}

.logo-text {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-light);
    letter-spacing: 2px;
}

.footer-logo {
    height: 50px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
    margin-bottom: 16px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    color: var(--text-light);
    font-size: 15px;
    font-weight: 500;
    position: relative;
    padding: 8px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-accent);
    transition: var(--transition);
}

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

.nav-link:hover {
    color: var(--color-accent);
}

.btn-book {
    background: var(--color-accent);
    color: var(--text-light);
    padding: 12px 28px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 14px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn-book:hover {
    background: var(--color-accent-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
}

.menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-light);
    transition: var(--transition);
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    will-change: transform;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(44, 62, 80, 0.7) 0%,
        rgba(44, 62, 80, 0.4) 50%,
        rgba(44, 62, 80, 0.6) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--text-light);
    padding: 0 24px;
    max-width: 800px;
}

.hero-title {
    font-size: 56px;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: 4px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease;
}

.hero-subtitle {
    font-size: 20px;
    font-weight: 400;
    margin-bottom: 40px;
    opacity: 0.9;
    letter-spacing: 2px;
    animation: fadeInUp 1s ease 0.2s both;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--color-accent);
    color: var(--text-light);
    padding: 16px 40px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    animation: fadeInUp 1s ease 0.4s both;
    border: none;
}

.hero-cta:hover {
    background: var(--color-accent-hover);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--text-light);
    font-size: 14px;
    opacity: 0.7;
    animation: bounce 2s infinite;
}

/* ============================================
   Section Common Styles
   ============================================ */
.section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    color: var(--color-primary);
    margin-bottom: 16px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--color-accent);
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 16px;
    max-width: 600px;
    margin: 24px auto 0;
}

/* ============================================
   Features Section (Bento Grid)
   ============================================ */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    background: var(--bg-secondary);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    cursor: pointer;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.feature-image {
    width: 100%;
    height: 240px;
    object-fit: cover;
    transition: var(--transition);
}

.feature-card:hover .feature-image {
    transform: scale(1.05);
}

.feature-content {
    padding: 24px;
}

.feature-title {
    color: var(--color-primary);
    font-size: 20px;
    margin-bottom: 12px;
}

.feature-desc {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.8;
}

.feature-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--color-accent);
    font-size: 14px;
    font-weight: 600;
    margin-top: 16px;
}

.feature-link:hover {
    gap: 12px;
}

/* ============================================
   Trust Section
   ============================================ */
.trust-section {
    background: var(--color-primary);
    color: var(--text-light);
    padding: 60px 0;
}

.trust-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
}

.trust-item {
    text-align: center;
    opacity: 0.8;
    transition: var(--transition);
}

.trust-item:hover {
    opacity: 1;
}

.trust-logo {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 8px;
}

.trust-label {
    font-size: 12px;
    opacity: 0.7;
}

/* ============================================
   Room Cards
   ============================================ */
.rooms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}

.room-card {
    background: var(--bg-secondary);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.room-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.room-gallery {
    position: relative;
    height: 280px;
    overflow: hidden;
}

.room-gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.room-card:hover .room-gallery img {
    transform: scale(1.08);
}

.room-info {
    padding: 24px;
}

.room-name {
    color: var(--color-primary);
    font-size: 22px;
    margin-bottom: 12px;
}

.room-features {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
}

.room-feature-tag {
    background: var(--bg-primary);
    color: var(--text-muted);
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
}

.room-desc {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 20px;
}

.room-booking {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

.room-price {
    color: var(--color-accent);
    font-size: 18px;
    font-weight: 700;
}

.room-price span {
    font-size: 12px;
    font-weight: 400;
    color: var(--text-muted);
}

.btn-scan {
    background: var(--color-accent);
    color: var(--text-light);
    padding: 10px 20px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-scan:hover {
    background: var(--color-accent-hover);
}

/* ============================================
   Dining Section
   ============================================ */
.dining-showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    margin-bottom: 60px;
}

.dining-image {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.dining-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.dining-content h3 {
    color: var(--color-primary);
    margin-bottom: 16px;
}

.dining-content p {
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 20px;
}

.dishes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
}

.dish-card {
    text-align: center;
    background: var(--bg-secondary);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.dish-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.dish-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.dish-name {
    padding: 16px;
    color: var(--color-primary);
    font-size: 16px;
    font-weight: 600;
}

/* ============================================
   Conference Section
   ============================================ */
.conference-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
    margin-bottom: 60px;
}

.conf-feature-card {
    background: var(--bg-secondary);
    padding: 32px;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: var(--transition);
}

.conf-feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.conf-icon {
    width: 60px;
    height: 60px;
    background: var(--color-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 24px;
    color: var(--text-light);
}

.conf-feature-card h3 {
    color: var(--color-primary);
    margin-bottom: 12px;
}

.conf-feature-card p {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.8;
}

.conf-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
}

.conf-gallery img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    transition: var(--transition);
}

.conf-gallery img:hover {
    transform: scale(1.03);
    box-shadow: var(--shadow-md);
}

/* ============================================
   Contact Section
   ============================================ */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contact-info {
    background: var(--bg-secondary);
    padding: 40px;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
}

.contact-icon {
    width: 40px;
    height: 40px;
    background: var(--color-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    flex-shrink: 0;
}

.contact-detail h4 {
    color: var(--color-primary);
    font-size: 16px;
    margin-bottom: 4px;
}

.contact-detail p {
    color: var(--text-muted);
    font-size: 14px;
}

.contact-form {
    background: var(--bg-secondary);
    padding: 40px;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
}

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

.form-group label {
    display: block;
    color: var(--color-primary);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 14px;
    font-family: var(--font-body);
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(201, 169, 97, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.btn-submit {
    width: 100%;
    background: var(--color-accent);
    color: var(--text-light);
    padding: 14px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-submit:hover {
    background: var(--color-accent-hover);
}

.map-container {
    margin-top: 40px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.map-container iframe {
    width: 100%;
    height: 400px;
    border: none;
}

/* ============================================
   Footer
   ============================================ */
.footer {
    background: var(--color-primary);
    color: var(--text-light);
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand .logo-text {
    font-size: 24px;
    margin-bottom: 16px;
}

.footer-brand p {
    opacity: 0.8;
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 20px;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.social-icon {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-icon:hover {
    background: var(--color-accent);
}

.footer-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--color-accent);
}

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

.footer-links a {
    opacity: 0.8;
    font-size: 14px;
    transition: var(--transition);
}

.footer-links a:hover {
    opacity: 1;
    color: var(--color-accent);
}

.footer-contact p {
    opacity: 0.8;
    font-size: 14px;
    margin-bottom: 8px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.6;
    font-size: 13px;
}

/* ============================================
   QR Code Modal
   ============================================ */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    color: var(--text-light);
    font-size: 20px;
    cursor: pointer;
    transition: var(--transition);
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.qr-code {
    width: 200px;
    height: 200px;
    margin: 0 auto 20px;
    background: var(--bg-primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.qr-code img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.modal-title {
    color: var(--color-primary);
    font-size: 20px;
    margin-bottom: 12px;
}

.modal-desc {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.6;
}

/* ============================================
   Animations
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 1023px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .dining-showcase {
        grid-template-columns: 1fr;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    h1 { font-size: 32px; }
    h2 { font-size: 24px; }
    h3 { font-size: 20px; }
    
    .hero-title {
        font-size: 36px;
        letter-spacing: 2px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--color-primary);
        flex-direction: column;
        padding: 80px 24px 24px;
        gap: 24px;
        transition: var(--transition);
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .rooms-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .trust-grid {
        gap: 30px;
    }
}

/* ============================================
   Utility Classes
   ============================================ */
.text-center { text-align: center; }
.text-accent { color: var(--color-accent); }
.bg-primary { background: var(--color-primary); }
.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }
.p-40 { padding: 40px; }
