* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'PingFang SC', 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    background-attachment: fixed;
    width: 100%;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

.particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.stars-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.main {
    position: relative;
    z-index: 1;
    margin-top: 70px; /* 为固定header留出空间 */
}

/* Header */
.header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    width: 100%;
    overflow: hidden;
}

.header-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
    transition: opacity 0.5s ease;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.header .nav-container {
    position: relative;
    z-index: 2;
}

.header .nav-container {
    background: transparent;
}

.nav-container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
    box-sizing: border-box;
    position: relative;
    gap: 15px;
}

/* 响应式：优化导航标签排列 */
@media (max-width: 1400px) {
    .nav-container {
        padding: 0 30px;
    }
    
    .nav-menu {
        gap: 20px;
    }
    
    .nav-link {
        padding: 8px 16px;
        font-size: clamp(11px, 1.1vw, 15px);
    }
}

@media (max-width: 1200px) {
    .nav-container {
        padding: 0 25px;
        gap: 12px;
    }
    
    .nav-menu {
        gap: 15px;
    }
    
    .nav-link {
        padding: 8px 14px;
        font-size: clamp(10px, 1vw, 14px);
    }
}

@media (max-width: 992px) {
    .nav-container {
        padding: 0 20px;
        gap: 10px;
    }
    
    .nav-menu {
        gap: 12px;
    }
    
    .nav-link {
        padding: 7px 12px;
        font-size: clamp(9px, 0.9vw, 13px);
    }
}

/* 详情页和搜索结果页专用布局：返回按钮在左，logo居中，搜索在右 */
body:has(.detail-container) .nav-container,
body:has(.search-results-header) .nav-container,
.detail-page .nav-container,
.search-page .nav-container {
    justify-content: flex-start;
    position: relative;
    gap: 0;
}

body:has(.detail-container) .logo,
body:has(.search-results-header) .logo,
.detail-page .logo,
.search-page .logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

/* 详情页和搜索结果页桌面端：返回按钮在左边 */
body:has(.detail-container) .nav-menu,
body:has(.search-results-header) .nav-menu,
.detail-page .nav-menu,
.search-page .nav-menu {
    position: relative;
    z-index: 2;
    margin-left: 0;
    margin-right: auto;
}

body:has(.detail-container) .back-link-desktop,
body:has(.search-results-header) .back-link-desktop,
.detail-page .back-link-desktop,
.search-page .back-link-desktop {
    position: relative;
    z-index: 2;
}

/* 详情页和搜索结果页桌面端：搜索按钮在右边 */
body:has(.detail-container) .search-icon,
body:has(.search-results-header) .search-icon,
.detail-page .search-icon,
.search-page .search-icon {
    position: absolute;
    right: 20px;
    z-index: 2;
    margin-left: 0;
}

/* 详情页和搜索结果页：语言切换按钮位置 */
body:has(.detail-container) .language-switcher,
body:has(.search-results-header) .language-switcher,
.detail-page .language-switcher,
.search-page .language-switcher {
    position: absolute;
    right: 70px;
    z-index: 2;
    margin-left: 0;
}

.logo {
    font-size: 28px;
    font-weight: 800;
    color: white;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
    letter-spacing: 1px;
    background: linear-gradient(135deg, #ffffff 0%, #f0f0f0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.3s;
    vertical-align: middle;
    overflow: visible;
}

.logo-image,
.logo img,
#mainLogoImage {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    max-width: 40px !important;
    min-height: 40px !important;
    max-height: 40px !important;
    object-fit: cover !important;
    object-position: center !important;
    border-radius: 8px !important;
    flex-shrink: 0 !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    position: relative !important;
    top: 0 !important;
    left: 0 !important;
    right: auto !important;
    bottom: auto !important;
    transform: none !important;
    scale: none !important;
    vertical-align: middle !important;
    align-self: center !important;
    image-rendering: auto !important;
}

/* .logo 的重复定义已合并到上面 */

.logo::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 40px;
    height: 40px;
    overflow: hidden;
    border-radius: 8px;
    z-index: -1;
    pointer-events: none;
}

.logo .logo-text {
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo:hover {
    transform: scale(1.05);
    filter: brightness(1.2);
}

.logo::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.8), transparent);
    border-radius: 2px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-link {
    text-decoration: none;
    color: white;
    font-weight: 700;
    transition: all 0.3s;
    padding: 10px 20px;
    border-radius: 25px;
    position: relative;
    background: rgba(255, 255, 255, 0.15);
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    backdrop-filter: blur(10px);
    font-size: clamp(12px, 1.2vw, 16px);
    white-space: nowrap;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.3);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.nav-link.active {
    background: white;
    color: #667eea;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    text-shadow: none;
}

/* 返回按钮样式 */
.back-link {
    display: none;
    text-decoration: none;
    color: white;
    font-weight: 700;
    padding: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    backdrop-filter: blur(10px);
    transition: all 0.3s;
    font-size: 20px;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    position: absolute;
    left: 20px;
    white-space: nowrap;
    flex-shrink: 0;
    line-height: 1;
    z-index: 3;
}

