@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;700;800&family=Noto+Sans+SC:wght@400;700;900&display=swap');

/**
 * MCDocs Theme - 矩形化文档主题
 * Version: 1.0.0
 * Author: MCDocs Team
 * Description: 采用 Minecraft 方块风格的粗野主义设计语言
 */

/* ===================================
   1. CSS Variables & Base Reset
   =================================== */
:root {
    --color-primary: #10b981;
    --color-blue: #3b82f6;
    --color-yellow: #fef08a;
    --color-purple: #8b5cf6;
    --color-red: #ef4444;
    --color-text: #111827;
    --color-text-secondary: #6b7280;
    --color-bg: #f8fafc;
    --color-border: #000000;
    --color-white: #ffffff;
    
    --shadow-sm: 4px 4px 0 0 rgba(0, 0, 0, 1);
    --shadow-md: 6px 6px 0 0 rgba(0, 0, 0, 1);
    --shadow-lg: 12px 12px 0 0 rgba(0, 0, 0, 1);
}

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

html {
    scroll-behavior: smooth;
}

/* ===================================
   2. Typography
   =================================== */
body {
    font-family: 'Noto Sans SC', sans-serif;
    color: var(--color-text);
    background-color: var(--color-bg);
    background-image: 
        linear-gradient(to right, rgba(0, 0, 0, 0.06) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(0, 0, 0, 0.06) 1px, transparent 1px);
    background-size: 32px 32px;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.font-mono {
    font-family: 'JetBrains Mono', monospace;
}

/* ===================================
   3. Layout Utilities
   =================================== */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

.container-wide {
    max-width: 1536px;
    margin: 0 auto;
    padding: 0 2rem;
}

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===================================
   4. Block Shadow System (矩形美学核心)
   =================================== */
.block-shadow {
    box-shadow: var(--shadow-md);
}

.block-shadow-sm {
    box-shadow: var(--shadow-sm);
}

.block-shadow-lg {
    box-shadow: var(--shadow-lg);
}

.block-hover:hover {
    transform: translate(-2px, -2px);
    box-shadow: 8px 8px 0 0 rgba(0, 0, 0, 1);
}

.block-hover:active {
    transform: translate(4px, 4px);
    box-shadow: 0px 0px 0px 0 rgba(0, 0, 0, 1);
}

/* ===================================
   5. Component Styles
   =================================== */

/* 5.1 Header & Navigation */
.header-nav {
    background-color: var(--color-white);
    border-bottom: 4px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 50;
}

.header-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 5rem;
}

.logo-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor-pointer;
    text-decoration: none;
    color: inherit;
    transition: all 200ms ease;
}

.logo-group:hover {
    transform: translateY(-0.25rem);
}

.logo-icon {
    width: 2.5rem;
    height: 2.5rem;
    background-color: var(--color-primary);
    border: 2px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
}

.logo-text {
    font-weight: 900;
    font-size: 1.5rem;
    letter-spacing: -0.025em;
}

.search-box {
    flex: 1;
    max-width: 28rem;
    margin: 0 2rem;
    position: relative;
}

.search-input {
    width: 100%;
    background-color: #f3f4f6;
    border: 2px solid var(--color-border);
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-family: 'JetBrains Mono', monospace;
    outline: none;
    transition: all 200ms ease;
}

.search-input:focus {
    background-color: var(--color-white);
    box-shadow: var(--shadow-sm);
}

.search-hint {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.7rem;
    font-family: 'JetBrains Mono', monospace;
    color: #9ca3af;
    background-color: #e5e7eb;
    padding: 0.125rem 0.5rem;
    border-radius: 2px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    font-weight: 700;
}

.nav-link {
    text-decoration: none;
    color: inherit;
    transition: all 200ms ease;
    padding: 0.25rem 0;
}

.nav-link:hover {
    color: var(--color-primary);
    text-decoration: underline;
    text-decoration-thickness: 4px;
    text-underline-offset: 4px;
}

