.prose h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #fecaca;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.prose h2:hover {
    color: #ef4444;
    border-color: #ef4444;
}

@media (max-width: 768px) {
    .prose h2 {
        font-size: 1.25rem;
        margin-top: 2rem;
    }
}

.prose h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1f2937;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.2s ease;
}

.prose h3:hover {
    color: #ef4444;
}

@media (max-width: 768px) {
    .prose h3 {
        font-size: 1.125rem;
        margin-top: 1.5rem;
    }
}

.prose h3::before {
    content: "•";
    color: #ef4444;
    font-size: 1.5rem;
}

.prose h4 {
    font-size: 1.125rem;
    font-weight: 700;
    color: #374151;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.prose p {
    color: #4b5563;
    line-height: 1.625;
    margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
    .prose p {
        font-size: 0.9375rem;
        line-height: 1.75;
    }
}

.prose ul {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
    margin-left: 1.5rem;
}

.prose ul li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    color: #4b5563;
    transition: color 0.2s ease;
}

.prose ul li:hover {
    color: #1f2937;
}

.prose ul li::marker {
    color: #ef4444;
}

.prose ol {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
    margin-left: 1.5rem;
}

.prose ol li {
    color: #4b5563;
    transition: color 0.2s ease;
}

.prose ol li:hover {
    color: #1f2937;
}

.prose strong {
    color: #1f2937;
    font-weight: 700;
}

.prose strong:focus {
    outline: 2px solid #ef4444;
    outline-offset: 2px;
    border-radius: 2px;
}

.prose a {
    color: #ef4444;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 2px;
}

.prose a:hover {
    color: #dc2626;
}

.prose a:focus {
    outline: 2px solid #ef4444;
    outline-offset: 2px;
    border-radius: 2px;
}

@media (prefers-reduced-motion: reduce) {
    .prose a:hover {
        text-decoration-thickness: 3px;
    }
}

/* FAQ 折叠样式 */
.prose details {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.prose details:hover {
    background: #fef2f2;
    border-color: #fecaca;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.1);
}

.prose details[open] {
    background: #fef2f2;
    border-color: #fca5a5;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.15);
}

.prose details summary {
    cursor: pointer;
    font-weight: 700;
    font-size: 1.125rem;
    color: #1f2937;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: color 0.2s ease;
}

.prose details summary:hover {
    color: #ef4444;
}

.prose details summary::-webkit-details-marker {
    display: none;
}

.prose details summary::before {
    content: "";
    display: inline-block;
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 7px solid #ef4444;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.prose details[open] summary::before {
    transform: rotate(180deg);
}

.prose details summary:focus {
    outline: 2px solid #ef4444;
    outline-offset: 2px;
    border-radius: 4px;
}

.prose details > div {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
    color: #4b5563;
    line-height: 1.75;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .prose details {
        padding: 0.875rem 1rem;
    }
    
    .prose details summary {
        font-size: 1rem;
    }
}

/* YouTube 视频响应式样式 */
.video-container {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 2rem auto;
}

.video-container iframe {
    width: 100%;
    border-radius: 0.75rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .video-container iframe {
        height: 315px !important;
    }
}

.prose code {
    background-color: #fef2f2;
    color: #dc2626;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 0.875rem;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.prose code:hover {
    background-color: #fee2e2;
    color: #b91c1c;
}

@media (max-width: 768px) {
    .prose code {
        font-size: 0.8125rem;
        padding: 0.1875rem 0.375rem;
        word-break: break-all;
    }
}

.prose pre {
    background-color: #111827;
    color: #f3f4f6;
    padding: 1rem;
    border-radius: 0.5rem;
    overflow-x: auto;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
    .prose pre {
        padding: 0.75rem;
        font-size: 0.8125rem;
        overflow-x: scroll;
        -webkit-overflow-scrolling: touch;
    }
}

.prose pre code {
    background-color: transparent;
    color: #f3f4f6;
    padding: 0;
}

.prose blockquote {
    border-left: 4px solid #facc15;
    background-color: #fefce8;
    padding: 1rem;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: 0 0.5rem 0.5rem 0;
}

.prose blockquote:focus-within {
    outline: 2px solid #facc15;
    outline-offset: 2px;
}

@media (prefers-contrast: high) {
    .prose blockquote {
        background-color: #fef3c7;
        border-left-width: 6px;
    }
}

.prose hr {
    border-color: #e5e7eb;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.prose table {
    width: 100%;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
    border-collapse: collapse;
}

@media (max-width: 768px) {
    .prose table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

.prose th {
    background-color: #f3f4f6;
    color: #1f2937;
    font-weight: 700;
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 2px solid #e5e7eb;
}

.prose td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #f3f4f6;
    color: #4b5563;
}

.prose tbody tr:nth-child(even) {
    background-color: #f9fafb;
}

.prose tbody tr:hover {
    background-color: #fef2f2;
    transition: background-color 0.2s ease;
}

.prose tbody tr:last-child td {
    border-bottom: none;
}

@media print {
    .prose {
        color: #000;
        font-size: 12pt;
        line-height: 1.5;
    }

    .prose h2,
    .prose h3,
    .prose h4 {
        color: #000;
        page-break-after: avoid;
    }

    .prose a {
        color: #000;
        text-decoration: underline;
    }

    .prose a[href]:after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
    }

    .prose code {
        background-color: #f3f4f6;
        color: #000;
        border: 1px solid #d1d5db;
    }

    .prose pre {
        background-color: #f3f4f6;
        color: #000;
        border: 1px solid #d1d5db;
        page-break-inside: avoid;
    }

    .prose pre code {
        background-color: transparent;
        border: none;
    }

    .prose blockquote {
        background-color: #f3f4f6;
        border-left-color: #000;
        page-break-inside: avoid;
    }

    .prose table {
        page-break-inside: auto;
    }

    .prose tr {
        page-break-inside: avoid;
        page-break-after: auto;
    }

    .prose img {
        max-width: 100%;
        page-break-inside: avoid;
        box-shadow: none;
    }

    .prose ul,
    .prose ol {
        page-break-before: avoid;
    }

    .prose ul li,
    .prose ol li {
        page-break-inside: avoid;
    }

    .prose hr {
        page-break-after: always;
    }
}