.back-link:hover {
    background: rgba(255, 255, 255, 0.3);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.back-link-desktop {
    display: inline-block;
}

/* 详情页专用布局：返回按钮在左，logo居中，搜索在右 */
.detail-container ~ *,
body:has(.detail-container) .nav-container {
    /* 使用通用选择器，详情页nav-container已通过detail.html结构识别 */
}

/* 当存在返回按钮时，调整logo位置使其居中 */
.nav-container:has(.back-link) .logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.more-menu-wrapper {
    position: relative;
    margin-left: 0;
}

/* 响应式：移动端隐藏更多功能按钮 */
@media (max-width: 767px) {
    .more-menu-wrapper {
        display: none !important;
    }
    
    /* 移动端语言切换按钮 */
    .language-switcher {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        right: 85px;
        margin: 0;
        z-index: 1001;
    }
    
    .lang-switch-btn {
        width: 32px;
        height: 32px;
        font-size: 10px;
    }
}

.more-menu-trigger {
    cursor: pointer;
}

.more-menu-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 10px;
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.98) 0%, rgba(22, 33, 62, 0.98) 100%);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    min-width: 200px;
    z-index: 1000;
    padding: 8px 0;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.more-menu-wrapper:hover .more-menu-dropdown,
.more-menu-dropdown:hover {
    display: block;
}

.more-menu-dropdown a {
    display: block;
    padding: 12px 20px;
    color: white;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
    border-left: 3px solid transparent;
}

.more-menu-dropdown a:hover {
    background: rgba(255, 255, 255, 0.15);
    border-left-color: #667eea;
    padding-left: 23px;
}

.country-selector {
    margin-left: 10px;
}

.country-select {
    padding: 8px 15px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    color: #ffffff;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.country-select:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
}

.country-select option {
    background: #2c3e50;
    color: #ffffff;
}

.publish-btn {
    padding: 10px 20px;
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
    color: white;
    border: none;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-right: 15px;
    box-shadow: 0 2px 8px rgba(46, 204, 113, 0.3);
    white-space: nowrap;
}

.publish-btn:hover {
    background: linear-gradient(135deg, #27ae60 0%, #229954 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(46, 204, 113, 0.4);
}

.publish-btn:active {
    transform: translateY(0);
}

.search-icon {
    font-size: 24px;
    cursor: pointer;
    color: white;
    padding: 8px 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin-left: 15px;
}

.search-icon:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* 语言切换器 - 单个圆形按钮 */
.language-switcher {
    display: flex;
    align-items: center;
    margin-left: 10px;
    margin-right: 0;
}

.lang-switch-btn {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 11px;
    font-weight: 600;
    transition: all 0.3s;
    white-space: nowrap;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lang-switch-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.lang-switch-btn:active {
    transform: scale(0.95);
}

/* Landing页面的语言切换器 */
.landing-lang-switcher {
    margin-left: 15px;
    margin-right: 0;
}

/* 响应式：导航标签在缩小时自适应 */
@media (max-width: 1200px) {
    .nav-link {
        padding: 8px 16px;
        font-size: clamp(11px, 1.1vw, 14px);
    }
}

@media (max-width: 992px) {
    .nav-link {
        padding: 8px 14px;
        font-size: clamp(10px, 1vw, 13px);
    }
}

/* 响应式：移动端语言切换器 */
@media (max-width: 768px) {
    .language-switcher {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        right: 35px;
        margin: 0;
        z-index: 1001;
    }
    
    .lang-switch-btn {
        padding: 5px 10px;
        font-size: 12px;
    }
}

/* 移动端发布按钮 - 桌面端隐藏 */
.mobile-publish-item {
    display: none;
    width: 100%;
    padding: 10px 20px;
    margin-top: 10px;
    border-top: 2px solid rgba(255, 255, 255, 0.2);
    list-style: none;
}

.mobile-publish-btn {
    width: 100%;
    padding: 14px 20px;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
    color: white;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.25);
}

.mobile-publish-btn .btn-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.mobile-publish-btn .btn-text {
    position: relative;
    z-index: 1;
}

.mobile-publish-btn:active {
    background: linear-gradient(135deg, #27ae60 0%, #229954 100%);
    transform: scale(0.98);
}

/* 搜索模态框 */
.search-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s;
    pointer-events: auto;
    overflow-y: auto;
}

.search-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.search-modal-content {
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.98) 0%, rgba(22, 33, 62, 0.98) 100%);
    border-radius: 20px;
    padding: 30px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(20px);
    animation: slideDown 0.3s;
    position: relative;
    z-index: 2001;
    pointer-events: auto;
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.search-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.search-modal-header h3 {
    color: white;
    font-size: 24px;
    font-weight: 700;
    margin: 0;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.search-modal-close {
    color: white;
    font-size: 32px;
    font-weight: 300;
    cursor: pointer;
    line-height: 1;
    transition: all 0.3s;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 2002;
    pointer-events: auto;
    user-select: none;
}

.search-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.search-modal-body {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.search-modal-body .search-input {
    width: 100%;
    padding: 14px 20px;
    font-size: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    backdrop-filter: blur(10px);
    transition: all 0.3s;
    outline: none;
    box-sizing: border-box;
    position: relative;
    z-index: 2002;
    pointer-events: auto;
    -webkit-appearance: none;
}

.search-modal-body .search-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.search-modal-body .search-input:focus {
    border-color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.4);
}

.search-modal-body .search-btn {
    width: 100%;
    padding: 14px 30px;
    font-size: 16px;
    font-weight: 600;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    position: relative;
    z-index: 2002;
    pointer-events: auto;
    -webkit-appearance: none;
}

.search-modal-body .search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.3s;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    z-index: 1000;
    margin-left: auto;
}

