* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Helvetica Neue', Arial, 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

:root {
    --primary-color: #3498db;
    --secondary-color: #2c3e50;
    --bg-color: #F5F5F5;
    --card-color: #FFFFFF;
    --text-primary: #333333;
    --text-secondary: #666666;
    --text-light: #999999;
    --border-color: #EEEEEE;
    --divider-color: #E5E5E5;
    
    /* 基础字体大小使用clamp */
    font-size: clamp(14px, 2vw, 16px);
}

body {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    color: #333;
    line-height: 1.8;
    min-height: 100vh;
    font-size: 1rem; /* 继承根元素的clamp设置 */
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: clamp(10px, 2vw, 20px);
}

.header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: clamp(0.5rem, 2vw, 0.9375rem);
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 10;
}

.back-btn {
    color: white;
    font-size: clamp(1.2rem, 3vw, 1.75rem);
    background: none;
    border: 0.2rem solid #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: clamp(0.25rem, 0.75vw, 0.3125rem);
    padding: clamp(0.3rem, 0.75vw, 0.3125rem);
    border-radius: 10%;
    transition: background-color 0.2s;
}

.back-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.header-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 500;
    text-align: center;
    flex: 1;
    padding-right: clamp(2.5rem, 6vw, 3rem);
}

/* 协议容器 */
.agreement-container {
    background-color: white;
    border-radius: clamp(8px, 1.5vw, 10px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    padding: clamp(20px, 3vw, 40px);
    margin-bottom: clamp(20px, 3vw, 40px);
}

/* 协议头部 */
.agreement-header {
    text-align: center;
    margin-bottom: clamp(20px, 2.5vw, 30px);
    padding-bottom: clamp(15px, 1.5vw, 20px);
    border-bottom: 2px solid #eee;
}

.agreement-title {
    font-size: clamp(1.4rem, 3vw, 1.8rem);
    color: #2c3e50;
    margin-bottom: clamp(8px, 1vw, 10px);
}

.agreement-meta {
    color: #666;
    font-size: clamp(0.85rem, 1.5vw, 0.95rem);
}

.agreement-meta span {
    margin: 0 clamp(5px, 1vw, 10px);
}

/* 协议内容 */
.agreement-content {
    font-size: 1rem; /* 继承根元素的clamp设置 */
    color: #444;
}

/* 章节样式 */
.agreement-section {
    margin-bottom: clamp(25px, 2.5vw, 35px);
    padding-bottom: clamp(15px, 2vw, 25px);
    border-bottom: 1px solid #f0f0f0;
}

.agreement-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.section-title {
    font-size: clamp(1.1rem, 2.5vw, 1.3rem);
    color: #2c3e50;
    margin-bottom: clamp(10px, 1.5vw, 15px);
    padding-bottom: clamp(5px, 0.8vw, 8px);
    border-bottom: 2px solid #3498db;
    font-weight: 600;
}

.section-subtitle {
    font-size: clamp(1rem, 2vw, 1.1rem);
    color: #2c3e50;
    margin: clamp(15px, 2vw, 20px) 0 clamp(8px, 1vw, 10px);
    font-weight: 600;
}

/* 段落样式 */
.agreement-paragraph {
    margin-bottom: clamp(10px, 1.5vw, 15px);
    text-align: justify;
    font-size: 1rem; /* 继承根元素的clamp设置 */
}

.agreement-paragraph .highlight {
    color: #e74c3c;
    font-weight: 600;
}

/* 列表样式 */
.agreement-list {
    margin: clamp(10px, 1.5vw, 15px) 0 clamp(10px, 1.5vw, 15px) clamp(20px, 2.5vw, 30px);
}

.agreement-list li {
    margin-bottom: clamp(8px, 1vw, 10px);
    position: relative;
    font-size: 1rem; /* 继承根元素的clamp设置 */
}

.agreement-list li::before {
    content: "•";
    color: #3498db;
    font-weight: bold;
    position: absolute;
    left: -15px;
}

/* 重要提示 */
.important-notice {
    background-color: #fff8e1;
    border-left: 5px solid #ffc107;
    padding: clamp(15px, 2vw, 20px);
    margin: clamp(15px, 2vw, 25px) 0;
    border-radius: 5px;
    font-size: clamp(0.95rem, 1.5vw, 1rem);
}

.important-notice .notice-title {
    color: #856404;
    font-weight: 600;
    margin-bottom: clamp(8px, 1vw, 10px);
    font-size: clamp(1rem, 1.8vw, 1.1rem);
}

/* 定义术语 */
.term-definition {
    background-color: #f8f9fa;
    padding: clamp(12px, 1.5vw, 15px);
    margin: clamp(10px, 1.5vw, 15px) 0;
    border-radius: 5px;
    border-left: 4px solid #3498db;
    font-size: 1rem; /* 继承根元素的clamp设置 */
}

.term {
    font-weight: 600;
    color: #2c3e50;
    font-size: clamp(1rem, 1.5vw, 1.1rem);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .agreement-list {
        margin-left: clamp(15px, 2vw, 20px);
    }
    
    .agreement-list li::before {
        left: -12px;
    }
}

@media (max-width: 480px) {
    .agreement-container {
        padding: clamp(15px, 2vw, 20px);
    }
    
    .agreement-list {
        margin-left: 15px;
    }
}