/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background-color: #f3f3f3;
    -webkit-overflow-scrolling: touch;
}

body {
    font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    color: #333;
    background-color: transparent;
    overflow-x: hidden;
    line-height: 1.6;
    position: relative;
    touch-action: pan-y;
}

/* 加载屏幕 */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(-45deg, #ee7752, #e73c7e, #23a6d5, #23d5ab);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    transition: opacity 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.loading-screen::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.85);
    z-index: -1;
}

.loading-screen.hide {
    opacity: 0;
    pointer-events: none;
}

.loading-content {
    text-align: center;
    width: 80%;
    max-width: 400px;
    background-color: rgba(255, 255, 255, 0.8);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

.loading-content h1 {
    font-size: 2.5rem;
    color: #3a7bd5;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.loading-content p {
    color: #666;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.loading-bar-container {
    position: relative;
    width: 100%;
    height: 10px;
    background-color: rgba(0, 0, 0, 0.05);
    border-radius: 10px;
    margin: 1.5rem auto;
    overflow: hidden;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.1);
}

.loading-bar {
    width: 100%;
    height: 10px;
    border-radius: 10px;
    overflow: hidden;
}

.loading-progress {
    height: 100%;
    width: 0;
    background: linear-gradient(135deg, #3a7bd5, #00d2ff);
    transition: width 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.loading-progress::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, 
        rgba(255, 255, 255, 0.1),
        rgba(255, 255, 255, 0.2),
        rgba(255, 255, 255, 0.1));
    animation: shimmer 1.5s infinite;
    transform: skewX(-20deg);
}

@keyframes shimmer {
    0% { transform: translateX(-150%) skewX(-20deg); }
    100% { transform: translateX(150%) skewX(-20deg); }
}

.loading-tips {
    font-size: 0.95rem;
    color: #777;
    margin-top: 1.2rem;
    opacity: 0.9;
    font-style: italic;
    min-height: 1.5em;
    transition: opacity 0.3s ease;
}

.loading-tips.fade-in {
    animation: tipFadeIn 0.6s ease forwards;
}

@keyframes tipFadeIn {
    0% { opacity: 0; transform: translateY(10px); }
    100% { opacity: 0.9; transform: translateY(0); }
}

/* 主容器 */
.main-container {
    max-width: 100%;
    width: 100%;
    height: 100vh;
    margin: 0;
    padding: 0;
    opacity: 0;
    transition: opacity 1s ease-in;
    overflow: hidden;
    position: absolute;
    top: 0;
    left: 0;
}

/* 头部 */
header {
    text-align: center;
    padding: 2rem 1rem;
    background: linear-gradient(135deg, #1e5799 0%, #2989d8 50%, #207cca 51%, #7db9e8 100%);
    color: white;
    position: relative;
    overflow: hidden;
    margin-top: 0;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 2;
}

.subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    position: relative;
    z-index: 2;
}

.header-decoration {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50px;
    z-index: 1;
}

.mountain-silhouette {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 100" preserveAspectRatio="none"><path d="M0,0 L0,100 L1000,100 L1000,0 Z" fill="rgba(0,0,0,0.1)"></path><path d="M0,100 L250,50 L500,90 L750,30 L1000,100 Z" fill="rgba(0,0,0,0.2)"></path></svg>');
    background-size: 100% 100%;
}

/* 山脉地图容器 */
.mountain-scroll-container {
    width: 100%;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    position: absolute;
    top: 0;
    left: 0;
    height: 100vh;
    scroll-behavior: smooth;
    overscroll-behavior: contain;
    touch-action: pan-y;
    bottom: 0;
    padding: 0;
    will-change: transform;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    backface-visibility: hidden;
}

.mountain-map {
    position: relative;
    width: 100%;
    transform-origin: top center;
    overflow: visible;
    margin-top: 0;
    will-change: transform;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    backface-visibility: hidden;
}

.mountain-background {
    width: 100%;
    height: auto;
    display: block;
    max-width: 100%;
}

