﻿/* 独立文档样式 - 用于线上网页 */
:root {
    --primary-color: #a67adf;
    --secondary-color: #b28af1;
    --bg-dark: #0f0f0f;
    --bg-color: #1a1a1a;
    --bg-card: #121213;
    --bg-secondary: #1e1e1e;
    --text-primary: #ffffff;
    --text-secondary: #e0e0e0;
    --text-muted: #888888;
    --border-color: #404040;
    --radius: 24px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
}

.container {
    width: 100%;
    position: relative;
    padding: 0 12px;
    margin: 0 auto;
    padding-top: 10px;
    padding-bottom: 20px;
    height: 100vh;
    overflow-y: scroll;
}

/* ===== 顶部导航区域 ===== */
.top-section {
    padding: 15px 12px;
    position: fixed;
    width: 100%;
    top: 0px;
    right: 0;
    z-index: 100;
    display: flex;
    justify-content: flex-end;
    background: var(--bg-dark);
    height: 100px;
    align-items: flex-end;
}

.nav-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.back-btn {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 10px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    cursor: pointer;
    background: transparent;
}

.page-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

/* ===== 文档内容 ===== */
.doc-content {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 20px;
    line-height: 1.8;
}

.doc-heading {
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 24px;
    margin-bottom: 12px;
    line-height: 1.5;
}

h1.doc-heading {
    font-size: 18px;
}

h2.doc-heading {
    font-size: 16px;
}

.doc-heading:first-child {
    margin-top: 0;
}

.doc-paragraph {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 16px;
    text-align: justify;
}

.doc-paragraph:last-child {
    margin-bottom: 0;
}

.doc-list-item {
    padding-left: 20px;
    position: relative;
}

.doc-list-item::before {
    content: "·";
    position: absolute;
    left: 8px;
    color: var(--text-secondary);
    font-weight: bold;
}

/* ===== 滚动条样式 ===== */
.container::-webkit-scrollbar {
    width: 3px;
}

.container::-webkit-scrollbar-track {
    background: transparent;
}

.container::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
}

/* ===== 移动端适配 ===== */
@media (max-width: 375px) {
    .doc-content {
        padding: 16px;
    }
    
    h1.doc-heading {
        font-size: 16px;
    }
    
    h2.doc-heading {
        font-size: 15px;
    }
    
    .doc-paragraph {
        font-size: 13px;
    }
}

/* ===== 移动端点击反馈效果 ===== */
.back-btn,
button {
    transition: transform 0.1s ease, opacity 0.1s ease;
}

.back-btn:active,
button:active {
    transform: scale(0.97);
    opacity: 0.8;
}

