/* 传承谱系样式 */
.master-container { max-width: 1000px; margin: 20px auto; padding: 0 20px; }
.master-header { text-align: center; margin-bottom: 20px; }
.master-header h1 { color: #8B0000; font-size: 26px; }
.master-header p { color: #999; font-size: 14px; }

/* 领域筛选 */
.field-filter { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-bottom: 20px; }
.field-filter a { padding: 6px 16px; border-radius: 20px; text-decoration: none; font-size: 14px; border: 1px solid #8B0000; color: #8B0000; }
.field-filter a.active, .field-filter a:hover { background: #8B0000; color: #fff; }

/* 传承树 */
.tree-container { background: #fff; border-radius: 12px; padding: 30px; box-shadow: 0 2px 8px rgba(0,0,0,0.05); }
.tree-node { text-align: center; margin: 0 auto; }
.tree-node .card { display: inline-block; background: #fdfaf5; border: 2px solid #8B0000; border-radius: 12px; padding: 15px 20px; margin: 5px; min-width: 120px; }
.tree-node .card h4 { color: #8B0000; margin: 0 0 5px; font-size: 16px; }
.tree-node .card h4 a { color: #8B0000; text-decoration: none; }
.tree-node .card p { color: #666; font-size: 12px; margin: 2px 0; }
.tree-children { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; margin-top: 10px; }
.tree-connector { width: 2px; height: 20px; background: #8B0000; margin: 0 auto; }

/* 传人详情 */
.detail-card { background: #fff; border-radius: 12px; padding: 30px; box-shadow: 0 2px 8px rgba(0,0,0,0.05); }
.detail-card h2 { color: #8B0000; text-align: center; font-size: 24px; }
.detail-card .info-table { width: 100%; border-collapse: collapse; margin: 20px 0; }
.detail-card .info-table td { padding: 10px 15px; border-bottom: 1px solid #f0ebe0; }
.detail-card .info-table td:first-child { background: #fafaf7; color: #8B0000; font-weight: bold; width: 25%; }

/* 荣誉墙 */
.honor-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 15px; margin: 20px 0; }
.honor-item { background: #fff; border-radius: 8px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.05); }
.honor-item img { width: 100%; height: 150px; object-fit: cover; }
.honor-item .info { padding: 10px; }
.honor-item .info h5 { margin: 0 0 5px; color: #8B0000; }

/* 录入表单 */
.master-form { max-width: 700px; margin: 30px auto; background: #fff; border-radius: 12px; padding: 30px; box-shadow: 0 2px 8px rgba(0,0,0,0.05); }
.master-form h2 { color: #8B0000; text-align: center; margin-bottom: 20px; }
.master-form .form-group { margin-bottom: 15px; }
.master-form label { display: block; font-weight: bold; margin-bottom: 5px; color: #555; }
.master-form input, .master-form select, .master-form textarea { width: 100%; padding: 8px 12px; border: 2px solid #e8e0d0; border-radius: 8px; font-size: 14px; }
.master-form textarea { height: 100px; resize: vertical; }
.master-form .btn-submit { width: 100%; padding: 12px; background: #8B0000; color: #fff; border: none; border-radius: 8px; font-size: 16px; cursor: pointer; }

@media (max-width: 600px) {
    .tree-children { flex-direction: column; align-items: center; }
    .honor-grid { grid-template-columns: repeat(2, 1fr); }
}
/* 领域颜色标签 */
.field-tag { display: inline-block; padding: 2px 10px; border-radius: 12px; font-size: 12px; color: #fff; }
.field-中医 { background: #8B0000; }
.field-书法 { background: #2c3e50; }
.field-绘画 { background: #c0392b; }
.field-茶道 { background: #27ae60; }
.field-武术 { background: #e67e22; }
.field-其他 { background: #7f8c8d; }
