/* 检测结果提示样式 */
.detection-result {
    margin: 10px 0;
    padding: 8px 12px;
    border-radius: 4px;
    background-color: #e8f4f8;
    color: #2d3748;
    font-size: 0.9rem;
    display: none;
}
.detection-result.show {
    display: block;
}

/* 自定义符号设置样式 */
.custom-symbol-group {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    padding: 15px;
    border-radius: 6px;
    margin: 15px 0;
}
.custom-symbol-title {
    font-weight: 600;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 5px;
}

textarea.form-control {
    border-radius: 8px;
}
#convertBtn {
    border-radius: 10px;
    letter-spacing: 1px;
}

.separator-tip {
    font-size: 0.85rem;
    color: #6c757d;
    margin-top: 5px;
}

/* 三个输入项的外层容器 */
.symbol-input-row-group {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 12px;              /* 三个区块之间的间距 */
    margin-top: 8px;
    flex-wrap: wrap;        /* 小屏允许换行 */
}

/* 单个输入项：三等分 */
.symbol-input-item {
    display: flex;
    align-items: center;
    flex: 1;                /* 三个等宽 */
    min-width: 180px;       /* 防止手机上太挤 */
}

/* label：固定宽度，保证对齐 */
.symbol-input-item .form-label {
    margin: 0;
    margin-right: 8px;
    white-space: nowrap;
    font-size: 0.95rem;      /* 略大一点 */
    font-weight: 600;        /* 半粗体，立刻醒目 */
    color: #343a40;          /* 比 input 的灰更深 */
}

.symbol-input-item .form-label::before {
    color: #0d6efd;
    margin-right: 4px;
}

/* input：吃掉剩余空间（核心） */
.symbol-input-item .form-control {
    flex: 1;                /* 关键 */
    text-align: center;
    background-color: #fff;
    border-color: #ced4da;
}

/* 手机端优化布局 */
@media (max-width: 576px) {
    .symbol-input-row-group {
        gap: 8px;
    }

    .symbol-input-item {
        min-width: 0;     /* 解除桌面端限制 */
        flex: 1 1 48%;    /* 默认一行放两个 */
    }

    /* 让“单词分隔符”独占一行 */
    .symbol-input-item:last-child {
        flex: 1 1 100%;
    }
}

/* 复制按钮样式优化 */
#copyBtn {
    color: #495057 !important; /* 确保默认文字颜色清晰 */
    transition: all 0.2s ease;
}

#copyBtn:active, 
#copyBtn:focus,
#copyBtn:hover {
    color: #212529 !important; /* 交互状态下加深颜色更醒目 */
    border-color: #adb5bd;
}

/* 输入/输出文字样式 - 增强区分度 */
.param-label {
    font-weight: 600;
    font-size: 1rem;
    color: #212529;
    margin-bottom: 8px;
}

#inputText, #outputResult {
    width: 100%;
    height: 160px;
    box-sizing: border-box;
    padding: 5px;
    line-height: 2.0;

    font-size: 0.96rem;
    color: #111827;
    text-align: left;

    border: 1px solid #ced4da;
    border-radius: 8px;
    background-color: #fff;
}

#inputText::placeholder,
#outputResult::placeholder {
    text-align: center;
    color: #6b7280;
    padding-top: 40px;
}

/* 简化的清空按钮样式 */
/* 输入框容器定位 */
.input-with-clear {
    position: relative;
}

/* 清空按钮核心样式 */
.clear-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: rgba(233, 236, 239, 0.5); /* 半透浅灰背景 */
    border: none;
    color: #6c757d;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease; /* 平滑过渡 */
    padding: 0;
}

/* 悬停状态增强 */
.clear-btn:hover {
    background-color: #e9ecef; /* 实色浅灰 */
    color: #343a40; /* 深色X */
    transform: translateY(-50%) scale(1.05); /* 微放大 */
}

/* 点击状态反馈 */
.clear-btn:active {
    background-color: #dee2e6;
    transform: translateY(-50%) scale(0.98); /* 微缩小 */
}

/* 有内容时显示按钮 */
.input-with-clear.has-content .clear-btn {
    opacity: 1;
    visibility: visible;
}

/* 输入框聚焦时按钮同步变化 */
#inputText:focus + .clear-btn {
    background-color: rgba(222, 226, 230, 0.7);
}