/* 页面内容样式（服务条款等） */

.article-content h2 {
    font-size: 0.875rem; /* 缩小2号：从 1.125rem 缩小到 0.875rem */
    font-weight: 700;
    color: #ffffff;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .article-content h2 {
        font-size: 1.25rem; /* 缩小2号：从 1.5rem 缩小到 1.25rem */
    }
}

.article-content p {
    font-size: 1rem;
    color: #d1d5db;
    line-height: 1.75;
    margin-bottom: 1.5rem;
}

.article-content p.lead {
    font-size: 1.125rem;
    color: #9ca3af;
    border-left: 4px solid #3b82f6;
    padding-left: 1rem;
}

.article-content a {
    color: #38bdf8;
}

.article-content a:hover {
    text-decoration: underline;
}

.article-content ul {
    list-style-type: disc;
    list-style-position: inside;
    margin-bottom: 1.5rem;
}

.article-content li {
    font-size: 1rem;
    color: #d1d5db;
}

.article-content strong {
    font-weight: 600;
    color: #ffffff;
}

.article-content blockquote {
    border-left: 4px solid #3b82f6;
    padding-left: 1rem;
    margin: 1.5rem 0;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.article-content blockquote p {
    font-size: 1.125rem;
    font-style: italic;
    color: #d1d5db;
}

.article-content hr {
    margin: 2rem 0;
    border-color: #374151;
}

/* Table of Contents styles */
.toc-link {
    transition: all 0.2s ease-in-out;
}

.toc-link.active,
.toc-link:hover {
    color: #38bdf8;
    border-left-color: #38bdf8;
    transform: translateX(2px);
}


/* 补充缺失的正文排版样式 (H3, H4, OL, IMG, TABLE, CODE 等) */

.article-content h1 {
    font-size: 1.5rem;
    font-weight: 800;
    color: #ffffff;
    margin-top: 2.5rem;
    margin-bottom: 1.25rem;
}

.article-content h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #f3f4f6;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.article-content h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #e5e7eb;
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
}

.article-content h5,
.article-content h6 {
    font-size: 0.875rem;
    font-weight: 600;
    color: #d1d5db;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

@media (min-width: 768px) {
    .article-content h1 { font-size: 2rem; }
    .article-content h3 { font-size: 1.25rem; }
    .article-content h4 { font-size: 1.125rem; }
    .article-content h5, .article-content h6 { font-size: 1rem; }
}

.article-content ol {
    list-style-type: decimal;
    list-style-position: inside;
    margin-bottom: 1.5rem;
    color: #d1d5db;
}

.article-content ol li {
    font-size: 1rem;
    color: #d1d5db;
    margin-bottom: 0.5rem;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    margin: 1.5rem auto;
    display: block;
}

.article-content figure {
    margin: 1.5rem 0;
}

.article-content figcaption {
    text-align: center;
    font-size: 0.875rem;
    color: #9ca3af;
    margin-top: 0.5rem;
}

.article-content table {
    width: 100%;
    margin-bottom: 1.5rem;
    border-collapse: collapse;
    color: #d1d5db;
}

.article-content th,
.article-content td {
    padding: 0.75rem;
    border: 1px solid #374151;
}

.article-content th {
    background-color: #1f2937;
    font-weight: 600;
    text-align: left;
    color: #f3f4f6;
}

.article-content code {
    background-color: #1f2937;
    color: #38bdf8;
    padding: 0.2rem 0.4rem;
    border-radius: 0.25rem;
    font-size: 0.875em;
    font-family: monospace;
}

.article-content pre {
    background-color: #111827;
    padding: 1rem;
    border-radius: 0.5rem;
    overflow-x: auto;
    margin-bottom: 1.5rem;
    border: 1px solid #374151;
}

.article-content pre code {
    background-color: transparent;
    color: #e5e7eb;
    padding: 0;
    font-size: 0.875rem;
}

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

.article-content del {
    text-decoration: line-through;
    opacity: 0.7;
}
