/* ============================================================================
   全局样式重置
   ============================================================================ */

* {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* ============================================================================
   页面主体样式
   ============================================================================ */

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    margin: 0;
    padding: 20px;
    padding-bottom: env(safe-area-inset-bottom, 20px);
}

/* ============================================================================
   卡片容器
   ============================================================================ */

.card-container {
    background-color: white;
    width: 100%;
    max-width: 500px;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    padding: 30px;
    padding-bottom: calc(30px + env(safe-area-inset-bottom, 0px));
    box-sizing: border-box;
    text-align: center;
    position: relative;
    margin-top: 20px;
    margin-bottom: 20px;
}

/* ============================================================================
   响应式适配 - PC端 (>=1200px)
   ============================================================================ */
@media screen and (min-width: 1200px) {
    body {
        padding: 30px;
        align-items: center;
    }

    .card-container {
        max-width: 520px;
        padding: 24px;
        border-radius: 16px;
    }

    h2 {
        font-size: 1.4em;
        margin-bottom: 15px;
    }

    .stats {
        padding: 12px;
        font-size: 0.85em;
    }

    .stats-row {
        gap: 10px;
    }

    .stats-item {
        min-width: 60px;
    }

    .stats-label {
        font-size: 0.75em;
    }

    .stats-value {
        font-size: 1.1em;
    }

    .word-info {
        font-size: 1.3em;
        padding: 15px;
        margin-bottom: 12px;
    }

    .hint-info {
        font-size: 0.9em;
        min-height: 22px;
        margin-bottom: 15px;
    }

    .input-group {
        gap: 2px;
        margin-bottom: 5px;
    }

    input[type="text"] {
        padding: 12px 14px;
        font-size: 1em;
    }

    button {
        padding: 12px 20px;
        font-size: 0.95em;
    }

    #startBtn {
        padding: 14px 24px;
        font-size: 1em;
    }

    .stats-modes {
        gap: 8px;
    }

    .mode-label {
        padding: 4px 8px;
        font-size: 0.85em;
    }

    .stats-time {
        font-size: 0.8em;
    }

    .streak-info {
        font-size: 0.9em;
        padding: 8px 15px;
        margin-bottom: 12px;
    }

    .feedback {
        font-size: 0.9em;
        min-height: 28px;
        padding: 8px;
    }

    .keyboard-hint {
        font-size: 0.75em;
        margin-top: 10px;
    }

    .stats-actions button {
        padding: 10px 16px;
        font-size: 0.85em;
    }
}

/* ============================================================================
   响应式适配 - iPad/平板 (768px - 1199px)
   ============================================================================ */
@media screen and (min-width: 768px) and (max-width: 1199px) {
    body {
        padding: 20px;
        align-items: flex-start;
    }

    .card-container {
        max-width: 480px;
        padding: 20px;
    }

    h2 {
        font-size: 1.3em;
        margin-bottom: 15px;
    }

    .stats {
        padding: 12px;
    }

    .stats-row {
        gap: 8px;
    }

    .stats-item {
        min-width: 55px;
    }

    .stats-label {
        font-size: 0.7em;
    }

    .stats-value {
        font-size: 1.1em;
    }

    .word-info {
        font-size: 1.2em;
        padding: 12px;
        margin-bottom: 12px;
    }

    .hint-info {
        font-size: 0.85em;
        min-height: 20px;
        margin-bottom: 15px;
    }

    .input-group {
        gap: 10px;
        margin-bottom: 15px;
    }

    input[type="text"] {
        padding: 10px 12px;
        font-size: 0.95em;
    }

    button {
        padding: 10px 18px;
        font-size: 0.9em;
    }

    #startBtn {
        padding: 12px 20px;
    }

    .stats-modes {
        gap: 6px;
    }

    .mode-label {
        padding: 3px 6px;
        font-size: 0.8em;
    }

    .stats-time {
        font-size: 0.8em;
    }

    .streak-info {
        font-size: 0.85em;
        padding: 6px 12px;
        margin-bottom: 10px;
    }

    .feedback {
        min-height: 24px;
        padding: 6px;
        font-size: 0.85em;
    }

    .keyboard-hint {
        font-size: 0.7em;
    }
}

/* ============================================================================
   响应式适配 - 移动端 (<=600px)
   ============================================================================ */
