/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    -webkit-focus-ring-color: transparent;
    outline: none;
}

body {
    font-family: 'Microsoft YaHei', 'PingFang SC', sans-serif;
    overflow-x: hidden;
    background-color: #f5f5f5;
    color: #333;
    position: fixed;
    width: 100%;
    height: 100%;
    touch-action: none;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
    /* 限制最大宽度，确保在大屏幕上与移动设备显示一致 */
    max-width: 390px;
    margin: 0 auto;
    max-height: 850px;
    /* 在大屏幕上居中显示 */
    left: 50%;
    top: 50%;
    transform: translateX(-50%) translateY(-50%);
}

/* 场景通用样式 */
.scene {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.hidden {
    display: none !important;
}

/* 海报场景样式 */
.poster-scene {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url(https://www.chinanews.com.cn/fileftp/2025/12/2025-12-08/U947P4T47D55853F24531DT20251209100610.jpg);
    background-size: cover;
    background-position: center;
    z-index: 200;
    display: none;
}

/* 照片框元素 */
.photo-frame {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 320px;
    height: 534px;
    background-image: url(https://www.chinanews.com.cn/fileftp/2025/12/2025-12-08/U947P4T47D55853F29949DT20251209100923.png);
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 201;
}

/* 外卖员元素（眨眼动画） */
.delivery-person-blink {
    position: absolute;
    top: 56%;
    left: 32%;
    transform: translate(-50%, -50%);
    width: 266px;
    height: 421px;
    background-image: url(https://www.chinanews.com.cn/fileftp/2025/12/2025-12-08/U947P4T47D55853F29951DT20251209100923.png);
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 202;
}

/* 黄色装饰线和文案 */
.text-decoration {
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 187px;
    background-image: url(https://www.chinanews.com.cn/fileftp/2025/12/2025-12-08/U947P4T47D55853F29948DT20251209100923.png);
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1s ease;
    z-index: 203;
}

/* 贴纸元素 */
.sticker {
    position: absolute;
    bottom: 15%;
    left: 33%;
    transform: translate(-50%, 0);
    width: 70%;
    height: 111px;
    background-image: url('https://www.chinanews.com.cn/fileftp/2025/12/2025-12-01/U947P4T47D55837F24534DT20251201182016.png');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1s ease;
    z-index: 204;
}


/* 互动区域 */
.click-area {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 20%;
    cursor: pointer;
    z-index: 206;
}

/* 开场动画 */
#opening {
    position: relative;
    overflow: hidden;
}

/* 四季流转背景 */
.seasons-carousel {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
}

.season-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 2s ease-in-out;
}

.season-slide.active {
    opacity: 1;
}

.autumn-slide {
    background: url(https://www.chinanews.com.cn/fileftp/2025/12/2025-12-09/U947P4T47D55855F979DT20251209111312.jpg) no-repeat center center;
    background-size: 100% 100%;
}

.winter-slide {
    background: url(https://www.chinanews.com.cn/fileftp/2025/12/2025-12-09/U947P4T47D55855F980DT20251209111312.jpg) no-repeat center center;
    background-size: 100% 100%;
}

.spring-slide {
    background: url(https://www.chinanews.com.cn/fileftp/2025/12/2025-12-09/U947P4T47D55855F977DT20251209111312.jpg) no-repeat center center;
    background-size: 100% 100%;
}

.summer-slide {
    background: url(https://www.chinanews.com.cn/fileftp/2025/12/2025-12-09/U947P4T47D55855F978DT20251209111312.jpg) no-repeat center center;
    background-size: 100% 100%;
}

#opening .city-scene {
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 2;
    overflow: hidden;
}



.title-container {
    position: absolute;
    width: 100%;
    text-align: center;
    top: 25%;
    z-index: 2;
}

.title-container h1 {
    font-size: 2.5rem;
    color: #0066cc;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    letter-spacing: 0.2rem;
    writing-mode: vertical-rl;
    margin: 0 auto;
}


.glowing {
    animation: glow 2s infinite alternate;
}

@keyframes glow {
    from {
        box-shadow: 0 0 5px #fff, 0 0 10px #fff, 0 0 15px #0066cc, 0 0 20px #0066cc;
    }
    to {
        box-shadow: 0 0 10px #fff, 0 0 15px #0066cc, 0 0 20px #0066cc, 0 0 25px #0066cc;
    }
}

.tagline {
    position: absolute;
    width: 80%;
    text-align: center;
    bottom: 15%;
    left: 10%;
    font-size: 1.2rem;
    color: #333;
    z-index: 3;
}

/* 标题律动效果 */
.pulsing-title {
    animation: pulse 3s infinite ease-in-out;
}
.pulsing-title img {
    width: 250px;
    height: auto;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* 加载进度条 */
.loading-progress {
    position: absolute;
    width: 40%;
    bottom: 6%;
    left: 30%;
    z-index: 4;
}

.progress-container {
    position: relative;
    width: 100%;
    height: 44px;
    border-radius: 5px;
    overflow: hidden;
}

.opening-progress-bar {
    position: absolute;
    height: 10px;
    bottom: 0;
    width: 0;
    background-color: #0066cc;
    border-radius: 5px;
    animation: loadProgress 8s forwards;
}

@keyframes loadProgress {
    0% {
        width: 0;
        background-color: #fff;
    }
    25% {
        width: 25%;
        background-color: #e8db2c; /* 秋季颜色 */
    }
    50% {
        width: 50%;
        background-color: #cce7ff; /* 冬季颜色 */
    }
    75% {
        width: 75%;
        background-color: #ee878b; /* 春季颜色 */
    }
    100% {
        width: 100%;
        background-color: #d02c00; /* 夏季颜色 */
    }
}

.progress-text {
    position: absolute;
    top: 0px;
    left: 0;
    width: 100%;
    text-align: center;
    color: #d02c00;
    font-size: 1.2rem;
    font-weight: bold;
    z-index: 10;
}

.progress-text span {
    opacity: 0;
    display: inline-block;
}
.progress-text span img {
    width: 20px;
    height: auto;
}

.char-1 {
    animation: fadeInChar 1s 1s forwards;
}

.char-2 {
    animation: fadeInChar 1s 2s forwards;
}

.char-3 {
    animation: fadeInChar 1s 3s forwards;
}

.char-4 {
    animation: fadeInChar 1s 4s forwards;
}

.char-5 {
    animation: fadeInChar 1s 5s forwards;
}

@keyframes fadeInChar {
    from {
        opacity: 0;
        transform: translateY(2px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 消息推送 */
.notification {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 320px;
    padding: 20px;
    display: flex;
    align-items: flex-start;
    z-index: 100;
    animation: popupNotification 0.5s 5s forwards;
}
.notification img {
    width: 100%;
    height: auto;
}

@keyframes popupNotification {
    to {
        transform: translate(-50%, -50%) scale(1);
    }
}



.swipe-hint {
    position: absolute;
    bottom: 5%;
    left: 50%;
    width: 100%;
    text-align: center;
    animation: bounce 2s infinite;
    z-index: 4;
}
.swipe-hint img {
    width: 150px;
    height: auto;
}



@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* 场景背景 */
.scene-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
}

.spring-bg {
    background: url(https://www.chinanews.com.cn/fileftp/2025/12/2025-12-09/U947P4T47D55856F29952DT20251210134511.jpg)no-repeat top center;
    background-size: 100% 100%;
}

.summer-bg {
    background: linear-gradient(to bottom, #ffd89b 0%, #ffb347 100%);
}

.autumn-bg {
    background: url(https://www.chinanews.com.cn/fileftp/2025/12/2025-12-08/U947P4T47D55852F978DT20251208165920.jpg) no-repeat top center;
    background-size: 100% 100%;
}

.winter-bg {
    background: linear-gradient(to bottom, #e6f2ff 0%, #cce7ff 100%);
}

/* 下一季提示 */
.poster-next-hint {
    position: absolute;
    bottom: -1.3%;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 333px;
    background-image: url('https://www.chinanews.com.cn/fileftp/2025/11/2025-11-29/U947P4T47D55832F29950DT20251129093027.png');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    animation: fadeIn 1s ease-in-out forwards,arrowMove 2s ease-in-out infinite;
    animation-delay: 1.5s;
    cursor: pointer;
    z-index: 205;
}
/* 淡入动画 */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}
/* 向下箭头移动动画 */
@keyframes arrowMove {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(5px);
    }
}

/* 第一幕：春 */

/* 对话气泡 */
.speech-bubble img {
    width: 100%;
    height: auto;
    opacity: 0;
}

/* 拖动提示 */
.drag-hint {
    position: absolute;
    bottom: 18%;
    right: 0%;
    z-index: 4;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    opacity: 0;
}

.finger-icon {
    width: 170px;
    height: 100px;
    background-image: url('https://www.chinanews.com.cn/fileftp/2025/12/2025-12-02/U947P4T47D55838F24532DT20251202133750.png');
    background-size: contain;
    background-repeat: no-repeat;
    margin-bottom: 10px;
    animation: fingerMove 2s infinite;
}

.hint-text {
    background: url('https://www.chinanews.com.cn/fileftp/2025/12/2025-12-08/U947P4T47D55852F24532DT20251208153400.png') no-repeat center center;
    width: 98px;
    height: 41px;
    background-size: 100% 100%;
}

@keyframes fingerMove {
    0%, 100% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(10px);
    }
}

/* 外卖员热区 */
.drop-zone {
    position: absolute;
    width: 155px;
    height: 368px;
    left: 10%;
    bottom: 12%;
    z-index: 3;
}

.rain-container {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 3;
    overflow: hidden;
}

.rain {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.6)),
        linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.4)),
        linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.3));
    background-size: 2px 100px, 3px 120px, 4px 140px;
    background-position: 10% 0, 30% 0, 60% 0;
    background-repeat: repeat-y;
    animation: rain 0.8s linear infinite;
}

@keyframes rain {
    0% {
        background-position: 10% -100px, 30% -120px, 60% -140px;
    }
    100% {
        background-position: 10% 100vh, 30% 100vh, 60% 100vh;
    }
}

.umbrella-container {
    position: absolute;
    width: 57px;
    height: 171px;
    bottom: 12%;
    right: 23%;
    z-index: 6;
}

.umbrella {
    width: 100%;
    height: 100%;
    background: url(https://www.chinanews.com.cn/fileftp/2025/11/2025-11-27/U947P4T47D55827F29951DT20251128094741.png) no-repeat center center;
    position: relative;
    cursor: grab;
    background-size: 100% 100%;
}

.umbrella-blanket-back {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 80%;
    background: url(https://www.chinanews.com.cn/fileftp/2025/11/2025-11-29/U947P4T47D55832F29952DT20251129143904.png) no-repeat center center;
    background-size: 100% 100%;
}
.umbrella-blanket-front {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 80%;
    background: url(https://www.chinanews.com.cn/fileftp/2025/11/2025-11-29/U947P4T47D55832F29953DT20251129143904.png) no-repeat center center;
    background-size: 100% 100%;
    z-index: 101;
}


/* 第二幕：夏 */


.heat-spot.transformed {
    transform: scale(1.2);
}


/* 第三幕：秋 */

.lunchbox-top {
    width: 80px;
    height: 30px;
    background-color: #9e9e9e;
    border-radius: 5px 5px 0 0;
    position: absolute;
    top: 0;
    transform-origin: bottom left;
    transition: transform 0.5s ease;
}

.lunchbox-bottom {
    width: 80px;
    height: 30px;
    background-color: #757575;
    border-radius: 0 0 5px 5px;
    position: absolute;
    bottom: 0;
}

.heat-progress {
    position: absolute;
    width: 100%;
    bottom: 15%;
    text-align: left;
    z-index: 4;
}

.heating-progress-bar {
    width: 150px;
    height: 10px;
    background-color: #e0e0e0;
    border-radius: 5px;
    margin: 0 auto 10px;
    overflow: hidden;
    position: relative;
}

.heating-progress-bar::after {
    content: '';
    position: absolute;
    width: 0%;
    height: 100%;
    background-color: #91ff2f;
    border-radius: 5px;
    animation: fillProgress 3s forwards;
}

@keyframes fillProgress {
    0% {
        width: 0%;
    }
    100% {
        width: 100%;
    }
}

/* 第四幕：冬 */
.courier {
    position: absolute;
}

.frost-container {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 3;
}

.frost-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.7);
    top: 0;
    left: 0;
    mask-image:none !important;
    /* mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path d="M0,0 L100,0 L100,100 L0,100 Z" fill="none" stroke="white" stroke-width="10" stroke-dasharray="5,5" /></svg>'); */
    mask-size: 20px 20px;
    /* -webkit-mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path d="M0,0 L100,0 L100,100 L0,100 Z" fill="none" stroke="white" stroke-width="10" stroke-dasharray="5,5" /></svg>'); */
    -webkit-mask-size: 20px 20px;
    mask-repeat: repeat;
    -webkit-mask-repeat: repeat;
}

.warmth-light {
    position: absolute;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255, 193, 7, 0.7) 0%, rgba(255, 193, 7, 0) 70%);
    border-radius: 50%;
    right: 20%;
    bottom: 20%;
    z-index: 4;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        opacity: 0.7;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.9;
    }
    100% {
        transform: scale(0.95);
        opacity: 0.7;
    }
}

/* 场景文本和服务信息 */

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* 结束页 */
#ending {
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
}

.ending-content {
    text-align: center;
    width: 80%;
}

.ending-content h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.ending-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.harbor-logo {
    width: 100px;
    height: 100px;
    background-color: white;
    border-radius: 50%;
    margin: 0 auto 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #0066cc;
    font-weight: bold;
    font-size: 1.2rem;
}

.btn-container {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.btn {
    padding: 12px 25px;
    background-color: white;
    color: #0066cc;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .title-container h1 {
        font-size: 2rem;
    }

    .tagline {
        font-size: 1rem;
    }


    .ending-content h2 {
        font-size: 1.5rem;
    }

    .ending-content p {
        font-size: 1rem;
    }
}

/* 结束页扩展 */
.arrow-down {
    width: 20px;
    height: 20px;
    border-right: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(45deg);
    margin: 20px auto 10px;
}

.expand-hint {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 5px;
}

.bounce {
    animation: bounce 2s infinite;
}

/* 尾声：延展图文介绍 */
#epilogue {
    background-color: #1a1a1a;
    color: #fff;
    padding: 20px 0;
    overflow-y: auto;
}

