/* 小古文朗读停顿标注 /tool/guwen-pause */

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

/* 工具栏 */
.gp-toolbar {
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px; flex-wrap: wrap; margin-bottom: 14px;
    padding: 10px 14px; background: var(--c-bg-card);
    border: 1px solid var(--c-border); border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}
.gp-toolbar-left, .gp-toolbar-right { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.gp-title { font-size: 15px; font-weight: 800; }
.gp-star-count {
    font-size: 13px; font-weight: 700; color: #ea580c;
    padding: 4px 10px; border-radius: 99px; background: rgba(234,88,12,.1);
}
.gp-preset-tabs { display: flex; gap: 3px; flex-wrap: wrap; }
.gp-preset-btn {
    padding: 5px 10px; border: 1px solid var(--c-border);
    border-radius: 99px; background: var(--c-surface-soft);
    font-family: inherit; font-size: 11.5px; color: var(--c-text);
    cursor: pointer; transition: all .14s ease; white-space: nowrap;
}
.gp-preset-btn:hover { border-color: #ea580c; color: #ea580c; }
.gp-preset-btn.active { background: #ea580c; color: #fff; border-color: #ea580c; }

/* 卡片 */
.gp-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;
}
.gp-card-head {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 14px; gap: 12px; flex-wrap: wrap;
}
.gp-card-title { font-size: 20px; font-weight: 800; color: var(--c-text); margin-right: 8px; }
.gp-card-desc { font-size: 12px; color: var(--c-text-muted); }
.gp-card-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.gp-btn {
    height: 34px; padding: 0 14px; border-radius: 99px;
    font-family: inherit; font-size: 12px; font-weight: 700;
    cursor: pointer; transition: all .14s ease; border: 1px solid transparent;
}
.gp-btn--ghost { background: transparent; color: var(--c-text-sub); border-color: var(--c-border); }
.gp-btn--ghost:hover { border-color: #ea580c; color: #ea580c; }
.gp-btn--primary { background: linear-gradient(135deg, #ea580c, #f97316); color: #fff; }
.gp-btn--primary:hover { transform: translateY(-1px); box-shadow: 0 2px 8px rgba(234,88,12,.3); }
.gp-btn--block { width: 100%; height: 42px; font-size: 14px; border-radius: 12px; margin-top: 10px; }
.gp-close { background: transparent; border: none; cursor: pointer; font-size: 16px; color: var(--c-text-muted); }

/* 停顿图例 */
.gp-pause-legend {
    display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 14px;
    padding: 8px 12px; background: var(--c-surface-soft); border-radius: 8px;
    font-size: 12px; color: var(--c-text-muted);
}
.gp-legend-item { display: flex; align-items: center; gap: 4px; }
.gp-symbol { font-weight: 800; font-size: 16px; }
.gp-symbol--dot { color: #16a34a; }
.gp-symbol--mid { color: #f59e0b; }
.gp-symbol--long { color: #ef4444; }

/* 古文文本 */
.gp-poem-box {
    font-size: 18px; line-height: 2.2;
    padding: 20px; background: linear-gradient(135deg, rgba(139,92,246,.06), rgba(139,92,246,.02));
    border: 1px solid rgba(139,92,246,.2); border-radius: 12px;
    color: var(--c-text); letter-spacing: 2px;
    margin-bottom: 14px;
}
.gp-poem-row { white-space: pre-wrap; }
.gp-poem-row.annotated .gp-pause-dot { color: #16a34a; font-weight: 800; }
.gp-poem-row.annotated .gp-pause-mid { color: #f59e0b; font-weight: 800; }
.gp-poem-row.annotated .gp-pause-long { color: #ef4444; font-weight: 800; }

/* 逐句讲解 */
.gp-explain-box {
    padding: 14px; background: var(--c-surface-soft); border-radius: 10px;
    border: 1px solid var(--c-border);
}
.gp-explain-head {
    display: flex; justify-content: space-between; align-items: center;
    font-size: 14px; font-weight: 800; margin-bottom: 10px;
}
.gp-explain-list { margin-bottom: 10px; }
.gp-explain-item {
    padding: 8px 12px; background: #fff; border-radius: 8px;
    margin-bottom: 6px; font-size: 13px; line-height: 1.8;
}
.gp-explain-item .gp-item-text { font-weight: 700; color: #ea580c; margin-bottom: 2px; }
.gp-explain-item .gp-item-reason { color: var(--c-text-sub); }
.gp-kid-tip {
    font-size: 13px; padding: 10px 14px; background: rgba(245,158,11,.08);
    border-radius: 8px; color: #b45309; font-weight: 700;
}

/* 自定义 */
.gp-custom-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;
}
.gp-custom-head { font-size: 14px; font-weight: 700; margin-bottom: 10px; }
.gp-custom-textarea {
    width: 100%; padding: 12px 14px; font-size: 15px; font-family: inherit;
    line-height: 1.9; color: var(--c-text); background: #fff;
    border: 1.5px solid var(--c-border); border-radius: 10px; outline: none;
    resize: vertical; box-sizing: border-box;
}
.gp-custom-textarea:focus { border-color: #ea580c; }

/* 测验 */
.gp-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;
    margin-bottom: 14px;
}
.gp-quiz-head {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 12px;
}
.gp-quiz-head span { font-size: 14px; font-weight: 700; }
.gp-quiz-gen {
    padding: 5px 12px; border: 1px solid var(--c-border); border-radius: 99px;
    background: transparent; font-family: inherit; font-size: 12px; cursor: pointer;
}
.gp-quiz-gen:hover { border-color: #ea580c; color: #ea580c; }
.gp-quiz-box { text-align: center; }
.gp-quiz-sentence {
    font-size: 16px; line-height: 1.9; padding: 12px 16px;
    background: #fff; border-radius: 10px; margin-bottom: 12px; font-weight: 600;
}
.gp-quiz-options { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.gp-quiz-option {
    padding: 10px 16px; border: 2px solid var(--c-border); border-radius: 10px;
    background: #fff; font-family: inherit; font-size: 14px; cursor: pointer;
    transition: all .14s ease;
}
.gp-quiz-option:hover { border-color: #ea580c; transform: translateY(-1px); }
.gp-quiz-option.is-picked { border-color: #ea580c; background: rgba(234,88,12,.08); }
.gp-quiz-option.is-correct { border-color: #16a34a; background: rgba(22,163,74,.1); color: #16a34a; }
.gp-quiz-option.is-wrong { border-color: #ef4444; background: rgba(239,68,68,.08); color: #ef4444; }
.gp-quiz-result { margin-top: 14px; padding: 10px; text-align: left; background: var(--c-surface-soft); border-radius: 8px; }
.gp-quiz-feedback { font-size: 14px; line-height: 1.8; font-weight: 700; color: #ea580c; margin-bottom: 4px; }
.gp-quiz-explain { font-size: 13px; color: var(--c-text-sub); line-height: 1.8; }

.gp-progress { text-align: center; font-size: 12.5px; color: var(--c-text-muted); }
.gp-progress b { color: #ea580c; }

/* 响应式 */
@media (max-width: 640px) {
    .gp-card { padding: 16px; }
    .gp-poem-box { font-size: 16px; padding: 14px; }
}

/* 黑夜模式 */
[data-theme="dark"] .gp-poem-box { background: rgba(139,92,246,.12); }
[data-theme="dark"] .gp-explain-item { background: var(--c-surface-soft); }
[data-theme="dark"] .gp-quiz-sentence,
[data-theme="dark"] .gp-quiz-option,
[data-theme="dark"] .gp-custom-textarea { background: var(--c-surface-soft); }
