/* ========================================
   制度协议页样式 - 与全站风格统一
   ======================================== */

/* ===== 基础布局适配 ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "PingFang SC", sans-serif;
    color: #1D2129;
    line-height: 1.6;
    background-color: #F7F8FA;
}

a {
    text-decoration: none;
    transition: all 0.3s ease;
}

/* 主体顶部避让固定导航栏 */
.main {
    padding-top: 70px;
    min-height: calc(100vh - 280px);
}

/* 通用区块类 */
.section-padding {
    padding: 80px 0;
}

.bg-gray-50 {
    background-color: #F7F8FA;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 通用按钮 - 与全站保持一致 */
.btn {
    display: inline-block;
    padding: 10px 28px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    text-align: center;
    transition: all 0.3s ease;
}

.btn-outline {
    background-color: transparent;
    color: #165DFF;
    border: 1px solid #165DFF !important;
    box-shadow: none;
}

.btn-outline:hover {
    background-color: #E8F3FF;
    transform: translateY(-2px);
}

/* ===== 制度协议主容器 ===== */
.policy-container {
    background-color: #FFFFFF;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    padding: 60px;
}

/* 页面大标题 */
.policy-title {
    font-size: 32px;
    font-weight: 700;
    color: #1D2129;
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    padding-bottom: 16px;
}

.policy-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(to right, #165DFF, #4080FF);
    border-radius: 2px;
}

/* ===== 制度区块 ===== */
.policy-section {
    padding: 30px 0;
    border-bottom: 1px solid #F0F2F5;
}

.policy-section:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.policy-section:first-child {
    padding-top: 0;
}

/* 区块标题 */
.policy-section-title {
    font-size: 20px;
    font-weight: 600;
    color: #165DFF;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* 标题左侧装饰竖线 */
.policy-section-title::before {
    content: '';
    width: 4px;
    height: 20px;
    background: linear-gradient(to bottom, #165DFF, #4080FF);
    border-radius: 2px;
}

/* 制度内容预览 */
.policy-content {
    color: #4E5969;
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 20px;
    /* 预览限制3行，超出省略 */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 适配CMS生成的富文本嵌套结构 */
.policy-content p,
.policy-content div {
    color: inherit;
    font-size: inherit;
    line-height: inherit;
    margin: 0;
    padding: 0;
}

/* 隐藏空行占位 */
.policy-content div:empty {
    display: none;
}

/* 按钮区域 */
.text-center.mt-12 {
    text-align: left !important;
    margin: 0 !important;
}

/* ===== 响应式适配 ===== */
@media (max-width: 768px) {
    .main {
        padding-top: 60px;
    }

    .section-padding {
        padding: 50px 0;
    }

    .policy-container {
        padding: 30px 20px;
        border-radius: 12px;
    }

    .policy-title {
        font-size: 24px;
        margin-bottom: 30px;
    }

    .policy-section {
        padding: 24px 0;
    }

    .policy-section-title {
        font-size: 18px;
    }

    .policy-content {
        -webkit-line-clamp: 4;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .policy-container {
        padding: 24px 16px;
    }

    .policy-title {
        font-size: 22px;
    }

    .btn {
        width: 100%;
        text-align: center;
    }
}