.epilogue-container {
    width: 90%;
    max-width: 800px;
    margin: 0 auto;
    padding: 30px 0;
}

.seasons-review {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    height: 120px;
}

.season-review {
    width: 22%;
    height: 100%;
    border-radius: 10px;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.spring-review {
    background-image: linear-gradient(to bottom, #a8d8ea 0%, #c1e1ec 100%);
}

.summer-review {
    background-image: linear-gradient(to bottom, #ffd89b 0%, #ffb347 100%);
}

.autumn-review {
    background-image: linear-gradient(to bottom, #e6b980 0%, #d4a574 100%);
}

.winter-review {
    background-image: linear-gradient(to bottom, #e6f2ff 0%, #cce7ff 100%);
}

.epilogue-text {
    text-align: center;
    margin-bottom: 20px;
}

.text-line {
    font-size: 1.5rem;
    margin: 10px 0;
    line-height: 1.6;
}

.long-content {
    margin-top: 30px;
    animation: fadeIn 1s ease-in-out;
}

.content-block {
    margin-bottom: 20px;
    line-height: 1.8;
    font-size: 1rem;
    text-align: justify;
}

.feature-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 30px;
}

.feature-btn {
    padding: 15px;
    background-color: transparent;
    color: #fff;
    border: 1px solid #fff;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
}

.feature-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* 弹窗样式 */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
}

.modal-content {
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    color: #333;
    display: flex;
    flex-direction: column;
}

.modal-header {
    padding: 15px 20px;
    background-color: #0066cc;
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.2rem;
}

.close-btn {
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
}

.modal-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}

.tutorial-step {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}

.step-number {
    width: 30px;
    height: 30px;
    background-color: #0066cc;
    color: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 15px;
    flex-shrink: 0;
}

.service-item {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.service-item:last-child {
    border-bottom: none;
}

.service-item h4 {
    color: #0066cc;
    margin-bottom: 10px;
}

.service-item p {
    line-height: 1.6;
}

.service-item a {
    color: #0066cc;
    text-decoration: none;
}

.service-item a:hover {
    text-decoration: underline;
}

/* 第四幕擦除效果增强 */
.wipe-hint {
    position: absolute;
    bottom: 10%;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
    z-index: 10;
    transition: opacity 0.5s ease;
    text-align: center;
    max-width: 80%;
}

.frost-particle {
    position: absolute;
    width: 10px;
    height: 10px;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    pointer-events: none;
    z-index: 5;
}