.prose img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
    display: block;
}

.prose img:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.3s ease;
}

@media (max-width: 768px) {
    .prose img {
        border-radius: 0.375rem;
        margin-top: 1rem;
        margin-bottom: 1rem;
    }
}

.prose-alert {
    padding: 1rem;
    border-radius: 0.5rem;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
    border-left: 4px solid;
}

.prose-alert-info {
    background-color: #eff6ff;
    border-color: #3b82f6;
    color: #1e40af;
}

.prose-alert-warning {
    background-color: #fefce8;
    border-color: #facc15;
    color: #854d0e;
}

.prose-alert-danger {
    background-color: #fef2f2;
    border-color: #ef4444;
    color: #991b1b;
}

.prose-alert-success {
    background-color: #f0fdf4;
    border-color: #22c55e;
    color: #166534;
}

.prose-alert-title {
    font-weight: 700;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.prose-alert-info .prose-alert-title::before {
    content: "ℹ️";
}

.prose-alert-warning .prose-alert-title::before {
    content: "⚠️";
}

.prose-alert-danger .prose-alert-title::before {
    content: "❌";
}

.prose-alert-success .prose-alert-title::before {
    content: "✅";
}

@media (max-width: 768px) {
    .prose-alert {
        padding: 0.75rem;
        font-size: 0.9375rem;
    }
}

.prose-tip {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 2px solid #f59e0b;
    border-radius: 0.5rem;
    padding: 1rem 1.25rem;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
    position: relative;
}

.prose-tip::before {
    content: "💡";
    position: absolute;
    top: -0.75rem;
    left: 1rem;
    background: #f59e0b;
    color: white;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.prose-tip-title {
    font-weight: 700;
    color: #92400e;
    margin-bottom: 0.5rem;
    padding-left: 0.5rem;
}

.prose-tip-content {
    color: #78350f;
    line-height: 1.625;
}

@media (max-width: 768px) {
    .prose-tip {
        padding: 0.875rem 1rem;
    }

    .prose-tip::before {
        width: 1.25rem;
        height: 1.25rem;
        font-size: 0.75rem;
    }
}

.prose-note {
    background-color: #f3f4f6;
    border-left: 4px solid #6b7280;
    border-radius: 0.375rem;
    padding: 1rem;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
}

.prose-note-title {
    font-weight: 700;
    color: #374151;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.prose-note-title::before {
    content: "📝";
}

.prose-note-content {
    color: #4b5563;
    line-height: 1.625;
}

@media (max-width: 768px) {
    .prose-note {
        padding: 0.75rem;
        font-size: 0.9375rem;
    }
}
