
.trans-card {
    background: linear-gradient(145deg, #fffef8 0%, #f5f5dc 100%);
    border: 2px solid #8B4513;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    z-index: 1;
}

.trans-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    border-color: var(--stitch-red);
}

.tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #e0f2fe;
    color: #0369a1;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    width: fit-content;
}

.en { font-weight: 700; color: #1f2937; font-size: 17px; line-height: 1.5; }
.zh-text { color: #6b7280; font-size: 15px; }

.trans-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease, opacity 0.3s ease;
    background: #fffbeb;
    opacity: 0;
}

.trans-content.show {
    max-height: 500px;
    padding: 16px 20px;
    border-top: 2px dashed #d1d5db;
    opacity: 1;
}

.trans-toggle {
    font-size: 12px;
    color: #92400e;
    background: #fef3c7;
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 600;
    pointer-events: none;
    user-select: none;
}

.dialog-card {
    background: linear-gradient(145deg, #fffef8 0%, #f5f5dc 100%);
    border: 2px solid #8B4513;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.dialog-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.15);
    border-color: var(--stitch-red);
}

.speaker-a, .speaker-b {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 14px;
}

.speaker-a {
    background: #e0f2fe;
    color: #0369a1;
    border: 2px solid #7dd3fc;
}

.speaker-b {
    background: #fef3c7;
    color: #92400e;
    border: 2px solid #fcd34d;
}

.scene-tag {
    display: inline-block;
    font-size: 12px;
    color: #6b7280;
    font-style: italic;
    background: #f3f4f6;
    padding: 2px 10px;
    border-radius: 12px;
}

.vocab-card {
    background: linear-gradient(145deg, #fffef8 0%, #f5f5dc 100%);
    border: 2px solid #8B4513;
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.vocab-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    border-color: var(--stitch-red);
}

.word { font-size: 20px; font-weight: 800; color: #1f2937; margin-bottom: 4px; }
.zh { color: #6b7280; font-size: 14px; }
.example { 
    margin-top: 12px; 
    padding: 10px; 
    background: #fff; 
    border: 2px dashed #d1d5db; 
    border-radius: 8px; 
    font-size: 13px; 
    color: #4b5563; 
}

.audio-btn {
    appearance: none;
    border: none;
    cursor: pointer;
    border-radius: 999px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 700;
    background: var(--stitch-red);
    color: #fff;
    margin-top: 12px;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(220, 20, 60, 0.3);
    font-family: inherit;
}

.audio-btn:hover { 
    transform: translateY(-1px); 
    box-shadow: 0 6px 16px rgba(220, 20, 60, 0.4); 
}

.audio-btn:active { transform: translateY(0); }
.audio-btn.speaking { background: #991b1b; }

.word-bank { 
    display: flex; 
    flex-wrap: wrap; 
    gap: 10px; 
    padding: 16px; 
    background: linear-gradient(145deg, #fffef8 0%, #f5f5dc 100%);
    border-radius: 12px; 
    border: 2px dashed #8B4513; 
}

.word-bank span { 
    padding: 8px 14px; 
    background: #fff; 
    border: 2px solid #8B4513; 
    border-radius: 20px; 
    font-weight: 700; 
    color: var(--stitch-red); 
    font-size: 14px; 
}

.email-card { 
    background: linear-gradient(145deg, #fffef8 0%, #f5f5dc 100%);
    border: 2px solid #8B4513; 
    border-radius: 16px; 
    padding: 24px; 
    line-height: 2.2; 
    font-size: 15px; 
}

.email-meta { 
    color: #6b7280; 
    margin-bottom: 16px; 
    padding-bottom: 16px; 
    border-bottom: 2px solid #d1d5db; 
    font-size: 13px; 
}

.blank-wrapper { 
    display: inline-block; 
    position: relative; 
    cursor: pointer; 
    margin: 0 2px; 
}

.blank-underline { 
    display: inline-block; 
    min-width: 70px; 
    border-bottom: 3px solid var(--stitch-red); 
    text-align: center; 
    padding: 2px 8px; 
    color: #92400e; 
    font-weight: 700; 
    transition: all 0.2s; 
    user-select: none; 
    background: #fff;
    border-radius: 4px;
}

.blank-wrapper:hover .blank-underline { 
    background: #fef3c7; 
    border-bottom-color: #991b1b;
}

.blank-wrapper.revealed .blank-underline { 
    border-bottom-color: transparent; 
    color: transparent; 
    background: transparent;
}

.blank-answer { 
    display: none; 
    position: absolute; 
    left: 0; 
    top: 50%; 
    transform: translateY(-50%); 
    width: 100%; 
    text-align: center; 
    color: #166534; 
    font-weight: 800; 
    background: #dcfce7; 
    padding: 2px 8px; 
    border-radius: 6px; 
    font-size: 14px; 
    pointer-events: none; 
}

.blank-wrapper.revealed .blank-answer { display: block; }

.todo-item { 
    display: flex; 
    gap: 16px; 
    align-items: flex-start; 
    background: white;
    border-radius: 12px; 
    padding: 20px; 
    cursor: pointer; 
    transition: all 0.3s ease; 
    user-select: none;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    border-left: 4px solid #FF5722;
}

.todo-item:hover { 
    transform: translateX(5px); 
    box-shadow: 0 6px 16px rgba(0,0,0,0.15); 
}

.todo-item.completed { 
    opacity: 0.7;
    border-left-color: #4CAF50;
    background: #F1F8E9;
}

.todo-item.completed .todo-title { 
    text-decoration: line-through; 
    color: #666;
}

.todo-checkbox {
    width: 28px;
    height: 28px;
    border: 3px solid #FF5722;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: white;
    transition: all 0.3s;
}

.todo-item.completed .todo-checkbox {
    background: #4CAF50;
    border-color: #4CAF50;
}

.todo-checkbox::after {
    content: '✓';
    color: white;
    font-weight: bold;
    font-size: 1rem;
    opacity: 0;
    transition: opacity 0.3s;
}

.todo-item.completed .todo-checkbox::after {
    opacity: 1;
}

.todo-title { 
    font-weight: bold; 
    font-size: 1.125rem;
    color: #1f2937; 
    margin-bottom: 4px;
}

.todo-desc {
    color: #4b5563;
    font-size: 0.95rem;
}

.todo-item.completed .todo-title { 
    color: #666; 
}

#progressBar {
    height: 32px;
    background: linear-gradient(to right, #4CAF50, #81C784);
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    transition: all 0.5s;
}

.pattern-box { 
    background: linear-gradient(145deg, #fffef8 0%, #f5f5dc 100%);
    border: 3px dashed #8B4513; 
    border-radius: 12px; 
    padding: 20px; 
}

.pattern-box code { 
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; 
    font-size: 14px; 
    color: #1f2937; 
    line-height: 2; 
}

.example-list { margin-top: 10px; padding-left: 20px; font-size: 14px; color: #4b5563; }
.example-list li { margin-bottom: 6px; }

.quote-box {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-radius: 16px;
    padding: 14px 20px;
    font-style: italic;
    color: #92400e;
    border: 2px solid #f59e0b;
}
