/* 基础重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans SC', sans-serif;
    background-color: #f8f9fa;
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
    padding: 20px;
    background-image: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.container {
    max-width: 800px;
    margin: 0 auto;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    padding: 30px;
}

/* 头部样式 */
header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eaeaea;
}

h1 {
    font-size: 2.2rem;
    color: #1a73e8;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

h1 i {
    font-size: 2.5rem;
}

.subtitle {
    font-size: 1.1rem;
    color: #5f6368;
    font-weight: 400;
}

/* 屏幕切换 */
.screen {
    display: none;
    animation: fadeIn 0.5s ease;
}

.screen.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* reCAPTCHA 开始框样式 */
.recaptcha-box {
    background-color: #f8f9fa;
    border: 2px solid #dadce0;
    border-radius: 4px;
    padding: 20px;
    margin: 30px auto;
    max-width: 400px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.recaptcha-box:hover {
    border-color: #1a73e8;
    background-color: #f1f8ff;
}

.recaptcha-checkbox {
    display: flex;
    align-items: center;
    gap: 20px;
}

.checkbox {
    width: 22px;
    height: 22px;
    border: 2px solid #5f6368;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.checkbox .checkmark {
    color: white;
    font-size: 14px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

/* 旋转动画 */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 加载状态 - 蓝色旋转圆环 */
.checkbox.loading {
    border: 2px solid #1a73e8;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    background-color: transparent;
}

.checkbox.loading .checkmark {
    opacity: 0;
}

/* 完成状态 - 绿色√ */
.checkbox.checked {
    background-color: #34a853;
    border-color: #34a853;
}

.checkbox.checked .checkmark {
    opacity: 1;
}

.checkbox-label {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    flex: 1;
}

.checkbox-label span {
    font-size: 16px;
    font-weight: 500;
    color: #202124;
}

.recaptcha-logo img{
    width: 30px;
}
.recaptcha-logo {
    margin-top: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 10px;
    color: #5f6368;
}

.logo-text {
    font-weight: 700;
    color: #1a73e8;
    font-size: 8px;
    letter-spacing: 0.5px;
}

.logo-subtext {
    font-size: 9px;
    margin-top: 2px;
}

.hint {
    text-align: center;
    color: #5f6368;
    font-size: 14px;
    margin-top: 10px;
    margin-bottom: 30px;
}

/* 统计信息 */
.stats {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-top: 30px;
    border-left: 4px solid #1a73e8;
}

.stats p {
    font-weight: 500;
    margin-bottom: 10px;
    color: #1a73e8;
    display: flex;
    align-items: center;
    gap: 8px;
}

.stats ul {
    list-style-type: none;
    padding-left: 5px;
}

.stats li {
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
}

.stats li:before {
    content: "•";
    color: #1a73e8;
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* 测试界面样式 */
.progress-container {
    margin-bottom: 30px;
}

.progress-bar {
    height: 10px;
    background-color: #e8eaed;
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    background-color: #1a73e8;
    width: 10%;
    border-radius: 5px;
    transition: width 0.3s ease;
}

.progress-text {
    text-align: center;
    font-weight: 500;
    color: #5f6368;
}

.timer {
    text-align: center;
    font-size: 1.2rem;
    font-weight: 500;
    color: #1a73e8;
    margin-bottom: 30px;
    background-color: #f1f8ff;
    padding: 12px;
    border-radius: 8px;
    display: inline-block;
    margin-left: 50%;
    transform: translateX(-50%);
}

.timer i {
    margin-right: 8px;
}

.question-container {
    text-align: center;
    margin-bottom: 40px;
}

.question {
    font-size: 1.3rem;
    font-weight: 500;
    margin-bottom: 30px;
    color: #202124;
}

.options-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.option-btn {
    width: 280px;
    height: 80px;
    background-color: #f8f9fa;
    border: 2px solid #dadce0;
    border-radius: 4px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.option-btn:hover {
    /* 移除背景和边框颜色变化，保留阴影和上移效果 */
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(26, 115, 232, 0.1);
}

.option-btn:active {
    transform: translateY(0);
}

/* 选项内部布局 */
.option-checkbox {
    display: flex;
    align-items: center;
    gap: 20px;
    width: 100%;
}

/* 选项文字 */
.option-text {
    font-size: 1.2rem;
    font-weight: 500;
    color: #202124;
    flex: 1;
    text-align: left;
}

/* 选项图标 */
.option-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 10px;
    color: #5f6368;
    margin-left: auto;
}

.option-logo img {
    width: 30px;
    height: 30px;
}

.option-logo .logo-text {
    font-weight: 700;
    color: #1a73e8;
    font-size: 8px;
    letter-spacing: 0.5px;
    margin-top: 2px;
}

/* 错误状态 - 红色× */
.checkbox.error {
    border-color: #ea4335;
    background-color: transparent;
}

.checkbox.error .checkmark {
    color: #ea4335;
    opacity: 1;
}

/* 修改错误状态的图标为× */
.checkbox.error .checkmark i::before {
    content: "\f00d"; /* FontAwesome的times图标 */
}

/* 确保正确状态的√为绿色 */
.checkbox.checked {
    background-color: #34a853;
    border-color: #34a853;
}

.checkbox.checked .checkmark {
    color: white;
    opacity: 1;
}

/* 移除旧的正确/错误状态样式 */
.option-btn.correct,
.option-btn.incorrect {
    /* 重置为默认样式 */
    border-color: #dadce0;
    background-color: #f8f9fa;
    color: #202124;
}

.test-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 30px;
}

.stat-item {
    text-align: center;
    background-color: #f8f9fa;
    padding: 15px 25px;
    border-radius: 8px;
    min-width: 120px;
}

.stat-label {
    display: block;
    font-size: 14px;
    color: #5f6368;
    margin-bottom: 5px;
}

.stat-value {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
    color: #1a73e8;
}

/* 结果界面样式 */
.result-header {
    text-align: center;
    margin-bottom: 30px;
}

.result-header h2 {
    color: #1a73e8;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.result-summary {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.summary-item {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    min-width: 150px;
    border-top: 4px solid #1a73e8;
}

.summary-label {
    font-size: 14px;
    color: #5f6368;
    margin-bottom: 8px;
}

.summary-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1a73e8;
}

.result-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #e8f0fe 100%);
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    border-left: 6px solid #1a73e8;
    display: flex;
    align-items: center;
    gap: 25px;
}

.result-emoji {
    font-size: 4rem;
    min-width: 80px;
    text-align: center;
}

.result-content {
    flex: 1;
}

.result-id {
    font-size: 14px;
    color: #5f6368;
    font-family: monospace;
    margin-bottom: 5px;
}

.result-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1a73e8;
    margin-bottom: 10px;
}