/* 山峰图片样式 */
.mountain-image {
    position: absolute;
    transform: translate(-50%, -50%);
    z-index: 10;
    pointer-events: auto;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mountain-image-element {
    width: auto;
    height: auto;
    max-width: none;
    max-height: none;
    object-fit: none;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
    opacity: 0.85;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center center;
    animation: breathe 3s ease-in-out infinite;
}

@keyframes breathe {
    0% {
        opacity: 0.85;
        filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
    }
    50% {
        opacity: 1;
        filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.3));
    }
    100% {
        opacity: 0.85;
        filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
    }
}

/* 山峰图片悬停和点击效果 */
.mountain-image:hover .mountain-image-element {
    animation: breathe 1.5s ease-in-out infinite;
}

/* 当点击激活时保持效果 */
.mountain-image.active .mountain-image-element {
    animation: breathe 1s ease-in-out infinite;
}

/* 山峰交互点 */
.mountain-point {
    position: absolute;
    cursor: pointer;
    transform: translate(-50%, -50%);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
}

.point-marker {
    width: 20px;
    height: 20px;
    background-color: rgba(255, 255, 255, 0.9);
    border: 2px solid #e74c3c;
    border-radius: 50%;
    position: relative;
    z-index: 2;
    box-shadow: 0 0 0 rgba(231, 76, 60, 0.4);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: pointBreathe 3s ease-in-out infinite;
}

@keyframes pointBreathe {
    0% {
        box-shadow: 0 0 0 rgba(231, 76, 60, 0.4);
    }
    50% {
        box-shadow: 0 0 10px rgba(231, 76, 60, 0.6);
    }
    100% {
        box-shadow: 0 0 0 rgba(231, 76, 60, 0.4);
    }
}

.mountain-point:hover .point-marker {
    animation: pointBreathe 1.5s ease-in-out infinite;
}

.point-name {
    position: absolute;
    top: 25px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    white-space: nowrap;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: top center;
}

.mountain-point:hover .point-name {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* 动态点容器样式 */
.dynamic-points {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 5;
}

.dynamic-points .mountain-point {
    pointer-events: auto;
}

/* 山峰详情弹窗 */
.mountain-detail {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.75);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    will-change: opacity, visibility;
    pointer-events: none;
}

.detail-container {
    width: 92%;
    max-width: 600px;
    max-height: 85vh;
    background-color: white;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    transform: translateY(20px) scale(0.98);
    transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.1);
    will-change: transform;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    backface-visibility: hidden;
}

.mountain-detail.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.mountain-detail.active .detail-container {
    transform: translateY(0) scale(1);
}

.close-btn {
    position: absolute;
    top: 12px;
    right: 15px;
    font-size: 1.8rem;
    color: #333;
    cursor: pointer;
    z-index: 10;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.05);
    border-radius: 50%;
    transition: all 0.2s ease;
}

.close-btn:hover {
    background-color: rgba(0, 0, 0, 0.1);
    transform: rotate(90deg);
}

.detail-content {
    padding: 20px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    max-height: 80vh;
    overscroll-behavior: contain;
    touch-action: pan-y;
}

.detail-header {
    text-align: center;
    margin-bottom: 22px;
    position: relative;
}

.detail-header h2 {
    font-size: 1.8rem;
    color: #2c3e50;
    margin-bottom: 8px;
    font-weight: 600;
}

.detail-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 18px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.detail-description {
    margin-bottom: 18px;
    line-height: 1.7;
    color: #444;
}

.detail-history {
    background-color: #f8f9fa;
    padding: 18px;
    border-radius: 12px;
    margin-bottom: 18px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border-left: 4px solid #3498db;
}

.detail-history h3 {
    margin-bottom: 10px;
    color: #2980b9;
}

.detail-attractions {
    margin-bottom: 20px;
}

.detail-attractions h3 {
    margin-bottom: 12px;
    color: #2980b9;
}

.attraction-item {
    margin-bottom: 12px;
    padding: 12px 15px;
    border-left: 3px solid #3498db;
    background-color: #f8f9fa;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.attraction-item:hover {
    transform: translateX(3px);
    background-color: #edf2f7;
}

.detail-footer {
    margin-top: 22px;
    text-align: center;
}

.explore-btn {
    background: linear-gradient(135deg, #3a7bd5, #00d2ff);
    color: white;
    border: none;
    padding: 12px 28px;
    border-radius: 30px;
    font-weight: 500;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 123, 255, 0.3);
    transition: all 0.3s ease;
}

