/* 全局样式 */
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: "Microsoft YaHei", Arial, sans-serif; background: #f5f7fa; color: #222; padding: 20px; }
.wrap { max-width: 900px; margin: 0 auto; }

/* 表头 */
header h1 { font-size: 28px; margin-bottom: 6px; }
.sub { color: #666; font-size: 14px; margin-bottom: 20px; }

/* 表单样式 */
form { background: #fff; padding: 20px; border-radius: 10px; box-shadow: 0 6px 18px rgba(0,0,0,0.06); margin-bottom: 30px; }
form label { display: block; font-size: 13px; margin-bottom: 6px; color: #444; }
input[type="text"], textarea, input[type="file"] { width: 100%; padding: 10px; margin-bottom: 12px; border: 1px solid #e1e6ec; border-radius: 6px; font-size: 14px; }
textarea { resize: vertical; }
form .row.actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
button { background: #2b8aef; color: white; border: none; padding: 8px 16px; border-radius: 6px; cursor: pointer; transition: 0.2s; }
button:hover { opacity: 0.9; }

/* 留言列表 */
.list-section h2 { margin-bottom: 12px; font-size: 20px; }
.card { background: #fff; padding: 15px; border-radius: 10px; margin-bottom: 15px; box-shadow: 0 4px 12px rgba(0,0,0,0.05); transition: 0.2s; }
.card:hover { box-shadow: 0 6px 18px rgba(0,0,0,0.08); }
.card .meta { font-size: 12px; color: #666; display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.card .content { font-size: 14px; line-height: 1.5; margin-bottom: 8px; }
.card img { max-width: 100%; border-radius: 6px; margin-top: 6px; }

/* 响应式布局 */
@media (max-width: 768px) {
    body { padding: 15px; }
    form { padding: 15px; }
    .card { padding: 12px; }
    button { padding: 6px 12px; font-size: 13px; }
}
@media (max-width: 480px) {
    .card .meta { font-size: 11px; flex-direction: column; gap: 4px; }
}