

html {
    font-size: 16px;
    line-height: 1.6;
    scroll-behavior: smooth;
}

* {
    margin: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background-color: #f8f9fa;
    color: #333;
}

::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.static-container {
    box-sizing: border-box;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    color: #404040;
    font-size: 16px;
    padding: 15px 15px 25px;
    word-break: break-all;
    background-color: #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
    overflow-x: hidden;
}

/* 通用协议样式 */
.agreement-header {
    text-align: center;
    margin-bottom: 25px;
    background: linear-gradient(135deg, #FF9B61, #FFD2B7, #fafafa);
    padding: 12px 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    margin: -15px -15px 25px -15px;
    position: relative;
    overflow: hidden;
}

.agreement-header:before {
    content: '';
    position: absolute;
    top: -8px;
    right: -8px;
    width: 60px;
    height: 60px;
    background: rgba(255, 210, 183, 0.3);
    border-radius: 50%;
    z-index: 1;
}

.agreement-header:after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: -5px;
    width: 30px;
    height: 30px;
    background: rgba(255, 210, 183, 0.2);
    border-radius: 50%;
    z-index: 1;
}

.agreement-title {
    font-size: 24px;
    font-weight: 600;
    color: #FFFFFF;
    text-align: center;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 2;
    letter-spacing: 0.5px;
}

.agreement-subtitle {
    font-size: 15px;
    color: #FFFFFF;
    margin-bottom: 5px;
    text-align: center;
    position: relative;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    z-index: 2;
    font-weight: 400;
}

.agreement-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.agreement-meta span {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 9px;
    font-weight: 600;
    color: #726869;
    text-shadow: none;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    /* backdrop-filter: blur(10px); */
}


.title {
    padding: 20px 0 30px 0;
    margin-bottom: 30px;
    border-bottom: 2px solid #e9ecef;
}

.text-overflow {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.4;
    color: #291A1B;
    margin-bottom: 8px;
}

.version, .publish-time {
    font-size: 13px;
    line-height: 1.5;
    color: #6c757d;
    vertical-align: top;
    margin-right: 15px;
}

.detail-container .details {
    color: #6c757d;
    font-size: 13px;
    line-height: 1.6;
    padding-bottom: 5px;
    margin-bottom: 15px;
}
.ProseMirror {
    color: #291A1B;
    line-height: 1.8;
}

.ProseMirror p, .ProseMirror pre {
    font-size: 16px;
    line-height: 1.8;
    margin: 12px 0;
    color: #291A1B;
    word-break: break-word;
    clear: both;
}

.ProseMirror p strong {
    color: #291A1B;
    font-weight: 600;
}

.ProseMirror p u {
    text-decoration: underline;
    text-decoration-color: #291A1B;
    text-decoration-thickness: 2px;
}

.ProseMirror .indent {
    margin-left: 2em;
}

.ProseMirror .paragraph_indent {
    /* text-indent: 2em; */
    margin-left: 4em;
}

/* 重置ul/ol的默认样式，避免浏览器差异 */
.ProseMirror ul, .ProseMirror ol {
    margin: 0;
    padding-left: 2em; /* 给列表标记预留空间（关键） */
    list-style-type: disc; /* 确保标记显示（非必须，根据需求调整） */
  }

.ProseMirror li.paragraph_indent {
    list-style-position: outside;
    text-indent: 0em;
    margin: 12px 0 12px 0; 
    box-sizing: border-box; /* 统一盒模型计算方式 */
    line-height: 1.5;
}

.ProseMirror .line {
    width: 100%;
    height: 1px;
    background-color: #e9ecef;
    margin: 10px 0;
}

.ProseMirror .ct-link {
    word-break: break-all;
    color: #3498db;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
    cursor: text;
}


/* 响应式设计 */
@media (max-width: 768px) {
    html {
        font-size: 14px;
    }
    
    .static-container {
        /* margin: 10px; */
        border-radius: 8px;
    }
    
    .detail-container {
        padding: 15px 18px 30px 18px;
    }
    
    .text-overflow {
        font-size: 20px;
    }
    
    .ProseMirror p, .ProseMirror pre {
        font-size: 15px;
        line-height: 1.7;
    }

    .ProseMirror .paragraph_indent {
        /* text-indent: 2em; */
        margin-left: 4em;
    }

    /* 重置ul/ol的默认样式，避免浏览器差异 */
.ProseMirror ul, .ProseMirror ol {
    margin: 0;
    padding-left: 2em; /* 给列表标记预留空间（关键） */
    list-style-type: disc; /* 确保标记显示（非必须，根据需求调整） */
  }


    .ProseMirror li.paragraph_indent {
        list-style-position: outside;
        text-indent: 0em;
        margin: 12px 0 12px 0;

    box-sizing: border-box; /* 统一盒模型计算方式 */
    line-height: 1.5;
    }

}

@media (max-width: 480px) {
    .detail-container {
        padding: 12px 15px 25px 15px;
    }
    
    .text-overflow {
        font-size: 18px;
    }
    
    .ProseMirror p, .ProseMirror pre {
        font-size: 14px;
        line-height: 1.6;
    }


    .ProseMirror .paragraph_indent {
        /* text-indent: 2em; */
        margin-left: 4em;
    }
        /* 重置ul/ol的默认样式，避免浏览器差异 */
    .ProseMirror ul, .ProseMirror ol {
        margin: 0;
        padding-left: 2em; /* 给列表标记预留空间（关键） */
        list-style-type: disc; /* 确保标记显示（非必须，根据需求调整） */
    }

    .ProseMirror li.paragraph_indent {
        list-style-position: outside;
        text-indent: 0em;
        margin: 12px 0 12px 0;
        box-sizing: border-box; /* 统一盒模型计算方式 */
        line-height: 1.5;
    }
}


