* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: #000;
}

/* 预加载器 */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: black;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.preloader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 5px solid rgba(255, 255, 255, 0.3);
    border-top: 5px solid #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loading-text {
    color: white;
    font-size: 16px;
    font-family: Arial, sans-serif;
}

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

/* 首页样式 */
.home-page {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    transform: rotate(90deg);
    transform-origin: center center;
}

.home-bg-img {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vh;
    height: 100vw;
    object-fit: cover;
    z-index: 1;
    transform: translate(-50%, -50%);
}

.jump-btn {
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(90deg) scaleX(-1) scaleY(-1);
    cursor: pointer;
    z-index: 11;
    animation: pulse 2s infinite ease-in-out;
    -webkit-tap-highlight-color: transparent;
    outline: none;
    user-select: none;
    -webkit-user-select: none;
}

.jump-btn img {
    width: 460px;
    height: auto;
    transform: rotate(90deg);
    -webkit-tap-highlight-color: transparent;
    outline: none;
    user-select: none;
    -webkit-user-select: none;
}

@keyframes pulse {
    0% { transform: translate(-50%, -50%) rotate(90deg) scaleX(-1) scaleY(-1) scale(1); }
    50% { transform: translate(-50%, -50%) rotate(90deg) scaleX(-1) scaleY(-1) scale(1.05); }
    100% { transform: translate(-50%, -50%) rotate(90deg) scaleX(-1) scaleY(-1) scale(1); }
}

/* 内容页样式 - 强制横屏 */
.content-page {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vh;
    height: 100vw;
    transform: rotate(90deg) translateY(-100%);
    transform-origin: top left;
    overflow: hidden;
    background-color: #000;
    z-index: 1;
    display: none;
}

@media screen and (min-aspect-ratio: 1/1) {
    .content-page {
        width: 100%;
        height: 100vh;
        transform: none;
        transform-origin: center center;
    }
}

.content-page.active {
    display: block;
    z-index: 20;
}

.home-page.hidden {
    display: none;
}

/* 滚动容器 */
.scroll-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow-x: scroll;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    touch-action: none;
    cursor: grab;
    user-select: none;
}

.scroll-container::-webkit-scrollbar {
    display: none;
}

.slide {
    position: relative;
    width: auto;
    height: 100%;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    overflow: hidden;
}

.slide img:first-child {
    height: 100%;
    width: auto;
    display: block;
}

.journey-button {
    position: absolute;
    right: 5%;
    top: 40%;
    transform: translateY(-50%);
    height: auto;
    max-height: 52%;
    width: auto;
    cursor: pointer;
    z-index: 10;
    transition: transform 0.3s ease;
    -webkit-tap-highlight-color: transparent;
    -webkit-user-select: none;
    user-select: none;
    opacity: 0;
}

.journey-button.loaded {
    opacity: 1;
}

/* 苹果手机适配 */
@media screen and (max-width: 480px) and (-webkit-device-pixel-ratio: 2),
       screen and (max-width: 480px) and (-webkit-device-pixel-ratio: 3) {
    .journey-button {
        top: 35%; /* 往上提高一些 */
    }
}

/* 视频覆盖层 */
.video-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vh;
    height: 100vw;
    transform: rotate(90deg) translateY(-100%);
    transform-origin: top left;
    background-color: #000;
    z-index: 100;
    display: none;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

@media screen and (min-aspect-ratio: 1/1) {
    .video-overlay {
        width: 100%;
        height: 100vh;
        transform: none;
        transform-origin: center center;
    }
}

.video-overlay.active {
    display: flex;
}

.video-overlay video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 返回按钮 */
.back-button {
    position: absolute;
    top: 5%;
    right: 5%;
    z-index: 101;
    cursor: pointer;
    width: 50px;
    height: 50px;
    display: none;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    -webkit-tap-highlight-color: transparent;
    outline: none;
    user-select: none;
    -webkit-user-select: none;
}

.back-button img {
    width: 60%;
    height: 60%;
    display: block;
    -webkit-tap-highlight-color: transparent;
    outline: none;
    user-select: none;
    -webkit-user-select: none;
}

