* {
    margin: 0;
    padding: 0;
}

.fatherBox {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* 顶部导航栏样式 */
.topNav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: linear-gradient(135deg,
            #e88a80 0%, #e88a80 40%,
            #d1a9ba 50%,
            #8fc5e8 60%, #8fc5e8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 999;
}

/* 标题文字样式 - 微调阴影适配淡色背景，保留可读性 */
.topTitle {
    font-size: 24px;
    font-weight: bold;
    color: #ffffff;
    letter-spacing: 2px;
    /* 弱化阴影，适配淡色背景，避免文字太突兀 */
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* 投票区域 */
.voteFather {
    width: 100%;
    margin-top: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.pros_voteBox {
    width: 90%;
    box-sizing: border-box;
    border-radius: 10px;
    margin-bottom: 10%;
    padding: 2% 5%;
    box-shadow: 0px 0px 20px rgba(82, 54, 207, 0.4);
    background-color: #8FC5E8;
    color: white;
}

.pros_idea {
    font-size: 150%;
    color: white;
    font-weight: 600;
}

.pros_playerBox {
    width: 100%;
    margin-top: 3%;
}

.pros_player {
    border-bottom: 1px solid white;
    margin-bottom: 5%;
    padding: 4% 0;
}

.pros_name {
    font-size: 120%;
    font-weight: 600;
    margin-bottom: 2%;
}

.sliderBox {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sliderBox> :first-child {
    margin-left: 1%;
}


/* 反方投票样式 */
.cons_voteBox {
    width: 90%;
    box-sizing: border-box;
    border-radius: 10px;
    margin-top: 10%;
    margin-bottom: 10%;
    padding: 2% 5%;
    box-shadow: 0px 0px 20px rgba(207, 54, 54, 0.4);
    background-color: #E88A80;
    color: white;
}

.cons_idea {
    font-size: 150%;
    color: white;
    font-weight: 600;
}

.cons_playerBox {
    width: 100%;
    margin-top: 3%;
}

.cons_player {
    border-bottom: 1px solid white;
    margin-bottom: 5%;
    padding: 4% 0;
}

.cons_name {
    font-size: 120%;
    font-weight: 600;
    margin-bottom: 2%;
}

.sliderBox {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sliderBox> :first-child {
    margin-left: 1%;
}

/* 团队评分样式 */
.group {
    width: 100%;
    border: 1px solid white;
    margin-bottom: 3%;
}

.groupTitle {
    width: 100%;
    text-align: center;
    font-size: 120%;
    font-weight: 600;
    padding: 2% 0;
}

.groupItem {
    width: 100%;
    box-sizing: border-box;
    padding: 2% 5%;
    display: flex;
    font-size: 115%;
    margin-bottom: 2%;
}

.groupName {
    margin-right: 2%;
    white-space: nowrap;
}

.groupInput {
    text-align: center;
    width: 40%;
    /* 1. 清除默认边框和背景 */
    border: none;
    outline: none;
    background: none;
    /* 2. 清除默认内边距和外边距（按需调整） */
    padding: 0;
    margin: 0;
    /* 3. 清除默认阴影/轮廓 */
    box-shadow: none;
    -webkit-box-shadow: none;
    /* 4. 清除浏览器默认的外观样式（兼容webkit内核） */
    -webkit-appearance: none;
    appearance: none;
    /* 6. 基础字体样式（可选，统一外观） */
    font-size: 90%;
    color: #ffffff;
    font-family: "微软雅黑", sans-serif;
    /* 7. 清除默认的圆角（部分浏览器会给输入框加圆角） */
    border-radius: 0;
    /* 8. 盒模型统一（避免宽度计算偏差） */
    box-sizing: border-box;
    /* 添加下边框 */
    border-bottom: 1px solid white;
}


/* 正反方分隔样式 */
.separateBox {
    width: 100%;
    /* border: 1px solid rgb(150, 6, 6); */
    display: flex;
    align-items: center;
    justify-content: space-around;
}

.separateBox div {
    display: flex;
    font-size: 120%;
    font-weight: 600;
    font-family: Georgia, "Times New Roman", Times, serif, "SimSun", "宋体", "STSong", serif;
}

.separateImg {
    width: 20%;
}

/* 规则悬浮小球 */
.rule {
    /* 1. 固定定位：悬浮的基础 */
    position: fixed;
    right: 20px;
    bottom: 20px;
    /* 2. 小球样式 */
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #409eff;
    z-index: 9999;
    /* 5. 视觉反馈 */
    box-shadow: 0 2px 8px rgba(64, 158, 255, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.rule img {
    width: 60%;
}

/* 弹窗遮罩层 */
.modal-mask {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 99999 !important;
    /* 提升遮罩层层级至最高，避免被其他元素遮挡 */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 0;
    /* 上下内边距，避免弹窗顶到屏幕边缘 */
    box-sizing: border-box;
}

/* 遮罩层激活状态 */
.modal-mask.active {
    opacity: 1;
    visibility: visible;
}

/* 弹窗主体 */
.modal-content {
    width: 85%;
    max-width: 350px;
    background-color: #fff;
    border-radius: 12px;
    padding: 24px;
    transform: scale(0.8);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    transition-delay: 0.1s;
    /* 核心修改：设置最大高度 + 溢出滚动 */
    max-height: 70vh;
    /* 限制弹窗最大高度为视口70%，适配移动端 */
    overflow: hidden;
    /* 隐藏超出容器的内容，配合内部滚动 */
    position: relative;
    /* 为关闭按钮的绝对定位提供参考 */
}

/* 弹窗内容容器（新增）：专门用于滚动 */
.modal-scroll-wrapper {
    max-height: calc(70vh - 120px);
    /* 减去标题、按钮的高度，精准控制滚动区域 */
    overflow-y: auto;
    /* 仅垂直方向滚动 */
    padding-right: 4px;
    /* 预留滚动条空间，避免内容被遮挡 */
}

/* 弹窗激活状态 */
.modal-mask.active .modal-content {
    transform: scale(1);
    opacity: 1;
}

/* 弹窗标题 */
.modal-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 16px;
    text-align: center;
    position: relative;
    /* 避免被滚动内容覆盖 */
}

/* 弹窗内容 */
.modal-text {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 24px;
}

/* 弹窗按钮组 */
.modal-btns {
    display: flex;
    gap: 12px;
    /* 固定按钮在弹窗底部，不随内容滚动 */
    position: relative;
    margin-top: 16px;
}

/* 其他弹窗样式保持不变 */
.modal-btn {
    flex: 1;
    height: 44px;
    line-height: 44px;
    text-align: center;
    border-radius: 8px;
    font-size: 16px;
    border: none;
    cursor: pointer;
}

.confirm-btn {
    background-color: #409eff;
    color: #fff;
}

/* 禁用状态按钮样式（核心） */
.confirm-btn.disabled {
    background-color: #ccc !important;
    color: #fff !important;
    cursor: not-allowed;
    opacity: 0.7;
    pointer-events: none;
    /* 禁止点击事件 */
}

/* 其他弹窗样式保持不变 */
.modal-mask {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 99999 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 0;
    box-sizing: border-box;
}

.modal-mask.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    width: 85%;
    max-width: 350px;
    background-color: #fff;
    border-radius: 12px;
    padding: 24px;
    transform: scale(0.8);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    transition-delay: 0.1s;
    max-height: 70vh;
    overflow: hidden;
    position: relative;
}

.modal-mask.active .modal-content {
    transform: scale(1);
    opacity: 1;
}

.modal-scroll-wrapper {
    max-height: calc(70vh - 120px);
    overflow-y: auto;
    padding-right: 4px;
}

.modal-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 16px;
    text-align: center;
}

.modal-text {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 24px;
}

.modal-btns {
    display: flex;
    gap: 12px;
    position: relative;
    margin-top: 16px;
}

.modal-btn {
    flex: 1;
    height: 44px;
    line-height: 44px;
    text-align: center;
    border-radius: 8px;
    font-size: 16px;
    border: none;
    cursor: pointer;
}

.confirm-btn {
    background-color: #409eff;
    color: #fff;
}

/* 评论小球核心样式（和规则小球统一风格） */
.comment-ball {
    /* 固定定位：左下角悬浮 */
    position: fixed;
    right: 20px;
    bottom: 100px;
    /* 小球基础样式 */
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #409EFF;
    /* 绿色系，和规则小球的蓝色区分 */
    color: #fff;
    /* 交互样式 */
    cursor: pointer;
    user-select: none;
    /* 层级：和规则小球一致，确保悬浮在最上层 */
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.comment-ball img {
    width: 70%;
}

/* 整体容器样式 */
.textarea-container {
    width: 100%;
    margin-top: 2%;
    font-family: "Microsoft Yahei", sans-serif;
}

/* 文本域样式 */
.limit-textarea {
    width: 100%;
    height: 150px;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    resize: vertical;
    /* 允许垂直拉伸 */
    font-size: 14px;
    line-height: 1.5;
    box-sizing: border-box;
    transition: border-color 0.3s;
}

/* 文本域聚焦样式 */
.limit-textarea:focus {
    outline: none;
    border-color: #409eff;
    box-shadow: 0 0 0 2px rgba(64, 158, 255, 0.2);
}

/* 字数统计样式 */
.word-count {
    margin-top: 8px;
    text-align: right;
    font-size: 13px;
    color: #666;
}

/* 超出字数时的警告样式 */
.word-count.warning {
    color: #f56c6c;
}

/* 评委签名输入框样式 */
.sign-container {
    margin-bottom: 15px;
}

/* 签名输入框样式 */
.signInput {
    width: 100%;
    padding: 2% 0;
    border-bottom: 1px solid #000000;
    font-size: 14px;
    transition: all 0.3s ease;
    color: black;
    text-align: left;
}

/* 输入框焦点样式 */
.signInput.input-focus {
    border-color: #4c79c7;
    box-shadow: 0 0 0 2px rgba(76, 121, 199, 0.2);
    outline: none;
}

/* 提交按钮样式 */
.submit-box {
    width: 90%;
    margin: 20px auto 80px;
    /* 避开底部小球 */
    display: flex;
    justify-content: center;
}

.submit-btn {
    width: 100%;
    max-width: 300px;
    height: 50px;
    line-height: 50px;
    text-align: center;
    background: linear-gradient(135deg, #8fc5e8 0%, #409eff 100%);
    color: #fff;
    border: none;
    border-radius: 25px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(64, 158, 255, 0.3);
    transition: all 0.3s ease;
}

.submit-btn:hover {
    background: linear-gradient(135deg, #7bb8d8 0%, #337ecc 100%);
    box-shadow: 0 6px 16px rgba(64, 158, 255, 0.4);
    transform: translateY(-2px);
}

.submit-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(64, 158, 255, 0.3);
}

.submit-btn:disabled {
    background: linear-gradient(135deg, #ccc 0%, #999 100%);
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
    opacity: 0.7;
}

/* 全局提示 */
.popup_display {
    width: 100%;
    z-index: 9999;
    /* 最高层级，避免被遮挡 */
    position: fixed;
    top: 20%;
    left: 0;
    display: flex;
    justify-content: center;
    pointer-events: none;
    /* 不拦截鼠标事件，不影响页面操作 */
    opacity: 0;
    /* 初始透明 */
    transform: translateY(-20px);
    /* 初始向上偏移 */
    transition: all 0.3s ease-out;
    /* 动画过渡：0.3秒，缓出效果 */
}

/* 激活动画：显示时的状态 */
.popup_display.active {
    opacity: 1;
    /* 完全不透明 */
    transform: translateY(0);
    /* 回到原位置 */
}

.popup_box {
    box-sizing: border-box;
    padding: 0 20px;
}

.popup {
    padding: 8px 24px;
    color: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    /* 柔和阴影 */
    min-width: 160px;
    text-align: center;
    font-size: 14px;
    line-height: 1.5;
}