* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(231, 76, 60, 0.5);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(231, 76, 60, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(231, 76, 60, 0);
    }
}

html, body {
    height: 100%;
    overflow: hidden;
}

body {
    font-family: 'Noto Sans CJK SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    flex-direction: column;
    height: 100vh;
    padding: 0;
    min-height: 100vh;
}

.header {
    padding: 10px 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
}

.header h1 {
    font-size: 15px;
    color: white;
    font-weight: 600;
    margin-bottom: 6px;
}

.header-info {
    color: rgba(255, 255, 255, 0.85);
    font-size: 11px;
}

#text-uuid {
    padding: 0px 0px 10px 10px;
    font-size: 8px;
}

.progress-section {
    padding: 8px 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
}

.progress-bar {
    height: 16px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 6px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4CAF50, #8BC34A);
    border-radius: 8px;
    transition: width 0.3s ease;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: white;
}

.progress-info span {
    color: white;
}

#current-sentence {
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 11px !important;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 6px;
    margin-top: 6px !important;
}

.main-content {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.sentence-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sentence-card {
    background: white;
    border-radius: 12px;
    padding: 14px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border-left: 4px solid #ddd;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.sentence-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.sentence-card.active {
    border-left: none;
    background: linear-gradient(135deg, #fff5f5 0%, #fff 100%);
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.25);
    border-radius: 0;
    overflow-y: auto;
}

.sentence-card.active .sentence-header {
    flex-shrink: 0;
}

.sentence-card.active .sentence-text {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    font-size: 30px;
    text-align: left;
    flex-wrap: wrap;
    gap: 8px;
}

.sentence-card.active .sentence-main {
    font-size: inherit;
    font-weight: bold;
    color: #2c3e50;
}

.sentence-card.active .sentence-hint {
    font-size: 0.5em;
    color: #7f8c8d;
    margin-left: 0;
    font-style: italic;
}

.sentence-card.active .recording-info,
.sentence-card.active .recording-actions {
    flex-shrink: 0;
}

.sentence-card.completed {
    border-left-color: #27ae60;
}

.sentence-card.skipped {
    border-left-color: #95a5a6;
    opacity: 0.7;
}

.sentence-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.sentence-number {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #667eea;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 12px;
    flex-shrink: 0;
}

.sentence-status {
    font-size: 14px;
}

.sentence-text {
    flex: 1;
    font-size: 14px;
    color: #333;
    word-break: break-all;
}

.sentence-main {
    color: #333;
    font-weight: 500;
}

.sentence-hint {
    color: #888;
    font-size: 0.85em;
    margin-left: 8px;
    font-style: italic;
}

.sentence-card.recording-expanded .sentence-hint {
    display: none;
}

.sentence-text.playable {
    cursor: pointer;
    position: relative;
}

.sentence-text.playable:hover {
    background-color: #f0f0f0;
    border-radius: 4px;
}

.sentence-text.playable.playing {
    color: #e74c3c;
    font-weight: 700;
    background: linear-gradient(135deg, #ffebee 0%, #ffcdd2 100%);
    border-radius: 8px;
    padding: 8px;
    margin: -8px;
    box-shadow: 0 2px 8px rgba(231, 76, 60, 0.2);
}

.sentence-text.playable.playing .sentence-main,
.sentence-text.playable.playing .sentence-hint {
    color: #c0392b;
}

.sentence-text.playable.playing .demo-hint {
    color: #e74c3c;
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.demo-hint {
    display: block;
    color: #667eea;
    font-size: 12px;
    margin-top: 4px;
}

.recording-info {
    color: #666;
    font-size: 12px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.recording-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
    background: #f5f5f5;
    border-radius: 8px;
    cursor: pointer;
    margin-bottom: 10px;
}

.recording-row:hover {
    background: #e8e8e8;
}

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

.recorder-icon {
    font-size: 18px;
}

.recorder-text {
    color: #333;
    font-size: 15px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.toggle-arrow {
    font-size: 12px;
    color: #999;
    transition: transform 0.2s;
}

.recording-actions-inline {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.recording-list {
    background: #fafafa;
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 10px;
    max-height: 250px;
    overflow-y: auto;
}

.recording-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-bottom: 1px solid #eee;
}

.recording-item:last-child {
    border-bottom: none;
}

.recording-user {
    flex: 1;
    font-size: 15px;
    color: #333;
}

.recording-text-inline {
    flex: 2;
    font-size: 14px;
    color: #666;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.recording-time {
    font-size: 13px;
    color: #999;
}

.btn-tiny {
    padding: 8px 12px;
    font-size: 13px;
}

.recording-actions {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.btn {
    padding: 10px 16px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
    font-weight: 500;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #5a6fd6 0%, #6a4190 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.btn-success {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
}

.btn-success:hover {
    background: linear-gradient(135deg, #45a049 0%, #3d8b40 100%);
    transform: translateY(-1px);
}

.btn-danger {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(231, 76, 60, 0.3);
}

.btn-danger:hover {
    background: linear-gradient(135deg, #c0392b 0%, #a93226 100%);
    transform: translateY(-1px);
}

.btn-warning {
    background: linear-gradient(135deg, #f39c12 0%, #d68910 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(243, 156, 18, 0.3);
}

.btn-warning:hover {
    background: linear-gradient(135deg, #d68910 0%, #b9770e 100%);
    transform: translateY(-1px);
}

.btn-info {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(4px);
}

.btn-info:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

.btn-secondary {
    background: #95a5a6;
    color: white;
}

.btn-third {
    background: #dd08a8;
    color: white;
}

.btn-secondary:hover {
    background: #7f8c8d;
}

.btn-small {
    padding: 4px 8px;
    font-size: 11px;
}

.footer {
    background: white;
    padding: 10px 15px;
    box-shadow: 0 -4px 6px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
}

.footer-actions {
    display: flex;
    gap: 6px;
    margin-bottom: 8px;
    justify-content: center;
}

.footer-center {
    display: flex;
    gap: 8px;
    justify-content: center;
    align-items: center;
}

.main-btn {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    font-size: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 72px;
    min-height: 72px;
    padding: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    border: none;
    color: white;
    transition: all 0.3s ease;
}

.main-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

.main-btn:active {
    transform: scale(0.95);
}

.main-btn.recording {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.4);
    animation: pulse 1s infinite;
}

/* 生僻字面板样式 */
.rare-char-section {
    margin-top: 15px;
}

.rare-char-panel {
    display: none;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    margin-top: 10px;
    border: 1px solid #e9ecef;
}

.rare-char-panel.expanded {
    display: block;
    max-height: 400px;
    overflow-y: auto;
}

.rare-char-search-container {
    margin-bottom: 15px;
}

.rare-char-search-container input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.rare-char-common {
    margin-bottom: 15px;
}

.rare-char-section-title {
    font-size: 13px;
    color: #666;
    margin-bottom: 8px;
    font-weight: 500;
}

.rare-char-common-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.rare-char-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 65px;
    padding: 4px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: white;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 18px;
}

.rare-char-btn:hover {
    background: #667eea;
    border-color: #667eea;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.rare-char-btn.common {
    width: 55px;
    height: 70px;
    font-size: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4px;
}

.rare-char-btn.common:hover {
    background: #27ae60;
    border-color: #27ae60;
}

.rare-char {
    font-size: 18px;
    line-height: 1.2;
    font-family: 'Noto Sans CJK SC', sans-serif;
}

.rare-char-pinyin {
    font-size: 10px;
    color: #888;
    margin-top: 2px;
}

.rare-char-btn:hover .rare-char-pinyin {
    color: rgba(255, 255, 255, 0.8);
}

.rare-char-letters {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e9ecef;
}

.letter-tab {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: white;
    border: 1px solid #ddd;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: #666;
    transition: all 0.2s ease;
}


.letter-tab:hover {
    background: #f0f0f0;
    border-color: #667eea;
    color: #667eea;
}

.letter-tab.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
    color: white;
}

.rare-char-container {
    max-height: 200px;
    overflow-y: auto;
}

.rare-char-group-header {
    font-size: 13px;
    color: #333;
    font-weight: 600;
    margin-bottom: 10px;
    padding: 8px 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 6px;
}

.rare-char-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.rare-char-empty {
    text-align: center;
    color: #999;
    padding: 20px;
    font-size: 14px;
}

.rare-char-submit {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e9ecef;
}

.copyright {
    text-align: center;
    padding: 10px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 20px;
}

.current-user {
    text-align: center;
    margin-top: 8px;
    color: white;
    font-size: 20px;
}

.modal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal.modal-fullscreen {
    align-items: stretch;
    justify-content: stretch;
}

.modal-content {
    background: white;
    width: 100%;
    max-width: 400px;
    border-radius: 12px;
    padding: 10px;
    position: relative;
}

.modal-content-full {
    background: white;
    position: fixed !important;
    left: 0 !important;
    right: 0 !important;
    top: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    max-width: none !important;
    height: 100% !important;
    border-radius: 0 !important;
    padding: 10px !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    z-index: 1001 !important;
    display: flex;
    flex-direction: column;
}

.modal-scrollable-content {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
    padding-bottom: 70px;
}

.completion-summary {
    text-align: center;
}

.summary-icon {
    font-size: 48px;
    margin-bottom: 10px;
}

.completion-summary h2 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 20px;
}

.summary-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.stat-item {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 10px;
}

.stat-label {
    display: block;
    color: #7f8c8d;
    font-size: 13px;
    margin-bottom: 5px;
}

.stat-value {
    display: block;
    color: #2c3e50;
    font-size: 24px;
    font-weight: bold;
}

.stat-value.highlight {
    color: #667eea;
}

.summary-duration {
    color: #7f8c8d;
    font-size: 14px;
    margin-bottom: 15px;
}

.summary-progress {
    margin-bottom: 20px;
}

.progress-bar {
    height: 10px;
    background: #e9ecef;
    border-radius: 5px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 5px;
    transition: width 0.3s ease;
}

.summary-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.summary-actions .btn {
    flex: 1;
    padding: 12px 16px;
}

.close {
    position: absolute;
    right: 15px;
    top: 10px;
    font-size: 24px;
    cursor: pointer;
    color: #999;
}

.close:hover {
    color: #333;
}

.form-group {
    margin-bottom: 12px;
}

.form-group label {
    display: block;
    margin-bottom: 4px;
    font-weight: bold;
    font-size: 14px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
}

.form-group textarea {
    min-height: 100px;
}

.hidden {
    display: none !important;
}

.recording-indicator {
    position: fixed;
    bottom: 140px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(231, 76, 60, 0.8);
    color: white;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 28px;
    font-weight: bold;
    animation: pulse 1s infinite;
    z-index: 999;
    text-align: center;
}

.warning {
    background: #fff3cd;
    border: 1px solid #ffeeba;
    border-radius: 6px;
    padding: 8px;
    margin-bottom: 12px;
    color: #856404;
    font-size: 12px;
}

.user-recordings-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.user-recording-item {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 10px;
}

.user-name {
    font-weight: bold;
    color: #333;
    font-size: 14px;
}

.recording-text-display {
    color: #555;
    font-size: 12px;
    margin: 4px 0;
}

.recording-text-display.mismatch {
    color: #dc3545;
    background: #f8d7da;
    padding: 2px 6px;
    border-radius: 3px;
}

.back-link {
    display: inline-block;
    margin-bottom: 12px;
    color: #667eea;
    text-decoration: none;
    font-size: 14px;
}

.back-link:hover {
    text-decoration: underline;
}

.modal h2 {
    font-size: 18px;
    margin-bottom: 15px;
}

.modal p {
    font-size: 13px;
    color: #555;
    margin-bottom: 10px;
}

.more-menu-container {
    position: relative;
    display: inline-block;
}

.more-menu {
    position: absolute;
    bottom: 100%;
    right: 0;
    margin-bottom: 8px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.2);
    min-width: 140px;
    z-index: 100;
    overflow: hidden;
}

.more-menu-item {
    display: block;
    width: 100%;
    padding: 12px 16px;
    border: none;
    background: white;
    color: #333;
    font-size: 14px;
    text-align: left;
    cursor: pointer;
    transition: background 0.2s;
}

.more-menu-item:hover {
    background: #f5f5f5;
}

.more-menu-item:not(:last-child) {
    border-bottom: 1px solid #eee;
}

.footer-actions {
    display: none;
}

.footer-center .btn:not(.main-btn):not(.hidden) {
    padding: 10px 16px !important;
    font-size: 14px !important;
    height: 60px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

@media (max-width: 768px) {
    body {
        font-family: 'Noto Sans CJK SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    }

    .header {
        padding: 10px 12px;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    }

    .header h1 {
        font-size: 15px;
        color: white;
        font-weight: 600;
    }

    .header-info {
        color: rgba(255, 255, 255, 0.85);
        font-size: 11px;
    }

    .progress-section {
        padding: 8px 12px;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    }

    .progress-bar {
        height: 16px;
        background: rgba(255, 255, 255, 0.3);
        border-radius: 8px;
    }

    .progress-fill {
        background: linear-gradient(90deg, #4CAF50, #8BC34A);
        border-radius: 8px;
    }

    .progress-info {
        color: white;
        font-size: 11px;
    }

    .progress-info span {
        color: white;
    }

    #current-sentence {
        color: rgba(255, 255, 255, 0.9) !important;
        font-size: 11px !important;
        background: rgba(0, 0, 0, 0.1);
        border-radius: 6px;
        margin-top: 6px;
    }

    .footer {
        padding: 10px 12px;
        background: white;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    }

    .footer-actions {
        gap: 8px;
    }

    .btn {
        padding: 10px 16px;
        font-size: 14px;
        border-radius: 8px;
        font-weight: 500;
    }

    .btn-small {
        padding: 6px 10px;
        font-size: 12px;
        border-radius: 6px;
    }

    .main-btn {
        width: 72px;
        height: 72px;
        font-size: 30px;
        border-radius: 50%;
        min-width: 72px;
        min-height: 72px;
        padding: 0;
        box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    }

    .main-btn.recording {
        background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
        animation: pulse 1s infinite;
    }

    .tab-section {
        background: white;
        padding: 8px 12px;
        border-bottom: 1px solid #eee;
        flex-shrink: 0;
    }

    .tab-buttons {
        display: flex;
        gap: 8px;
    }

    .tab-btn {
        flex: 1;
        padding: 10px 16px;
        border: none;
        border-radius: 8px;
        font-size: 14px;
        cursor: pointer;
        transition: all 0.3s;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        font-weight: 500;
    }

    .tab-btn.tab-text {
        background: #e8ecf4;
        color: #667eea;
    }

    .tab-btn.tab-text.active {
        background: #667eea;
        color: white;
    }

    .tab-btn.tab-image {
        background: #f0e8f4;
        color: #764ba2;
    }

    .tab-btn.tab-image.active {
        background: #764ba2;
        color: white;
    }

    .image-row {
        display: flex;
        gap: 8px;
        margin-top: 10px;
        padding-top: 10px;
        border-top: 1px dashed #eee;
        flex-wrap: wrap;
    }

    .image-thumb {
        width: 60px;
        height: 60px;
        border-radius: 8px;
        object-fit: cover;
        cursor: pointer;
        transition: transform 0.2s;
        border: 2px solid #eee;
    }

    .image-thumb:hover {
        transform: scale(1.05);
        border-color: #667eea;
    }

    .image-upload-btn {
        width: 60px;
        height: 60px;
        border-radius: 8px;
        background: #f0f0f0;
        border: 2px dashed #ccc;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        font-size: 20px;
        transition: all 0.2s;
    }

    .image-upload-btn:hover {
        background: #f5f5f5;
        border-color: #667eea;
    }

    .image-count {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 60px;
        height: 60px;
        border-radius: 8px;
        background: #f0e8f4;
        color: #764ba2;
        font-size: 13px;
        font-weight: bold;
        cursor: pointer;
        border: 2px solid #eee;
    }

    .image-modal {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0,0,0,0.95);
        display: none;
        align-items: center;
        justify-content: center;
        z-index: 1000;
    }

    .image-modal.show {
        display: flex;
    }

    .image-modal img {
        max-width: 95%;
        max-height: 90%;
        border-radius: 8px;
    }

    .image-modal-close {
        position: absolute;
        top: 20px;
        right: 20px;
        color: white;
        font-size: 30px;
        cursor: pointer;
        z-index: 1001;
    }

    .image-modal-nav {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        color: white;
        font-size: 40px;
        cursor: pointer;
        padding: 10px;
        z-index: 1001;
    }

    .image-modal-prev {
        left: 10px;
    }

    .image-modal-next {
        right: 10px;
    }

    .image-modal-counter {
        position: absolute;
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%);
        color: white;
        font-size: 14px;
        z-index: 1001;
    }

    .sentence-card {
        padding: 12px;
        border-radius: 12px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
        margin: 0 8px;
    }

    .sentence-card.active {
        margin: 0;
        padding: 15px;
        box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3);
    }

    .sentence-text {
        font-size: 14px;
        line-height: 1.6;
    }

    .sentence-card.active .sentence-text {
        font-size: 20px;
        font-weight: 500;
        line-height: 1.5;
    }
    
    .sentence-card.active .sentence-main {
        font-size: inherit;
        font-weight: bold;
        color: #2c3e50;
    }
    
    .sentence-card.active .sentence-hint {
        font-size: 0.55em;
        color: #7f8c8d;
        margin-left: 0;
        font-style: italic;
    }

    .sentence-header .sentence-number {
        width: 28px;
        height: 28px;
        font-size: 13px;
    }

    .sentence-status {
        font-size: 16px;
    }

    .recording-info {
        font-size: 11px;
    }

    .recording-row {
        padding: 10px 12px;
    }

    .recorder-icon {
        font-size: 16px;
    }

    .recorder-text {
        font-size: 14px;
    }

    .toggle-arrow {
        font-size: 11px;
    }

    .recording-actions-inline {
        gap: 6px;
    }

    .recording-actions-inline .btn-small {
        padding: 8px 10px;
        font-size: 12px;
    }

    .recording-list {
        padding: 8px;
    }

    .recording-item {
        padding: 8px 10px;
    }

    .recording-user {
        font-size: 14px;
    }

    .recording-time {
        font-size: 12px;
    }

    .recording-actions {
        gap: 6px;
    }

    .completion-summary h2 {
        font-size: 18px;
    }

    .summary-icon {
        font-size: 40px;
    }

    .summary-stats {
        gap: 10px;
    }

    .stat-item {
        padding: 12px;
    }

    .stat-value {
        font-size: 20px;
    }

    .summary-actions {
        flex-direction: column;
    }

    .modal-content {
        width: 95%;
        padding: 15px;
        border-radius: 16px;
    }

    .modal h2 {
        font-size: 16px;
    }

    .form-group label {
        font-size: 13px;
    }

    .form-group input,
    .form-group textarea {
        padding: 10px;
        font-size: 14px;
        border-radius: 8px;
    }

    .copyright {
        font-size: 12px;
        padding: 8px;
    }

    .current-user {
        font-size: 11px;
    }

    .sentence-list {
        gap: 8px;
    }

    .recording-indicator {
        bottom: 130px;
        padding: 8px 14px;
        font-size: 16px;
    }

    .footer-center .btn:not(.main-btn):not(.hidden) {
        padding: 10px 16px !important;
        font-size: 14px !important;
        height: 60px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .footer-center {
        gap: 8px;
        align-items: center;
    }

    /* 移动端生僻字面板样式 */
    .rare-char-panel {
        padding: 12px;
    }

    .rare-char-btn {
        width: 45px;
        height: 60px;
        font-size: 16px;
    }

    .rare-char-btn.common {
        width: 50px;
        height: 65px;
        font-size: 14px;
    }

    .letter-tab {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }

    .rare-char-container {
        max-height: 180px;
    }
}

/* 下载进度弹窗样式 */
.download-modal .modal-content {
    max-width: 450px;
    padding: 25px;
}

.download-progress-container,
.download-complete-container {
    text-align: center;
}

.download-progress-container h3,
.download-complete-container h3 {
    font-size: 18px;
    color: #333;
    margin-bottom: 8px;
}

.download-progress-container p {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
}

.progress-bar-container {
    width: 100%;
    height: 8px;
    background-color: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 12px;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 13px;
    color: #666;
}

.download-stats {
    font-size: 14px;
    color: #888;
    margin-bottom: 20px;
}

.download-stats span:first-child {
    color: #667eea;
    font-weight: 600;
}

.success-icon {
    font-size: 64px;
    margin-bottom: 16px;
}

.download-complete-container p {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
}

.download-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.download-actions .btn {
    padding: 10px 24px;
    font-size: 14px;
}

/* 二维码样式 */
.qrcode-section {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px dashed #e0e0e0;
}

.qrcode-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
}

.qrcode-container {
    display: flex;
    justify-content: center;
    margin-bottom: 10px;
}

.qrcode-container img {
    width: 180px;
    height: 180px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.qrcode-hint {
    font-size: 12px;
    color: #888;
    margin: 0;
}

/* 录音时禁用按钮样式 */
.btn.disabled,
.btn:disabled {
    opacity: 0.5 !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
}

/* 禁止滚动样式 */
.main-content.no-scroll {
    overflow-y: hidden !important;
}