.explore-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 123, 255, 0.4);
}

.detail-actions {
    display: flex;
    justify-content: space-around;
    padding: 15px;
    border-top: 1px solid #eee;
    background-color: #f8f9fa;
}

/* 响应式设计 */
/* 大屏设备 (lg - PC端 > 1200px) */
@media (min-width: 1200px) {
    .mountain-scroll-container {
        height: 100vh;
        padding: 0;
    }
    .mountain-point .point-marker {
        width: 24px;
        height: 24px;
    }
    .mountain-image-element {
        width: auto;
        height: auto;
        max-width: none;
        max-height: none;
        transform: scale(1.2);
    }
    .point-name {
        font-size: 1rem;
        padding: 4px 10px;
    }
    .detail-container {
        max-width: 800px;
        max-height: 85vh;
    }
    .detail-header h2 {
        font-size: 2.2rem;
    }
    .detail-image {
        height: 400px;
    }
}

/* 中等设备 (md - 平板 992px - 1199px) */
@media (min-width: 992px) and (max-width: 1199px) {
    .mountain-scroll-container {
        height: 100vh;
        padding: 0;
    }
    .mountain-point .point-marker {
        width: 22px;
        height: 22px;
    }
    .mountain-image-element {
        width: auto;
        height: auto;
        max-width: none;
        max-height: none;
        transform: scale(1);
    }
    .point-name {
        font-size: 0.95rem;
        padding: 3px 8px;
    }
    .detail-container {
        width: 90%;
        max-width: 600px;
        max-height: 80vh;
    }
    .detail-header h2 {
        font-size: 2rem;
    }
    .detail-image {
        height: 350px;
    }
    header h1 {
        font-size: 2.5rem;
    }
    .subtitle {
        font-size: 1.1rem;
    }
}

/* 小屏设备 (sm - 768px - 991px) */
@media (min-width: 768px) and (max-width: 991px) {
    .mountain-scroll-container {
        height: 100vh;
        padding: 0;
    }
    .mountain-point .point-marker {
        width: 20px;
        height: 20px;
    }
    .mountain-image-element {
        width: auto;
        height: auto;
        max-width: none;
        max-height: none;
        transform: scale(0.8);
    }
    .point-name {
        font-size: 0.9rem;
        padding: 3px 8px;
    }
    .detail-container {
        width: 90%;
        max-width: 600px;
        max-height: 80vh;
    }
    .detail-header h2 {
        font-size: 2rem;
    }
    .detail-image {
        height: 350px;
    }
    header h1 {
        font-size: 2.5rem;
    }
    .subtitle {
        font-size: 1.1rem;
    }
}

/* 手机设备 (xs - < 768px) */
@media (max-width: 767px) {
    .mountain-scroll-container {
        height: 100vh;
        padding: 0;
        -webkit-overflow-scrolling: touch;
        touch-action: pan-y;
        overscroll-behavior: contain;
        scroll-behavior: auto;
    }
    
    .mountain-map {
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
        backface-visibility: hidden;
        will-change: transform;
    }
    
    .mountain-background {
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
        backface-visibility: hidden;
        will-change: transform;
    }
    
    .mountain-point .point-marker {
        width: 18px;
        height: 18px;
    }
    .mountain-image-element {
        width: auto;
        height: auto;
        max-width: none;
        max-height: none;
        transform: scale(0.6);
    }
    .point-name {
        font-size: 0.8rem;
        padding: 3px 6px;
    }
    .detail-container {
        width: 92%;
        max-width: none;
        max-height: 90vh;
        margin: 30px auto;
        height: calc(100% - 60px);
        border-radius: 15px;
        overflow: hidden;
    }
    .detail-header h2 {
        font-size: 1.6rem;
        margin-bottom: 3px;
    }
    .detail-image {
        height: 180px;
        margin-bottom: 12px;
    }
    .detail-description {
        margin-bottom: 12px;
        font-size: 0.95rem;
    }
    .attraction-item {
        margin-bottom: 8px;
        padding-left: 12px;
        font-size: 0.95rem;
    }
    .action-btn {
        padding: 6px 12px;
        font-size: 0.9rem;
    }
    header h1 {
        font-size: 1.8rem;
    }
    .subtitle {
        font-size: 1rem;
    }
    .loading-content h1 {
        font-size: 1.8rem;
    }
    .loading-bar {
        width: 180px;
    }
    .loading-tips {
        font-size: 0.8rem;
    }
    .close-btn {
        font-size: 1.6rem;
    }
    .detail-content {
        padding: 15px;
    }
    .intro-title {
        font-size: 2.8em;
        letter-spacing: 2px;
    }
    
    .intro-text {
        font-size: 1.1em;
        padding: 15px;
        max-width: 90%;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.8rem;
    }
    .loading-content h1 {
        font-size: 2rem;
    }
    .loading-bar {
        width: 200px;
    }
}

