/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
    padding-top: 120px;
    /* 为固定的头部留出空间 */
    overflow: visible;
}

/* 侧边栏打开时防止背景滚动 */
body.sidebar-open {
    overflow: hidden;
}

/* 容器样式 */
.container {
    max-width: 1200px;
    margin: 0 auto;
}

/* 头部样式 */
header {
    background-color: #fff;
    color: #333;
    padding: 10px 0;
    text-align: center;
    border-bottom: 1px solid #eee;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: #4F46E5;
}

header p {
    font-size: 1.2rem;
    color: #666;
}

/* T型布局样式 */
.t-layout {
    display: flex;
    min-height: calc(100vh - 120px);
    /* 减去头部高度 */
    position: relative;
    z-index: 1;
}

/* 侧边栏样式 */
.sidebar {
    width: 250px;
    padding: 30px 20px;
    background-color: #f8fafc;
    border-right: 1px solid #eee;
    position: fixed;
    left: 0;
    top: 120px;
    bottom: 0;
    overflow-y: auto;
    z-index: 900;
}

.sidebar-title {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: #333;
    padding-bottom: 10px;
    border-bottom: 2px solid #4F46E5;
}

.sidebar-menu {
    list-style: none;
}

.sidebar-menu li {
    margin-bottom: 10px;
}

.sidebar-menu a {
    display: block;
    padding: 12px 15px;
    color: #666;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    /* 触摸友好的点击区域 */
    min-height: 48px;
    line-height: 24px;
    -webkit-tap-highlight-color: transparent;
}

.sidebar-menu a:hover {
    background-color: #eef2ff;
    color: #4F46E5;
}

/* 导航链接激活状态 */
.sidebar-menu a.active {
    background-color: #4F46E5;
    color: #fff;
    font-weight: 500;
}

/* 其他导航区域的active样式 */
.nav-list a.active {
    color: #4F46E5;
    font-weight: 600;
    border-bottom: 2px solid #4F46E5;
}

/* 主内容区域样式 */
.main-content {
    flex: 1;
    padding: 30px 0px 0px 0px;
    margin-left: 250px;
    /* 与侧边栏宽度相同 */
    overflow-y: auto;
    background-color: #fff;
}

/* 内容区块样式 */
.content-section {
    max-width: 95%;
    margin: 0 auto;
    margin-bottom: 30px;
    background: #ffffff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.04);
    border: 1px solid #f0f0f0;
}

/* 内容介绍部分 */
.content-intro {
    margin-bottom: 30px;
    padding: 25px;
    background-color: #f8fafc;
    border-radius: 8px;
    border-left: 4px solid #4F46E5;
}

.content-intro p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #4b5563;
    margin-bottom: 0;
}

/* 详细内容部分 */
.content-detail {
    margin-top: 40px;
}

.content-detail h3 {
    font-size: 1.5rem;
    color: #333;
    margin: 40px 0 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e5e7eb;
}

.content-detail h4 {
    font-size: 1.25rem;
    color: #4F46E5;
    margin: 30px 0 15px;
}

.content-detail p {
    margin-bottom: 20px;
    color: #4b5563;
    font-size: 1.05rem;
    line-height: 1.7;
}

/* 表格样式优化 */
.content-detail table {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.content-detail table th {
    background-color: #4F46E5;
    color: white;
    text-align: left;
    padding: 15px 20px;
    font-weight: 600;
}

.content-detail table td {
    padding: 12px 20px;
    border-bottom: 1px solid #f0f0f0;
    color: #4b5563;
}

.content-detail table tr:last-child td {
    border-bottom: none;
}

.content-detail table tr:hover {
    background-color: #f8fafc;
}

/* 列表样式优化 */
.content-detail ul,
.content-detail ol {
    margin: 20px 0;
    padding-left: 25px;
    color: #4b5563;
}

.content-detail li {
    margin-bottom: 12px;
    line-height: 1.6;
}

/* 强调文本 */
.content-detail strong {
    color: #374151;
    font-weight: 600;
}

.content-detail em {
    font-style: italic;
    color: #6b7280;
}

/* 介绍部分 */
.intro-section {
    margin-bottom: 60px;
}

.intro-section h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #333;
}

.intro-section p {
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto 40px;
    color: #666;
}

.feature-boxes {
    display: flex;
    gap: 20px;
    justify-content: space-between;
    flex-wrap: wrap;
}

