/* ==========================================
   Chat Chat 法务中心公共样式表
   明亮（白底黑字）、全屏纯文本、移动端自适应设计
   ========================================== */

/* 引入现代无衬线字体 */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* 基础重置与变量定义 */
:root {
    --bg-color: #ffffff;          /* 主背景色：纯白 */
    --panel-bg: #f8fafc;          /* 板块背景色：极淡的蓝灰 */
    --border-color: #e2e8f0;      /* 边框颜色：淡灰 */
    --text-primary: #0f172a;      /* 主要文字：极深灰接近纯黑 */
    --text-secondary: #334155;    /* 次要文字：深灰 */
    --text-muted: #64748b;        /* 弱文字颜色：中灰 */
    --primary-color: #2563eb;     /* 主色：科技蓝 */
    --accent-color: #7c3aed;      /* 强调色：紫 */
    --hover-bg: rgba(37, 99, 235, 0.05); /* 悬浮背景色 */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
}

/* 主容器布局 - 全屏平铺 */
.main-container {
    display: flex;
    width: 100%;
    margin: 0 auto;
    min-height: 100vh;
}

/* 正文内容区域 - 默认无侧边栏、全屏拉伸 */
.content-area {
    flex: 1;
    width: 100%;
    padding: 3rem 4rem;
}

/* 页面头部介绍 */
.doc-header {
    margin-bottom: 3rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 2rem;
}

.doc-title {
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.doc-meta {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* 正文条款章节 */
.section {
    margin-bottom: 3rem;
    scroll-margin-top: 20px;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-title::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 1.25rem;
    background: linear-gradient(to bottom, var(--accent-color), var(--primary-color));
    border-radius: 2px;
}

.section-content {
    color: var(--text-secondary);
    font-size: 0.975rem;
    text-align: justify;
}

.section-content p {
    margin-bottom: 1rem;
}

/* 条款子列表项 */
.term-list {
    list-style: none;
    margin-top: 0.75rem;
    margin-bottom: 1rem;
    padding-left: 0.5rem;
}

.term-list > li {
    position: relative;
    padding-left: 1.75rem;
    margin-bottom: 0.75rem;
}

.term-list > li::before {
    position: absolute;
    left: 0.25rem;
    top: 0.25rem;
    color: var(--primary-color);
    font-weight: 600;
}

/* 针对数字序号列表的类 */
.term-list.decimal-list {
    counter-reset: item;
}

.term-list.decimal-list > li {
    counter-increment: item;
}

.term-list.decimal-list > li::before {
    content: counter(item) ".";
}

/* 邮箱与联系信息样式 */
.highlight-box {
    background-color: var(--panel-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.highlight-box a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.highlight-box a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

/* 返回顶部悬浮按钮 */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    background-color: var(--panel-bg);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 99;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    opacity: 0;
    visibility: hidden;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    color: var(--primary-color);
    border-color: var(--primary-color);
    background-color: var(--hover-bg);
    transform: translateY(-3px);
}

/* ==========================================
   响应式媒体查询
   ========================================== */

/* 移动端与平板自适应 */
@media (max-width: 1024px) {
    .content-area {
        padding: 2rem 1.5rem;
    }

    .doc-title {
        font-size: 1.75rem;
    }

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

    .section-content {
        font-size: 0.95rem;
    }
    
    /* 移动端底部返回顶部按钮大小微调 */
    .back-to-top {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 40px;
        height: 40px;
    }
}