/* 基础样式 */
body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: 'Arial', sans-serif;
    overflow: hidden;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    /* 禁用文本选择 */
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.container {
    position: relative;
    width: 100%;
    height: 100%;
}

/* 第一页样式 */
.page1 {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: all 1.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 10;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.page1 h1 {
    font-size: 4rem;
    color: #333;
    text-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transform: translateY(0);
    transition: all 0.8s ease-out;
    opacity: 1;
    /* 允许标题文字选择 */
    user-select: text;
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
}

.arrow-btn {
    margin-top: 2rem;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(45deg, #6a11cb 0%, #2575fc 100%);
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(106, 17, 203, 0.3);
    position: relative;
    overflow: hidden;
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    /* 完全移除焦点框 */
    outline: none !important;
    -webkit-tap-highlight-color: transparent;
    display: flex;
    justify-content: center;
    align-items: center;
    /* 确保按钮可以被点击 */
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

/* 去除所有按钮的焦点状态 */
.arrow-btn:focus, .back-btn:focus {
    outline: none !important;
    box-shadow: 0 10px 30px rgba(106, 17, 203, 0.3);
}

.arrow-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 35px rgba(106, 17, 203, 0.4);
}

.arrow-btn:active {
    transform: scale(0.95);
}

.arrow-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: all 0.6s ease;
}

.arrow-btn:hover::before {
    left: 100%;
}

.arrow-btn .arrow {
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* 第二页样式 */
.page2 {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #e0c3fc 0%, #8ec5fc 100%);
    transform: translateX(100%);
    opacity: 0;
    transition: all 1.2s cubic-bezier(0.77, 0, 0.175, 1);
    z-index: 5;
}

.page2 h1 {
    font-size: 4rem;
    color: #333;
    text-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.8s ease-out 0.3s;
    /* 允许标题文字选择 */
    user-select: text;
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
}

/* 返回按钮样式 */
.back-btn {
    margin-top: 2rem;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(45deg, #ff758c 0%, #ff7eb3 100%);
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(255, 117, 140, 0.3);
    position: relative;
    overflow: hidden;
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    /* 完全移除焦点框 */
    outline: none !important;
    -webkit-tap-highlight-color: transparent;
    display: flex;
    justify-content: center;
    align-items: center;
    transform: scale(0);
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55) 0.5s;
    /* 确保按钮可以被点击 */
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.back-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 35px rgba(255, 117, 140, 0.4);
}

.back-btn:active {
    transform: scale(0.95);
}

.back-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: all 0.6s ease;
}

.back-btn:hover::before {
    left: 100%;
}

.back-btn .back-arrow {
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* 激活状态 */
.page1.active {
    transform: translateX(-100%);
    opacity: 0;
}

.page1.active h1 {
    transform: translateY(-50px);
    opacity: 0;
}

.page2.active {
    transform: translateX(0);
    opacity: 1;
}

.page2.active h1 {
    transform: translateY(0);
    opacity: 1;
}

.page2.active .back-btn {
    transform: scale(1);
    opacity: 1;
}

/* 按钮点击动画 */
.arrow-btn.clicked {
    animation: bounce 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.arrow-btn.clicked .arrow {
    transform: translateX(20px) rotate(360deg);
}

.back-btn.clicked {
    animation: bounceBack 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.back-btn.clicked .back-arrow {
    transform: translateX(-20px) rotate(-360deg);
}

@keyframes bounce {
    0%, 100% {
        transform: scale(1);
    }
    30% {
        transform: scale(0.9);
    }
    60% {
        transform: scale(1.1);
    }
    80% {
        transform: scale(0.95);
    }
}

@keyframes bounceBack {
    0%, 100% {
        transform: scale(1);
    }
    30% {
        transform: scale(0.9);
    }
    60% {
        transform: scale(1.1);
    }
    80% {
        transform: scale(0.95);
    }
}

/* 粒子效果 */
.particles {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 10px;
    height: 10px;
    background: rgba(106, 17, 203, 0.6);
    border-radius: 50%;
    pointer-events: none;
    opacity: 0;
}

.back-particle {
    background: rgba(255, 117, 140, 0.6);
}

/* 波纹效果 */
.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    transform: scale(0);
    pointer-events: none;
    animation: ripple 1.2s ease-out;
}

.back-ripple {
    background: rgba(255, 255, 255, 0.8);
}

@keyframes ripple {
    to {
        transform: scale(2);
        opacity: 0;
    }
}

/* 背景动画 */
.bg-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.3;
}

/* 更多过渡效果 */
.fade-in {
    animation: fadeIn 1s ease-out forwards;
}

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

.slide-up {
    animation: slideUp 1s ease-out forwards;
}

@keyframes slideUp {
    from { transform: translateY(50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.rotate-in {
    animation: rotateIn 1s ease-out forwards;
}

@keyframes rotateIn {
    from { transform: rotate(-30deg) scale(0.8); opacity: 0; }
    to { transform: rotate(0) scale(1); opacity: 1; }
}

.flip-in {
    animation: flipIn 1s ease-out forwards;
    transform-origin: center;
}

@keyframes flipIn {
    from { transform: rotateY(90deg); opacity: 0; }
    to { transform: rotateY(0); opacity: 1; }
}

.zoom-in {
    animation: zoomIn 1s ease-out forwards;
}

@keyframes zoomIn {
    from { transform: scale(0.5); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.swing {
    animation: swing 1s ease-out forwards;
    transform-origin: top center;
}

@keyframes swing {
    0% { transform: rotate(-15deg); opacity: 0; }
    50% { transform: rotate(10deg); }
    100% { transform: rotate(0); opacity: 1; }
}

.bounce-in {
    animation: bounceIn 1s ease-out forwards;
}

@keyframes bounceIn {
    0% { transform: scale(0.3); opacity: 0; }
    50% { transform: scale(1.1); }
    70% { transform: scale(0.9); }
    100% { transform: scale(1); opacity: 1; }
}

.light-speed {
    animation: lightSpeed 1s ease-out forwards;
}

@keyframes lightSpeed {
    from { transform: translateX(100%) skewX(-30deg); opacity: 0; }
    60% { transform: translateX(-20%) skewX(15deg); }
    80% { transform: translateX(0%) skewX(-5deg); }
    to { transform: translateX(0) skewX(0); opacity: 1; }
}

.roll-in {
    animation: rollIn 1s ease-out forwards;
}

@keyframes rollIn {
    from { transform: translateX(-100%) rotate(-120deg); opacity: 0; }
    to { transform: translateX(0) rotate(0); opacity: 1; }
}

/* 自定义文本选择样式 */
::selection {
    background: rgba(106, 17, 203, 0.3);
    color: #333;
}

::-moz-selection {
    background: rgba(106, 17, 203, 0.3);
    color: #333;
}