.hamburger:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.25);
    transform: scale(1.05);
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.2);
}

.hamburger:active {
    transform: scale(0.95);
}

.hamburger span {
    width: 24px;
    height: 3px;
    background: rgba(255, 255, 255, 0.9);
    transition: 0.3s;
    border-radius: 2px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Banner Section */
.banner-section {
    margin: 30px auto;
    width: calc(100% - 60px);
    max-width: 1400px;
    padding: 0;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
}

.banner-container {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15), 0 0 0 1px rgba(255,255,255,0.1);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    z-index: 1;
    /* 确保子元素圆角被裁剪 */
    clip-path: inset(0 round 20px);
}

.banner-slider {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease;
}

.banner-slide {
    min-width: 100%;
    height: 100%;
    position: relative;
}

.banner-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner-prev,
.banner-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    color: white;
    border: 2px solid rgba(255,255,255,0.3);
    padding: 18px 22px;
    cursor: pointer;
    font-size: 24px;
    border-radius: 50%;
    transition: all 0.3s;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.banner-prev:hover,
.banner-next:hover {
    background: rgba(255,255,255,0.35);
    border-color: rgba(255,255,255,0.5);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.banner-prev {
    left: 20px;
}

.banner-next {
    right: 20px;
}

.banner-dots {
    display: none; /* 隐藏轮播点 */
}

/* 轮播图底部磨砂遮罩 */
.banner-container::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3.75%; /* 缩小一半：从7.5%改为3.75% */
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.3) 50%, transparent 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    pointer-events: none;
    z-index: 2;
    /* 底部圆角与轮播图容器完全同步 */
    border-radius: 0 0 20px 20px;
    /* 确保不超出容器边界 */
    margin: 0;
    padding: 0;
}

.banner-text {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px 20px 22px; /* 缩小一半：从30px 40px 45px改为15px 20px 22px */
    text-align: center;
    font-size: 22px;
    font-weight: 700;
    min-height: 45px; /* 缩小一半：从90px改为45px */
    display: flex;
    align-items: flex-end;
    justify-content: center;
    line-height: 1.6;
    letter-spacing: 2px;
    z-index: 3;
    /* 清晰可读的文字效果 - 降低光晕强度 */
    color: #ffffff;
    font-family: 'Segoe UI', 'Microsoft YaHei', 'PingFang SC', sans-serif;
    /* 使用文字描边增强可读性 */
    -webkit-text-stroke: 0.5px rgba(0, 0, 0, 0.8);
    text-shadow: 
        /* 轻微内层光晕 - 降低强度 */
        0 0 2px rgba(255, 255, 255, 0.6),
        0 0 4px rgba(255, 255, 255, 0.4),
        /* 轻微外层光晕 */
        0 0 8px rgba(102, 126, 234, 0.5),
        0 0 12px rgba(118, 75, 162, 0.3),
        /* 深度阴影 - 增强文字清晰度 */
        0 1px 2px rgba(0, 0, 0, 0.9),
        0 2px 4px rgba(0, 0, 0, 0.8),
        0 3px 6px rgba(0, 0, 0, 0.7),
        0 4px 8px rgba(0, 0, 0, 0.6);
    /* 使用适中的深色背景增强对比度 */
    background: linear-gradient(
        135deg,
        rgba(0, 0, 0, 0.75) 0%,
        rgba(0, 0, 0, 0.65) 50%,
        rgba(0, 0, 0, 0.55) 100%
    );
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-top: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        inset 0 -1px 0 rgba(0, 0, 0, 0.5),
        0 -10px 30px rgba(0, 0, 0, 0.6),
        0 0 40px rgba(0, 0, 0, 0.4);
    animation: textGlow 3s ease-in-out infinite alternate;
}

@keyframes textGlow {
    0% {
        text-shadow: 
            /* 轻微内层光晕 */
            0 0 2px rgba(255, 255, 255, 0.6),
            0 0 4px rgba(255, 255, 255, 0.4),
            /* 轻微外层光晕 */
            0 0 8px rgba(102, 126, 234, 0.5),
            0 0 12px rgba(118, 75, 162, 0.3),
            /* 深度阴影 */
            0 1px 2px rgba(0, 0, 0, 0.9),
            0 2px 4px rgba(0, 0, 0, 0.8),
            0 3px 6px rgba(0, 0, 0, 0.7),
            0 4px 8px rgba(0, 0, 0, 0.6);
        box-shadow: 
            inset 0 1px 0 rgba(255, 255, 255, 0.2),
            inset 0 -1px 0 rgba(0, 0, 0, 0.5),
            0 -10px 30px rgba(0, 0, 0, 0.6),
            0 0 40px rgba(0, 0, 0, 0.4);
    }
    100% {
        text-shadow: 
            /* 轻微增强光晕 */
            0 0 3px rgba(255, 255, 255, 0.7),
            0 0 6px rgba(255, 255, 255, 0.5),
            /* 轻微增强外层光晕 */
            0 0 10px rgba(102, 126, 234, 0.6),
            0 0 15px rgba(118, 75, 162, 0.4),
            /* 深度阴影 */
            0 1px 2px rgba(0, 0, 0, 0.9),
            0 2px 4px rgba(0, 0, 0, 0.8),
            0 3px 6px rgba(0, 0, 0, 0.7),
            0 4px 8px rgba(0, 0, 0, 0.6);
        box-shadow: 
            inset 0 1px 0 rgba(255, 255, 255, 0.25),
            inset 0 -1px 0 rgba(0, 0, 0, 0.6),
            0 -10px 30px rgba(0, 0, 0, 0.7),
            0 0 50px rgba(0, 0, 0, 0.5);
    }
}

