/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #2c2416;
    background: #ffffff;
    /* 防止页面出现水平滚动条 */
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: #ffffff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    /* 确保容器不会导致水平滚动 */
    width: 100%;
    /* 移除 overflow-x: hidden 以确保 sticky 定位正常工作 */
}

@media (max-width: 768px) {
    .container {
        max-width: none;
        margin: 0;
    }
}

/* 首部样式 */
header {
    background: #ffffff;
    color: #2c2416;
    padding: 0;
    position: fixed; /* 使用 fixed 定位确保始终固定在顶部 */
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    /* 移除阿影和边框效果 */
    box-shadow: none;
    border-bottom: none;
    will-change: transform;
    width: 100%;
    box-sizing: border-box;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.2rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.header-content h1 {
    font-size: 1.5rem;
    margin: 0;
    font-weight: 700;
    color: #CBB272;
    letter-spacing: 2px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Logo样式 */
.site-logo {
    height: 40px;
    width: auto;
    object-fit: contain;
    vertical-align: middle;
}

.header-content h1 span {
    display: inline-block;
}

/* 移动端菜单切换按钮 */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.mobile-menu-toggle span {
    width: 100%;
    height: 3px;
    background-color: #CBB272;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

nav {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}



nav a {
    color: #CBB272;
    text-decoration: none;
    padding: 0.6rem 1.2rem;
    border-radius: 0;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    border-bottom: 3px solid transparent;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

nav a:hover {
    color: #F0B992;
    border-bottom-color: #CBB272;
}

nav a:active {
    transform: none;
}

/* 当前活跃页面标记 */
nav a.active {
    color: #C8955F;
    background: transparent;
    font-weight: 700;
    border-bottom-color: #CBB272;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 登录按钮样式 - 与其他按钮保持一致 */
nav a.btn-login {
    color: #CBB272;
    text-decoration: none;
    padding: 0.6rem 1.2rem;
    border-radius: 0;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    border-bottom: 3px solid transparent;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    background: transparent;
}

nav a.btn-login:hover {
    color: #F0B992;
    border-bottom-color: #CBB272;
    transform: none;
    box-shadow: none;
}

/* 退出登录按钮样式 - 与其他按钮保持一致 */
nav a.btn-logout {
    color: #CBB272;
    font-weight: 500;
    border-bottom: 3px solid transparent;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background: transparent;
    padding: 0.6rem 1.2rem;
    border-radius: 0;
}

nav a.btn-logout:hover {
    color: #F0B992;
    border-bottom-color: #CBB272;
}

/* 响应式设计 */
/* 移动端专用内容 */
.mobile-only-content {
    display: none;
    text-align: center;
    padding: 1rem;
    background-color: #f8f8f8;
    border: 1px solid #e0e0e0;
    margin: 1rem 0;
}

@media (max-width: 768px) {
    .mobile-only-content {
        display: block;
    }
    
    /* 移动端hero容器铺满宽度 - 使用负边距方法 */
    .hero-container {
        width: 100vw;
        max-width: none;
        margin: 0;
        margin-left: calc(50% - 50vw);
        margin-right: calc(50% - 50vw);
    }
    
    header {
        /* 移除阴影和边框效果 */
        box-shadow: none;
        border-bottom: none;
    }
    
    .header-content {
        flex-direction: row;
        gap: 0;
        padding: 1rem;
        flex-wrap: nowrap;
    }
    
    .header-content h1 {
        font-size: 1.3rem;
    }
    
    .site-logo {
        height: 32px;
    }
    
    /* 显示移动端菜单按钮 */
    .mobile-menu-toggle {
        display: flex;
    }
    
    /* 移动端导航菜单 */
    nav, #mainNav {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 250px;
        height: calc(100vh - 70px);
        background: #ffffff;
        flex-direction: column;
        padding: 1rem 0;
        /* 移除阴影效果 */
        box-shadow: none;
        transition: right 0.3s ease;
        z-index: 1000;
        overflow-y: auto;
        /* 移除边框效果 */
        border-left: none;
        display: flex !important;
        /* 确保菜单在隐藏时不会影响布局 */
        visibility: hidden;
        /* 防止隐藏的菜单接收事件 */
        pointer-events: none;
    }
    
    nav.active, #mainNav.active {
        right: 0;
        visibility: visible;
        pointer-events: auto;
    }
    
    nav a, #mainNav a {
        font-size: 1rem;
        padding: 1rem 1.5rem;
        border-bottom: none;
        border-left: 3px solid transparent;
        width: 100%;
        text-align: left;
    }
    
    nav a:hover,
    nav a.active,
    #mainNav a:hover,
    #mainNav a.active {
        border-bottom: none;
        border-left-color: #000;
    }
    
    /* 移动端主内容区 */
    main {
        margin-top: 6.5rem; /* 移动端：对应两层菜单 */
        padding: 0 0 0rem 0; /* 移除左右padding，只保留底部padding */
    }
    
    /* 移动端hero容器 */
    .hero-container {
        padding: 0;
    }
    
    .hero {
        min-height: 500px; /* 移动端减小最小高度 */
        padding: 0;
    }
    
    .hero-content h2 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
}

/* 主内容区 */
main {
    flex: 1;
    padding: 0 0 0rem 0; /* 移除左右padding，只保留底部padding */
    background: #ffffff;
    margin-top: 120px; /* PC端：对应两层菜单的高度 */
}

.page {
    display: none;
}

.page.active {
    display: block;
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 首页样式 */
.hero-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center; /* 确保hero区域垂直居中 */
}

.hero {
    text-align: center;
    padding: 0; /* 减少padding，因为内容区域现在自己有padding */
    color: #2c2416;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
    min-height: 640px; /* 增加最小高度 */
    border-radius: 0px; /* 添加圆角 6px*/
    /* 确保圆角能够正确裁剪内容 */
    isolation: isolate;
    display: flex;
    flex-direction: column;
    justify-content: center; /* 垂直居中内容 */
}

/* Hero 轮播容器 */
.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0; /* 修改为0，确保在背景层 */
    border-radius: 0px; /* 与.hero保持一致的圆角 6px*/
}

