:root {
    --bg: #ffffff;
    --bg-secondary: #fafafa;
    --fg: #000000;
    --fg-secondary: #333333;
    --muted: #6b6b6b;
    --accent: #dc2626;
    --accent-dark: #b91c1c;
    --border: #e5e5e5;
    --shadow: rgba(0, 0, 0, 0.08);
}
 :root {
            --bg: #ffffff;
            --bg-secondary: #fafafa;
            --fg: #000000;
            --fg-secondary: #333333;
            --muted: #6b6b6b;
            --accent: #dc2626;
            --accent-dark: #b91c1c;
            --border: #e5e5e5;
            --shadow: rgba(0, 0, 0, 0.08);
        }

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

        html {
            scroll-behavior: smooth;
        }

        body {
            font-family: 'Inter', 'Noto Sans SC', sans-serif;
            background: var(--bg-secondary);
            color: var(--fg-secondary);
            overflow-x: hidden;
            line-height: 1.8;
        }

        .nav-link {
            position: relative;
            color: var(--fg-secondary);
            font-weight: 500;
            transition: color 0.3s;
        }

        .nav-link::after {
            content: '';
            position: absolute;
            bottom: -4px;
            left: 0;
            width: 0;
            height: 2px;
            background: var(--accent);
            transition: width 0.3s;
        }

        .nav-link:hover {
            color: var(--accent);
        }

        .nav-link:hover::after {
            width: 100%;
        }

        .btn-primary {
            background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
            color: white;
            font-weight: 600;
            padding: 14px 32px;
            border-radius: 10px;
            border: none;
            cursor: pointer;
            transition: all 0.3s;
        }

        .btn-primary:hover {
            transform: translateY(-2px);
            box-shadow: 0 10px 30px rgba(220, 38, 38, 0.3);
        }

        .btn-secondary {
            background: transparent;
            color: var(--fg);
            font-weight: 600;
            padding: 14px 32px;
            border-radius: 10px;
            border: 2px solid var(--border);
            cursor: pointer;
            transition: all 0.3s;
        }

        .btn-secondary:hover {
            border-color: var(--accent);
            color: var(--accent);
        }

        h1 {
            font-size: 2.5rem;
            font-weight: 800;
            margin-bottom: 1.5rem;
            color: var(--fg);
        }

        /* 主要章节标题样式：第X条 */
        h2 {
            font-size: 1.5rem;
            font-weight: 900;
            color: #000000;
            margin-top: 2.5rem;
            margin-bottom: 1.5rem;
            padding-bottom: 0.5rem;
            border-bottom: 1px solid var(--border);
        }

        h3 {
            font-size: 1.25rem;
            font-weight: 700;
            margin-top: 2rem;
            margin-bottom: 0.75rem;
            color: var(--fg);
        }

        h4 {
            font-size: 1.1rem;
            font-weight: 700;
            margin-top: 1.5rem;
            margin-bottom: 0.5rem;
            color: var(--fg);
        }

        /* 核心修改：段落首行缩进 */
        .main-content-box p {
            margin-bottom: 1rem;
            color: var(--fg-secondary);
            text-align: justify;
            text-indent: 2em; /* 首行缩进2字符 */
        }

        /* 处理文档最开头的段落（如果不想缩进）通常不需要特殊处理，因为一般正文都需要缩进 */
        /* 确保居中区域（如时间、标题）的段落不缩进 */
        .text-center p {
            text-indent: 0;
            text-align: center;
        }
        
        /* 列表项通常不缩进 */
        ul, ol {
            margin-bottom: 1rem;
            margin-left: 2.5rem; /* 稍微调整列表左边距以配合缩进 */
        }

        li {
            margin-bottom: 0.5rem;
            color: var(--fg-secondary);
            text-indent: 0;
        }

        /* 整个内容的大模块样式 */
        .main-content-box {
            background: var(--bg);
            border-radius: 16px;
            box-shadow: 0 4px 20px var(--shadow);
            padding: 2.5rem 3.5rem; /* 左右padding稍微加大一点 */
            margin-bottom: 2rem;
        }
        
        /* 响应式调整 */
        @media (max-width: 768px) {
            .main-content-box {
                padding: 1.5rem;
            }
            h1 { font-size: 2rem; }
            h2 { font-size: 1.25rem; }
            ul, ol { margin-left: 1.5rem; }
        }

        ::-webkit-scrollbar {
            width: 8px;
        }

        ::-webkit-scrollbar-track {
            background: var(--bg-secondary);
        }

        ::-webkit-scrollbar-thumb {
            background: var(--accent);
            border-radius: 4px;
        }
        h1 {
          font-size: 20px;
          margin-bottom: 10px;
        }

/* Layout Classes */
.max-w-4xl { max-width: 56rem; }
.max-w-7xl { max-width: 80rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.pt-24 { padding-top: 6rem; }
.pb-16 { padding-bottom: 4rem; }
.pt-4 { padding-top: 1rem;}

/* Flexbox Classes */
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-8 { gap: 2rem; }

/* Display Classes */
.hidden { display: none; }
@media (min-width: 768px) {
    .md\:flex { display: flex; }
}

/* Text Classes */
.text-center { text-align: center; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-base { font-size: 1rem; line-height: 1.5rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.font-semibold { font-weight: 600; }
.font-medium { font-weight: 500; }
.leading-relaxed { line-height: 1.625; }

/* Spacing Classes */
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-12 { margin-bottom: 3rem; }
.mt-8 { margin-top: 2rem; }
.mt-12 { margin-top: 3rem; }

/* Background Classes */
.bg-\[var\(--bg-secondary\)\] { background-color: var(--bg-secondary); }
.bg-white\/95 { background-color: rgba(255, 255, 255, 0.95); }
.bg-\[var\(--accent\)\] { background-color: var(--accent); }

/* Border Classes */
.border { border-width: 1px; }
.border-b { border-bottom-width: 1px; }
.border-\[var\(--border\)\] { border-color: var(--border); }
.rounded-lg { border-radius: 0.5rem; }

/* Other Classes */
.z-50 { z-index: 50; }
.backdrop-blur-md { backdrop-filter: blur(12px); }
.hover\:underline:hover { text-decoration: underline; }

/* Custom Classes */
.btn-primary {
    background-color: var(--accent);
    color: white;
    border-radius: 0.375rem;
    font-weight: 500;
}

.btn-secondary {
    background-color: transparent;
    color: var(--fg);
    border: 1px solid var(--border);
    border-radius: 0.375rem;
    font-weight: 500;
}

.accent-line {
    width: 4rem;
    height: 0.25rem;
    background-color: var(--accent);
    border-radius: 0.125rem;
}
