/* 法律文档页面样式 */

/* 基础重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.8;
    color: #333;
    background: #f8f9fa;
}

/* 容器 */
.legal-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* 头部 */
.legal-header {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    padding: 3rem 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-content {
    max-width: 900px;
    margin: 0 auto;
}

.back-link {
    display: inline-flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    transition: color 0.3s ease;
}

.back-link:hover {
    color: #fff;
}

.legal-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    line-height: 1.2;
}

.update-time {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 300;
}

/* 主内容区 */
.legal-content {
    flex: 1;
    padding: 3rem 2rem;
}

.content-wrapper {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
}

/* 章节 */
.legal-section {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e9ecef;
}

.legal-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.legal-section h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 3px solid #3498db;
    display: inline-block;
}

.legal-section h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #34495e;
    margin: 2rem 0 1rem;
}

.legal-section p {
    margin-bottom: 1.25rem;
    font-size: 1rem;
    line-height: 1.8;
    color: #555;
}

.legal-section ul,
.legal-section ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.legal-section li {
    margin-bottom: 0.75rem;
    font-size: 1rem;
    color: #555;
    line-height: 1.8;
}

.legal-section ul ul,
.legal-section ol ol {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

.legal-section a {
    color: #3498db;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.legal-section a:hover {
    color: #2980b9;
    border-bottom-color: #2980b9;
}

/* 高亮提示 */
.highlight {
    background: linear-gradient(120deg, #fff3cd 0%, #ffe8a1 100%);
    padding: 1.25rem;
    border-left: 4px solid #ffc107;
    border-radius: 4px;
    margin: 1.5rem 0;
    font-weight: 500;
}

/* 备注说明 */
.note {
    background: #e7f3ff;
    padding: 1.25rem;
    border-left: 4px solid #3498db;
    border-radius: 4px;
    margin: 1.5rem 0;
    font-size: 0.95rem;
}

.note strong {
    color: #2980b9;
}

/* 强调文本 */
strong {
    font-weight: 600;
    color: #2c3e50;
}

/* 签名区域 */
.signature {
    text-align: right;
    color: #7f8c8d;
    font-style: italic;
    border-bottom: none !important;
}

.signature p {
    margin-bottom: 0.5rem;
}

/* 底部 */
.legal-footer {
    background: #2c3e50;
    color: rgba(255, 255, 255, 0.8);
    padding: 2rem;
    text-align: center;
}

.legal-footer p {
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

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

.footer-links span {
    color: rgba(255, 255, 255, 0.4);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .legal-header {
        padding: 2rem 1.5rem;
    }

    .legal-header h1 {
        font-size: 2rem;
    }

    .legal-content {
        padding: 2rem 1rem;
    }

    .content-wrapper {
        padding: 2rem 1.5rem;
        border-radius: 8px;
    }

    .legal-section h2 {
        font-size: 1.5rem;
    }

    .legal-section h3 {
        font-size: 1.1rem;
    }

    .legal-section p,
    .legal-section li {
        font-size: 0.95rem;
    }

    .legal-section ul,
    .legal-section ol {
        padding-left: 1.5rem;
    }
}

@media (max-width: 480px) {
    .legal-header {
        padding: 1.5rem 1rem;
    }

    .legal-header h1 {
        font-size: 1.75rem;
    }

    .update-time {
        font-size: 0.85rem;
    }

    .legal-content {
        padding: 1.5rem 0.75rem;
    }

    .content-wrapper {
        padding: 1.5rem 1rem;
    }

    .legal-section {
        margin-bottom: 2rem;
    }

    .legal-section h2 {
        font-size: 1.35rem;
        margin-bottom: 1rem;
    }

    .legal-section h3 {
        font-size: 1.05rem;
        margin: 1.5rem 0 0.75rem;
    }

    .highlight,
    .note {
        padding: 1rem;
        font-size: 0.9rem;
    }

    .footer-links {
        flex-direction: column;
        gap: 0.5rem;
    }

    .footer-links span {
        display: none;
    }
}

/* 打印样式 */
@media print {
    .legal-header {
        background: white;
        color: black;
        box-shadow: none;
    }

    .back-link {
        display: none;
    }

    .legal-footer {
        background: white;
        color: black;
    }

    .content-wrapper {
        box-shadow: none;
    }

    .highlight {
        background: #f8f9fa;
        border-left-color: #999;
    }

    .note {
        background: #f8f9fa;
        border-left-color: #999;
    }

    a {
        color: black;
        text-decoration: underline;
    }
}

/* 滚动行为 */
html {
    scroll-behavior: smooth;
}

/* 选中文本样式 */
::selection {
    background: #3498db;
    color: white;
}

::-moz-selection {
    background: #3498db;
    color: white;
}

/* 列表样式优化 */
.legal-section ul {
    list-style-type: disc;
}

.legal-section ul ul {
    list-style-type: circle;
}

.legal-section ol {
    list-style-type: decimal;
}

/* 表格样式（如需要） */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
}

table th,
table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #e9ecef;
}

table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
}

/* 代码块样式（如需要） */
code {
    background: #f8f9fa;
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    color: #e83e8c;
}

pre {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 4px;
    overflow-x: auto;
    margin: 1.5rem 0;
}

pre code {
    background: none;
    padding: 0;
    color: #333;
}

