/* --- 平台制度下拉专属样式 --- */
.platform-rule-dropdown {
    position: relative;
}

/* 自定义精美箭头 */
.platform-rule-dropdown .arrow-icon {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-right: 2px solid #666;
    /* 箭头颜色，可跟随你的 .color2 修改 */
    border-bottom: 2px solid #666;
    transform: rotate(45deg);
    vertical-align: middle;
    margin-left: 6px;
    margin-top: -4px;
    transition: transform 0.3s ease;
}

/* 鼠标悬停时，箭头微微变色 */
.platform-rule-dropdown>a:hover .arrow-icon {
    border-color: #c0392b;
    /* 悬停颜色，配合你原有的红色悬停效果 */
}

/* 展开时，箭头反转朝上 */
.platform-rule-dropdown.open .arrow-icon {
    transform: rotate(-135deg);
    margin-top: 2px;
}

/* 下拉菜单面板美化 */
.platform-rule-menu {
    min-width: 160px;
    margin-top: 5px;
    /* 与主菜单留出一点呼吸感 */
    border-radius: 6px;
    border: 1px solid #eee;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    /* 更柔和的高级阴影 */
    background: #fff;
    padding: 8px 0;
    /* 默认隐藏时加一点下滑动画 */
    display: none;
    top: 100%;
    left: 0;
    float: none;
}

/* Bootstrap 展开时的显示状态覆盖 */
.platform-rule-dropdown.open .platform-rule-menu {
    display: block;
    animation: fadeInDown 0.3s ease forwards;
}

/* 下拉菜单项 */
.platform-rule-menu>li>a {
    display: block;
    padding: 10px 20px;
    font-size: 14px;
    color: #444;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.2s;
    text-align: center;
    /* 居中对齐看起来更规整 */
}

/* 下拉菜单项悬停 */
.platform-rule-menu>li>a:hover,
.platform-rule-menu>li>a:focus {
    background: #f8f9fa;
    color: #c0392b;
    padding-left: 24px;
    /* 悬停时文字微微右移，增加互动感 */
}

/* 下落淡入动画 */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 移动端简化：直接平铺 */
@media (max-width: 767px) {
    .platform-rule-menu {
        position: static;
        box-shadow: none;
        border: none;
        background: transparent;
        padding: 0;
        animation: none !important;
    }

    .platform-rule-dropdown.open .platform-rule-menu {
        display: block;
    }

    .platform-rule-menu>li>a {
        padding: 10px;
        text-align: center;
    }
}

/* ==================== 信息发布表单样式 ==================== */
.publish-card {
    background: #fff;
    max-width: 700px;
    margin: 50px auto;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid #eee;
}

.publish-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.publish-header h3 {
    font-size: 28px;
    color: #122B51;
    /* 配合你底部备案信息的深蓝色 */
    margin: 0 0 10px 0;
    font-weight: bold;
}

.publish-header p {
    color: #888;
    font-size: 14px;
}

/* 表单组 */
.form-group {
    margin-bottom: 22px;
}

.form-group label {
    font-weight: 600;
    color: #444;
    margin-bottom: 8px;
    display: block;
    font-size: 15px;
}

/* 单选框样式微调 */
.radio-group {
    display: flex;
    gap: 20px;
    padding-top: 5px;
}

.radio-inline {
    font-weight: normal !important;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    margin: 0;
}

.radio-inline input[type="radio"] {
    margin: 0;
    cursor: pointer;
    width: 16px;
    height: 16px;
    accent-color: #122B51;
    /* 现代浏览器单选框主色 */
}

/* 输入框与文本域 */
.form-control {
    width: 100%;
    padding: 12px 15px;
    font-size: 15px;
    color: #333;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 6px;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

.form-control:focus {
    background-color: #fff;
    border-color: #122B51;
    outline: none;
    box-shadow: 0 0 0 3px rgba(18, 43, 81, 0.1);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

/* 提交按钮 */
.form-submit {
    text-align: center;
    margin-top: 35px;
}

.btn-submit {
    background-color: #122B51;
    color: #fff;
    font-size: 16px;
    font-weight: bold;
    padding: 12px 50px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(18, 43, 81, 0.2);
}

.btn-submit:hover {
    background-color: #1d437a;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(18, 43, 81, 0.3);
}

/* 移动端适配 */
@media (max-width: 767px) {
    .publish-card {
        margin: 20px 15px;
        padding: 25px 20px;
    }

    .radio-group {
        flex-direction: column;
        gap: 10px;
    }
}

/* ==================== 隐私协议页面专属样式 ==================== */
.privacy-card {
    background: #fff;
    max-width: 1000px;
    /* 协议内容较多，稍微放宽一点，方便阅读 */
    margin: 50px auto;
    padding: 50px 60px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid #eee;
}

.privacy-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 25px;
    border-bottom: 1px dashed #ddd;
}

.privacy-header h3 {
    font-size: 32px;
    color: #122B51;
    /* 配合主色调深蓝 */
    margin: 0 0 15px 0;
    font-weight: bold;
    letter-spacing: 2px;
}

.privacy-header p {
    color: #888;
    font-size: 14px;
}

/* 文本内容排版 */
.privacy-content {
    color: #333;
    font-size: 15px;
    line-height: 1.8;
    text-align: justify;
}

.privacy-content p {
    margin-bottom: 15px;
    text-indent: 2em;
    /* 首行缩进两字符，符合中文排版规范 */
}

/* 小标题样式 */
.privacy-content h4 {
    font-size: 18px;
    color: #122B51;
    font-weight: bold;
    margin: 30px 0 15px 0;
    padding-left: 10px;
    border-left: 4px solid #122B51;
    /* 左侧加个深蓝色的竖线装饰 */
}

/* 强调文字 */
.privacy-content strong {
    color: #000;
    font-weight: 600;
}

/* 取消特殊段落的缩进（如联系方式） */
.privacy-content p strong:first-child {
    text-indent: 0;
}

/* 移动端适配 */
@media (max-width: 767px) {
    .privacy-card {
        margin: 20px 15px;
        padding: 30px 20px;
    }

    .privacy-header h3 {
        font-size: 26px;
    }

    .privacy-content {
        font-size: 14px;
        line-height: 1.6;
    }
}

/* ==================== 单选框样式修复 ==================== */
.radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    /* 控制单选项之间的间距 */
    padding-top: 5px;
}

/* 强制重置 Bootstrap 默认的 radio 绝对定位和浮动 */
.radio-inline {
    display: flex !important;
    align-items: center !important;
    /* 强制垂直居中 */
    font-weight: normal !important;
    cursor: pointer;
    margin: 0 !important;
    padding: 0 !important;
    position: relative !important;
}

/* 重置单选框样式，防止跟文字重叠 */
.radio-inline input[type="radio"] {
    position: static !important;
    /* 核心：取消 bootstrap 的 absolute 定位 */
    margin: 0 !important;
    /* 取消 bootstrap 的 -20px margin */
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: #122B51;
    /* 现代浏览器单选框主色 */
}

/* 给文字和圆圈之间增加一点呼吸感 */
.radio-inline span {
    margin-left: 8px;
    font-size: 15px;
    color: #444;
}

/* 如果不用 span 包裹文字，用这个也能兼容 */
.radio-inline input[type="radio"]+* {
    margin-left: 8px;
}