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

body {
    background: linear-gradient(135deg, #f0f4f8 0%, #e2e8f0 50%, #f7fafc 100%);
    min-height: 100vh;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #2d3748;
}

/* 风险免责声明横幅 */
.risk-banner {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    padding: 15px 20px;
    text-align: center;
    font-size: 0.85rem;
    border-bottom: 3px solid #fbbf24;
    position: relative;
    z-index: 1000;
}

.risk-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    line-height: 1.5;
    color: #fef3c7;
}

.risk-banner-content strong {
    color: #fbbf24;
}

.risk-banner-content a {
    color: #fef3c7;
    text-decoration: underline;
    font-weight: 600;
}

.risk-banner-content a:hover {
    color: #fbbf24;
}

.container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 60px);
    padding: 20px;
}

.card {
    background: rgba(255, 255, 255, 0.98);
    border: 2px solid rgba(66, 153, 225, 0.2);
    border-radius: 20px;
    padding: 40px;
    max-width: 500px;
    width: 100%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08),
                0 2px 10px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, #4299e1, #667eea, transparent);
    animation: borderGlow 3s ease-in-out infinite;
}

@keyframes borderGlow {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
}

.logo-icon {
    font-size: 40px;
    color: #4299e1;
    margin-right: 15px;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.logo-text {
    font-size: 32px;
    font-weight: bold;
    background: linear-gradient(135deg, #4299e1, #667eea);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h1 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 10px;
    color: #1a202c;
}

h2 {
    text-align: center;
    font-size: 28px;
    margin-bottom: 10px;
    color: #2d3748;
}

.subtitle {
    text-align: center;
    color: #718096;
    margin-bottom: 30px;
    font-size: 16px;
}

.features {
    display: flex;
    justify-content: space-around;
    margin-bottom: 30px;
}

.feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px;
    background: rgba(66, 153, 225, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(66, 153, 225, 0.1);
    transition: all 0.3s ease;
}

.feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(66, 153, 225, 0.2);
    border-color: rgba(66, 153, 225, 0.3);
}

.feature i {
    font-size: 24px;
    color: #4299e1;
    margin-bottom: 10px;
}

.feature-text {
    font-size: 12px;
    color: #4a5568;
    text-align: center;
    font-weight: 500;
}

.step-indicator {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
}

.step {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(66, 153, 225, 0.2);
    border: 1px solid rgba(66, 153, 225, 0.3);
    transition: all 0.3s ease;
}

.step.active {
    background: #4299e1;
    box-shadow: 0 0 15px rgba(66, 153, 225, 0.6);
    border-color: #4299e1;
}

.input-container {
    margin-bottom: 20px;
}

.code-input {
    width: 100%;
    padding: 15px 20px;
    font-size: 18px;
    border: 2px solid rgba(66, 153, 225, 0.3);
    border-radius: 10px;
    background: #ffffff;
    color: #2d3748;
    outline: none;
    transition: all 0.3s ease;
}

.code-input:focus {
    border-color: #4299e1;
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.1);
}

.code-input::placeholder {
    color: #a0aec0;
}

.input-hint {
    font-size: 12px;
    color: #718096;
    margin-top: 8px;
    text-align: center;
}

.error-message {
    display: none;
    color: #e53e3e;
    text-align: center;
    margin-top: 10px;
    font-size: 14px;
}

.btn {
    width: 100%;
    padding: 15px 30px;
    font-size: 18px;
    font-weight: bold;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #4299e1 0%, #667eea 100%);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(66, 153, 225, 0.3);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(66, 153, 225, 0.4);
}

.btn:active {
    transform: translateY(0);
}

.btn i {
    margin-right: 10px;
}

.btn-whatsapp {
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.trust-badges {
    display: flex;
    justify-content: space-around;
    margin-bottom: 20px;
}

.trust-badge {
    display: flex;
    align-items: center;
    padding: 8px 15px;
    background: rgba(66, 153, 225, 0.08);
    border-radius: 20px;
    font-size: 12px;
    color: #4a5568;
    border: 1px solid rgba(66, 153, 225, 0.15);
}

.trust-badge i {
    margin-right: 8px;
    color: #4299e1;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    margin: 0 auto 30px;
    border: 4px solid rgba(66, 153, 225, 0.2);
    border-top-color: #4299e1;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.success-animation {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
}

.checkmark {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: block;
    stroke-width: 2;
    stroke: #4299e1;
    stroke-miterlimit: 10;
    box-shadow: inset 0px 0px 0px #4299e1;
    animation: fill .4s ease-in-out .4s forwards, scale .3s ease-in-out .9s both;
}

.checkmark__circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke-width: 2;
    stroke-miterlimit: 10;
    stroke: #4299e1;
    fill: none;
    animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.checkmark__check {
    transform-origin: 50% 50%;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards;
}

@keyframes stroke {
    100% { stroke-dashoffset: 0; }
}

@keyframes scale {
    0%, 100% { transform: none; }
    50% { transform: scale3d(1.1, 1.1, 1); }
}

@keyframes fill {
    100% { box-shadow: inset 0px 0px 0px 30px rgba(66, 153, 225, 0.1); }
}

.result-message {
    color: #2d3748;
    font-size: 18px;
    margin-bottom: 20px;
}

.code-display {
    color: #4299e1;
    font-weight: bold;
}

.disclaimer {
    text-align: center;
    font-size: 11px;
    color: #718096;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(66, 153, 225, 0.1);
    line-height: 1.6;
    background: rgba(220, 38, 38, 0.05);
    padding: 15px;
    border-radius: 8px;
    border: 1px solid rgba(220, 38, 38, 0.2);
}

.disclaimer strong {
    color: #e53e3e;
}

.hidden {
    display: none !important;
}

.fade-in {
    animation: fadeIn 0.5s ease-in;
}

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

/* Modal styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: #ffffff;
    border-radius: 20px;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    border: 2px solid rgba(66, 153, 225, 0.3);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    transform: scale(0.8);
    transition: all 0.3s ease;
    position: relative;
}

.modal-overlay.active .modal {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: #718096;
    font-size: 24px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: #4299e1;
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #4299e1;
    margin-bottom: 20px;
    text-align: center;
}

.modal-content {
    color: #2d3748;
    line-height: 1.6;
}

.info-section {
    margin-bottom: 20px;
}

.info-section h3 {
    color: #4299e1;
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.info-section p {
    color: #4a5568;
    line-height: 1.6;
    margin-bottom: 10px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .modal {
        padding: 20px;
        margin: 20px;
    }

    .card {
        padding: 30px 20px;
    }

    h1 {
        font-size: 28px;
    }

    .logo-text {
        font-size: 26px;
    }
}