/* ============================================================
   建议墙专用样式
   全部使用 sg- 前缀，避免与 bootstrap.css / style.css 冲突
   （原来是页面内联的全局重置 *{margin:0}，会波及全站头部）
   ============================================================ */

.sg-h1 {
    margin: 0 0 15px;
    height: 100px;
    line-height: 100px;
    text-align: center;
    font-size: 24px;
    font-weight: 400;
    color: #fff;
    background: #0051a1;
}

.sg-wrap {
    margin: 0 auto;
    width: 960px;
    max-width: 96%;
    padding-bottom: 40px;
    font-size: 14px;
    line-height: 24px;
    color: #333;
}

/* ---------- 提交表单 ---------- */
.sg-form {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px #d4d4d4 dashed;
}
.sg-form:after {
    display: block;
    height: 0;
    clear: both;
    visibility: hidden;
    overflow: hidden;
    content: '.';
}

.sg-row {
    display: flex;
    gap: 12px;
    margin-bottom: 10px;
}
.sg-row input {
    flex: 1;
    padding: 8px 10px;
    border: 1px #d1d1d1 solid;
    border-radius: 5px;
    outline: none;
    font-size: 14px;
    line-height: 1.5;
    color: #333;
    box-sizing: border-box;
    transition: all 0.3s linear;
}
.sg-row input:hover,
.sg-row input:focus {
    border-color: #9bdf70;
    background: #f0fbeb;
}

.sg-form textarea {
    display: block;
    width: 100%;
    height: 240px;
    margin-bottom: 10px;
    padding: 8px 10px;
    border: 1px #d1d1d1 solid;
    border-radius: 5px;
    resize: vertical;
    outline: none;
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    box-sizing: border-box;
    transition: all 0.3s linear;
}
.sg-form textarea:hover,
.sg-form textarea:focus {
    border-color: #9bdf70;
    background: #f0fbeb;
}

.sg-submit {
    float: right;
    padding: 6px 20px;
    cursor: pointer;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: #f5f5f5;
    font-size: 14px;
}
.sg-submit:hover {
    border-color: #29c0ff;
    color: #29c0ff;
}

/* ---------- 留言列表 ---------- */
.sg-list p {
    margin-bottom: 10px;
    padding: 10px 14px;
    border-radius: 5px;
}
.sg-list p:nth-child(odd)  { border: 1px solid #e3e197; background: #ffd; }
.sg-list p:nth-child(even) { border: 1px solid #adcd3c; background: #f2fddb; }

.sg-list .who {
    display: block;
    font-weight: 700;
    color: #0051a1;
}
.sg-list .who em {
    font-style: normal;
    font-weight: 400;
    color: #777;
    font-size: 12px;
    margin-left: 8px;
}
.sg-list .msg {
    display: block;
    margin-top: 4px;
    word-break: break-all;
}
.sg-list .datetime {
    display: block;
    margin-top: 6px;
    color: #999;
    font-size: 12px;
    text-align: right;
}

/* ---------- 提示条 ---------- */
.sg-tip {
    margin: 0 auto 15px;
    width: 960px;
    max-width: 96%;
    padding: 8px 12px;
    border-radius: 5px;
    font-size: 13px;
    box-sizing: border-box;
}
.sg-tip-ok   { background: #eaf7e6; border: 1px solid #9bdf70; color: #3c763d; }
.sg-tip-err  { background: #fdecea; border: 1px solid #e0a3a3; color: #a94442; }
/* 顶部「如何申请删除」说明：常驻显示，用蓝色区别于报错/成功提示 */
.sg-tip-info { background: #eaf3fb; border: 1px solid #a8c8e8; color: #24557f; line-height: 1.7; }
.sg-tip-info a { color: #0051a1; font-weight: 700; }

/* ---------- 蜜罐（正常用户看不到） ---------- */
.sg-hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
}