/* 下一段按钮 */
.next-button {
    position: absolute;
    top: 5%;
    right: 5%;
    z-index: 101;
    cursor: pointer;
    width: 50px;
    height: 50px;
    display: none;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    -webkit-tap-highlight-color: transparent;
    outline: none;
    user-select: none;
    -webkit-user-select: none;
}

.next-button img {
    width: 60%;
    height: 60%;
    display: block;
    -webkit-tap-highlight-color: transparent;
    outline: none;
    user-select: none;
    -webkit-user-select: none;
}

/* 多选页面 */
.choice-page {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vh;
    height: 100vw;
    transform: rotate(90deg) translateY(-100%);
    transform-origin: top left;
    background-color: #000;
    z-index: 200;
    display: none;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

@media screen and (min-aspect-ratio: 1/1) {
    .choice-page {
        width: 100%;
        height: 100vh;
        transform: none;
        transform-origin: center center;
    }
}

.choice-page.active {
    display: flex;
}

.svg-container {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.svg-container svg {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
}

/* 热区按钮样式 - 可在CSS中调整坐标 */
.hotspot {
    fill: rgba(255, 255, 255, 0.1);
    stroke: rgba(255, 255, 255, 0.5);
    stroke-width: 1;
    cursor: pointer;
    transition: all 0.3s ease;
    animation: hotspotBlink 2s infinite ease-in-out;
    -webkit-tap-highlight-color: transparent;
}

.hotspot:hover {
    fill: rgba(255, 255, 255, 0.2);
    stroke: rgba(255, 255, 255, 0.5);
}

.hotspot.active {
    fill: rgba(255, 215, 0, 0.3);
    stroke: rgba(255, 215, 0, 1);
    animation: none;
}

@keyframes hotspotBlink {
    0%, 100% {
        fill: rgba(255, 255, 255, 0.2);
        stroke: rgba(255, 255, 255, 0.7);
    }
    50% {
        fill: rgba(255, 255, 255, 0.5);
        stroke: rgba(255, 255, 255, 0.5);
    }
}

/* 热区按钮坐标 - 可在CSS中自定义 */
#bijie { cx: 27%; cy: 33%; r: 5%; animation-delay: 0s; }
#tongren { cx: 81%; cy: 25.5%; r: 5%; animation-delay: 0.2s; }
#zunyi { cx: 54.5%; cy: 26%; r: 5%; animation-delay: 0.4s; }
#liupanshui { cx: 22.5%; cy: 48%; r: 5%; animation-delay: 0.6s; }
#anshun { cx: 37%; cy: 49%; r: 5%; animation-delay: 0.8s; }
#qiannan { cx: 58.5%; cy: 50.5%; r: 5%; animation-delay: 1s; }
#qianxinan { cx: 20.5%; cy: 70%; r: 5%; animation-delay: 1.2s; }
#qiandongnan { cx: 63%; cy: 37.5%; r: 5%; animation-delay: 1.4s; }
#guiyang { cx: 48.7%; cy: 45.5%; r: 5%; animation-delay: 1.6s; }

/* 点击我赏花按钮 */
.flower-btn {
    position: fixed;
    right: 5%;
    bottom: 15%;
    z-index: 201;
    cursor: pointer;
    animation: flowerPulse 2s infinite ease-in-out;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.5));
    -webkit-tap-highlight-color: transparent;
    outline: none;
    user-select: none;
    -webkit-user-select: none;
    display: none;
}

.choice-page.active .flower-btn {
    display: block;
}

.flower-btn img {
    height: auto;
    max-height: 50px;
    width: auto;
    display: block;
    -webkit-tap-highlight-color: transparent;
    outline: none;
    user-select: none;
    -webkit-user-select: none;
}

@keyframes flowerPulse {
    0% { 
        transform: scale(1);
        filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.5));
    }
    50% { 
        transform: scale(1.08);
        filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.7));
    }
    100% { 
        transform: scale(1);
        filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.5));
    }
}