/* 茶艺大师游戏 */
.tea-game-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.75);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s;
    opacity: 0;
}

.tea-game-container {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.tea-game-header {
    background-color: #388E3C;
    color: white;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tea-game-header h3 {
    margin: 0;
    font-size: 1.2rem;
}

.tea-game-close {
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
}

.tea-game-content {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}

.tea-game-stage {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.tea-game-stage-title {
    font-size: 1.1rem;
    font-weight: bold;
    color: #388E3C;
    text-align: center;
}

.tea-game-instructions {
    background-color: #f5f5f5;
    padding: 10px;
    border-radius: 5px;
    font-size: 0.9rem;
    line-height: 1.4;
}

.tea-game-footer {
    margin-top: 15px;
    display: flex;
    justify-content: center;
}

.tea-game-footer button {
    background-color: #388E3C;
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
}

.tea-game-footer button:hover {
    background-color: #2E7D32;
}

.tea-game-timer, .tea-game-score, .tea-game-picked {
    background-color: #f0f8f0;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.9rem;
    display: inline-block;
}

/* 采茶游戏 */
.tea-picking-area {
    background-color: #e8f5e9;
    height: 300px;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid #81c784;
}

.tea-leaf {
    position: absolute;
    width: 30px;
    height: 30px;
    background: url('../images/game/tea-leaf.png') center center / contain no-repeat;
    cursor: pointer;
    transition: transform 0.3s, opacity 0.3s;
    animation: popIn 0.5s ease-out;
}

.tea-leaf.premium {
    background: url('../images/game/premium-tea-leaf.png') center center / contain no-repeat;
}

.tea-leaf:hover {
    transform: scale(1.1);
}

.tea-game-result {
    background-color: #f5f5f5;
    padding: 15px;
    border-radius: 5px;
    font-size: 0.9rem;
    line-height: 1.4;
    text-align: center;
}

/* 动画效果 */
.tea-fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes popIn {
    0% { transform: scale(0.5); opacity: 0; }
    70% { transform: scale(1.1); }
    100% { transform: scale(1); opacity: 1; }
}

/* 媒体查询适配移动端 */
@media (max-width: 768px) {
    .tea-game-container {
        width: 95%;
    }
    
    .tea-picking-area {
        height: 200px;
    }
}

/* 宝箱样式 */
.collectible-item-map {
    position: absolute;
    width: 60px;  /* 增大宝箱尺寸 */
    height: 60px; /* 增大宝箱尺寸 */
    cursor: pointer;
    z-index: 5;
    transform-origin: center bottom;
    animation: float 3s ease-in-out infinite;
    transition: transform 0.3s ease;
}

.collectible-item-map:hover {
    transform: scale(1.2);
}

.collectible-icon {
    width: 100%;
    height: 100%;
    object-fit: contain;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.collectible-glow {
    position: absolute;
    width: 120%;
    height: 120%;
    left: -10%;
    top: -10%;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.6) 0%, rgba(255, 215, 0, 0) 70%);
    border-radius: 50%;
    z-index: 1;
    animation: pulse 2s ease-in-out infinite;
    pointer-events: none;
}

@keyframes pulse {
    0% { transform: scale(0.8); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
    100% { transform: scale(0.8); opacity: 0.5; }
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

.collectible-item-map.collected {
    animation: collect 1s forwards;
}

@keyframes collect {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.5) translateY(-20px); opacity: 0.8; }
    100% { transform: scale(0) translateY(-50px); opacity: 0; }
}

/* 相册卡片样式 */
.photo-gallery-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.photo-gallery-container {
    width: 90%;
    max-width: 1000px;
    background-color: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.3);
    position: relative;
}

.photo-gallery-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: linear-gradient(135deg, #43a047, #2e7d32);
    color: white;
}

.photo-gallery-header h3 {
    margin: 0;
    font-size: 22px;
    font-weight: 600;
}

.photo-gallery-close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    transition: background-color 0.2s;
}

