:root {
    --gs-green: #1D9E75;
    --gs-green-dark: #0F6E56;
    --gs-green-soft: #E1F5EE;
    --gs-purple: #534AB7;
    --gs-purple-soft: #EEEDFE;
    --gs-bg: #F5F8F6;
    --gs-card: #FFFFFF;
    --gs-text: #1F2A24;
    --gs-muted: #6B7A72;
    --gs-line: #E2E9E4;
    --gs-radius: 16px;
}

* {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background: var(--gs-bg);
    color: var(--gs-text);
    font-family: system-ui, -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    font-size: 15px;
    line-height: 1.6;
}

h1, h2, h3 {
    margin: 0;
    font-weight: 600;
    letter-spacing: -0.01em;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font: inherit;
    color: inherit;
    border: 0;
    background: none;
    cursor: pointer;
    text-align: left;
    padding: 0;
}

.gs-wrap {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 20px;
}

.gs-header {
    position: sticky;
    top: 0;
    z-index: 30;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: saturate(140%) blur(8px);
    border-bottom: 1px solid var(--gs-line);
}

.gs-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
}

.gs-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.gs-logo {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 11px;
    background: var(--gs-green-soft);
}

.gs-logo svg {
    display: block;
    width: 32px;
    height: 32px;
}

.gs-brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.gs-brand-text strong {
    font-size: 15px;
    font-weight: 600;
}

.gs-brand-text em {
    font-style: normal;
    font-size: 11px;
    color: var(--gs-muted);
}

.gs-nav {
    display: flex;
    gap: 18px;
    font-size: 14px;
    color: var(--gs-muted);
}

.gs-nav a:hover {
    color: var(--gs-green-dark);
}

.gs-hero {
    padding: 32px 0 20px;
}

.gs-hero-inner {
    display: flex;
    align-items: center;
    gap: 24px;
}

.gs-hero-text {
    flex: 1;
    min-width: 0;
}

.gs-hero-panda {
    position: relative;
    flex: none;
    width: 132px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.gs-hero-panda .gs-panda {
    width: 132px;
    height: 158px;
    opacity: 1;
    transform: none;
    transition: none;
}

.gs-hero-hint {
    position: absolute;
    top: -4px;
    left: 50%;
    z-index: 2;
    padding: 4px 11px;
    border-radius: 10px;
    background: var(--gs-green);
    color: #fff;
    font-size: 11px;
    font-weight: 500;
    white-space: nowrap;
    transform: translateX(-50%);
    animation: hintBob 1.9s ease-in-out infinite;
}

@keyframes hintBob {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-5px); }
}

.gs-hero h1 {
    font-size: 26px;
}

.gs-hero p {
    margin: 6px 0 0;
    color: var(--gs-muted);
    font-size: 14px;
}

.gs-stats {
    display: flex;
    gap: 28px;
    margin-top: 20px;
}

.gs-stat {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.gs-stat b {
    color: var(--gs-green-dark);
    font-size: 22px;
    font-weight: 600;
    line-height: 1;
}

.gs-stat span {
    font-size: 12px;
    color: var(--gs-muted);
}

.gs-search {
    display: flex;
    gap: 8px;
    margin-top: 20px;
    max-width: 420px;
}

.gs-search input {
    flex: 1;
    min-width: 0;
    height: 42px;
    padding: 0 14px;
    font-size: 14px;
    color: var(--gs-text);
    background: #fff;
    border: 1px solid var(--gs-line);
    border-radius: 999px;
    outline: none;
    transition: border-color 0.15s ease;
}

.gs-search input:focus {
    border-color: var(--gs-green);
}

.gs-search button {
    flex: none;
    height: 42px;
    padding: 0 20px;
    border-radius: 999px;
    background: var(--gs-green);
    color: #fff;
    font-size: 14px;
    text-align: center;
    transition: background 0.15s ease;
}

.gs-search button:hover {
    background: var(--gs-green-dark);
}

.gs-search-inline {
    margin-bottom: 20px;
}

.gs-section-head {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 12px;
}

.gs-section-head h2 {
    font-size: 16px;
}

.gs-section-desc {
    font-size: 12px;
    color: var(--gs-muted);
}

.gs-soon {
    padding: 22px 20px;
    border: 1px dashed var(--gs-line);
    border-radius: var(--gs-radius);
    background: rgba(255, 255, 255, 0.6);
}

.gs-soon p {
    margin: 0;
    font-size: 14px;
    color: var(--gs-muted);
}

.gs-soon-hint {
    margin-top: 6px !important;
    font-size: 12px !important;
    color: var(--gs-muted);
    opacity: 0.75;
}

.gs-empty {
    padding: 40px 20px;
    text-align: center;
    font-size: 14px;
    color: var(--gs-muted);
    background: #fff;
    border: 1px solid var(--gs-line);
    border-radius: var(--gs-radius);
}

.gs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 14px;
    padding-bottom: 24px;
}

.gs-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px;
    background: var(--gs-card);
    border: 1px solid var(--gs-line);
    border-radius: var(--gs-radius);
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.gs-card:hover {
    transform: translateY(-2px);
    border-color: var(--gs-green);
    box-shadow: 0 8px 24px rgba(29, 158, 117, 0.12);
}

.gs-card-num {
    flex: none;
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: var(--gs-green-soft);
    color: var(--gs-green-dark);
    font-size: 20px;
    font-weight: 600;
}

.gs-card-body {
    flex: 1;
    min-width: 0;
}

.gs-card-body h3 {
    font-size: 16px;
    font-weight: 600;
}

.gs-tags {
    display: flex;
    gap: 6px;
    margin-top: 6px;
    flex-wrap: wrap;
}

.gs-tag {
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 999px;
}

.gs-tag-video {
    background: var(--gs-purple-soft);
    color: var(--gs-purple);
}

.gs-tag-audio {
    background: var(--gs-green-soft);
    color: var(--gs-green-dark);
}

.gs-card-arrow {
    color: var(--gs-muted);
    font-size: 16px;
}

.gs-page-head {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 22px 0 16px;
    flex-wrap: wrap;
}

.gs-page-head h1 {
    font-size: 22px;
    flex: 1;
}

.gs-back,
.gs-next-unit {
    font-size: 13px;
    color: var(--gs-muted);
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid var(--gs-line);
    background: #fff;
    white-space: nowrap;
}

.gs-back:hover,
.gs-next-unit:hover {
    color: var(--gs-green-dark);
    border-color: var(--gs-green);
}

/* Unit 页媒体播放器容器（注意别和页头徽章 .gs-player 撞名） */
.gs-mediaplayer {
    position: sticky;
    top: 60px;
    z-index: 20;
    padding: 12px;
    margin-bottom: 20px;
    background: #fff;
    border: 1px solid var(--gs-line);
    border-radius: var(--gs-radius);
    box-shadow: 0 4px 16px rgba(31, 42, 36, 0.05);
}

