.test-topic-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.9fr);
    gap: 1.4rem;
    align-items: stretch;
}

.topic-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 0.9rem;
}

.intent-chips,
.topic-stat-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
}

.intent-chips span,
.topic-stat-list span {
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    background: #f8fafc;
    border: 1px solid #dbe7f5;
    color: #334155;
    font-size: 0.85rem;
}

.topic-side-card,
.topic-rule-card,
.topic-scene-card {
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.06);
}

.topic-side-card {
    padding: 1.3rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.topic-side-value {
    font-size: 2.2rem;
    line-height: 1;
    font-weight: 700;
    color: #0f172a;
}

.topic-side-title {
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
}

.topic-side-desc {
    color: #64748b;
    line-height: 1.7;
    font-size: 0.92rem;
}

.topic-entry-note {
    margin: 0 0 1.2rem;
    color: #64748b;
    line-height: 1.7;
}

.topic-entry-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.topic-entry-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 0.9rem;
    align-items: center;
    padding: 1rem 1.05rem;
    border-radius: 14px;
    border: 1px solid #dbe7f5;
    background: #fff;
    text-decoration: none;
    color: inherit;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.topic-entry-card:hover {
    transform: translateY(-2px);
    border-color: #2563eb;
    box-shadow: 0 16px 28px rgba(37, 99, 235, 0.12);
    text-decoration: none;
}

.topic-entry-icon {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 1.5rem;
}

.topic-entry-name {
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.25rem;
}

.topic-entry-desc {
    color: #64748b;
    line-height: 1.6;
    font-size: 0.88rem;
}

.topic-entry-arrow {
    color: #2563eb;
    font-weight: 700;
}

.topic-scene-grid,
.topic-rule-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.topic-scene-card,
.topic-rule-card {
    padding: 1.2rem 1.1rem;
}

.topic-card-title {
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.45rem;
}

.topic-card-desc {
    color: #64748b;
    line-height: 1.75;
    font-size: 0.9rem;
}

@media (max-width: 900px) {
    .test-topic-hero,
    .topic-entry-grid,
    .topic-scene-grid,
    .topic-rule-grid {
        grid-template-columns: 1fr;
    }
}
