/* message.css - 留言页面样式 */

/* 表单布局 */
.msglistt {
    width: 100%;
    margin: 15px 0;
    overflow: hidden;
}

.msglistt dt {
    float: left;
    width: 120px;
    text-align: right;
    line-height: 40px;
    font-size: 14px;
    color: #404040;
    padding-right: 10px;
}

.msglistt dd {
    margin-left: 130px;
    line-height: 40px;
}

.msglistt .bdtxt {
    width: 350px;
    height: 35px;
    line-height: 35px;
    border: 1px solid #d0d0d0;
    padding: 0 8px;
    font-size: 14px;
    border-radius: 3px;
}

.msglistt .cntxt {
    width: 450px;
    height: 120px;
    border: 1px solid #d0d0d0;
    padding: 8px;
    font-size: 14px;
    line-height: 22px;
    border-radius: 3px;
}

/* 提交按钮 - 渐变样式 + 居中 */
.bdtj {
    background: #1e5799;
    background: linear-gradient(135deg, #1e5799 0%, #2989d8 100%);
    color: white;
    border: none;
   
    font-size: 16px;
    cursor: pointer;
    border-radius: 6px;
    font-family: "Microsoft YaHei", sans-serif;
    box-shadow: 0 4px 15px rgba(30, 87, 153, 0.3);
    transition: all 0.3s ease;
    letter-spacing: 2px;
    display: block;           /* 块级显示 */
    margin: 0 auto;           /* 水平居中 */
    text-align: center;       /* 文字居中 */
}

.bdtj:hover {
    background: #164d85;
    background: linear-gradient(135deg, #164d85 0%, #1e6fa8 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30, 87, 153, 0.4);
}

.bdtj:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(30, 87, 153, 0.3);
}

.bdtj:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* 提交按钮行 - 居中显示 */
.msglist-submit dd {
    text-align: center;
    margin-left: 0;
}
.msglist-submit .bdtj {
    display: inline-block;
    margin: 0 auto;
    float: none;
}

/* 验证码区域 */
.captcha-box {
    display: inline-block;
    vertical-align: middle;
}

.captcha-box input {
    width: 80px;
    height: 28px;
    border: 1px solid #ccc;
    padding: 0 8px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    vertical-align: middle;
}

.captcha-box img {
    height: 40px;
    vertical-align: middle;
    margin-left: 10px;
    border: 1px solid #ddd;
    cursor: pointer;
}

.captcha-refresh {
    color: #0066cc;
    font-size: 12px;
    margin-left: 5px;
    cursor: pointer;
    text-decoration: underline;
    vertical-align: middle;
}

.captcha-refresh:hover {
    color: #ff6600;
}

/* 表单验证提示 */
.input-error {
    border-color: #ff0000 !important;
    background-color: #fff5f5 !important;
}

.error-msg {
    color: #ff0000;
    font-size: 12px;
    margin-left: 10px;
}

/* 必填标记 */
.required-mark {
    color: #ff0000;
    font-weight: bold;
}

/* 字数统计 */
.char-count {
    font-size: 12px;
    color: #999;
    margin-top: 5px;
}