/* 人物志 前端样式（复古主题：陶土红 + 深棕 + 米黄纸感，修正页脚沉底） */
* { box-sizing: border-box; }
body {
    font-family: Tahoma, Verdana, 'Microsoft YaHei', '宋体', sans-serif;
    background: #fff;
    color: #333;
    font-size: 13px;
    line-height: 1.6;
    margin: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
body > header, body > main, body > footer { width: 100%; }

.rwz-container { max-width: 1180px; margin: 0 auto; padding: 0 12px; }

/* 页头 */
.rwz-header { background: #5c3a26; color: #fff; }
.rwz-header-inner { display: flex; align-items: center; height: 52px; }
.rwz-logo { display: flex; align-items: center; text-decoration: none; color: #fff; }
.rwz-logo-mark { background: #9c4a2f; color: #fff; font-weight: bold; border-radius: 4px; padding: 2px 6px; margin-right: 8px; }
.rwz-logo-img { height: 40px; width: auto; display: block; margin-right: 10px; }
.rwz-logo-text { font-size: 18px; font-weight: bold; }
.rwz-nav { margin-left: 24px; flex: 1; }
.rwz-nav-item { color: #e8dcc8; text-decoration: none; margin-right: 16px; font-size: 14px; }
.rwz-nav-item.active, .rwz-nav-item:hover { color: #fff; }
.rwz-user-box { display: flex; align-items: center; gap: 10px; }
.rwz-user-link { color: #e8dcc8; }
.rwz-btn { text-decoration: none; padding: 5px 12px; border-radius: 4px; font-size: 12px; }
.rwz-btn-ghost { border: 1px solid #b07a4f; color: #fff; }
.rwz-btn-primary { background: #9c4a2f; color: #fff; }

/* 主体 */
.rwz-main { padding-top: 16px; padding-bottom: 30px; flex: 1 0 auto; }

/* 顶部查询 */
.rwz-hero { background: #f5efe3; border: 1px solid #e3d6bf; border-radius: 8px; padding: 24px; text-align: center; }
.rwz-hero h1 { margin: 0 0 6px; font-size: 26px; color: #5c3a26; }
.rwz-hero p { margin: 0 0 14px; color: #666; }
.rwz-search { display: flex; width: 100%; max-width: 560px; margin: 0 auto; }
.rwz-search input { flex: 1; padding: 10px 12px; border: 1px solid #d8c8b0; border-right: none; border-radius: 4px 0 0 4px; font-size: 14px; font-family: inherit; }
.rwz-search button { padding: 10px 20px; border: none; background: #9c4a2f; color: #fff; border-radius: 0 4px 4px 0; cursor: pointer; font-size: 14px; }

/* 分类标签 */
.rwz-cats { margin: 18px 0 6px; display: flex; flex-wrap: wrap; gap: 8px; }
.rwz-cat { display: inline-block; padding: 4px 14px; background: #f3ece0; border: 1px solid #e3d6bf; border-radius: 16px; color: #9c4a2f; text-decoration: none; font-size: 13px; }
.rwz-cat.active, .rwz-cat:hover { background: #9c4a2f; color: #fff; border-color: #9c4a2f; }

/* 工具栏：时间筛选 + 排序 */
.rwz-toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin: 6px 0 4px; padding: 10px 12px; background: #f5efe3; border: 1px solid #e3d6bf; border-radius: 8px; }
.rwz-filter { display: flex; gap: 8px; align-items: center; }
.rwz-filter input { padding: 7px 10px; border: 1px solid #d8c8b0; border-radius: 4px; font-size: 13px; width: 200px; font-family: inherit; }
.rwz-filter button { padding: 7px 16px; border: none; background: #9c4a2f; color: #fff; border-radius: 4px; cursor: pointer; font-size: 13px; }
.rwz-sort { display: flex; align-items: center; gap: 6px; font-size: 13px; color: #666; }
.rwz-sort a { display: inline-block; padding: 4px 10px; border: 1px solid #e3d6bf; border-radius: 4px; background: #fff; color: #9c4a2f; text-decoration: none; }
.rwz-sort a.active, .rwz-sort a:hover { background: #9c4a2f; color: #fff; border-color: #9c4a2f; }

/* 卡片中的时间 */
.rwz-card-time { font-size: 12px; color: #999; margin-top: 2px; }

.rwz-section-title { margin: 18px 0 12px; font-size: 17px; color: #5c3a26; border-left: 4px solid #9c4a2f; padding-left: 10px; }

/* 人物卡片网格 */
.rwz-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.rwz-card { display: flex; gap: 12px; padding: 14px; background: #fff; border: 1px solid #e3d6bf; border-radius: 8px; text-decoration: none; color: #333; transition: all .15s; }
.rwz-card:hover { border-color: #9c4a2f; box-shadow: 0 2px 10px rgba(156,74,47,.12); transform: translateY(-2px); }
.rwz-card-avatar { width: 56px; height: 56px; border-radius: 50%; background: #9c4a2f; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: bold; overflow: hidden; flex-shrink: 0; }
.rwz-card-avatar img { width: 100%; height: 100%; object-fit: cover; }
.rwz-card-body { min-width: 0; }
.rwz-card-name { font-size: 15px; font-weight: bold; }
.rwz-card-intro { margin: 4px 0 0; color: #777; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rwz-tag { display: inline-block; margin-left: 6px; font-size: 11px; font-weight: normal; color: #9c4a2f; background: #f3e7d8; border-radius: 10px; padding: 1px 8px; }

.rwz-empty { text-align: center; padding: 40px; color: #999; }

/* 面包屑 */
.rwz-breadcrumb { font-size: 13px; color: #666; padding: 4px 0 12px; }
.rwz-breadcrumb a { color: #9c4a2f; text-decoration: none; }
.rwz-breadcrumb .sep { margin: 0 6px; color: #bbb; }
.rwz-breadcrumb .cur { color: #333; font-weight: 600; }

/* 人物详情 */
.rwz-detail { display: flex; gap: 24px; background: #fff; border: 1px solid #e3d6bf; border-radius: 8px; padding: 24px; }
.rwz-detail-avatar { width: 110px; height: 110px; border-radius: 50%; background: #9c4a2f; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 44px; font-weight: bold; overflow: hidden; flex-shrink: 0; }
.rwz-detail-avatar img { width: 100%; height: 100%; object-fit: cover; }
.rwz-detail-main { flex: 1; }
.rwz-detail-name { margin: 0 0 6px; font-size: 24px; color: #5c3a26; }
.rwz-detail-meta { color: #999; font-size: 12px; margin-bottom: 12px; }
.rwz-detail-intro { white-space: pre-wrap; line-height: 1.8; }

/* 页脚 */
.rwz-footer { background: #5c3a26; color: #e8dcc8; padding: 18px 0; margin-top: 24px; }
.rwz-footer-links { text-align: center; }
.rwz-footer-links a { color: #fff; text-decoration: none; margin: 0 4px; }
.rwz-footer-copy { text-align: center; margin: 8px 0 0; font-size: 12px; color: #c2ad8e; }

@media (max-width: 768px) {
    .rwz-header-inner { height: auto; flex-wrap: wrap; padding: 8px 0; gap: 8px; }
    .rwz-nav { margin-left: 0; flex: 1 1 100%; order: 3; }
    .rwz-user-box { margin-left: auto; }
    .rwz-hero { padding: 16px 12px; }
    .rwz-hero h1 { font-size: 20px; }
    .rwz-search { max-width: 100%; }
    .rwz-search input { font-size: 16px; } /* 避免 iOS 聚焦缩放 */
    .rwz-toolbar { flex-direction: column; align-items: stretch; }
    .rwz-filter { flex-wrap: wrap; }
    .rwz-filter input { width: 100%; }
    .rwz-filter button { flex: 1; }
    .rwz-sort { flex-wrap: wrap; justify-content: center; }
    .rwz-detail { flex-direction: column; align-items: center; text-align: center; }
    .rwz-grid { grid-template-columns: 1fr; }
    .rwz-card-intro { white-space: normal; }
}
