/* 重置默认样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
}

/* 通用容器 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 全局样式 */
:root {
    --primary-color: #ffd700;
    --secondary-color: #c0c0c0;
    --text-color: #ffffff;
    --background-color: #000000;
    --card-bg: #1a1a1a;
    --hover-color: #333333;
}

/* 导航栏样式 */
.navbar {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.logo h1 {
    color: #2c3e50;
    font-size: 1.8rem;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: #2c3e50;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
    padding: 5px 10px;
}

/* 关于我们的链接样式 */
.nav-links a[href="javascript:void(0)"] {
    cursor: default;
}

.nav-links a[href="javascript:void(0)"]:hover {
    color: #e74c3c;
}

.nav-links a[href="javascript:void(0)"]:hover::after {
    content: "功能开发中，敬请期待";
    position: absolute;
    bottom: -35px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #2c3e50;
    color: #ffffff;
    padding: 8px 15px;
    border-radius: 6px;
    font-size: 14px;
    white-space: nowrap;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    font-weight: normal;
    min-width: 150px;
    text-align: center;
    display: block;
}

/* 添加小三角形 */
.nav-links a[href="javascript:void(0)"]:hover::before {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid #2c3e50;
    z-index: 1000;
}

/* 汉堡菜单 */
.hamburger {
    display: none;
    cursor: pointer;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #2c3e50;
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* 首页横幅 */
.hero {
    height: 100vh;
    position: relative;
    overflow: hidden;
    color: #fff;
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0,0,0,0.1), rgba(0,0,0,0.1));
}

.slide.active {
    opacity: 1;
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    text-align: center;
    width: 100%;
    padding: 0 2rem;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.btn {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: #e74c3c;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color: #c0392b;
}

/* 特色服务 */
.features {
    padding: 5rem 0;
    background-color: #f9f9f9;
}

.features h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: #2c3e50;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1rem;
    padding: 0 1rem;
}

.feature-item {
    text-align: center;
    padding: 1.5rem 1rem;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
}

.feature-item i {
    font-size: 2rem;
    color: #e74c3c;
    margin-bottom: 0.8rem;
}

.feature-item h3 {
    margin-bottom: 0.5rem;
    color: #2c3e50;
    font-size: 1rem;
}

.feature-item p {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.4;
}

