/* ========== 家庭关系管理 ========== */
.manage-container { max-width: 900px; margin: 20px auto; padding: 0 10px; }
.manage-card { background: #fff; padding: 20px; border-radius: 8px; margin-bottom: 20px; box-shadow: 0 1px 4px rgba(0,0,0,0.06); overflow: hidden; }
.manage-card h3 { color: #8B0000; margin-top: 0; }
.manage-header { background: #fff; padding: 20px; border-radius: 8px; margin-bottom: 20px; text-align: center; }
.manage-header h2 { color: #8B0000; margin: 0; }
.manage-header p { color: #666; margin: 5px 0; }
.manage-msg { background: #e8f5e9; color: #2e7d32; padding: 12px 20px; border-radius: 6px; margin-bottom: 20px; text-align: center; }
.manage-back { text-align: center; margin-top: 20px; }
.manage-back a { color: #8B0000; text-decoration: none; }

/* ========== 管理表单 ========== */
.manage-form { display: flex; gap: 15px; flex-wrap: wrap; align-items: end; }
.manage-form .form-group { flex: 1; min-width: 200px; }
.manage-form label { display: block; font-weight: bold; margin-bottom: 4px; }
.manage-form input[type="text"] { width: 100%; padding: 8px; border: 1px solid #ddd; border-radius: 4px; }
.manage-form .btn-save { padding: 8px 20px; background: #8B0000; color: #fff; border: none; border-radius: 4px; cursor: pointer; height: 38px; }
.btn-submit { margin-top: 15px; padding: 10px 30px; background: #8B0000; color: #fff; border: none; border-radius: 4px; cursor: pointer; font-size: 16px; }

/* ========== 搜索下拉 ========== */
.search-dropdown { border: 1px solid #eee; max-height: 150px; overflow-y: auto; display: none; background: #fff; }
.search-dropdown div { padding: 6px 10px; cursor: pointer; border-bottom: 1px solid #f5f5f5; }
.search-dropdown div:hover { background: #fdf5e6; }

/* ========== 标签展示 ========== */
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 15px; }
.tag-item { padding: 6px 14px; background: #fdf5e6; border: 1px solid #e8d88e; border-radius: 15px; font-size: 14px; }
.empty-text { color: #999; }

/* ========== 折叠面板 ========== */
.manage-card details summary { cursor: pointer; color: #8B0000; font-weight: bold; margin-top: 10px; }
.manage-card details form { margin-top: 15px; padding: 15px; background: #fafaf7; border-radius: 6px; }
.manage-card details textarea { width: 100%; padding: 8px; border: 1px solid #ddd; border-radius: 4px; height: 60px; font-size: 14px; }

/* ========== 批量表格滚动容器 ========== */
.table-scroll {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid #e8e0d0;
    border-radius: 6px;
    margin-top: 10px;
}
.batch-table {
    width: 100%;
    min-width: 620px;
    border-collapse: collapse;
    font-size: 14px;
    table-layout: auto;
}
.batch-table th {
    background: #fafaf7;
    padding: 8px 6px;
    border-bottom: 2px solid #e8e0d0;
    text-align: center;
    font-weight: bold;
}
.batch-table td {
    padding: 4px;
    border-bottom: 1px solid #f0ebe0;
    text-align: center;
}
.batch-table td.td-order {
    color: #8B0000;
    font-weight: bold;
    width: 40px;
}
.batch-table input[type="text"],
.batch-table select {
    width: 100%;
    padding: 6px 2px;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 13px;
    text-align: center;
    box-sizing: border-box;
    min-width: 50px;
}
.batch-hint { font-size: 13px; color: #666; }

/* ========== 数据表格 ========== */
.data-table { width: 100%; border-collapse: collapse; margin-bottom: 15px; }
.data-table th { background: #fafaf7; padding: 8px; border: 1px solid #ddd; }
.data-table td { padding: 8px; border: 1px solid #ddd; text-align: center; }



.batch-table th:first-child, .batch-table td:first-child { width: 50px; }
.batch-table th:nth-child(2), .batch-table td:nth-child(2) { width: auto; min-width: 120px; }
.batch-table th:nth-child(3), .batch-table td:nth-child(3) { width: 70px; }
.batch-table th:nth-child(4), .batch-table td:nth-child(4) { width: 100px; }
.batch-table th:nth-child(5), .batch-table td:nth-child(5) { width: 100px; }
.batch-table th:nth-child(6), .batch-table td:nth-child(6) { width: 100px; }
.slide-hint { 
    display: none; 
    text-align: center; 
    color: #999; 
    font-size: 12px; 
    padding: 8px 0; 
}
@media (max-width: 768px) {
    .slide-hint { display: block; }
}
