/* 用户协议页面样式 */

.agreement-banner {
    background: linear-gradient(135deg, #1a73e8 0%, #0d47a1 100%);
    padding: 60px 0;
    color: #fff;
    text-align: center;
}

.agreement-banner-title {
    font-size: 36px;
    font-weight: 600;
    margin-bottom: 10px;
}

.agreement-banner-subtitle {
    font-size: 16px;
    opacity: 0.9;
}

.agreement-content {
    padding: 60px 0;
    background-color: #f8f9fa;
}

.agreement-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
}

/* 侧边栏目录 */
.agreement-sidebar {
    background-color: #fff;
    border-radius: 8px;
    padding: 30px 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    height: fit-content;
    position: sticky;
    top: 90px;
}

.sidebar-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #1a1a1a;
}

.agreement-toc {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.toc-item {
    padding: 10px 16px;
    border-radius: 6px;
    font-size: 14px;
    color: #333;
    transition: all 0.3s;
    cursor: pointer;
}

.toc-item:hover {
    background-color: #f0f7ff;
    color: #1a73e8;
}

.toc-item.active {
    background-color: #e3f2fd;
    color: #1a73e8;
    font-weight: 500;
}

.sidebar-notice {
    margin-top: 30px;
    padding: 20px;
    background-color: #e3f2fd;
    border-radius: 6px;
    font-size: 13px;
    line-height: 1.6;
    color: #0d47a1;
}

.notice-icon {
    width: 18px;
    height: 18px;
    margin-bottom: 8px;
    fill: #1a73e8;
}

.notice-title {
    font-weight: 600;
    margin-bottom: 8px;
    color: #0d47a1;
}

/* 主内容区 */
.agreement-main {
    background-color: #fff;
    border-radius: 8px;
    padding: 40px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.agreement-section {
    margin-bottom: 40px;
}

.agreement-section-header {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
    margin-bottom: 20px;
    cursor: pointer;
}

.section-number {
    font-size: 24px;
    font-weight: 600;
    color: #1a73e8;
}

.section-title {
    font-size: 20px;
    font-weight: 600;
    color: #1a1a1a;
    flex: 1;
}

.section-toggle {
    width: 24px;
    height: 24px;
    transition: transform 0.3s;
}

.section-toggle svg {
    width: 24px;
    height: 24px;
    fill: #999;
}

.section-toggle.collapsed {
    transform: rotate(-90deg);
}

.section-content {
    line-height: 1.8;
    color: #333;
    font-size: 15px;
}

.section-content.collapsed {
    display: none;
}

.section-content p {
    margin-bottom: 15px;
}

/* 响应式 */
@media (max-width: 768px) {
    .agreement-container {
        grid-template-columns: 1fr;
    }

    .agreement-sidebar {
        position: static;
    }

    .agreement-main {
        padding: 24px;
    }
}
