/* DNF 冒险家协会 · 墨绿翡翠 BBS */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { background: #f0f4f1; color: #333; font: 14px/1.7 "Microsoft YaHei", "PingFang SC", sans-serif; }
a { color: #1a7a4a; text-decoration: none; }
a:hover { color: #27ae60; text-decoration: underline; }
.wrap { max-width: 1000px; margin: 0 auto; padding: 0 12px; }

/* 头部 */
.hd { background: #1e3a2f; border-bottom: 3px solid #27ae60; }
.hd__in { display: flex; align-items: center; gap: 18px; height: 52px; flex-wrap: wrap; }
.hd__logo { color: #fff; font-size: 20px; font-weight: 700; letter-spacing: 1px; }
.hd__logo span { color: #27ae60; }
.hd__logo:hover { text-decoration: none; }
.hd__nav { display: flex; gap: 4px; flex: 1; flex-wrap: wrap; }
.hd__nav a { color: #c4e0d0; padding: 4px 10px; border-radius: 3px; font-size: 13px; }
.hd__nav a:hover, .hd__nav a.on { background: rgba(39,174,96,.2); color: #fff; text-decoration: none; }
.hd__right { display: flex; align-items: center; gap: 12px; font-size: 13px; }
.hd__right a { color: #c4e0d0; }
.hd__admin { color: #27ae60; font-weight: 700; }
.hd__post { background: #27ae60; color: #fff !important; font-weight: 700; padding: 6px 14px; border-radius: 3px; }
.hd__post:hover { background: #2fc26d; text-decoration: none; }

/* 列表 */
.box { background: #fff; border: 1px solid #dce8e0; border-radius: 4px; margin: 16px 0; }
.box__hd { padding: 10px 16px; border-bottom: 1px solid #dce8e0; font-weight: 700; background: #f4faf6; display: flex; justify-content: space-between; align-items: center; }
.tlist { width: 100%; border-collapse: collapse; }
.tlist th, .tlist td { padding: 9px 12px; border-bottom: 1px solid #eaf3ee; text-align: left; font-size: 13px; }
.tlist th { background: #eef6f1; color: #666; font-weight: 400; }
.tlist tr:hover td { background: #f0faf2; }
.tlist tr.is-top td { background: #e3f5ea; }
.tlist tr.is-top:hover td { background: #d8f0e1; }
.tlist .t-title a { font-weight: 700; }
.tlist .t-top { display: inline-block; font-size: 12px; color: #1a7a4a; border: 1px solid #27ae60; background: #f0faf2; border-radius: 2px; padding: 0 5px; margin-right: 6px; }
.tlist .t-cat { display: inline-block; font-size: 12px; color: #999; border: 1px solid #ddd; border-radius: 2px; padding: 0 5px; margin-right: 6px; }
.tlist .t-num { color: #999; white-space: nowrap; }
.tlist .t-num b { color: #c0392b; font-weight: 700; }
.tlist .t-time { color: #999; white-space: nowrap; }
.tlist .t-author { white-space: nowrap; }
.pager { padding: 12px 16px; text-align: center; }
.pager a, .pager span { display: inline-block; padding: 3px 10px; margin: 0 2px; border: 1px solid #cfe4d8; border-radius: 3px; font-size: 13px; }
.pager span.cur { background: #1e3a2f; color: #fff; border-color: #1e3a2f; }
.empty { padding: 40px; text-align: center; color: #999; }

/* 帖子详情 */
.post { background: #fff; border: 1px solid #dce8e0; border-radius: 4px; margin: 16px 0; overflow: hidden; }
.post__head { padding: 14px 18px; border-bottom: 1px solid #eaf3ee; background: #f4faf6; }
.post__head h1 { font-size: 18px; }
.post__meta { color: #999; font-size: 12px; margin-top: 6px; display: flex; gap: 14px; flex-wrap: wrap; }
.floor { display: flex; border-bottom: 1px solid #eaf3ee; }
.floor:last-child { border-bottom: none; }
.floor__side { width: 130px; flex-shrink: 0; padding: 14px 10px; background: #f7fbf8; border-right: 1px solid #eaf3ee; text-align: center; }
.avatar { width: 52px; height: 52px; line-height: 52px; margin: 0 auto 8px; border-radius: 4px; color: #fff; font-size: 20px; font-weight: 700; }
.floor__name { font-weight: 700; font-size: 13px; word-break: break-all; }
.floor__no { font-size: 12px; color: #999; margin-top: 4px; }
.floor__main { flex: 1; padding: 14px 18px; min-width: 0; }
.floor__content { line-height: 1.9; word-break: break-word; white-space: pre-wrap; }
.floor__time { font-size: 12px; color: #aaa; margin-top: 10px; }
.lz-tag { display: inline-block; background: #1e3a2f; color: #fff; font-size: 11px; border-radius: 2px; padding: 0 6px; margin-left: 6px; vertical-align: 1px; }
.del { float: right; font-size: 12px; color: #c00; }

/* 表单 */
.form { background: #fff; border: 1px solid #dce8e0; border-radius: 4px; margin: 16px 0; padding: 20px; }
.form h1 { font-size: 18px; margin-bottom: 14px; }
.form label { display: block; font-weight: 700; margin: 12px 0 5px; font-size: 13px; }
.form input[type=text], .form input[type=password], .form select, .form textarea {
  width: 100%; border: 1px solid #bfd8ca; border-radius: 3px; padding: 8px 10px; font: inherit; font-size: 14px;
}
.form textarea { min-height: 160px; resize: vertical; }
.form input:focus, .form textarea:focus, .form select:focus { outline: none; border-color: #1a7a4a; }
.form .btn { margin-top: 16px; background: #1e3a2f; color: #fff; border: none; padding: 9px 28px; border-radius: 3px; font-size: 14px; cursor: pointer; }
.form .btn:hover { background: #2a5040; }
.form .err { background: #fdf0f0; border: 1px solid #f2c1c1; color: #c0392b; padding: 8px 12px; border-radius: 3px; margin-bottom: 12px; font-size: 13px; }
.form .ok { background: #eefaf0; border: 1px solid #b7e2c1; color: #1e8449; padding: 8px 12px; border-radius: 3px; margin-bottom: 12px; font-size: 13px; }
.form .hint { font-size: 12px; color: #999; font-weight: 400; margin-left: 6px; }
.link-btn { background: #e8f5ee; border: 1px solid #bfd8ca; color: #1a7a4a; border-radius: 3px; padding: 2px 10px; font-size: 12px; cursor: pointer; margin-left: 8px; font-weight: 400; }
.link-btn:hover { background: #d8eee1; border-color: #1a7a4a; }

/* 页脚 */
.ft { border-top: 1px solid #dce8e0; padding: 18px 0 26px; margin-top: 24px; text-align: center; color: #999; font-size: 12px; }
.ft__tip { margin-top: 6px; color: #bbb; }

@media (max-width: 640px) {
  .hd__in { height: auto; padding: 8px 12px; gap: 8px; }
  .floor { flex-direction: column; }
  .floor__side { width: 100%; display: flex; align-items: center; gap: 10px; text-align: left; padding: 8px 12px; }
  .avatar { width: 34px; height: 34px; line-height: 34px; font-size: 15px; margin: 0; }
  .tlist { display: block; overflow-x: auto; }
}