.btn-ghost {
    background-color: var(--color-border);
    color: var(--color-white);
    padding: 0.5rem 1rem;
    border: 2px solid var(--color-border);
    text-decoration: none;
    font-weight: 700;
    box-shadow: var(--shadow-sm);
    transition: all 200ms ease;
    display: inline-block;
}

.btn-ghost:hover {
    background-color: transparent;
    color: var(--color-border);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: 2px solid var(--color-border);
    padding: 0.5rem;
    cursor: pointer;
    font-size: 1.5rem;
}

/* 5.2 Hero Sections */
.hero-section {
    padding: 5rem 0;
}

.hero-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    gap: 3rem;
    align-items: center;
}

.hero-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.version-badge {
    display: inline-block;
    background-color: #fde047;
    border: 2px solid var(--color-border);
    padding: 0.25rem 0.75rem;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    font-size: 0.875rem;
    box-shadow: var(--shadow-sm);
    width: fit-content;
}

.hero-title {
    font-size: 3rem;
    font-weight: 900;
    line-height: 1.1;
    text-transform: uppercase;
}

.hero-title .gradient-text {
    background: linear-gradient(to right, var(--color-primary), #047857);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 4px 4px 0 0 #000;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(4px 4px 0 #000);
}

.hero-description {
    font-size: 1.25rem;
    font-weight: 500;
    color: #374151;
    max-width: 32rem;
    border-left: 4px solid var(--color-border);
    padding-left: 1rem;
    background-color: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(4px);
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    padding-top: 1rem;
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-border);
    border: 2px solid var(--color-border);
    padding: 1rem 2rem;
    font-weight: 900;
    font-size: 1.125rem;
    text-decoration: none;
    box-shadow: var(--shadow-md);
    transition: all 200ms ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary:hover {
    transform: translate(-2px, -2px);
    box-shadow: 8px 8px 0 0 rgba(0, 0, 0, 1);
}

.btn-secondary {
    background-color: var(--color-white);
    color: var(--color-border);
    border: 2px solid var(--color-border);
    padding: 1rem 2rem;
    font-weight: 900;
    font-size: 1.125rem;
    text-decoration: none;
    box-shadow: var(--shadow-md);
    transition: all 200ms ease;
    display: inline-block;
}

.btn-secondary:hover {
    transform: translate(-2px, -2px);
    box-shadow: 8px 8px 0 0 rgba(0, 0, 0, 1);
}

.hero-decoration {
    flex: 1;
    display: none;
    position: relative;
    justify-content: center;
    min-height: 20rem;
}

.decoration-card-blue {
    position: absolute;
    inset: 0;
    width: 20rem;
    height: 20rem;
    background-color: #60a5fa;
    border: 4px solid var(--color-border);
    box-shadow: var(--shadow-md);
    transform: rotate(3deg);
    z-index: 10;
    transition: transform 300ms ease;
}

.decoration-card-blue:hover {
    transform: rotate(6deg);
}

.decoration-card-yellow {
    position: absolute;
    width: 10rem;
    height: 10rem;
    bottom: -2rem;
    left: -2rem;
    background-color: #facc15;
    border: 4px solid var(--color-border);
    box-shadow: var(--shadow-md);
    transform: rotate(-6deg);
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
}

.decoration-card-green {
    position: absolute;
    width: 8rem;
    height: 8rem;
    top: -2rem;
    right: -2rem;
    background-color: #4ade80;
    border: 4px solid var(--color-border);
    box-shadow: var(--shadow-md);
    transform: rotate(12deg);
    z-index: 0;
}

/* 5.3 Cards & Feature Grid */
.features-section {
    background-color: var(--color-white);
    border-top: 4px solid var(--color-border);
    border-bottom: 4px solid var(--color-border);
    padding: 5rem 0;
}

.features-grid {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 2rem;
}

.feature-card {
    background-color: #eff6ff;
    border: 2px solid var(--color-border);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    transition: all 300ms ease;
}

.feature-card:hover {
    transform: translateY(-0.5rem);
    box-shadow: var(--shadow-sm);
}

.feature-icon {
    width: 3.5rem;
    height: 3.5rem;
    background-color: var(--color-blue);
    border: 2px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.feature-title {
    font-size: 1.5rem;
    font-weight: 900;
    margin-bottom: 1rem;
}

.feature-description {
    color: #4b5563;
    font-weight: 500;
}

/* 5.4 Sidebar Navigation */
.sidebar-left {
    width: 16rem;
    flex-shrink: 0;
    border-right: 4px solid var(--color-border);
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    position: sticky;
    top: 4rem;
    height: calc(100vh - 4rem);
    overflow-y: auto;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
}

/* 左侧边栏滚动条 */
.sidebar-left::-webkit-scrollbar {
    width: 6px;
}

.sidebar-left::-webkit-scrollbar-track {
    background-color: transparent;
}

.sidebar-left::-webkit-scrollbar-thumb {
    background-color: #d1d5db;
    border: 1px solid #000;
    border-radius: 0;
}

.sidebar-left::-webkit-scrollbar-thumb:hover {
    background-color: #9ca3af;
}

.sidebar-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e5e7eb;
}

.sidebar-title {
    font-weight: 900;
    color: #111827;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-size: 0.625rem;
    margin-bottom: 0.25rem;
}

.sidebar-subtitle {
    font-size: 0.75rem;
    color: #6b7280;
    font-weight: 500;
}

/* Docs Tree Styles */
.docs-tree {
    margin-bottom: 2rem;
    flex: 1;
    overflow-y: hidden;
    min-height: 0;
}

.docs-section {
    margin-bottom: 0.25rem;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.4375rem 0.625rem;
    border: 2px solid transparent;
    font-weight: 700;
    font-size: 0.8125rem;
    text-align: left;
    background: none;
    cursor: pointer;
    transition: all 150ms ease;
    border-radius: 0;
}

.section-header:hover {
    border-color: var(--color-border);
    background-color: #f9fafb;
}

.section-header.expanded {
    background-color: #f0fdf4;
    border: 2px solid #10b981;
    box-shadow: var(--shadow-sm);
}

.section-icon {
    font-size: 0.5625rem;
    color: #6b7280;
    flex-shrink: 0;
    width: 0.875rem;
    text-align: center;
}

.section-header.expanded .section-icon {
    color: #10b981;
}

.section-title {
    flex: 1;
    text-align: left;
    color: #1f2937;
}

.section-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.25rem;
    height: 1.25rem;
    padding: 0 0.375rem;
    background-color: #e5e7eb;
    color: #374151;
    font-size: 0.6875rem;
    font-weight: 700;
    margin-left: 0.5rem;
}