.photo-gallery-close-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.photo-slider {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
}

.photo-slider-inner {
    display: flex;
    transition: transform 0.4s ease;
    height: 100%;
}

.photo-slide {
    min-width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f5f5f5;
}

.photo-slide img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.photo-nav-buttons {
    position: absolute;
    top: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.photo-nav-button {
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    pointer-events: auto;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: background-color 0.2s, transform 0.2s;
}

.photo-nav-button:hover {
    background-color: rgba(255, 255, 255, 0.95);
    transform: scale(1.1);
}

.photo-nav-button.prev:before {
    content: "";
    display: block;
    width: 15px;
    height: 15px;
    border-left: 3px solid #333;
    border-bottom: 3px solid #333;
    transform: rotate(45deg);
    margin-left: 5px;
}

.photo-nav-button.next:before {
    content: "";
    display: block;
    width: 15px;
    height: 15px;
    border-right: 3px solid #333;
    border-top: 3px solid #333;
    transform: rotate(45deg);
    margin-right: 5px;
}

.photo-counter {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 14px;
    z-index: 10;
}

.photo-dots {
    display: flex;
    justify-content: center;
    padding: 15px 0;
    background-color: #fff;
}

.photo-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #ccc;
    margin: 0 5px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
}

.photo-dot.active {
    background-color: #43a047;
    transform: scale(1.2);
}

@media (max-width: 768px) {
    .photo-slider {
        height: 350px;
    }
    
    .photo-nav-button {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 480px) {
    .photo-slider {
        height: 250px;
    }
    
    .photo-gallery-header h3 {
        font-size: 18px;
    }
    
    .photo-nav-button {
        width: 35px;
        height: 35px;
    }
}

/* 地图元素样式 */
.map-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 8;
}

.map-element {
    position: absolute;
    width: auto;
    height: auto;
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: auto;
    transform: translate(-50%, -50%);
}

.map-element img {
    width: auto;
    height: auto;
    max-width: none;
    max-height: none;
    object-fit: none;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
    opacity: 0.85;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center center;
    animation: breathe 3s ease-in-out infinite;
}

.map-element:hover img {
    animation: breathe 1.5s ease-in-out infinite;
}

/* 响应式设计 */
/* 大屏设备 (lg - PC端 > 1200px) */
@media (min-width: 1200px) {
    .map-element img {
        transform: scale(1.2);
    }
}

/* 中等设备 (md - 平板 992px - 1199px) */
@media (min-width: 992px) and (max-width: 1199px) {
    .map-element img {
        transform: scale(1);
    }
}

/* 小屏设备 (sm - 768px - 991px) */
@media (min-width: 768px) and (max-width: 991px) {
    .map-element img {
        transform: scale(0.8);
    }
}

/* 手机设备 (xs - < 768px) */
@media (max-width: 767px) {
    .map-element img {
        transform: scale(0.6);
    }
}

.map-element-name {
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    white-space: nowrap;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
}

.map-element:hover .map-element-name {
    opacity: 1;
    transform: translateX(-50%) translateY(-5px);
}

.map-element-popup {
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    white-space: nowrap;
    z-index: 1000;
    pointer-events: none;
    animation: fadeIn 0.3s ease-out;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.map-element-popup::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid rgba(0, 0, 0, 0.8);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}
/* 飞鸟动画样式 */
.map-element#bird {
    animation: flyIn 2s ease-out forwards;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.2);
}

@keyframes flyIn {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.2);
        left: -10%;
        top: 20%;
    }
    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
        left: 11.39%;
        top: 10%;
    }
}

/* 确保飞鸟图片在动画过程中保持正确的方向 */
.map-element#bird img {
    transform: rotate(-15deg);
}

/* 每日一景样式 */
/* 这里之前是每日一景的CSS样式，已移除 */
