/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

body {
    background-color: #EDEDED;
    padding-bottom: 80px; /* 为底部操作按钮预留空间 */
}

/* 顶部类型选择与积分区域 */
.type-container {
    width: 96%;
    margin: 0px auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
	margin-top:-10px;
}

/* 类型选择按钮样式 */
.type-btn {
	padding: 6px 12px;
	font-size: 14px;
	border: 1px solid #007aff;
	border-radius: 4px;
	background-color: #fff;
	color: #007aff;
	cursor: pointer;
	transition: all 0.2s;
}
.type-btn.active {
	background-color: #007aff;
	color: #fff;
}
.type-btn:hover {
	opacity: 0.9;
}
.points-container{
	text-align:right;
	margin-right:20px;
	margin-top:10px;
}

.points {
    font-size: 16px;
    font-weight: 800;
    color: #ee1616;
    padding: 0px;
}

/* 主容器 */
.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2%;
}

/* 输入框 */
.input-box {
    width: 96%;
    height: 40vh;
    border: 1px solid #ccc;
    padding: 10px;
    font-size: 16px;
    border-radius: 5px;
    margin-bottom: 20px;
    background-color: #F3F6FF;
    resize: none; /* 禁止调整大小 */
    outline: none; /* 去除焦点边框 */
}

/* 检测按钮容器 */
.button-container {
    display: flex;
    justify-content: left;
    margin-bottom: 20px;
}

.detect-button {
    background-color: #007aff;
    width: 40vw;
    color: #eff2f5;
    height: 40px;
    line-height: 40px;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s ease;
}

.detect-button:active {
    background-color: #024385;
    transform: scale(0.95);
}

.share-button1 {
    font-size: 10px;
}

/* 提示信息 */
.message {
    margin: 10px 0;
    text-align: center;
    color: green;
    font-size: 16px;
}

/* 检测结果区域 */
.result-box {
    width: 96%;
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 10px;
    font-size: 16px;
    white-space: pre-wrap;
    word-wrap: break-word;
    padding-bottom: 70px;
    background-color: #fff;
}

.placeholder {
    width: 100%;
    text-align: center;
    color: #aaa;
    font-size: 14px;
}

.multiline-text {
    margin-top: 15px;
    white-space: pre-wrap;
    display: block;
}

/* 底部操作按钮 */
.action-buttons {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-around;
    background-color: #ffffff;
    padding: 10px 0;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
}

.btn {
    flex: 1;
	width:18vw;
    margin: 0 4px;
    padding: 10px 2px;
    font-size: 13px;
    text-align: center;
    color: #000;
    background-color: #F3F6FF;
    border-radius: 10px;
    border: none;
    cursor: pointer;
}
.btn1 {
    flex: 1;
	width:20vw;
    margin: 0 10px;
    padding: 10px 5px;
    font-size: 14px;
    text-align: center;
    color: #000;
    background-color: #ffffff;
    border-radius: 10px;
    border: none;
    cursor: pointer;
}

/* 积分不足弹窗 */
.modal-mask {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    display: none;
}

.modal-box {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    max-width: 300px;
    background-color: #fff;
    border-radius: 10px;
    padding: 24px;
    z-index: 1000;
    display: none;
}

.modal-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.modal-text {
    font-size: 16px;
    color: #333;
}

.close-modal-btn {
    width: 100px;
    height: 44px;
    line-height: 44px;
    background-color: #07c160;
    color: #fff;
    border-radius: 10px;
    font-size: 16px;
    border: none;
    cursor: pointer;
}

/* 加载中样式 */
.loading {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 14px;
    z-index: 1001;
    display: none;
}

/* 新增：加载动画样式 */
.loading {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: rgba(0, 0, 0, 0.7);
  color: #fff;
  padding: 15px 25px;
  border-radius: 8px;
  font-size: 14px;
  z-index: 1001;
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.loading-spinner {
  width: 24px;
  height: 24px;
  border: 2px solid #fff;
  border-top: 2px solid transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* 结果区域新增敏感词数量提示 */
.result-count {
  font-size: 12px;
  color: #ff4444;
  margin-bottom: 5px;
}

#replaceCustomBox .modal-content {
	padding: 20px;
	width: 100%;
}
#replaceOldWord, #replaceNewWord {
	width: 100%;
	box-sizing: border-box;
}

/* 兑换积分按钮样式 */
.exchange-points-btn {
    padding: 6px 12px;
    font-size: 14px;
    border: 1px solid #007aff;
    border-radius: 4px;
    background-color: #007aff;
    color: #fff;
    cursor: pointer;
    transition: all 0.2s;
    margin-right: 10px;
}
.exchange-points-btn:hover {
    opacity: 0.9;
}

/* 兑换码弹窗样式 */
.exchange-modal-mask {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1001;
    display: none;
}
.exchange-modal-box {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    max-width: 300px;
    background-color: #fff;
    border-radius: 10px;
    padding: 24px;
    z-index: 1002;
    display: none;
}
.exchange-modal-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}
.exchange-code-input {
    width: 100%;
    height: 44px;
    padding: 0 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 16px;
    box-sizing: border-box;
}
.exchange-confirm-btn {
    width: 100%;
    height: 44px;
    line-height: 44px;
    background-color: #07c160;
    color: #fff;
    border-radius: 6px;
    font-size: 16px;
    border: none;
    cursor: pointer;
}
.exchange-cancel-btn {
    width: 100%;
    height: 44px;
    line-height: 44px;
    background-color: #999;
    color: #fff;
    border-radius: 6px;
    font-size: 16px;
    border: none;
    cursor: pointer;
}

/* 免费领积分按钮样式 */
.get-free-points-btn {
    padding: 6px 12px;
    font-size: 14px;
    border: 1px solid #07c160;
    border-radius: 4px;
    background-color: #07c160;
    color: #fff;
    cursor: pointer;
    transition: all 0.2s;
    margin-right: 10px;
}
.get-free-points-btn:hover {
    opacity: 0.9;
}

/* 免费领积分图片弹窗样式 */
.free-points-modal-mask {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1003;
    display: none;
}
.free-points-modal-box {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%; /* 弹框占屏幕宽度80% */
    max-width: 500px; /* 限制最大宽度，适配大屏 */
    background-color: #fff;
    border-radius: 10px;
    padding: 16px;
    z-index: 1004;
    display: none;
}
/* 关闭按钮 */
.free-points-close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    font-size: 20px;
    color: #999;
    cursor: pointer;
    border-radius: 50%;
    background-color: #f5f5f5;
}
.free-points-close-btn:hover {
    color: #ff4444;
    background-color: #eee;
}
/* 图片容器 */
.free-points-img-container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 0;
}
.free-points-img {
    width: 100%; /* 图片占弹框宽度96% */
    height: auto; /* 高度自适应 */
    border-radius: 8px;
    object-fit: contain; /* 保持图片比例，不拉伸 */
}

/* 获取敏感词库按钮样式 */
.get-word-lib-btn {
    padding: 6px 12px;
    font-size: 14px;
    border: 1px solid #ff9500;
    border-radius: 4px;
    background-color: #ff9500;
    color: #fff;
    cursor: pointer;
    transition: all 0.2s;
    margin-right: 10px;
}
.get-word-lib-btn:hover {
    opacity: 0.9;
}