.section-header.expanded .section-count {
    background-color: #10b981;
    color: #fff;
}

.section-items {
    list-style: none;
    margin-left: 0.75rem;
    margin-top: 0.75rem;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-0.5rem);
    transition: all 250ms ease;
}

.section-items.show {
    max-height: calc(100vh - 16rem);
    overflow-y: auto;
    opacity: 1;
    transform: translateY(0);
}

/* 分类内文章列表滚动条 */
.section-items.show::-webkit-scrollbar {
    width: 4px;
}

.section-items.show::-webkit-scrollbar-track {
    background-color: #f3f4f6;
}

.section-items.show::-webkit-scrollbar-thumb {
    background-color: #9ca3af;
    border-radius: 0;
}

.section-item {
    margin-bottom: 0.125rem;
}

.item-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.5rem;
    font-size: 0.78125rem;
    text-decoration: none;
    color: #4b5563;
    transition: all 150ms ease;
    border-radius: 0;
}

.item-link:hover {
    color: #10b981;
    background-color: rgba(16, 185, 129, 0.08);
    padding-left: 0.75rem;
}

.item-link.active {
    color: #10b981;
    font-weight: 700;
    background-color: rgba(16, 185, 129, 0.12);
    padding-left: 0.75rem;
    border-left: 3px solid #10b981;
}

.item-bullet {
    font-size: 0.5rem;
    color: #9ca3af;
    flex-shrink: 0;
}

.item-link.active .item-bullet {
    color: #10b981;
}

.item-text {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 2rem 1rem;
    background-color: #fef3c7;
    border: 2px solid var(--color-border);
    margin-bottom: 2rem;
}