@media screen and (max-width: 600px) {
    body {
        padding: 8px;
        align-items: flex-start;
    }

    .card-container {
        padding: 12px;
        border-radius: 10px;
        margin-top: 6px;
        margin-bottom: 6px;
    }

    .stats {
        padding: 8px;
    }

    .stats-row {
        gap: 3px;
    }

    .stats-item {
        min-width: 45px;
    }

    .stats-label {
        font-size: 0.65em;
    }

    .stats-value {
        font-size: 0.9em;
    }

    .word-info {
        padding: 10px;
        font-size: 1em;
        margin-bottom: 10px;
    }

    .input-group {
        flex-direction: column;
        gap: 6px;
        margin-bottom: 10px;
    }

    .input-group input[type="text"] {
        width: 100%;
    }

    .input-group button {
        width: 100%;
    }

    h2 {
        font-size: 1.1em;
        margin-bottom: 12px;
    }

    .stats-modes {
        gap: 3px;
    }

    .mode-label {
        padding: 2px 4px;
        font-size: 0.7em;
    }

    .stats-time {
        font-size: 0.7em;
        gap: 8px;
    }

    .streak-info {
        font-size: 0.75em;
        padding: 5px 10px;
        margin-bottom: 10px;
    }

    .feedback {
        font-size: 0.8em;
        min-height: 20px;
        padding: 6px;
    }

    .keyboard-hint {
        font-size: 0.65em;
        margin-top: 8px;
    }

    .stats-actions {
        flex-direction: column;
        gap: 6px;
    }

    .stats-actions button {
        padding: 8px 12px;
        font-size: 0.8em;
    }
}

/* ============================================================================
   响应式适配 - 小屏幕手机 (<=380px)
   ============================================================================ */
@media screen and (max-width: 380px) {
    .card-container {
        padding: 10px;
    }

    h2 {
        font-size: 1em;
        margin-bottom: 10px;
    }

    .stats-row {
        gap: 2px;
    }

    .stats-item {
        min-width: 40px;
    }

    .stats-label {
        font-size: 0.6em;
    }

    .stats-value {
        font-size: 0.8em;
    }

    .word-info {
        padding: 8px;
        font-size: 0.9em;
        margin-bottom: 8px;
    }

    .hint-info {
        font-size: 0.75em;
        min-height: 18px;
        margin-bottom: 10px;
    }

    .mode-label {
        font-size: 0.65em;
        padding: 2px 3px;
    }

    .stats-time {
        font-size: 0.65em;
        gap: 6px;
    }

    .input-group {
        gap: 5px;
        margin-bottom: 8px;
    }

    input[type="text"] {
        padding: 8px 10px;
        font-size: 0.85em;
    }

    button {
        padding: 8px 14px;
        font-size: 0.85em;
    }

    .feedback {
        font-size: 0.75em;
        min-height: 18px;
        padding: 5px;
    }

    .streak-info {
        font-size: 0.7em;
        padding: 4px 8px;
        margin-bottom: 8px;
    }
}

/* ============================================================================
   特殊适配 - iOS安全区域
   ============================================================================ */
@supports (-webkit-touch-callout: none) {
    body {
        min-height: -webkit-fill-available;
    }
}

/* ============================================================================
   特殊适配 - 矮屏幕设备 (高度<=650px)
   ============================================================================ */
@media screen and (max-height: 650px) {
    .card-container {
        margin-top: 3px;
        padding: 10px;
        margin-bottom: 3px;
    }

    h2 {
        margin-bottom: 8px;
        font-size: 1em;
    }

    .word-info {
        padding: 6px;
        margin-bottom: 6px;
        font-size: 0.95em;
    }

    .hint-info {
        min-height: 16px;
        margin-bottom: 6px;
        font-size: 0.8em;
    }

    .input-group {
        margin-bottom: 6px;
    }

    input[type="text"] {
        padding: 6px 8px;
        font-size: 0.85em;
    }

    button {
        padding: 6px 12px;
        font-size: 0.8em;
    }

    .feedback {
        min-height: 18px;
        padding: 4px;
        font-size: 0.75em;
    }

    .stats {
        padding: 6px;
        margin-bottom: 8px;
    }

    .stats-row {
        margin-bottom: 4px;
    }

    .stats-modes {
        margin-top: 4px;
    }

    .stats-time {
        margin-top: 4px;
        padding-top: 4px;
    }

    .keyboard-hint {
        margin-top: 6px;
    }

    .stats-actions {
        margin-top: 4px;
    }

    .stats-label {
        font-size: 0.6em;
    }

    .stats-value {
        font-size: 0.85em;
    }

    .streak-info {
        font-size: 0.7em;
        padding: 4px 8px;
        margin-bottom: 6px;
    }
}

