/* Uedu 臺灣台語教室 */
.tg-page { background: #f6f8fa; min-height: 70vh; padding-bottom: 48px; color: #1f2d3d; }
.tg-page .container { max-width: 960px; }
.tg-hero { color: #fff; padding: 40px 0 34px; }
.tg-hero-sm { padding: 26px 0 24px; }
.tg-hero-title { color: #fff; font-size: 30px; font-weight: 700; margin: 0 0 8px; }
.tg-hero-sub { color: #fff; font-size: 16px; margin: 0; max-width: 680px; line-height: 1.7; }
.tg-hero-lo { color: #fff; font-size: 20px; margin: 0; }
.tg-hero-actions { margin-top: 20px; display: flex; gap: 10px; flex-wrap: wrap; }
.tg-crumb { color: #fff; font-size: 14px; display: inline-block; margin-bottom: 10px; }
.tg-crumb:hover { color: #fff; text-decoration: underline; }

.tg-btn { display: inline-flex; align-items: center; gap: 6px; border-radius: 50rem; padding: 6px 18px; font-size: 14px; font-weight: 600; border: 1px solid transparent; cursor: pointer; background: none; line-height: 1.5; }
.tg-btn:hover { text-decoration: none; }
.tg-btn:disabled { opacity: .55; cursor: default; }
.tg-btn-primary { background: #3C6F9A; color: #fff; }
.tg-btn-primary:hover { background: #2d5578; color: #fff; }
.tg-btn-soft { background: rgba(60, 111, 154, 0.08); border-color: rgba(60, 111, 154, 0.4); color: #3C6F9A; }
.tg-btn-soft:hover { background: rgba(60, 111, 154, 0.18); color: #2d5578; }
.tg-btn-third { background: #fff; border-color: #cbd2d9; color: #52606d; }
.tg-btn-third:hover { background: #f1f4f7; color: #3e4c59; }
.tg-btn-white { background: #fff; color: #2d5578; }
.tg-btn-white:hover { background: #eef3f7; color: #2d5578; }
.tg-btn-ghost { border-color: rgba(255, 255, 255, .75); color: #fff; }
.tg-btn-ghost:hover { background: rgba(255, 255, 255, .14); color: #fff; }

.tg-notice { background: #fbf6e6; border: 1px solid #e6d9a8; color: #6b5a1e; border-radius: 10px; padding: 12px 16px; margin-top: 20px; }
.tg-stage { margin-top: 30px; }
.tg-stage-title { font-size: 20px; font-weight: 700; margin: 0 0 4px; }
.tg-stage-desc { color: #52606d; margin: 0 0 12px; }
.tg-stage-soon .tg-stage-title { color: #52606d; }
.tg-lessons { display: grid; gap: 10px; }
.tg-lesson-card { display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid #e0e6ec; border-radius: 12px; padding: 14px 16px; color: inherit; }
.tg-lesson-card:hover { border-color: #3C6F9A; box-shadow: 0 0 10px rgba(60, 111, 154, 0.18); color: inherit; text-decoration: none; }
.tg-lesson-no { flex: 0 0 34px; height: 34px; border-radius: 50%; background: #eef3f7; color: #3C6F9A; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.tg-lesson-card.is-done .tg-lesson-no { background: #00b297; color: #fff; }
.tg-lesson-body { flex: 1; min-width: 0; display: block; }
.tg-lesson-title { display: block; font-weight: 700; }
.tg-lesson-sub { display: block; color: #52606d; font-size: 14px; }
.tg-lesson-meta { flex: 0 0 auto; text-align: right; font-size: 13px; color: #52606d; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.tg-lesson-state { font-weight: 600; color: #00806d; }
.tg-chip { display: inline-block; border-radius: 50rem; padding: 1px 10px; background: #eef3f7; color: #3C6F9A; font-size: 12.5px; font-weight: 600; margin-right: 6px; }

.tg-lesson-wrap { padding-top: 20px; }
.tg-block { background: #fff; border: 1px solid #e0e6ec; border-radius: 12px; padding: 20px 22px; margin-bottom: 16px; }
.tg-block-title { font-size: 18px; font-weight: 700; margin: 0 0 10px; }
.tg-text { font-size: 16px; line-height: 1.85; margin: 0 0 10px; color: #27323f; }
.tg-text:last-child { margin-bottom: 0; }
.tg-hint { color: #52606d; font-size: 14px; margin: 0 0 14px; line-height: 1.7; }
.tg-points { display: grid; grid-template-columns: 74px 1fr; gap: 6px 12px; margin: 12px 0 0; }
.tg-points dt { font-weight: 700; }
.tg-points dd { margin: 0; }

.tg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 10px; }
.tg-word { background: #fff; border: 1px solid #cbd2d9; border-radius: 12px; padding: 12px 8px; text-align: center; cursor: pointer; font: inherit; color: inherit; }
.tg-word:hover { border-color: #3C6F9A; box-shadow: 0 0 10px rgba(60, 111, 154, 0.18); }
.tg-word.is-heard { border-color: #00b297; }
.tg-word-tone { display: block; font-size: 12.5px; color: #52606d; }
.tg-word-han { display: block; font-size: 26px; font-weight: 700; line-height: 1.3; }
.tg-word-lo { display: block; font-size: 16px; color: #2d5578; }
.tg-sub { font-size: 11px; font-weight: 600; color: #52606d; margin-left: 2px; top: -0.9em; }
.tg-entry-note { color: #3e4c59; font-size: 14px; line-height: 1.7; margin: 0 0 12px; }
.tg-set { margin-bottom: 14px; }
.tg-set:last-child { margin-bottom: 0; }
.tg-set-label { font-weight: 700; margin-bottom: 6px; }

.tg-quiz { max-width: 560px; }
.tg-quiz-top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.tg-big-play { width: 64px; height: 64px; border-radius: 50%; border: none; background: #3C6F9A; color: #fff; font-size: 30px; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.tg-big-play:hover { background: #2d5578; }
.tg-big-lo { font-size: 34px; font-weight: 700; color: #2d5578; }
.tg-count { color: #52606d; font-size: 14px; }
.tg-bar { height: 6px; background: #e8edf2; border-radius: 3px; overflow: hidden; margin-bottom: 14px; }
.tg-bar > span { display: block; height: 100%; background: #00b297; width: 0; transition: width .2s; }
.tg-options { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.tg-option { border-radius: 50rem; border: 1px solid rgba(60, 111, 154, 0.4); background: rgba(60, 111, 154, 0.08); color: #2d5578; padding: 8px 18px; font-size: 16px; font-weight: 600; cursor: pointer; }
.tg-option:hover:not(:disabled) { background: rgba(60, 111, 154, 0.18); }
.tg-option:disabled { cursor: default; }
.tg-option.is-right { background: #00806d; border-color: #00806d; color: #fff; }
.tg-option.is-wrong { background: rgba(220, 53, 69, 0.08); border-color: rgba(220, 53, 69, 0.5); color: #a93226; }
.tg-feedback { background: #f6f8fa; border-radius: 10px; padding: 12px 14px; margin-bottom: 12px; line-height: 1.7; }
.tg-feedback-head { font-weight: 700; }
.tg-feedback-head.is-right { color: #00806d; }
.tg-feedback-head.is-wrong { color: #a93226; }
.tg-feedback-word { font-size: 18px; font-weight: 700; }
.tg-feedback-gloss { color: #3e4c59; font-size: 14px; }
.tg-done { color: #00806d; font-weight: 700; display: flex; align-items: center; gap: 6px; }
.tg-input { width: 100%; max-width: 320px; border: 1px solid #cbd2d9; border-radius: 10px; padding: 8px 12px; font-size: 18px; }
.tg-input:focus { border-color: #3C6F9A; outline: none; box-shadow: 0 0 0 3px rgba(60, 111, 154, 0.15); }
.tg-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 10px; }

.tg-contours { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 12px; }
.tg-contour { text-align: center; }
.tg-contour svg { display: block; width: 100%; height: auto; }
.tg-contour-label { font-size: 13px; color: #3e4c59; font-weight: 600; }

.tg-sentence { border-top: 1px solid #edf0f3; padding: 14px 0; }
.tg-sentence:first-child { border-top: none; padding-top: 0; }
.tg-sentence-han { font-size: 20px; font-weight: 700; }
.tg-sentence-lo { font-size: 16px; color: #2d5578; }
.tg-sentence-zh { font-size: 14px; color: #52606d; margin-bottom: 10px; }
.tg-pitch { margin-top: 8px; max-width: 520px; }
.tg-pitch svg { width: 100%; height: auto; display: block; }
.tg-legend { display: flex; gap: 14px; font-size: 13px; color: #3e4c59; margin-top: 4px; }
.tg-legend i { display: inline-block; width: 14px; height: 3px; border-radius: 2px; vertical-align: middle; margin-right: 4px; }
.tg-msg { color: #52606d; font-size: 14px; margin-top: 6px; }

.tg-finish { background: #e8f7f4; border: 1px solid #a9e0d5; color: #00695a; border-radius: 12px; padding: 12px 16px; margin-bottom: 16px; font-weight: 700; }
.tg-nav { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 20px; }
.tg-source { color: #52606d; font-size: 13px; line-height: 1.7; margin-top: 24px; }
.tg-source a { color: #3C6F9A; text-decoration: underline; }

.tg-search { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; max-width: 620px; }
.tg-search input { flex: 1 1 240px; border-radius: 50rem; border: none; padding: 8px 18px; font-size: 16px; color: #1f2d3d; }
.tg-result-count { color: #52606d; }
.tg-results { background: #fff; border: 1px solid #e0e6ec; border-radius: 12px; overflow: hidden; margin-bottom: 16px; }
.tg-result { display: flex; gap: 10px; padding: 12px 16px; border-top: 1px solid #edf0f3; align-items: flex-start; }
.tg-result:first-child { border-top: none; }
.tg-result-body { flex: 1; min-width: 0; }
.tg-result-han { font-size: 18px; font-weight: 700; color: #2d5578; margin-right: 8px; }
.tg-result-lo { color: #2d5578; }
.tg-result-def { color: #3e4c59; font-size: 14px; margin-top: 2px; }
.tg-empty { background: #fff; border: 1px solid #e0e6ec; border-radius: 12px; padding: 24px; text-align: center; color: #3e4c59; }
.tg-audio-btn { flex: 0 0 auto; width: 32px; height: 32px; border-radius: 50%; border: 1px solid rgba(60, 111, 154, 0.4); background: rgba(60, 111, 154, 0.08); color: #3C6F9A; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; padding: 0; }
.tg-audio-btn:hover { background: rgba(60, 111, 154, 0.18); }
.tg-hero .tg-audio-btn { background: #fff; color: #2d5578; border-color: #fff; }
.tg-senses { padding-left: 22px; margin: 0; }
.tg-senses > li { margin-bottom: 14px; }
.tg-sense-def { font-size: 16px; }
.tg-example { display: flex; gap: 10px; background: #f6f8fa; border-radius: 10px; padding: 10px 12px; margin-top: 8px; }
.tg-example-han { font-weight: 700; }
.tg-example-lo { color: #2d5578; }
.tg-example-zh { color: #52606d; font-size: 14px; }
.tg-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.tg-table th { text-align: left; color: #52606d; font-size: 13px; border-bottom: 2px solid #e8edf2; padding: 6px 8px; }
.tg-table td { border-bottom: 1px solid #edf0f3; padding: 6px 8px; }

@media (max-width: 575px) {
    .tg-hero-title { font-size: 25px; }
    .tg-block { padding: 16px; }
    .tg-lesson-sub { display: none; }
}