.empty-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.empty-title {
    font-weight: 700;
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

.empty-desc {
    font-size: 0.75rem;
    color: #6b7280;
}

/* Sidebar Tips */
.sidebar-tips {
    padding: 1rem;
    background-color: #f8fafc;
    border: 2px solid var(--color-border);
    box-shadow: 3px 3px 0 0 rgba(0, 0, 0, 0.1);
    margin-top: auto;
    flex-shrink: 0;
}

.tips-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.tips-icon {
    font-size: 0.875rem;
}

.tips-title {
    font-weight: 700;
    font-size: 0.75rem;
    color: #059669;
}

.tips-list {
    list-style: none;
    font-size: 0.75rem;
    color: #4b5563;
    line-height: 1.7;
}

.tips-list li {
    padding-left: 0.75rem;
    position: relative;
}

.tips-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #10b981;
}

.tips-list kbd {
    display: inline-block;
    padding: 0.125rem 0.375rem;
    background-color: #e5e7eb;
    border: 1px solid #d1d5db;
    border-radius: 2px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.625rem;
    font-weight: 700;
}


/* 5.5 Article Content Typography */
.article-container {
    flex: 1;
    min-width: 0;
    padding: 1.5rem;
    overflow-x: hidden;
}

@media (min-width: 1024px) {
    .article-container {
        padding: 3rem;
    }
}

.prose-content {
    max-width: 56rem;
    margin: 0 auto;
}

.prose-content h1 {
    font-size: 2.25rem;
    font-weight: 900;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 4px solid var(--color-border);
    padding-bottom: 1rem;
}

@media (min-width: 768px) {
    .prose-content h1 {
        font-size: 3rem;
    }
}

.prose-content h2 {
    display: inline-block;
    background-color: var(--color-yellow);
    border: 2px solid var(--color-border);
    padding: 0.25rem 1rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-sm);
    font-weight: 900;
}

