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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
    padding: 20px;
}

/* 协议容器 */
.agreement-container {
    max-width: 900px;
    margin: 0 auto;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* 头部样式 */
.agreement-header {
    background: linear-gradient(135deg, #2c3e50, #4a6491);
    color: white;
    padding: 30px;
    text-align: center;
}

.agreement-header .logo h1 {
    font-size: 28px;
    margin-bottom: 10px;
    font-weight: 700;
}

.agreement-header h2 {
    font-size: 24px;
    margin-bottom: 10px;
    font-weight: 500;
}

.last-updated {
    font-size: 14px;
    opacity: 0.8;
}

/* 内容区域 */
.agreement-content {
    padding: 0;
}

.intro-section {
    padding: 25px 30px 15px;
    background-color: #f8f9fa;
    border-bottom: 1px solid #eaeaea;
}

.intro-section p {
    font-size: 16px;
    color: #555;
}

/* 可滚动内容区域 */
.scrollable-content {
    max-height: 500px;
    overflow-y: auto;
    padding: 0 30px;
    border-bottom: 1px solid #eaeaea;
}

/* 协议部分样式 */
.agreement-section {
    margin: 25px 0;
}

.agreement-section h3 {
    color: #2c3e50;
    font-size: 18px;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #eaeaea;
}

.agreement-section p {
    margin-bottom: 10px;
    font-size: 15px;
    color: #444;
    text-align: justify;
}

/* 操作区域 */
.agreement-actions {
    padding: 25px 30px;
    background-color: #f8f9fa;
}

.checkbox-container {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.checkbox-container input[type="checkbox"] {
    margin-right: 10px;
    transform: scale(1.2);
}

.checkbox-container label {
    font-size: 16px;
    font-weight: 500;
    color: #333;
}

.button-container {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
}

/* 按钮样式 */
.btn {
    padding: 12px 25px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: #3498db;
    color: white;
}

.btn-primary:hover:not(:disabled) {
    background-color: #2980b9;
}

.btn-primary:disabled {
    background-color: #bdc3c7;
    cursor: not-allowed;
}

.btn-secondary {
    background-color: #e74c3c;
    color: white;
}

.btn-secondary:hover {
    background-color: #c0392b;
}

/* 响应式设计 */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    
    .agreement-header {
        padding: 20px;
    }
    
    .agreement-header .logo h1 {
        font-size: 22px;
    }
    
    .agreement-header h2 {
        font-size: 20px;
    }
    
    .scrollable-content, 
    .intro-section,
    .agreement-actions {
        padding-left: 20px;
        padding-right: 20px;
    }
    
    .button-container {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
}

/* 滚动条样式 */
.scrollable-content::-webkit-scrollbar {
    width: 8px;
}

.scrollable-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.scrollable-content::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

.scrollable-content::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* 在原有CSS基础上添加以下样式 */

/* 禁止列表样式 */
.prohibited-list {
    margin: 15px 0;
    padding-left: 25px;
}

.prohibited-list li {
    margin-bottom: 8px;
    padding-left: 8px;
    color: #555;
    position: relative;
}

.prohibited-list li:before {
    content: "•";
    color: #e74c3c;
    font-weight: bold;
    position: absolute;
    left: -15px;
}

/* 强调重要条款 */
.agreement-section h3 {
    color: #2c3e50;
    font-size: 18px;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #eaeaea;
}

/* 为新增的版本说明章节添加特殊强调 */
.agreement-section:nth-child(5) {
    border-left: 3px solid #e74c3c;
    padding-left: 15px;
    margin-left: -15px;
}

.agreement-section:nth-child(5) h3 {
    color: #e74c3c;
}