/* ============================================================================
   特殊适配 - 极矮屏幕手机 (高度<=550px, 宽度<=600px)
   ============================================================================ */
@media screen and (max-height: 550px) and (max-width: 600px) {
    .card-container {
        margin-top: 2px;
        padding: 6px;
    }

    h2 {
        font-size: 0.95em;
        margin-bottom: 6px;
    }

    .word-info {
        font-size: 0.85em;
        padding: 5px;
        margin-bottom: 5px;
    }

    .hint-info {
        font-size: 0.7em;
        min-height: 14px;
        margin-bottom: 5px;
    }

    input[type="text"] {
        padding: 5px 6px;
        font-size: 0.8em;
    }

    button {
        padding: 5px 10px;
        font-size: 0.75em;
    }

    .stats-label {
        font-size: 0.55em;
    }

    .stats-value {
        font-size: 0.8em;
    }

    .stats {
        padding: 5px;
        margin-bottom: 6px;
    }

    .feedback {
        font-size: 0.7em;
    }
}

/* ============================================================================
   基础元素样式
   ============================================================================ */

h2 {
    color: #333;
    margin-bottom: 20px;
    font-weight: 600;
}

/* ============================================================================
   用户欢迎信息
   ============================================================================ */
.user-welcome {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 10px 10px;
    border-radius: 25px;
    margin-bottom: 10px;
    font-size: 0.95em;
    display: inline-block;
}

.user-welcome .nickname {
    font-weight: 600;
    margin-left: 5px;
}

/* ============================================================================
   进度条
   ============================================================================ */
.progress-bar-container {
    height: 6px;
    background: #e9ecef;
    border-radius: 3px;
    margin-bottom: 7px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #28a745, #20c997);
    border-radius: 3px;
    transition: width 0.3s ease;
    width: 0%;
}

/* ============================================================================
   统计区域
   ============================================================================ */
.stats {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: none;
    color: #495057;
    padding: 8px;
    border-radius: 8px;
    margin-bottom: 10px;
    font-size: 0.9em;
}

.stats-row {
    display: flex;
    justify-content: space-around;
    margin-bottom: 10px;
}

.stats-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stats-label {
    font-size: 0.75em;
    color: #6c757d;
    margin-bottom: 2px;
}

.stats-value {
    font-size: 1.2em;
    font-weight: 600;
}

.stats-value.correct {
    color: #28a745;
}

.stats-value.wrong {
    color: #dc3545;
}

.stats-value.total {
    color: #007bff;
}

/* 练习模式选择 */
.stats-modes {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.mode-label {
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background 0.2s;
}

.mode-label:hover {
    background: rgba(0, 0, 0, 0.05);
}

.mode-label input {
    margin: 0;
}

/* 计时信息 */
.stats-time {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #dee2e6;
    display: flex;
    justify-content: center;
    gap: 20px;
    font-size: 0.85em;
}

/* ============================================================================
   连续正确提示
   ============================================================================ */
.streak-info {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeeba 100%);
    color: #856404;
    padding: 8px 15px;
    border-radius: 20px;
    margin-bottom: 15px;
    font-size: 0.9em;
    display: none;
}

.streak-info.show {
    display: inline-block;
}

/* ============================================================================
   单词和提示显示区域
   ============================================================================ */
.word-info {
    font-size: 1.4em;
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 8px;
    word-wrap: break-word;
    word-break: normal;
    overflow-wrap: break-word;
    line-height: 1.5;
}

.word-info strong {
    color: #667eea;
}

.hint-info {
    font-size: 0.95em;
    color: #6c757d;
    margin-bottom: 20px;
    min-height: 24px;
    word-wrap: break-word;
    word-break: normal;
    overflow-wrap: break-word;
    line-height: 1.5;
}

/* ============================================================================
   输入区域
   ============================================================================ */
