/* ============================================================
   斯特鲁普效应（斯特鲁普测试 / Stroop Effect）
   私有样式表 —— 与 common.css 配套
   ============================================================ */

.main.block-one .panel {
    box-shadow: none;
}

/* ---- 设置区（沿用站内 .form-group/.form-control） ---- */

/* ================= 答题舞台区 ================= */
.stage-box {
    border: 1px dashed #d1d5db;
    border-radius: 10px;
    min-height: 230px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 20px;
    background: #fbfcfe;
}

.stage-emoji {
    font-size: 52px;
    line-height: 1;
    animation: pop 0.2s ease;
}

.stageword {
    font-size: 84px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 2px;
    text-shadow: 0 10px 24px -12px rgba(60, 60, 70, 0.55);
    animation: pop 0.18s ease;
}

.stage-sub {
    font-size: 14px;
    color: #6b7280;
    text-align: center;
    line-height: 1.7;
}

.stage-hint {
    font-size: 14px;
    color: #6b7280;
    text-align: center;
    line-height: 1.7;
    padding: 0 12px;
}

/* ================= 作答选项区 ================= */
.options-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 9px;
    margin-top: 14px;
}

/* 按字色作答：经典干扰区（色块+词） */
.opt-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 13px 6px;
    border: 1.5px solid #d1d5db;
    border-radius: 9px;
    background: #fff;
    font-size: 21px;
    font-weight: 700;
    cursor: pointer;
    user-select: none;
    transition: transform 0.12s, border-color 0.12s, box-shadow 0.12s;
}

.opt-btn:hover {
    border-color: #667eea;
    box-shadow: 0 5px 14px -7px rgba(102, 126, 234, 0.55);
    transform: translateY(-1px);
}

.opt-btn:active {
    transform: translateY(0);
}

.opt-btn .swatch {
    display: inline-block;
    width: 19px;
    height: 19px;
    border-radius: 5px;
    box-shadow: inset 0 0 0 1px rgba(0,0,0,0.08);
}

/* 按字义作答：反向干扰区（词字用干扰色） */
.opt-btn.reverse {
    font-size: 24px;
}

/* 短时闪现的弱化态（连续答不再闪烁） */
.opt-btn.dim {
    opacity: 0.55;
    pointer-events: none;
}

/* ================= 统计区 ================= */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 9px;
    margin-top: 14px;
}

.stat-grid.two {
    grid-template-columns: repeat(5, 1fr);
}

.stat {
    background: #f9fafb;
    border: 1px solid #eef0f4;
    border-radius: 8px;
    padding: 11px 6px;
    text-align: center;
}

.stat b {
    display: block;
    font-size: 21px;
    color: #4338ca;
    font-variant-numeric: tabular-nums;
    line-height: 1.2;
}

.stat span {
    display: block;
    font-size: 12px;
    color: #6b7280;
    margin-top: 3px;
}

.stat.extra-stat {
    grid-column: 1 / -1;
}

/* ================= 倒计时条 ================= */
.timer-bar {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 14px;
}

.timer-track {
    height: 8px;
    background: #eef0f4;
    border-radius: 6px;
    overflow: hidden;
}

.timer-fill {
    height: 100%;
    width: 100%;
    /* 初始占满，JS 实时更新剩余宽度 */
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 6px;
    transition: width 0.2s linear;
}

.timer-text {
    font-size: 12px;
    color: #6b7280;
    text-align: right;
}

/* ================= 记录区 ================= */
.record-title {
    font-size: 14px;
    font-weight: 700;
    color: #374151;
    margin-top: 16px;
    margin-bottom: 4px;
}

.record-box {
    border: 1px solid #f0f1f3;
    border-radius: 9px;
    background: #fff;
    padding: 10px 12px;
    min-height: 96px;
    max-height: 230px;
    overflow-y: auto;
}

.record-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    padding: 7px 0;
    border-bottom: 1px dashed #f3f4f6;
    font-size: 13px;
    color: #4b5563;
}

.record-item:last-child {
    border-bottom: none;
}

.record-item .tick {
    font-weight: 700;
    font-size: 14px;
}

.record-item.ok  .tick { color: #16a34a; }
.record-item.fail .tick { color: #ef4444; }

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 84px;
    color: #9ca3af;
    font-size: 13px;
    text-align: center;
}

@keyframes pop {
    0%   { transform: scale(0.6); opacity: 0; }
    100% { transform: scale(1);   opacity: 1; }
}

/* ================= 状态栏 ================= */
.status-bar {
    border: 1px dashed #d8dce4;
    background: #fbfcfe;
}

/* ================= 响应式 ================= */
@media (max-width: 600px) {
    .stageword {
        font-size: 60px;
    }

    .opt-btn {
        font-size: 17px;
        padding: 11px 4px;
    }

    .stat-grid,
    .stat-grid.two {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ================= 底部 SEO 文案卡片 ================= */
.seo-article {
    display: block;
    margin-top: 28px;
    padding: 22px 26px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 10px 30px -18px rgba(51, 65, 85, 0.18);
    color: #374151;
    font-size: 15.5px;
    line-height: 1.85;
}

.seo-article > h2 {
    margin: 18px 0 10px;
    padding-left: 12px;
    border-left: 4px solid #667eea;
    background: linear-gradient(90deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 19px;
    line-height: 1.4;
}

.seo-article > h2:first-child {
    margin-top: 2px;
}

.seo-article p:first-of-type {
    margin-top: 6px;
}

.seo-article ul {
    padding-left: 20px;
}

.seo-article li {
    position: relative;
    list-style: none;
    margin: 9px 0;
    padding-left: 22px;
}

.seo-article li::before {
    content: '◆';
    position: absolute;
    left: 0;
    top: 1px;
    color: #667eea;
    font-size: 0.7em;
}

.seo-article strong {
    color: #4c5bd4;
    font-weight: 700;
}

@media (max-width: 420px) {
    .seo-article {
        padding: 16px 14px;
        font-size: 14.5px;
    }
}

@media (max-width: 420px) {
    .options-row {
        grid-template-columns: repeat(2, 1fr);
    }
}
