:root {
    --primary-yellow: #FFF9C4;
    --primary-orange: #FFE0B2;
    --accent-orange: #FF6B35;
    --light-gray: #F5F7FA;
    --success-green: #4CD964;
    --warning-red: #FF3B30;
    --card-bg: #FFCDD2;
    --tag-gradient: linear-gradient(to bottom, #FFFFFF, #E3F2FD);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans SC', sans-serif;
    background: linear-gradient(135deg, var(--primary-yellow), var(--primary-orange));
    min-height: 100vh;
    padding-bottom: 80px;
}

/* 导航栏 */
.navbar {
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo {
    background: var(--accent-orange);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 20px;
}

.brand-name {
    font-weight: 700;
    color: #333;
    font-size: 18px;
}

.nav-menu {
    display: flex;
    gap: 30px;
}

.nav-link {
    text-decoration: none;
    color: #666;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.nav-link.active,
.nav-link:hover {
    background: var(--accent-orange);
    color: white;
}

.user-area {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-size: 14px;
    color: #666;
}

.login-btn {
    background: var(--accent-orange);
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.3);
}

.hamburger {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: #333;
    cursor: pointer;
}

/* 欢迎区域 */
.welcome-section {
    padding: 40px 20px;
    background: linear-gradient(135deg, rgba(255, 235, 205, 0.8), rgba(255, 228, 196, 0.8));
}

.welcome-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.welcome-title {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 30px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.search-box {
    background: white;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.search-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.search-input {
    padding: 12px 20px;
    border: 2px solid var(--light-gray);
    border-radius: 25px;
    font-size: 16px;
    min-width: 200px;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--accent-orange);
}

.search-btn {
    background: var(--accent-orange);
    color: white;
    border: none;
    padding: 12px 40px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
}

.search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.4);
}

/* 公告栏 */
.announcement-bar {
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 15px;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    height: 50px;
}

.announcement-content {
    position: absolute;
    animation: scrollUp 20s linear infinite;
}

.announcement-item {
    display: block;
    padding: 5px 0;
    font-size: 16px;
    color: #FFD700;
}

@keyframes scrollUp {
    0%, 20% { transform: translateY(0); }
    25%, 45% { transform: translateY(-50px); }
    50%, 70% { transform: translateY(-100px); }
    75%, 95% { transform: translateY(-150px); }
    100% { transform: translateY(0); }
}

/* 轮播图 */
.carousel-section {
    padding: 40px 20px;
}

.carousel-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    height: 400px;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.carousel-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
    padding: 30px;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.8);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-btn:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
}

.prev { left: 20px; }
.next { right: 20px; }

/* 房型卡片标题 */
.section-header {
    text-align: center;
    margin: 40px 0;
}

.room-card-title {
    display: inline-block;
    background: var(--card-bg);
    color: white;
    padding: 10px 30px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 24px;
    transform: skewX(-15deg);
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.room-card-title::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    bottom: 2px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 8px;
}

/* 房型网格 */
.rooms-grid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.room-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    position: relative;
}

.room-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

.room-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.room-info {
    padding: 20px;
}

.room-tags {
    position: absolute;
    top: 15px;
    right: 15px;
    display: flex;
    gap: 10px;
}

.tag {
    background: var(--tag-gradient);
    color: #333;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.room-title {
    font-size: 20px;
    font-weight: 700;
    margin: 10px 0;
    color: #333;
}

.room-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #FFD700;
    margin-bottom: 10px;
}

.room-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
}

.price {
    font-size: 24px;
    font-weight: 700;
    color: var(--accent-orange);
}

.book-btn {
    background: var(--accent-orange);
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.book-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.4);
}

/* 服务网格 */
.services-section {
    padding: 40px 20px;
}

.services-grid {
    max-width: 800px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 0 20px;
}

.service-card {
    background: white;
    border-radius: 15px;
    padding: 30px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.service-card i {
    font-size: 40px;
    color: var(--accent-orange);
    margin-bottom: 15px;
}

.service-card h4 {
    margin-bottom: 10px;
    color: #333;
}

.service-card p {
    color: #666;
    font-size: 14px;
}

/* 底部导航 */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-around;
    padding: 10px 0;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
}

.bottom-btn {
    background: none;
    border: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    color: #666;
    cursor: pointer;
    padding: 10px;
    border-radius: 10px;
    transition: all 0.3s ease;
    flex: 1;
    max-width: 100px;
}

.bottom-btn.active,
.bottom-btn:hover {
    color: var(--accent-orange);
    background: rgba(255, 107, 53, 0.1);
    transform: translateY(-5px);
}

.bottom-btn i {
    font-size: 24px;
}

.bottom-btn span {
    font-size: 12px;
    font-weight: 500;
}

/* 模态框 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
    animation: modalSlide 0.3s ease;
}

@keyframes modalSlide {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid var(--light-gray);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.close-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
}

.modal-body {
    padding: 20px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .hamburger {
        display: block;
    }
    
    .user-area {
        display: none;
    }
    
    .search-group {
        flex-direction: column;
    }
    
    .search-input {
        width: 100%;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .rooms-grid {
        grid-template-columns: 1fr;
    }
    
    .welcome-title {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .carousel-container {
        height: 300px;
    }
    
    .room-card-title {
        font-size: 20px;
        padding: 8px 20px;
    }
}