* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.container {
    background: white;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 480px;
    width: 100%;
    padding: 40px 30px;
    animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.header {
    text-align: center;
    margin-bottom: 40px;
}

.header h1 {
    font-size: 32px;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    color: #718096;
    font-size: 16px;
}

.form-container {
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #4a5568;
    margin-bottom: 8px;
}

.form-group input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #f7fafc;
    color: #2d3748;
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group input:read-only {
    background: #edf2f7;
    cursor: not-allowed;
}

/* 复选框组样式 */
.checkbox-group {
    margin-bottom: 24px;
    padding: 20px;
    background: #f7fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    margin-bottom: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.checkbox-label:last-child {
    margin-bottom: 0;
}

.checkbox-label:hover {
    opacity: 0.8;
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-right: 12px;
    margin-top: 2px;
    cursor: pointer;
    flex-shrink: 0;
    accent-color: #667eea;
    border-radius: 4px;
}

.checkbox-text {
    font-size: 14px;
    color: #4a5568;
    line-height: 1.5;
    flex: 1;
}

.checkbox-text a {
    color: #667eea;
    text-decoration: none;
    transition: color 0.2s ease;
}

.checkbox-text a:hover {
    color: #764ba2;
    text-decoration: underline;
}

/* 复选框抖动动画 */
@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    10%,
    30%,
    50%,
    70%,
    90% {
        transform: translateX(-8px);
    }

    20%,
    40%,
    60%,
    80% {
        transform: translateX(8px);
    }
}

.checkbox-label.shake {
    animation: shake 0.5s ease-in-out;
}

.submit-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

.submit-btn:active {
    transform: translateY(0);
}

.btn-icon {
    font-size: 20px;
    transition: transform 0.3s ease;
}

.submit-btn:hover .btn-icon {
    transform: translateX(4px);
}

.footer {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}

.footer p {
    color: #a0aec0;
    font-size: 12px;
}

/* 弹窗样式 */
.modal {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.modal-content {
    background: white;
    border-radius: 20px;
    max-width: 420px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: scaleIn 0.3s ease;
    overflow: hidden;
}

@keyframes scaleIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.modal-header {
    padding: 24px 24px 16px;
    border-bottom: 1px solid #e2e8f0;
}

.modal-header h2 {
    font-size: 20px;
    font-weight: 700;
    color: #2d3748;
}

.modal-body {
    padding: 24px;
}

.modal-body p {
    color: #4a5568;
    line-height: 1.6;
    margin-bottom: 16px;
}

.modal-body ul {
    list-style: none;
    margin: 16px 0;
}

.modal-body li {
    padding: 12px 0;
    color: #4a5568;
    font-size: 15px;
    border-bottom: 1px solid #f7fafc;
}

.modal-body li:last-child {
    border-bottom: none;
}

.privacy-note {
    font-size: 13px;
    color: #718096;
    font-style: italic;
    margin-top: 16px;
}

.modal-footer {
    padding: 16px 24px 24px;
    display: flex;
    gap: 12px;
}

.btn {
    flex: 1;
    padding: 12px 24px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: #edf2f7;
    color: #4a5568;
}

.btn-secondary:hover {
    background: #e2e8f0;
}

/* 手机号选择列表 */
.phone-list {
    margin-top: 20px;
}

.phone-item {
    display: flex;
    align-items: center;
    padding: 16px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #f7fafc;
}

.phone-item:hover {
    border-color: #667eea;
    background: white;
    transform: translateX(4px);
}

.phone-item.selected {
    border-color: #667eea;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
}

.phone-icon {
    font-size: 24px;
    margin-right: 12px;
}

.phone-info {
    flex: 1;
}

.phone-number {
    font-size: 18px;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 4px;
}

.phone-label {
    font-size: 13px;
    color: #718096;
}

.phone-check {
    font-size: 20px;
    color: #667eea;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.phone-item.selected .phone-check {
    opacity: 1;
}

/* 响应式设计 */
@media (max-width: 480px) {
    .container {
        padding: 30px 20px;
    }

    .header h1 {
        font-size: 28px;
    }

    .modal-content {
        margin: 20px;
    }
}