/* 基础样式 */
html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    min-height: 100%;
}
body {
    background-color: #f5f5f5;
    color: #333;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    min-height: -webkit-fill-available;
}
.box {
    width: 90%;
    max-width: 580px;
    margin: auto;
    text-align: center;
    padding: 20px;
    box-sizing: border-box;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
h1 {
    font-size: clamp(20px, 5vw, 24px);
    margin-bottom: 20px;
    font-weight: normal;
    line-height: 1.4;
}
.reason {
    color: #666;
    line-height: 1.6;
    margin: 20px 0;
    font-size: clamp(14px, 4vw, 16px);
    transform: translateY(20px);
    opacity: 0;
    animation: slideUp 0.8s ease 0.3s forwards;
    padding: 0 15px;
}
@keyframes slideUp {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}
.btn {
    display: inline-block;
    padding: clamp(10px, 3vw, 12px) clamp(20px, 6vw, 24px);
    background: #4a90e2;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    margin-top: 20px;
    transition: all 0.3s ease;
    transform: translateY(20px);
    opacity: 0;
    animation: slideUp 0.8s ease 0.6s forwards;
    font-size: clamp(14px, 4vw, 16px);
    -webkit-tap-highlight-color: transparent;
    border: none;
    cursor: pointer;
}
.btn:hover {
    background: #357abd;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(74,144,226,0.3);
}
@media (hover: none) {
    .btn:active {
        background: #357abd;
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(74,144,226,0.3);
    }
}
.contact {
    margin-top: 30px;
    color: #888;
    font-size: clamp(12px, 3.5vw, 14px);
    transform: translateY(20px);
    opacity: 0;
    animation: slideUp 0.8s ease 0.9s forwards;
    padding: 0 15px;
}

/* 验证码样式 */
.captcha-container {
    margin: 30px auto;
    max-width: 320px;
    padding: 0 15px;
    transform: translateY(20px);
    opacity: 0;
    animation: slideUp 0.8s ease 0.4s forwards;
}

.captcha-image {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

#captchaImg {
    width: 200px;
    height: 80px;
    background-color: #f0f0f0;
    border-radius: 4px;
    object-fit: cover;
    border: 1px solid #ddd;
}

.refresh-btn {
    margin-left: 10px;
    margin-top: 10px;
    padding: 8px 12px;
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    white-space: nowrap;
}

.refresh-btn:hover {
    background-color: #e9e9e9;
}

.captcha-input {
    margin-bottom: 20px;
    text-align: left;
}

.captcha-input label {
    display: block;
    margin-bottom: 8px;
    color: #666;
}

#captchaCode {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    box-sizing: border-box;
}

/* 浏览器兼容性提示 */
.browser-tip {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #fff3cd;
    border: 1px solid #ffeeba;
    color: #856404;
    padding: 15px 20px;
    border-radius: 6px;
    text-align: center;
    z-index: 1000;
    display: none;
    max-width: 90%;
}

.browser-tip span {
    color: #d32f2f;
    font-weight: 500;
}

@media screen and (max-width: 480px) {
    .box {
        padding: 15px;
    }
    .captcha-container {
        width: 100%;
    }
}
    