* {
    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;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.container {
    background: #fff;
    border-radius: 20px;
    padding: 40px 30px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.step {
    display: none;
    animation: fadeIn 0.4s ease;
}

.step.active {
    display: block;
}

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

.logo {
    font-size: 36px;
    font-weight: 800;
    text-align: center;
    color: #667eea;
    margin-bottom: 10px;
    letter-spacing: 2px;
}

h2 {
    text-align: center;
    color: #333;
    margin-bottom: 8px;
    font-size: 22px;
}

.subtitle {
    text-align: center;
    color: #888;
    font-size: 14px;
    margin-bottom: 25px;
}

input[type="text"] {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 16px;
    margin-bottom: 10px;
    transition: border-color 0.3s;
}

input[type="text"]:focus {
    outline: none;
    border-color: #667eea;
}

button {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.3s, transform 0.1s;
    margin-top: 10px;
}

button:hover:not(:disabled) {
    opacity: 0.9;
}

button:active:not(:disabled) {
    transform: scale(0.98);
}

button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.error {
    color: #e74c3c;
    font-size: 13px;
    margin-bottom: 10px;
    min-height: 18px;
}

/* 公约滚动区域 */
.terms-scroll {
    max-height: 280px;
    overflow-y: auto;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
    background: #fafafa;
}

.terms-content p {
    margin-bottom: 12px;
    line-height: 1.7;
    color: #444;
    font-size: 14px;
}

.terms-content ul {
    margin-left: 20px;
    margin-bottom: 12px;
}

.terms-content li {
    margin-bottom: 6px;
    color: #444;
    font-size: 14px;
}

.terms-timer {
    text-align: center;
    color: #888;
    font-size: 13px;
    margin-bottom: 12px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    cursor: pointer;
    font-size: 14px;
    color: #444;
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: #667eea;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"]:disabled + span {
    color: #aaa;
}

/* 答题区域 */
.quiz-section {
    margin-bottom: 20px;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 12px;
}

.quiz-q {
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
    font-size: 14px;
    line-height: 1.6;
}

.quiz-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.quiz-options label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    color: #444;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: background 0.2s;
}

.quiz-options label:hover {
    background: #e8e8e8;
}

.quiz-options input {
    margin-top: 2px;
    accent-color: #667eea;
}

/* 成功页面 */
.success-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: #fff;
    margin: 0 auto 20px;
}

/* 滚动条样式 */
.terms-scroll::-webkit-scrollbar {
    width: 6px;
}

.terms-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.terms-scroll::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}