.feature-box {
    flex: 1;
    min-width: 250px;
    padding: 30px;
    background-color: #f8fafc;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.feature-box:hover {
    transform: translateY(-5px);
}

.feature-box h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: #4F46E5;
}

/* 教程目录部分 */
.tutorials-section {
    margin-bottom: 60px;
}

/* 汉堡菜单按钮样式 */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1100;
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.menu-icon {
    display: block;
    width: 24px;
    height: 3px;
    background-color: #4F46E5;
    margin: 4px 0;
    transition: all 0.3s ease;
}

/* 平板端优化 (768px-1024px) */
@media (max-width: 1024px) and (min-width: 768px) {
    .t-layout {
        flex-direction: row;
    }

    .sidebar {
        width: 280px;
        height: calc(100vh - 120px);
        position: fixed;
        left: 0;
        top: 120px;
        border-right: 1px solid #eee;
        border-bottom: none;
        padding: 20px;
        overflow-y: auto;
    }

    .sidebar-menu {
        display: block;
    }

    .main-content {
        margin-left: 280px;
        padding: 25px;
    }

    /* 隐藏汉堡菜单按钮 */
    .mobile-menu-btn {
        display: none;
    }

    /* 调整头部容器 */
    header .container {
        padding: 0 20px;
    }
}

/* 移动端优化 */
@media (max-width: 767px) {

    /* 显示汉堡菜单按钮 */
    .mobile-menu-btn {
        display: block;
    }

    /* 主内容区域响应式调整 */
    .main-content {
        padding: 10px;
        margin-top: 20px;
    }

    /* 内容区块响应式调整 */
    .content-section {
        padding: 25px 15px;
        border-radius: 8px;
    }

    /* 内容介绍部分响应式调整 */
    .content-intro {
        padding: 15px;
        margin-bottom: 20px;
    }

    .content-intro p {
        font-size: 1rem;
        line-height: 1.6;
    }

    /* 详细内容部分响应式调整 */
    .content-detail {
        margin-top: 30px;
    }

    .content-detail h3 {
        font-size: 1.3rem;
        margin: 30px 0 15px;
        padding-bottom: 10px;
    }

    .content-detail h4 {
        font-size: 1.1rem;
        margin: 25px 0 12px;
    }

    .content-detail p {
        font-size: 1rem;
        line-height: 1.6;
    }

    /* 表格响应式调整 */
    .content-detail table {
        font-size: 0.9rem;
        display: block;
        overflow-x: auto;
        white-space: nowrap;
        margin: 20px 0;
    }

    .content-detail table th,
    .content-detail table td {
        padding: 10px 15px;
    }

    /* 列表响应式调整 */
    .content-detail ul,
    .content-detail ol {
        padding-left: 20px;
    }

    .content-detail li {
        margin-bottom: 10px;
    }

    /* 调整头部样式 */
    header h1 {
        font-size: 1.8rem;
        margin-bottom: 5px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    header p {
        font-size: 0.9rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    header .container {
        padding: 0 60px 0 70px;
        min-height: 120px;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    /* 调整汉堡菜单按钮位置 */
    .mobile-menu-btn {
        left: 15px;
    }

    /* 侧边栏改为抽屉式 */
    .sidebar {
        position: fixed;
        left: -100%;
        top: 120px;
        height: calc(100vh - 120px);
        width: 85%;
        max-width: 300px;
        z-index: 1000;
        transition: left 0.3s ease;
        background-color: #fff;
        border-right: 1px solid #eee;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    }

    .sidebar.active {
        left: 0;
    }

    .sidebar-menu {
        display: block;
    }

    /* 主内容区调整 */
    .main-content {
        margin-left: 0;
        padding: 15px;
    }

    /* 调整内容样式 */
    .intro-section h2,
    .tutorials-section h2,
    .start-learning h2 {
        font-size: 1.8rem;
        text-align: center;
    }

    .intro-section p {
        font-size: 1rem;
        padding: 0 10px;
    }

    /* 特性框调整 */
    .feature-boxes {
        flex-direction: column;
        gap: 15px;
    }

    .feature-box {
        padding: 20px;
        min-width: auto;
    }

    /* 教程卡片调整 */
    .tutorials-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .tutorial-card {
        padding: 20px;
    }

    /* 按钮调整 */
    .btn-primary,
    .btn-secondary {
        padding: 10px 25px;
        font-size: 1rem;
        min-width: 150px;
    }


}

/* 小屏幕手机优化 (小于480px) */
@media (max-width: 480px) {
    body {
        padding-top: 100px;
        overflow: visible !important;
    }

    /* 主内容区域小屏幕调整 */
    .main-content {
        padding: 10px;
        margin-top: 20px;
    }

    /* 内容区块小屏幕调整 */
    .content-section {
        padding: 20px 10px;
    }

    .content-detail h3 {
        font-size: 1.2rem;
    }

    .content-detail h4 {
        font-size: 1rem;
    }

    .content-detail p,
    .content-detail li {
        font-size: 0.95rem;
    }

    header {
        padding: 5px 0;
    }

    header h1 {
        font-size: 1.3rem;
        margin-bottom: 3px;
    }

    header p {
        font-size: 0.8rem;
    }

    header .container {
        padding: 0 50px 0 60px;
        min-height: 100px;
    }

    .sidebar {
        top: 100px;
        height: calc(100vh - 100px);
        width: 95%;
    }

    .t-layout {
        min-height: calc(100vh - 100px);
    }

    /* 调整汉堡菜单按钮位置 */
    .mobile-menu-btn {
        left: 10px;
        padding: 8px;
    }

    .menu-icon {
        width: 20px;
        height: 2px;
        margin: 3px 0;
    }

    /* 调整字体大小和间距 */
    h1 {
        font-size: 1.8rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.2rem;
    }

    p,
    li {
        font-size: 0.95rem;
    }

    /* 减少内容区域内边距 */
    .intro-section,
    .tutorials-section,
    .start-learning {
        margin-bottom: 40px;
    }

    .start-learning {
        padding: 40px 15px;
    }
}

.tutorials-section h2 {
    font-size: 2rem;
    margin-bottom: 30px;
    text-align: center;
    color: #333;
}

.tutorials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.tutorial-card {
    display: block;
    padding: 25px;
    background-color: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.tutorial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    border-color: #4F46E5;
}

.tutorial-card h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: #4F46E5;
}

.tutorial-card p {
    color: #666;
}

/* 开始学习部分 */
.start-learning {
    text-align: center;
    padding: 60px 20px;
    background-color: #f8fafc;
    border-radius: 8px;
}

.start-learning h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #333;
}

.start-learning p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: #666;
}

.btn-primary {
    display: inline-block;
    padding: 12px 30px;
    background-color: #4F46E5;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #4338CA;
    transform: translateY(-2px);
}

/* 页脚样式 */
footer {
    background-color: #f8fafc;
    padding: 30px 0 20px;
    border-top: 1px solid #eee;
    color: #666;
    position: relative;
    /* 增加与内容区域的间距 */
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.03);
}

