/* 易错姓氏读音查询 /tool/surname-pron */

.sp-main { margin-bottom: 24px; }

/* 搜索 */
.sp-search-row {
    display: flex; gap: 10px; align-items: stretch; margin-bottom: 10px; flex-wrap: wrap;
}
.sp-search-box {
    flex: 1; display: flex; gap: 6px; min-width: 200px;
    background: var(--c-bg-card); border: 1px solid var(--c-border);
    border-radius: 99px; padding: 4px; box-shadow: var(--shadow-sm);
}
.sp-search-input {
    flex: 1; border: none; background: transparent;
    padding: 8px 14px; font-size: 15px; font-family: inherit;
    outline: none; color: var(--c-text);
}
.sp-search-btn {
    padding: 8px 16px; border: none; border-radius: 99px;
    background: linear-gradient(135deg, #ea580c, #f97316); color: #fff;
    font-family: inherit; font-size: 13px; font-weight: 700; cursor: pointer;
    transition: transform .14s ease;
}
.sp-search-btn:hover { transform: translateY(-1px); }
.sp-quiz-btn {
    padding: 8px 16px; border: 1.5px solid #ea580c; border-radius: 99px;
    background: transparent; color: #ea580c; font-family: inherit;
    font-size: 13px; font-weight: 700; cursor: pointer; white-space: nowrap;
}
.sp-quiz-btn:hover { background: rgba(234,88,12,.08); }

/* 热门 */
.sp-hot-row {
    display: flex; align-items: center; gap: 6px; margin-bottom: 14px;
    flex-wrap: wrap;
}
.sp-hot-label { font-size: 12px; color: var(--c-text-muted); font-weight: 700; }
.sp-hot-chips { display: flex; gap: 4px; flex-wrap: wrap; }
.sp-hot-chip {
    padding: 4px 10px; border: 1px solid var(--c-border); border-radius: 99px;
    background: var(--c-surface-soft); font-family: inherit;
    font-size: 12px; color: var(--c-text); cursor: pointer; transition: all .14s ease;
}
.sp-hot-chip:hover { border-color: #ea580c; color: #ea580c; }
.sp-hot-chip.active { background: #ea580c; color: #fff; border-color: #ea580c; }

/* 卡片 */
.sp-card {
    background: var(--c-bg-card); border: 1px solid var(--c-border);
    border-radius: var(--radius-md); box-shadow: var(--shadow-sm);
    padding: 22px; margin-bottom: 16px;
}
.sp-card-head {
    display: flex; gap: 16px; align-items: center; margin-bottom: 16px;
    padding-bottom: 16px; border-bottom: 1px dashed var(--c-border);
}
.sp-surname-big {
    width: 80px; height: 80px; display: inline-flex;
    align-items: center; justify-content: center;
    font-size: 56px; font-weight: 800; color: #ea580c;
    background: linear-gradient(135deg, rgba(234,88,12,.12), rgba(234,88,12,.04));
    border-radius: 16px; line-height: 1;
}
.sp-surname-info { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.sp-correct-pron, .sp-wrong-pron {
    display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.sp-label {
    font-size: 11px; font-weight: 700; color: var(--c-text-muted);
    padding: 2px 8px; border-radius: 99px;
}
.sp-correct-pron .sp-label { background: rgba(22,163,74,.1); color: #16a34a; }
.sp-wrong-pron .sp-label { background: rgba(239,68,68,.1); color: #ef4444; }
.sp-pinyin { font-size: 26px; font-weight: 800; color: var(--c-text); }
.sp-audio-char { font-size: 13px; color: var(--c-text-muted); }
.sp-speak-btn {
    padding: 4px 10px; border: 1px solid #ea580c; border-radius: 99px;
    background: transparent; font-size: 14px; cursor: pointer; color: #ea580c;
}
.sp-speak-btn:hover { background: rgba(234,88,12,.08); }
.sp-wrong-item {
    font-size: 18px; color: #ef4444; font-weight: 700; text-decoration: line-through;
}

.sp-card-section { margin-bottom: 12px; }
.sp-section-title {
    font-size: 12px; font-weight: 800; color: var(--c-text-sub); margin-bottom: 6px;
}
.sp-why, .sp-famous, .sp-kid-tip {
    font-size: 14px; line-height: 1.9; padding: 10px 14px; border-radius: 10px;
}
.sp-why { background: rgba(59,130,246,.08); }
.sp-famous { background: rgba(139,92,246,.08); }
.sp-kid-tip { background: rgba(245,158,11,.08); color: #b45309; font-weight: 700; font-style: italic; }

/* 分类列表 */
.sp-cat-section {
    background: var(--c-bg-card); border: 1px solid var(--c-border);
    border-radius: var(--radius-md); box-shadow: var(--shadow-sm);
    padding: 18px; margin-bottom: 16px;
}
.sp-cat-title { font-size: 15px; font-weight: 800; margin-bottom: 10px; }
.sp-cat-tabs { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 12px; }
.sp-cat-tab {
    padding: 5px 12px; border: 1px solid var(--c-border); border-radius: 99px;
    background: transparent; font-family: inherit; font-size: 12px; cursor: pointer;
    transition: all .14s ease;
}
.sp-cat-tab:hover { border-color: #ea580c; color: #ea580c; }
.sp-cat-tab.active { background: #ea580c; color: #fff; border-color: #ea580c; }
.sp-cat-list {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 6px;
}
.sp-cat-item {
    padding: 6px 10px; border: 1px solid var(--c-border); border-radius: 8px;
    background: #fff; cursor: pointer; transition: all .14s ease;
    font-size: 13px;
}
.sp-cat-item:hover { border-color: #ea580c; transform: translateY(-1px); }
.sp-cat-item .sp-c-surname { font-weight: 800; color: var(--c-text); font-size: 15px; }
.sp-cat-item .sp-c-pinyin { font-size: 11px; color: var(--c-primary); margin-left: 4px; }

/* 测验 */
.sp-quiz-section {
    background: var(--c-bg-card); border: 1px solid var(--c-border);
    border-radius: var(--radius-md); box-shadow: var(--shadow-sm); padding: 18px;
}
.sp-quiz-head {
    display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px;
}
.sp-quiz-head span { font-size: 14px; font-weight: 700; }
.sp-quiz-gen {
    padding: 5px 12px; border: 1px solid var(--c-border); border-radius: 99px;
    background: transparent; font-family: inherit; font-size: 12px; cursor: pointer;
}
.sp-quiz-gen:hover { border-color: #ea580c; color: #ea580c; }
.sp-quiz-sentence {
    font-size: 16px; line-height: 1.9; padding: 12px 16px;
    background: #fff; border-radius: 10px; margin-bottom: 12px; font-weight: 600; text-align: center;
}
.sp-quiz-options {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 8px;
}
.sp-quiz-option {
    padding: 12px; border: 2px solid var(--c-border); border-radius: 10px;
    background: #fff; font-family: inherit; font-size: 16px; font-weight: 800; cursor: pointer;
    transition: all .14s ease;
}
.sp-quiz-option:hover { border-color: #ea580c; transform: translateY(-1px); }
.sp-quiz-option.is-picked { border-color: #ea580c; background: rgba(234,88,12,.08); }
.sp-quiz-option.is-correct { border-color: #16a34a; background: rgba(22,163,74,.1); color: #16a34a; }
.sp-quiz-option.is-wrong { border-color: #ef4444; background: rgba(239,68,68,.08); color: #ef4444; }
.sp-quiz-result {
    margin-top: 12px; padding: 10px; background: var(--c-surface-soft); border-radius: 8px;
}
.sp-quiz-feedback { font-size: 14px; line-height: 1.8; font-weight: 700; color: #ea580c; margin-bottom: 4px; }
.sp-quiz-explain { font-size: 13px; color: var(--c-text-sub); line-height: 1.8; }
.sp-progress { text-align: center; font-size: 12.5px; color: var(--c-text-muted); margin-top: 8px; }
.sp-progress b { color: #ea580c; }

/* 响应式 */
@media (max-width: 640px) {
    .sp-card-head { flex-direction: column; text-align: center; }
    .sp-quiz-options { grid-template-columns: 1fr; }
    .sp-surname-big { width: 64px; height: 64px; font-size: 44px; }
}

/* 黑夜模式 */
[data-theme="dark"] .sp-why { background: rgba(59,130,246,.15); }
[data-theme="dark"] .sp-famous { background: rgba(139,92,246,.15); }
[data-theme="dark"] .sp-kid-tip { background: rgba(245,158,11,.15); }
[data-theme="dark"] .sp-quiz-sentence,
[data-theme="dark"] .sp-quiz-option,
[data-theme="dark"] .sp-cat-item { background: var(--c-surface-soft); }
