/* ==========================================
   文档页面样式 (API文档、关于页面等)
   ========================================== */

/* 文档容器 */
.doc-container,
.about-container {
    min-height: calc(100vh - 64px - 120px);
    padding: 60px 20px;
}

/* 文档卡片 */
.doc-card,
.about-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    padding: 40px;
    max-width: 900px;
    margin: 0 auto 30px;
}

/* 文档头部 */
.doc-header,
.about-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 2px solid #f0f0f0;
}

/* 文档标题 */
.doc-title,
.about-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 15px;
}

/* 文档描述 */
.doc-description,
.about-description {
    font-size: 1rem;
    color: #666;
    line-height: 1.8;
}

/* 文档章节 */
.doc-section,
.about-section {
    margin-bottom: 40px;
}

/* 章节标题 */
.section-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title svg {
    width: 24px;
    height: 24px;
    color: #6366f1;
}

/* 子章节标题 */
.subsection-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #444;
    margin: 20px 0 15px;
}

/* 章节内容 */
.section-content {
    color: #666;
    line-height: 1.8;
    font-size: 1rem;
}

.section-content p {
    margin-bottom: 15px;
}

/* 代码块 */
.code-block {
    background: #1a1a1a;
    color: #fff;
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 15px 0;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.code-block .comment {
    color: #6a9955;
}

.code-block .string {
    color: #ce9178;
}

.code-block .number {
    color: #b5cea8;
}

/* 参数表格 */
.param-table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
}

.param-table th,
.param-table td {
    padding: 12px;
    text-align: left;
    border: 1px solid #e0e0e0;
}

.param-table th {
    background: #f5f5f5;
    font-weight: 600;
    color: #333;
}

.param-table td {
    color: #666;
}

.param-table code {
    background: #f5f5f5;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    color: #6366f1;
    font-size: 0.9em;
}

/* 提示框 */
.note-box {
    background: #f0f9ff;
    border-left: 3px solid #3b82f6;
    padding: 16px 20px;
    border-radius: 6px;
    margin: 20px 0;
}

.note-box-title {
    display: flex;
    align-items: center;
    font-weight: 600;
    color: #1e40af;
    margin-bottom: 8px;
}

.note-box-title svg {
    width: 18px;
    height: 18px;
    margin-right: 8px;
}

.note-box ul {
    margin: 8px 0 0 0;
    padding-left: 20px;
    color: #1e3a8a;
}

/* 警告框 */
.warning-box {
    background: #fef2f2;
    border-left: 3px solid #ef4444;
    padding: 16px 20px;
    border-radius: 6px;
    margin: 20px 0;
}

.warning-box-title {
    display: flex;
    align-items: center;
    font-weight: 600;
    color: #991b1b;
    margin-bottom: 8px;
}

.warning-box-title svg {
    width: 18px;
    height: 18px;
    margin-right: 8px;
}

.warning-box p,
.warning-box-content {
    margin: 8px 0 0 0;
    color: #7f1d1d;
    line-height: 1.8;
    font-size: 1rem;
}

.warning-box-content strong {
    color: #991b1b;
    font-weight: 600;
}

/* 功能网格 (关于页面) */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.feature-item {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border-left: 3px solid #6366f1;
}

.feature-item h4 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.05rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.feature-item h4 svg {
    width: 20px;
    height: 20px;
    color: #6366f1;
}

.feature-item p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* 规则列表 */
.rules-list {
    background: #fff8f0;
    border-left: 3px solid #f59e0b;
    padding: 20px 20px 20px 40px;
    border-radius: 6px;
    margin: 20px 0;
}

.rules-list li {
    color: #78350f;
    line-height: 2;
    font-size: 0.95rem;
}

/* 联系方式框 */
.contact-box {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
}

.contact-box h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.contact-items {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 500px;
    margin: 0 auto;
}

.contact-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.15);
    padding: 15px 25px;
    border-radius: 8px;
    backdrop-filter: blur(10px);
}

.contact-item svg {
    width: 22px;
    height: 22px;
}

.contact-item a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s;
}

.contact-item a:hover {
    opacity: 0.8;
}

/* 响应式 */
@media (max-width: 768px) {
    .doc-card,
    .about-card {
        padding: 25px 20px;
    }

    .doc-title,
    .about-title {
        font-size: 1.5rem;
    }

    .section-title {
        font-size: 1.2rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .param-table {
        font-size: 0.85rem;
    }
}