/* 页脚装饰效果 */
footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #4F46E5 0%, #8B5CF6 100%);
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.2);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 50px;
    gap: 30px;
}

.footer-column {
    flex: 1;
    min-width: 220px;
    margin-bottom: 30px;
    padding: 0 20px;
}

.footer-column h3 {
    font-size: 1.25rem;
    margin-bottom: 24px;
    color: #333;
    position: relative;
    padding-bottom: 12px;
    font-weight: 600;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: #4F46E5;
    border-radius: 2px;
}

.footer-column p {
    line-height: 1.8;
    margin-bottom: 0;
    font-size: 1rem;
}

.footer-column ul {
    list-style: none;
    padding: 0;
}

.footer-column ul li {
    margin-bottom: 12px;
    position: relative;
}

.footer-column ul li a {
    color: #666;
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
    padding: 8px 0 8px 15px;
    font-size: 1rem;
    position: relative;
}

.footer-column ul li a::before {
    content: '→';
    position: absolute;
    left: 0;
    top: 8px;
    font-size: 0.8rem;
    color: #4F46E5;
    opacity: 0;
    transition: all 0.3s ease;
}

.footer-column ul li a:hover {
    color: #4F46E5;
    transform: translateX(5px);
    background-color: rgba(79, 70, 229, 0.05);
    border-radius: 4px;
    padding-left: 20px;
}

.footer-column ul li a:hover::before {
    opacity: 1;
    left: 5px;
}

.footer-column ul li:last-child {
    margin-bottom: 0;
}

/* 页脚底部区域 */
.footer-bottom {
    text-align: center;
    border-top: 1px solid #eee;
    padding-top: 30px;
    position: relative;
}

.footer-bottom p {
    margin-bottom: 20px;
    font-size: 0.95rem;
    color: #666;
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 25px;
}

.footer-links a {
    color: #666;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    padding: 5px 10px;
    border-radius: 4px;
}

