@charset "utf-8";
/* ============================================================
   员工意见箱 · 前台样式
   风格：传统企业内部系统 / 信息系统，重信息、轻装饰
   ============================================================ */

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
}

body {
    background: #eef1f4;
    color: #333;
    font-family: "Microsoft YaHei", "微软雅黑", "Hiragino Sans GB", "Helvetica Neue", Tahoma, Arial, sans-serif;
    font-size: 14px;
    line-height: 1.7;
}

a { color: #1b5e9c; text-decoration: none; }
a:hover { color: #d35400; text-decoration: underline; }

/* ---------------- 顶部栏 ---------------- */
.topbar {
    height: 58px;
    background: #1f4e79;
    border-bottom: 3px solid #16405f;
}
.topbar .inner {
    width: 1000px;
    margin: 0 auto;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.topbar .brand {
    color: #fff;
    font-size: 19px;
    font-weight: bold;
    letter-spacing: 1px;
}
.topbar .brand .mark {
    display: inline-block;
    width: 22px;
    height: 22px;
    line-height: 22px;
    text-align: center;
    background: #c8801a;
    color: #fff;
    font-size: 13px;
    margin-right: 8px;
    vertical-align: 2px;
    font-weight: normal;
}
.topbar .nav { color: #b9cfe2; font-size: 13px; }
.topbar .nav a { color: #dce8f2; margin-left: 16px; }
.topbar .nav a:hover { color: #fff; }

/* ---------------- 容器 ---------------- */
.wrap { width: 1000px; margin: 18px auto 0; }
.panel {
    background: #fff;
    border: 1px solid #ccd4dd;
    margin-bottom: 16px;
}
.panel-head {
    height: 40px;
    line-height: 40px;
    padding: 0 16px;
    background: #f2f5f8;
    border-bottom: 1px solid #dde3ea;
    font-size: 15px;
    font-weight: bold;
    color: #1f4e79;
}
.panel-head .sub {
    float: right;
    font-weight: normal;
    font-size: 12px;
    color: #8a949e;
}
.panel-body { padding: 20px 26px 24px; }

/* ---------------- 提示条 ---------------- */
.notice {
    background: #fffdf0;
    border: 1px solid #e6d9a8;
    border-left: 3px solid #c8a01a;
    padding: 10px 14px;
    font-size: 13px;
    color: #6b5a1e;
    line-height: 1.8;
    margin-bottom: 16px;
}
.notice b { color: #8a6d0b; }

.alert {
    padding: 9px 14px;
    font-size: 13px;
    margin-bottom: 16px;
    border: 1px solid;
}
.alert-error { background: #fdf1f1; border-color: #e6b3b3; color: #a62121; }
.alert-ok    { background: #f1f8f2; border-color: #b6d7bb; color: #256d33; }
.alert-info  { background: #f1f6fb; border-color: #b8cde3; color: #1b5e9c; }

/* ---------------- 表单 ---------------- */
.form-table { width: 100%; border-collapse: collapse; }
.form-table th {
    width: 118px;
    text-align: right;
    vertical-align: top;
    padding: 9px 12px 9px 0;
    font-weight: normal;
    color: #4a555f;
    font-size: 13px;
    white-space: nowrap;
}
.form-table td { padding: 7px 0; vertical-align: top; }
.form-table th .req { color: #c62828; margin-right: 2px; }

.txt, .sel, .ta {
    border: 1px solid #c3ccd6;
    background: #fff;
    color: #333;
    font-family: inherit;
    font-size: 13px;
    padding: 6px 8px;
    outline: none;
    vertical-align: middle;
}
.txt:focus, .sel:focus, .ta:focus {
    border-color: #1b5e9c;
    box-shadow: 0 0 0 2px rgba(27, 94, 156, .12);
}
.txt { height: 32px; line-height: 20px; }
.txt-lg { width: 92%; }
.ta { width: 92%; min-height: 170px; line-height: 1.75; resize: vertical; }
.sel { height: 32px; min-width: 180px; }

.hint { color: #8a949e; font-size: 12px; margin: 4px 0 0; line-height: 1.7; }
.counter { color: #8a949e; font-size: 12px; float: right; margin-right: 8%; }
.counter.warn { color: #c62828; }

.captcha-row { display: flex; align-items: center; gap: 10px; }
.captcha-row img {
    height: 32px;
    width: 104px;
    border: 1px solid #c3ccd6;
    cursor: pointer;
    display: block;
}
.captcha-row .txt { width: 104px; }
.captcha-row .refresh { font-size: 12px; color: #1b5e9c; cursor: pointer; }

/* ---------------- 按钮 ---------------- */
.btn {
    display: inline-block;
    height: 34px;
    line-height: 32px;
    padding: 0 26px;
    font-size: 14px;
    font-family: inherit;
    border: 1px solid #14548f;
    background: #1b5e9c;
    color: #fff;
    cursor: pointer;
    vertical-align: middle;
    text-align: center;
}
.btn:hover { background: #14548f; color: #fff; text-decoration: none; }
.btn:active { background: #10456f; }
.btn-gray {
    background: #f4f6f8;
    border-color: #c3ccd6;
    color: #4a555f;
}
.btn-gray:hover { background: #e9edf1; color: #333; border-color: #aab6c2; }
.btn-sm { height: 28px; line-height: 26px; padding: 0 14px; font-size: 13px; }
.btn-link {
    background: none;
    border: none;
    color: #1b5e9c;
    cursor: pointer;
    padding: 0;
    font-size: 13px;
    font-family: inherit;
}
.btn-link:hover { color: #d35400; text-decoration: underline; }

.form-actions {
    padding: 18px 0 6px 118px;
    border-top: 1px solid #eef1f4;
    margin-top: 10px;
}
.form-actions .btn { margin-right: 10px; }

/* ---------------- 结果页 ---------------- */
.result-head {
    text-align: center;
    padding: 14px 0 6px;
}
.result-head .ico {
    display: inline-block;
    width: 46px;
    height: 46px;
    line-height: 46px;
    border-radius: 50%;
    background: #eaf5ec;
    border: 1px solid #b6d7bb;
    color: #256d33;
    font-size: 26px;
    font-weight: bold;
}
.result-head h2 { font-size: 18px; margin: 12px 0 6px; color: #256d33; font-weight: bold; }
.result-head p { color: #6b757e; margin: 0; font-size: 13px; }

.ticket-box {
    margin: 18px auto;
    width: 380px;
    text-align: center;
    border: 1px dashed #c8a01a;
    background: #fffdf0;
    padding: 14px;
}
.ticket-box .label { font-size: 13px; color: #8a6d0b; }
.ticket-box .code {
    font-family: Consolas, "Courier New", monospace;
    font-size: 26px;
    font-weight: bold;
    letter-spacing: 3px;
    color: #1f4e79;
    margin: 6px 0 4px;
}

/* ---------------- 详情信息表 ---------------- */
.info-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.info-table th, .info-table td {
    border: 1px solid #dde3ea;
    padding: 7px 10px;
    text-align: left;
    vertical-align: top;
}
.info-table th {
    background: #f5f7fa;
    color: #4a555f;
    width: 96px;
    font-weight: normal;
    white-space: nowrap;
}
.info-table tr:hover td { background: #fafbfc; }

/* 状态标签 */
.tag {
    display: inline-block;
    padding: 0 7px;
    height: 20px;
    line-height: 19px;
    font-size: 12px;
    border: 1px solid;
    vertical-align: 1px;
}
.st-0 { color: #a62121; background: #fdf1f1; border-color: #e6b3b3; }
.st-1 { color: #9a6a10; background: #fff9ec; border-color: #e8d3a0; }
.st-2 { color: #256d33; background: #f1f8f2; border-color: #b6d7bb; }
.st-3 { color: #5a646e; background: #f2f4f6; border-color: #ccd4dd; }

.reply-item {
    border: 1px solid #dde3ea;
    border-left: 3px solid #1b5e9c;
    background: #fbfcfd;
    padding: 12px 15px;
    margin-bottom: 12px;
}
.reply-item .meta {
    font-size: 12px;
    color: #8a949e;
    border-bottom: 1px dashed #e3e8ee;
    padding-bottom: 6px;
    margin-bottom: 8px;
}
.reply-item .meta .who { color: #1f4e79; font-weight: bold; font-size: 13px; }
.reply-item .body { white-space: pre-wrap; word-break: break-word; line-height: 1.85; }
.reply-item.remark { border-left-color: #c8801a; background: #fffdf7; }

.empty {
    text-align: center;
    color: #98a2ac;
    padding: 40px 0;
    font-size: 13px;
}

/* ---------------- 页脚 ---------------- */
.footer {
    width: 1000px;
    margin: 8px auto 30px;
    text-align: center;
    color: #98a2ac;
    font-size: 12px;
    line-height: 2;
    border-top: 1px solid #dde3ea;
    padding-top: 12px;
}

/* ---------------- 附件 ---------------- */
.file-list { margin: 6px 0 0; padding: 0; list-style: none; font-size: 13px; }
.file-list li { padding: 2px 0; color: #4a555f; }
.file-list li a { margin-left: 6px; }

@media (max-width: 1040px) {
    .topbar .inner, .wrap, .footer { width: auto; margin-left: 12px; margin-right: 12px; }
    .topbar .inner { margin: 0; padding: 0 12px; }
    .form-table th { width: 84px; }
    .txt-lg, .ta { width: 100%; }
    .form-actions { padding-left: 0; }
}
