/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: #000000;
    color: #ffffff;
    min-height: 100vh;
    overflow: hidden;
    position: relative;
    width: 100%;
    max-width: 100vw;
}

.container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
}

/* 验证系统头部 */
.verification-header {
    position: absolute;
    top: 20px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 24px;
    font-weight: 700;
    z-index: 10;
    margin: 0 auto;
}

.lock-icon {
    font-size: 20px;
    color: #888;
}

.click-text {
    color: white;
}

.hub-text {
    color: #ff6b35;
}

/* 主卡片 */
.main-card {
    background: rgba(30, 30, 30, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 40px;
    max-width: 500px;
    width: 100%;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.warning-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #ff6b35;
}

.warning-text {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 30px;
    color: #ccc;
}

/* 按钮容器 */
.button-container {
    position: relative;
    min-height: 60px;
    margin-bottom: 20px;
}

/* 年龄验证按钮 */
.age-button {
    background: linear-gradient(135deg, #ff6b35, #ff8e53);
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.age-button:hover {
    transform: translateX(-50%) scale(1.05);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

/* 按钮动画效果 */
.age-button.shake {
    animation: shake 0.3s ease-in-out;
}

.age-button.jump {
    animation: jump 0.2s ease-in-out;
}

.age-button.runaway {
    animation: runaway 0.3s ease-out;
}

.age-button.talk {
    animation: talk 0.4s ease-in-out;
}

.age-button.surrender {
    animation: surrender 0.6s ease-out forwards;
}

/* 尝试次数计数器 */
.attempt-counter {
    font-size: 14px;
    color: #888;
    font-style: italic;
    opacity: 0;
    transition: opacity 0.3s ease;
    display: none;
}

.attempt-counter.visible {
    opacity: 1;
    display: block;
}

/* 页脚 */
.footer {
    position: absolute;
    bottom: 20px;
    text-align: center;
    width: 100%;
}

.exit-button {
    background: #333;
    color: #ccc;
    border: 2px solid #555;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 10px;
    min-width: 120px;
}

.exit-button:hover {
    background: #444;
    color: #fff;
    border-color: #666;
    transform: scale(1.05);
}

.copyright {
    font-size: 12px;
    color: #555;
    margin-top: 5px;
}

/* 对话框 */
.dialog {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.dialog-content {
    background: rgba(40, 40, 40, 0.95);
    padding: 30px;
    border-radius: 12px;
    max-width: 400px;
    text-align: center;
    border: 1px solid rgba(255, 107, 53, 0.3);
}

.dialog-content p {
    font-size: 16px;
    line-height: 1.5;
    color: #fff;
    margin-bottom: 20px;
}

.dialog-confirm {
    background: #ff6b35;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 14px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 80px;
}

.dialog-confirm:hover {
    background: #ff8e53;
    transform: scale(1.05);
}

/* 投降页面 */
.surrender-page {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.5s ease;
    padding: 20px;
    box-sizing: border-box;
}

.surrender-page.visible {
    opacity: 1;
}

.surrender-content {
    text-align: center;
    max-width: 500px;
    width: 100%;
    padding: 20px;
    background: rgba(30, 30, 30, 0.9);
    border-radius: 16px;
    border: 1px solid rgba(255, 107, 53, 0.3);
}

.surrender-content h2 {
    font-size: 32px;
    color: #ff6b35;
    margin-bottom: 15px;
    animation: fadeInUp 1s ease;
}

.reveal-text p {
    font-size: 16px;
    line-height: 1.4;
    margin-bottom: 8px;
    animation: fadeInUp 1s ease 0.5s both;
}

.reveal-text p:nth-child(2) { animation-delay: 1s; }
.reveal-text p:nth-child(3) { animation-delay: 1.5s; }
.reveal-text p:nth-child(4) { animation-delay: 2s; }
.reveal-text p:nth-child(5) { animation-delay: 2.5s; }

.final-message {
    font-size: 20px !important;
    font-weight: 700;
    color: #ff6b35;
    margin-top: 15px !important;
}

/* 成就解锁 */
.achievement {
    margin: 40px 0;
    padding: 30px;
    background: rgba(255, 107, 53, 0.1);
    border-radius: 12px;
    border: 1px solid rgba(255, 107, 53, 0.3);
    animation: fadeInUp 1s ease 3s both;
}

.trophy {
    font-size: 48px;
    margin-bottom: 15px;
}

.achievement h3 {
    font-size: 24px;
    color: #ff6b35;
    margin-bottom: 10px;
}

.achievement p {
    font-size: 16px;
    margin-bottom: 5px;
}

.stats {
    font-weight: 600;
    color: #ff6b35;
}

.subtext {
    font-size: 14px !important;
    color: #888;
    font-style: italic;
}

/* 重置按钮 */
.reset-button {
    background: #ff6b35;
    color: white;
    border: none;
    padding: 12px 24px;
    font-size: 16px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    animation: fadeInUp 1s ease 3.5s both;
}

.reset-button:hover {
    background: #ff8e53;
    transform: scale(1.05);
}

/* 隐藏类 */
.hidden {
    display: none !important;
}

/* 动画定义 */
@keyframes shake {
    0%, 100% { transform: translateX(-50%) translateX(0); }
    25% { transform: translateX(-50%) translateX(-20px); }
    75% { transform: translateX(-50%) translateX(20px); }
}

@keyframes jump {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-30px); }
}

@keyframes runaway {
    0% { transform: translateX(-50%) scale(1); }
    50% { transform: translateX(-50%) scale(1.2); }
    100% { transform: translateX(var(--runaway-x, -50%)) translateY(var(--runaway-y, 0)) scale(1); }
}

@keyframes talk {
    0%, 100% { transform: translateX(-50%) scale(1); }
    50% { transform: translateX(-50%) scale(1.2); }
}

@keyframes surrender {
    0% { transform: translateX(-50%) scale(1); }
    50% { transform: translateX(-50%) scale(1.5); }
    100% { transform: translateX(-50%) scale(20); opacity: 0; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 移动端适配 */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .verification-header {
        top: 10px;
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        font-size: 20px;
        margin: 0 auto;
    }
    
    .main-card {
        padding: 25px 15px;
        margin: 0 10px;
        max-width: 100%;
    }
    
    .warning-title {
        font-size: 22px;
        margin-bottom: 15px;
    }
    
    .warning-text {
        font-size: 14px;
        margin-bottom: 25px;
    }
    
    .age-button {
        padding: 14px 28px;
        font-size: 16px;
        min-width: 200px;
    }
    
    .exit-button {
        padding: 10px 20px;
        font-size: 14px;
        min-width: 100px;
    }
    
    .button-container {
        min-height: 80px;
    }
    
    .dialog-content {
        max-width: 90%;
        margin: 0 10px;
    }
    
    .surrender-content {
        padding: 20px;
        margin: 0 10px;
    }
    
    .surrender-content h2 {
        font-size: 28px;
        margin-bottom: 15px;
    }
    
    .reveal-text p {
        font-size: 16px;
        margin-bottom: 10px;
    }
    
    .achievement {
        margin: 20px 0;
        padding: 15px;
    }
    
    .trophy {
        font-size: 32px;
    }
    
    .achievement h3 {
        font-size: 18px;
    }
    
    @keyframes shake {
        0%, 100% { transform: translateX(-50%) translateX(0); }
        25% { transform: translateX(-50%) translateX(-30px); }
        75% { transform: translateX(-50%) translateX(30px); }
    }
    
    @keyframes jump {
        0%, 100% { transform: translateX(-50%) translateY(0); }
        50% { transform: translateX(-50%) translateY(-40px); }
    }
}

/* 追逐光标 */
body.chasing {
    cursor: url("data:image/svg+xml,%3Csvg width='32' height='32' viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='16' cy='16' r='14' stroke='%23ff6b35' stroke-width='2' fill='none'/%3E%3Ccircle cx='16' cy='16' r='2' fill='%23ff6b35'/%3E%3C/svg%3E"), auto;
}

/* 按钮随机位置样式 */
.age-button.random-position {
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: fixed !important;
    z-index: 100;
}

/* 临时消息样式 */
.temp-message {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(60, 60, 60, 0.95);
    color: #ccc;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    z-index: 1000;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    animation: messageFade 2s ease-in-out;
}

@keyframes messageFade {
    0%, 100% { 
        opacity: 0; 
        transform: translate(-50%, -50%) scale(0.8); 
    }
    50% { 
        opacity: 1; 
        transform: translate(-50%, -50%) scale(1); 
    }
}