.footer-links a:hover {
    color: #4F46E5;
    background-color: rgba(79, 70, 229, 0.05);
}

/* 页脚响应式设计 */
@media (min-width: 1200px) {
    .footer-content {
        gap: 40px;
    }

    .footer-column {
        min-width: 250px;
    }
}

@media (max-width: 1199px) and (min-width: 768px) {
    .footer-content {
        flex-wrap: wrap;
        gap: 30px;
    }

    .footer-column {
        flex: 1 1 calc(50% - 15px);
        /* 两列布局 */
        min-width: 250px;
        margin-bottom: 20px;
    }
}

@media (max-width: 767px) {
    footer {
        padding: 60px 0 30px;
        margin-top: 40px;
    }

    .footer-content {
        flex-direction: column;
        gap: 20px;
        margin-bottom: 40px;
    }

    .footer-column {
        min-width: 100%;
        margin-bottom: 30px;
        padding: 0;
    }

    .footer-column h3 {
        font-size: 1.15rem;
        margin-bottom: 20px;
    }

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

    .footer-links {
        gap: 15px;
    }

    .footer-links a {
        font-size: 0.9rem;
        padding: 4px 8px;
    }

    .footer-bottom {
        padding-top: 25px;
    }

    /* 小屏幕特殊样式 */
    @media (max-width: 480px) {
        footer {
            padding: 50px 0 25px;
            margin-top: 30px;
        }

        .footer-content {
            margin-bottom: 30px;
        }

        .footer-column h3 {
            font-size: 1.1rem;
        }

        .footer-column p,
        .footer-column ul li a {
            font-size: 0.95rem;
        }

        .footer-bottom p {
            font-size: 0.85rem;
            margin-bottom: 15px;
        }

        .footer-links {
            flex-direction: column;
            gap: 10px;
            margin-bottom: 10px;
        }

        .footer-links a {
            font-size: 0.85rem;
        }

        .footer-bottom {
            padding-top: 20px;
        }
    }
}

