/* 
 * style.css
 * Main Stylesheet for Beijing Food Menu
 * Pure CSS, No Frameworks
 */

:root {
    --primary-color: #D32F2F;
    /* Beijing Red */
    --secondary-color: #FBC02D;
    /* Imperial Gold */
    --text-color: #333333;
    --bg-color: #F9F9F9;
    --white: #FFFFFF;
    --gray: #757575;
    --border-color: #E0E0E0;
    --font-main: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    --container-width: 1180px;
}

/* Reset & Base */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-color);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

/* Layout Utilities */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 18px;
}

@media (max-width: 1024px) {
    .container {
        max-width: 960px;
        padding: 0 14px;
    }
}

@media (max-width: 768px) {
    .container {
        max-width: 100%;
        padding: 0 12px;
    }

    body {
        overflow-x: hidden;
    }
}

.flex {
    display: flex;
}

.grid {
    display: grid;
}

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

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

/* Header */
header {
    background-color: var(--white);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    position: relative;
    z-index: 100;
}

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

.logo a {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
}

/* Dropdown Menu (Desktop) */
.main-nav ul {
    display: flex;
    gap: 20px;
    align-items: center;
}

.has-dropdown {
    position: relative;
    padding-bottom: 10px;
    margin-bottom: -10px;
}

.arrow-down {
    display: inline-block;
    width: 0;
    height: 0;
    margin-left: 5px;
    vertical-align: middle;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid var(--text-color);
    transition: transform 0.3s ease;
}

.has-dropdown:hover .arrow-down {
    border-top-color: var(--primary-color);
}

.main-nav .dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--white);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    min-width: 200px;
    border-radius: 4px;
    padding: 10px 0;
    z-index: 1000;
    margin-top: 0;
    flex-direction: column;
    /* Reset for ul */
    gap: 0;
    /* Reset gap */
}

/* Mega Menu Styles */
.mega-menu {
    width: 600px;
    padding: 20px;
    left: 50%;
    /* Center relative to parent */
    transform: translateX(-50%);
    /* Center alignment */
}

/* Prevent overflow on smaller desktop screens */
@media (max-width: 1000px) {
    .mega-menu {
        width: 400px;
        /* Smaller width */
        left: auto;
        right: 0;
        transform: none;
    }

    .mega-menu-cols {
        grid-template-columns: 1fr;
        /* Stack columns if needed */
    }
}

.mega-menu-cols {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.mega-col h4 {
    color: var(--primary-color);
    margin-bottom: 10px;
    border-bottom: 1px solid #eee;
    padding-bottom: 5px;
}

.mega-col ul {
    display: block;
}

.mega-col li {
    margin-bottom: 5px;
}

/* Desktop Hover */
@media (min-width: 769px) {
    .has-dropdown:hover .dropdown {
        display: block;
    }
}

.dropdown li a {
    display: block;
    padding: 8px 20px;
    font-size: 14px;
    color: var(--text-color);
}

.dropdown li a:hover {
    background-color: #f5f5f5;
    color: var(--primary-color);
}

.main-nav a {
    font-weight: 500;
    font-size: 16px;
}

/* Image Gallery (Detail Page) */
/* Gallery Grid - Mobile Optimized */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        /* Force 2 columns on mobile */
        gap: 10px;
    }

    .gallery-item img {
        height: 150px;
        /* Smaller height for mobile */
    }
}

/* Lightbox Styles */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    padding-top: 0;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.95);
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.lightbox-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 80vh;
    object-fit: contain;
    animation-name: zoom;
    animation-duration: 0.3s;
    user-select: none;
}

.lightbox-caption {
    margin: 15px auto 0;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
    font-size: 16px;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
    z-index: 2002;
}

.lightbox-close:hover,
.lightbox-close:focus {
    color: #fff;
    text-decoration: none;
    cursor: pointer;
}

/* Lightbox Navigation */
.lightbox-nav {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -50px;
    color: white;
    font-weight: bold;
    font-size: 30px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    -webkit-user-select: none;
    z-index: 2001;
    background-color: rgba(0, 0, 0, 0.3);
}

.lightbox-nav:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.lightbox-prev {
    left: 0;
    border-radius: 3px 0 0 3px;
}

.lightbox-next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

@media (max-width: 768px) {
    .lightbox-nav {
        padding: 10px;
        font-size: 24px;
    }

    .lightbox-caption {
        font-size: 14px;
        width: 90%;
    }
}

