/* 基础样式 */
* { margin: 0; padding: 0; box-sizing: border-box; }
body, html { width: 100%; height: 100%; overflow: hidden; }

/* 选择页面 */
.select-page {
    width: 100vw; 
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: #f5f5f5;
    background-image: url('../template/background.jpg'); 
    background-size: cover;
    background-position: center;
    position: relative;
}

/* 国风毛笔字标题样式 */
.chinese-title {
    font-family: "Ma Shan Zheng", "ZCOOL XiaoWei", "SimSun", serif;
    font-size: 68px;
    color: #800000; /* 暗红色（符合古建筑色调） */
    text-shadow: 3px 3px 5px rgba(0, 0, 0, 0.3);
    letter-spacing: 10px; /* 增加字间距增强古风感 */
    padding: 20px 40px;
    margin-bottom: 60px;
    position: absolute;
    /* 定位在中间竖线的三分之一位置（从左向右1/3处） */
    left: 50%;
    top: 20%; /* 垂直方向稍偏上 */
    transform: translateX(-50%); /* 水平居中对齐到1/3线 */
    /* 增加古风装饰 */
    border-bottom: 2px solid #8B4513; /* 棕色下划线 */
}

.select-buttons {
    display: flex;
    gap: 30px;
    position: absolute;
    width: 100%;
    padding: 0 50px;
    box-sizing: border-box;
}
.select-btn {
    padding: 15px 40px;
    font-size: 18px;
    cursor: pointer;
    background-color: rgba(255, 240, 220, 0.9);
    color: #8B4513; /* 棕色文字（符合古建筑色调） */
    border: 2px solid #8B4513; /* 棕色边框 */
    border-radius: 15px;
    font-family: "SimSun", serif;
    box-shadow: 0 4px 0 #8B4513; /* 棕色阴影 */
    animation: float 3s ease-in-out infinite;
    position: absolute;
}
/* 左侧按钮 */
.select-btn[data-type="new"] {
    left: 300px;
    top: 50%;
    transform: translateY(-50%);
}
/* 右侧按钮 */
.select-btn[data-type="old"] {
    right: 300px;
    top: 50%;
    transform: translateY(-50%);
}
.select-btn:hover {
    background: #A0522D; /* 深棕色（ hover 时加深） */
    color: white;
    animation: floatHover 0.5s ease-in-out;
    transform: translateY(-50%) scale(1.05);
}
.select-btn:active {
    transform: translateY(-50%) scale(0.95);
    box-shadow: 0 2px 0 #8B4513;
}
/* 浮动动画 */
@keyframes float {
    0% { transform: translateY(-50%) translateY(0px); }
    50% { transform: translateY(-50%) translateY(-10px); }
    100% { transform: translateY(-50%) translateY(0px); }
}
@keyframes floatHover {
    0% { transform: translateY(-50%) scale(1); }
    50% { transform: translateY(-50%) scale(1.1) translateY(-15px); }
    100% { transform: translateY(-50%) scale(1.05); }
}

/* 全景展示页（默认隐藏） */
.pano-page {
    width: 100vw;
    height: 100vh;
    display: none; /* 初始隐藏 */
    position: relative;
}
#pano-container {
    width: 100%;
    height: 100%;
}
/* 退出按钮 */
.exit-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 10px 20px;
    background: rgba(139, 69, 19, 0.8); /* 棕色半透明背景 */
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    z-index: 100;
}
/* 加载动画样式 */
.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.8);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 200;
    display: none;
}
.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #eee;
    border-top: 5px solid #8B4513; /* 棕色加载动画 */
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.select-btn {
    /* 原有样式保持不变 */
    pointer-events: auto;
}
.select-btn.sound-played {
    pointer-events: none; /* 临时禁用事件，避免重复触发 */
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}