/* Search Section */
.search-section {
    margin: 30px auto;
    width: calc(100% - 60px);
    max-width: 1400px;
    padding: 0 30px;
    box-sizing: border-box;
    position: relative;
    z-index: 2;
}

.search-container {
    display: flex;
    gap: 15px;
    align-items: center;
    max-width: 500px;
}

.search-input {
    flex: 1;
    padding: 14px 20px;
    font-size: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s;
    outline: none;
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.search-input:focus {
    border-color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.4);
}

.search-btn {
    padding: 14px 30px;
    font-size: 16px;
    font-weight: 600;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    white-space: nowrap;
}

.search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.search-btn:active {
    transform: translateY(0);
}

.search-results-header {
    margin: 30px auto;
    width: calc(100% - 60px);
    max-width: 1400px;
    padding: 0 30px;
    box-sizing: border-box;
}

.search-results-header h2 {
    color: white;
    font-size: 24px;
    font-weight: 700;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
    margin-bottom: 20px;
}

/* Filter Section */
.filter-section {
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.95) 0%, rgba(22, 33, 62, 0.95) 50%, rgba(15, 52, 96, 0.95) 100%);
    padding: 40px;
    margin: 40px auto;
    width: calc(100% - 60px);
    max-width: 1400px;
    border-radius: 25px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3), 0 0 0 1px rgba(255, 255, 255, 0.1);
    box-sizing: border-box;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.snow-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.filter-section .snow-canvas {
    position: absolute;
    border-radius: 25px;
    z-index: 0;
    pointer-events: none;
}

.filter-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: flex-end;
    position: relative;
    z-index: 2;
}

.filter-group {
    flex: 1;
    min-width: 150px;
}

.filter-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
    color: #ffffff;
    font-size: 14px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5), 0 0 20px rgba(102, 126, 234, 0.5);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.filter-select-hidden {
    display: none !important;
}

.filter-select-btn {
    width: 100%;
    padding: 12px 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: white;
    font-size: 15px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s;
    text-align: left;
    font-family: inherit;
    position: relative;
    z-index: 100;
    pointer-events: auto !important;
    min-height: 44px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    -webkit-tap-highlight-color: transparent;
}

.filter-select-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.filter-select-btn:active {
    transform: translateY(0);
}

.filter-select-btn .filter-arrow {
    font-size: 12px;
    opacity: 0.7;
    transition: transform 0.3s;
}

.filter-select-btn:hover .filter-arrow {
    opacity: 1;
}

.filter-select {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    font-size: 16px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    transition: all 0.3s;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath fill='%23ffffff' d='M8 11L3 6h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 18px center;
    padding-right: 50px;
    font-weight: 600;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2), inset 0 1px 3px rgba(255, 255, 255, 0.2);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.filter-select option {
    background: #1a1a2e;
    color: #ffffff;
    padding: 10px;
}

.filter-select:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.6);
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.2), 0 6px 20px rgba(102, 126, 234, 0.4), inset 0 1px 3px rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.25);
}

.filter-select:hover {
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3), inset 0 1px 3px rgba(255, 255, 255, 0.25);
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.2);
}

.filter-btn {
    padding: 16px 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4), 0 0 0 0 rgba(102, 126, 234, 0.5);
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.filter-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.filter-btn:hover::before {
    width: 300px;
    height: 300px;
}

.filter-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.6), 0 0 0 4px rgba(102, 126, 234, 0.2);
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

.filter-btn:active {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

/* Properties Section */
.properties-section {
    width: calc(100% - 60px);
    max-width: 1400px;
    margin: 40px auto;
    padding: 0 30px;
    box-sizing: border-box;
}

.properties-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.property-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12), 0 0 0 1px rgba(0,0,0,0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    position: relative;
    border: 1px solid rgba(102, 126, 234, 0.1);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.property-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    transform: scaleX(0);
    transition: transform 0.4s;
    transform-origin: left;
}

.property-card:hover::before {
    transform: scaleX(1);
}

.property-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 60px rgba(102, 126, 234, 0.25), 0 0 0 1px rgba(102, 126, 234, 0.1);
}

.property-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 9 / 6;
    overflow: hidden;
}

.property-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.property-card:hover .property-image {
    transform: scale(1.1);
}

.property-image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.4) 50%, transparent 100%);
    pointer-events: none;
}

.property-location-overlay {
    color: white;
    font-size: 14px;
    font-weight: 600;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    gap: 6px;
    letter-spacing: 0.5px;
}

.property-location-overlay::before {
    content: '📍';
    font-size: 12px;
}

.property-info {
    padding: 20px;
    background: linear-gradient(to bottom, white 0%, #fafbfc 100%);
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 220px;
}

.property-price {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 15px;
    letter-spacing: 0.5px;
    display: flex;
    align-items: baseline;
    gap: 8px;
    color: #2c3e50;
    height: 24px;
    flex-shrink: 0;
    flex-grow: 0;
}

.price-label {
    font-size: 15px;
    font-weight: 600;
    color: #2c3e50;
    letter-spacing: 0.5px;
}

.price-value {
    font-size: 15px;
    font-weight: 600;
    color: #2c3e50;
    letter-spacing: 0.5px;
}


.property-title {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.5;
    height: 54px;
    flex-shrink: 0;
    flex-grow: 0;
}

.property-specs {
    display: flex;
    gap: 25px;
    margin-bottom: 10px;
    font-size: 13px;
    color: #7f8c8d;
    flex-wrap: wrap;
    height: 20px;
    flex-shrink: 0;
    flex-grow: 0;
    visibility: visible;
}

.property-area,
.property-rooms {
    color: #7f8c8d;
    font-weight: 500;
}

.property-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 12px;
    min-height: 30px;
    flex-shrink: 0;
    flex-grow: 0;
}

