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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    color: #333;
}

.container {
    width: 100%;
    max-width: 420px;
    perspective: 1000px;
}

.card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 24px;
    padding: 40px 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(255, 255, 255, 0.2);
    text-align: center;
    animation: slideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.glass-effect {
    background: rgba(255, 255, 255, 0.9);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.icon-wrapper {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.8);
    margin-bottom: 24px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

.welcome-icon,
.success-icon,
.error-icon {
    font-size: 40px;
    line-height: 1;
}

.wave-anim {
    animation: wave 2.5s infinite;
    transform-origin: 70% 70%;
}

@keyframes wave {
    0% {
        transform: rotate(0deg);
    }

    10% {
        transform: rotate(14deg);
    }

    20% {
        transform: rotate(-8deg);
    }

    30% {
        transform: rotate(14deg);
    }

    40% {
        transform: rotate(-4deg);
    }

    50% {
        transform: rotate(10deg);
    }

    60% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(0deg);
    }
}

.success-anim {
    animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.error-anim {
    animation: shake 0.5s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

@keyframes shake {

    10%,
    90% {
        transform: translate3d(-1px, 0, 0);
    }

    20%,
    80% {
        transform: translate3d(2px, 0, 0);
    }

    30%,
    50%,
    70% {
        transform: translate3d(-4px, 0, 0);
    }

    40%,
    60% {
        transform: translate3d(4px, 0, 0);
    }
}

@keyframes popIn {
    0% {
        transform: scale(0);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

h1 {
    color: #1a1a1a;
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.description {
    color: #666;
    font-size: 16px;
    margin-bottom: 32px;
    line-height: 1.5;
}

.description strong {
    color: #333;
    font-weight: 600;
}

.error-message {
    color: #e74c3c;
    font-size: 16px;
    margin-bottom: 24px;
    background: rgba(231, 76, 60, 0.1);
    padding: 12px;
    border-radius: 8px;
}

.success-message {
    color: #27ae60;
    font-size: 18px;
    margin-bottom: 12px;
    font-weight: 500;
}

.hint {
    color: #888;
    font-size: 14px;
    margin-top: 16px;
    margin-bottom: 24px;
}

.turnstile-container {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    min-height: 65px;
}

.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 24px;
}

.submit-button,
.primary-button {
    width: 100%;
    padding: 16px 28px;
    font-size: 16px;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(118, 75, 162, 0.2);
}

.secondary-button {
    width: 100%;
    padding: 14px 28px;
    font-size: 15px;
    font-weight: 500;
    color: #666;
    background: #f5f5f7;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
}

.submit-button:hover:not(:disabled),
.primary-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(118, 75, 162, 0.3);
}

.secondary-button:hover {
    background: #e1e1e3;
    color: #333;
}

.submit-button:active,
.primary-button:active {
    transform: translateY(0);
}

.submit-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background: #a0a0a0;
    box-shadow: none;
}

.pulse-anim {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(118, 75, 162, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(118, 75, 162, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(118, 75, 162, 0);
    }
}

.loading-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.hidden {
    display: none !important;
}

.result-message {
    margin-top: 24px;
    padding: 16px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 500;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.result-message.success {
    background: rgba(39, 174, 96, 0.1);
    color: #27ae60;
    border: 1px solid rgba(39, 174, 96, 0.2);
}

.result-message.error {
    background: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
    border: 1px solid rgba(231, 76, 60, 0.2);
}

/* 状态指示器 */
.status-indicator {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 16px;
    font-size: 15px;
    color: #666;
    transition: all 0.3s ease;
}

.status-indicator .status-text {
    font-weight: 500;
}

.status-indicator.submitting {
    color: #667eea;
}

.status-indicator.submitting .loading-spinner {
    border-color: rgba(102, 126, 234, 0.3);
    border-top-color: #667eea;
}

.status-indicator.success {
    color: #27ae60;
}

.status-indicator.error {
    color: #e74c3c;
}

footer {
    text-align: center;
    margin-top: 30px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
    letter-spacing: 0.5px;
}

/* 响应式 */
@media (max-width: 480px) {
    .card {
        padding: 30px 24px;
    }

    h1 {
        font-size: 22px;
    }

    .welcome-icon,
    .success-icon,
    .error-icon {
        font-size: 36px;
    }
}