.prose-content h3 {
    border-left: 6px solid var(--color-primary);
    padding-left: 0.75rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.prose-content p {
    margin-bottom: 1.5rem;
    font-size: 1.125rem;
    line-height: 1.8;
}

.prose-content blockquote {
    background-color: #e0e7ff;
    border: 2px solid var(--color-border);
    border-left: 8px solid #4f46e5;
    padding: 1rem;
    margin: 1.5rem 0;
    font-weight: 500;
}

.prose-content ul, .prose-content ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.prose-content li {
    margin-bottom: 0.5rem;
}

.prose-content a {
    color: inherit;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 2px;
}

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

/* 行内代码 */
.prose-content :not(pre) > code {
    display: inline;
    padding: 0.15rem 0.4rem;
    background-color: #f3f4f6;
    border: 1px solid #000;
    border-radius: 0;
    font-family: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', Consolas, monospace;
    font-size: 0.875em;
    font-weight: 600;
    color: #dc2626;
    box-shadow: 2px 2px 0 0 #000;
    word-break: break-word;
}

/* 代码块容器 */
.prose-content pre {
    position: relative;
    margin: 1.75rem 0;
    border: 2px solid #000;
    background-color: #1a1a2e;
    box-shadow: 5px 5px 0 0 #000;
    overflow: hidden;
}

/* 代码块顶部装饰条（macOS 风格三圆点） */
.prose-content pre::before {
    content: '';
    display: block;
    height: 1.25rem;
    padding: 0.35rem 0.875rem;
    background-color: #e5e7eb;
    border-bottom: 2px solid #000;
}

.prose-content pre::after {
    content: '';
    position: absolute;
    top: 0.45rem;
    left: 0.875rem;
    width: 0.65rem;
    height: 0.65rem;
    background-color: #ef4444;
    border: 1px solid #000;
    border-radius: 50%;
    box-shadow:
        0.85rem 0 0 0 #facc15,
        1.7rem 0 0 0 #22c55e;
}

/* 代码块内容 */
.prose-content pre > code {
    display: block;
    padding: 1.25rem 1.25rem 1.25rem 1.25rem;
    margin-top: -1px;
    overflow-x: auto;
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
    color: #d4d4d8;
    font-family: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', Consolas, monospace;
    font-size: 0.875rem;
    line-height: 1.7;
    tab-size: 4;
    white-space: pre;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 代码块内滚动条美化 */
.prose-content pre > code::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.prose-content pre > code::-webkit-scrollbar-track {
    background-color: #27272a;
}

.prose-content pre > code::-webkit-scrollbar-thumb {
    background-color: #52525b;
    border: 1px solid #000;
}

.prose-content pre > code::-webkit-scrollbar-thumb:hover {
    background-color: #71717a;
}

/* 表格样式 */
.prose-content table {
    width: 100%;
    margin: 1.75rem 0;
    border-collapse: collapse;
    border: 2px solid #000;
    box-shadow: 4px 4px 0 0 #000;
    background-color: white;
    font-size: 0.9375rem;
}

.prose-content thead {
    background-color: #1a1a2e;
    color: white;
}

.prose-content th {
    padding: 0.875rem 1rem;
    text-align: left;
    font-weight: 800;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 3px solid #000;
    border-right: 2px solid #27272a;
    vertical-align: middle;
}

.prose-content th:last-child {
    border-right: none;
}

.prose-content td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #e5e7eb;
    border-right: 1px solid #f3f4f6;
    vertical-align: top;
    line-height: 1.6;
}

.prose-content td:last-child {
    border-right: none;
}

.prose-content tbody tr:last-child td {
    border-bottom: none;
}

/* 斑马纹 */
.prose-content tbody tr:nth-child(even) {
    background-color: #f9fafb;
}

/* 行悬停效果 */
.prose-content tbody tr:hover {
    background-color: #fef08a;
    transition: background-color 150ms ease;
}

/* 表格内代码（行内） */
.prose-content td code,
.prose-content th code {
    display: inline;
    padding: 0.1rem 0.35rem;
    background-color: #1e293b;
    border: 1px solid #000;
    box-shadow: 1px 1px 0 0 #000;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8125em;
    color: #4ade80;
    font-weight: 600;
}

/* 表格内链接 */
.prose-content td a,
.prose-content th a {
    text-decoration: none;
    font-weight: 700;
    color: inherit;
}

.prose-content td a:hover {
    color: #059669;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 2px;
}

/* 表格响应式：小屏幕横向滚动 */
@media (max-width: 640px) {
    .prose-content table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

.article-meta {
    display: flex;
    gap: 1rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.875rem;
    color: #4b5563;
    font-weight: 700;
    margin-bottom: 2.5rem;
}

.meta-tag {
    background-color: #e5e7eb;
    border: 2px solid var(--color-border);
    padding: 0.25rem 0.5rem;
    box-shadow: 2px 2px 0 0 #000;
}

/* 5.6 Code Blocks */
.code-block {
    margin: 1.5rem 0;
    border: 2px solid var(--color-border);
    background-color: #1e1e1e;
    box-shadow: var(--shadow-md);
}

.code-header {
    border-bottom: 2px solid var(--color-border);
    background-color: #e5e7eb;
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.code-dots {
    display: flex;
    gap: 0.5rem;
}

.code-dot {
    width: 0.75rem;
    height: 0.75rem;
    border: 1px solid var(--color-border);
}

.code-dot-red { background-color: #ef4444; }
.code-dot-yellow { background-color: #facc15; }
.code-dot-green { background-color: #22c55e; }

.code-filename {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    font-weight: 700;
    color: #4b5563;
}

.code-content {
    padding: 1rem;
    overflow-x: auto;
    color: #4ade80;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.875rem;
    line-height: 1.625;
}

/* 5.7 Footer */
.footer-main {
    background-color: var(--color-border);
    color: var(--color-white);
    padding: 4rem 0 2rem;
}

.footer-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding-bottom: 3rem;
    border-bottom: 2px solid #374151;
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .footer-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
    }
}

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

@media (min-width: 768px) {
    .footer-brand {
        text-align: left;
    }
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .footer-logo {
        justify-content: flex-start;
    }
}

.footer-logo-icon {
    width: 2rem;
    height: 2rem;
    background-color: var(--color-white);
    color: var(--color-border);
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-logo-text {
    font-weight: 900;
    font-size: 1.5rem;
}

.footer-description {
    font-family: 'JetBrains Mono', monospace;
    color: #9ca3af;
    font-size: 0.875rem;
    max-width: 18.75rem;
}

.footer-links {
    display: flex;
    gap: 4rem;
    text-align: center;
}

@media (min-width: 768px) {
    .footer-links {
        text-align: left;
    }
}

.footer-link-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-link-title {
    font-weight: 900;
    color: #6b7280;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.footer-link {
    color: #d1d5db;
    text-decoration: none;
    font-weight: 500;
    transition: color 200ms ease;
}

.footer-link:hover {
    color: #4ade80;
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    text-align: center;
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

.footer-copyright {
    font-family: 'JetBrains Mono', monospace;
    color: #6b7280;
    font-size: 0.75rem;
}

.footer-filing {
    display: flex;
    gap: 1.5rem;
    margin-top: 0.5rem;
    flex-wrap: wrap;
}

@media (min-width: 768px) {
    .footer-filing {
        margin-top: 0;
    }
}

.filing-link {
    font-size: 0.75rem;
    color: #9ca3af;
    text-decoration: none;
    font-family: 'JetBrains Mono', monospace;
    transition: color 200ms ease;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.filing-link:hover {
    color: var(--color-primary);
    text-decoration: underline;
}

.police-icon {
    flex-shrink: 0;
}

/* 5.8 Buttons & CTAs */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    font-weight: 700;
    text-decoration: none;
    border: 2px solid var(--color-border);
    cursor: pointer;
    transition: all 200ms ease;
}

.btn:active {
    transform: translate(0.25rem, 0.25rem);
    box-shadow: none;
}

/* 5.9 Pricing Tables */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 2rem;
    align-items: end;
}

@media (min-width: 1024px) {
    .pricing-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.pricing-card {
    background-color: #f3f4f6;
    border: 4px solid var(--color-border);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    position: relative;
}

.pricing-card.featured {
    background-color: #cffafe;
    transform: scale(1.05);
    z-index: 10;
    border-bottom-width: 8px;
}

.pricing-badge {
    position: absolute;
    top: -0.75rem;
    left: 2rem;
    background-color: #67e8f9;
    border: 2px solid var(--color-border);
    padding: 0.25rem 1rem;
    font-weight: 900;
    font-size: 0.875rem;
    box-shadow: var(--shadow-sm);
}

.pricing-badge.centered {
    left: 50%;
    transform: translateX(-50%);
    background-color: #22d3ee;
    color: white;
    font-size: 1.125rem;
}

.pricing-price {
    margin: 1.5rem 0 2rem;
}

.pricing-amount {
    font-size: 2.5rem;
    font-weight: 900;
}

.pricing-period {
    color: #6b7280;
    font-weight: 700;
}

.pricing-features {
    list-style: none;
    margin-bottom: 2rem;
}

.pricing-feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.pricing-feature.checked {
    color: inherit;
}

.pricing-feature.unchecked {
    opacity: 0.4;
}

.pricing-button {
    width: 100%;
    padding: 0.75rem;
    font-weight: 900;
    text-transform: uppercase;
    border: 2px solid var(--color-border);
    cursor: pointer;
    transition: all 200ms ease;
    text-align: center;
    text-decoration: none;
    display: block;
}

.pricing-button:hover {
    transform: translateY(0.25rem);
    box-shadow: none;
}

/* 5.10 FAQ Accordion */
.faq-item {
    background-color: var(--color-white);
    border: 4px solid var(--color-border);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    margin-bottom: 1.5rem;
}

.faq-question {
    font-size: 1.25rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.faq-question .q-label {
    color: var(--color-primary);
    font-weight: 900;
}

.faq-answer {
    color: #4b5563;
    font-weight: 500;
}

/* Team Member Cards */
.team-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 2rem;
}

@media (min-width: 768px) {
    .team-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.team-card {
    background-color: var(--color-white);
    border: 4px solid var(--color-border);
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    transition: all 300ms ease;
    text-align: center;
}

.team-card:hover {
    transform: translateY(-0.5rem);
    box-shadow: var(--shadow-lg);
}

.team-avatar {
    width: 6rem;
    height: 6rem;
    margin: 0 auto 1.5rem;
    background-color: #e5e7eb;
    border: 4px solid var(--color-border);
    overflow: hidden;
}

.team-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 300ms ease;
}

.team-card:hover .team-avatar img {
    transform: scale(1.1);
}

.team-name {
    font-size: 1.5rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
}

.team-role {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.team-quote {
    color: #4b5563;
    font-weight: 500;
    border-top: 2px dashed #9ca3af;
    padding-top: 1rem;
}

/* Page Hero (Standalone Page) */
.page-hero {
    background-color: #fde047;
    border-bottom: 4px solid var(--color-border);
    position: relative;
    overflow: hidden;
}

.hero-stripes {
    height: 1rem;
    width: 100%;
    background-image: repeating-linear-gradient(
        45deg,
        #fde047,
        #fde047 10px,
        #000000 10px,
        #000000 20px
    );
    border-bottom: 4px solid var(--color-border);
}

.hero-stripes.bottom {
    border-bottom: none;
    border-top: 4px solid var(--color-border);
}

.page-hero-content {
    max-width: 1280px;
    margin: 0 auto;
    padding: 5rem 1rem;
    text-align: center;
    position: relative;
    z-index: 10;
}

.page-hero-badge {
    display: inline-block;
    background-color: var(--color-border);
    color: var(--color-white);
    padding: 0.5rem 1rem;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    font-size: 1.125rem;
    box-shadow: var(--shadow-sm);
    transform: rotate(-2deg);
    margin-bottom: 1.5rem;
}

.page-hero-title {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

@media (min-width: 768px) {
    .page-hero-title {
        font-size: 4.5rem;
    }
}

.page-hero-description {
    font-size: 1.25rem;
    font-weight: 500;
    max-width: 42rem;
    margin: 0 auto;
    border: 4px solid var(--color-border);
    background-color: var(--color-white);
    padding: 1rem;
    box-shadow: var(--shadow-sm);
}

/* Sidebar Right (TOC) */
.sidebar-right {
    width: 16rem;
    flex-shrink: 0;
    border-left: 4px solid var(--color-border);
    position: sticky;
    top: 4rem;
    height: calc(100vh - 4rem);
    padding: 1.5rem;
    background-color: rgba(255, 255, 255, 0.5);
    overflow-y: auto;
}

/* 右侧边栏滚动条 */
.sidebar-right::-webkit-scrollbar {
    width: 6px;
}

.sidebar-right::-webkit-scrollbar-track {
    background-color: transparent;
}

.sidebar-right::-webkit-scrollbar-thumb {
    background-color: #d1d5db;
    border: 1px solid #000;
    border-radius: 0;
}

.sidebar-right::-webkit-scrollbar-thumb:hover {
    background-color: #9ca3af;
}

.toc-title {
    font-weight: 900;
    border-bottom: 2px solid var(--color-border);
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.875rem;
}

.toc-nav {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    font-size: 0.875rem;
}

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

.toc-child {
    list-style: none;
    margin: 0;
    padding-left: 1rem;
}

.toc-item {
    margin-bottom: 0.25rem;
}

.toc-link {
    display: block;
    color: #4b5563;
    text-decoration: none;
    padding: 0.375rem 0.5rem;
    border-radius: 0;
    transition: all 150ms ease;
    font-size: 0.8125rem;
}

.toc-link:hover {
    color: var(--color-primary);
    background-color: rgba(16, 185, 129, 0.08);
    padding-left: 0.75rem;
}

.toc-link.active {
    color: var(--color-primary);
    font-weight: 900;
    background-color: rgba(16, 185, 129, 0.12);
    padding-left: 0.75rem;
    border-left: 3px solid var(--color-primary);
}

/* 多级标题缩进 */
.toc-item.level-2 .toc-link {
    font-size: 0.8125rem;
}

.toc-item.level-3 .toc-link {
    font-size: 0.78125rem;
    color: #6b7280;
}

.toc-item.level-4 .toc-link {
    font-size: 0.75rem;
    color: #9ca3af;
    padding-left: 0.75rem;
}

.toc-item.level-3 .toc-link:hover,
.toc-item.level-4 .toc-link:hover {
    color: var(--color-primary);
}

.toc-item.level-3 .toc-link.active,
.toc-item.level-4 .toc-link.active {
    color: var(--color-primary);
}

.ad-placeholder {
    margin-top: 3rem;
    padding: 1rem;
    background-color: #fef3c7;
    border: 2px solid var(--color-border);
    box-shadow: var(--shadow-sm);
}

.ad-label {
    font-size: 0.75rem;
    font-weight: 900;
    display: block;
    margin-bottom: 0.5rem;
}

.ad-box {
    width: 100%;
    height: 6rem;
    background-color: #e5e7eb;
    border: 2px dashed var(--color-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.875rem;
}

/* Article Navigation */
.article-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: 4px solid var(--color-border);
}

.article-nav-link {
    padding: 0.5rem 1rem;
    border: 2px solid var(--color-border);
    text-decoration: none;
    color: inherit;
    transition: all 200ms ease;
    box-shadow: 4px 4px 0 0 #000;
}

.article-nav-link:hover {
    background-color: var(--color-border);
    color: var(--color-white);
    box-shadow: none;
    transform: translate(0.25rem, 0.25rem);
}

.article-nav-link.next {
    background-color: #4ade80;
}

/* ===================================
   6. Responsive Breakpoints
   =================================== */

/* Tablet and up */
@media (min-width: 768px) {
    .hero-container {
        flex-direction: row;
    }
    
    .hero-decoration {
        display: flex;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .search-box {
        display: block;
    }
    
    .nav-links {
        display: flex !important;
    }
}

/* Desktop */
@media (min-width: 1024px) {
    .sidebar-left {
        display: block !important;
    }
    
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Large desktop */
@media (min-width: 1280px) {
    .sidebar-right {
        display: block !important;
    }
    
    .hero-title {
        font-size: 4.5rem;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .header-container {
        flex-wrap: wrap;
        height: auto;
        padding: 1rem 0;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .nav-links {
        display: none;
        width: 100%;
        flex-direction: column;
        gap: 0.5rem;
        padding-top: 1rem;
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .search-box {
        display: none;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .btn-primary, .btn-secondary {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
    
    .sidebar-left, .sidebar-right {
        display: none;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 2rem;
    }
}

/* ===================================
   7. Animation & Transitions
   =================================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(1rem);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 500ms ease forwards;
}

/* ===================================
   8. Scrollbar Customization
   =================================== */
::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-left: 2px solid #000;
}

::-webkit-scrollbar-thumb {
    background: #10b981;
    border: 2px solid #000;
}

::-webkit-scrollbar-thumb:hover {
    background: #059669;
}

/* ===================================
   9. Utility Classes
   =================================== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.font-bold { font-weight: 700; }
.font-black { font-weight: 900; }

.uppercase { text-transform: uppercase; }
.tracking-wide { letter-spacing: 0.05em; }
.tracking-wider { letter-spacing: 0.1em; }

.border-black { border-color: var(--color-border); }
.bg-white { background-color: var(--color-white); }
.bg-black { background-color: var(--color-border); }
.text-black { color: var(--color-border); }

.mt-4 { margin-top: 1rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-12 { margin-bottom: 3rem; }
.py-20 { padding-top: 5rem; padding-bottom: 5rem; }

.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.gap-12 { gap: 3rem; }

/* ===================================
   10. Print Styles
   =================================== */
@media print {
    .header-nav, 
    .sidebar-left, 
    .sidebar-right, 
    .footer-main,
    .mobile-menu-btn {
        display: none !important;
    }
    
    body {
        background: white;
        background-image: none;
    }
    
    .block-shadow,
    .block-shadow-sm,
    .block-shadow-lg {
        box-shadow: none;
    }
}