.hero-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;
}

/* 为没有背景图片的hero-slide添加加载动画 */
.hero-slide:not([style*="background-image"]) {
    /* 添加加载动画 */
    background-image: linear-gradient(90deg, rgba(160, 99, 46, 0.1) 25%, transparent 50%, rgba(160, 99, 46, 0.1) 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

.hero-slide.active {
    opacity: 1;
}

/* Hero 内容 */
.hero-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10; /* 提高z-index确保内容在上层 */
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.30) 0%, rgba(249, 246, 240, 0.20) 50%, rgba(255, 255, 255, 0.60) 100%);
    padding: 0; /* 增加padding */
    border-radius: 0px;
    max-width: none; /* 移除最大宽度限制 */
    margin: 0; /* 移除居中对齐 */
    /* 增加一些阴影效果以增强视觉层次 */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    box-sizing: border-box; /* 确保padding包含在宽度内 */
    display: flex;
    flex-direction: column;
    align-items: center; /* 保持内容居中 */
    justify-content: center; /* 垂直居中内容 */
}

/* Hero 装饰元素 */
.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(160, 99, 46, 0.1) 0%, transparent 70%);
    animation: heroGlow 8s ease-in-out infinite;
    pointer-events: none;
    z-index: 5; /* 调整z-index */
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent 0%, #CBB272 50%, transparent 100%);
    box-shadow: 0 0 15px rgba(160, 99, 46, 0.5);
    z-index: 5; /* 调整z-index */
}

@keyframes heroGlow {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.3; }
    50% { transform: translate(-10%, -10%) scale(1.1); opacity: 0.5; }
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Hero 左右箭头按钮 */
.hero-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none; /* 完全移除背景 */
    color: white;
    border: none;
    width: auto;
    height: auto;
    border-radius: 0;
    cursor: pointer;
    font-size: 28px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 15;
    opacity: 0.8;
    transition: all 0.3s;
    margin: 0;
    padding: 10px;
    outline: none; /* 移除焦点轮廓 */
    box-shadow: none; /* 移除阴影 */
}

.hero-btn:hover {
    opacity: 1;
    transform: translateY(-50%) scale(1.2);
}

.hero-btn.prev {
    left: 10px;
}

.hero-btn.next {
    right: 10px;
}

/* Hero 指示器 */
.hero-indicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 15;
}

.hero-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s;
}


.hero-indicator.active {
    background-color: #fff;
    width: 30px;
    border-radius: 6px;
}

.hero-content h2 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    color: #CBB272;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    text-align: center;
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    color: #2c2416; /* 改为深色以提高可读性 */
    font-weight: 500;
    line-height: 1.8;
    text-align: center; /* 确保段落居中 */
    max-width: 800px; /* 限制文本宽度以提高可读性 */
}