/* 代码块样式 */
.code-block {
    background-color: #282c34;
    color: #abb2bf;
    padding: 25px;
    border-radius: 8px;
    margin: 25px 0;
    overflow-x: auto;
    font-family: 'Fira Code', 'Consolas', 'Courier New', Courier, monospace;
    font-size: 0.95rem;
    line-height: 1.7;
    border-left: 4px solid #4F46E5;
    position: relative;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.code-block:hover {
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
}

/* 代码样式优化 */
code {
    font-family: 'Fira Code', 'Courier New', Courier, monospace;
    background-color: #f1f5f9;
    color: #dc2626;
    padding: 0.2em 0.4em;
    border-radius: 3px;
    font-size: 0.9em;
    white-space: pre-wrap;
}

/* 代码块中的代码样式覆盖 */
.code-block code {
    background-color: transparent;
    color: inherit;
    padding: 0;
    border-radius: 0;
}

/* 代码块标题栏 */
.code-header {
    background-color: #1e2127;
    padding: 12px 20px;
    border-radius: 8px 8px 0 0;
    font-size: 0.85rem;
    color: #828997;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #383e47;
    background-image: linear-gradient(to right, rgba(79, 70, 229, 0.1), transparent);
}

/* 代码块语言标识 */
.code-language {
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

/* 复制按钮 */
.copy-btn {
    background-color: #383e47;
    color: #abb2bf;
    border: none;
    padding: 6px 14px;
    border-radius: 4px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.copy-btn:hover {
    background-color: #4F46E5;
    color: white;
}

/* 带行号的代码块 */
.code-with-line-numbers {
    counter-reset: line;
}

.code-with-line-numbers .line {
    counter-increment: line;
    display: block;
    padding-left: 2.5em;
    position: relative;
    transition: background-color 0.2s ease;
}

.code-with-line-numbers .line:hover {
    background-color: rgba(255, 255, 255, 0.03);
}

.code-with-line-numbers .line::before {
    content: counter(line);
    position: absolute;
    left: 0;
    color: #5c6370;
    text-align: right;
    width: 1.5em;
    margin-right: 1em;
    font-size: 0.85em;
    user-select: none;
}

/* 代码语法高亮基础样式 */
/* 关键字 */
.keyword {
    color: #c678dd;
    font-weight: 500;
    text-shadow: 0 0 2px rgba(198, 120, 221, 0.2);
}

/* 字符串 */
.string {
    color: #98c379;
    font-weight: 400;
}

/* 注释 */
.comment {
    color: #5c6370;
    font-style: italic;
    opacity: 0.8;
}

/* 数字 */
.number {
    color: #d19a66;
    font-weight: 500;
}

/* 函数名 */
.function {
    color: #61afef;
    font-weight: 600;
}

/* 变量名 */
.variable {
    color: #e06c75;
}

/* PHP 特殊语法高亮 */
.php-tag {
    color: #e5c07b;
    font-weight: bold;
}

/* 操作符高亮 */
.operator {
    color: #abb2bf;
    font-weight: bold;
}

/* 常量高亮 */
.constant {
    color: #56b6c2;
    font-weight: 500;
}

/* 响应式代码块调整 */
@media (max-width: 767px) {
    .code-block {
        padding: 15px;
        font-size: 0.85rem;
    }

    .code-header {
        padding: 8px 15px;
        font-size: 0.8rem;
    }

    .copy-btn {
        padding: 4px 8px;
        font-size: 0.75rem;
    }
}

/* 测验页面样式 */
.quiz-intro {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px;
    background-color: #f8fafc;
    border-radius: 8px;
}

/* 测验说明样式 */
.question {
    margin-bottom: 30px;
    padding: 25px;
    background-color: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.question .question-number {
    font-size: 1.25rem;
    font-weight: 600;
    color: #4F46E5;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #eef2ff;
}

.question .question-text {
    margin-bottom: 20px;
}

.question .question-text ul {
    list-style-type: none;
    padding-left: 0;
    margin: 0;
}

.question .question-text li {
    position: relative;
    padding: 12px 15px 12px 40px;
    margin-bottom: 10px;
    background-color: #f8fafc;
    border-radius: 6px;
    border-left: 4px solid #4F46E5;
    line-height: 1.6;
    color: #4b5563;
    transition: all 0.3s ease;
}

.question .question-text li:hover {
    background-color: #eef2ff;
    transform: translateX(5px);
}

.question .question-text li::before {
    content: "📝";
    position: absolute;
    left: 12px;
    top: 12px;
    font-size: 1rem;
}

.question .question-text li:last-child {
    margin-bottom: 0;
}

.quiz-score {
    background-color: #e0e7ff;
    padding: 15px;
    border-radius: 6px;
    margin-top: 20px;
}

.quiz-score p {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 500;
    color: #4F46E5;
}

.quiz-question {
    margin-bottom: 30px;
    padding: 25px;
    background-color: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.quiz-question h3 {
    margin-top: 0;
    color: #333;
    border-bottom: 2px solid #4F46E5;
    padding-bottom: 10px;
}

.quiz-options {
    margin: 20px 0;
}

.quiz-options label {
    display: block;
    margin-bottom: 15px;
    padding: 12px 15px;
    background-color: #f8fafc;
    border: 2px solid #eee;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.quiz-options label:hover {
    background-color: #eef2ff;
    border-color: #4F46E5;
}

.quiz-options input[type="radio"] {
    margin-right: 10px;
}

.quiz-explanation {
    margin-top: 20px;
    padding: 15px;
    background-color: #f0f9ff;
    border-left: 4px solid #0ea5e9;
    border-radius: 4px;
    display: none;
}

.quiz-explanation strong {
    color: #0c4a6e;
}

.quiz-submit {
    text-align: center;
    margin: 40px 0;
}

.quiz-submit button {
    margin: 0 10px;
}

.btn-secondary {
    display: inline-block;
    padding: 12px 30px;
    background-color: #6b7280;
    color: #fff;
    text-decoration: none;
    border: none;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background-color: #4b5563;
    transform: translateY(-2px);
}

.quiz-results {
    margin-top: 40px;
    padding: 30px;
    background-color: #f0fdf4;
    border-radius: 8px;
    display: none;
}

.quiz-results h3 {
    margin-top: 0;
    color: #166534;
    text-align: center;
}

.quiz-results p {
    text-align: center;
    font-size: 1.2rem;
}

.success {
    color: #059669;
    background-color: #d1fae5;
    padding: 10px;
    border-radius: 4px;
}

.warning {
    color: #d97706;
    background-color: #fef3c7;
    padding: 10px;
    border-radius: 4px;
}

.error {
    color: #dc2626;
    background-color: #fee2e2;
    padding: 10px;
    border-radius: 4px;
}

#correctAnswersSummary {
    margin-top: 20px;
}

#correctAnswersSummary ul {
    padding-left: 20px;
}