/* 协议页面样式 */

.main-content {
    min-height: calc(100vh - 200px);
}

/* 页面标题区域 */
.agreement-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 60px 0;
    margin-top: 140px; /* 为固定头部和导航栏留出足够空间 */
    margin-bottom: 40px;
}

.hero-content {
    text-align: center;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
}

/* 协议内容区域 */
.agreement-content-section {
    padding: 40px 0 80px;
}

.agreement-content-section .container {
    max-width: min(1200px, 96vw);
    margin: 0 auto;
    padding: 0 max(16px, env(safe-area-inset-left)) 0 max(16px, env(safe-area-inset-right));
}

/* 响应式宽度设置 - 与头部保持一致 */
@media (min-width: 1280px) { 
    .agreement-content-section .container { max-width: 1280px; } 
}
@media (min-width: 1440px) { 
    .agreement-content-section .container { max-width: 1400px; } 
}
@media (min-width: 1600px) { 
    .agreement-content-section .container { max-width: 1500px; } 
}

.agreement-wrapper {
    width: 100%;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 40px;
}

.agreement-content {
    line-height: 1.8;
    color: #333333;
    font-size: 16px;
}

.agreement-content h1,
.agreement-content h2,
.agreement-content h3,
.agreement-content h4,
.agreement-content h5,
.agreement-content h6 {
    margin-top: 2em;
    margin-bottom: 1em;
    font-weight: 600;
    color: #1a1a1a;
}

.agreement-content h1 {
    font-size: 1.8rem;
    border-bottom: 2px solid #667eea;
    padding-bottom: 0.5em;
}

.agreement-content h2 {
    font-size: 1.5rem;
}

.agreement-content h3 {
    font-size: 1.3rem;
}

.agreement-content p {
    margin-bottom: 1em;
    text-align: justify;
}

.agreement-content ul,
.agreement-content ol {
    margin: 1em 0;
    padding-left: 2em;
}

.agreement-content li {
    margin-bottom: 0.5em;
}

.agreement-content strong {
    font-weight: 600;
    color: #1a1a1a;
}

.agreement-content a {
    color: #667eea;
    text-decoration: underline;
}

.agreement-content a:hover {
    color: #764ba2;
}

.agreement-content img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin: 1em 0;
}

.agreement-content blockquote {
    border-left: 4px solid #667eea;
    padding-left: 1em;
    margin: 1.5em 0;
    color: #666666;
    font-style: italic;
}

/* 加载状态 */
.loading-indicator {
    text-align: center;
    padding: 60px 20px;
    color: #666666;
}

.loading-indicator p {
    margin: 0;
    font-size: 16px;
}

/* 错误状态 */
.error-message {
    text-align: center;
    padding: 60px 20px;
    color: #e74c3c;
}

.error-message p {
    margin: 0;
    font-size: 16px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .agreement-hero {
        padding: 40px 0;
        margin-top: 120px; /* 移动端减少间距 */
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .agreement-wrapper {
        padding: 24px;
        margin: 0 16px;
        max-width: calc(100vw - 32px);
    }
    
    .agreement-content {
        font-size: 14px;
    }
    
    .agreement-content h1 {
        font-size: 1.5rem;
    }
    
    .agreement-content h2 {
        font-size: 1.3rem;
    }
    
    .agreement-content h3 {
        font-size: 1.1rem;
    }
}

