* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    -webkit-overflow-scrolling: touch;
    touch-action: none;
}

.container {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    transition: all 0.3s ease;
    -webkit-transition: all 0.3s ease;
}

.section1 {
    /*background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);*/
}

.section2 {
    /*background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);*/
}

.section3 {
    /*background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);*/
}

.section4 {
    /*background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);*/
}

.section5 {
    /*background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);*/
}
.svg {
    background-repeat: no-repeat !important;
    background-size: contain !important;
}
.section {
    width: 100%;
    height: 20%;
    display: flex;
    color: white;
    justify-content: center;
    align-items: center;
    background-size: cover;
    font-family: 'Arial', sans-serif;
    text-align: center;
}

.section h1 {
    font-size: clamp(1.5rem, 5vw, 3rem);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    background: rgba(0, 0, 0, 0.3);
    padding: 15px 30px;
    border-radius: 10px;
    word-wrap: break-word;
    max-width: 90%;
}

.controls {
    position: fixed;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    list-style: none;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.controls li {
    width: 40px;
    height: 40px;
    font: bold 16px/40px 'Arial';
    text-align: center;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.3s ease;
    -webkit-transition: all 0.3s ease;
    -webkit-tap-highlight-color: transparent;
}

.controls li:hover,
.controls li:active {
    background-color: rgba(255, 255, 255, 0.8);
    color: #333;
    transform: scale(1.1);
}

.controls li.active {
    background-color: #fff;
    color: #ff4757;
    transform: scale(1.15);
    box-shadow: 0 4px 15px rgba(255, 71, 87, 0.4);
}

.instructions {
    position: fixed;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    background: rgba(0, 0, 0, 0.7);
    padding: 8px 16px;
    border-radius: 20px;
    font-family: Arial, sans-serif;
    font-size: 14px;
    z-index: 1000;
    text-align: center;
    max-width: 90%;
    word-wrap: break-word;
}

/* 移动端优化 */
@media (max-width: 768px) {
    .controls {
        right: 10px;
        gap: 6px;
    }

    .controls li {
        width: 35px;
        height: 35px;
        font: bold 14px/35px 'Arial';
    }

    .instructions {
        font-size: 12px;
        padding: 6px 12px;
        bottom: 10px;
    }

    .section {
        /*padding: 15px;*/
    }

    .section h1 {
        padding: 12px 24px;
    }
}

@media (max-width: 480px) {
    .controls {
        right: 8px;
        gap: 5px;
    }

    .controls li {
        width: 32px;
        height: 32px;
        font: bold 12px/32px 'Arial';
    }

    .instructions {
        font-size: 11px;
        padding: 5px 10px;
        bottom: 8px;
    }
}

/* 触摸提示 */
.touch-indicator {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    background: rgba(0, 0, 0, 0.7);
    padding: 20px;
    border-radius: 10px;
    font-size: 16px;
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    text-align: center;
}

.touch-indicator.show {
    opacity: 1;
}