.result-desc {
    font-size: 1.1rem;
    color: #202124;
    line-height: 1.5;
}

.result-details {
    background-color: #f8f9fa;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 30px;
}

.result-details h3 {
    color: #1a73e8;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.encryption-info p {
    margin-bottom: 15px;
    color: #5f6368;
}
/* 
.encrypted-data {
    background-color: white;
    border-radius: 6px;
    padding: 15px;
    margin: 15px 0;
    border: 1px solid #dadce0;
    overflow-x: auto;
}

.encrypted-data label {
    display: block;
    font-size: 14px;
    color: #5f6368;
    margin-bottom: 8px;
    font-weight: 500;
}

.encrypted-data code {
    font-family: monospace;
    font-size: 14px;
    color: #1a73e8;
    word-break: break-all;
} */

.action-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}

.btn {
    padding: 15px 30px;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 180px;
}

.btn.primary {
    background-color: #1a73e8;
    color: white;
}

.btn.primary:hover {
    background-color: #0d62d9;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(26, 115, 232, 0.3);
}

.btn.secondary {
    background-color: #f8f9fa;
    color: #5f6368;
    border: 1px solid #dadce0;
}

.btn.secondary:hover:not(:disabled) {
    background-color: #e8eaed;
    transform: translateY(-2px);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

.all-results {
    margin-top: 40px;
}

.all-results h3 {
    color: #1a73e8;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.result-type {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    border-left: 4px solid #dadce0;
    transition: all 0.2s ease;
}

.result-type.current {
    border-left-color: #1a73e8;
    background-color: #e8f0fe;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(26, 115, 232, 0.1);
}

.result-type-emoji {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.result-type-id {
    font-size: 12px;
    color: #5f6368;
    font-family: monospace;
    margin-bottom: 5px;
}

.result-type-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #202124;
    margin-bottom: 8px;
}

.result-type-desc {
    font-size: 0.9rem;
    color: #5f6368;
    line-height: 1.4;
}

/* 页脚样式 */
footer {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eaeaea;
    text-align: center;
    color: #5f6368;
    font-size: 14px;
}

.footer-note {
    font-size: 12px;
    margin-top: 5px;
    color: #9aa0a6;
}

.author-name{ color: #36d; }
.author-name:hover{ color: #6cf; }
.author-name:active{ color: #5af; }

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 20px;
    }
    
    h1 {
        font-size: 1.8rem;
        flex-direction: column;
        gap: 10px;
    }
    
    .options-container {
        flex-direction: column;
        align-items: center;
    }
    
    .option-btn {
        width: 100%;
        max-width: 300px;
    }
    
    .result-summary {
        flex-direction: column;
        align-items: center;
    }
    
    .summary-item {
        width: 100%;
        max-width: 250px;
    }
    
    .result-card {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .action-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .results-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.5rem;
    }
    
    .timer {
        font-size: 1rem;
        padding: 10px;
    }
    
    .option-btn {
        height: 100px;
        font-size: 1.2rem;
    }
    
    .result-emoji {
        font-size: 3rem;
    }
    
    .result-title {
        font-size: 1.5rem;
    }
}