.input-group {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    flex-wrap: wrap;
    align-items: stretch;
    transition: opacity 0.3s ease, max-height 0.3s ease, margin 0.3s ease;
    overflow: hidden;
}

.input-group input[type="text"] {
    flex: 1;
    /* min-width: 120px; */
}

.input-group button {
    flex-shrink: 0;
}

/* ============================================================================
   字母输入框容器
   ============================================================================ */
.letter-inputs-container {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    gap: 3px;
    margin-bottom: 15px;
    padding: 8px;
    background: #f8f9fa;
    border-radius: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.letter-inputs-container .letter-input {
    width: 28px;
    height: 32px;
    min-width: 28px;
    text-align: center;
    font-size: 1em;
    font-weight: bold;
    text-transform: lowercase;
    border: 2px solid #667eea;
    border-radius: 4px;
    outline: none;
    transition: all 0.2s;
}

.letter-inputs-container .letter-input:focus {
    border-color: #764ba2;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
    transform: translateY(-2px);
}

.letter-inputs-container .letter-input.correct {
    background: #d4edda;
    border-color: #28a745;
    color: #155724;
}

.letter-inputs-container .letter-input.wrong {
    background: #f8d7da;
    border-color: #dc3545;
    color: #721c24;
}

/* 移动端字母输入框适配 */
@media screen and (max-width: 600px) {
    .letter-inputs-container {
        gap: 2px;
        padding: 6px;
    }

    .letter-inputs-container .letter-input {
        width: 24px;
        height: 28px;
        min-width: 24px;
        font-size: 0.9em;
    }
}

/* 小屏幕手机 */
@media screen and (max-width: 380px) {
    .letter-inputs-container {
        gap: 2px;
        padding: 5px;
    }

    .letter-inputs-container .letter-input {
        width: 20px;
        height: 24px;
        min-width: 20px;
        font-size: 0.8em;
        border-width: 1px;
    }
}

/* ============================================================================
   输入框样式
   ============================================================================ */
input[type="text"] {
    flex-grow: 1;
    /* padding: 14px 16px; */
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1em;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

input[type="text"]:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

input[type="text"]:disabled {
    background: #f8f9fa;
    border-color: #e9ecef;
}

/* ============================================================================
   按钮样式
   ============================================================================ */
button {
    padding: 14px 28px;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1em;
    font-weight: 500;
    transition: transform 0.1s, box-shadow 0.2s;
}

button:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

button:active:not(:disabled) {
    transform: translateY(0);
}

button:disabled {
    background: #adb5bd;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

#startBtn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    width: 100%;
    margin-bottom: 5px;
}

#startBtn:hover:not(:disabled) {
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* ============================================================================
   答题反馈
   ============================================================================ */
.feedback {
    min-height: 28px;
    margin-top: 8px;
    font-weight: 500;
    padding: 10px;
    border-radius: 6px;
    transition: all 0.2s;
}

.feedback.correct {
    background: #d4edda;
    color: #155724;
}

.feedback.wrong {
    background: #f8d7da;
    color: #721c24;
}

.correct {
    color: #28a745;
}

.wrong {
    color: #dc3545;
}

/* ============================================================================
   辅助样式类
   ============================================================================ */
.highlight {
    background-color: #fff3cd;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: normal;
    font-family: monospace;
}

/* 键盘快捷键提示 */
.keyboard-hint {
    font-size: 0.75em;
    color: #adb5bd;
    margin-top: 15px;
}

.keyboard-hint kbd {
    background: #e9ecef;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: monospace;
}

.word-phonetic {
    font-size: 0.85em;
    color: #868e96;
    font-family: monospace;
    margin-left: 10px;
}

/* ============================================================================
   历史记录相关样式
   ============================================================================ */
.history-btn,
.practice-btn {
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
    margin-top: 10px;
    width: 100%;
}

.history-btn:hover:not(:disabled),
.practice-btn:hover:not(:disabled) {
    box-shadow: 0 4px 12px rgba(23, 162, 184, 0.4);
}

.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
}

.modal-overlay.show {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 16px;
    padding: 25px;
    max-width: 500px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
}

.modal-title {
    font-size: 1.3em;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5em;
    cursor: pointer;
    color: #6c757d;
    padding: 0;
    width: auto;
    height: auto;
}

.modal-close:hover {
    color: #333;
    transform: none;
    box-shadow: none;
}

.history-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.history-item {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 4px 5px;
    margin-bottom: 5px;
    text-align: left;
}

.history-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 0.9em;
    color: #6c757d;
}