.property-tag {
    background: linear-gradient(135deg, #f0f4ff 0%, #e8ecff 100%);
    color: #667eea;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid rgba(102, 126, 234, 0.2);
    transition: all 0.3s;
}

.property-tag:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.property-actions {
    display: flex;
    gap: 10px;
    margin-top: auto;
    flex-shrink: 0;
}

.btn-detail,
.btn-whatsapp {
    flex: 1;
    padding: 12px 16px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-size: clamp(11px, 1.2vw, 14px);
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s;
    position: relative;
    overflow: visible;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    white-space: nowrap;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    word-break: keep-all;
}

/* 当文字较长时进一步缩小 */
@media (max-width: 768px) {
    .btn-detail,
    .btn-whatsapp {
        font-size: clamp(10px, 2vw, 13px);
        padding: 10px 14px;
    }
}

@media (max-width: 480px) {
    .btn-detail,
    .btn-whatsapp {
        font-size: clamp(9px, 2.2vw, 11px);
        padding: 8px 10px;
    }
}

.btn-detail {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
}

.btn-detail:hover {
    background: linear-gradient(135deg, #2980b9 0%, #3498db 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}

.btn-whatsapp {
    background: linear-gradient(135deg, #25D366 0%, #20BA5A 100%);
    color: white;
}

.btn-whatsapp:hover {
    background: linear-gradient(135deg, #20BA5A 0%, #25D366 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 60px;
    padding: 30px 0;
}

.pagination-btn {
    padding: 10px 18px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 600;
    font-size: 13px;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2), inset 0 1px 3px rgba(255, 255, 255, 0.2);
    min-width: 90px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.pagination-btn:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4), inset 0 1px 3px rgba(255, 255, 255, 0.3);
}

.pagination-btn:active:not(:disabled) {
    transform: translateY(0);
}

.pagination-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background: rgba(255, 255, 255, 0.08);
}

.pagination-info {
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    font-weight: 700;
    font-size: 14px;
    color: #ffffff;
    min-width: 50px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2), inset 0 1px 3px rgba(255, 255, 255, 0.3);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* 响应式翻页样式 */
@media (max-width: 768px) {
    .pagination {
        gap: 10px;
        margin-top: 40px;
        padding: 20px 0;
    }
    
    .pagination-btn {
        padding: 8px 14px;
        font-size: 12px;
        min-width: 75px;
    }
    
    .pagination-info {
        padding: 8px 16px;
        font-size: 13px;
        min-width: 40px;
    }
}

@media (max-width: 480px) {
    .pagination {
        gap: 8px;
    }
    
    .pagination-btn {
        padding: 7px 12px;
        font-size: 11px;
        min-width: 65px;
    }
    
    .pagination-info {
        padding: 7px 14px;
        font-size: 12px;
        min-width: 35px;
    }
}

/* Detail Page */
.detail-container {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    position: relative;
    z-index: 1;
}

.detail-images {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.main-image-container {
    width: 100%;
    margin-bottom: 20px;
}

.main-image {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 10px;
}

.thumbnail-images {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.thumbnail-image {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 5px;
    cursor: pointer;
    transition: opacity 0.3s;
    border: 2px solid transparent;
}

.thumbnail-image:hover {
    opacity: 0.8;
    border-color: #3498db;
}

.detail-info {
    background: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.detail-title {
    font-size: 28px;
    color: #2c3e50;
    margin-bottom: 20px;
}

.detail-specs {
    font-size: 16px;
    color: #7f8c8d;
    margin-bottom: 15px;
    padding: 10px 0;
    border-bottom: 1px solid #e0e0e0;
}

.detail-area,
.detail-rooms {
    color: #7f8c8d;
    font-weight: 500;
}

.detail-price {
    font-size: 28px;
    font-weight: bold;
    color: #e74c3c;
    margin-bottom: 10px;
}

.detail-deposit {
    font-size: 24px;
    font-weight: 600;
    color: #f39c12;
    margin-bottom: 15px;
}

.detail-location {
    font-size: 18px;
    color: #7f8c8d;
    margin-bottom: 15px;
}

.detail-type {
    display: inline-block;
    background: #3498db;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
    margin-bottom: 20px;
}

.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
}

.detail-tag {
    background: #ecf0f1;
    color: #34495e;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 14px;
}

.detail-actions {
    margin-top: 30px;
    margin-bottom: 30px;
}

.detail-message {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 10px;
    margin-top: 20px;
    line-height: 1.8;
    color: #555;
    border: 1px solid #e0e0e0;
}

.detail-actions .btn-whatsapp {
    width: 100%;
    padding: 15px;
    font-size: clamp(14px, 2vw, 18px);
    display: block;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    box-sizing: border-box;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    text-align: center;
    padding: 50px 20px;
    margin-top: 80px;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
}

.footer p {
    font-size: 15px;
    opacity: 0.9;
    letter-spacing: 0.5px;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
}

.footer-line1,
.footer-line2 {
    display: inline;
}

/* Footer 响应式样式 */
@media (max-width: 768px) {
    .footer {
        padding: 12px 15px;
        margin-top: 40px;
    }
    
    .footer p {
        font-size: 12px;
        line-height: 1.6;
    }
    
    .footer-line1 {
        display: block;
        margin-bottom: 2px;
    }
    
    .footer-line2 {
        display: block;
    }
}

/* Admin Page */
.admin-container {
    display: flex;
    min-height: 100vh;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.admin-sidebar {
    width: 260px;
    background: linear-gradient(180deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px 0;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    box-shadow: 4px 0 20px rgba(0,0,0,0.1);
}

.admin-sidebar h2 {
    padding: 0 25px;
    margin-bottom: 40px;
    font-size: 26px;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
    letter-spacing: 0.5px;
}

.admin-menu {
    list-style: none;
    padding: 0;
}

.menu-item {
    display: block;
    padding: 16px 25px;
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    transition: all 0.3s;
    border-left: 4px solid transparent;
    font-weight: 500;
    font-size: 15px;
}

.menu-item:hover {
    background: rgba(255,255,255,0.15);
    border-left-color: white;
    color: white;
    padding-left: 30px;
}

.menu-item.active {
    background: rgba(255,255,255,0.25);
    border-left-color: white;
    color: white;
    font-weight: 600;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.1);
}

.admin-content {
    margin-left: 260px;
    flex: 1;
    padding: 50px;
    background: transparent;
}

.admin-section {
    display: none;
    background: white;
    padding: 45px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.admin-section.active {
    display: block;
}

.admin-section h2 {
    margin-bottom: 35px;
    color: #2c3e50;
    font-size: 32px;
    font-weight: 700;
    border-bottom: 3px solid #667eea;
    padding-bottom: 15px;
}

.admin-section h3 {
    color: #34495e;
    font-size: 22px;
    font-weight: 600;
    margin-top: 40px;
    margin-bottom: 20px;
}

.admin-form {
    max-width: 650px;
    background: #f8f9fa;
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #2c3e50;
    font-size: 14px;
    letter-spacing: 0.3px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 15px;
    font-family: inherit;
    transition: all 0.3s;
    background: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
    transform: translateY(-1px);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.char-count {
    text-align: right;
    color: #7f8c8d;
    font-size: 12px;
    margin-top: 5px;
}

.btn-primary {
    padding: 14px 35px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    letter-spacing: 0.5px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

.btn-primary:active {
    transform: translateY(0);
}

.message {
    margin-top: 20px;
    padding: 16px 20px;
    border-radius: 12px;
    display: none;
    font-weight: 500;
    font-size: 14px;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message.success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
    border: 2px solid #28a745;
    display: block;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.2);
}

.message.error {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
    border: 2px solid #dc3545;
    display: block;
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.2);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.admin-table th,
.admin-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.admin-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
}

.admin-table tr:hover {
    background: #f8f9fa;
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 60px rgba(0, 0, 0, 0.3);
    width: 90%;
    max-width: 900px;
    position: relative;
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-content .close {
    color: #aaa;
    float: right;
    font-size: 32px;
    font-weight: bold;
    position: absolute;
    right: 20px;
    top: 15px;
    cursor: pointer;
    transition: color 0.3s;
}

.modal-content .close:hover,
.modal-content .close:focus {
    color: #e74c3c;
}

.modal-content h2 {
    margin-bottom: 30px;
    color: #2c3e50;
    font-size: 28px;
    border-bottom: 3px solid #667eea;
    padding-bottom: 15px;
}

.btn-secondary {
    background: #95a5a6;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s;
}

.btn-secondary:hover {
    background: #7f8c8d;
}

.btn-danger {
    padding: 6px 12px;
    background: #e74c3c;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s;
}

.btn-danger:hover {
    background: #c0392b;
}

.banners-manager {
    max-width: 800px;
}

.banner-item {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 25px;
}

.banner-item h3 {
    margin-bottom: 20px;
    color: #2c3e50;
}

.btn-upload {
    padding: 8px 15px;
    background: #95a5a6;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    margin-left: 10px;
}

.btn-upload:hover {
    background: #7f8c8d;
}

.image-preview {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px;
    margin-top: 15px;
}

.image-preview-item {
    position: relative;
    width: 100px;
    height: 100px;
}

.image-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 5px;
}

.image-preview-item .remove-image {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #e74c3c;
    color: white;
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    cursor: pointer;
    font-size: 12px;
}

/* Responsive Design */

@media (max-width: 768px) {
    .nav-container {
        position: relative;
    }
    
    /* 移动端语言切换按钮 */
    .language-switcher {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        right: 85px;
        margin: 0;
        z-index: 1001;
    }
    
    .lang-switch-btn {
        width: 32px;
        height: 32px;
        font-size: 10px;
    }

    .hamburger {
        display: flex !important;
        position: relative;
        z-index: 10001 !important;
        pointer-events: auto !important;
        cursor: pointer !important;
    }

    .nav-menu {
        display: none !important;
    }
    
    /* 移动端显示返回按钮，隐藏桌面端返回按钮 */
    .back-link {
        display: inline-flex !important;
        align-items: center;
    }
    
    .back-link-desktop {
        display: none !important;
    }
    
    /* 详情页和搜索结果页响应式界面：搜索按钮靠右边 */
    .nav-container:has(.back-link) .search-icon {
        position: absolute;
        right: 15px;
    }
    
    /* 移动端logo居中 */
    body:has(.detail-container) .logo,
    body:has(.search-results-header) .logo {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        z-index: 1;
    }
    
    /* 移动端返回按钮位置 */
    body:has(.detail-container) .back-link,
    body:has(.search-results-header) .back-link {
        left: 15px;
    }
    
    /* 移动端语言切换按钮位置（详情页和搜索结果页） */
    body:has(.detail-container) .language-switcher,
    body:has(.search-results-header) .language-switcher {
        position: absolute;
        right: 35px;
        top: 50%;
        transform: translateY(-50%);
        z-index: 1001;
    }

    .nav-link {
        padding: 16px 20px;
        display: block;
        color: white !important;
        background: transparent !important;
        text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
        cursor: pointer;
        pointer-events: auto;
        font-size: 15px;
        font-weight: 600;
        transition: background 0.2s ease;
        border-bottom: 1px solid rgba(255, 255, 255, 0.15);
        text-decoration: none;
    }

    .nav-link:last-child {
        border-bottom: none;
    }

    .nav-link:hover {
        background: rgba(255, 255, 255, 0.2) !important;
    }

    .nav-link.active {
        background: rgba(255, 255, 255, 0.3) !important;
        font-weight: 700;
    }
    
    /* 隐藏桌面端发布按钮，显示移动端按钮 */
    .publish-btn {
        display: none !important;
    }
    
    .mobile-publish-item {
        display: block;
        padding: 0;
        margin: 0;
    }

    .mobile-publish-item .mobile-publish-btn {
        border-radius: 0;
        margin: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    }

    .country-selector {
        margin: 0;
        padding: 16px 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    }

    .country-selector:last-child {
        border-bottom: none;
    }

    .country-select {
        margin: 0;
        width: 100%;
        padding: 10px;
        background: rgba(255, 255, 255, 0.15);
        border: 1px solid rgba(255, 255, 255, 0.3);
        border-radius: 8px;
        color: white;
    }
    
    .country-select {
        width: 100%;
        padding: 12px;
    }

    .search-section {
        width: 100%;
        padding: 0 20px;
        margin: 20px 0;
    }
    
    .search-container {
        flex-direction: column;
        max-width: 100%;
    }
    
    .search-input {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .search-btn {
        width: 100%;
    }
    
    .search-results-header {
        width: 100%;
        padding: 0 20px;
    }
    
    .search-results-header h2 {
        font-size: 20px;
    }

    .banner-section {
        width: 100%;
        padding: 0;
        margin: 0;
        margin-top: 0; /* header已固定，无需额外margin */
    }
    
    .banner-container {
        height: 300px; /* 加一倍：从150px改为300px */
        border-radius: 0;
    }
    
    .banner-text {
        padding: 11px 11px 22px; /* 缩小一半：从22px 22px 45px改为11px 11px 22px */
        font-size: 16px;
        font-weight: 700;
        letter-spacing: 1.5px;
        min-height: 33px; /* 缩小一半：从67px改为33px */
    }
    
    .banner-prev,
    .banner-next {
        width: 40px !important;
        height: 40px !important;
        padding: 8px !important;
        font-size: 18px !important;
        background: rgba(255, 255, 255, 0.1) !important;
        border: 1px solid rgba(255, 255, 255, 0.2) !important;
        backdrop-filter: blur(5px) !important;
        opacity: 0.6;
        transition: opacity 0.3s;
    }
    
    .banner-prev:hover,
    .banner-next:hover {
        opacity: 0.9 !important;
        background: rgba(255, 255, 255, 0.2) !important;
        transform: translateY(-50%) scale(1.05) !important;
    }
    
    .banner-prev {
        left: 10px !important;
    }
    
    .banner-next {
        right: 10px !important;
    }

    .filter-section {
        padding: 20px 15px;
        margin: 20px auto;
        border-radius: 18px;
    }
    
    .filter-container {
        flex-direction: row;
        align-items: flex-end;
        gap: 12px;
        flex-wrap: wrap;
        justify-content: space-between;
    }

    .filter-group {
        flex: 1;
        min-width: 140px;
        max-width: calc(50% - 6px);
        margin-bottom: 0;
    }
    
    .filter-group label {
        margin-bottom: 6px;
        font-size: 12px;
        font-weight: 600;
        letter-spacing: 0.3px;
    }

    .filter-select-btn {
        padding: 10px 15px;
        font-size: 14px;
        min-height: 40px;
        border-radius: 8px;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    }
    
    .filter-select-btn:hover {
        transform: translateY(-1px);
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
    }
    
    .filter-select-btn .filter-arrow {
        font-size: 10px;
    }

    .properties-container {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 20px;
    }


    .detail-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .main-image {
        height: 300px;
    }

    .thumbnail-images {
        grid-template-columns: repeat(3, 1fr);
    }

    .admin-sidebar {
        width: 100%;
        position: relative;
        height: auto;
    }

    .admin-content {
        margin-left: 0;
        padding: 20px;
    }

    .admin-section {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .properties-container {
        grid-template-columns: 1fr;
    }
    
    /* 移动端按钮文字进一步缩小 */
    .btn-detail,
    .btn-whatsapp {
        font-size: clamp(9px, 2.2vw, 11px);
        padding: 8px 10px;
    }
    
    .detail-actions .btn-whatsapp {
        font-size: clamp(12px, 3vw, 16px);
        padding: 12px;
    }

    .banner-section {
        width: 100%;
        padding: 0;
        margin: 0;
        margin-top: 0; /* header已固定，无需额外margin */
    }
    
    .banner-container {
        height: 240px; /* 加一倍：从120px改为240px */
        border-radius: 0;
    }
    
    .banner-text {
        padding: 7px 7px 18px; /* 缩小一半：从15px 15px 37px改为7px 7px 18px */
        font-size: 14px;
        font-weight: 700;
        letter-spacing: 1px;
        min-height: 25px; /* 缩小一半：从50px改为25px */
    }
    
    .properties-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .filter-section {
        padding: 15px 10px;
        margin: 15px auto;
    }
    
    .filter-container {
        gap: 6px;
    }
    
    .filter-section {
        padding: 15px 12px;
        margin: 15px auto;
        border-radius: 15px;
    }
    
    .filter-container {
        gap: 10px;
    }
    
    .filter-group {
        min-width: 120px;
        max-width: calc(50% - 5px);
    }
    
    .filter-group label {
        margin-bottom: 5px;
        font-size: 11px;
        font-weight: 600;
        letter-spacing: 0.2px;
    }
    
    .filter-select-btn {
        padding: 8px 12px;
        font-size: 13px;
        min-height: 36px;
        border-radius: 8px;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    }
    
    .filter-select-btn:hover {
        transform: translateY(-1px);
        box-shadow: 0 3px 8px rgba(0, 0, 0, 0.25);
    }
    
    .filter-select-btn .filter-arrow {
        font-size: 9px;
    }

    .banner-prev,
    .banner-next {
        width: 40px !important;
        height: 40px !important;
        padding: 8px !important;
        font-size: 18px !important;
        background: rgba(255, 255, 255, 0.1) !important;
        border: 1px solid rgba(255, 255, 255, 0.2) !important;
        backdrop-filter: blur(5px) !important;
        opacity: 0.6;
        transition: opacity 0.3s;
    }
    
    .banner-prev:hover,
    .banner-next:hover {
        opacity: 0.9 !important;
        background: rgba(255, 255, 255, 0.2) !important;
        transform: translateY(-50%) scale(1.05) !important;
    }
    
    .banner-prev {
        left: 10px !important;
    }
    
    .banner-next {
        right: 10px !important;
    }

    .detail-title {
        font-size: 22px;
    }

    .detail-price {
        font-size: 24px;
    }
}

/* 选择弹窗样式 */
.select-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.select-modal.show {
    display: flex;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.select-modal-content {
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.98) 0%, rgba(22, 33, 62, 0.98) 50%, rgba(15, 52, 96, 0.98) 100%);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.1);
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: slideUp 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.select-modal-header {
    padding: 20px 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.2);
}

.select-modal-header h3 {
    margin: 0;
    color: white;
    font-size: 20px;
    font-weight: 700;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.select-modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s;
    opacity: 0.7;
}

.select-modal-close:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(90deg);
}

.select-modal-body {
    padding: 15px;
    overflow-y: auto;
    max-height: calc(80vh - 80px);
    flex: 1;
}

.select-modal-body::-webkit-scrollbar {
    width: 8px;
}

.select-modal-body::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}

.select-modal-body::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
}

.select-modal-body::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

.select-option {
    padding: 15px 20px;
    margin-bottom: 8px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: white;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 16px;
    text-align: left;
    word-wrap: break-word;
    word-break: break-all;
}

.select-option:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.select-option.selected {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.5) 0%, rgba(118, 75, 162, 0.5) 100%);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.4);
}

    .select-option:active {
        transform: translateX(5px) scale(0.98);
    }