@keyframes zoom {
    from {
        transform: scale(0.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Sidebar Layout */
.page-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
}

@media (max-width: 900px) {
    .page-layout {
        grid-template-columns: 1fr;
        /* Stack on smaller screens */
    }
}

.sidebar-widget {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}

.sidebar-widget h3 {
    font-size: 1.2em;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
    color: #333;
}

.sidebar-list li {
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #eee;
}

.sidebar-list li:last-child {
    border-bottom: none;
}

.sidebar-list a {
    font-weight: 500;
    color: #555;
    display: block;
    transition: color 0.2s;
}

.sidebar-list a:hover {
    color: var(--primary-color);
    padding-left: 5px;
    /* Slide effect */
}

.sidebar-list .meta {
    font-size: 0.85em;
    color: #999;
    margin-top: 4px;
}

/* Mobile Menu Toggle (Hidden on Desktop) */
.menu-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
}

/* Hero Banner */
.hero-banner {
    background-color: #333;
    color: var(--white);
    text-align: center;
    padding: 60px 20px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.hero-banner h1 {
    font-size: 3em;
    margin-bottom: 10px;
}

.hero-banner p {
    font-size: 1.2em;
    opacity: 0.9;
}

/* Grid Layouts */
.food-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    padding: 40px 0;
}

.food-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.food-card:hover {
    transform: translateY(-5px);
}

.food-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.food-card-content {
    padding: 15px;
}

.food-card h3 {
    font-size: 1.2em;
    margin-bottom: 8px;
}

.food-card p {
    font-size: 0.9em;
    color: var(--gray);
}

/* Topic List Layout */
.topic-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
    padding: 40px 0;
}

.topic-list .food-card a {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    height: 100%;
}

.topic-list .food-card img {
    width: 300px;
    height: 200px;
    min-width: 300px;
    /* Prevent shrinking */
    object-fit: cover;
}

.topic-list .food-card-content {
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
    /* Take remaining space */
}

.topic-list .food-card h3 {
    font-size: 1.5em;
    margin-bottom: 15px;
}

.topic-list .food-card p {
    font-size: 1.1em;
}

@media (max-width: 768px) {
    .topic-list .food-card a {
        flex-direction: column;
    }

    .topic-list .food-card img {
        width: 100%;
        height: 200px;
    }
}

/* Detail Page */
.detail-content {
    background: var(--white);
    padding: 40px;
    margin: 40px 0;
    border-radius: 8px;
}

.detail-image {
    margin-bottom: 30px;
}

.detail-image img {
    width: 100%;
    max-height: 600px;
    object-fit: cover;
    border-radius: 8px;
}

.detail-info h1 {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .detail-header {
        padding: 20px 15px !important;
    }

    .detail-header h1 {
        font-size: 1.5em !important;
        line-height: 1.3;
    }

    .detail-info h1 {
        font-size: 1.8em;
    }
}

.detail-text {
    font-size: 1.1em;
    line-height: 1.8;
    margin-bottom: 40px;
}

/* Tags Section */
.tags-container {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.tags-label {
    font-weight: bold;
    margin-right: 10px;
    color: #555;
}

.tag-item {
    display: inline-block;
    background-color: #f0f0f0;
    color: #333;
    padding: 4px 10px;
    margin-right: 8px;
    margin-bottom: 8px;
    border-radius: 20px;
    font-size: 0.9em;
    transition: all 0.3s ease;
}

.tag-item:hover {
    background-color: var(--primary-color);
    color: var(--white);
    text-decoration: none;
}

/* Comments Section */
.comments-section {
    margin-top: 50px;
    border-top: 1px solid var(--border-color);
    padding-top: 30px;
}

.comment-form input,
.comment-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: inherit;
}