.hero .btn {
    position: relative;
    z-index: 1;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 6px 25px rgba(160, 99, 46, 0.5);
    margin: 0 auto; /* 确保按钮居中 */
    display: block; /* 确保按钮可以居中 */
}

.hero .btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 30px rgba(160, 99, 46, 0.7);
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 0rem;
}

.feature-card {
    padding: 2rem;
    background: #ffffff;
    border: 1px solid #CBB272;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.3s;
    box-shadow: 0 4px 15px rgba(160, 99, 46, 0.15);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(160, 99, 46, 0.4);
    border-color: #F0B992;
}

.feature-card h3 {
    color: #CBB272;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

/* 按钮样式 */
.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
    font-weight: 600;
}

.btn-primary {
    background: linear-gradient(135deg, #CBB272 0%, #F0B992 50%, #CBB272 100%);
    color: #1a1410;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(160, 99, 46, 0.4);
}

.btn-primary:hover {
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(160, 99, 46, 0.6);
}

.btn-block {
    display: block;
    width: 100%;
}

/* 搜索栏 */
.search-bar {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.search-bar input {
    flex: 1;
    min-width: 200px;
    padding: 0.75rem;
    border: 1px solid #CBB272;
    border-radius: 4px;
    background: #ffffff;
    color: #2c2416;
    font-size: 1rem;
}

/* 房型列表 */
.room-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

.room-card {
    border: 1px solid #CBB272;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s;
    position: relative;
    background: #ffffff;
    box-shadow: 0 4px 15px rgba(160, 99, 46, 0.15);
}

.room-card:hover {
    box-shadow: 0 12px 40px rgba(160, 99, 46, 0.4);
    transform: translateY(-5px);
    border-color: #F0B992;
}

.room-card[style*="cursor: pointer"]:hover::after {
    content: '点击查看详情';
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, #CBB272 0%, #F0B992 100%);
    color: #1a1410;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    z-index: 10;
    pointer-events: none;
    box-shadow: 0 2px 10px rgba(160, 99, 46, 0.5);
}

/* 图片轮播容器 */
.room-image-slider {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background-color: #000;
    /* 添加加载动画 */
    background-image: linear-gradient(90deg, rgba(160, 99, 46, 0.1) 25%, transparent 50%, rgba(160, 99, 46, 0.1) 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    /* 添加图片优化相关样式 */
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

.slider-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.room-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    /* 添加加载占位符 */
    background-color: #f0f0f0;
    /* 图片优化相关样式 */
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

.room-image.active {
    opacity: 1;
    z-index: 1;
}

.room-image.loaded {
    opacity: 1;
}

/* 左右箭头按钮 */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    opacity: 0;
    transition: all 0.3s;
}

.room-image-slider:hover .slider-btn {
    opacity: 1;
}


.slider-btn.prev {
    left: 10px;
}

.slider-btn.next {
    right: 10px;
}

/* 指示器 */
.slider-indicators {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 2;
}

.indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s;
}


.indicator.active {
    background-color: #fff;
    width: 24px;
    border-radius: 4px;
}

.room-content {
    padding: 1rem;
    background: #ffffff;
}

.room-title {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: #2c2416;
    font-weight: 700;
}

.room-info {
    display: flex;
    gap: 1rem;
    margin: 0.5rem 0;
    font-size: 0.9rem;
    color: #666;
}

.room-facilities {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0.5rem 0;
}

.facility-tag {
    background: linear-gradient(135deg, rgba(160, 99, 46, 0.2) 0%, rgba(240, 185, 146, 0.2) 100%);
    color: #CBB272;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.85rem;
    border: 1px solid #CBB272;
}

.room-price {
    font-size: 1.5rem;
    color: #CBB272;
    font-weight: bold;
    margin: 0.5rem 0;
    text-shadow: 0 0 10px rgba(160, 99, 46, 0.5);
}

.room-price small {
    font-size: 0.9rem;
    color: #C8955F;
    font-weight: normal;
}

.room-status {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.85rem;
}

.status-available {
    background: linear-gradient(135deg, rgba(160, 99, 46, 0.3) 0%, rgba(240, 185, 146, 0.3) 100%);
    color: #CBB272;
    border: 1px solid #CBB272;
}

.status-full {
    background: linear-gradient(135deg, rgba(139, 115, 85, 0.3) 0%, rgba(201, 169, 97, 0.3) 100%);
    color: #8b7355;
    border: 1px solid #8b7355;
}

/* 表单样式 */
.form {
    max-width: 600px;
    margin: 0 auto;
}


.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group label {
    display: block;
    font-weight: 500;
    color: #CBB272;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #CBB272;
    border-radius: 4px;
    font-size: 1rem;
    background: #ffffff;
    color: #2c2416;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #F0B992;
    box-shadow: 0 0 15px rgba(160, 99, 46, 0.4);
}

.price-summary {
    background: linear-gradient(135deg, #fdfbf7 0%, #f9f6f0 100%);
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
    border: 1px solid #CBB272;
}

.price-summary div {
    display: flex;
    justify-content: space-between;
    margin: 0.5rem 0;
}

.price-summary .total {
    font-size: 1.2rem;
    font-weight: bold;
    color: #CBB272;
    border-top: 1px solid #CBB272;
    padding-top: 0.5rem;
    margin-top: 0.5rem;
    text-shadow: 0 0 10px rgba(160, 99, 46, 0.5);
}

/* 标签页 */
.auth-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tab-btn {
    padding: 0.75rem 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    color: #8b7355;
    position: relative;
    transition: all 0.3s;
    text-decoration: none !important;
}

.tab-btn:hover {
    text-decoration: none !important;
}

.tab-btn.active {
    color: #CBB272;
    font-weight: 600;
    text-decoration: none !important;
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 3px;
    background: #CBB272;
    box-shadow: 0 2px 8px rgba(160, 99, 46, 0.4);
}

/* 客服页面 */
.service-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.stat-card {
    background: linear-gradient(135deg, #fdfbf7 0%, #f9f6f0 100%);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 4px 15px rgba(160, 99, 46, 0.15);
    border: 1px solid #CBB272;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(160, 99, 46, 0.3);
}

.stat-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #CBB272;
}

.stat-info .stat-value {
    font-size: 2.5rem;
    font-weight: bold;
    color: #CBB272;
    margin-bottom: 0.5rem;
}

.stat-info .stat-label {
    font-size: 1.1rem;
    color: #8b7355;
    font-weight: 500;
}

.staff-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.staff-card {
    padding: 1.5rem;
    border: 1px solid #CBB272;
    border-radius: 12px;
    text-align: center;
    background: #ffffff;
    box-shadow: 0 4px 15px rgba(160, 99, 46, 0.15);
    transition: all 0.3s ease;
    cursor: pointer;
}

.staff-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(160, 99, 46, 0.3);
    border-color: #F0B992;
}

.staff-card.online {
    border-color: #28a745;
    box-shadow: 0 0 20px rgba(40, 167, 69, 0.3);
}

.staff-card.busy {
    border-color: #ffc107;
    box-shadow: 0 0 20px rgba(255, 193, 7, 0.3);
}

.staff-card.offline {
    border-color: #6c757d;
    box-shadow: 0 0 20px rgba(108, 117, 125, 0.3);
}

.staff-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, #CBB272 0%, #F0B992 100%);
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: #1a1410;
    font-weight: 700;
    box-shadow: 0 4px 20px rgba(160, 99, 46, 0.5);
}

.avatar-placeholder {
    font-size: 2.5rem;
}

.staff-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.staff-name-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.staff-name-status h4 {
    margin: 0;
    font-size: 1.3rem;
    color: #2c2416;
}

.status-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.status-dot.online {
    background-color: #28a745;
    box-shadow: 0 0 8px #28a745;
}

.status-dot.busy {
    background-color: #ffc107;
    box-shadow: 0 0 8px #ffc107;
}

.status-dot.offline {
    background-color: #6c757d;
    box-shadow: 0 0 8px #6c757d;
}

.staff-expertise {
    font-size: 0.95rem;
    color: #8b7355;
    margin-top: 0.5rem;
}

.staff-active-chats {
    font-size: 0.85rem;
    color: #CBB272;
    margin-top: 0.5rem;
    font-weight: 500;
}

.phone-service {
    max-width: 800px;
    margin: 0 auto;
}

.phone-card {
    background: linear-gradient(135deg, #fdfbf7 0%, #f9f6f0 100%);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 15px rgba(160, 99, 46, 0.15);
    border: 1px solid #CBB272;
}

.phone-highlight {
    margin-bottom: 1.5rem;
}

.phone-highlight h4 {
    font-size: 1.5rem;
    color: #8b7355;
    margin-bottom: 1rem;
}

.phone-number {
    font-size: 3rem;
    color: #CBB272;
    font-weight: bold;
    margin: 1rem 0;
    text-shadow: 0 0 20px rgba(160, 99, 46, 0.6);
    letter-spacing: 2px;
}

.phone-description {
    font-size: 1.2rem;
    color: #C8955F;
    margin-bottom: 1rem;
}

.service-time {
    font-size: 1.1rem;
    color: #8b7355;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #CBB272;
}

.service-tips {
    margin-top: 2rem;
    background: #ffffff;
    border-radius: 8px;
    padding: 1.5rem;
    border: 1px solid #CBB272;
}

.service-tips h4 {
    color: #CBB272;
    margin-top: 0;
    margin-bottom: 1rem;
}

.service-tips ul {
    text-align: left;
    padding-left: 1.5rem;
}

.service-tips li {
    margin-bottom: 0.5rem;
    color: #8b7355;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: #ffffff;
    border: 1px solid #CBB272;
    border-radius: 8px;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 4px 15px rgba(160, 99, 46, 0.15);
}

.faq-question {
    padding: 1.2rem 1.5rem;
    background: linear-gradient(135deg, #fdfbf7 0%, #f9f6f0 100%);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 500;
    color: #2c2416;
    transition: background 0.3s ease;
}

.faq-toggle {
    font-size: 1.5rem;
    font-weight: bold;
    transition: transform 0.3s ease;
}

.faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.3s ease;
    color: #8b7355;
    line-height: 1.8;
}

.faq-item.active .faq-answer {
    padding: 1.2rem 1.5rem;
    max-height: 500px;
    opacity: 1;
}

.empty-state {
    text-align: center;
    padding: 3rem;
    color: #8b7355;
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* 聊天窗口样式优化 */
.chat-window {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 400px;
    height: 500px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    z-index: 1000;
    border: 1px solid #CBB272;
    overflow: hidden;
}

.chat-container {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.chat-header {
    background: linear-gradient(135deg, #CBB272 0%, #F0B992 100%);
    color: #1a1410;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #C8955F;
}

.chat-title {
    font-size: 1.2rem;
    font-weight: bold;
}

.chat-status {
    font-size: 0.9rem;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    margin-left: 0.5rem;
    font-weight: bold;
    animation: pulse 2s infinite;
}

.chat-status.online {
    background: #28a745;
    color: white;
    box-shadow: 0 0 8px rgba(40, 167, 69, 0.5);
}

.chat-status.offline {
    background: #6c757d;
    color: white;
    box-shadow: 0 0 8px rgba(108, 117, 125, 0.5);
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #1a1410;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s;
}


.chat-messages {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
    background: #f9f6f0;
    display: flex;
    flex-direction: column;
}

.welcome-message {
    text-align: center;
    padding: 2rem;
    color: #8b7355;
    background: #fdfbf7;
    border-radius: 8px;
    margin: auto;
}

.welcome-text {
    font-size: 1.1rem;
    line-height: 1.6;
}

.message {
    max-width: 80%;
    padding: 0.8rem 1rem;
    margin-bottom: 1rem;
    border-radius: 12px;
    position: relative;
    word-wrap: break-word;
    animation: fadeInScale 0.3s ease;
}

.message.sent {
    align-self: flex-end;
    background: linear-gradient(135deg, #CBB272 0%, #F0B992 100%);
    color: #1a1410;
    border-bottom-right-radius: 4px;
}

.message.received {
    align-self: flex-start;
    background: #ffffff;
    border: 1px solid #CBB272;
    color: #2c2416;
    border-bottom-left-radius: 4px;
}

.message-content {
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 0.5rem;
}

.message-time {
    font-size: 0.75rem;
    text-align: right;
    opacity: 0.8;
}

.chat-input {
    display: flex;
    padding: 1rem;
    background: #ffffff;
    border-top: 2px solid #CBB272;
}

.chat-input textarea {
    flex: 1;
    padding: 0.8rem;
    border: 1px solid #CBB272;
    border-radius: 8px;
    resize: none;
    font-family: inherit;
    font-size: 1rem;
    height: 80px;
}

.chat-input textarea:focus {
    outline: none;
    border-color: #C8955F;
    box-shadow: 0 0 0 2px rgba(160, 99, 46, 0.2);
}

.chat-input button {
    margin-left: 0.5rem;
    padding: 0.8rem 1.5rem;
    background: linear-gradient(135deg, #CBB272 0%, #F0B992 100%);
    color: #1a1410;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

.chat-input button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(160, 99, 46, 0.4);
}

.chat-input button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .chat-window {
        width: calc(100% - 40px);
        height: calc(100% - 40px);
        bottom: 20px;
        right: 20px;
    }
    
    .service-stats {
        grid-template-columns: 1fr;
    }
    
    .staff-list {
        grid-template-columns: 1fr;
    }
    
    .phone-number {
        font-size: 2rem;
    }
    
    .hero {
        min-height: 400px; /* 移动端增加最小高度 */
        padding: 0;
    }
}

/* 会员中心 */
.member-info-card {
    background: linear-gradient(135deg, var(--gold-color) 0%, #E7D398 50%, #FDF5B0 100%);
    color: #1a1410;
    padding: 40px 20px;
    border-radius: 0;
    margin-bottom: 0;
    margin-top: 115px; /* 紧贴顶部固定菜单 */
    border: none;
    box-shadow: none;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

.member-info-card h3 {
    margin-bottom: 1rem;
}

.member-info-card > * {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
}

.member-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.stat-item {
    text-align: center;
    padding: 1rem;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.stat-value {
    font-size: 1.8rem;
    font-weight: bold;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* 订单卡片 */
.order-card {
    border: 1px solid #CBB272;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    background: #ffffff;
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #CBB272;
}

.order-no {
    font-weight: 500;
}

.order-status {
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.85rem;
}

.status-pending { background-color: #fff3cd; color: #856404; }
.status-paid { background-color: #d4edda; color: #155724; }
.status-cancelled { background-color: #f8d7da; color: #721c24; }

/* 认证表单 */
.auth-container {
    max-width: 400px;
    margin: 40px auto;
    padding: 2.5rem;
    background: #ffffff;
    border-radius: 8px;
    border: 1px solid #e8dcc8;
    box-shadow: 0 4px 20px rgba(160, 99, 46, 0.1);
}

.auth-form {
    margin-top: 1.5rem;
}

.auth-form {
    margin-bottom: 1.5rem;
}

.auth-form label {
    display: block;
    margin-bottom: 0.5rem;
    color: #2c2416;
    font-weight: 500;
    font-size: 0.95rem;
}

.auth-form input[type="text"],
.auth-form input[type="password"],
.auth-form input[type="tel"],
.auth-form input[type="date"],
.auth-form select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #e8dcc8;
    border-radius: 4px;
    font-size: 0.95rem;
    transition: all 0.3s;
    background: #fdfbf7;
}

.auth-form input:focus,
.auth-form select:focus {
    outline: none;
    border-color: #CBB272;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(160, 99, 46, 0.1);
}

.auth-form .btn-primary {
    width: 100%;
    padding: 0.875rem;
    background: linear-gradient(135deg, #CBB272 0%, #F0B992 50%, #CBB272 100%);
    color: #1a1410;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none !important;
    box-shadow: 0 4px 15px rgba(160, 99, 46, 0.4);
}

.auth-form .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(160, 99, 46, 0.6);
    text-decoration: none !important;
}

.auth-form .btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(160, 99, 46, 0.3);
}

/* 底部 */
footer {
    background: #fff;
    color: #555;
    text-align: center;
    padding: 1.5rem 0;
    margin-top: auto;
    border-top: 1px solid #e8e8e8;
    width: 100%;
    box-sizing: border-box;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-info p {
    margin: 0;
    font-size: 0.9rem;
}

.footer-rights {
    font-size: 0.8rem;
    opacity: 0.8;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 0.5rem;
}

.footer-links a {
    color: #CBB272;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: #C8955F;
    text-decoration: underline;
}

.footer-separator {
    color: #ccc;
    font-size: 1rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .member-info-card {
        margin-top: 99px; /* 移动端紧贴顶部菜单 */
    }
    
    .header-content h1 {
        font-size: 1.5rem;
    }
    
    nav {
        gap: 0.5rem;
    }
    
    nav a {
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
    }
    
    main {
        padding: 0 1rem 0rem 1rem;
    }


    
    .hero {
        padding: 4rem 0;
        min-height: 400px;
        margin-left: -1rem;
        margin-right: -1rem;
    }
    
    .hero h2 {
        font-size: 1.8rem;
        letter-spacing: 1px;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .features {
        grid-template-columns: 1fr;
    }
    
    .room-list {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .search-bar {
        flex-direction: column;
    }
    
    .search-bar input {
        min-width: 100%;
    }
    
    .footer-content {
        padding: 0 1rem;
    }
    
    .footer-info p {
        font-size: 0.8rem;
    }
    
    .footer-rights {
        font-size: 0.7rem;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .footer-separator {
        display: none;
    }
}

/* 小屏幕响应式 */
@media (max-width: 480px) {
    .member-info-card {
        margin-top: 91px; /* 小屏幕紧贴顶部菜单 */
    }
}

/* 辅助类 */
.text-center { text-align: center; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }

/* 加载动画 */
.loading {
    text-align: center;
    padding: 2rem;
    color: #666;
}

.loading::after {
    content: '...';
    animation: dots 1.5s steps(4, end) infinite;
}

@keyframes dots {
    0%, 20% { content: '.'; }
    40% { content: '..'; }
    60%, 100% { content: '...'; }
}

/* 图片加载动画 */
@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* 图片淡入效果 */
.room-image {
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.room-image.loaded {
    opacity: 1;
}

/* 图片懒加载占位符 */
img[data-src] {
    background-color: #f0f0f0;
    background-image: linear-gradient(90deg, rgba(160, 99, 46, 0.1) 25%, transparent 50%, rgba(160, 99, 46, 0.1) 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border: 0;
}

/* 通用链接和按钮样式 - 去除下划线 */
a.btn,
button.btn,
.btn-primary,
.section-more,
.room-card a {
    text-decoration: none !important;
}

a.btn:hover,
button.btn:hover,
.section-more:hover {
    text-decoration: none !important;
}

/* section 样式 */
.section {
    margin-bottom: 2rem;
    margin-top: 1rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.section-title {
    font-size: 1.8rem;
    color: #2c2416;
    margin: 0;
    font-weight: 700;
}

.section-more {
    color: #CBB272;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s;
    font-weight: 600;
}

.section-more:hover {
    text-decoration: none;
}

/* 验证码样式 */
.captcha-group {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: nowrap;
}

.captcha-group input[type="text"] {
    flex: 1;
    min-width: 0;
    height: 42px;
    padding: 10px;
    border: 1px solid #e8dcc8;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
    background: #fdfbf7;
    transition: all 0.3s;
}

.captcha-group input[type="text"]:focus {
    border-color: #CBB272;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(160, 99, 46, 0.1);
}

.captcha-img {
    height: 42px;
    width: auto;
    flex-shrink: 0;
    border: 1px solid #e8dcc8;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #fdfbf7;
}

.captcha-img:hover {
    box-shadow: 0 2px 8px rgba(160, 99, 46, 0.2);
}

/* 手机验证码输入组 */
.sms-code-group {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: nowrap;
}

.sms-code-group input[type="text"] {
    flex: 1;
    min-width: 0;
    height: 42px;
    padding: 10px;
    border: 1px solid #e8dcc8;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
    background: #fdfbf7;
    transition: all 0.3s;
}

.sms-code-group input[type="text"]:focus {
    border-color: #CBB272;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(160, 99, 46, 0.1);
}

.btn-send-sms {
    height: 42px;
    padding: 0 16px;
    background: linear-gradient(135deg, #CBB272 0%, #F0B992 50%, #CBB272 100%);
    color: #1a1410;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(160, 99, 46, 0.3);
}

.btn-send-sms:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(160, 99, 46, 0.4);
}

.btn-send-sms:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background: linear-gradient(135deg, #ccc 0%, #eee 50%, #ccc 100%);
    color: #666;
    box-shadow: none;
}

.form-hint {
    display: block;
    font-size: 0.85rem;
    color: #8b7355;
    margin-top: 5px;
    line-height: 1.4;
}

/* 表单验证样式 */
.auth-form input[type="text"]:invalid:not(:focus),
.auth-form input[type="password"]:invalid:not(:focus),
.auth-form input[type="tel"]:invalid:not(:focus) {
    border-color: #dc3545;
    background: #fff5f5;
}

.auth-form input[type="text"]:valid,
.auth-form input[type="password"]:valid,
.auth-form input[type="tel"]:valid {
    border-color: #CBB272;
    background: #fdfbf7;
}

/* form-row 样式 */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-row  {
    margin-bottom: 1.5rem;
}