/* 响应式调整 */
@media screen and (max-width: 1200px) {
    .feature-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media screen and (max-width: 768px) {
    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 页脚 */
footer {
    background-color: #2c3e50;
    color: #fff;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.footer-section {
    text-align: center;
}

.footer-section h3 {
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.footer-section p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.footer-section i {
    margin-right: 0.5rem;
    width: 20px;
    text-align: center;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-bottom p {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.7);
}

.social-links a {
    color: #fff;
    margin-right: 1rem;
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: #e74c3c;
}

/* 响应式设计 */
@media screen and (max-width: 768px) {
    .nav-links {
        display: none;
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.95);
        padding: 20px;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        z-index: 999;
    }

    .nav-links.active {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .nav-links li {
        margin: 15px 0;
        width: 100%;
        text-align: center;
    }

    .nav-links a {
        color: #2c3e50;
        font-size: 1.1rem;
        padding: 10px;
        display: block;
        width: 100%;
    }

    .nav-links a[href="javascript:void(0)"]:hover::after {
        content: "功能开发中，敬请期待";
        position: static;
        transform: none;
        background-color: #f8f9fa;
        color: #e74c3c;
        padding: 5px;
        margin-top: 5px;
        border-radius: 4px;
        font-size: 0.9rem;
        box-shadow: none;
        display: block;
        width: 100%;
    }

    .nav-links a[href="javascript:void(0)"]:hover::before {
        display: none;
    }

    /* 添加视觉反馈 */
    .nav-links a[href="javascript:void(0)"] {
        position: relative;
        padding-right: 25px;
    }

    .nav-links a[href="javascript:void(0)"]:after {
        content: "敬请期待";
        position: absolute;
        right: 5px;
        top: 50%;
        transform: translateY(-50%);
        font-size: 0.8rem;
        opacity: 0.7;
    }

    .hamburger {
        display: block;
        cursor: pointer;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1.2rem;
    }
}

/* 全球分店 */
.hotels {
    padding: 5rem 0;
    background-color: #fff;
    scroll-margin-top: 80px;
}

.hotels h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: #2c3e50;
}

.hotel-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    padding: 0 1rem;
}

/* 最后一个分店卡片居中 */
.hotel-card:last-child {
    grid-column: 2; /* 放在第2列 */
}

.hotel-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.hotel-card:hover {
    transform: translateY(-5px);
}

.hotel-image {
    height: 200px;
    overflow: hidden;
}

.hotel-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.hotel-card:hover .hotel-image img {
    transform: scale(1.1);
}

.hotel-info {
    padding: 1.5rem;
}

.hotel-info h3 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.hotel-info p {
    color: #666;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.btn-secondary {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background-color: #2c3e50;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.btn-secondary:hover {
    background-color: #34495e;
}

/* 更多分店卡片 */
.more-hotels {
    background: linear-gradient(rgba(44, 62, 80, 0.9), rgba(44, 62, 80, 0.9)), url('../images/more-hotels.jpg');
    background-size: cover;
    background-position: center;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.more-hotels-content {
    padding: 2rem;
}

.more-hotels h3 {
    color: #fff;
    margin-bottom: 1rem;
}

.more-hotels .btn-secondary {
    background-color: #fff;
    color: #2c3e50;
}

.more-hotels .btn-secondary:hover {
    background-color: #f1f1f1;
}

/* 响应式调整 */
@media screen and (max-width: 1024px) {
    .hotel-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .hotel-card:last-child {
        grid-column: 1 / -1; /* 在平板设备上占满整行 */
        max-width: 400px; /* 限制最大宽度 */
        margin: 0 auto; /* 水平居中 */
    }
}

@media screen and (max-width: 768px) {
    .hotel-grid {
        grid-template-columns: 1fr;
    }
    .hotel-card:last-child {
        max-width: none; /* 在手机设备上取消最大宽度限制 */
    }
}

/* 地图容器样式 */
#map {
    width: 100%;
    height: 400px;
    margin: 2rem 0;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* 酒店详情页样式 */
.hotel-detail {
    padding: 2rem;
}

.hotel-detail h2 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.hotel-detail .location {
    color: #666;
    margin-bottom: 2rem;
}

.hotel-detail .description {
    color: #333;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.hotel-detail .contact-info {
    background-color: #f9f9f9;
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 2rem;
}

.hotel-detail .contact-info h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.hotel-detail .contact-info p {
    color: #666;
    margin: 0.5rem 0;
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-out;
}

/* 加载动画 */
.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--background-color);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loading::after {
    content: '';
    width: 50px;
    height: 50px;
    border: 3px solid var(--primary-color);
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* 图片容器样式 */
.image-container {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    background-color: var(--card-bg);
}

.image-container img {
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}

.image-container:hover img {
    transform: scale(1.05);
}

/* 信息窗口样式 */
.amap-info-content {
    background-color: #fff !important;
    color: #333 !important;
    border: 1px solid #ddd !important;
    border-radius: 5px !important;
    padding: 10px !important;
}

.amap-info-content h4 {
    color: #2c3e50 !important;
    margin: 0 0 5px 0 !important;
}

.amap-info-content p {
    color: #666 !important;
    margin: 0 !important;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-links {
        background-color: rgba(0, 0, 0, 0.95);
    }
    
    .nav-links.active {
        background-color: rgba(0, 0, 0, 0.98);
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .card {
        margin: 1rem 0;
    }
}

/* 导航链接和按钮的提示效果 */
.nav-links a[href="javascript:void(0)"],
.btn-secondary[href="javascript:void(0)"] {
    cursor: default;
    position: relative;
}

.nav-links a[href="javascript:void(0)"]:hover,
.btn-secondary[href="javascript:void(0)"]:hover {
    color: #e74c3c;
}

.nav-links a[href="javascript:void(0)"]:hover::after,
.btn-secondary[href="javascript:void(0)"]:hover::after {
    content: "功能开发中，敬请期待";
    position: absolute;
    bottom: -35px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #2c3e50;
    color: #ffffff;
    padding: 8px 15px;
    border-radius: 6px;
    font-size: 14px;
    white-space: nowrap;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    font-weight: normal;
    min-width: 150px;
    text-align: center;
    display: block;
}

/* 添加小三角形 */
.nav-links a[href="javascript:void(0)"]:hover::before,
.btn-secondary[href="javascript:void(0)"]:hover::before {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid #2c3e50;
    z-index: 1000;
} 