.comment-form .grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 768px) {
    .comment-form .grid {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

/* Gallery Styles */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 30px 0;
}

@media (max-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

@media (max-width: 600px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    cursor: pointer;
}

.gallery-caption {
    padding: 10px 15px;
    background: #fff;
    color: #333;
    font-size: 0.9em;
    line-height: 1.4;
    border-top: 1px solid #eee;
}

.gallery-item:hover .gallery-caption {
    color: var(--primary-color);
}

/* Comment Items */
.comment-item {
    margin-bottom: 15px;
    padding: 15px 20px;
    border-radius: 8px;
}

.comment-item-user {
    background: #fff;
    border: 1px solid #e5e7eb;
}

.comment-item-admin {
    background: #f0f9ff;
    border-left: 3px solid #3b82f6;
}

.comment-meta {
    margin-bottom: 10px;
    color: #666;
    font-size: 0.85em;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.comment-author {
    font-weight: 600;
    color: #333;
}

.comment-badge-official {
    background: #3b82f6;
    color: #fff;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.7em;
    font-weight: 600;
}

.comment-date {
    color: #999;
}

.comment-text {
    line-height: 1.6;
    color: #444;
    margin-bottom: 10px;
}

.reply-btn {
    background: none;
    border: none;
    color: #3b82f6;
    font-size: 0.85em;
    cursor: pointer;
    padding: 5px 0;
    font-weight: 600;
}

.reply-btn:hover {
    text-decoration: underline;
}

/* Reply Form Container */
.reply-form-container {
    display: none;
    margin-top: 15px;
    padding: 15px;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.reply-form-container.active {
    display: block;
}

.reply-form-field {
    margin-bottom: 10px;
}

.reply-form-field input,
.reply-form-field textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
}

.reply-form-actions {
    display: flex;
    gap: 10px;
}

.btn-submit {
    padding: 8px 16px;
    background: #3b82f6;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

.btn-submit:hover {
    background: #2563eb;
}

.btn-cancel {
    padding: 8px 16px;
    background: #6b7280;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

.btn-cancel:hover {
    background: #4b5563;
}

.honeypot-field {
    display: none;
}

.comment-form-title {
    margin-top: 30px;
    margin-bottom: 20px;
}

.comment-closed-notice {
    color: #777;
    font-style: italic;
}

/* Comment responsive styles */
@media (max-width: 768px) {
    .comment-item {
        margin-left: 0 !important;
    }

    .comment-item[data-comment-id] {
        margin-left: calc(var(--depth, 0) * 15px) !important;
    }
}

/* Comment section spacing */
.comments-section {
    margin-top: 40px;
}

.comments-section h3 {
    margin-bottom: 20px;
}


.btn {
    display: inline-block;
    padding: 12px 24px;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
}

.btn:hover {
    background-color: #E53935;
    /* Lighter red for better contrast */
    box-shadow: 0 4px 12px rgba(211, 47, 47, 0.3);
    transform: translateY(-2px);
}

/* Footer */
footer {
    background-color: #222;
    color: #ccc;
    padding: 40px 0;
    margin-top: 60px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
}

.footer-col h4 {
    color: var(--white);
    margin-bottom: 20px;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.copyright {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #444;
    font-size: 0.9em;
}



@media (max-width: 768px) {
    .header-inner {
        /* flex-wrap: wrap; Removed wrapping, keep logo and toggle on one line */
        position: relative;
    }

    .menu-toggle {
        display: block;
    }

    .main-nav {
        display: none;
        position: absolute;
        top: 60px;
        /* Height of header approx */
        right: 0;
        /* Right aligned */
        left: auto;
        /* Reset left */
        width: 100%;
        /* Changed to 100% for better mobile experience, or keep auto/min-width */
        max-width: 300px;
        /* Limit width on larger mobile screens */
        background-color: var(--white);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        padding: 0;
        z-index: 999;
        border-radius: 0 0 0 8px;
        max-height: calc(100vh - 70px);
        /* Limit height to viewport minus header height */
        overflow-y: auto;
        /* Enable vertical scrolling */
        padding-bottom: 20px;
        /* Add bottom padding for better scrolling */
        -webkit-overflow-scrolling: touch;
        /* Smooth scrolling on iOS */
    }

    .main-nav.active {
        display: block;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 0;
        align-items: stretch;
    }

    .main-nav ul li {
        border-bottom: 1px solid #eee;
    }

    .main-nav ul li a {
        display: block;
        padding: 15px 20px;
    }

    /* Mobile Dropdown Handling */
    .has-dropdown {
        cursor: pointer;
    }

    .dropdown,
    .mega-menu {
        display: none;
        /* Hidden by default */
        position: static;
        box-shadow: none;
        width: 100%;
        background-color: #f9f9f9;
        padding-left: 20px;
        min-width: auto;
    }

    /* JS Toggled State */
    .has-dropdown.open .dropdown {
        display: block;
    }

    .has-dropdown.open .arrow-down {
        transform: rotate(180deg);
    }

    /* Mobile Mega Menu Reset */
    .mega-menu {
        width: 100%;
        padding: 0;
    }

    .mega-menu-cols {
        display: block;
    }

    .mega-col {
        margin-bottom: 15px;
    }

    .mega-col h4 {
        padding: 10px 20px;
        margin: 0;
        background: #eee;
    }

    .dropdown li a {
        padding: 10px 20px;
        border-bottom: 1px solid #eee;
    }

    .hero-banner h1 {
        font-size: 2em;
    }

    .detail-content {
        padding: 20px;
    }

    /* Topic List Mobile */
    .topic-item {
        flex-direction: column;
        width: 100%;
        /* Ensure full width */
    }

    .topic-img {
        width: 100%;
        height: 200px;
        min-width: auto;
        /* Reset min-width */
    }

    .topic-content {
        padding: 20px !important;
        width: 100%;
    }
}

/* Breadcrumbs */
.breadcrumbs {
    font-size: 0.95em;
    color: #555;
    padding: 15px 20px;
    margin-bottom: 0;
    background: transparent;
}

@media (max-width: 768px) {
    .breadcrumbs {
        padding: 8px 12px;
        margin-bottom: 0;
    }

    .container.mt-20 {
        margin-top: 10px;
    }
}

.breadcrumbs a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

.breadcrumbs .sep {
    margin: 0 8px;
    color: #999;
    font-size: 0.8em;
}

.breadcrumbs span {
    color: #777;
}

/* Topic Description */
.topic-intro {
    background-color: #fff8e1;
    /* Lighter gold */
    padding: 40px 0;
    text-align: center;
    margin-bottom: 30px;
    border-bottom: 1px solid #eee;
}

.topic-intro h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    color: #222;
}

.topic-intro p {
    font-size: 1.1em;
    color: #444;
    max-width: 800px;
    margin: 0 auto;
}

/* Page Header (No Banner) */
.page-header {
    background-color: #f0f0f0;
    padding: 30px 0;
    border-bottom: 1px solid #e0e0e0;
}

.page-header h1 {
    margin: 0;
    font-size: 2em;
    color: #333;
}

/* Page Banner Styles */
.page-banner {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 80px 0;
    margin-bottom: 0;
    color: white;
    text-align: center;
}

.page-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.page-banner .container {
    position: relative;
    z-index: 2;
}

.page-banner h1 {
    font-size: 3rem;
    margin-bottom: 10px;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-banner p {
    font-size: 1.2rem;
    opacity: 0.95;
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

@media (max-width: 768px) {
    .page-banner {
        padding: 60px 0;
    }

    .page-banner h1 {
        font-size: 2rem;
    }

    .page-banner p {
        font-size: 1rem;
    }
}

/* TinyMCE Content Preservation Styles */
.detail-content h1,
.detail-content h2,
.detail-content h3,
.detail-content h4,
.detail-content h5,
.detail-content h6 {
    margin-top: 1.5em;
    margin-bottom: 0.75em;
    font-weight: bold;
    line-height: 1.3;
    color: #333;
}

.detail-content h1 {
    font-size: 2em;
}

.detail-content h2 {
    font-size: 1.75em;
}

.detail-content h3 {
    font-size: 1.5em;
}

.detail-content h4 {
    font-size: 1.25em;
}

.detail-content h5 {
    font-size: 1.1em;
}

.detail-content h6 {
    font-size: 1em;
}

.detail-content p {
    margin-bottom: 1em;
    line-height: 1.6;
}

.detail-content ul,
.detail-content ol {
    margin: 1em 0;
    padding-left: 2em;
}

.detail-content li {
    margin-bottom: 0.5em;
    line-height: 1.6;
}

.detail-content ul li {
    list-style-type: disc;
}

.detail-content ol li {
    list-style-type: decimal;
}

.detail-content ul ul,
.detail-content ol ul {
    list-style-type: circle;
}

.detail-content ul ul ul,
.detail-content ol ul ul {
    list-style-type: square;
}

.detail-content strong,
.detail-content b {
    font-weight: bold;
}

.detail-content em,
.detail-content i {
    font-style: italic;
}

.detail-content u {
    text-decoration: underline;
}

.detail-content a {
    color: var(--primary-color);
    text-decoration: underline;
}

.detail-content a:hover {
    color: #a52424;
}

.detail-content blockquote {
    margin: 1.5em 0;
    padding: 1em 1.5em;
    border-left: 4px solid var(--primary-color);
    background: #f9f9f9;
    font-style: italic;
}

.detail-content code {
    background: #f4f4f4;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

.detail-content pre {
    background: #f4f4f4;
    padding: 1em;
    border-radius: 5px;
    overflow-x: auto;
    margin: 1em 0;
}

.detail-content pre code {
    background: none;
    padding: 0;
}

.detail-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5em 0;
}

.detail-content table th,
.detail-content table td {
    border: 1px solid #ddd;
    padding: 0.75em;
    text-align: left;
}

.detail-content table th {
    background: #f4f4f4;
    font-weight: bold;
}

.detail-content img {
    max-width: 100%;
    height: auto;
    margin: 1em 0;
    border-radius: 5px;
}

.detail-content hr {
    border: none;
    border-top: 2px solid #e0e0e0;
    margin: 2em 0;
}