* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Microsoft YaHei", "微软雅黑", sans-serif;
    line-height: 1.8;
    color: #222;
    background: #fff;
}

/* 顶部导航栏 */
.header {
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 50px;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.header-title {
    font-size: 20px;
    font-weight: 600;
    color: #333;
}

/* 主容器 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 30px;
    padding: 30px 50px;
}

/* 侧边栏导航 */
.sidebar {
    flex: 0 0 200px;
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    position: sticky;
    top: 80px;
    height: fit-content;
}

.nav-list {
    list-style: none;
}

.nav-item {
    margin-bottom: 10px;
}

.nav-link {
    color: #666;
    text-decoration: none;
    font-size: 15px;
    display: block;
    padding: 10px 14px;
    border-radius: 6px;
    transition: all 0.3s;
}

.nav-link:hover {
    background: #f0f2f5;
    color: #FF7043;
}

.nav-link.active {
    background: #fff3e0;
    color: #FF7043;
    font-weight: 500;
}

/* 主内容区 */
.content {
    flex: 1;
    background: #fff;
    border-radius: 8px;
    padding: 40px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    min-height: 600px;
}

#title {
    font-size: 30px;
    line-height: 36px;
    font-weight: 500;
    text-align: center;
    margin-bottom: 30px;
    color: #222;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f2f5;
}

.section {
    margin-bottom: 35px;
}

.section-title {
    font-size: 18px;
    font-weight: 600;
    color: #222;
    margin: 25px 0 18px;
    padding-bottom: 12px;
    border-bottom: 2px solid #FF7043;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: #ff5722;
}

.section:first-of-type .section-content p:first-child {
    background: linear-gradient(to right, rgba(255, 112, 67, 0.08), transparent);
    padding: 15px 20px;
    border-left: 3px solid #FF7043;
    border-radius: 4px;
    margin-bottom: 20px;
}

.section-content p {
    margin: 14px 0 0;
    line-height: 1.9;
    color: #333;
    font-size: 15px;
    text-align: justify;
}

.section-content p:first-child {
    margin-top: 0;
}

.section-content strong {
    font-weight: 600;
    color: #1a1a1a;
}

.section-content u {
    text-decoration: underline;
    text-decoration-color: #1a1a1a;
    text-decoration-thickness: 1.5px;
    text-underline-offset: 3px;
}

/* 列表样式优化 */
.section-content ol,
.section-content ul {
    margin: 12px 0 0;
    padding-left: 28px;
}

.section-content li {
    margin: 8px 0;
    line-height: 1.8;
    color: #333;
}

/* 链接样式 */
.section-content a {
    color: #FF7043;
    text-decoration: none;
    transition: all 0.3s;
    border-bottom: 1px solid transparent;
    font-weight: 500;
}

.section-content a:hover {
    color: #ff5722;
    border-bottom-color: #ff5722;
}

/* 序号段落优化 */
.section-content p + p {
    margin-top: 12px;
}

/* 页脚版权信息 - 简洁浅色调 */
.footer {
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    padding: 20px 50px 13px;
    margin-top: 40px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid #dee2e6;
    gap: 40px;
}

.footer-info {
    flex: 1;
}

.footer-info h4 {
    font-size: 16px;
    color: #333;
    margin-bottom: 12px;
    font-weight: 600;
}

.footer-info p {
    color: #666;
    font-size: 14px;
    line-height: 1.8;
    margin: 4px 0;
}

.footer-info a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-info a:hover {
    color: #FF7043;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-links a {
    color: #666;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #FF7043;
}

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

.footer-bottom p {
    color: #676767;
    font-size: 14px;
    margin: 5px 0;
}

.footer-bottom a {
    color: #676767;
    text-decoration: none;
    margin: 0 10px;
    transition: color 0.3s;
}

.footer-bottom a:hover {
    color: #FF7043;
}

/* 目录导航 */
.toc-container {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.toc-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
    padding-left: 14px;
}

.toc-list {
    list-style: none;
    padding: 0;
}

.toc-item {
    margin-bottom: 6px;
}

.toc-link {
    color: #666;
    text-decoration: none;
    font-size: 13px;
    display: block;
    padding: 6px 14px;
    border-radius: 4px;
    transition: all 0.3s;
    border-left: 2px solid transparent;
}

.toc-link:hover {
    background: #f0f2f5;
    color: #FF7043;
    border-left-color: #FF7043;
}

.toc-link.active {
    background: #fff3e0;
    color: #FF7043;
    font-weight: 500;
    border-left-color: #FF7043;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .header {
        padding: 15px 20px;
    }

    .container {
        flex-direction: column;
        padding: 20px;
    }

    .sidebar {
        display: none;
    }

    .content {
        padding: 0px;
        border-radius: 0;
        box-shadow: none;
    }

    #title {
        font-size: 24px;
        line-height: 1.4;
        margin-bottom: 25px;
    }

    .section-title {
        font-size: 17px;
        margin: 25px 0 12px;
    }

    .section-content p {
        font-size: 14px;
        line-height: 1.8;
        margin: 12px 0 0;
    }

    .section-content li {
        font-size: 14px;
        line-height: 1.7;
    }

    .footer {
        padding: 25px 20px;
    }

    .footer-content {
        flex-direction: column;
        gap: 25px;
    }

    .footer-bottom p {
        font-size: 12px;
    }
}