.gs-now {
    font-size: 13px;
    color: var(--gs-muted);
    padding: 0 4px 10px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gs-media {
    display: none;
    width: 100%;
    border-radius: 10px;
}

.gs-media.is-on {
    display: block;
}

video.gs-media {
    max-height: 56vh;
    max-width: 100%;
    background: #0d1117;
}

audio.gs-media {
    height: 44px;
}

.gs-section {
    padding-bottom: 22px;
}

.gs-section h2 {
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.gs-count {
    font-size: 12px;
    font-weight: 400;
    color: var(--gs-muted);
    background: #fff;
    border: 1px solid var(--gs-line);
    border-radius: 999px;
    padding: 0 8px;
}

.gs-grid-sm {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    padding-bottom: 0;
}

.gs-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    background: #fff;
    border: 1px solid var(--gs-line);
    border-radius: 12px;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.gs-item:hover {
    border-color: var(--gs-purple);
}

.gs-item.is-active {
    border-color: var(--gs-purple);
    background: var(--gs-purple-soft);
}

.gs-item-icon {
    flex: none;
    width: 26px;
    height: 26px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--gs-purple-soft);
    color: var(--gs-purple);
    font-size: 10px;
}

.gs-item.is-active .gs-item-icon {
    background: var(--gs-purple);
    color: #fff;
}

.gs-item-title {
    font-size: 13px;
    line-height: 1.4;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.gs-list {
    background: #fff;
    border: 1px solid var(--gs-line);
    border-radius: var(--gs-radius);
    overflow: hidden;
}

.gs-row {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 11px 16px;
    border-bottom: 1px solid var(--gs-line);
    transition: background 0.12s ease;
}

.gs-row:last-child {
    border-bottom: 0;
}

.gs-row:hover {
    background: #FAFCFA;
}

.gs-row.is-active {
    background: var(--gs-green-soft);
}

.gs-row.is-active .gs-row-title {
    color: var(--gs-green-dark);
    font-weight: 500;
}

.gs-row.is-active .gs-item-icon {
    background: var(--gs-green);
    color: #fff;
}

.gs-row-num {
    flex: none;
    width: 26px;
    font-size: 12px;
    color: var(--gs-muted);
    font-variant-numeric: tabular-nums;
}

.gs-row-title {
    flex: 1;
    font-size: 14px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gs-alert {
    padding: 18px 20px;
    background: #FFF8E6;
    border: 1px solid #F0DCA8;
    border-radius: 12px;
    margin-bottom: 20px;
    font-size: 14px;
}

.gs-alert strong {
    display: block;
    margin-bottom: 6px;
}

.gs-alert p {
    margin: 4px 0;
    color: #7A6420;
}

.gs-alert code {
    background: #fff;
    padding: 1px 6px;
    border-radius: 5px;
    font-size: 12px;
}

.gs-footer {
    border-top: 1px solid var(--gs-line);
    padding: 20px 0 30px;
    margin-top: 10px;
    font-size: 12px;
    color: var(--gs-muted);
}

.gs-now-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 4px 10px;
}

.gs-now {
    flex: 1;
    min-width: 0;
    padding: 0 !important;
}

.gs-resume {
    flex: none;
    padding: 5px 14px;
    border-radius: 999px;
    background: var(--gs-green-soft);
    color: var(--gs-green-dark);
    font-size: 12px;
    font-weight: 500;
    transition: background 0.15s ease;
}

.gs-resume:hover {
    background: #C8EDDF;
}

/* 关闭播放器（收起视频/音频，回到列表） */
.gs-close {
    flex: none;
    padding: 7px 14px;
    border-radius: 999px;
    background: #EEF1F0;
    color: var(--gs-muted);
    font-size: 12.5px;
    font-weight: 500;
    transition: background 0.15s ease, color 0.15s ease;
}

.gs-close:hover {
    background: #E3E8E6;
    color: var(--gs-text);
}

.gs-more {
    width: 100%;
    margin-top: 10px;
    padding: 11px;
    border: 1px dashed var(--gs-line);
    border-radius: 12px;
    text-align: center;
    font-size: 13px;
    color: var(--gs-muted);
    transition: border-color 0.15s ease, color 0.15s ease;
}

.gs-more:hover {
    border-color: var(--gs-green);
    color: var(--gs-green-dark);
}

.gs-continue {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 10px;
}

.gs-continue-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    background: #fff;
    border: 1px solid var(--gs-line);
    border-radius: 12px;
    transition: border-color 0.15s ease, transform 0.15s ease;
}

.gs-continue-item:hover {
    border-color: var(--gs-green);
    transform: translateY(-1px);
}

.gs-continue-num {
    flex: none;
    width: 26px;
    height: 26px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: var(--gs-purple-soft);
    color: var(--gs-purple);
    font-size: 12px;
    font-weight: 500;
}

.gs-continue-title {
    flex: 1;
    min-width: 0;
    font-size: 13px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gs-item-video {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0;
    overflow: hidden;
}

.gs-thumb {
    display: block;
    position: relative;
    aspect-ratio: 16 / 9;
    background: #E8EEEA;
    overflow: hidden;
}

.gs-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.25s ease;
}

.gs-item-video:hover .gs-thumb img {
    transform: scale(1.04);
}

.gs-thumb-play {
    position: absolute;
    right: 8px;
    bottom: 8px;
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-size: 10px;
}

.gs-item-video .gs-item-title {
    padding: 10px 12px;
    font-size: 13px;
    line-height: 1.4;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.gs-item-video.is-active .gs-item-title {
    color: var(--gs-purple);
    font-weight: 500;
}

.gs-tabs {
    display: flex;
    gap: 6px;
    padding: 4px;
    margin-bottom: 16px;
    background: #fff;
    border: 1px solid var(--gs-line);
    border-radius: 999px;
}

.gs-tab {
    flex: 1;
    padding: 9px 14px;
    border-radius: 999px;
    text-align: center;
    font-size: 14px;
    color: var(--gs-muted);
    transition: background 0.15s ease, color 0.15s ease;
}

.gs-tab span {
    margin-left: 3px;
    font-size: 12px;
    opacity: 0.75;
}

.gs-tab.is-on {
    background: var(--gs-green);
    color: #fff;
    font-weight: 500;
}

.gs-section[hidden] {
    display: none !important;
}

.gs-quiz-btn {
    flex: none;
    padding: 7px 16px;
    border-radius: 999px;
    background: var(--gs-green);
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(29, 158, 117, 0.24);
}

.gs-quiz-btn:hover {
    background: var(--gs-green-dark);
}

.gs-tag-quiz {
    background: #FAEEDA;
    color: #854F0B;
}

/* ===== 关卡地图 ===== */
.qz-map-head {
    flex: 1;
    text-align: center;
    min-width: 0;
}

.qz-map-head h1 {
    font-size: 18px;
}

.qz-map-head p {
    margin: 3px 0 0;
    font-size: 12px;
    color: var(--gs-muted);
}

.qz-map {
    padding: 18px 0 96px;
}

.qz-map-stats {
    display: flex;
    gap: 10px;
    margin-bottom: 6px;
}

.qz-map-stat {
    flex: 1;
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 6px;
    padding: 10px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid var(--gs-line);
}

.qz-map-stat b {
    font-size: 19px;
    font-weight: 700;
    color: var(--gs-green-dark);
}

.qz-map-stat span {
    font-size: 12px;
    color: var(--gs-muted);
}

/* 课程分组条 */
.qz-course {
    padding: 4px 0 6px;
}

.qz-course-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    max-width: 300px;
    margin: 0 auto 20px;
    padding: 9px 14px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid var(--gs-line);
    box-shadow: 0 2px 8px rgba(31, 42, 36, 0.04);
}

.qz-course-ico {
    flex: none;
    font-size: 18px;
    line-height: 1;
}

.qz-course-name {
    flex: 1;
    min-width: 0;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.qz-course-prog {
    flex: none;
    font-size: 12px;
    color: var(--gs-muted);
    font-variant-numeric: tabular-nums;
}

.qz-course-prog b {
    color: var(--gs-green-dark);
}

.qz-course.is-active .qz-course-bar {
    border-color: #9BD9C4;
    background: #F2FBF7;
}

.qz-course.is-clear .qz-course-bar {
    border-color: #EFD9A8;
    background: #FEF9EE;
}

/* 节点行 */
.qz-node-row {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 26px;
}

.qz-node-row:nth-child(odd) {
    transform: translateX(-34px);
}

.qz-node-row:nth-child(even) {
    transform: translateX(34px);
}

.qz-node-row .gs-panda.qz-guide {
    position: absolute;
    top: -34px;
    right: 2px;
    width: 56px;
    height: 68px;
    opacity: 1;
    transform: none;
    pointer-events: auto;
    cursor: pointer;
    z-index: 5;
}

.qz-guide-bubble {
    position: absolute;
    top: -26px;
    left: 50%;
    transform: translateX(-50%);
    padding: 5px 11px;
    border-radius: 11px;
    background: #fff;
    border: 2px solid var(--gs-green);
    color: var(--gs-green-dark);
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(31, 42, 36, 0.14);
}

.qz-node {
    position: relative;
    width: 78px;
    height: 78px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: linear-gradient(180deg, #2CB98B 0%, #1D9E75 100%);
    box-shadow: 0 5px 0 #157A5A, 0 10px 20px rgba(29, 158, 117, 0.24);
    transition: transform 0.12s ease, box-shadow 0.12s ease;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.qz-node:active {
    transform: translateY(3px);
    box-shadow: 0 2px 0 #157A5A;
}

.qz-node-ico {
    font-size: 34px;
    line-height: 1;
}

.qz-node-speak {
    background: linear-gradient(180deg, #6C63D8 0%, #534AB7 100%);
    box-shadow: 0 5px 0 #3F3792, 0 10px 20px rgba(83, 74, 183, 0.24);
}

.qz-node-speak:active {
    box-shadow: 0 2px 0 #3F3792;
}

.qz-node-picture {
    background: linear-gradient(180deg, #4CC6F7 0%, #1CB0F6 100%);
    box-shadow: 0 5px 0 #1587BD, 0 10px 20px rgba(28, 176, 246, 0.24);
}

.qz-node-picture:active {
    box-shadow: 0 2px 0 #1587BD;
}

/* 节点下方的小星星 */
.qz-node-stars {
    position: absolute;
    left: 50%;
    bottom: -16px;
    transform: translateX(-50%);
    font-size: 11px;
    line-height: 1;
    letter-spacing: -1px;
    color: #E8A33D;
    white-space: nowrap;
}

.qz-node-lock {
    display: none;
    position: absolute;
    right: -4px;
    bottom: -2px;
    font-size: 15px;
    line-height: 1;
}


/* 完成态 */
.qz-node-row.is-done .qz-node {
    background: linear-gradient(180deg, #F4C95C 0%, #E0A32E 100%);
    box-shadow: 0 5px 0 #B77F16, 0 10px 20px rgba(224, 163, 46, 0.26);
}

.qz-node-row.is-done .qz-node:active {
    box-shadow: 0 2px 0 #B77F16;
}

/* 锁定态 */
.qz-node-row.is-locked {
    cursor: not-allowed;
}

.qz-node-row.is-locked .qz-node {
    background: #E7ECE9;
    box-shadow: 0 5px 0 #D6DCD8;
}

.qz-node-row.is-locked .qz-node-ico {
    filter: grayscale(1);
    opacity: 0.42;
}

.qz-node-row.is-locked .qz-node-lock {
    display: block;
}

.qz-node-row.is-locked .qz-node-meta {
    opacity: 0.55;
}

/* 当前节点 */
.qz-node-row.is-current .qz-node {
    animation: qzPulse 1.9s ease-in-out infinite;
}

.qz-node-row.is-current .qz-node-ico {
    animation: qzBob 1.7s ease-in-out infinite;
}

.qz-node-meta {
    margin-top: 9px;
    max-width: 204px;
    text-align: center;
}

.qz-node-title {
    display: block;
    font-size: 13px;
    font-weight: 600;
}

.qz-node-hint {
    display: -webkit-box;
    margin-top: 2px;
    font-size: 11px;
    line-height: 1.4;
    color: var(--gs-muted);
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

@keyframes qzPulse {
    0%, 100% {
        box-shadow: 0 5px 0 rgba(15, 110, 86, 0.22), 0 0 0 0 rgba(29, 158, 117, 0.34);
    }
    50% {
        box-shadow: 0 5px 0 rgba(15, 110, 86, 0.22), 0 0 0 14px rgba(29, 158, 117, 0);
    }
}

@keyframes qzBob {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

.qz-map-foot {
    padding: 8px 0 44px;
    text-align: center;
    font-size: 13px;
    color: var(--gs-muted);
}

.qz-map-foot span {
    font-size: 16px;
    font-weight: 600;
    color: var(--gs-green-dark);
}

/* ===== 熊猫胖达（吉祥物） ===== */
.gs-panda-wrap {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 90;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 16px;
    pointer-events: none;
}

.gs-panda-bubble {
    max-width: 76%;
    margin-bottom: 8px;
    padding: 12px 22px;
    border-radius: 20px;
    background: #fff;
    border: 2px solid var(--gs-green);
    color: var(--gs-green-dark);
    font-size: 17px;
    font-weight: 600;
    text-align: center;
    box-shadow: 0 8px 22px rgba(31, 42, 36, 0.14);
    opacity: 0;
    transform: translateY(12px) scale(0.9);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.gs-panda-bubble.is-show {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.gs-bubble-pinyin {
    display: block;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.12em;
    color: var(--gs-muted);
}

.gs-bubble-word {
    display: block;
    margin-top: 1px;
    font-size: 30px;
    font-weight: 700;
    line-height: 1.15;
    color: var(--gs-green-dark);
}

.gs-panda {
    width: 116px;
    height: 139px;
    opacity: 0;
    transform: translateY(40px) scale(0.85);
    transition: opacity 0.25s ease, transform 0.32s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: auto;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

/* ===== 道具：球、书、虫子 ===== */
.gs-panda-ball,
.gs-panda-ball-shadow,
.gs-panda-book,
.gs-panda-bug {
    display: none;
}

.gs-panda.is-playball .gs-panda-ball-shadow {
    display: block;
    transform-box: view-box;
    transform-origin: 166px 225px;
    animation: pBallShadow 0.68s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.gs-panda.is-playball .gs-panda-ball {
    display: block;
    transform-box: view-box;
    transform-origin: 166px 219px;
    animation: pBallBounce 0.68s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pBallBounce {
    0% { transform: translateY(0) scale(1.1, 0.86); }
    12% { transform: translateY(-12px) scale(0.96, 1.06); }
    45% { transform: translateY(-42px) scale(1, 1); }
    58% { transform: translateY(-34px) scale(1, 1); }
    88% { transform: translateY(-3px) scale(1.06, 0.94); }
    100% { transform: translateY(0) scale(1.12, 0.84); }
}

@keyframes pBallShadow {
    0%, 100% { transform: scale(1.05); opacity: 0.14; }
    45% { transform: scale(0.55); opacity: 0.05; }
}

.gs-panda.is-playball .gs-panda-arm-r,
.gs-panda.is-playball .gs-panda-paw-r {
    animation: pPatArm 0.68s ease-in-out infinite;
}

.gs-panda.is-playball .gs-panda-head {
    animation: pBallHead 0.68s ease-in-out infinite;
}

@keyframes pPatArm {
    0%, 100% { transform: rotate(-6deg); }
    45% { transform: rotate(-22deg); }
}

@keyframes pBallHead {
    0%, 100% { transform: rotate(4deg); }
    45% { transform: rotate(-2deg); }
}

.gs-panda.is-read .gs-panda-book {
    display: block;
    transform-box: view-box;
    transform-origin: 100px 200px;
    animation: pBookBob 3s ease-in-out infinite;
}

.gs-panda.is-read .gs-panda-head {
    animation: pReadHead 3s ease-in-out infinite;
}

@keyframes pBookBob {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-2px) rotate(-1.5deg); }
}

@keyframes pReadHead {
    0%, 100% { transform: rotate(-3deg); }
    50% { transform: rotate(-7deg); }
}

/* 虫子出现 */
.gs-panda.show-bug .gs-panda-bug {
    display: block;
    transform-box: view-box;
    transform-origin: 26px 230px;
    animation: pBugCrawl 1.5s ease-in-out infinite;
}

@keyframes pBugCrawl {
    0%, 100% { transform: translateX(0) rotate(-2deg); }
    50% { transform: translateX(7px) rotate(2.5deg); }
}

/* 害怕：发抖 + 举双手 */
.gs-panda.is-scared {
    animation: pScared 0.17s linear infinite;
}

@keyframes pScared {
    0%, 100% { transform: translate(-2px, 0) rotate(-2.5deg); }
    50% { transform: translate(2px, 0) rotate(2.5deg); }
}

.gs-panda.is-scared .gs-panda-arm-l {
    animation: pArmUpL 0.32s ease-in-out infinite alternate;
}

.gs-panda.is-scared .gs-panda-arm-r {
    animation: pArmUpR 0.32s ease-in-out infinite alternate;
}

@keyframes pArmUpL {
    from { transform: rotate(0deg); }
    to { transform: rotate(40deg); }
}

@keyframes pArmUpR {
    from { transform: rotate(0deg); }
    to { transform: rotate(-40deg); }
}

.gs-panda.is-show {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.gs-panda svg {
    display: block;
    width: 100%;
    height: 100%;
    overflow: visible;
}

/* ===== 航欣·部件骨架 ===== */
.gs-panda-head,
.gs-panda-ear-l,
.gs-panda-ear-r {
    transform-box: view-box;
    transform-origin: 100px 140px;
}

.gs-panda-arm-l {
    transform-box: view-box;
    transform-origin: 58px 146px;
}

.gs-panda-arm-r {
    transform-box: view-box;
    transform-origin: 142px 146px;
}

.gs-panda-paw-l {
    transform-box: view-box;
    transform-origin: 58px 150px;
}

.gs-panda-paw-r {
    transform-box: view-box;
    transform-origin: 142px 150px;
}

.gs-panda-leg-l {
    transform-box: view-box;
    transform-origin: 76px 178px;
}

.gs-panda-leg-r {
    transform-box: view-box;
    transform-origin: 124px 178px;
}

.gs-panda-mouth {
    transform-box: view-box;
    transform-origin: 100px 122px;
}

/* 眨眼：眼睛整体压扁（0.14s 闭合） */
.gs-panda-eye-l,
.gs-panda-eye-r {
    transform-box: fill-box;
    transform-origin: center;
    animation: pBlink 3.6s ease-in-out infinite;
}

.gs-panda-eye-r {
    animation-delay: 0.03s;
}

@keyframes pBlink {
    0%, 90%, 100% { transform: scaleY(1); }
    94% { transform: scaleY(0.1); }
}

/* 说话：嘴开合 */
.gs-panda.is-talk .gs-panda-mouth {
    animation: pTalk 0.3s ease-in-out infinite;
}

@keyframes pTalk {
    0%, 100% { transform: scaleY(1); }
    50% { transform: scaleY(1.55); }
}

/* 招手：手臂绕肩抬起 */
.gs-panda.is-wave .gs-panda-arm-r,
.gs-panda.is-wave .gs-panda-paw-r {
    animation: pWaveArm 0.52s ease-in-out infinite alternate;
}

@keyframes pWaveArm {
    from { transform: rotate(0deg); }
    to { transform: rotate(-42deg); }
}

.gs-panda.is-wave .gs-panda-head {
    animation: pWaveHead 1.04s ease-in-out infinite alternate;
}

@keyframes pWaveHead {
    from { transform: rotate(-3deg); }
    to { transform: rotate(3deg); }
}

/* ===== 举旗加油 ===== */
.gs-panda-flag {
    display: none;
}

.gs-panda.is-flag .gs-panda-flag {
    display: block;
    transform-box: view-box;
    /* 绕旗杆底端摆动，杆底始终留在手掌里，不会脱手 */
    transform-origin: 154px 196px;
    animation: pFlagSwing 1.15s ease-in-out infinite alternate;
}

@keyframes pFlagSwing {
    from { transform: rotate(-2.6deg); }
    to { transform: rotate(2.6deg); }
}

.gs-panda.is-flag .gs-panda-head {
    animation: pFlagHead 1.15s ease-in-out infinite alternate;
}

@keyframes pFlagHead {
    from { transform: rotate(-2deg); }
    to { transform: rotate(3deg); }
}

.gs-panda.is-flag .gs-panda-arm-r {
    animation: pFlagArm 1.15s ease-in-out infinite alternate;
}

@keyframes pFlagArm {
    from { transform: rotate(-3deg); }
    to { transform: rotate(2deg); }
}

.gs-panda.is-pop {
    animation: pandaPop 0.62s ease-in-out 3;
}

/* 动作 1：跳跃（蹲 → 拉长起跳 → 落地压扁 → 回弹） */
.gs-panda.is-jump {
    animation: pJump 0.95s cubic-bezier(0.36, 0.07, 0.19, 0.97) infinite;
}

.gs-panda.is-jump .gs-panda-head {
    animation: pHeadBob 0.95s ease-in-out infinite;
}

.gs-panda.is-jump .gs-panda-ear-l,
.gs-panda.is-jump .gs-panda-ear-r {
    animation: pHeadBob 0.95s ease-in-out infinite;
    animation-delay: 0.05s;
}

@keyframes pJump {
    0% { transform: translateY(0) scale(1, 1); }
    14% { transform: translateY(7px) scale(1.1, 0.86); }
    32% { transform: translateY(-44px) scale(0.9, 1.16); }
    50% { transform: translateY(-30px) scale(0.98, 1.04) rotate(6deg); }
    68% { transform: translateY(0) scale(1.18, 0.82); }
    82% { transform: translateY(-14px) scale(0.96, 1.06); }
    93% { transform: translateY(0) scale(1.04, 0.97); }
    100% { transform: translateY(0) scale(1, 1); }
}

@keyframes pHeadBob {
    0%, 100% { transform: rotate(0deg); }
    14% { transform: rotate(-3deg); }
    32% { transform: rotate(5deg); }
    68% { transform: rotate(-6deg); }
    82% { transform: rotate(3deg); }
}

/* 动作 2：转圈 */
.gs-panda.is-spin {
    animation: pSpin 0.92s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes pSpin {
    0% { transform: rotate(0deg) scale(1); }
    30% { transform: rotate(-22deg) scale(1.1); }
    55% { transform: rotate(170deg) scale(0.92); }
    80% { transform: rotate(345deg) scale(1.08); }
    100% { transform: rotate(360deg) scale(1); }
}

/* 动作 3：左右摇摆舞 */
.gs-panda.is-dance {
    animation: pDance 0.86s ease-in-out infinite;
}

.gs-panda.is-dance .gs-panda-head {
    animation: pDanceHead 0.86s ease-in-out infinite;
}

.gs-panda.is-dance .gs-panda-ear-l,
.gs-panda.is-dance .gs-panda-ear-r {
    animation: pDanceHead 0.86s ease-in-out infinite;
    animation-delay: 0.07s;
}

@keyframes pDance {
    0%, 100% { transform: translateX(-7px) rotate(-8deg); }
    25% { transform: translateX(0) rotate(0deg) scaleY(0.94); }
    50% { transform: translateX(7px) rotate(8deg); }
    75% { transform: translateX(0) rotate(0deg) scaleY(0.94); }
}

@keyframes pDanceHead {
    0%, 100% { transform: rotate(7deg); }
    50% { transform: rotate(-7deg); }
}

/* 动作 4：惊讶弹大 */
.gs-panda.is-wow {
    animation: pWow 0.98s cubic-bezier(0.34, 1.6, 0.5, 1) infinite;
}

@keyframes pWow {
    0% { transform: scale(0.85); }
    35% { transform: scale(1.3) rotate(-5deg); }
    50% { transform: scale(1.16) rotate(5deg); }
    65% { transform: scale(1.24) rotate(-3deg); }
    80% { transform: scale(1.08) rotate(3deg); }
    100% { transform: scale(1); }
}

/* 动作 5：开心抖动 */
.gs-panda.is-wiggle {
    animation: pWiggle 0.82s ease-in-out infinite;
}

@keyframes pWiggle {
    0%, 100% { transform: rotate(0deg) scale(1); }
    12% { transform: rotate(-9deg) scale(1.04); }
    24% { transform: rotate(9deg) scale(1.04); }
    36% { transform: rotate(-7deg) scale(1.02); }
    48% { transform: rotate(7deg) scale(1.02); }
    60% { transform: rotate(-4deg) scale(1.01); }
    72% { transform: rotate(4deg) scale(1.01); }
    84% { transform: rotate(-2deg) scale(1); }
}

/* ===== 地图跳转按钮 + 提示 ===== */
.qz-jump {
    position: fixed;
    right: 18px;
    bottom: 22px;
    z-index: 40;
    padding: 12px 22px;
    border-radius: 999px;
    background: var(--gs-green);
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    box-shadow: 0 6px 18px rgba(29, 158, 117, 0.3);
    transition: transform 0.12s ease;
}

.qz-jump:active {
    transform: scale(0.96);
}

.qz-toast {
    position: fixed;
    left: 50%;
    bottom: 92px;
    z-index: 95;
    padding: 11px 22px;
    border-radius: 999px;
    background: rgba(31, 42, 36, 0.88);
    color: #fff;
    font-size: 14px;
    transform: translateX(-50%);
    animation: qzToastIn 0.22s ease;
}

@keyframes qzToastIn {
    from { opacity: 0; transform: translateX(-50%) translateY(8px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* ===== 3星过场小动画 ===== */
.gz-story {
    position: fixed;
    inset: 0;
    z-index: 105;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 22px;
    background: radial-gradient(circle at 50% 38%, #1B5C49 0%, #07130D 72%);
}

.gz-story-scene {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    width: 272px;
    height: 300px;
}

.gz-story-scene > .gs-panda {
    width: 172px;
    height: 206px;
    opacity: 1;
    transform: none;
    pointer-events: none;
    transition: none;
}

.gz-story-prop {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.gz-story-prop svg {
    position: absolute;
    display: block;
}

.gz-story-caption {
    min-height: 54px;
    max-width: 320px;
    margin-top: 14px;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.5;
    text-align: center;
    color: #FFD84D;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.55);
}

.gz-story-skip {
    margin-top: 16px;
    padding: 8px 22px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    text-align: center;
}

.gz-prop-bug {
    left: 4px;
    bottom: 12px;
    animation: gzBugMove 2.2s ease-in-out infinite;
}

@keyframes gzBugMove {
    0%, 100% { transform: translate(0, 0) rotate(-4deg); }
    50% { transform: translate(26px, 0) rotate(5deg); }
}

.gz-prop-fish {
    right: -26px;
    bottom: 46px;
    animation: gzFishSwim 1.6s ease-in-out infinite;
}

@keyframes gzFishSwim {
    0%, 100% { transform: translateX(34px) rotate(-5deg); }
    50% { transform: translateX(-26px) rotate(5deg); }
}

.gz-prop-book-fall {
    left: 50%;
    top: 0;
    margin-left: -26px;
    animation: gzBookFall 1.05s cubic-bezier(0.4, 0, 0.8, 1) forwards;
}

@keyframes gzBookFall {
    0% { transform: translateY(-46px) rotate(-20deg); opacity: 0; }
    35% { opacity: 1; }
    100% { transform: translateY(128px) rotate(14deg); opacity: 1; }
}

.gz-prop-flag {
    left: 50%;
    bottom: 92px;
    margin-left: 30px;
    transform-origin: bottom left;
    animation: gzFlagWave 1.3s ease-in-out infinite;
}

@keyframes gzFlagWave {
    0%, 100% { transform: rotate(-4deg); }
    50% { transform: rotate(4deg); }
}

.gz-prop-zzz {
    left: 50%;
    top: 34px;
    margin-left: 42px;
    animation: gzZzz 2s ease-in-out infinite;
}

@keyframes gzZzz {
    0% { transform: translateY(0) scale(0.8); opacity: 0; }
    40% { opacity: 1; }
    100% { transform: translateY(-22px) scale(1.1); opacity: 0; }
}

/* 睡着 */
.gs-panda.is-sleep .gs-panda-head {
    animation: pSleepHead 3s ease-in-out infinite;
}

.gs-panda.is-sleep .gs-panda-eye-l,
.gs-panda.is-sleep .gs-panda-eye-r {
    animation: none;
    transform: scaleY(0.08);
}

@keyframes pSleepHead {
    0%, 100% { transform: rotate(-9deg); }
    50% { transform: rotate(-13deg); }
}

/* 被吓醒：猛抬头 */
.gs-panda.is-shock {
    animation: pShock 0.5s cubic-bezier(0.34, 1.8, 0.5, 1) 1;
}

@keyframes pShock {
    0% { transform: translateY(0) scale(1, 1); }
    30% { transform: translateY(-18px) scale(0.92, 1.12); }
    60% { transform: translateY(0) scale(1.1, 0.9); }
    100% { transform: translateY(0) scale(1, 1); }
}

/* ===== 结算庆祝（全屏） ===== */
.gs-panda-stareyes {
    display: none;
}

.is-star .gs-panda-pupils {
    display: none;
}

.is-star .gs-panda-stareyes {
    display: block;
}

.gz-result {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 22px;
    overflow: hidden;
}

.gz-result-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 36%, #16493A 0%, #0A1E17 68%);
    opacity: 0;
    animation: gzFadeIn 0.35s ease forwards;
}

@keyframes gzFadeIn {
    to { opacity: 1; }
}

.gz-confetti {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
    pointer-events: none;
}

.gz-bit {
    position: absolute;
    top: -24px;
    border-radius: 2px;
    opacity: 0;
    animation-name: gzFall;
    animation-timing-function: linear;
    animation-fill-mode: forwards;
}

@keyframes gzFall {
    0% { opacity: 0; transform: translateY(-30px) rotate(0deg); }
    12% { opacity: 1; }
    100% { opacity: 0.85; transform: translateY(112vh) rotate(760deg); }
}

.gz-result-body {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 400px;
}

.gz-result-panda {
    position: relative;
    z-index: 0;
    width: 152px;
    height: 182px;
    opacity: 0;
    transform: translateY(140px) scale(0.35) rotate(-28deg);
    animation: gzPandaIn 0.78s cubic-bezier(0.2, 1.45, 0.45, 1) 0.06s forwards;
}

.gz-result-panda svg {
    display: block;
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 14px 26px rgba(0, 0, 0, 0.4));
}

@keyframes gzPandaIn {
    0% { opacity: 0; transform: translateY(140px) scale(0.35) rotate(-28deg); }
    62% { opacity: 1; transform: translateY(-18px) scale(1.14) rotate(7deg); }
    100% { opacity: 1; transform: translateY(0) scale(1) rotate(0deg); }
}

.gz-result-panda.is-ready svg {
    animation: gzPandaBreath 2.6s ease-in-out infinite;
}

@keyframes gzPandaBreath {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.025); }
}

.gz-halo {
    position: absolute;
    top: -36px;
    left: -36px;
    width: calc(100% + 72px);
    height: calc(100% + 72px);
    border: 3px dashed rgba(255, 216, 77, 0.6);
    border-radius: 50%;
    z-index: -1;
    animation: gzHaloSpin 7s linear infinite;
}

@keyframes gzHaloSpin {
    to { transform: rotate(360deg); }
}

.gz-result-title {
    margin-top: 2px;
    font-size: 30px;
    font-weight: 800;
    letter-spacing: 0.01em;
    color: #FFD84D;
    text-shadow: 0 3px 0 #B87C00, 0 10px 24px rgba(0, 0, 0, 0.45);
    opacity: 0;
    transform: scale(0.3) translateY(18px);
    animation: gzPopIn 0.55s cubic-bezier(0.34, 1.72, 0.5, 1) 0.52s forwards;
}

@keyframes gzPopIn {
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.gz-result-stars {
    display: flex;
    gap: 8px;
    margin-top: 14px;
}

.gz-star {
    display: inline-block;
    font-size: 48px;
    line-height: 1;
    color: #3D4F47;
    opacity: 0;
    transform: scale(0);
}

.gz-star.is-on {
    color: #FFC53D;
    text-shadow: 0 0 20px rgba(255, 197, 61, 0.8);
}

.gz-star.is-pop {
    animation: gzStarPop 0.58s cubic-bezier(0.34, 1.85, 0.5, 1) forwards;
}

@keyframes gzStarPop {
    0% { opacity: 0; transform: scale(0) rotate(-150deg); }
    68% { opacity: 1; transform: scale(1.5) rotate(14deg); }
    100% { opacity: 1; transform: scale(1) rotate(0deg); }
}

.gz-result-cards {
    display: flex;
    gap: 12px;
    margin-top: 22px;
    opacity: 0;
    transform: translateY(22px);
    animation: gzSlideUp 0.45s ease 1.35s forwards;
}

@keyframes gzSlideUp {
    to { opacity: 1; transform: translateY(0); }
}

.gz-card {
    min-width: 100px;
    padding: 11px 18px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid rgba(255, 255, 255, 0.16);
    text-align: center;
}

.gz-card-label {
    display: block;
    font-size: 12px;
    color: #98B3A8;
}

.gz-card-value {
    display: block;
    margin-top: 1px;
    font-size: 22px;
    font-weight: 700;
    color: #ffffff;
}

.gz-result-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: 100%;
    margin-top: 26px;
    opacity: 0;
    transform: translateY(22px);
    animation: gzSlideUp 0.45s ease 1.6s forwards;
}

.gz-btn-primary {
    display: block;
    width: 100%;
    padding: 16px;
    border-radius: 16px;
    background: #58CC02;
    box-shadow: 0 5px 0 #46A302;
    color: #fff;
    font-size: 17px;
    font-weight: 700;
    text-align: center;
    transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.gz-btn-primary:active {
    transform: translateY(4px);
    box-shadow: 0 1px 0 #46A302;
}

.gz-btn-ghost {
    padding: 8px 16px;
    font-size: 14px;
    color: #9DB5AB;
    text-align: center;
}

@media (max-width: 400px) {
    .gz-result-panda {
        width: 148px;
        height: 148px;
    }

    .gz-result-title {
        font-size: 26px;
    }

    .gz-star {
        font-size: 42px;
    }
}

/* ===== 闯关答题 ===== */
.qz-head {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 0 14px;
}

.qz-progress {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.qz-bar {
    flex: 1;
    height: 10px;
    border-radius: 999px;
    background: #E8EEEA;
    overflow: hidden;
}

.qz-bar span {
    display: block;
    height: 100%;
    width: 0;
    border-radius: 999px;
    background: var(--gs-green);
    transition: width 0.3s ease;
}

.qz-count {
    flex: none;
    font-size: 13px;
    color: var(--gs-muted);
    font-variant-numeric: tabular-nums;
}

.qz-start,
.qz-done {
    text-align: center;
    padding: 36px 16px 60px;
}

.qz-start-emoji,
.qz-done-emoji {
    font-size: 64px;
    line-height: 1;
}

.qz-start-title,
.qz-done-title {
    font-size: 24px;
    margin: 16px 0 8px;
}

.qz-start-sub {
    font-size: 14px;
    color: var(--gs-muted);
    margin: 0 0 26px;
}

.qz-start-btn {
    display: inline-block;
    padding: 15px 44px;
    border-radius: 999px;
    background: var(--gs-green);
    color: #fff;
    font-size: 17px;
    font-weight: 600;
    text-align: center;
    box-shadow: 0 8px 22px rgba(29, 158, 117, 0.28);
    transition: transform 0.12s ease, background 0.15s ease;
}

.qz-start-btn:active {
    transform: scale(0.97);
}

.qz-start-btn:hover {
    background: var(--gs-green-dark);
}

.qz-stage {
    padding-bottom: 30px;
}

.qz-prompt {
    margin-bottom: 14px;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
}

.qz-audio-card {
    display: grid;
    place-items: center;
    height: 132px;
    border-radius: 20px;
    background: var(--gs-green-soft);
}

.qz-audio-note {
    font-size: 52px;
    line-height: 1;
    color: var(--gs-green-dark);
}

.qz-video {
    display: block;
    width: 100%;
    max-height: 44vh;
    border-radius: 16px;
    background: #0d1117;
}

.qz-play {
    display: block;
    margin: 14px auto 18px;
    padding: 11px 26px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--gs-green);
    color: var(--gs-green-dark);
    font-size: 15px;
    font-weight: 500;
    text-align: center;
}

.qz-play:active {
    background: var(--gs-green-soft);
}

.qz-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.qz-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 116px;
    padding: 16px 10px;
    background: #fff;
    border: 2px solid var(--gs-line);
    border-radius: 18px;
    text-align: center;
    transition: transform 0.12s ease, border-color 0.12s ease, background 0.12s ease;
}

.qz-option:active {
    transform: scale(0.97);
}

.qz-icon {
    font-size: 46px;
    line-height: 1;
}

.qz-text {
    font-size: 15px;
    font-weight: 500;
    color: var(--gs-text);
}

.qz-option.has-icon .qz-text {
    font-size: 13px;
    font-weight: 400;
    color: var(--gs-muted);
}

.qz-option.is-right {
    border-color: var(--gs-green);
    background: var(--gs-green-soft);
    animation: qzPop 0.35s ease;
}

.qz-option.is-wrong {
    border-color: #E24B4A;
    background: #FCEBEB;
    animation: qzShake 0.32s ease;
}

.qz-option:disabled {
    cursor: default;
    opacity: 0.92;
}

@keyframes qzPop {
    0% { transform: scale(1); }
    50% { transform: scale(1.06); }
    100% { transform: scale(1); }
}

@keyframes qzShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-7px); }
    75% { transform: translateX(7px); }
}

.qz-done-title {
    margin: 14px 0 10px;
}

.qz-stars {
    font-size: 34px;
    letter-spacing: 5px;
}

.qz-score-line {
    margin: 12px 0 28px;
    font-size: 15px;
    color: var(--gs-muted);
}

.qz-score-line strong {
    font-size: 19px;
    color: var(--gs-green-dark);
}

.qz-done-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

@media (max-width: 560px) {
    .gs-wrap {
        padding: 0 14px;
    }

    .gs-hero-inner {
        flex-direction: column-reverse;
        align-items: flex-start;
        gap: 6px;
    }

    .gs-hero-panda {
        align-self: center;
    }

    .gs-hero h1 {
        font-size: 22px;
    }

    .gs-grid,
    .gs-grid-sm {
        grid-template-columns: 1fr;
    }

    .gs-page-head h1 {
        font-size: 19px;
        width: 100%;
        order: -1;
    }

    .gs-mediaplayer {
        top: 56px;
    }

    video.gs-media {
        max-height: 40vh;
    }
}

/* ============================================================
   小朋友身份：页头徽章 / 取名弹窗 / 轻提示 / 闯关排名 / 排行榜
   ============================================================ */

/* ---- 页头名字徽章 ---- */
.gs-nav {
    margin-left: auto;
    margin-right: 14px;
}

.gs-player {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 13px 5px 9px;
    border-radius: 999px;
    background: var(--gs-green-soft);
    color: var(--gs-green-dark);
    font-size: 13.5px;
    font-weight: 600;
    border: 1px solid transparent;
    white-space: nowrap;
    transition: background 0.18s ease, border-color 0.18s ease, transform 0.12s ease;
}

.gs-player:hover {
    background: #D3EFE3;
    border-color: rgba(29, 158, 117, 0.26);
}

.gs-player:active {
    transform: scale(0.97);
}

.gs-player[hidden] {
    display: none;
}

.gs-player-avatar {
    font-size: 15px;
    line-height: 1;
}

.gs-player-name {
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ---- 取名弹窗 ---- */
body.gs-modal-open {
    overflow: hidden;
}

.gs-name-mask {
    position: fixed;
    inset: 0;
    z-index: 130;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(16, 32, 25, 0.46);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    animation: gsFadeIn 0.2s ease both;
}

.gs-name-mask[hidden] {
    display: none;
}

@keyframes gsFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.gs-name-card {
    position: relative;
    width: 100%;
    max-width: 372px;
    padding: 26px 22px 20px;
    background: var(--gs-card);
    border-radius: 24px;
    box-shadow: 0 26px 64px -14px rgba(12, 52, 38, 0.42);
    text-align: center;
    animation: gsPopIn 0.28s cubic-bezier(0.2, 0.9, 0.3, 1.25) both;
}

@keyframes gsPopIn {
    from { opacity: 0; transform: translateY(14px) scale(0.94); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.gs-name-close {
    position: absolute;
    top: 10px;
    right: 12px;
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: var(--gs-muted);
    font-size: 22px;
    line-height: 1;
    transition: background 0.16s ease, color 0.16s ease;
}

.gs-name-close:hover {
    background: var(--gs-bg);
    color: var(--gs-text);
}

.gs-name-panda {
    width: 62px;
    height: 62px;
    margin: 0 auto 12px;
    display: grid;
    place-items: center;
    font-size: 32px;
    border-radius: 50%;
    background: var(--gs-green-soft);
}

.gs-name-title {
    font-size: 19px;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--gs-text);
}

.gs-name-sub {
    margin: 7px auto 16px;
    max-width: 280px;
    font-size: 13px;
    line-height: 1.55;
    color: var(--gs-muted);
}

.gs-name-input {
    display: block;
    width: 100%;
    height: 48px;
    padding: 0 16px;
    font-family: inherit;
    font-size: 17px;
    font-weight: 600;
    text-align: center;
    color: var(--gs-text);
    background: var(--gs-bg);
    border: 2px solid var(--gs-line);
    border-radius: 14px;
    outline: none;
    transition: border-color 0.16s ease, background 0.16s ease;
}

.gs-name-input::placeholder {
    font-size: 15px;
    font-weight: 400;
    color: #A9B8B0;
}

.gs-name-input:focus {
    background: #fff;
    border-color: var(--gs-green);
}

/* ---- 语音输入话筒 ---- */
.gs-name-field {
    position: relative;
}

.gs-name-field.has-mic .gs-name-input {
    padding-left: 48px;
    padding-right: 48px;
}

.gs-name-mic {
    position: absolute;
    top: 50%;
    right: 7px;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--gs-green-soft);
    color: var(--gs-green-dark);
    font-size: 17px;
    line-height: 1;
    transition: background 0.16s ease, color 0.16s ease;
}

.gs-name-mic[hidden] {
    display: none;
}

.gs-name-mic.is-listening {
    background: #E8534A;
    color: #fff;
    animation: gsMicPulse 1.15s ease-in-out infinite;
}

@keyframes gsMicPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(232, 83, 74, 0.55); }
    50% { box-shadow: 0 0 0 9px rgba(232, 83, 74, 0); }
}

.gs-name-hint {
    margin: 8px 0 16px;
    font-size: 12px;
    color: var(--gs-muted);
}

.gs-name-hint.is-error {
    color: #C0392B;
    font-weight: 600;
}

.gs-name-ok:disabled {
    opacity: 0.6;
}

.gs-name-ok {
    display: block;
    width: 100%;
    height: 48px;
    border-radius: 14px;
    background: var(--gs-green);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    box-shadow: 0 8px 20px -6px rgba(29, 158, 117, 0.5);
    transition: background 0.16s ease, transform 0.12s ease;
}

.gs-name-ok:hover {
    background: var(--gs-green-dark);
}

.gs-name-ok:active {
    transform: scale(0.98);
}

.gs-name-auto {
    display: block;
    width: 100%;
    padding: 11px 0 2px;
    text-align: center;
    font-size: 13.5px;
    color: var(--gs-muted);
}

.gs-name-auto:hover {
    color: var(--gs-green-dark);
    text-decoration: underline;
}

/* ---- 轻提示 ---- */
.gs-toast {
    position: fixed;
    left: 50%;
    bottom: 88px;
    z-index: 210;
    max-width: 84vw;
    padding: 11px 20px;
    border-radius: 999px;
    background: rgba(26, 44, 35, 0.92);
    color: #fff;
    font-size: 13.5px;
    font-weight: 500;
    line-height: 1.4;
    text-align: center;
    box-shadow: 0 12px 32px -10px rgba(0, 0, 0, 0.45);
    transform: translateX(-50%);
    animation: gsToastIn 0.24s ease both;
}

.gs-toast.is-out {
    animation: gsToastOut 0.42s ease both;
}

@keyframes gsToastIn {
    from { opacity: 0; transform: translateX(-50%) translateY(10px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

@keyframes gsToastOut {
    from { opacity: 1; transform: translateX(-50%) translateY(0); }
    to { opacity: 0; transform: translateX(-50%) translateY(-6px); }
}

/* ---- 闯关结果里的排名行（深色结算页内） ---- */
.gz-rank {
    margin-top: 14px;
    padding: 10px 18px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.09);
    border: 2px solid rgba(255, 255, 255, 0.16);
    text-align: center;
    opacity: 0;
    transform: translateY(16px);
}

.gz-rank[hidden] {
    display: none;
}

.gz-rank.is-pop {
    animation: gzSlideUp 0.42s ease 0.12s forwards;
}

.gz-rank-text {
    display: block;
    font-size: 16px;
    font-weight: 700;
    color: #7BE3B3;
    letter-spacing: 0.01em;
}

.gz-rank-sub {
    display: block;
    margin-top: 3px;
    font-size: 12px;
    color: #98B3A8;
}

.gz-rank.is-pop .gz-rank-text {
    animation: gzRankPop 0.5s cubic-bezier(0.2, 1.4, 0.4, 1) both;
}

@keyframes gzRankPop {
    0% { transform: scale(0.9); opacity: 0; }
    60% { transform: scale(1.06); opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
}

/* ---- 排行榜页 ---- */
.lb-head {
    padding: 26px 0 14px;
    text-align: center;
}

.lb-title {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.lb-sub {
    margin: 6px 0 0;
    font-size: 13px;
    color: var(--gs-muted);
}

.lb-tabs {
    display: flex;
    gap: 8px;
    padding: 4px;
    margin: 0 auto 16px;
    max-width: 460px;
    background: var(--gs-green-soft);
    border-radius: 999px;
}

.lb-tab {
    flex: 1;
    padding: 9px 12px;
    text-align: center;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--gs-green-dark);
    border-radius: 999px;
    transition: background 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}

.lb-tab.is-active {
    background: #fff;
    color: var(--gs-text);
    box-shadow: 0 2px 8px rgba(15, 60, 45, 0.12);
}

/* 中间那个「本周时长」是默认榜，未选中时也标一下，免得家长找不到 */
.lb-tab-badge {
    display: inline-block;
    margin-left: 4px;
    padding: 1px 5px;
    font-size: 10px;
    font-style: normal;
    font-weight: 700;
    line-height: 1.5;
    vertical-align: 1px;
    border-radius: 999px;
    background: #1D9E75;
    color: #fff;
}

.lb-tab.is-active .lb-tab-badge {
    display: none;
}

@media (max-width: 420px) {
    .lb-tab-badge {
        display: none;
    }
}

.lb-mine {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 18px;
    margin-bottom: 14px;
    border-radius: var(--gs-radius);
    background: linear-gradient(135deg, #1D9E75 0%, #12795A 100%);
    color: #fff;
    box-shadow: 0 12px 28px -14px rgba(15, 110, 86, 0.7);
}

.lb-mine-rank {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 62px;
    padding-right: 16px;
    border-right: 1px solid rgba(255, 255, 255, 0.22);
}

.lb-mine-rank-num {
    font-size: 30px;
    font-weight: 800;
    line-height: 1.1;
}

.lb-mine-rank-label {
    font-size: 11px;
    opacity: 0.82;
}

.lb-mine-body {
    min-width: 0;
}

.lb-mine-name {
    font-size: 16px;
    font-weight: 700;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lb-mine-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
    margin-top: 4px;
    font-size: 12.5px;
    opacity: 0.9;
}

.lb-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.lb-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 16px;
    background: var(--gs-card);
    border: 1px solid var(--gs-line);
    border-radius: 14px;
    transition: border-color 0.16s ease, transform 0.12s ease;
}

.lb-row.is-top {
    background: #FFFDF4;
    border-color: #F3E3B4;
}

.lb-row.is-me {
    border-color: var(--gs-green);
    box-shadow: 0 0 0 1px var(--gs-green) inset;
}

.lb-rank {
    min-width: 30px;
    font-size: 15px;
    font-weight: 700;
    color: var(--gs-muted);
    text-align: center;
}

.lb-row.is-top .lb-rank {
    font-size: 20px;
}

.lb-avatar {
    font-size: 19px;
    line-height: 1;
}

.lb-name {
    flex: 1;
    min-width: 0;
    font-size: 14.5px;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lb-me-tag {
    display: inline-block;
    margin-left: 6px;
    padding: 1px 7px;
    border-radius: 999px;
    background: var(--gs-green-soft);
    color: var(--gs-green-dark);
    font-size: 11px;
    font-style: normal;
    font-weight: 600;
    vertical-align: 1px;
}

.lb-value {
    font-size: 13px;
    color: var(--gs-muted);
    white-space: nowrap;
}

.lb-value b {
    font-size: 15px;
    font-weight: 700;
    color: var(--gs-text);
}

.lb-value i {
    margin-left: 2px;
    font-style: normal;
    font-size: 11px;
}

.lb-extra {
    min-width: 74px;
    text-align: right;
    font-size: 11.5px;
    color: var(--gs-muted);
}

.lb-foot {
    margin: 18px 0 8px;
    text-align: center;
    font-size: 11.5px;
    color: var(--gs-muted);
}

.lb-empty {
    padding: 44px 20px 40px;
    text-align: center;
    background: var(--gs-card);
    border: 1px dashed var(--gs-line);
    border-radius: var(--gs-radius);
}

.lb-empty-emoji {
    font-size: 42px;
    line-height: 1;
}

.lb-empty-title {
    margin: 14px 0 4px;
    font-size: 16px;
    font-weight: 700;
}

.lb-empty-sub {
    margin: 0 0 18px;
    font-size: 13px;
    color: var(--gs-muted);
}

.lb-empty-btn {
    display: inline-block;
    padding: 11px 26px;
    border-radius: 999px;
    background: var(--gs-green);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
}

.lb-empty-btn:hover {
    background: var(--gs-green-dark);
}

/* ---- 窄屏适配 ---- */
@media (max-width: 600px) {
    .gs-nav {
        gap: 12px;
        margin-right: 8px;
        font-size: 13px;
    }

    .gs-player {
        padding: 4px 10px 4px 7px;
        font-size: 12.5px;
    }

    .gs-player-name {
        max-width: 88px;
    }

    .lb-extra {
        display: none;
    }

    .lb-title {
        font-size: 21px;
    }
}

/* ============================================================
   识字卡片页
   ============================================================ */

/* 窄屏收起不常用导航，避免挤成一团 */
@media (max-width: 620px) {
    .gs-nav-hide-sm {
        display: none;
    }
}

.wc-head {
    padding: 26px 0 12px;
    text-align: center;
}

.wc-title {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.wc-sub {
    margin: 6px 0 0;
    font-size: 13px;
    color: var(--gs-muted);
}

.wc-toolbar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 14px;
}

.wc-tabs {
    display: flex;
    gap: 6px;
    flex: 1;
    min-width: 0;
    padding: 4px;
    background: var(--gs-green-soft);
    border-radius: 999px;
}

.wc-tab {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    color: var(--gs-green-dark);
    white-space: nowrap;
    transition: background 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}

.wc-tab em {
    font-style: normal;
    font-size: 11px;
    font-weight: 500;
    opacity: 0.72;
}

.wc-tab.is-active {
    background: #fff;
    color: var(--gs-text);
    box-shadow: 0 2px 8px rgba(15, 60, 45, 0.12);
}

.wc-voice {
    flex: none;
    padding: 8px 14px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--gs-line);
    color: var(--gs-muted);
    font-size: 12.5px;
    font-weight: 600;
    white-space: nowrap;
    transition: border-color 0.16s ease, color 0.16s ease;
}

.wc-voice:hover {
    border-color: var(--gs-green);
    color: var(--gs-green-dark);
}

.wc-note {
    margin: 0 0 10px;
    font-size: 12px;
    color: var(--gs-muted);
}

.wc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(74px, 1fr));
    gap: 10px;
}

.wc-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 10px 4px 12px;
    min-height: 84px;
    background: var(--gs-card);
    border: 1px solid var(--gs-line);
    border-radius: 14px;
    transition: transform 0.14s ease, border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}

.wc-card:hover {
    border-color: var(--gs-green);
    transform: translateY(-2px);
}

.wc-card:active {
    transform: scale(0.96);
}

.wc-card.is-speaking {
    background: var(--gs-green-soft);
    border-color: var(--gs-green);
    transform: scale(1.05);
    box-shadow: 0 8px 18px -8px rgba(29, 158, 117, 0.6);
}

.wc-pinyin {
    font-size: 10.5px;
    font-weight: 400;
    letter-spacing: 0.04em;
    color: var(--gs-muted);
    line-height: 1.2;
}

.wc-char {
    font-size: 19px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--gs-text);
    letter-spacing: 0.02em;
}

.wc-card.is-single .wc-char {
    font-size: 30px;
    letter-spacing: 0;
}

.wc-card.is-single .wc-pinyin {
    font-size: 11px;
}

/* ===== 朗读条：点卡片后显示这个字 + 一句例句 ===== */
.wc-panel {
    padding-bottom: 104px;
}

.wc-say {
    position: fixed;
    left: 50%;
    bottom: calc(14px + env(safe-area-inset-bottom, 0px));
    z-index: 60;
    display: flex;
    align-items: center;
    gap: 12px;
    width: min(620px, calc(100vw - 24px));
    padding: 12px 18px;
    background: #fff;
    border: 1px solid var(--gs-green);
    border-radius: 18px;
    box-shadow: 0 14px 32px -14px rgba(15, 60, 45, 0.45);
    transform: translateX(-50%) translateY(10px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.wc-say.is-on {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

.wc-say-word {
    flex: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 46px;
    padding-right: 12px;
    border-right: 1px dashed var(--gs-line);
}

.wc-say-py {
    font-size: 10.5px;
    letter-spacing: 0.04em;
    color: var(--gs-muted);
    line-height: 1.2;
}

.wc-say-ch {
    font-size: 26px;
    font-weight: 800;
    line-height: 1.15;
    color: var(--gs-text);
    transition: color 0.16s ease, transform 0.16s ease;
}

.wc-say-text {
    flex: 1;
    min-width: 0;
    margin: 0;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--gs-text);
    transition: color 0.16s ease;
}

/* 右侧小喇叭：提示朗读条可以点，再听一遍 */
.wc-say-again {
    flex: none;
    font-size: 17px;
    line-height: 1;
    opacity: 0.45;
}

/* 正在读字：这个字变绿放大 */
.wc-say.is-word .wc-say-ch {
    color: var(--gs-green-dark);
    transform: scale(1.12);
}

/* 正在读例句：句子变绿 */
.wc-say.is-sent .wc-say-text {
    color: var(--gs-green-dark);
}

.wc-foot {
    margin: 20px 0 8px;
    text-align: center;
    font-size: 11.5px;
    color: var(--gs-muted);
}

.wc-empty {
    padding: 50px 20px;
    text-align: center;
    background: var(--gs-card);
    border: 1px dashed var(--gs-line);
    border-radius: var(--gs-radius);
    color: var(--gs-muted);
    font-size: 13.5px;
}

.wc-empty-emoji {
    font-size: 40px;
    line-height: 1;
    margin-bottom: 12px;
}

/* 词卡气泡里的单字放大一点，看得更清楚 */
.gs-bubble-word.is-single {
    font-size: 38px;
}

@media (max-width: 600px) {
    .wc-grid {
        grid-template-columns: repeat(auto-fill, minmax(64px, 1fr));
        gap: 8px;
    }

    .wc-card {
        min-height: 74px;
        padding: 8px 2px 10px;
    }

    .wc-card.is-single .wc-char {
        font-size: 26px;
    }

    .wc-toolbar {
        gap: 8px;
    }

    .wc-tab {
        padding: 7px 8px;
        font-size: 12.5px;
    }

    .wc-voice {
        padding: 7px 10px;
        font-size: 12px;
    }

    .wc-say {
        gap: 10px;
        padding: 9px 13px;
        border-radius: 16px;
    }

    .wc-say-ch {
        font-size: 22px;
    }

    .wc-say-text {
        font-size: 16px;
        line-height: 1.35;
    }
}

/* ===== 节点封面（听音 / 跟读 / 看图 共用） ===== */
.qz-start-ico {
    font-size: 62px;
    line-height: 1;
}

.qz-start-course {
    margin-top: 12px;
    font-size: 12px;
    color: var(--gs-muted);
    letter-spacing: 0.02em;
}

.qz-start-hint {
    max-width: 300px;
    margin: 0 auto 26px;
    padding: 10px 14px;
    border-radius: 12px;
    background: var(--gs-green-soft);
    color: var(--gs-green-dark);
    font-size: 12px;
    line-height: 1.5;
}

/* ===== 跟读节点 ===== */
.qz-speak {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 6px 0 calc(28px + env(safe-area-inset-bottom));
}

.qz-speak-step {
    font-size: 12px;
    color: var(--gs-muted);
    font-variant-numeric: tabular-nums;
}

.qz-speak-card {
    width: 100%;
    max-width: 420px;
    margin-top: 10px;
    padding: 24px 18px 22px;
    border-radius: 22px;
    background: #fff;
    border: 1px solid var(--gs-line);
    box-shadow: 0 6px 20px rgba(31, 42, 36, 0.06);
    text-align: center;
}

.qz-speak-ico {
    font-size: 54px;
    line-height: 1;
}

.qz-speak-word {
    margin-top: 8px;
    font-size: 40px;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    word-break: break-word;
}

.qz-speak-cn {
    margin-top: 8px;
    font-size: 13px;
    color: var(--gs-muted);
}

.qz-speak-play {
    margin-top: 18px;
    padding: 12px 24px;
    border-radius: 999px;
    background: var(--gs-green-soft);
    color: var(--gs-green-dark);
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.qz-speak-play:active {
    background: #CDEEE1;
}

.qz-speak-mic {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 140px;
    height: 140px;
    margin-top: 20px;
    border-radius: 50%;
    background: linear-gradient(180deg, #6C63D8 0%, #534AB7 100%);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    box-shadow: 0 8px 0 #3F3792, 0 14px 28px rgba(83, 74, 183, 0.28);
    transition: transform 0.12s ease, box-shadow 0.12s ease;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.qz-speak-mic:active {
    transform: translateY(4px);
    box-shadow: 0 4px 0 #3F3792;
}

.qz-speak-mic-ico {
    font-size: 42px;
    line-height: 1;
}

.qz-speak-mic.is-listening {
    background: linear-gradient(180deg, #8A82E8 0%, #6C63D8 100%);
    animation: qzMicPulse 1.1s ease-in-out infinite;
}

.qz-speak-mic.is-ok {
    background: linear-gradient(180deg, #3FCB96 0%, #1D9E75 100%);
    box-shadow: 0 8px 0 #157A5A, 0 14px 28px rgba(29, 158, 117, 0.3);
}

.qz-speak-feedback {
    min-height: 44px;
    margin-top: 14px;
    padding: 0 12px;
    max-width: 340px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
    text-align: center;
}

.qz-speak-feedback.is-right {
    color: var(--gs-green-dark);
}

.qz-speak-feedback.is-wrong {
    color: #C0392B;
}

.qz-speak-feedback.is-soft {
    color: var(--gs-muted);
    font-weight: 500;
}

.qz-speak-feedback.is-listening {
    color: var(--gs-purple);
}

.qz-speak-manual {
    margin-top: 6px;
    padding: 13px 26px;
    border-radius: 999px;
    background: #fff;
    border: 2px solid var(--gs-line);
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.qz-speak-manual:active {
    background: var(--gs-bg);
}

@keyframes qzMicPulse {
    0%, 100% { box-shadow: 0 8px 0 #3F3792, 0 0 0 0 rgba(108, 99, 216, 0.4); }
    50% { box-shadow: 0 8px 0 #3F3792, 0 0 0 18px rgba(108, 99, 216, 0); }
}

/* 手机上把节点和字号收一点，别撑出横向滚动 */
@media (max-width: 420px) {
    .qz-node-row:nth-child(odd) {
        transform: translateX(-24px);
    }

    .qz-node-row:nth-child(even) {
        transform: translateX(24px);
    }

    .qz-node {
        width: 72px;
        height: 72px;
    }

    .qz-node-ico {
        font-size: 31px;
    }

    .qz-node-meta {
        max-width: 186px;
    }

    .qz-speak-word {
        font-size: 34px;
    }

    .qz-speak-mic {
        width: 126px;
        height: 126px;
    }

    .qz-speak-mic-ico {
        font-size: 36px;
    }
}

/* ===== 平板横屏（iPad 768pt+）主用形态 ===== */

@media (min-width: 768px) {
    /* 课程地图：两列并排，横屏一屏能看更多课 */
    .qz-map {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 4px 24px;
        align-items: start;
        padding-bottom: 110px;
    }

    .qz-course {
        padding: 2px 0 6px;
    }

    .qz-course-bar {
        max-width: 100%;
        margin-bottom: 16px;
    }

    /* 两列里不再蛇形，避免把节点推出列外 */
    .qz-node-row:nth-child(odd),
    .qz-node-row:nth-child(even) {
        transform: none;
    }

    .qz-node-row {
        margin-bottom: 22px;
    }

    .qz-node {
        width: 84px;
        height: 84px;
    }

    .qz-node-ico {
        font-size: 37px;
    }

    .qz-node-meta {
        max-width: 260px;
    }

    .qz-node-title {
        font-size: 14px;
    }

    .qz-node-hint {
        font-size: 12px;
    }

    /* 选择题节点收窄居中，横屏下别拉成超宽条 */
    .qz-stage {
        max-width: 680px;
        margin: 0 auto;
        padding-bottom: 40px;
    }

    .qz-option {
        min-height: 124px;
    }

    /* 跟读：左边词卡、右边麦克风，横屏一眼看全 */
    .qz-speak {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 260px;
        grid-template-areas:
            "step     step"
            "card     mic"
            "card     feedback"
            "play     manual";
        align-items: start;
        justify-items: center;
        gap: 12px 32px;
        max-width: 880px;
        margin: 0 auto;
        padding: 14px 12px calc(28px + env(safe-area-inset-bottom));
    }

    .qz-speak-step {
        grid-area: step;
        justify-self: start;
    }

    .qz-speak-card {
        grid-area: card;
        max-width: 100%;
        margin-top: 0;
        padding: 30px 24px 28px;
    }

    .qz-speak-play {
        grid-area: play;
        margin-top: 4px;
    }

    .qz-speak-mic {
        grid-area: mic;
        margin-top: 0;
    }

    .qz-speak-feedback {
        grid-area: feedback;
        max-width: 260px;
        margin-top: 0;
    }

    .qz-speak-manual {
        grid-area: manual;
        margin-top: 0;
    }

    .qz-speak-word {
        font-size: 46px;
    }

    /* 节点封面在横屏下别浮在正中偏上 */
    .qz-start {
        padding: 24px 16px 60px;
    }
}

/* 横屏且矮（iPad 横屏 768 高）：收紧竖向间距，别出现滚动条 */
@media (min-width: 768px) and (max-height: 860px) {
    .qz-speak-card {
        padding: 22px 20px 20px;
    }

    .qz-speak-ico {
        font-size: 44px;
    }

    .qz-speak-word {
        font-size: 40px;
    }

    .qz-speak-mic {
        width: 128px;
        height: 128px;
    }

    .qz-speak-mic-ico {
        font-size: 36px;
    }

    .qz-speak-feedback {
        min-height: 40px;
    }
}

/* 跟读：自评按钮组 */
.qz-speak-actions {
    display: flex;
    gap: 10px;
    margin-top: 6px;
    grid-area: manual;
}

.qz-speak-actions[hidden] {
    display: none;
}

.qz-speak-again {
    padding: 13px 20px;
    border-radius: 999px;
    background: #fff;
    border: 2px solid var(--gs-line);
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.qz-speak-again:active {
    background: var(--gs-bg);
}

.qz-speak-again[hidden] {
    display: none;
}

/* 本周榜的周期说明 */
.lb-period {
    margin: -6px 0 16px;
    text-align: center;
    font-size: 12px;
    color: var(--gs-muted);
}

/* 本周还没学时的一条轻提示，别用渐变主色 */
.lb-mine.is-hint {
    background: #fff;
    color: var(--gs-text);
    border: 1px dashed var(--gs-line);
    box-shadow: none;
}

/* 跟读：听我的 / 跳过（本地录音回放 + 电脑端放行） */
.qz-speak-mine {
    padding: 13px 18px;
    border-radius: 999px;
    background: var(--gs-purple-soft);
    color: var(--gs-purple);
    border: 2px solid transparent;
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.qz-speak-mine:active {
    background: #E4E0F7;
}

.qz-speak-mine[hidden] {
    display: none;
}

.qz-speak-skip {
    margin-top: 2px;
    padding: 6px 10px;
    font-size: 12px;
    color: var(--gs-muted);
    text-align: center;
    text-decoration: underline;
    text-underline-offset: 3px;
    background: none;
    border: 0;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.qz-speak-skip[hidden] {
    display: none;
}

/* 横屏时把「跳过」放到按钮组下面一行 */
@media (min-width: 768px) {
    .qz-speak-skip {
        grid-column: 1 / -1;
        justify-self: center;
    }
}

/* ============================================================
   iPad 横屏（≥900px 且横向）单元页视频列表：缩略图在左、标题在右的横条
   目的：一屏能看到更多视频，选下一条不用上下滚
   ============================================================ */
@media (min-width: 900px) and (orientation: landscape) {
    .gs-grid-sm {
        grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
        gap: 10px;
    }

    .gs-item-video {
        flex-direction: row;
        align-items: center;
        gap: 10px;
        padding: 8px 10px;
    }

    .gs-item-video .gs-thumb {
        flex: 0 0 84px;
        width: 84px;
        border-radius: 8px;
    }

    .gs-item-video .gs-thumb-play {
        right: 3px;
        bottom: 3px;
        width: 18px;
        height: 18px;
        font-size: 8px;
    }

    .gs-item-video .gs-item-title {
        flex: 1 1 auto;
        min-width: 0;
        padding: 0;
        font-size: 13px;
        line-height: 1.35;
        -webkit-line-clamp: 2;
    }
}

/* ============================================================
   播放模式（顺序 / 单曲 / 随机）与播放速度（0.8 / 1 / 1.2）
   放在 Unit 页播放器下方，播放器是 sticky，滚动时也能随手切
   ============================================================ */
.gs-playtools {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed var(--gs-line);
}

.gs-toolgroup {
    display: inline-flex;
    gap: 3px;
    padding: 3px;
    background: #F2F6F3;
    border-radius: 999px;
}

.gs-tool {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 13px;
    line-height: 1.2;
    color: var(--gs-muted);
    white-space: nowrap;
    transition: background 0.15s ease, color 0.15s ease, transform 0.1s ease;
}

.gs-tool.is-on {
    background: #fff;
    color: var(--gs-green-dark);
    font-weight: 600;
    box-shadow: 0 1px 4px rgba(15, 60, 45, 0.12);
}

.gs-tool:active {
    transform: scale(0.96);
}

@media (max-width: 420px) {
    .gs-tool {
        padding: 7px 10px;
        font-size: 12.5px;
    }
}
