/* 车友博客 qg10086.com — 深色汽车主题 */
* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html, body { background: #14161f; color: #e8eaf0; font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif; }
body { max-width: 680px; margin: 0 auto; min-height: 100vh; padding-bottom: 76px; }

#topbar { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; position: sticky; top: 0; background: rgba(20,22,31,.92); backdrop-filter: blur(8px); z-index: 10; border-bottom: 1px solid #232633; }
.logo { font-size: 18px; font-weight: 700; color: #ff8432; }
.site { font-size: 12px; color: #6b7185; }

main { padding: 12px; }
.view > * { margin-bottom: 12px; }
.page-title { font-size: 17px; margin: 4px 0 12px; }
.sec-title { font-size: 15px; margin: 18px 0 10px; color: #aab0c0; }

/* 帖子卡片 */
.post-list { display: flex; flex-direction: column; gap: 12px; }
.post-card { background: #1b1e2a; border: 1px solid #262a3a; border-radius: 14px; padding: 14px; cursor: pointer; transition: border-color .15s; }
.post-card:active { border-color: #ff8432; }
.post-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.post-user { font-size: 13px; color: #8f96ab; }
.post-time { font-size: 12px; color: #5a6075; margin-left: auto; }
.post-title { font-size: 16px; font-weight: 600; line-height: 1.45; margin-bottom: 6px; }
.post-summary { font-size: 14px; color: #aab0c0; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.post-thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; }
.post-thumbs img { width: 96px; height: 96px; object-fit: cover; border-radius: 8px; flex-shrink: 0; }
.post-foot { display: flex; align-items: center; gap: 10px; margin-top: 10px; color: #6b7185; font-size: 13px; }
.badge { font-size: 11px; padding: 2px 8px; border-radius: 999px; font-weight: 500; }
.badge.pending { background: #3a3320; color: #ffd65a; }
.badge.approved { background: #1e3a28; color: #5ddc8a; }
.badge.rejected { background: #3a2020; color: #ff7a7a; }

/* 详情 */
.detail-back { color: #ff8432; font-size: 15px; padding: 6px 0; cursor: pointer; }
.detail-title { font-size: 19px; font-weight: 700; line-height: 1.5; margin: 8px 0; }
.detail-content { font-size: 15px; line-height: 1.7; color: #cdd2e0; white-space: pre-wrap; word-break: break-word; }
.detail-images { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.detail-images img { width: 100%; border-radius: 10px; }
.reply-list { margin-top: 6px; }
.reply-item { background: #1b1e2a; border-radius: 10px; padding: 10px 12px; margin-bottom: 8px; }
.reply-head { display: flex; gap: 8px; font-size: 13px; color: #8f96ab; margin-bottom: 4px; }
.reply-content { font-size: 14px; line-height: 1.6; white-space: pre-wrap; word-break: break-word; }
.reply-box { display: flex; gap: 8px; align-items: flex-start; margin-top: 14px; position: sticky; bottom: 80px; background: #14161f; padding: 8px 0; }
.reply-box textarea { flex: 1; }

/* 表单 */
.ipt { width: 100%; background: #1b1e2a; border: 1px solid #2a2f42; border-radius: 10px; color: #e8eaf0; padding: 12px; font-size: 15px; outline: none; }
.ipt:focus { border-color: #ff8432; }
.ta { min-height: 130px; resize: vertical; }
.btn { border: none; border-radius: 10px; padding: 10px 16px; font-size: 15px; cursor: pointer; background: #262a3a; color: #e8eaf0; }
.btn.primary { background: linear-gradient(135deg, #ff8432, #ff5e3a); color: #fff; font-weight: 600; }
.btn.ghost { background: transparent; border: 1px solid #3a4055; color: #aab0c0; }
.btn.big { width: 100%; padding: 14px; font-size: 16px; }
.btn:active { opacity: .85; }
.btn-more { width: 100%; padding: 12px; background: #1b1e2a; color: #8f96ab; border: 1px solid #262a3a; border-radius: 10px; }

/* 发布 */
.pub-images { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pub-img-wrap { position: relative; aspect-ratio: 1; }
.pub-img-wrap img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; }
.pub-img-del { position: absolute; top: -6px; right: -6px; width: 22px; height: 22px; border-radius: 50%; background: #ff5e3a; color: #fff; font-size: 13px; line-height: 22px; text-align: center; cursor: pointer; }
.pub-actions { display: flex; align-items: center; gap: 10px; }
.btn.cam { background: #232739; border: 1px dashed #3a4055; color: #ff9d5c; }
.hint { font-size: 12px; color: #5a6075; }
.hint.center { text-align: center; }

/* 我的 */
.card { background: #1b1e2a; border: 1px solid #262a3a; border-radius: 14px; padding: 16px; }
.mine-row { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.avatar { width: 54px; height: 54px; border-radius: 50%; background: linear-gradient(135deg, #2a3350, #1b1e2a); display: flex; align-items: center; justify-content: center; font-size: 26px; border: 1px solid #3a4055; }
.mine-name { font-size: 18px; font-weight: 700; }
.mine-sub { font-size: 12px; color: #6b7185; margin-top: 2px; }
.cred-box { border-top: 1px dashed #2e3346; padding-top: 14px; }
.cred-title { font-size: 13px; color: #aab0c0; margin-bottom: 10px; }
.cred-img { width: 100%; border-radius: 10px; display: block; background: #10131c; min-height: 80px; }
.cred-img.big { margin: 12px 0; }
.cred-tip { font-size: 12px; color: #5a6075; margin-top: 8px; text-align: center; }
.admin-entry { margin-top: 24px; text-align: center; }

/* 管理页 */
.seg { display: flex; gap: 8px; margin-bottom: 12px; }
.seg-btn { flex: 1; padding: 10px; background: #1b1e2a; border: 1px solid #262a3a; border-radius: 10px; color: #8f96ab; font-size: 14px; }
.seg-btn.active { border-color: #ff8432; color: #ff8432; }
.admin-item { background: #1b1e2a; border: 1px solid #262a3a; border-radius: 14px; padding: 14px; margin-bottom: 12px; }
.admin-item .post-thumbs img { width: 84px; height: 84px; }
.admin-btns { display: flex; gap: 10px; margin-top: 12px; }
.admin-btns .btn { flex: 1; }
.btn.ok { background: #1e5c38; color: #7ee2a8; }
.btn.no { background: #5c1e1e; color: #ff9d9d; }
.admin-ref { font-size: 12px; color: #6b7185; margin-bottom: 4px; }

/* 底部导航 */
#tabbar { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 680px; display: flex; background: rgba(23,25,35,.97); backdrop-filter: blur(10px); border-top: 1px solid #262a3a; z-index: 20; }
.tab { flex: 1; background: none; border: none; color: #6b7185; font-size: 11px; padding: 8px 0 10px; display: flex; flex-direction: column; align-items: center; gap: 3px; cursor: pointer; }
.tab span { font-size: 20px; }
.tab.active { color: #ff8432; }

/* 弹层 */
.modal { position: fixed; inset: 0; background: rgba(0,0,0,.75); z-index: 50; display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal-card { background: #1b1e2a; border: 1px solid #2e3346; border-radius: 16px; padding: 20px; width: 100%; max-width: 440px; }
.modal-card h3 { font-size: 17px; margin-bottom: 10px; }
.modal-sub { font-size: 13px; color: #aab0c0; line-height: 1.6; margin-bottom: 8px; }
.modal-card .ipt { margin-bottom: 10px; }
.modal-card .btn { margin-top: 8px; }
#lightbox { cursor: zoom-out; }
#lightbox-img { max-width: 100%; max-height: 90vh; border-radius: 8px; }

/* 其他 */
.empty { text-align: center; padding: 60px 20px; color: #6b7185; }
.empty-icon { font-size: 42px; margin-bottom: 10px; }
.empty .sub { font-size: 13px; margin-top: 6px; color: #4a4f63; }
.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: 100px; background: #2a2f42; color: #e8eaf0; font-size: 14px; padding: 10px 20px; border-radius: 999px; z-index: 60; max-width: 80%; text-align: center; box-shadow: 0 4px 16px rgba(0,0,0,.4); }