/* 菜单弹窗样式 */
.menu-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.menu-modal.show {
    display: flex !important;
}

.menu-modal-content {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(102, 126, 234, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.15);
    width: 90%;
    max-width: 380px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: slideUp 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.25);
}

.menu-modal-header {
    padding: 20px 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.2);
}

.menu-modal-header h3 {
    margin: 0;
    color: white;
    font-size: 20px;
    font-weight: 700;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.menu-modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s;
    opacity: 0.7;
}

.menu-modal-close:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(90deg);
}

.menu-modal-body {
    padding: 15px;
    overflow-y: auto;
    max-height: calc(80vh - 80px);
    flex: 1;
}

.menu-modal-body::-webkit-scrollbar {
    width: 8px;
}

.menu-modal-body::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}

.menu-modal-body::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
}

.menu-modal-body::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

.menu-option {
    padding: 14px 18px;
    margin: 6px 0;
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.25);
    border-radius: 10px;
    color: white;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    text-decoration: none;
    display: block;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.menu-option:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.menu-option.active {
    background: rgba(255, 255, 255, 0.35);
    border-color: rgba(255, 255, 255, 0.6);
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.3);
    font-weight: 700;
}

.menu-option:active {
    transform: translateY(0) scale(0.98);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* 响应式 */
@media (max-width: 768px) {
    .select-modal-content {
        width: 95%;
        max-height: 85vh;
    }
    
    .select-modal-header {
        padding: 15px 20px;
    }
    
    .select-modal-header h3 {
        font-size: 18px;
    }
    
    .select-modal-body {
        padding: 10px;
    }
    
    .select-option {
        padding: 12px 15px;
        font-size: 15px;
    }
}
