/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航栏 */
.navbar {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    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-logo h2 {
    color: #e91e63;
    font-size: 24px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-menu a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: #e91e63;
}

/* 首页横幅 - 優化背景圖片載入 */
.hero {
    background: 
        linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.5)),
        url('media/images/hero-background.webp') center center;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: scroll;
    color: white;
    text-align: center;
    padding: 150px 0 100px;
    margin-top: 70px;
    position: relative;
    overflow: hidden;
    min-height: 500px;
}

/* 微妙照片效果 */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(255,255,255,0.05) 1px, transparent 1px),
        radial-gradient(circle at 70% 70%, rgba(255,255,255,0.03) 1px, transparent 1px),
        radial-gradient(circle at 40% 80%, rgba(255,255,255,0.04) 2px, transparent 2px);
    background-size: 200px 200px, 250px 250px, 180px 180px;
    animation: photoOverlay 30s ease-in-out infinite;
    z-index: 1;
}

/* 輕微閃爍效果 */
.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 40%, rgba(255,255,255,0.02) 50%, transparent 60%);
    animation: photoShimmer 12s ease-in-out infinite;
    z-index: 2;
}

/* 微妙背景動畫效果 */
@keyframes photoOverlay {
    0%, 100% { 
        transform: translateX(0px) translateY(0px);
        opacity: 0.1;
    }
    25% { 
        transform: translateX(5px) translateY(-2px);
        opacity: 0.15;
    }
    50% { 
        transform: translateX(-3px) translateY(4px);
        opacity: 0.08;
    }
    75% { 
        transform: translateX(4px) translateY(-1px);
        opacity: 0.12;
    }
}

@keyframes photoShimmer {
    0% { 
        transform: translateX(-100%);
        opacity: 0;
    }
    50% { 
        opacity: 0.05;
    }
    100% { 
        transform: translateX(100%);
        opacity: 0;
    }
}

/* 英雄内容区域 */
.hero-content {
    position: relative;
    z-index: 10;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    font-weight: 700;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.8), 0 0 10px rgba(0,0,0,0.5);
    animation: titleGlow 3s ease-in-out infinite alternate;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.95;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.7), 0 0 6px rgba(0,0,0,0.4);
}

/* 增強文字發光效果 */
@keyframes titleGlow {
    0% { 
        text-shadow: 2px 2px 8px rgba(0,0,0,0.8), 0 0 10px rgba(0,0,0,0.5), 0 0 20px rgba(255,255,255,0.2); 
    }
    100% { 
        text-shadow: 2px 2px 8px rgba(0,0,0,0.8), 0 0 10px rgba(0,0,0,0.5), 0 0 30px rgba(255,255,255,0.3); 
    }
}

.cta-button {
    display: inline-block;
    background: linear-gradient(45deg, #e91e63, #f5576c);
    color: white;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s;
    box-shadow: 0 8px 20px rgba(233, 30, 99, 0.3);
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    background: linear-gradient(45deg, #c2185b, #e91e63);
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(233, 30, 99, 0.4);
}

/* 房间展示区域 */
.rooms-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.rooms-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: #333;
}

.rooms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.room-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.room-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

/* 媒体占位符样式 */
.room-media {
    height: 250px;
    position: relative;
    overflow: hidden;
}

.media-placeholder {
    height: 100%;
    background: linear-gradient(45deg, #f0f0f0, #e0e0e0);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #888;
}

.media-placeholder i {
    font-size: 3rem;
    margin-bottom: 10px;
}

.media-placeholder p {
    font-size: 0.9rem;
}

/* 实际媒体样式 - 用于替换占位符 */
.room-media img,
.room-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.room-card:hover .room-media img,
.room-card:hover .room-media video {
    transform: scale(1.05);
}

.room-info {
    padding: 25px;
}

.room-info h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #333;
}

.room-info p {
    color: #666;
    margin-bottom: 15px;
    line-height: 1.5;
}

.room-features {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.room-features span {
    background: #f0f0f0;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    color: #555;
    display: flex;
    align-items: center;
    gap: 5px;
}

.room-features i {
    color: #e91e63;
}

.room-price {
    margin-bottom: 20px;
}

.price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #e91e63;
}

/* WhatsApp按钮 */
.whatsapp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #25D366;
    color: white;
    padding: 12px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.whatsapp-btn:hover {
    background: #128C7E;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3);
}

.whatsapp-btn i {
    font-size: 1.2rem;
}

/* 关于我们区域 */
.about-section {
    padding: 80px 0;
    background: white;
}

.about-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: #333;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-text p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 30px;
    line-height: 1.8;
}

.about-text ul {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 30px;
}

.about-text li {
    color: #555;
    font-size: 1rem;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 8px;
}

/* 联系我们区域 */
.contact-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.contact-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: #333;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 800px;
    margin: 0 auto;
}

.contact-item {
    text-align: center;
    background: white;
    padding: 30px 20px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.contact-item i {
    font-size: 2.5rem;
    color: #e91e63;
    margin-bottom: 15px;
}

.contact-item h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: #333;
}

.contact-item p {
    color: #666;
    font-size: 1.1rem;
}

/* 页脚 */
.footer {
    background: #333;
    color: white;
    text-align: center;
    padding: 30px 0;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-menu {
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: white;
        display: none;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    }
    
    /* 移动设备背景优化 */
    .hero {
        background-attachment: scroll !important;
        background-position: center center !important;
        background-size: cover !important;
        min-height: 400px;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .rooms-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .room-features {
        justify-content: center;
    }
    
    .about-text ul {
        grid-template-columns: 1fr;
    }
    
    .contact-info {
        grid-template-columns: 1fr;
    }
}

/* 媒体文件大小监控样式 */
.media-info {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.8rem;
    display: none;
}

/* 开发调试用 - 显示文件大小 */
.debug-mode .media-info {
    display: block;
}

/* 默认显示媒体信息 */
.media-info {
    display: block;
}

/* 房间操作按钮 */
.room-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.detail-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #667eea;
    color: white;
    padding: 12px 16px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.detail-btn:hover {
    background: #5a67d8;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.whatsapp-btn {
    flex: 1;
}

/* 房间卡片悬停效果增强 */
.room-card[onclick]:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

/* 移动端优化 */
@media (max-width: 768px) {
    .room-actions {
        flex-direction: column;
    }
    
    .detail-btn, .whatsapp-btn {
        flex: none;
        justify-content: center;
        width: 100%;
    }
} 