.history-item-stats {
    display: flex;
    gap: 15px;
    font-size: 12px;
}

.history-stat {
    display: flex;
    align-items: center;
    gap: 4px;
}

.history-stat.correct {
    color: #28a745;
}

.history-stat.wrong {
    color: #dc3545;
}

.history-stat.time {
    color: #007bff;
}

.history-empty {
    text-align: center;
    color: #6c757d;
    padding: 30px;
    font-size: 0.95em;
}

.wrong-words-list {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px dashed #dee2e6;
    font-size: 12px;
    color: #dc3545;
}

.wrong-word {
    display: inline-block;
    background: #f8d7da;
    padding: 2px 8px;
    border-radius: 4px;
    margin: 2px;
}

.btn-group {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.btn-group button {
    flex: 1;
}

.clear-history-btn {
    background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
    margin-top: 5px;
}

.practice-mode-section {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeeba 100%);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    text-align: left;
}

.practice-mode-title {
    font-weight: 600;
    color: #856404;
    margin-bottom: 10px;
}

.practice-stats {
    display: flex;
    justify-content: space-around;
    margin-bottom: 10px;
}

.practice-stat {
    text-align: center;
}

.practice-stat-value {
    font-size: 1.5em;
    font-weight: bold;
    color: #856404;
}

.practice-stat-label {
    font-size: 0.8em;
    color: #856404;
}

.no-wrong-words {
    color: #28a745;
    font-size: 0.95em;
}

/* ============================================================================
   功能按钮区域
   ============================================================================ */
.stats-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 10px;
}

.stats-actions button {
    padding: 6px 12px;
    font-size: 0.9em;
}

/* ============================================================================
   历史记录分组样式
   ============================================================================ */
.history-group {
    background: #f8f9fa;
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
}

.history-group-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 5px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    cursor: pointer;
    user-select: none;
}

.history-group-header:hover {
    opacity: 0.95;
}

.date-group-title {
    font-weight: 600;
    font-size: 12px;
}

.date-group-summary {
    font-size: 11px;
    opacity: 0.9;
}

.history-group-header .expand-icon {
    font-size: 0.8em;
    transition: transform 0.2s;
}

.history-group-content {
    display: block;
}

/* 日期级别的错误单词区域 */
.date-wrong-words {
    padding: 4px 5px;
    background: #fff3cd;
    border-bottom: 1px solid #ffeeba;
}

.wrong-words-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    color: #856404;
    font-weight: 500;
}

.wrong-words-header:hover {
    opacity: 0.8;
}

.wrong-words-content {
    display: block;
    padding-top: 10px;
}

.wrong-words-content .wrong-word {
    background: #f8d7da;
}

/* 当前场次标识 */
.current-session {
    border-left: 3px solid #667eea;
    background: #f0f4ff;
}

.current-badge {
    background: #667eea;
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.75em;
    margin-left: 5px;
}

/* ============================================================================
   设置面板样式
   ============================================================================ */
.settings-btn {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%) !important;
}

.settings-btn:hover:not(:disabled) {
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.4);
}

.settings-content {
    text-align: left;
}

.settings-section {
    margin-bottom: 20px;
}

.settings-section h3 {
    font-size: 1em;
    color: #495057;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #dee2e6;
}

.settings-item {
    margin-bottom: 10px;
}

.settings-item.sub-item {
    margin-left: 20px;
    margin-bottom: 8px;
}

.settings-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: #f8f9fa;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s;
}

.settings-label:hover {
    background: #e9ecef;
}

.settings-label span {
    color: #495057;
    font-size: 0.95em;
}

.settings-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #667eea;
}

.settings-hint {
    font-size: 0.85em;
    color: #6c757d;
    text-align: center;
    margin-top: 15px;
}

/* 移动端设置面板适配 */
@media screen and (max-width: 600px) {
    .settings-label {
        padding: 6px 10px;
    }

    .settings-label span {
        font-size: 0.9em;
    }

    .settings-label input[type="checkbox"] {
        width: 16px;
        height: 16px;
    }

    .settings-item.sub-item {
        margin-left: 15px;
    }
}
